configure 952 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449
  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. ARTSCONFIG
  651. PULSEAUDIO_LIBS
  652. PULSEAUDIO_CFLAGS
  653. PIPEWIRE_LIBS
  654. PIPEWIRE_CFLAGS
  655. ESD_CONFIG
  656. ESD_LIBS
  657. ESD_CFLAGS
  658. JACK_LIBS
  659. JACK_CFLAGS
  660. ALSA_LIBS
  661. ALSA_CFLAGS
  662. ALLOCA
  663. CPP
  664. LIBTOOLLINKERTAG
  665. LINKER
  666. SORT
  667. PKG_CONFIG_LIBDIR
  668. PKG_CONFIG_PATH
  669. PKG_CONFIG
  670. SET_MAKE
  671. INSTALL_DATA
  672. INSTALL_SCRIPT
  673. INSTALL_PROGRAM
  674. CXXCPP
  675. ac_ct_CXX
  676. CXXFLAGS
  677. CXX
  678. LT_AGE
  679. LT_REVISION
  680. LT_CURRENT
  681. LT_RELEASE
  682. RC
  683. LT_SYS_LIBRARY_PATH
  684. OTOOL64
  685. OTOOL
  686. LIPO
  687. NMEDIT
  688. DSYMUTIL
  689. MANIFEST_TOOL
  690. AWK
  691. RANLIB
  692. STRIP
  693. ac_ct_AR
  694. AR
  695. LN_S
  696. NM
  697. ac_ct_DUMPBIN
  698. DUMPBIN
  699. LD
  700. FGREP
  701. EGREP
  702. GREP
  703. SED
  704. OBJEXT
  705. EXEEXT
  706. ac_ct_CC
  707. CPPFLAGS
  708. LDFLAGS
  709. CFLAGS
  710. CC
  711. host_os
  712. host_vendor
  713. host_cpu
  714. host
  715. build_os
  716. build_vendor
  717. build_cpu
  718. build
  719. LIBTOOL
  720. OBJDUMP
  721. DLLTOOL
  722. AS
  723. SDL_VERSION
  724. SDL_BINARY_AGE
  725. SDL_INTERFACE_AGE
  726. SDL_MICRO_VERSION
  727. SDL_MINOR_VERSION
  728. SDL_MAJOR_VERSION
  729. target_alias
  730. host_alias
  731. build_alias
  732. LIBS
  733. ECHO_T
  734. ECHO_N
  735. ECHO_C
  736. DEFS
  737. mandir
  738. localedir
  739. libdir
  740. psdir
  741. pdfdir
  742. dvidir
  743. htmldir
  744. infodir
  745. docdir
  746. oldincludedir
  747. includedir
  748. runstatedir
  749. localstatedir
  750. sharedstatedir
  751. sysconfdir
  752. datadir
  753. datarootdir
  754. libexecdir
  755. sbindir
  756. bindir
  757. program_transform_name
  758. prefix
  759. exec_prefix
  760. PACKAGE_URL
  761. PACKAGE_BUGREPORT
  762. PACKAGE_STRING
  763. PACKAGE_VERSION
  764. PACKAGE_TARNAME
  765. PACKAGE_NAME
  766. PATH_SEPARATOR
  767. SHELL'
  768. ac_subst_files=''
  769. ac_user_opts='
  770. enable_option_checking
  771. enable_shared
  772. enable_static
  773. with_pic
  774. enable_fast_install
  775. with_aix_soname
  776. with_gnu_ld
  777. with_sysroot
  778. enable_libtool_lock
  779. enable_largefile
  780. enable_assertions
  781. enable_dependency_tracking
  782. enable_libc
  783. enable_system_iconv
  784. enable_gcc_atomics
  785. enable_atomic
  786. enable_audio
  787. enable_video
  788. enable_render
  789. enable_events
  790. enable_joystick
  791. enable_haptic
  792. enable_hidapi
  793. enable_sensor
  794. enable_power
  795. enable_filesystem
  796. enable_timers
  797. enable_file
  798. enable_misc
  799. enable_locale
  800. enable_loadso
  801. enable_cpuinfo
  802. enable_assembly
  803. enable_ssemath
  804. enable_mmx
  805. enable_3dnow
  806. enable_sse
  807. enable_sse2
  808. enable_sse3
  809. enable_altivec
  810. enable_lsx
  811. enable_lasx
  812. enable_oss
  813. enable_alsa
  814. with_alsa_prefix
  815. with_alsa_inc_prefix
  816. enable_alsatest
  817. enable_alsa_shared
  818. enable_jack
  819. enable_jack_shared
  820. enable_esd
  821. with_esd_prefix
  822. with_esd_exec_prefix
  823. enable_esdtest
  824. enable_esd_shared
  825. enable_pipewire
  826. enable_pipewire_shared
  827. enable_pulseaudio
  828. enable_pulseaudio_shared
  829. enable_arts
  830. enable_arts_shared
  831. enable_nas
  832. enable_nas_shared
  833. enable_sndio
  834. enable_sndio_shared
  835. enable_fusionsound
  836. enable_fusionsound_shared
  837. enable_diskaudio
  838. enable_dummyaudio
  839. enable_libsamplerate
  840. enable_libsamplerate_shared
  841. enable_arm_simd
  842. enable_arm_neon
  843. enable_video_wayland
  844. enable_video_wayland_qt_touch
  845. enable_wayland_shared
  846. enable_libdecor
  847. enable_libdecor_shared
  848. enable_video_rpi
  849. enable_video_x11
  850. with_x
  851. enable_x11_shared
  852. enable_video_x11_xcursor
  853. enable_video_x11_xdbe
  854. enable_video_x11_xinput
  855. enable_video_x11_xfixes
  856. enable_video_x11_xrandr
  857. enable_video_x11_scrnsaver
  858. enable_video_x11_xshape
  859. enable_video_vivante
  860. enable_video_cocoa
  861. enable_video_metal
  862. enable_render_metal
  863. enable_video_directfb
  864. enable_directfb_shared
  865. enable_video_kmsdrm
  866. enable_kmsdrm_shared
  867. enable_video_dummy
  868. enable_video_offscreen
  869. enable_video_opengl
  870. enable_video_opengles
  871. enable_video_opengles1
  872. enable_video_opengles2
  873. enable_video_vulkan
  874. enable_libudev
  875. enable_dbus
  876. enable_ime
  877. enable_ibus
  878. enable_fcitx
  879. enable_joystick_mfi
  880. enable_pthreads
  881. enable_pthread_sem
  882. enable_directx
  883. enable_xinput
  884. enable_wasapi
  885. enable_hidapi_joystick
  886. enable_hidapi_libusb
  887. enable_clock_gettime
  888. enable_rpath
  889. enable_backgrounding_signal
  890. enable_foregrounding_signal
  891. enable_joystick_virtual
  892. enable_render_d3d
  893. enable_sdl2_config
  894. '
  895. ac_precious_vars='build_alias
  896. host_alias
  897. target_alias
  898. CC
  899. CFLAGS
  900. LDFLAGS
  901. LIBS
  902. CPPFLAGS
  903. LT_SYS_LIBRARY_PATH
  904. CXX
  905. CXXFLAGS
  906. CCC
  907. CXXCPP
  908. PKG_CONFIG
  909. PKG_CONFIG_PATH
  910. PKG_CONFIG_LIBDIR
  911. CPP
  912. JACK_CFLAGS
  913. JACK_LIBS
  914. ESD_CFLAGS
  915. ESD_LIBS
  916. PIPEWIRE_CFLAGS
  917. PIPEWIRE_LIBS
  918. PULSEAUDIO_CFLAGS
  919. PULSEAUDIO_LIBS
  920. FUSIONSOUND_CFLAGS
  921. FUSIONSOUND_LIBS
  922. DECOR_CFLAGS
  923. DECOR_LIBS
  924. RPI_CFLAGS
  925. RPI_LIBS
  926. XMKMF
  927. DIRECTFB_CFLAGS
  928. DIRECTFB_LIBS
  929. LIBDRM_CFLAGS
  930. LIBDRM_LIBS
  931. LIBGBM_CFLAGS
  932. LIBGBM_LIBS
  933. DBUS_CFLAGS
  934. DBUS_LIBS
  935. IBUS_CFLAGS
  936. IBUS_LIBS
  937. LIBUSB_CFLAGS
  938. LIBUSB_LIBS'
  939. # Initialize some variables set by options.
  940. ac_init_help=
  941. ac_init_version=false
  942. ac_unrecognized_opts=
  943. ac_unrecognized_sep=
  944. # The variables have the same names as the options, with
  945. # dashes changed to underlines.
  946. cache_file=/dev/null
  947. exec_prefix=NONE
  948. no_create=
  949. no_recursion=
  950. prefix=NONE
  951. program_prefix=NONE
  952. program_suffix=NONE
  953. program_transform_name=s,x,x,
  954. silent=
  955. site=
  956. srcdir=
  957. verbose=
  958. x_includes=NONE
  959. x_libraries=NONE
  960. # Installation directory options.
  961. # These are left unexpanded so users can "make install exec_prefix=/foo"
  962. # and all the variables that are supposed to be based on exec_prefix
  963. # by default will actually change.
  964. # Use braces instead of parens because sh, perl, etc. also accept them.
  965. # (The list follows the same order as the GNU Coding Standards.)
  966. bindir='${exec_prefix}/bin'
  967. sbindir='${exec_prefix}/sbin'
  968. libexecdir='${exec_prefix}/libexec'
  969. datarootdir='${prefix}/share'
  970. datadir='${datarootdir}'
  971. sysconfdir='${prefix}/etc'
  972. sharedstatedir='${prefix}/com'
  973. localstatedir='${prefix}/var'
  974. runstatedir='${localstatedir}/run'
  975. includedir='${prefix}/include'
  976. oldincludedir='/usr/include'
  977. docdir='${datarootdir}/doc/${PACKAGE}'
  978. infodir='${datarootdir}/info'
  979. htmldir='${docdir}'
  980. dvidir='${docdir}'
  981. pdfdir='${docdir}'
  982. psdir='${docdir}'
  983. libdir='${exec_prefix}/lib'
  984. localedir='${datarootdir}/locale'
  985. mandir='${datarootdir}/man'
  986. ac_prev=
  987. ac_dashdash=
  988. for ac_option
  989. do
  990. # If the previous option needs an argument, assign it.
  991. if test -n "$ac_prev"; then
  992. eval $ac_prev=\$ac_option
  993. ac_prev=
  994. continue
  995. fi
  996. case $ac_option in
  997. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  998. *=) ac_optarg= ;;
  999. *) ac_optarg=yes ;;
  1000. esac
  1001. case $ac_dashdash$ac_option in
  1002. --)
  1003. ac_dashdash=yes ;;
  1004. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1005. ac_prev=bindir ;;
  1006. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1007. bindir=$ac_optarg ;;
  1008. -build | --build | --buil | --bui | --bu)
  1009. ac_prev=build_alias ;;
  1010. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1011. build_alias=$ac_optarg ;;
  1012. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1013. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1014. ac_prev=cache_file ;;
  1015. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1016. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1017. cache_file=$ac_optarg ;;
  1018. --config-cache | -C)
  1019. cache_file=config.cache ;;
  1020. -datadir | --datadir | --datadi | --datad)
  1021. ac_prev=datadir ;;
  1022. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1023. datadir=$ac_optarg ;;
  1024. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1025. | --dataroo | --dataro | --datar)
  1026. ac_prev=datarootdir ;;
  1027. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1028. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1029. datarootdir=$ac_optarg ;;
  1030. -disable-* | --disable-*)
  1031. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1032. # Reject names that are not valid shell variable names.
  1033. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1034. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1035. ac_useropt_orig=$ac_useropt
  1036. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1037. case $ac_user_opts in
  1038. *"
  1039. "enable_$ac_useropt"
  1040. "*) ;;
  1041. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1042. ac_unrecognized_sep=', ';;
  1043. esac
  1044. eval enable_$ac_useropt=no ;;
  1045. -docdir | --docdir | --docdi | --doc | --do)
  1046. ac_prev=docdir ;;
  1047. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1048. docdir=$ac_optarg ;;
  1049. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1050. ac_prev=dvidir ;;
  1051. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1052. dvidir=$ac_optarg ;;
  1053. -enable-* | --enable-*)
  1054. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1055. # Reject names that are not valid shell variable names.
  1056. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1057. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1058. ac_useropt_orig=$ac_useropt
  1059. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1060. case $ac_user_opts in
  1061. *"
  1062. "enable_$ac_useropt"
  1063. "*) ;;
  1064. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1065. ac_unrecognized_sep=', ';;
  1066. esac
  1067. eval enable_$ac_useropt=\$ac_optarg ;;
  1068. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1069. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1070. | --exec | --exe | --ex)
  1071. ac_prev=exec_prefix ;;
  1072. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1073. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1074. | --exec=* | --exe=* | --ex=*)
  1075. exec_prefix=$ac_optarg ;;
  1076. -gas | --gas | --ga | --g)
  1077. # Obsolete; use --with-gas.
  1078. with_gas=yes ;;
  1079. -help | --help | --hel | --he | -h)
  1080. ac_init_help=long ;;
  1081. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1082. ac_init_help=recursive ;;
  1083. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1084. ac_init_help=short ;;
  1085. -host | --host | --hos | --ho)
  1086. ac_prev=host_alias ;;
  1087. -host=* | --host=* | --hos=* | --ho=*)
  1088. host_alias=$ac_optarg ;;
  1089. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1090. ac_prev=htmldir ;;
  1091. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1092. | --ht=*)
  1093. htmldir=$ac_optarg ;;
  1094. -includedir | --includedir | --includedi | --included | --include \
  1095. | --includ | --inclu | --incl | --inc)
  1096. ac_prev=includedir ;;
  1097. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1098. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1099. includedir=$ac_optarg ;;
  1100. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1101. ac_prev=infodir ;;
  1102. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1103. infodir=$ac_optarg ;;
  1104. -libdir | --libdir | --libdi | --libd)
  1105. ac_prev=libdir ;;
  1106. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1107. libdir=$ac_optarg ;;
  1108. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1109. | --libexe | --libex | --libe)
  1110. ac_prev=libexecdir ;;
  1111. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1112. | --libexe=* | --libex=* | --libe=*)
  1113. libexecdir=$ac_optarg ;;
  1114. -localedir | --localedir | --localedi | --localed | --locale)
  1115. ac_prev=localedir ;;
  1116. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1117. localedir=$ac_optarg ;;
  1118. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1119. | --localstate | --localstat | --localsta | --localst | --locals)
  1120. ac_prev=localstatedir ;;
  1121. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1122. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1123. localstatedir=$ac_optarg ;;
  1124. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1125. ac_prev=mandir ;;
  1126. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1127. mandir=$ac_optarg ;;
  1128. -nfp | --nfp | --nf)
  1129. # Obsolete; use --without-fp.
  1130. with_fp=no ;;
  1131. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1132. | --no-cr | --no-c | -n)
  1133. no_create=yes ;;
  1134. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1135. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1136. no_recursion=yes ;;
  1137. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1138. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1139. | --oldin | --oldi | --old | --ol | --o)
  1140. ac_prev=oldincludedir ;;
  1141. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1142. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1143. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1144. oldincludedir=$ac_optarg ;;
  1145. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1146. ac_prev=prefix ;;
  1147. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1148. prefix=$ac_optarg ;;
  1149. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1150. | --program-pre | --program-pr | --program-p)
  1151. ac_prev=program_prefix ;;
  1152. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1153. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1154. program_prefix=$ac_optarg ;;
  1155. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1156. | --program-suf | --program-su | --program-s)
  1157. ac_prev=program_suffix ;;
  1158. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1159. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1160. program_suffix=$ac_optarg ;;
  1161. -program-transform-name | --program-transform-name \
  1162. | --program-transform-nam | --program-transform-na \
  1163. | --program-transform-n | --program-transform- \
  1164. | --program-transform | --program-transfor \
  1165. | --program-transfo | --program-transf \
  1166. | --program-trans | --program-tran \
  1167. | --progr-tra | --program-tr | --program-t)
  1168. ac_prev=program_transform_name ;;
  1169. -program-transform-name=* | --program-transform-name=* \
  1170. | --program-transform-nam=* | --program-transform-na=* \
  1171. | --program-transform-n=* | --program-transform-=* \
  1172. | --program-transform=* | --program-transfor=* \
  1173. | --program-transfo=* | --program-transf=* \
  1174. | --program-trans=* | --program-tran=* \
  1175. | --progr-tra=* | --program-tr=* | --program-t=*)
  1176. program_transform_name=$ac_optarg ;;
  1177. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1178. ac_prev=pdfdir ;;
  1179. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1180. pdfdir=$ac_optarg ;;
  1181. -psdir | --psdir | --psdi | --psd | --ps)
  1182. ac_prev=psdir ;;
  1183. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1184. psdir=$ac_optarg ;;
  1185. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1186. | -silent | --silent | --silen | --sile | --sil)
  1187. silent=yes ;;
  1188. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1189. | --runstate | --runstat | --runsta | --runst | --runs \
  1190. | --run | --ru | --r)
  1191. ac_prev=runstatedir ;;
  1192. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1193. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1194. | --run=* | --ru=* | --r=*)
  1195. runstatedir=$ac_optarg ;;
  1196. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1197. ac_prev=sbindir ;;
  1198. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1199. | --sbi=* | --sb=*)
  1200. sbindir=$ac_optarg ;;
  1201. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1202. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1203. | --sharedst | --shareds | --shared | --share | --shar \
  1204. | --sha | --sh)
  1205. ac_prev=sharedstatedir ;;
  1206. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1207. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1208. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1209. | --sha=* | --sh=*)
  1210. sharedstatedir=$ac_optarg ;;
  1211. -site | --site | --sit)
  1212. ac_prev=site ;;
  1213. -site=* | --site=* | --sit=*)
  1214. site=$ac_optarg ;;
  1215. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1216. ac_prev=srcdir ;;
  1217. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1218. srcdir=$ac_optarg ;;
  1219. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1220. | --syscon | --sysco | --sysc | --sys | --sy)
  1221. ac_prev=sysconfdir ;;
  1222. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1223. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1224. sysconfdir=$ac_optarg ;;
  1225. -target | --target | --targe | --targ | --tar | --ta | --t)
  1226. ac_prev=target_alias ;;
  1227. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1228. target_alias=$ac_optarg ;;
  1229. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1230. verbose=yes ;;
  1231. -version | --version | --versio | --versi | --vers | -V)
  1232. ac_init_version=: ;;
  1233. -with-* | --with-*)
  1234. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1235. # Reject names that are not valid shell variable names.
  1236. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1237. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1238. ac_useropt_orig=$ac_useropt
  1239. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1240. case $ac_user_opts in
  1241. *"
  1242. "with_$ac_useropt"
  1243. "*) ;;
  1244. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1245. ac_unrecognized_sep=', ';;
  1246. esac
  1247. eval with_$ac_useropt=\$ac_optarg ;;
  1248. -without-* | --without-*)
  1249. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1250. # Reject names that are not valid shell variable names.
  1251. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1252. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1253. ac_useropt_orig=$ac_useropt
  1254. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1255. case $ac_user_opts in
  1256. *"
  1257. "with_$ac_useropt"
  1258. "*) ;;
  1259. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1260. ac_unrecognized_sep=', ';;
  1261. esac
  1262. eval with_$ac_useropt=no ;;
  1263. --x)
  1264. # Obsolete; use --with-x.
  1265. with_x=yes ;;
  1266. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1267. | --x-incl | --x-inc | --x-in | --x-i)
  1268. ac_prev=x_includes ;;
  1269. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1270. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1271. x_includes=$ac_optarg ;;
  1272. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1273. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1274. ac_prev=x_libraries ;;
  1275. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1276. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1277. x_libraries=$ac_optarg ;;
  1278. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1279. Try \`$0 --help' for more information"
  1280. ;;
  1281. *=*)
  1282. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1283. # Reject names that are not valid shell variable names.
  1284. case $ac_envvar in #(
  1285. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1286. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1287. esac
  1288. eval $ac_envvar=\$ac_optarg
  1289. export $ac_envvar ;;
  1290. *)
  1291. # FIXME: should be removed in autoconf 3.0.
  1292. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1293. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1294. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1295. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1296. ;;
  1297. esac
  1298. done
  1299. if test -n "$ac_prev"; then
  1300. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1301. as_fn_error $? "missing argument to $ac_option"
  1302. fi
  1303. if test -n "$ac_unrecognized_opts"; then
  1304. case $enable_option_checking in
  1305. no) ;;
  1306. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1307. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1308. esac
  1309. fi
  1310. # Check all directory arguments for consistency.
  1311. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1312. datadir sysconfdir sharedstatedir localstatedir includedir \
  1313. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1314. libdir localedir mandir runstatedir
  1315. do
  1316. eval ac_val=\$$ac_var
  1317. # Remove trailing slashes.
  1318. case $ac_val in
  1319. */ )
  1320. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1321. eval $ac_var=\$ac_val;;
  1322. esac
  1323. # Be sure to have absolute directory names.
  1324. case $ac_val in
  1325. [\\/$]* | ?:[\\/]* ) continue;;
  1326. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1327. esac
  1328. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1329. done
  1330. # There might be people who depend on the old broken behavior: `$host'
  1331. # used to hold the argument of --host etc.
  1332. # FIXME: To remove some day.
  1333. build=$build_alias
  1334. host=$host_alias
  1335. target=$target_alias
  1336. # FIXME: To remove some day.
  1337. if test "x$host_alias" != x; then
  1338. if test "x$build_alias" = x; then
  1339. cross_compiling=maybe
  1340. elif test "x$build_alias" != "x$host_alias"; then
  1341. cross_compiling=yes
  1342. fi
  1343. fi
  1344. ac_tool_prefix=
  1345. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1346. test "$silent" = yes && exec 6>/dev/null
  1347. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1348. ac_ls_di=`ls -di .` &&
  1349. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1350. as_fn_error $? "working directory cannot be determined"
  1351. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1352. as_fn_error $? "pwd does not report name of working directory"
  1353. # Find the source files, if location was not specified.
  1354. if test -z "$srcdir"; then
  1355. ac_srcdir_defaulted=yes
  1356. # Try the directory containing this script, then the parent directory.
  1357. ac_confdir=`$as_dirname -- "$as_myself" ||
  1358. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1359. X"$as_myself" : 'X\(//\)[^/]' \| \
  1360. X"$as_myself" : 'X\(//\)$' \| \
  1361. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1362. printf "%s\n" X"$as_myself" |
  1363. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1364. s//\1/
  1365. q
  1366. }
  1367. /^X\(\/\/\)[^/].*/{
  1368. s//\1/
  1369. q
  1370. }
  1371. /^X\(\/\/\)$/{
  1372. s//\1/
  1373. q
  1374. }
  1375. /^X\(\/\).*/{
  1376. s//\1/
  1377. q
  1378. }
  1379. s/.*/./; q'`
  1380. srcdir=$ac_confdir
  1381. if test ! -r "$srcdir/$ac_unique_file"; then
  1382. srcdir=..
  1383. fi
  1384. else
  1385. ac_srcdir_defaulted=no
  1386. fi
  1387. if test ! -r "$srcdir/$ac_unique_file"; then
  1388. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1389. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1390. fi
  1391. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1392. ac_abs_confdir=`(
  1393. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1394. pwd)`
  1395. # When building in place, set srcdir=.
  1396. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1397. srcdir=.
  1398. fi
  1399. # Remove unnecessary trailing slashes from srcdir.
  1400. # Double slashes in file names in object file debugging info
  1401. # mess up M-x gdb in Emacs.
  1402. case $srcdir in
  1403. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1404. esac
  1405. for ac_var in $ac_precious_vars; do
  1406. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1407. eval ac_env_${ac_var}_value=\$${ac_var}
  1408. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1409. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1410. done
  1411. #
  1412. # Report the --help message.
  1413. #
  1414. if test "$ac_init_help" = "long"; then
  1415. # Omit some internal or obsolete options to make the list less imposing.
  1416. # This message is too long to be a string in the A/UX 3.1 sh.
  1417. cat <<_ACEOF
  1418. \`configure' configures this package to adapt to many kinds of systems.
  1419. Usage: $0 [OPTION]... [VAR=VALUE]...
  1420. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1421. VAR=VALUE. See below for descriptions of some of the useful variables.
  1422. Defaults for the options are specified in brackets.
  1423. Configuration:
  1424. -h, --help display this help and exit
  1425. --help=short display options specific to this package
  1426. --help=recursive display the short help of all the included packages
  1427. -V, --version display version information and exit
  1428. -q, --quiet, --silent do not print \`checking ...' messages
  1429. --cache-file=FILE cache test results in FILE [disabled]
  1430. -C, --config-cache alias for \`--cache-file=config.cache'
  1431. -n, --no-create do not create output files
  1432. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1433. Installation directories:
  1434. --prefix=PREFIX install architecture-independent files in PREFIX
  1435. [$ac_default_prefix]
  1436. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1437. [PREFIX]
  1438. By default, \`make install' will install all the files in
  1439. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1440. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1441. for instance \`--prefix=\$HOME'.
  1442. For better control, use the options below.
  1443. Fine tuning of the installation directories:
  1444. --bindir=DIR user executables [EPREFIX/bin]
  1445. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1446. --libexecdir=DIR program executables [EPREFIX/libexec]
  1447. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1448. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1449. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1450. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1451. --libdir=DIR object code libraries [EPREFIX/lib]
  1452. --includedir=DIR C header files [PREFIX/include]
  1453. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1454. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1455. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1456. --infodir=DIR info documentation [DATAROOTDIR/info]
  1457. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1458. --mandir=DIR man documentation [DATAROOTDIR/man]
  1459. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1460. --htmldir=DIR html documentation [DOCDIR]
  1461. --dvidir=DIR dvi documentation [DOCDIR]
  1462. --pdfdir=DIR pdf documentation [DOCDIR]
  1463. --psdir=DIR ps documentation [DOCDIR]
  1464. _ACEOF
  1465. cat <<\_ACEOF
  1466. X features:
  1467. --x-includes=DIR X include files are in DIR
  1468. --x-libraries=DIR X library files are in DIR
  1469. System types:
  1470. --build=BUILD configure for building on BUILD [guessed]
  1471. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1472. _ACEOF
  1473. fi
  1474. if test -n "$ac_init_help"; then
  1475. cat <<\_ACEOF
  1476. Optional Features:
  1477. --disable-option-checking ignore unrecognized --enable/--with options
  1478. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1479. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1480. --enable-shared[=PKGS] build shared libraries [default=yes]
  1481. --enable-static[=PKGS] build static libraries [default=yes]
  1482. --enable-fast-install[=PKGS]
  1483. optimize for fast installation [default=yes]
  1484. --disable-libtool-lock avoid locking (might break parallel builds)
  1485. --disable-largefile omit support for large files
  1486. --enable-assertions Enable internal sanity checks
  1487. (auto/disabled/release/enabled/paranoid)
  1488. [default=auto]
  1489. --enable-dependency-tracking
  1490. Use gcc -MMD -MT dependency tracking [default=yes]
  1491. --enable-libc Use the system C library [default=yes]
  1492. --enable-system-iconv Use iconv() from system-installed libraries
  1493. [default=yes]
  1494. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1495. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1496. --enable-audio Enable the audio subsystem [default=yes]
  1497. --enable-video Enable the video subsystem [default=yes]
  1498. --enable-render Enable the render subsystem [default=yes]
  1499. --enable-events Enable the events subsystem [default=yes]
  1500. --enable-joystick Enable the joystick subsystem [default=yes]
  1501. --enable-haptic Enable the haptic (force feedback) subsystem
  1502. [default=yes]
  1503. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1504. --enable-sensor Enable the sensor subsystem [default=yes]
  1505. --enable-power Enable the power subsystem [default=yes]
  1506. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1507. --enable-timers Enable the timer subsystem [default=yes]
  1508. --enable-file Enable the file subsystem [default=yes]
  1509. --enable-misc Enable the misc subsystem [default=yes]
  1510. --enable-locale Enable the locale subsystem [default=yes]
  1511. --enable-loadso Enable the shared object loading subsystem
  1512. [default=yes]
  1513. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1514. --enable-assembly Enable assembly routines [default=yes]
  1515. --enable-ssemath Allow GCC to use SSE floating point math
  1516. [default=maybe]
  1517. --enable-mmx use MMX assembly routines [default=yes]
  1518. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1519. --enable-sse use SSE assembly routines [default=yes]
  1520. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1521. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1522. --enable-altivec use Altivec assembly routines [default=yes]
  1523. --enable-lsx use LSX assembly routines [default=yes]
  1524. --enable-lasx use LASX assembly routines [default=yes]
  1525. --enable-oss support the OSS audio API [default=maybe]
  1526. --enable-alsa support the ALSA audio API [default=yes]
  1527. --disable-alsatest Do not try to compile and run a test Alsa program
  1528. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1529. --enable-jack use JACK audio [default=yes]
  1530. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1531. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1532. --disable-esdtest Do not try to compile and run a test ESD program
  1533. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1534. --enable-pipewire use Pipewire audio [default=yes]
  1535. --enable-pipewire-shared
  1536. dynamically load Pipewire support [default=yes]
  1537. --enable-pulseaudio use PulseAudio [default=yes]
  1538. --enable-pulseaudio-shared
  1539. dynamically load PulseAudio support [default=yes]
  1540. --enable-arts support the Analog Real Time Synthesizer
  1541. [default=yes]
  1542. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1543. --enable-nas support the NAS audio API [default=yes]
  1544. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1545. --enable-sndio support the sndio audio API [default=yes]
  1546. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1547. --enable-fusionsound use FusionSound audio driver [default=no]
  1548. --enable-fusionsound-shared
  1549. dynamically load fusionsound audio support
  1550. [default=yes]
  1551. --enable-diskaudio support the disk writer audio driver [default=yes]
  1552. --enable-dummyaudio support the dummy audio driver [default=yes]
  1553. --enable-libsamplerate use libsamplerate for audio rate conversion
  1554. [default=yes]
  1555. --enable-libsamplerate-shared
  1556. dynamically load libsamplerate [default=yes]
  1557. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1558. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1559. --enable-video-wayland use Wayland video driver [default=yes]
  1560. --enable-video-wayland-qt-touch
  1561. QtWayland server support for Wayland video driver
  1562. [default=yes]
  1563. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1564. --enable-libdecor use libdecor for Wayland client-side decorations
  1565. [default=yes]
  1566. --enable-libdecor-shared
  1567. dynamically load libdecor [default=yes]
  1568. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1569. --enable-video-x11 use X11 video driver [default=yes]
  1570. --enable-x11-shared dynamically load X11 support [default=maybe]
  1571. --enable-video-x11-xcursor
  1572. enable X11 Xcursor support [default=yes]
  1573. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1574. --enable-video-x11-xinput
  1575. enable X11 XInput extension for manymouse, tablets,
  1576. etc [default=yes]
  1577. --enable-video-x11-xfixes
  1578. enable X11 Xfixes support [default=yes]
  1579. --enable-video-x11-xrandr
  1580. enable X11 Xrandr extension for fullscreen
  1581. [default=yes]
  1582. --enable-video-x11-scrnsaver
  1583. enable X11 screensaver extension [default=yes]
  1584. --enable-video-x11-xshape
  1585. enable X11 XShape support [default=yes]
  1586. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1587. --enable-video-cocoa use Cocoa video driver [default=yes]
  1588. --enable-video-metal include Metal support [default=yes]
  1589. --enable-render-metal enable the Metal render driver [default=yes]
  1590. --enable-video-directfb use DirectFB video driver [default=no]
  1591. --enable-directfb-shared
  1592. dynamically load directfb support [default=yes]
  1593. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1594. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1595. --enable-video-dummy use dummy video driver [default=yes]
  1596. --enable-video-offscreen
  1597. use offscreen video driver [default=yes]
  1598. --enable-video-opengl include OpenGL support [default=yes]
  1599. --enable-video-opengles include OpenGL ES support [default=yes]
  1600. --enable-video-opengles1
  1601. include OpenGL ES 1.1 support [default=yes]
  1602. --enable-video-opengles2
  1603. include OpenGL ES 2.0 support [default=yes]
  1604. --enable-video-vulkan include Vulkan support [default=yes]
  1605. --enable-libudev enable libudev support [default=yes]
  1606. --enable-dbus enable D-Bus support [default=yes]
  1607. --enable-ime enable IME support [default=yes]
  1608. --enable-ibus enable IBus support [default=yes]
  1609. --enable-fcitx enable fcitx support [default=yes]
  1610. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1611. --enable-pthreads use POSIX threads for multi-threading
  1612. [default=maybe]
  1613. --enable-pthread-sem use pthread semaphores [default=maybe]
  1614. --enable-directx use DirectX for Windows audio/video [default=yes]
  1615. --enable-xinput use Xinput for Windows [default=yes]
  1616. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1617. --enable-hidapi-joystick
  1618. use HIDAPI for low level joystick drivers
  1619. [default=yes]
  1620. --enable-hidapi-libusb use libusb for low level joystick drivers
  1621. [default=maybe]
  1622. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1623. UNIX [default=yes]
  1624. --enable-rpath use an rpath when linking SDL [default=yes]
  1625. --enable-backgrounding-signal
  1626. number to use for magic backgrounding signal or 'no'
  1627. [default=no]
  1628. --enable-foregrounding-signal
  1629. number to use for magic foregrounding signal or 'no'
  1630. [default=no]
  1631. --enable-joystick-virtual
  1632. enable virtual joystick APIs [default=yes]
  1633. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1634. --enable-sdl2-config Install sdl2-config [default=yes]
  1635. Optional Packages:
  1636. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1637. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1638. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1639. both]
  1640. --with-aix-soname=aix|svr4|both
  1641. shared library versioning (aka "SONAME") variant to
  1642. provide on AIX, [default=aix].
  1643. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1644. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1645. compiler's sysroot if not specified).
  1646. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1647. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1648. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1649. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1650. --with-x use the X Window System
  1651. Some influential environment variables:
  1652. CC C compiler command
  1653. CFLAGS C compiler flags
  1654. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1655. nonstandard directory <lib dir>
  1656. LIBS libraries to pass to the linker, e.g. -l<library>
  1657. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1658. you have headers in a nonstandard directory <include dir>
  1659. LT_SYS_LIBRARY_PATH
  1660. User-defined run-time library search path.
  1661. CXX C++ compiler command
  1662. CXXFLAGS C++ compiler flags
  1663. CXXCPP C++ preprocessor
  1664. PKG_CONFIG path to pkg-config utility
  1665. PKG_CONFIG_PATH
  1666. directories to add to pkg-config's search path
  1667. PKG_CONFIG_LIBDIR
  1668. path overriding pkg-config's built-in search path
  1669. CPP C preprocessor
  1670. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1671. JACK_LIBS linker flags for JACK, overriding pkg-config
  1672. ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
  1673. ESD_LIBS linker flags for ESD, overriding pkg-config
  1674. PIPEWIRE_CFLAGS
  1675. C compiler flags for PIPEWIRE, overriding pkg-config
  1676. PIPEWIRE_LIBS
  1677. linker flags for PIPEWIRE, overriding pkg-config
  1678. PULSEAUDIO_CFLAGS
  1679. C compiler flags for PULSEAUDIO, overriding pkg-config
  1680. PULSEAUDIO_LIBS
  1681. linker flags for PULSEAUDIO, overriding pkg-config
  1682. FUSIONSOUND_CFLAGS
  1683. C compiler flags for FUSIONSOUND, overriding pkg-config
  1684. FUSIONSOUND_LIBS
  1685. linker flags for FUSIONSOUND, overriding pkg-config
  1686. DECOR_CFLAGS
  1687. C compiler flags for DECOR, overriding pkg-config
  1688. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1689. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1690. RPI_LIBS linker flags for RPI, overriding pkg-config
  1691. XMKMF Path to xmkmf, Makefile generator for X Window System
  1692. DIRECTFB_CFLAGS
  1693. C compiler flags for DIRECTFB, overriding pkg-config
  1694. DIRECTFB_LIBS
  1695. linker flags for DIRECTFB, overriding pkg-config
  1696. LIBDRM_CFLAGS
  1697. C compiler flags for LIBDRM, overriding pkg-config
  1698. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1699. LIBGBM_CFLAGS
  1700. C compiler flags for LIBGBM, overriding pkg-config
  1701. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1702. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1703. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1704. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1705. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1706. LIBUSB_CFLAGS
  1707. C compiler flags for LIBUSB, overriding pkg-config
  1708. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1709. Use these variables to override the choices made by `configure' or to help
  1710. it to find libraries and programs with nonstandard names/locations.
  1711. Report bugs to the package provider.
  1712. _ACEOF
  1713. ac_status=$?
  1714. fi
  1715. if test "$ac_init_help" = "recursive"; then
  1716. # If there are subdirs, report their specific --help.
  1717. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1718. test -d "$ac_dir" ||
  1719. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1720. continue
  1721. ac_builddir=.
  1722. case "$ac_dir" in
  1723. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1724. *)
  1725. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1726. # A ".." for each directory in $ac_dir_suffix.
  1727. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1728. case $ac_top_builddir_sub in
  1729. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1730. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1731. esac ;;
  1732. esac
  1733. ac_abs_top_builddir=$ac_pwd
  1734. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1735. # for backward compatibility:
  1736. ac_top_builddir=$ac_top_build_prefix
  1737. case $srcdir in
  1738. .) # We are building in place.
  1739. ac_srcdir=.
  1740. ac_top_srcdir=$ac_top_builddir_sub
  1741. ac_abs_top_srcdir=$ac_pwd ;;
  1742. [\\/]* | ?:[\\/]* ) # Absolute name.
  1743. ac_srcdir=$srcdir$ac_dir_suffix;
  1744. ac_top_srcdir=$srcdir
  1745. ac_abs_top_srcdir=$srcdir ;;
  1746. *) # Relative name.
  1747. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1748. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1749. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1750. esac
  1751. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1752. cd "$ac_dir" || { ac_status=$?; continue; }
  1753. # Check for configure.gnu first; this name is used for a wrapper for
  1754. # Metaconfig's "Configure" on case-insensitive file systems.
  1755. if test -f "$ac_srcdir/configure.gnu"; then
  1756. echo &&
  1757. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1758. elif test -f "$ac_srcdir/configure"; then
  1759. echo &&
  1760. $SHELL "$ac_srcdir/configure" --help=recursive
  1761. else
  1762. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1763. fi || ac_status=$?
  1764. cd "$ac_pwd" || { ac_status=$?; break; }
  1765. done
  1766. fi
  1767. test -n "$ac_init_help" && exit $ac_status
  1768. if $ac_init_version; then
  1769. cat <<\_ACEOF
  1770. configure
  1771. generated by GNU Autoconf 2.71
  1772. Copyright (C) 2021 Free Software Foundation, Inc.
  1773. This configure script is free software; the Free Software Foundation
  1774. gives unlimited permission to copy, distribute and modify it.
  1775. _ACEOF
  1776. exit
  1777. fi
  1778. ## ------------------------ ##
  1779. ## Autoconf initialization. ##
  1780. ## ------------------------ ##
  1781. # ac_fn_c_try_compile LINENO
  1782. # --------------------------
  1783. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1784. ac_fn_c_try_compile ()
  1785. {
  1786. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1787. rm -f conftest.$ac_objext conftest.beam
  1788. if { { ac_try="$ac_compile"
  1789. case "(($ac_try" in
  1790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1791. *) ac_try_echo=$ac_try;;
  1792. esac
  1793. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1794. printf "%s\n" "$ac_try_echo"; } >&5
  1795. (eval "$ac_compile") 2>conftest.err
  1796. ac_status=$?
  1797. if test -s conftest.err; then
  1798. grep -v '^ *+' conftest.err >conftest.er1
  1799. cat conftest.er1 >&5
  1800. mv -f conftest.er1 conftest.err
  1801. fi
  1802. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1803. test $ac_status = 0; } && {
  1804. test -z "$ac_c_werror_flag" ||
  1805. test ! -s conftest.err
  1806. } && test -s conftest.$ac_objext
  1807. then :
  1808. ac_retval=0
  1809. else $as_nop
  1810. printf "%s\n" "$as_me: failed program was:" >&5
  1811. sed 's/^/| /' conftest.$ac_ext >&5
  1812. ac_retval=1
  1813. fi
  1814. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1815. as_fn_set_status $ac_retval
  1816. } # ac_fn_c_try_compile
  1817. # ac_fn_c_try_link LINENO
  1818. # -----------------------
  1819. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1820. ac_fn_c_try_link ()
  1821. {
  1822. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1823. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1824. if { { ac_try="$ac_link"
  1825. case "(($ac_try" in
  1826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1827. *) ac_try_echo=$ac_try;;
  1828. esac
  1829. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1830. printf "%s\n" "$ac_try_echo"; } >&5
  1831. (eval "$ac_link") 2>conftest.err
  1832. ac_status=$?
  1833. if test -s conftest.err; then
  1834. grep -v '^ *+' conftest.err >conftest.er1
  1835. cat conftest.er1 >&5
  1836. mv -f conftest.er1 conftest.err
  1837. fi
  1838. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1839. test $ac_status = 0; } && {
  1840. test -z "$ac_c_werror_flag" ||
  1841. test ! -s conftest.err
  1842. } && test -s conftest$ac_exeext && {
  1843. test "$cross_compiling" = yes ||
  1844. test -x conftest$ac_exeext
  1845. }
  1846. then :
  1847. ac_retval=0
  1848. else $as_nop
  1849. printf "%s\n" "$as_me: failed program was:" >&5
  1850. sed 's/^/| /' conftest.$ac_ext >&5
  1851. ac_retval=1
  1852. fi
  1853. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1854. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1855. # interfere with the next link command; also delete a directory that is
  1856. # left behind by Apple's compiler. We do this before executing the actions.
  1857. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1858. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1859. as_fn_set_status $ac_retval
  1860. } # ac_fn_c_try_link
  1861. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1862. # -------------------------------------------------------
  1863. # Tests whether HEADER exists and can be compiled using the include files in
  1864. # INCLUDES, setting the cache variable VAR accordingly.
  1865. ac_fn_c_check_header_compile ()
  1866. {
  1867. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1869. printf %s "checking for $2... " >&6; }
  1870. if eval test \${$3+y}
  1871. then :
  1872. printf %s "(cached) " >&6
  1873. else $as_nop
  1874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1875. /* end confdefs.h. */
  1876. $4
  1877. #include <$2>
  1878. _ACEOF
  1879. if ac_fn_c_try_compile "$LINENO"
  1880. then :
  1881. eval "$3=yes"
  1882. else $as_nop
  1883. eval "$3=no"
  1884. fi
  1885. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1886. fi
  1887. eval ac_res=\$$3
  1888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1889. printf "%s\n" "$ac_res" >&6; }
  1890. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1891. } # ac_fn_c_check_header_compile
  1892. # ac_fn_c_check_func LINENO FUNC VAR
  1893. # ----------------------------------
  1894. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1895. ac_fn_c_check_func ()
  1896. {
  1897. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1899. printf %s "checking for $2... " >&6; }
  1900. if eval test \${$3+y}
  1901. then :
  1902. printf %s "(cached) " >&6
  1903. else $as_nop
  1904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1905. /* end confdefs.h. */
  1906. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1907. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1908. #define $2 innocuous_$2
  1909. /* System header to define __stub macros and hopefully few prototypes,
  1910. which can conflict with char $2 (); below. */
  1911. #include <limits.h>
  1912. #undef $2
  1913. /* Override any GCC internal prototype to avoid an error.
  1914. Use char because int might match the return type of a GCC
  1915. builtin and then its argument prototype would still apply. */
  1916. #ifdef __cplusplus
  1917. extern "C"
  1918. #endif
  1919. char $2 ();
  1920. /* The GNU C library defines this for functions which it implements
  1921. to always fail with ENOSYS. Some functions are actually named
  1922. something starting with __ and the normal name is an alias. */
  1923. #if defined __stub_$2 || defined __stub___$2
  1924. choke me
  1925. #endif
  1926. int
  1927. main (void)
  1928. {
  1929. return $2 ();
  1930. ;
  1931. return 0;
  1932. }
  1933. _ACEOF
  1934. if ac_fn_c_try_link "$LINENO"
  1935. then :
  1936. eval "$3=yes"
  1937. else $as_nop
  1938. eval "$3=no"
  1939. fi
  1940. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1941. conftest$ac_exeext conftest.$ac_ext
  1942. fi
  1943. eval ac_res=\$$3
  1944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1945. printf "%s\n" "$ac_res" >&6; }
  1946. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1947. } # ac_fn_c_check_func
  1948. # ac_fn_cxx_try_compile LINENO
  1949. # ----------------------------
  1950. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1951. ac_fn_cxx_try_compile ()
  1952. {
  1953. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1954. rm -f conftest.$ac_objext conftest.beam
  1955. if { { ac_try="$ac_compile"
  1956. case "(($ac_try" in
  1957. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1958. *) ac_try_echo=$ac_try;;
  1959. esac
  1960. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1961. printf "%s\n" "$ac_try_echo"; } >&5
  1962. (eval "$ac_compile") 2>conftest.err
  1963. ac_status=$?
  1964. if test -s conftest.err; then
  1965. grep -v '^ *+' conftest.err >conftest.er1
  1966. cat conftest.er1 >&5
  1967. mv -f conftest.er1 conftest.err
  1968. fi
  1969. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1970. test $ac_status = 0; } && {
  1971. test -z "$ac_cxx_werror_flag" ||
  1972. test ! -s conftest.err
  1973. } && test -s conftest.$ac_objext
  1974. then :
  1975. ac_retval=0
  1976. else $as_nop
  1977. printf "%s\n" "$as_me: failed program was:" >&5
  1978. sed 's/^/| /' conftest.$ac_ext >&5
  1979. ac_retval=1
  1980. fi
  1981. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1982. as_fn_set_status $ac_retval
  1983. } # ac_fn_cxx_try_compile
  1984. # ac_fn_cxx_try_cpp LINENO
  1985. # ------------------------
  1986. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1987. ac_fn_cxx_try_cpp ()
  1988. {
  1989. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1990. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1991. case "(($ac_try" in
  1992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1993. *) ac_try_echo=$ac_try;;
  1994. esac
  1995. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1996. printf "%s\n" "$ac_try_echo"; } >&5
  1997. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1998. ac_status=$?
  1999. if test -s conftest.err; then
  2000. grep -v '^ *+' conftest.err >conftest.er1
  2001. cat conftest.er1 >&5
  2002. mv -f conftest.er1 conftest.err
  2003. fi
  2004. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2005. test $ac_status = 0; } > conftest.i && {
  2006. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2007. test ! -s conftest.err
  2008. }
  2009. then :
  2010. ac_retval=0
  2011. else $as_nop
  2012. printf "%s\n" "$as_me: failed program was:" >&5
  2013. sed 's/^/| /' conftest.$ac_ext >&5
  2014. ac_retval=1
  2015. fi
  2016. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2017. as_fn_set_status $ac_retval
  2018. } # ac_fn_cxx_try_cpp
  2019. # ac_fn_cxx_try_link LINENO
  2020. # -------------------------
  2021. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2022. ac_fn_cxx_try_link ()
  2023. {
  2024. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2025. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2026. if { { ac_try="$ac_link"
  2027. case "(($ac_try" in
  2028. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2029. *) ac_try_echo=$ac_try;;
  2030. esac
  2031. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2032. printf "%s\n" "$ac_try_echo"; } >&5
  2033. (eval "$ac_link") 2>conftest.err
  2034. ac_status=$?
  2035. if test -s conftest.err; then
  2036. grep -v '^ *+' conftest.err >conftest.er1
  2037. cat conftest.er1 >&5
  2038. mv -f conftest.er1 conftest.err
  2039. fi
  2040. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2041. test $ac_status = 0; } && {
  2042. test -z "$ac_cxx_werror_flag" ||
  2043. test ! -s conftest.err
  2044. } && test -s conftest$ac_exeext && {
  2045. test "$cross_compiling" = yes ||
  2046. test -x conftest$ac_exeext
  2047. }
  2048. then :
  2049. ac_retval=0
  2050. else $as_nop
  2051. printf "%s\n" "$as_me: failed program was:" >&5
  2052. sed 's/^/| /' conftest.$ac_ext >&5
  2053. ac_retval=1
  2054. fi
  2055. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2056. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2057. # interfere with the next link command; also delete a directory that is
  2058. # left behind by Apple's compiler. We do this before executing the actions.
  2059. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2060. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2061. as_fn_set_status $ac_retval
  2062. } # ac_fn_cxx_try_link
  2063. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2064. # -------------------------------------------
  2065. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2066. # variable VAR accordingly.
  2067. ac_fn_c_check_type ()
  2068. {
  2069. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2071. printf %s "checking for $2... " >&6; }
  2072. if eval test \${$3+y}
  2073. then :
  2074. printf %s "(cached) " >&6
  2075. else $as_nop
  2076. eval "$3=no"
  2077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2078. /* end confdefs.h. */
  2079. $4
  2080. int
  2081. main (void)
  2082. {
  2083. if (sizeof ($2))
  2084. return 0;
  2085. ;
  2086. return 0;
  2087. }
  2088. _ACEOF
  2089. if ac_fn_c_try_compile "$LINENO"
  2090. then :
  2091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2092. /* end confdefs.h. */
  2093. $4
  2094. int
  2095. main (void)
  2096. {
  2097. if (sizeof (($2)))
  2098. return 0;
  2099. ;
  2100. return 0;
  2101. }
  2102. _ACEOF
  2103. if ac_fn_c_try_compile "$LINENO"
  2104. then :
  2105. else $as_nop
  2106. eval "$3=yes"
  2107. fi
  2108. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2109. fi
  2110. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2111. fi
  2112. eval ac_res=\$$3
  2113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2114. printf "%s\n" "$ac_res" >&6; }
  2115. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2116. } # ac_fn_c_check_type
  2117. # ac_fn_c_try_cpp LINENO
  2118. # ----------------------
  2119. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2120. ac_fn_c_try_cpp ()
  2121. {
  2122. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2123. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2124. case "(($ac_try" in
  2125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2126. *) ac_try_echo=$ac_try;;
  2127. esac
  2128. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2129. printf "%s\n" "$ac_try_echo"; } >&5
  2130. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2131. ac_status=$?
  2132. if test -s conftest.err; then
  2133. grep -v '^ *+' conftest.err >conftest.er1
  2134. cat conftest.er1 >&5
  2135. mv -f conftest.er1 conftest.err
  2136. fi
  2137. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2138. test $ac_status = 0; } > conftest.i && {
  2139. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2140. test ! -s conftest.err
  2141. }
  2142. then :
  2143. ac_retval=0
  2144. else $as_nop
  2145. printf "%s\n" "$as_me: failed program was:" >&5
  2146. sed 's/^/| /' conftest.$ac_ext >&5
  2147. ac_retval=1
  2148. fi
  2149. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2150. as_fn_set_status $ac_retval
  2151. } # ac_fn_c_try_cpp
  2152. # ac_fn_c_try_run LINENO
  2153. # ----------------------
  2154. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2155. # executables *can* be run.
  2156. ac_fn_c_try_run ()
  2157. {
  2158. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2159. if { { ac_try="$ac_link"
  2160. case "(($ac_try" in
  2161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2162. *) ac_try_echo=$ac_try;;
  2163. esac
  2164. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2165. printf "%s\n" "$ac_try_echo"; } >&5
  2166. (eval "$ac_link") 2>&5
  2167. ac_status=$?
  2168. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2169. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2170. { { case "(($ac_try" in
  2171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2172. *) ac_try_echo=$ac_try;;
  2173. esac
  2174. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2175. printf "%s\n" "$ac_try_echo"; } >&5
  2176. (eval "$ac_try") 2>&5
  2177. ac_status=$?
  2178. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2179. test $ac_status = 0; }; }
  2180. then :
  2181. ac_retval=0
  2182. else $as_nop
  2183. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2184. printf "%s\n" "$as_me: failed program was:" >&5
  2185. sed 's/^/| /' conftest.$ac_ext >&5
  2186. ac_retval=$ac_status
  2187. fi
  2188. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2189. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2190. as_fn_set_status $ac_retval
  2191. } # ac_fn_c_try_run
  2192. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2193. # ----------------------------------------------------
  2194. # Tries to find if the field MEMBER exists in type AGGR, after including
  2195. # INCLUDES, setting cache variable VAR accordingly.
  2196. ac_fn_c_check_member ()
  2197. {
  2198. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2200. printf %s "checking for $2.$3... " >&6; }
  2201. if eval test \${$4+y}
  2202. then :
  2203. printf %s "(cached) " >&6
  2204. else $as_nop
  2205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2206. /* end confdefs.h. */
  2207. $5
  2208. int
  2209. main (void)
  2210. {
  2211. static $2 ac_aggr;
  2212. if (ac_aggr.$3)
  2213. return 0;
  2214. ;
  2215. return 0;
  2216. }
  2217. _ACEOF
  2218. if ac_fn_c_try_compile "$LINENO"
  2219. then :
  2220. eval "$4=yes"
  2221. else $as_nop
  2222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2223. /* end confdefs.h. */
  2224. $5
  2225. int
  2226. main (void)
  2227. {
  2228. static $2 ac_aggr;
  2229. if (sizeof ac_aggr.$3)
  2230. return 0;
  2231. ;
  2232. return 0;
  2233. }
  2234. _ACEOF
  2235. if ac_fn_c_try_compile "$LINENO"
  2236. then :
  2237. eval "$4=yes"
  2238. else $as_nop
  2239. eval "$4=no"
  2240. fi
  2241. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2242. fi
  2243. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2244. fi
  2245. eval ac_res=\$$4
  2246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2247. printf "%s\n" "$ac_res" >&6; }
  2248. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2249. } # ac_fn_c_check_member
  2250. ac_configure_args_raw=
  2251. for ac_arg
  2252. do
  2253. case $ac_arg in
  2254. *\'*)
  2255. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2256. esac
  2257. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2258. done
  2259. case $ac_configure_args_raw in
  2260. *$as_nl*)
  2261. ac_safe_unquote= ;;
  2262. *)
  2263. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2264. ac_unsafe_a="$ac_unsafe_z#~"
  2265. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2266. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2267. esac
  2268. cat >config.log <<_ACEOF
  2269. This file contains any messages produced by compilers while
  2270. running configure, to aid debugging if configure makes a mistake.
  2271. It was created by $as_me, which was
  2272. generated by GNU Autoconf 2.71. Invocation command line was
  2273. $ $0$ac_configure_args_raw
  2274. _ACEOF
  2275. exec 5>>config.log
  2276. {
  2277. cat <<_ASUNAME
  2278. ## --------- ##
  2279. ## Platform. ##
  2280. ## --------- ##
  2281. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2282. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2283. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2284. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2285. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2286. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2287. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2288. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2289. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2290. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2291. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2292. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2293. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2294. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2295. _ASUNAME
  2296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2297. for as_dir in $PATH
  2298. do
  2299. IFS=$as_save_IFS
  2300. case $as_dir in #(((
  2301. '') as_dir=./ ;;
  2302. */) ;;
  2303. *) as_dir=$as_dir/ ;;
  2304. esac
  2305. printf "%s\n" "PATH: $as_dir"
  2306. done
  2307. IFS=$as_save_IFS
  2308. } >&5
  2309. cat >&5 <<_ACEOF
  2310. ## ----------- ##
  2311. ## Core tests. ##
  2312. ## ----------- ##
  2313. _ACEOF
  2314. # Keep a trace of the command line.
  2315. # Strip out --no-create and --no-recursion so they do not pile up.
  2316. # Strip out --silent because we don't want to record it for future runs.
  2317. # Also quote any args containing shell meta-characters.
  2318. # Make two passes to allow for proper duplicate-argument suppression.
  2319. ac_configure_args=
  2320. ac_configure_args0=
  2321. ac_configure_args1=
  2322. ac_must_keep_next=false
  2323. for ac_pass in 1 2
  2324. do
  2325. for ac_arg
  2326. do
  2327. case $ac_arg in
  2328. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2329. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2330. | -silent | --silent | --silen | --sile | --sil)
  2331. continue ;;
  2332. *\'*)
  2333. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2334. esac
  2335. case $ac_pass in
  2336. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2337. 2)
  2338. as_fn_append ac_configure_args1 " '$ac_arg'"
  2339. if test $ac_must_keep_next = true; then
  2340. ac_must_keep_next=false # Got value, back to normal.
  2341. else
  2342. case $ac_arg in
  2343. *=* | --config-cache | -C | -disable-* | --disable-* \
  2344. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2345. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2346. | -with-* | --with-* | -without-* | --without-* | --x)
  2347. case "$ac_configure_args0 " in
  2348. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2349. esac
  2350. ;;
  2351. -* ) ac_must_keep_next=true ;;
  2352. esac
  2353. fi
  2354. as_fn_append ac_configure_args " '$ac_arg'"
  2355. ;;
  2356. esac
  2357. done
  2358. done
  2359. { ac_configure_args0=; unset ac_configure_args0;}
  2360. { ac_configure_args1=; unset ac_configure_args1;}
  2361. # When interrupted or exit'd, cleanup temporary files, and complete
  2362. # config.log. We remove comments because anyway the quotes in there
  2363. # would cause problems or look ugly.
  2364. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2365. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2366. trap 'exit_status=$?
  2367. # Sanitize IFS.
  2368. IFS=" "" $as_nl"
  2369. # Save into config.log some information that might help in debugging.
  2370. {
  2371. echo
  2372. printf "%s\n" "## ---------------- ##
  2373. ## Cache variables. ##
  2374. ## ---------------- ##"
  2375. echo
  2376. # The following way of writing the cache mishandles newlines in values,
  2377. (
  2378. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2379. eval ac_val=\$$ac_var
  2380. case $ac_val in #(
  2381. *${as_nl}*)
  2382. case $ac_var in #(
  2383. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2384. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2385. esac
  2386. case $ac_var in #(
  2387. _ | IFS | as_nl) ;; #(
  2388. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2389. *) { eval $ac_var=; unset $ac_var;} ;;
  2390. esac ;;
  2391. esac
  2392. done
  2393. (set) 2>&1 |
  2394. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2395. *${as_nl}ac_space=\ *)
  2396. sed -n \
  2397. "s/'\''/'\''\\\\'\'''\''/g;
  2398. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2399. ;; #(
  2400. *)
  2401. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2402. ;;
  2403. esac |
  2404. sort
  2405. )
  2406. echo
  2407. printf "%s\n" "## ----------------- ##
  2408. ## Output variables. ##
  2409. ## ----------------- ##"
  2410. echo
  2411. for ac_var in $ac_subst_vars
  2412. do
  2413. eval ac_val=\$$ac_var
  2414. case $ac_val in
  2415. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2416. esac
  2417. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2418. done | sort
  2419. echo
  2420. if test -n "$ac_subst_files"; then
  2421. printf "%s\n" "## ------------------- ##
  2422. ## File substitutions. ##
  2423. ## ------------------- ##"
  2424. echo
  2425. for ac_var in $ac_subst_files
  2426. do
  2427. eval ac_val=\$$ac_var
  2428. case $ac_val in
  2429. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2430. esac
  2431. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2432. done | sort
  2433. echo
  2434. fi
  2435. if test -s confdefs.h; then
  2436. printf "%s\n" "## ----------- ##
  2437. ## confdefs.h. ##
  2438. ## ----------- ##"
  2439. echo
  2440. cat confdefs.h
  2441. echo
  2442. fi
  2443. test "$ac_signal" != 0 &&
  2444. printf "%s\n" "$as_me: caught signal $ac_signal"
  2445. printf "%s\n" "$as_me: exit $exit_status"
  2446. } >&5
  2447. rm -f core *.core core.conftest.* &&
  2448. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2449. exit $exit_status
  2450. ' 0
  2451. for ac_signal in 1 2 13 15; do
  2452. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2453. done
  2454. ac_signal=0
  2455. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2456. rm -f -r conftest* confdefs.h
  2457. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2458. # Predefined preprocessor variables.
  2459. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2460. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2461. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2462. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2463. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2464. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2465. # Let the site file select an alternate cache file if it wants to.
  2466. # Prefer an explicitly selected file to automatically selected ones.
  2467. if test -n "$CONFIG_SITE"; then
  2468. ac_site_files="$CONFIG_SITE"
  2469. elif test "x$prefix" != xNONE; then
  2470. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2471. else
  2472. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2473. fi
  2474. for ac_site_file in $ac_site_files
  2475. do
  2476. case $ac_site_file in #(
  2477. */*) :
  2478. ;; #(
  2479. *) :
  2480. ac_site_file=./$ac_site_file ;;
  2481. esac
  2482. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2484. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2485. sed 's/^/| /' "$ac_site_file" >&5
  2486. . "$ac_site_file" \
  2487. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2488. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2489. as_fn_error $? "failed to load site script $ac_site_file
  2490. See \`config.log' for more details" "$LINENO" 5; }
  2491. fi
  2492. done
  2493. if test -r "$cache_file"; then
  2494. # Some versions of bash will fail to source /dev/null (special files
  2495. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2496. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2498. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2499. case $cache_file in
  2500. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2501. *) . "./$cache_file";;
  2502. esac
  2503. fi
  2504. else
  2505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2506. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2507. >$cache_file
  2508. fi
  2509. # Test code for whether the C compiler supports C89 (global declarations)
  2510. ac_c_conftest_c89_globals='
  2511. /* Does the compiler advertise C89 conformance?
  2512. Do not test the value of __STDC__, because some compilers set it to 0
  2513. while being otherwise adequately conformant. */
  2514. #if !defined __STDC__
  2515. # error "Compiler does not advertise C89 conformance"
  2516. #endif
  2517. #include <stddef.h>
  2518. #include <stdarg.h>
  2519. struct stat;
  2520. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2521. struct buf { int x; };
  2522. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2523. static char *e (p, i)
  2524. char **p;
  2525. int i;
  2526. {
  2527. return p[i];
  2528. }
  2529. static char *f (char * (*g) (char **, int), char **p, ...)
  2530. {
  2531. char *s;
  2532. va_list v;
  2533. va_start (v,p);
  2534. s = g (p, va_arg (v,int));
  2535. va_end (v);
  2536. return s;
  2537. }
  2538. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2539. function prototypes and stuff, but not \xHH hex character constants.
  2540. These do not provoke an error unfortunately, instead are silently treated
  2541. as an "x". The following induces an error, until -std is added to get
  2542. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2543. array size at least. It is necessary to write \x00 == 0 to get something
  2544. that is true only with -std. */
  2545. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2546. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2547. inside strings and character constants. */
  2548. #define FOO(x) '\''x'\''
  2549. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2550. int test (int i, double x);
  2551. struct s1 {int (*f) (int a);};
  2552. struct s2 {int (*f) (double a);};
  2553. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2554. int, int);'
  2555. # Test code for whether the C compiler supports C89 (body of main).
  2556. ac_c_conftest_c89_main='
  2557. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2558. '
  2559. # Test code for whether the C compiler supports C99 (global declarations)
  2560. ac_c_conftest_c99_globals='
  2561. // Does the compiler advertise C99 conformance?
  2562. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2563. # error "Compiler does not advertise C99 conformance"
  2564. #endif
  2565. #include <stdbool.h>
  2566. extern int puts (const char *);
  2567. extern int printf (const char *, ...);
  2568. extern int dprintf (int, const char *, ...);
  2569. extern void *malloc (size_t);
  2570. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2571. // dprintf is used instead of fprintf to avoid needing to declare
  2572. // FILE and stderr.
  2573. #define debug(...) dprintf (2, __VA_ARGS__)
  2574. #define showlist(...) puts (#__VA_ARGS__)
  2575. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2576. static void
  2577. test_varargs_macros (void)
  2578. {
  2579. int x = 1234;
  2580. int y = 5678;
  2581. debug ("Flag");
  2582. debug ("X = %d\n", x);
  2583. showlist (The first, second, and third items.);
  2584. report (x>y, "x is %d but y is %d", x, y);
  2585. }
  2586. // Check long long types.
  2587. #define BIG64 18446744073709551615ull
  2588. #define BIG32 4294967295ul
  2589. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2590. #if !BIG_OK
  2591. #error "your preprocessor is broken"
  2592. #endif
  2593. #if BIG_OK
  2594. #else
  2595. #error "your preprocessor is broken"
  2596. #endif
  2597. static long long int bignum = -9223372036854775807LL;
  2598. static unsigned long long int ubignum = BIG64;
  2599. struct incomplete_array
  2600. {
  2601. int datasize;
  2602. double data[];
  2603. };
  2604. struct named_init {
  2605. int number;
  2606. const wchar_t *name;
  2607. double average;
  2608. };
  2609. typedef const char *ccp;
  2610. static inline int
  2611. test_restrict (ccp restrict text)
  2612. {
  2613. // See if C++-style comments work.
  2614. // Iterate through items via the restricted pointer.
  2615. // Also check for declarations in for loops.
  2616. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2617. continue;
  2618. return 0;
  2619. }
  2620. // Check varargs and va_copy.
  2621. static bool
  2622. test_varargs (const char *format, ...)
  2623. {
  2624. va_list args;
  2625. va_start (args, format);
  2626. va_list args_copy;
  2627. va_copy (args_copy, args);
  2628. const char *str = "";
  2629. int number = 0;
  2630. float fnumber = 0;
  2631. while (*format)
  2632. {
  2633. switch (*format++)
  2634. {
  2635. case '\''s'\'': // string
  2636. str = va_arg (args_copy, const char *);
  2637. break;
  2638. case '\''d'\'': // int
  2639. number = va_arg (args_copy, int);
  2640. break;
  2641. case '\''f'\'': // float
  2642. fnumber = va_arg (args_copy, double);
  2643. break;
  2644. default:
  2645. break;
  2646. }
  2647. }
  2648. va_end (args_copy);
  2649. va_end (args);
  2650. return *str && number && fnumber;
  2651. }
  2652. '
  2653. # Test code for whether the C compiler supports C99 (body of main).
  2654. ac_c_conftest_c99_main='
  2655. // Check bool.
  2656. _Bool success = false;
  2657. success |= (argc != 0);
  2658. // Check restrict.
  2659. if (test_restrict ("String literal") == 0)
  2660. success = true;
  2661. char *restrict newvar = "Another string";
  2662. // Check varargs.
  2663. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2664. test_varargs_macros ();
  2665. // Check flexible array members.
  2666. struct incomplete_array *ia =
  2667. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2668. ia->datasize = 10;
  2669. for (int i = 0; i < ia->datasize; ++i)
  2670. ia->data[i] = i * 1.234;
  2671. // Check named initializers.
  2672. struct named_init ni = {
  2673. .number = 34,
  2674. .name = L"Test wide string",
  2675. .average = 543.34343,
  2676. };
  2677. ni.number = 58;
  2678. int dynamic_array[ni.number];
  2679. dynamic_array[0] = argv[0][0];
  2680. dynamic_array[ni.number - 1] = 543;
  2681. // work around unused variable warnings
  2682. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2683. || dynamic_array[ni.number - 1] != 543);
  2684. '
  2685. # Test code for whether the C compiler supports C11 (global declarations)
  2686. ac_c_conftest_c11_globals='
  2687. // Does the compiler advertise C11 conformance?
  2688. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2689. # error "Compiler does not advertise C11 conformance"
  2690. #endif
  2691. // Check _Alignas.
  2692. char _Alignas (double) aligned_as_double;
  2693. char _Alignas (0) no_special_alignment;
  2694. extern char aligned_as_int;
  2695. char _Alignas (0) _Alignas (int) aligned_as_int;
  2696. // Check _Alignof.
  2697. enum
  2698. {
  2699. int_alignment = _Alignof (int),
  2700. int_array_alignment = _Alignof (int[100]),
  2701. char_alignment = _Alignof (char)
  2702. };
  2703. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2704. // Check _Noreturn.
  2705. int _Noreturn does_not_return (void) { for (;;) continue; }
  2706. // Check _Static_assert.
  2707. struct test_static_assert
  2708. {
  2709. int x;
  2710. _Static_assert (sizeof (int) <= sizeof (long int),
  2711. "_Static_assert does not work in struct");
  2712. long int y;
  2713. };
  2714. // Check UTF-8 literals.
  2715. #define u8 syntax error!
  2716. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2717. // Check duplicate typedefs.
  2718. typedef long *long_ptr;
  2719. typedef long int *long_ptr;
  2720. typedef long_ptr long_ptr;
  2721. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2722. struct anonymous
  2723. {
  2724. union {
  2725. struct { int i; int j; };
  2726. struct { int k; long int l; } w;
  2727. };
  2728. int m;
  2729. } v1;
  2730. '
  2731. # Test code for whether the C compiler supports C11 (body of main).
  2732. ac_c_conftest_c11_main='
  2733. _Static_assert ((offsetof (struct anonymous, i)
  2734. == offsetof (struct anonymous, w.k)),
  2735. "Anonymous union alignment botch");
  2736. v1.i = 2;
  2737. v1.w.k = 5;
  2738. ok |= v1.i != 5;
  2739. '
  2740. # Test code for whether the C compiler supports C11 (complete).
  2741. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2742. ${ac_c_conftest_c99_globals}
  2743. ${ac_c_conftest_c11_globals}
  2744. int
  2745. main (int argc, char **argv)
  2746. {
  2747. int ok = 0;
  2748. ${ac_c_conftest_c89_main}
  2749. ${ac_c_conftest_c99_main}
  2750. ${ac_c_conftest_c11_main}
  2751. return ok;
  2752. }
  2753. "
  2754. # Test code for whether the C compiler supports C99 (complete).
  2755. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2756. ${ac_c_conftest_c99_globals}
  2757. int
  2758. main (int argc, char **argv)
  2759. {
  2760. int ok = 0;
  2761. ${ac_c_conftest_c89_main}
  2762. ${ac_c_conftest_c99_main}
  2763. return ok;
  2764. }
  2765. "
  2766. # Test code for whether the C compiler supports C89 (complete).
  2767. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2768. int
  2769. main (int argc, char **argv)
  2770. {
  2771. int ok = 0;
  2772. ${ac_c_conftest_c89_main}
  2773. return ok;
  2774. }
  2775. "
  2776. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2777. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2778. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2779. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2780. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2781. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2782. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2783. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2784. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2785. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2786. ac_cxx_conftest_cxx98_globals='
  2787. // Does the compiler advertise C++98 conformance?
  2788. #if !defined __cplusplus || __cplusplus < 199711L
  2789. # error "Compiler does not advertise C++98 conformance"
  2790. #endif
  2791. // These inclusions are to reject old compilers that
  2792. // lack the unsuffixed header files.
  2793. #include <cstdlib>
  2794. #include <exception>
  2795. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2796. extern void assert (int);
  2797. namespace std {
  2798. extern int strcmp (const char *, const char *);
  2799. }
  2800. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2801. using std::exception;
  2802. using std::strcmp;
  2803. namespace {
  2804. void test_exception_syntax()
  2805. {
  2806. try {
  2807. throw "test";
  2808. } catch (const char *s) {
  2809. // Extra parentheses suppress a warning when building autoconf itself,
  2810. // due to lint rules shared with more typical C programs.
  2811. assert (!(strcmp) (s, "test"));
  2812. }
  2813. }
  2814. template <typename T> struct test_template
  2815. {
  2816. T const val;
  2817. explicit test_template(T t) : val(t) {}
  2818. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2819. };
  2820. } // anonymous namespace
  2821. '
  2822. # Test code for whether the C++ compiler supports C++98 (body of main)
  2823. ac_cxx_conftest_cxx98_main='
  2824. assert (argc);
  2825. assert (! argv[0]);
  2826. {
  2827. test_exception_syntax ();
  2828. test_template<double> tt (2.0);
  2829. assert (tt.add (4) == 6.0);
  2830. assert (true && !false);
  2831. }
  2832. '
  2833. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2834. ac_cxx_conftest_cxx11_globals='
  2835. // Does the compiler advertise C++ 2011 conformance?
  2836. #if !defined __cplusplus || __cplusplus < 201103L
  2837. # error "Compiler does not advertise C++11 conformance"
  2838. #endif
  2839. namespace cxx11test
  2840. {
  2841. constexpr int get_val() { return 20; }
  2842. struct testinit
  2843. {
  2844. int i;
  2845. double d;
  2846. };
  2847. class delegate
  2848. {
  2849. public:
  2850. delegate(int n) : n(n) {}
  2851. delegate(): delegate(2354) {}
  2852. virtual int getval() { return this->n; };
  2853. protected:
  2854. int n;
  2855. };
  2856. class overridden : public delegate
  2857. {
  2858. public:
  2859. overridden(int n): delegate(n) {}
  2860. virtual int getval() override final { return this->n * 2; }
  2861. };
  2862. class nocopy
  2863. {
  2864. public:
  2865. nocopy(int i): i(i) {}
  2866. nocopy() = default;
  2867. nocopy(const nocopy&) = delete;
  2868. nocopy & operator=(const nocopy&) = delete;
  2869. private:
  2870. int i;
  2871. };
  2872. // for testing lambda expressions
  2873. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2874. {
  2875. return f(v);
  2876. }
  2877. // for testing variadic templates and trailing return types
  2878. template <typename V> auto sum(V first) -> V
  2879. {
  2880. return first;
  2881. }
  2882. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2883. {
  2884. return first + sum(rest...);
  2885. }
  2886. }
  2887. '
  2888. # Test code for whether the C++ compiler supports C++11 (body of main)
  2889. ac_cxx_conftest_cxx11_main='
  2890. {
  2891. // Test auto and decltype
  2892. auto a1 = 6538;
  2893. auto a2 = 48573953.4;
  2894. auto a3 = "String literal";
  2895. int total = 0;
  2896. for (auto i = a3; *i; ++i) { total += *i; }
  2897. decltype(a2) a4 = 34895.034;
  2898. }
  2899. {
  2900. // Test constexpr
  2901. short sa[cxx11test::get_val()] = { 0 };
  2902. }
  2903. {
  2904. // Test initializer lists
  2905. cxx11test::testinit il = { 4323, 435234.23544 };
  2906. }
  2907. {
  2908. // Test range-based for
  2909. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2910. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2911. for (auto &x : array) { x += 23; }
  2912. }
  2913. {
  2914. // Test lambda expressions
  2915. using cxx11test::eval;
  2916. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2917. double d = 2.0;
  2918. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2919. assert (d == 5.0);
  2920. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2921. assert (d == 5.0);
  2922. }
  2923. {
  2924. // Test use of variadic templates
  2925. using cxx11test::sum;
  2926. auto a = sum(1);
  2927. auto b = sum(1, 2);
  2928. auto c = sum(1.0, 2.0, 3.0);
  2929. }
  2930. {
  2931. // Test constructor delegation
  2932. cxx11test::delegate d1;
  2933. cxx11test::delegate d2();
  2934. cxx11test::delegate d3(45);
  2935. }
  2936. {
  2937. // Test override and final
  2938. cxx11test::overridden o1(55464);
  2939. }
  2940. {
  2941. // Test nullptr
  2942. char *c = nullptr;
  2943. }
  2944. {
  2945. // Test template brackets
  2946. test_template<::test_template<int>> v(test_template<int>(12));
  2947. }
  2948. {
  2949. // Unicode literals
  2950. char const *utf8 = u8"UTF-8 string \u2500";
  2951. char16_t const *utf16 = u"UTF-8 string \u2500";
  2952. char32_t const *utf32 = U"UTF-32 string \u2500";
  2953. }
  2954. '
  2955. # Test code for whether the C compiler supports C++11 (complete).
  2956. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2957. ${ac_cxx_conftest_cxx11_globals}
  2958. int
  2959. main (int argc, char **argv)
  2960. {
  2961. int ok = 0;
  2962. ${ac_cxx_conftest_cxx98_main}
  2963. ${ac_cxx_conftest_cxx11_main}
  2964. return ok;
  2965. }
  2966. "
  2967. # Test code for whether the C compiler supports C++98 (complete).
  2968. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2969. int
  2970. main (int argc, char **argv)
  2971. {
  2972. int ok = 0;
  2973. ${ac_cxx_conftest_cxx98_main}
  2974. return ok;
  2975. }
  2976. "
  2977. # Auxiliary files required by this configure script.
  2978. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2979. # Locations in which to look for auxiliary files.
  2980. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2981. # Search for a directory containing all of the required auxiliary files,
  2982. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2983. # If we don't find one directory that contains all the files we need,
  2984. # we report the set of missing files from the *first* directory in
  2985. # $ac_aux_dir_candidates and give up.
  2986. ac_missing_aux_files=""
  2987. ac_first_candidate=:
  2988. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2990. as_found=false
  2991. for as_dir in $ac_aux_dir_candidates
  2992. do
  2993. IFS=$as_save_IFS
  2994. case $as_dir in #(((
  2995. '') as_dir=./ ;;
  2996. */) ;;
  2997. *) as_dir=$as_dir/ ;;
  2998. esac
  2999. as_found=:
  3000. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  3001. ac_aux_dir_found=yes
  3002. ac_install_sh=
  3003. for ac_aux in $ac_aux_files
  3004. do
  3005. # As a special case, if "install-sh" is required, that requirement
  3006. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3007. # and $ac_install_sh is set appropriately for whichever one is found.
  3008. if test x"$ac_aux" = x"install-sh"
  3009. then
  3010. if test -f "${as_dir}install-sh"; then
  3011. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3012. ac_install_sh="${as_dir}install-sh -c"
  3013. elif test -f "${as_dir}install.sh"; then
  3014. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3015. ac_install_sh="${as_dir}install.sh -c"
  3016. elif test -f "${as_dir}shtool"; then
  3017. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3018. ac_install_sh="${as_dir}shtool install -c"
  3019. else
  3020. ac_aux_dir_found=no
  3021. if $ac_first_candidate; then
  3022. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3023. else
  3024. break
  3025. fi
  3026. fi
  3027. else
  3028. if test -f "${as_dir}${ac_aux}"; then
  3029. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3030. else
  3031. ac_aux_dir_found=no
  3032. if $ac_first_candidate; then
  3033. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3034. else
  3035. break
  3036. fi
  3037. fi
  3038. fi
  3039. done
  3040. if test "$ac_aux_dir_found" = yes; then
  3041. ac_aux_dir="$as_dir"
  3042. break
  3043. fi
  3044. ac_first_candidate=false
  3045. as_found=false
  3046. done
  3047. IFS=$as_save_IFS
  3048. if $as_found
  3049. then :
  3050. else $as_nop
  3051. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3052. fi
  3053. # These three variables are undocumented and unsupported,
  3054. # and are intended to be withdrawn in a future Autoconf release.
  3055. # They can cause serious problems if a builder's source tree is in a directory
  3056. # whose full name contains unusual characters.
  3057. if test -f "${ac_aux_dir}config.guess"; then
  3058. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3059. fi
  3060. if test -f "${ac_aux_dir}config.sub"; then
  3061. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3062. fi
  3063. if test -f "$ac_aux_dir/configure"; then
  3064. ac_configure="$SHELL ${ac_aux_dir}configure"
  3065. fi
  3066. # Check that the precious variables saved in the cache have kept the same
  3067. # value.
  3068. ac_cache_corrupted=false
  3069. for ac_var in $ac_precious_vars; do
  3070. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3071. eval ac_new_set=\$ac_env_${ac_var}_set
  3072. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3073. eval ac_new_val=\$ac_env_${ac_var}_value
  3074. case $ac_old_set,$ac_new_set in
  3075. set,)
  3076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3077. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3078. ac_cache_corrupted=: ;;
  3079. ,set)
  3080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3081. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3082. ac_cache_corrupted=: ;;
  3083. ,);;
  3084. *)
  3085. if test "x$ac_old_val" != "x$ac_new_val"; then
  3086. # differences in whitespace do not lead to failure.
  3087. ac_old_val_w=`echo x $ac_old_val`
  3088. ac_new_val_w=`echo x $ac_new_val`
  3089. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3091. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3092. ac_cache_corrupted=:
  3093. else
  3094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3095. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3096. eval $ac_var=\$ac_old_val
  3097. fi
  3098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3099. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3101. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3102. fi;;
  3103. esac
  3104. # Pass precious variables to config.status.
  3105. if test "$ac_new_set" = set; then
  3106. case $ac_new_val in
  3107. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3108. *) ac_arg=$ac_var=$ac_new_val ;;
  3109. esac
  3110. case " $ac_configure_args " in
  3111. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3112. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3113. esac
  3114. fi
  3115. done
  3116. if $ac_cache_corrupted; then
  3117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3118. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3120. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3121. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3122. and start over" "$LINENO" 5
  3123. fi
  3124. ## -------------------- ##
  3125. ## Main body of script. ##
  3126. ## -------------------- ##
  3127. ac_ext=c
  3128. ac_cpp='$CPP $CPPFLAGS'
  3129. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3130. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3131. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3132. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3133. orig_CFLAGS="$CFLAGS"
  3134. # See docs/release_checklist.md
  3135. SDL_MAJOR_VERSION=2
  3136. SDL_MINOR_VERSION=25
  3137. SDL_MICRO_VERSION=0
  3138. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3139. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3140. case "$SDL_MINOR_VERSION" in #(
  3141. *[02468]) :
  3142. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3143. *) :
  3144. SDL_INTERFACE_AGE=0 ;; #(
  3145. *) :
  3146. ;;
  3147. esac
  3148. # libtool versioning
  3149. case `pwd` in
  3150. *\ * | *\ *)
  3151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3152. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3153. esac
  3154. macro_version='2.4.6'
  3155. macro_revision='2.4.6'
  3156. ltmain=$ac_aux_dir/ltmain.sh
  3157. # Make sure we can run config.sub.
  3158. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3159. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3161. printf %s "checking build system type... " >&6; }
  3162. if test ${ac_cv_build+y}
  3163. then :
  3164. printf %s "(cached) " >&6
  3165. else $as_nop
  3166. ac_build_alias=$build_alias
  3167. test "x$ac_build_alias" = x &&
  3168. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3169. test "x$ac_build_alias" = x &&
  3170. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3171. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3172. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3173. fi
  3174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3175. printf "%s\n" "$ac_cv_build" >&6; }
  3176. case $ac_cv_build in
  3177. *-*-*) ;;
  3178. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3179. esac
  3180. build=$ac_cv_build
  3181. ac_save_IFS=$IFS; IFS='-'
  3182. set x $ac_cv_build
  3183. shift
  3184. build_cpu=$1
  3185. build_vendor=$2
  3186. shift; shift
  3187. # Remember, the first character of IFS is used to create $*,
  3188. # except with old shells:
  3189. build_os=$*
  3190. IFS=$ac_save_IFS
  3191. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3193. printf %s "checking host system type... " >&6; }
  3194. if test ${ac_cv_host+y}
  3195. then :
  3196. printf %s "(cached) " >&6
  3197. else $as_nop
  3198. if test "x$host_alias" = x; then
  3199. ac_cv_host=$ac_cv_build
  3200. else
  3201. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3202. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3203. fi
  3204. fi
  3205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3206. printf "%s\n" "$ac_cv_host" >&6; }
  3207. case $ac_cv_host in
  3208. *-*-*) ;;
  3209. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3210. esac
  3211. host=$ac_cv_host
  3212. ac_save_IFS=$IFS; IFS='-'
  3213. set x $ac_cv_host
  3214. shift
  3215. host_cpu=$1
  3216. host_vendor=$2
  3217. shift; shift
  3218. # Remember, the first character of IFS is used to create $*,
  3219. # except with old shells:
  3220. host_os=$*
  3221. IFS=$ac_save_IFS
  3222. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3223. # Backslashify metacharacters that are still active within
  3224. # double-quoted strings.
  3225. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3226. # Same as above, but do not quote variable references.
  3227. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3228. # Sed substitution to delay expansion of an escaped shell variable in a
  3229. # double_quote_subst'ed string.
  3230. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3231. # Sed substitution to delay expansion of an escaped single quote.
  3232. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3233. # Sed substitution to avoid accidental globbing in evaled expressions
  3234. no_glob_subst='s/\*/\\\*/g'
  3235. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3236. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3237. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3239. printf %s "checking how to print strings... " >&6; }
  3240. # Test print first, because it will be a builtin if present.
  3241. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3242. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3243. ECHO='print -r --'
  3244. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3245. ECHO='printf %s\n'
  3246. else
  3247. # Use this function as a fallback that always works.
  3248. func_fallback_echo ()
  3249. {
  3250. eval 'cat <<_LTECHO_EOF
  3251. $1
  3252. _LTECHO_EOF'
  3253. }
  3254. ECHO='func_fallback_echo'
  3255. fi
  3256. # func_echo_all arg...
  3257. # Invoke $ECHO with all args, space-separated.
  3258. func_echo_all ()
  3259. {
  3260. $ECHO ""
  3261. }
  3262. case $ECHO in
  3263. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3264. printf "%s\n" "printf" >&6; } ;;
  3265. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3266. printf "%s\n" "print -r" >&6; } ;;
  3267. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3268. printf "%s\n" "cat" >&6; } ;;
  3269. esac
  3270. ac_ext=c
  3271. ac_cpp='$CPP $CPPFLAGS'
  3272. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3273. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3274. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3275. if test -n "$ac_tool_prefix"; then
  3276. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3277. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3279. printf %s "checking for $ac_word... " >&6; }
  3280. if test ${ac_cv_prog_CC+y}
  3281. then :
  3282. printf %s "(cached) " >&6
  3283. else $as_nop
  3284. if test -n "$CC"; then
  3285. ac_cv_prog_CC="$CC" # Let the user override the test.
  3286. else
  3287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3288. for as_dir in $PATH
  3289. do
  3290. IFS=$as_save_IFS
  3291. case $as_dir in #(((
  3292. '') as_dir=./ ;;
  3293. */) ;;
  3294. *) as_dir=$as_dir/ ;;
  3295. esac
  3296. for ac_exec_ext in '' $ac_executable_extensions; do
  3297. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3298. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3299. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3300. break 2
  3301. fi
  3302. done
  3303. done
  3304. IFS=$as_save_IFS
  3305. fi
  3306. fi
  3307. CC=$ac_cv_prog_CC
  3308. if test -n "$CC"; then
  3309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3310. printf "%s\n" "$CC" >&6; }
  3311. else
  3312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3313. printf "%s\n" "no" >&6; }
  3314. fi
  3315. fi
  3316. if test -z "$ac_cv_prog_CC"; then
  3317. ac_ct_CC=$CC
  3318. # Extract the first word of "gcc", so it can be a program name with args.
  3319. set dummy gcc; ac_word=$2
  3320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3321. printf %s "checking for $ac_word... " >&6; }
  3322. if test ${ac_cv_prog_ac_ct_CC+y}
  3323. then :
  3324. printf %s "(cached) " >&6
  3325. else $as_nop
  3326. if test -n "$ac_ct_CC"; then
  3327. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3328. else
  3329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3330. for as_dir in $PATH
  3331. do
  3332. IFS=$as_save_IFS
  3333. case $as_dir in #(((
  3334. '') as_dir=./ ;;
  3335. */) ;;
  3336. *) as_dir=$as_dir/ ;;
  3337. esac
  3338. for ac_exec_ext in '' $ac_executable_extensions; do
  3339. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3340. ac_cv_prog_ac_ct_CC="gcc"
  3341. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3342. break 2
  3343. fi
  3344. done
  3345. done
  3346. IFS=$as_save_IFS
  3347. fi
  3348. fi
  3349. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3350. if test -n "$ac_ct_CC"; then
  3351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3352. printf "%s\n" "$ac_ct_CC" >&6; }
  3353. else
  3354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3355. printf "%s\n" "no" >&6; }
  3356. fi
  3357. if test "x$ac_ct_CC" = x; then
  3358. CC=""
  3359. else
  3360. case $cross_compiling:$ac_tool_warned in
  3361. yes:)
  3362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3363. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3364. ac_tool_warned=yes ;;
  3365. esac
  3366. CC=$ac_ct_CC
  3367. fi
  3368. else
  3369. CC="$ac_cv_prog_CC"
  3370. fi
  3371. if test -z "$CC"; then
  3372. if test -n "$ac_tool_prefix"; then
  3373. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3374. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3376. printf %s "checking for $ac_word... " >&6; }
  3377. if test ${ac_cv_prog_CC+y}
  3378. then :
  3379. printf %s "(cached) " >&6
  3380. else $as_nop
  3381. if test -n "$CC"; then
  3382. ac_cv_prog_CC="$CC" # Let the user override the test.
  3383. else
  3384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3385. for as_dir in $PATH
  3386. do
  3387. IFS=$as_save_IFS
  3388. case $as_dir in #(((
  3389. '') as_dir=./ ;;
  3390. */) ;;
  3391. *) as_dir=$as_dir/ ;;
  3392. esac
  3393. for ac_exec_ext in '' $ac_executable_extensions; do
  3394. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3395. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3396. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3397. break 2
  3398. fi
  3399. done
  3400. done
  3401. IFS=$as_save_IFS
  3402. fi
  3403. fi
  3404. CC=$ac_cv_prog_CC
  3405. if test -n "$CC"; then
  3406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3407. printf "%s\n" "$CC" >&6; }
  3408. else
  3409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3410. printf "%s\n" "no" >&6; }
  3411. fi
  3412. fi
  3413. fi
  3414. if test -z "$CC"; then
  3415. # Extract the first word of "cc", so it can be a program name with args.
  3416. set dummy cc; ac_word=$2
  3417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3418. printf %s "checking for $ac_word... " >&6; }
  3419. if test ${ac_cv_prog_CC+y}
  3420. then :
  3421. printf %s "(cached) " >&6
  3422. else $as_nop
  3423. if test -n "$CC"; then
  3424. ac_cv_prog_CC="$CC" # Let the user override the test.
  3425. else
  3426. ac_prog_rejected=no
  3427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3428. for as_dir in $PATH
  3429. do
  3430. IFS=$as_save_IFS
  3431. case $as_dir in #(((
  3432. '') as_dir=./ ;;
  3433. */) ;;
  3434. *) as_dir=$as_dir/ ;;
  3435. esac
  3436. for ac_exec_ext in '' $ac_executable_extensions; do
  3437. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3438. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3439. ac_prog_rejected=yes
  3440. continue
  3441. fi
  3442. ac_cv_prog_CC="cc"
  3443. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3444. break 2
  3445. fi
  3446. done
  3447. done
  3448. IFS=$as_save_IFS
  3449. if test $ac_prog_rejected = yes; then
  3450. # We found a bogon in the path, so make sure we never use it.
  3451. set dummy $ac_cv_prog_CC
  3452. shift
  3453. if test $# != 0; then
  3454. # We chose a different compiler from the bogus one.
  3455. # However, it has the same basename, so the bogon will be chosen
  3456. # first if we set CC to just the basename; use the full file name.
  3457. shift
  3458. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3459. fi
  3460. fi
  3461. fi
  3462. fi
  3463. CC=$ac_cv_prog_CC
  3464. if test -n "$CC"; then
  3465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3466. printf "%s\n" "$CC" >&6; }
  3467. else
  3468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3469. printf "%s\n" "no" >&6; }
  3470. fi
  3471. fi
  3472. if test -z "$CC"; then
  3473. if test -n "$ac_tool_prefix"; then
  3474. for ac_prog in cl.exe
  3475. do
  3476. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3477. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3479. printf %s "checking for $ac_word... " >&6; }
  3480. if test ${ac_cv_prog_CC+y}
  3481. then :
  3482. printf %s "(cached) " >&6
  3483. else $as_nop
  3484. if test -n "$CC"; then
  3485. ac_cv_prog_CC="$CC" # Let the user override the test.
  3486. else
  3487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3488. for as_dir in $PATH
  3489. do
  3490. IFS=$as_save_IFS
  3491. case $as_dir in #(((
  3492. '') as_dir=./ ;;
  3493. */) ;;
  3494. *) as_dir=$as_dir/ ;;
  3495. esac
  3496. for ac_exec_ext in '' $ac_executable_extensions; do
  3497. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3498. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3499. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3500. break 2
  3501. fi
  3502. done
  3503. done
  3504. IFS=$as_save_IFS
  3505. fi
  3506. fi
  3507. CC=$ac_cv_prog_CC
  3508. if test -n "$CC"; then
  3509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3510. printf "%s\n" "$CC" >&6; }
  3511. else
  3512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3513. printf "%s\n" "no" >&6; }
  3514. fi
  3515. test -n "$CC" && break
  3516. done
  3517. fi
  3518. if test -z "$CC"; then
  3519. ac_ct_CC=$CC
  3520. for ac_prog in cl.exe
  3521. do
  3522. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3523. set dummy $ac_prog; ac_word=$2
  3524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3525. printf %s "checking for $ac_word... " >&6; }
  3526. if test ${ac_cv_prog_ac_ct_CC+y}
  3527. then :
  3528. printf %s "(cached) " >&6
  3529. else $as_nop
  3530. if test -n "$ac_ct_CC"; then
  3531. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3532. else
  3533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3534. for as_dir in $PATH
  3535. do
  3536. IFS=$as_save_IFS
  3537. case $as_dir in #(((
  3538. '') as_dir=./ ;;
  3539. */) ;;
  3540. *) as_dir=$as_dir/ ;;
  3541. esac
  3542. for ac_exec_ext in '' $ac_executable_extensions; do
  3543. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3544. ac_cv_prog_ac_ct_CC="$ac_prog"
  3545. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3546. break 2
  3547. fi
  3548. done
  3549. done
  3550. IFS=$as_save_IFS
  3551. fi
  3552. fi
  3553. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3554. if test -n "$ac_ct_CC"; then
  3555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3556. printf "%s\n" "$ac_ct_CC" >&6; }
  3557. else
  3558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3559. printf "%s\n" "no" >&6; }
  3560. fi
  3561. test -n "$ac_ct_CC" && break
  3562. done
  3563. if test "x$ac_ct_CC" = x; then
  3564. CC=""
  3565. else
  3566. case $cross_compiling:$ac_tool_warned in
  3567. yes:)
  3568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3569. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3570. ac_tool_warned=yes ;;
  3571. esac
  3572. CC=$ac_ct_CC
  3573. fi
  3574. fi
  3575. fi
  3576. if test -z "$CC"; then
  3577. if test -n "$ac_tool_prefix"; then
  3578. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3579. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3581. printf %s "checking for $ac_word... " >&6; }
  3582. if test ${ac_cv_prog_CC+y}
  3583. then :
  3584. printf %s "(cached) " >&6
  3585. else $as_nop
  3586. if test -n "$CC"; then
  3587. ac_cv_prog_CC="$CC" # Let the user override the test.
  3588. else
  3589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3590. for as_dir in $PATH
  3591. do
  3592. IFS=$as_save_IFS
  3593. case $as_dir in #(((
  3594. '') as_dir=./ ;;
  3595. */) ;;
  3596. *) as_dir=$as_dir/ ;;
  3597. esac
  3598. for ac_exec_ext in '' $ac_executable_extensions; do
  3599. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3600. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3601. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3602. break 2
  3603. fi
  3604. done
  3605. done
  3606. IFS=$as_save_IFS
  3607. fi
  3608. fi
  3609. CC=$ac_cv_prog_CC
  3610. if test -n "$CC"; then
  3611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3612. printf "%s\n" "$CC" >&6; }
  3613. else
  3614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3615. printf "%s\n" "no" >&6; }
  3616. fi
  3617. fi
  3618. if test -z "$ac_cv_prog_CC"; then
  3619. ac_ct_CC=$CC
  3620. # Extract the first word of "clang", so it can be a program name with args.
  3621. set dummy clang; ac_word=$2
  3622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3623. printf %s "checking for $ac_word... " >&6; }
  3624. if test ${ac_cv_prog_ac_ct_CC+y}
  3625. then :
  3626. printf %s "(cached) " >&6
  3627. else $as_nop
  3628. if test -n "$ac_ct_CC"; then
  3629. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3630. else
  3631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3632. for as_dir in $PATH
  3633. do
  3634. IFS=$as_save_IFS
  3635. case $as_dir in #(((
  3636. '') as_dir=./ ;;
  3637. */) ;;
  3638. *) as_dir=$as_dir/ ;;
  3639. esac
  3640. for ac_exec_ext in '' $ac_executable_extensions; do
  3641. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3642. ac_cv_prog_ac_ct_CC="clang"
  3643. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3644. break 2
  3645. fi
  3646. done
  3647. done
  3648. IFS=$as_save_IFS
  3649. fi
  3650. fi
  3651. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3652. if test -n "$ac_ct_CC"; then
  3653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3654. printf "%s\n" "$ac_ct_CC" >&6; }
  3655. else
  3656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3657. printf "%s\n" "no" >&6; }
  3658. fi
  3659. if test "x$ac_ct_CC" = x; then
  3660. CC=""
  3661. else
  3662. case $cross_compiling:$ac_tool_warned in
  3663. yes:)
  3664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3665. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3666. ac_tool_warned=yes ;;
  3667. esac
  3668. CC=$ac_ct_CC
  3669. fi
  3670. else
  3671. CC="$ac_cv_prog_CC"
  3672. fi
  3673. fi
  3674. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3675. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3676. as_fn_error $? "no acceptable C compiler found in \$PATH
  3677. See \`config.log' for more details" "$LINENO" 5; }
  3678. # Provide some information about the compiler.
  3679. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3680. set X $ac_compile
  3681. ac_compiler=$2
  3682. for ac_option in --version -v -V -qversion -version; do
  3683. { { ac_try="$ac_compiler $ac_option >&5"
  3684. case "(($ac_try" in
  3685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3686. *) ac_try_echo=$ac_try;;
  3687. esac
  3688. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3689. printf "%s\n" "$ac_try_echo"; } >&5
  3690. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3691. ac_status=$?
  3692. if test -s conftest.err; then
  3693. sed '10a\
  3694. ... rest of stderr output deleted ...
  3695. 10q' conftest.err >conftest.er1
  3696. cat conftest.er1 >&5
  3697. fi
  3698. rm -f conftest.er1 conftest.err
  3699. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3700. test $ac_status = 0; }
  3701. done
  3702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3703. /* end confdefs.h. */
  3704. int
  3705. main (void)
  3706. {
  3707. ;
  3708. return 0;
  3709. }
  3710. _ACEOF
  3711. ac_clean_files_save=$ac_clean_files
  3712. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3713. # Try to create an executable without -o first, disregard a.out.
  3714. # It will help us diagnose broken compilers, and finding out an intuition
  3715. # of exeext.
  3716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3717. printf %s "checking whether the C compiler works... " >&6; }
  3718. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3719. # The possible output files:
  3720. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3721. ac_rmfiles=
  3722. for ac_file in $ac_files
  3723. do
  3724. case $ac_file in
  3725. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3726. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3727. esac
  3728. done
  3729. rm -f $ac_rmfiles
  3730. if { { ac_try="$ac_link_default"
  3731. case "(($ac_try" in
  3732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3733. *) ac_try_echo=$ac_try;;
  3734. esac
  3735. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3736. printf "%s\n" "$ac_try_echo"; } >&5
  3737. (eval "$ac_link_default") 2>&5
  3738. ac_status=$?
  3739. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3740. test $ac_status = 0; }
  3741. then :
  3742. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3743. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3744. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3745. # so that the user can short-circuit this test for compilers unknown to
  3746. # Autoconf.
  3747. for ac_file in $ac_files ''
  3748. do
  3749. test -f "$ac_file" || continue
  3750. case $ac_file in
  3751. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3752. ;;
  3753. [ab].out )
  3754. # We found the default executable, but exeext='' is most
  3755. # certainly right.
  3756. break;;
  3757. *.* )
  3758. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3759. then :; else
  3760. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3761. fi
  3762. # We set ac_cv_exeext here because the later test for it is not
  3763. # safe: cross compilers may not add the suffix if given an `-o'
  3764. # argument, so we may need to know it at that point already.
  3765. # Even if this section looks crufty: it has the advantage of
  3766. # actually working.
  3767. break;;
  3768. * )
  3769. break;;
  3770. esac
  3771. done
  3772. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3773. else $as_nop
  3774. ac_file=''
  3775. fi
  3776. if test -z "$ac_file"
  3777. then :
  3778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3779. printf "%s\n" "no" >&6; }
  3780. printf "%s\n" "$as_me: failed program was:" >&5
  3781. sed 's/^/| /' conftest.$ac_ext >&5
  3782. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3783. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3784. as_fn_error 77 "C compiler cannot create executables
  3785. See \`config.log' for more details" "$LINENO" 5; }
  3786. else $as_nop
  3787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3788. printf "%s\n" "yes" >&6; }
  3789. fi
  3790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3791. printf %s "checking for C compiler default output file name... " >&6; }
  3792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3793. printf "%s\n" "$ac_file" >&6; }
  3794. ac_exeext=$ac_cv_exeext
  3795. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3796. ac_clean_files=$ac_clean_files_save
  3797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3798. printf %s "checking for suffix of executables... " >&6; }
  3799. if { { ac_try="$ac_link"
  3800. case "(($ac_try" in
  3801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3802. *) ac_try_echo=$ac_try;;
  3803. esac
  3804. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3805. printf "%s\n" "$ac_try_echo"; } >&5
  3806. (eval "$ac_link") 2>&5
  3807. ac_status=$?
  3808. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3809. test $ac_status = 0; }
  3810. then :
  3811. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3812. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3813. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3814. # `rm'.
  3815. for ac_file in conftest.exe conftest conftest.*; do
  3816. test -f "$ac_file" || continue
  3817. case $ac_file in
  3818. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3819. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3820. break;;
  3821. * ) break;;
  3822. esac
  3823. done
  3824. else $as_nop
  3825. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3826. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3827. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3828. See \`config.log' for more details" "$LINENO" 5; }
  3829. fi
  3830. rm -f conftest conftest$ac_cv_exeext
  3831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3832. printf "%s\n" "$ac_cv_exeext" >&6; }
  3833. rm -f conftest.$ac_ext
  3834. EXEEXT=$ac_cv_exeext
  3835. ac_exeext=$EXEEXT
  3836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3837. /* end confdefs.h. */
  3838. #include <stdio.h>
  3839. int
  3840. main (void)
  3841. {
  3842. FILE *f = fopen ("conftest.out", "w");
  3843. return ferror (f) || fclose (f) != 0;
  3844. ;
  3845. return 0;
  3846. }
  3847. _ACEOF
  3848. ac_clean_files="$ac_clean_files conftest.out"
  3849. # Check that the compiler produces executables we can run. If not, either
  3850. # the compiler is broken, or we cross compile.
  3851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3852. printf %s "checking whether we are cross compiling... " >&6; }
  3853. if test "$cross_compiling" != yes; then
  3854. { { ac_try="$ac_link"
  3855. case "(($ac_try" in
  3856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3857. *) ac_try_echo=$ac_try;;
  3858. esac
  3859. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3860. printf "%s\n" "$ac_try_echo"; } >&5
  3861. (eval "$ac_link") 2>&5
  3862. ac_status=$?
  3863. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3864. test $ac_status = 0; }
  3865. if { ac_try='./conftest$ac_cv_exeext'
  3866. { { case "(($ac_try" in
  3867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3868. *) ac_try_echo=$ac_try;;
  3869. esac
  3870. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3871. printf "%s\n" "$ac_try_echo"; } >&5
  3872. (eval "$ac_try") 2>&5
  3873. ac_status=$?
  3874. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3875. test $ac_status = 0; }; }; then
  3876. cross_compiling=no
  3877. else
  3878. if test "$cross_compiling" = maybe; then
  3879. cross_compiling=yes
  3880. else
  3881. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3882. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3883. as_fn_error 77 "cannot run C compiled programs.
  3884. If you meant to cross compile, use \`--host'.
  3885. See \`config.log' for more details" "$LINENO" 5; }
  3886. fi
  3887. fi
  3888. fi
  3889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3890. printf "%s\n" "$cross_compiling" >&6; }
  3891. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3892. ac_clean_files=$ac_clean_files_save
  3893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3894. printf %s "checking for suffix of object files... " >&6; }
  3895. if test ${ac_cv_objext+y}
  3896. then :
  3897. printf %s "(cached) " >&6
  3898. else $as_nop
  3899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3900. /* end confdefs.h. */
  3901. int
  3902. main (void)
  3903. {
  3904. ;
  3905. return 0;
  3906. }
  3907. _ACEOF
  3908. rm -f conftest.o conftest.obj
  3909. if { { ac_try="$ac_compile"
  3910. case "(($ac_try" in
  3911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3912. *) ac_try_echo=$ac_try;;
  3913. esac
  3914. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3915. printf "%s\n" "$ac_try_echo"; } >&5
  3916. (eval "$ac_compile") 2>&5
  3917. ac_status=$?
  3918. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3919. test $ac_status = 0; }
  3920. then :
  3921. for ac_file in conftest.o conftest.obj conftest.*; do
  3922. test -f "$ac_file" || continue;
  3923. case $ac_file in
  3924. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3925. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3926. break;;
  3927. esac
  3928. done
  3929. else $as_nop
  3930. printf "%s\n" "$as_me: failed program was:" >&5
  3931. sed 's/^/| /' conftest.$ac_ext >&5
  3932. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3933. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3934. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3935. See \`config.log' for more details" "$LINENO" 5; }
  3936. fi
  3937. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3938. fi
  3939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3940. printf "%s\n" "$ac_cv_objext" >&6; }
  3941. OBJEXT=$ac_cv_objext
  3942. ac_objext=$OBJEXT
  3943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3944. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3945. if test ${ac_cv_c_compiler_gnu+y}
  3946. then :
  3947. printf %s "(cached) " >&6
  3948. else $as_nop
  3949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3950. /* end confdefs.h. */
  3951. int
  3952. main (void)
  3953. {
  3954. #ifndef __GNUC__
  3955. choke me
  3956. #endif
  3957. ;
  3958. return 0;
  3959. }
  3960. _ACEOF
  3961. if ac_fn_c_try_compile "$LINENO"
  3962. then :
  3963. ac_compiler_gnu=yes
  3964. else $as_nop
  3965. ac_compiler_gnu=no
  3966. fi
  3967. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3968. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3969. fi
  3970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3971. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3972. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3973. if test $ac_compiler_gnu = yes; then
  3974. GCC=yes
  3975. else
  3976. GCC=
  3977. fi
  3978. ac_test_CFLAGS=${CFLAGS+y}
  3979. ac_save_CFLAGS=$CFLAGS
  3980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3981. printf %s "checking whether $CC accepts -g... " >&6; }
  3982. if test ${ac_cv_prog_cc_g+y}
  3983. then :
  3984. printf %s "(cached) " >&6
  3985. else $as_nop
  3986. ac_save_c_werror_flag=$ac_c_werror_flag
  3987. ac_c_werror_flag=yes
  3988. ac_cv_prog_cc_g=no
  3989. CFLAGS="-g"
  3990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3991. /* end confdefs.h. */
  3992. int
  3993. main (void)
  3994. {
  3995. ;
  3996. return 0;
  3997. }
  3998. _ACEOF
  3999. if ac_fn_c_try_compile "$LINENO"
  4000. then :
  4001. ac_cv_prog_cc_g=yes
  4002. else $as_nop
  4003. CFLAGS=""
  4004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4005. /* end confdefs.h. */
  4006. int
  4007. main (void)
  4008. {
  4009. ;
  4010. return 0;
  4011. }
  4012. _ACEOF
  4013. if ac_fn_c_try_compile "$LINENO"
  4014. then :
  4015. else $as_nop
  4016. ac_c_werror_flag=$ac_save_c_werror_flag
  4017. CFLAGS="-g"
  4018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4019. /* end confdefs.h. */
  4020. int
  4021. main (void)
  4022. {
  4023. ;
  4024. return 0;
  4025. }
  4026. _ACEOF
  4027. if ac_fn_c_try_compile "$LINENO"
  4028. then :
  4029. ac_cv_prog_cc_g=yes
  4030. fi
  4031. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4032. fi
  4033. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4034. fi
  4035. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4036. ac_c_werror_flag=$ac_save_c_werror_flag
  4037. fi
  4038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4039. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4040. if test $ac_test_CFLAGS; then
  4041. CFLAGS=$ac_save_CFLAGS
  4042. elif test $ac_cv_prog_cc_g = yes; then
  4043. if test "$GCC" = yes; then
  4044. CFLAGS="-g -O2"
  4045. else
  4046. CFLAGS="-g"
  4047. fi
  4048. else
  4049. if test "$GCC" = yes; then
  4050. CFLAGS="-O2"
  4051. else
  4052. CFLAGS=
  4053. fi
  4054. fi
  4055. ac_prog_cc_stdc=no
  4056. if test x$ac_prog_cc_stdc = xno
  4057. then :
  4058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4059. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4060. if test ${ac_cv_prog_cc_c11+y}
  4061. then :
  4062. printf %s "(cached) " >&6
  4063. else $as_nop
  4064. ac_cv_prog_cc_c11=no
  4065. ac_save_CC=$CC
  4066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4067. /* end confdefs.h. */
  4068. $ac_c_conftest_c11_program
  4069. _ACEOF
  4070. for ac_arg in '' -std=gnu11
  4071. do
  4072. CC="$ac_save_CC $ac_arg"
  4073. if ac_fn_c_try_compile "$LINENO"
  4074. then :
  4075. ac_cv_prog_cc_c11=$ac_arg
  4076. fi
  4077. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4078. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4079. done
  4080. rm -f conftest.$ac_ext
  4081. CC=$ac_save_CC
  4082. fi
  4083. if test "x$ac_cv_prog_cc_c11" = xno
  4084. then :
  4085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4086. printf "%s\n" "unsupported" >&6; }
  4087. else $as_nop
  4088. if test "x$ac_cv_prog_cc_c11" = x
  4089. then :
  4090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4091. printf "%s\n" "none needed" >&6; }
  4092. else $as_nop
  4093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4094. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4095. CC="$CC $ac_cv_prog_cc_c11"
  4096. fi
  4097. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4098. ac_prog_cc_stdc=c11
  4099. fi
  4100. fi
  4101. if test x$ac_prog_cc_stdc = xno
  4102. then :
  4103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4104. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4105. if test ${ac_cv_prog_cc_c99+y}
  4106. then :
  4107. printf %s "(cached) " >&6
  4108. else $as_nop
  4109. ac_cv_prog_cc_c99=no
  4110. ac_save_CC=$CC
  4111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4112. /* end confdefs.h. */
  4113. $ac_c_conftest_c99_program
  4114. _ACEOF
  4115. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4116. do
  4117. CC="$ac_save_CC $ac_arg"
  4118. if ac_fn_c_try_compile "$LINENO"
  4119. then :
  4120. ac_cv_prog_cc_c99=$ac_arg
  4121. fi
  4122. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4123. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4124. done
  4125. rm -f conftest.$ac_ext
  4126. CC=$ac_save_CC
  4127. fi
  4128. if test "x$ac_cv_prog_cc_c99" = xno
  4129. then :
  4130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4131. printf "%s\n" "unsupported" >&6; }
  4132. else $as_nop
  4133. if test "x$ac_cv_prog_cc_c99" = x
  4134. then :
  4135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4136. printf "%s\n" "none needed" >&6; }
  4137. else $as_nop
  4138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4139. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4140. CC="$CC $ac_cv_prog_cc_c99"
  4141. fi
  4142. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4143. ac_prog_cc_stdc=c99
  4144. fi
  4145. fi
  4146. if test x$ac_prog_cc_stdc = xno
  4147. then :
  4148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4149. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4150. if test ${ac_cv_prog_cc_c89+y}
  4151. then :
  4152. printf %s "(cached) " >&6
  4153. else $as_nop
  4154. ac_cv_prog_cc_c89=no
  4155. ac_save_CC=$CC
  4156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4157. /* end confdefs.h. */
  4158. $ac_c_conftest_c89_program
  4159. _ACEOF
  4160. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4161. do
  4162. CC="$ac_save_CC $ac_arg"
  4163. if ac_fn_c_try_compile "$LINENO"
  4164. then :
  4165. ac_cv_prog_cc_c89=$ac_arg
  4166. fi
  4167. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4168. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4169. done
  4170. rm -f conftest.$ac_ext
  4171. CC=$ac_save_CC
  4172. fi
  4173. if test "x$ac_cv_prog_cc_c89" = xno
  4174. then :
  4175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4176. printf "%s\n" "unsupported" >&6; }
  4177. else $as_nop
  4178. if test "x$ac_cv_prog_cc_c89" = x
  4179. then :
  4180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4181. printf "%s\n" "none needed" >&6; }
  4182. else $as_nop
  4183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4184. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4185. CC="$CC $ac_cv_prog_cc_c89"
  4186. fi
  4187. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4188. ac_prog_cc_stdc=c89
  4189. fi
  4190. fi
  4191. ac_ext=c
  4192. ac_cpp='$CPP $CPPFLAGS'
  4193. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4194. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4195. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4197. printf %s "checking for a sed that does not truncate output... " >&6; }
  4198. if test ${ac_cv_path_SED+y}
  4199. then :
  4200. printf %s "(cached) " >&6
  4201. else $as_nop
  4202. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4203. for ac_i in 1 2 3 4 5 6 7; do
  4204. ac_script="$ac_script$as_nl$ac_script"
  4205. done
  4206. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4207. { ac_script=; unset ac_script;}
  4208. if test -z "$SED"; then
  4209. ac_path_SED_found=false
  4210. # Loop through the user's path and test for each of PROGNAME-LIST
  4211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4212. for as_dir in $PATH
  4213. do
  4214. IFS=$as_save_IFS
  4215. case $as_dir in #(((
  4216. '') as_dir=./ ;;
  4217. */) ;;
  4218. *) as_dir=$as_dir/ ;;
  4219. esac
  4220. for ac_prog in sed gsed
  4221. do
  4222. for ac_exec_ext in '' $ac_executable_extensions; do
  4223. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4224. as_fn_executable_p "$ac_path_SED" || continue
  4225. # Check for GNU ac_path_SED and select it if it is found.
  4226. # Check for GNU $ac_path_SED
  4227. case `"$ac_path_SED" --version 2>&1` in
  4228. *GNU*)
  4229. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4230. *)
  4231. ac_count=0
  4232. printf %s 0123456789 >"conftest.in"
  4233. while :
  4234. do
  4235. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4236. mv "conftest.tmp" "conftest.in"
  4237. cp "conftest.in" "conftest.nl"
  4238. printf "%s\n" '' >> "conftest.nl"
  4239. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4240. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4241. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4242. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4243. # Best one so far, save it but keep looking for a better one
  4244. ac_cv_path_SED="$ac_path_SED"
  4245. ac_path_SED_max=$ac_count
  4246. fi
  4247. # 10*(2^10) chars as input seems more than enough
  4248. test $ac_count -gt 10 && break
  4249. done
  4250. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4251. esac
  4252. $ac_path_SED_found && break 3
  4253. done
  4254. done
  4255. done
  4256. IFS=$as_save_IFS
  4257. if test -z "$ac_cv_path_SED"; then
  4258. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4259. fi
  4260. else
  4261. ac_cv_path_SED=$SED
  4262. fi
  4263. fi
  4264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4265. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4266. SED="$ac_cv_path_SED"
  4267. rm -f conftest.sed
  4268. test -z "$SED" && SED=sed
  4269. Xsed="$SED -e 1s/^X//"
  4270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4271. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4272. if test ${ac_cv_path_GREP+y}
  4273. then :
  4274. printf %s "(cached) " >&6
  4275. else $as_nop
  4276. if test -z "$GREP"; then
  4277. ac_path_GREP_found=false
  4278. # Loop through the user's path and test for each of PROGNAME-LIST
  4279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4280. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4281. do
  4282. IFS=$as_save_IFS
  4283. case $as_dir in #(((
  4284. '') as_dir=./ ;;
  4285. */) ;;
  4286. *) as_dir=$as_dir/ ;;
  4287. esac
  4288. for ac_prog in grep ggrep
  4289. do
  4290. for ac_exec_ext in '' $ac_executable_extensions; do
  4291. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4292. as_fn_executable_p "$ac_path_GREP" || continue
  4293. # Check for GNU ac_path_GREP and select it if it is found.
  4294. # Check for GNU $ac_path_GREP
  4295. case `"$ac_path_GREP" --version 2>&1` in
  4296. *GNU*)
  4297. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4298. *)
  4299. ac_count=0
  4300. printf %s 0123456789 >"conftest.in"
  4301. while :
  4302. do
  4303. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4304. mv "conftest.tmp" "conftest.in"
  4305. cp "conftest.in" "conftest.nl"
  4306. printf "%s\n" 'GREP' >> "conftest.nl"
  4307. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4308. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4309. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4310. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4311. # Best one so far, save it but keep looking for a better one
  4312. ac_cv_path_GREP="$ac_path_GREP"
  4313. ac_path_GREP_max=$ac_count
  4314. fi
  4315. # 10*(2^10) chars as input seems more than enough
  4316. test $ac_count -gt 10 && break
  4317. done
  4318. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4319. esac
  4320. $ac_path_GREP_found && break 3
  4321. done
  4322. done
  4323. done
  4324. IFS=$as_save_IFS
  4325. if test -z "$ac_cv_path_GREP"; then
  4326. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4327. fi
  4328. else
  4329. ac_cv_path_GREP=$GREP
  4330. fi
  4331. fi
  4332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4333. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4334. GREP="$ac_cv_path_GREP"
  4335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4336. printf %s "checking for egrep... " >&6; }
  4337. if test ${ac_cv_path_EGREP+y}
  4338. then :
  4339. printf %s "(cached) " >&6
  4340. else $as_nop
  4341. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4342. then ac_cv_path_EGREP="$GREP -E"
  4343. else
  4344. if test -z "$EGREP"; then
  4345. ac_path_EGREP_found=false
  4346. # Loop through the user's path and test for each of PROGNAME-LIST
  4347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4348. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4349. do
  4350. IFS=$as_save_IFS
  4351. case $as_dir in #(((
  4352. '') as_dir=./ ;;
  4353. */) ;;
  4354. *) as_dir=$as_dir/ ;;
  4355. esac
  4356. for ac_prog in egrep
  4357. do
  4358. for ac_exec_ext in '' $ac_executable_extensions; do
  4359. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4360. as_fn_executable_p "$ac_path_EGREP" || continue
  4361. # Check for GNU ac_path_EGREP and select it if it is found.
  4362. # Check for GNU $ac_path_EGREP
  4363. case `"$ac_path_EGREP" --version 2>&1` in
  4364. *GNU*)
  4365. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4366. *)
  4367. ac_count=0
  4368. printf %s 0123456789 >"conftest.in"
  4369. while :
  4370. do
  4371. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4372. mv "conftest.tmp" "conftest.in"
  4373. cp "conftest.in" "conftest.nl"
  4374. printf "%s\n" 'EGREP' >> "conftest.nl"
  4375. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4376. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4377. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4378. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4379. # Best one so far, save it but keep looking for a better one
  4380. ac_cv_path_EGREP="$ac_path_EGREP"
  4381. ac_path_EGREP_max=$ac_count
  4382. fi
  4383. # 10*(2^10) chars as input seems more than enough
  4384. test $ac_count -gt 10 && break
  4385. done
  4386. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4387. esac
  4388. $ac_path_EGREP_found && break 3
  4389. done
  4390. done
  4391. done
  4392. IFS=$as_save_IFS
  4393. if test -z "$ac_cv_path_EGREP"; then
  4394. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4395. fi
  4396. else
  4397. ac_cv_path_EGREP=$EGREP
  4398. fi
  4399. fi
  4400. fi
  4401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4402. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4403. EGREP="$ac_cv_path_EGREP"
  4404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4405. printf %s "checking for fgrep... " >&6; }
  4406. if test ${ac_cv_path_FGREP+y}
  4407. then :
  4408. printf %s "(cached) " >&6
  4409. else $as_nop
  4410. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4411. then ac_cv_path_FGREP="$GREP -F"
  4412. else
  4413. if test -z "$FGREP"; then
  4414. ac_path_FGREP_found=false
  4415. # Loop through the user's path and test for each of PROGNAME-LIST
  4416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4417. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4418. do
  4419. IFS=$as_save_IFS
  4420. case $as_dir in #(((
  4421. '') as_dir=./ ;;
  4422. */) ;;
  4423. *) as_dir=$as_dir/ ;;
  4424. esac
  4425. for ac_prog in fgrep
  4426. do
  4427. for ac_exec_ext in '' $ac_executable_extensions; do
  4428. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4429. as_fn_executable_p "$ac_path_FGREP" || continue
  4430. # Check for GNU ac_path_FGREP and select it if it is found.
  4431. # Check for GNU $ac_path_FGREP
  4432. case `"$ac_path_FGREP" --version 2>&1` in
  4433. *GNU*)
  4434. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4435. *)
  4436. ac_count=0
  4437. printf %s 0123456789 >"conftest.in"
  4438. while :
  4439. do
  4440. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4441. mv "conftest.tmp" "conftest.in"
  4442. cp "conftest.in" "conftest.nl"
  4443. printf "%s\n" 'FGREP' >> "conftest.nl"
  4444. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4445. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4446. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4447. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4448. # Best one so far, save it but keep looking for a better one
  4449. ac_cv_path_FGREP="$ac_path_FGREP"
  4450. ac_path_FGREP_max=$ac_count
  4451. fi
  4452. # 10*(2^10) chars as input seems more than enough
  4453. test $ac_count -gt 10 && break
  4454. done
  4455. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4456. esac
  4457. $ac_path_FGREP_found && break 3
  4458. done
  4459. done
  4460. done
  4461. IFS=$as_save_IFS
  4462. if test -z "$ac_cv_path_FGREP"; then
  4463. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4464. fi
  4465. else
  4466. ac_cv_path_FGREP=$FGREP
  4467. fi
  4468. fi
  4469. fi
  4470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4471. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4472. FGREP="$ac_cv_path_FGREP"
  4473. test -z "$GREP" && GREP=grep
  4474. # Check whether --with-gnu-ld was given.
  4475. if test ${with_gnu_ld+y}
  4476. then :
  4477. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4478. else $as_nop
  4479. with_gnu_ld=no
  4480. fi
  4481. ac_prog=ld
  4482. if test yes = "$GCC"; then
  4483. # Check if gcc -print-prog-name=ld gives a path.
  4484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4485. printf %s "checking for ld used by $CC... " >&6; }
  4486. case $host in
  4487. *-*-mingw*)
  4488. # gcc leaves a trailing carriage return, which upsets mingw
  4489. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4490. *)
  4491. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4492. esac
  4493. case $ac_prog in
  4494. # Accept absolute paths.
  4495. [\\/]* | ?:[\\/]*)
  4496. re_direlt='/[^/][^/]*/\.\./'
  4497. # Canonicalize the pathname of ld
  4498. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4499. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4500. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4501. done
  4502. test -z "$LD" && LD=$ac_prog
  4503. ;;
  4504. "")
  4505. # If it fails, then pretend we aren't using GCC.
  4506. ac_prog=ld
  4507. ;;
  4508. *)
  4509. # If it is relative, then search for the first ld in PATH.
  4510. with_gnu_ld=unknown
  4511. ;;
  4512. esac
  4513. elif test yes = "$with_gnu_ld"; then
  4514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4515. printf %s "checking for GNU ld... " >&6; }
  4516. else
  4517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4518. printf %s "checking for non-GNU ld... " >&6; }
  4519. fi
  4520. if test ${lt_cv_path_LD+y}
  4521. then :
  4522. printf %s "(cached) " >&6
  4523. else $as_nop
  4524. if test -z "$LD"; then
  4525. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4526. for ac_dir in $PATH; do
  4527. IFS=$lt_save_ifs
  4528. test -z "$ac_dir" && ac_dir=.
  4529. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4530. lt_cv_path_LD=$ac_dir/$ac_prog
  4531. # Check to see if the program is GNU ld. I'd rather use --version,
  4532. # but apparently some variants of GNU ld only accept -v.
  4533. # Break only if it was the GNU/non-GNU ld that we prefer.
  4534. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4535. *GNU* | *'with BFD'*)
  4536. test no != "$with_gnu_ld" && break
  4537. ;;
  4538. *)
  4539. test yes != "$with_gnu_ld" && break
  4540. ;;
  4541. esac
  4542. fi
  4543. done
  4544. IFS=$lt_save_ifs
  4545. else
  4546. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4547. fi
  4548. fi
  4549. LD=$lt_cv_path_LD
  4550. if test -n "$LD"; then
  4551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4552. printf "%s\n" "$LD" >&6; }
  4553. else
  4554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4555. printf "%s\n" "no" >&6; }
  4556. fi
  4557. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4559. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4560. if test ${lt_cv_prog_gnu_ld+y}
  4561. then :
  4562. printf %s "(cached) " >&6
  4563. else $as_nop
  4564. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4565. case `$LD -v 2>&1 </dev/null` in
  4566. *GNU* | *'with BFD'*)
  4567. lt_cv_prog_gnu_ld=yes
  4568. ;;
  4569. *)
  4570. lt_cv_prog_gnu_ld=no
  4571. ;;
  4572. esac
  4573. fi
  4574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4575. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4576. with_gnu_ld=$lt_cv_prog_gnu_ld
  4577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4578. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4579. if test ${lt_cv_path_NM+y}
  4580. then :
  4581. printf %s "(cached) " >&6
  4582. else $as_nop
  4583. if test -n "$NM"; then
  4584. # Let the user override the test.
  4585. lt_cv_path_NM=$NM
  4586. else
  4587. lt_nm_to_check=${ac_tool_prefix}nm
  4588. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4589. lt_nm_to_check="$lt_nm_to_check nm"
  4590. fi
  4591. for lt_tmp_nm in $lt_nm_to_check; do
  4592. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4593. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4594. IFS=$lt_save_ifs
  4595. test -z "$ac_dir" && ac_dir=.
  4596. tmp_nm=$ac_dir/$lt_tmp_nm
  4597. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4598. # Check to see if the nm accepts a BSD-compat flag.
  4599. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4600. # nm: unknown option "B" ignored
  4601. # Tru64's nm complains that /dev/null is an invalid object file
  4602. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4603. case $build_os in
  4604. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4605. *) lt_bad_file=/dev/null ;;
  4606. esac
  4607. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4608. *$lt_bad_file* | *'Invalid file or object type'*)
  4609. lt_cv_path_NM="$tmp_nm -B"
  4610. break 2
  4611. ;;
  4612. *)
  4613. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4614. */dev/null*)
  4615. lt_cv_path_NM="$tmp_nm -p"
  4616. break 2
  4617. ;;
  4618. *)
  4619. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4620. continue # so that we can try to find one that supports BSD flags
  4621. ;;
  4622. esac
  4623. ;;
  4624. esac
  4625. fi
  4626. done
  4627. IFS=$lt_save_ifs
  4628. done
  4629. : ${lt_cv_path_NM=no}
  4630. fi
  4631. fi
  4632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4633. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4634. if test no != "$lt_cv_path_NM"; then
  4635. NM=$lt_cv_path_NM
  4636. else
  4637. # Didn't find any BSD compatible name lister, look for dumpbin.
  4638. if test -n "$DUMPBIN"; then :
  4639. # Let the user override the test.
  4640. else
  4641. if test -n "$ac_tool_prefix"; then
  4642. for ac_prog in dumpbin "link -dump"
  4643. do
  4644. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4645. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4647. printf %s "checking for $ac_word... " >&6; }
  4648. if test ${ac_cv_prog_DUMPBIN+y}
  4649. then :
  4650. printf %s "(cached) " >&6
  4651. else $as_nop
  4652. if test -n "$DUMPBIN"; then
  4653. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4654. else
  4655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4656. for as_dir in $PATH
  4657. do
  4658. IFS=$as_save_IFS
  4659. case $as_dir in #(((
  4660. '') as_dir=./ ;;
  4661. */) ;;
  4662. *) as_dir=$as_dir/ ;;
  4663. esac
  4664. for ac_exec_ext in '' $ac_executable_extensions; do
  4665. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4666. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4667. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4668. break 2
  4669. fi
  4670. done
  4671. done
  4672. IFS=$as_save_IFS
  4673. fi
  4674. fi
  4675. DUMPBIN=$ac_cv_prog_DUMPBIN
  4676. if test -n "$DUMPBIN"; then
  4677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4678. printf "%s\n" "$DUMPBIN" >&6; }
  4679. else
  4680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4681. printf "%s\n" "no" >&6; }
  4682. fi
  4683. test -n "$DUMPBIN" && break
  4684. done
  4685. fi
  4686. if test -z "$DUMPBIN"; then
  4687. ac_ct_DUMPBIN=$DUMPBIN
  4688. for ac_prog in dumpbin "link -dump"
  4689. do
  4690. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4691. set dummy $ac_prog; ac_word=$2
  4692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4693. printf %s "checking for $ac_word... " >&6; }
  4694. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4695. then :
  4696. printf %s "(cached) " >&6
  4697. else $as_nop
  4698. if test -n "$ac_ct_DUMPBIN"; then
  4699. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4700. else
  4701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4702. for as_dir in $PATH
  4703. do
  4704. IFS=$as_save_IFS
  4705. case $as_dir in #(((
  4706. '') as_dir=./ ;;
  4707. */) ;;
  4708. *) as_dir=$as_dir/ ;;
  4709. esac
  4710. for ac_exec_ext in '' $ac_executable_extensions; do
  4711. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4712. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4713. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4714. break 2
  4715. fi
  4716. done
  4717. done
  4718. IFS=$as_save_IFS
  4719. fi
  4720. fi
  4721. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4722. if test -n "$ac_ct_DUMPBIN"; then
  4723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4724. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4725. else
  4726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4727. printf "%s\n" "no" >&6; }
  4728. fi
  4729. test -n "$ac_ct_DUMPBIN" && break
  4730. done
  4731. if test "x$ac_ct_DUMPBIN" = x; then
  4732. DUMPBIN=":"
  4733. else
  4734. case $cross_compiling:$ac_tool_warned in
  4735. yes:)
  4736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4737. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4738. ac_tool_warned=yes ;;
  4739. esac
  4740. DUMPBIN=$ac_ct_DUMPBIN
  4741. fi
  4742. fi
  4743. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4744. *COFF*)
  4745. DUMPBIN="$DUMPBIN -symbols -headers"
  4746. ;;
  4747. *)
  4748. DUMPBIN=:
  4749. ;;
  4750. esac
  4751. fi
  4752. if test : != "$DUMPBIN"; then
  4753. NM=$DUMPBIN
  4754. fi
  4755. fi
  4756. test -z "$NM" && NM=nm
  4757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4758. printf %s "checking the name lister ($NM) interface... " >&6; }
  4759. if test ${lt_cv_nm_interface+y}
  4760. then :
  4761. printf %s "(cached) " >&6
  4762. else $as_nop
  4763. lt_cv_nm_interface="BSD nm"
  4764. echo "int some_variable = 0;" > conftest.$ac_ext
  4765. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4766. (eval "$ac_compile" 2>conftest.err)
  4767. cat conftest.err >&5
  4768. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4769. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4770. cat conftest.err >&5
  4771. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4772. cat conftest.out >&5
  4773. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4774. lt_cv_nm_interface="MS dumpbin"
  4775. fi
  4776. rm -f conftest*
  4777. fi
  4778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4779. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4781. printf %s "checking whether ln -s works... " >&6; }
  4782. LN_S=$as_ln_s
  4783. if test "$LN_S" = "ln -s"; then
  4784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4785. printf "%s\n" "yes" >&6; }
  4786. else
  4787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4788. printf "%s\n" "no, using $LN_S" >&6; }
  4789. fi
  4790. # find the maximum length of command line arguments
  4791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4792. printf %s "checking the maximum length of command line arguments... " >&6; }
  4793. if test ${lt_cv_sys_max_cmd_len+y}
  4794. then :
  4795. printf %s "(cached) " >&6
  4796. else $as_nop
  4797. i=0
  4798. teststring=ABCD
  4799. case $build_os in
  4800. msdosdjgpp*)
  4801. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4802. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4803. # during glob expansion). Even if it were fixed, the result of this
  4804. # check would be larger than it should be.
  4805. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4806. ;;
  4807. gnu*)
  4808. # Under GNU Hurd, this test is not required because there is
  4809. # no limit to the length of command line arguments.
  4810. # Libtool will interpret -1 as no limit whatsoever
  4811. lt_cv_sys_max_cmd_len=-1;
  4812. ;;
  4813. cygwin* | mingw* | cegcc*)
  4814. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4815. # about 5 minutes as the teststring grows exponentially.
  4816. # Worse, since 9x/ME are not pre-emptively multitasking,
  4817. # you end up with a "frozen" computer, even though with patience
  4818. # the test eventually succeeds (with a max line length of 256k).
  4819. # Instead, let's just punt: use the minimum linelength reported by
  4820. # all of the supported platforms: 8192 (on NT/2K/XP).
  4821. lt_cv_sys_max_cmd_len=8192;
  4822. ;;
  4823. mint*)
  4824. # On MiNT this can take a long time and run out of memory.
  4825. lt_cv_sys_max_cmd_len=8192;
  4826. ;;
  4827. amigaos*)
  4828. # On AmigaOS with pdksh, this test takes hours, literally.
  4829. # So we just punt and use a minimum line length of 8192.
  4830. lt_cv_sys_max_cmd_len=8192;
  4831. ;;
  4832. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4833. # This has been around since 386BSD, at least. Likely further.
  4834. if test -x /sbin/sysctl; then
  4835. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4836. elif test -x /usr/sbin/sysctl; then
  4837. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4838. else
  4839. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4840. fi
  4841. # And add a safety zone
  4842. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4843. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4844. ;;
  4845. interix*)
  4846. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4847. lt_cv_sys_max_cmd_len=196608
  4848. ;;
  4849. os2*)
  4850. # The test takes a long time on OS/2.
  4851. lt_cv_sys_max_cmd_len=8192
  4852. ;;
  4853. osf*)
  4854. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4855. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4856. # nice to cause kernel panics so lets avoid the loop below.
  4857. # First set a reasonable default.
  4858. lt_cv_sys_max_cmd_len=16384
  4859. #
  4860. if test -x /sbin/sysconfig; then
  4861. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4862. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4863. esac
  4864. fi
  4865. ;;
  4866. sco3.2v5*)
  4867. lt_cv_sys_max_cmd_len=102400
  4868. ;;
  4869. sysv5* | sco5v6* | sysv4.2uw2*)
  4870. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4871. if test -n "$kargmax"; then
  4872. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4873. else
  4874. lt_cv_sys_max_cmd_len=32768
  4875. fi
  4876. ;;
  4877. *)
  4878. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4879. if test -n "$lt_cv_sys_max_cmd_len" && \
  4880. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4881. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4882. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4883. else
  4884. # Make teststring a little bigger before we do anything with it.
  4885. # a 1K string should be a reasonable start.
  4886. for i in 1 2 3 4 5 6 7 8; do
  4887. teststring=$teststring$teststring
  4888. done
  4889. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4890. # If test is not a shell built-in, we'll probably end up computing a
  4891. # maximum length that is only half of the actual maximum length, but
  4892. # we can't tell.
  4893. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4894. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4895. test 17 != "$i" # 1/2 MB should be enough
  4896. do
  4897. i=`expr $i + 1`
  4898. teststring=$teststring$teststring
  4899. done
  4900. # Only check the string length outside the loop.
  4901. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4902. teststring=
  4903. # Add a significant safety factor because C++ compilers can tack on
  4904. # massive amounts of additional arguments before passing them to the
  4905. # linker. It appears as though 1/2 is a usable value.
  4906. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4907. fi
  4908. ;;
  4909. esac
  4910. fi
  4911. if test -n "$lt_cv_sys_max_cmd_len"; then
  4912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4913. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4914. else
  4915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4916. printf "%s\n" "none" >&6; }
  4917. fi
  4918. max_cmd_len=$lt_cv_sys_max_cmd_len
  4919. : ${CP="cp -f"}
  4920. : ${MV="mv -f"}
  4921. : ${RM="rm -f"}
  4922. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4923. lt_unset=unset
  4924. else
  4925. lt_unset=false
  4926. fi
  4927. # test EBCDIC or ASCII
  4928. case `echo X|tr X '\101'` in
  4929. A) # ASCII based system
  4930. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4931. lt_SP2NL='tr \040 \012'
  4932. lt_NL2SP='tr \015\012 \040\040'
  4933. ;;
  4934. *) # EBCDIC based system
  4935. lt_SP2NL='tr \100 \n'
  4936. lt_NL2SP='tr \r\n \100\100'
  4937. ;;
  4938. esac
  4939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4940. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4941. if test ${lt_cv_to_host_file_cmd+y}
  4942. then :
  4943. printf %s "(cached) " >&6
  4944. else $as_nop
  4945. case $host in
  4946. *-*-mingw* )
  4947. case $build in
  4948. *-*-mingw* ) # actually msys
  4949. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4950. ;;
  4951. *-*-cygwin* )
  4952. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4953. ;;
  4954. * ) # otherwise, assume *nix
  4955. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4956. ;;
  4957. esac
  4958. ;;
  4959. *-*-cygwin* )
  4960. case $build in
  4961. *-*-mingw* ) # actually msys
  4962. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4963. ;;
  4964. *-*-cygwin* )
  4965. lt_cv_to_host_file_cmd=func_convert_file_noop
  4966. ;;
  4967. * ) # otherwise, assume *nix
  4968. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4969. ;;
  4970. esac
  4971. ;;
  4972. * ) # unhandled hosts (and "normal" native builds)
  4973. lt_cv_to_host_file_cmd=func_convert_file_noop
  4974. ;;
  4975. esac
  4976. fi
  4977. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4979. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4981. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4982. if test ${lt_cv_to_tool_file_cmd+y}
  4983. then :
  4984. printf %s "(cached) " >&6
  4985. else $as_nop
  4986. #assume ordinary cross tools, or native build.
  4987. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4988. case $host in
  4989. *-*-mingw* )
  4990. case $build in
  4991. *-*-mingw* ) # actually msys
  4992. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4993. ;;
  4994. esac
  4995. ;;
  4996. esac
  4997. fi
  4998. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5000. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5002. printf %s "checking for $LD option to reload object files... " >&6; }
  5003. if test ${lt_cv_ld_reload_flag+y}
  5004. then :
  5005. printf %s "(cached) " >&6
  5006. else $as_nop
  5007. lt_cv_ld_reload_flag='-r'
  5008. fi
  5009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5010. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5011. reload_flag=$lt_cv_ld_reload_flag
  5012. case $reload_flag in
  5013. "" | " "*) ;;
  5014. *) reload_flag=" $reload_flag" ;;
  5015. esac
  5016. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5017. case $host_os in
  5018. cygwin* | mingw* | pw32* | cegcc*)
  5019. if test yes != "$GCC"; then
  5020. reload_cmds=false
  5021. fi
  5022. ;;
  5023. darwin*)
  5024. if test yes = "$GCC"; then
  5025. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5026. else
  5027. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5028. fi
  5029. ;;
  5030. esac
  5031. if test -n "$ac_tool_prefix"; then
  5032. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5033. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5035. printf %s "checking for $ac_word... " >&6; }
  5036. if test ${ac_cv_prog_OBJDUMP+y}
  5037. then :
  5038. printf %s "(cached) " >&6
  5039. else $as_nop
  5040. if test -n "$OBJDUMP"; then
  5041. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5042. else
  5043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5044. for as_dir in $PATH
  5045. do
  5046. IFS=$as_save_IFS
  5047. case $as_dir in #(((
  5048. '') as_dir=./ ;;
  5049. */) ;;
  5050. *) as_dir=$as_dir/ ;;
  5051. esac
  5052. for ac_exec_ext in '' $ac_executable_extensions; do
  5053. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5054. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5055. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5056. break 2
  5057. fi
  5058. done
  5059. done
  5060. IFS=$as_save_IFS
  5061. fi
  5062. fi
  5063. OBJDUMP=$ac_cv_prog_OBJDUMP
  5064. if test -n "$OBJDUMP"; then
  5065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5066. printf "%s\n" "$OBJDUMP" >&6; }
  5067. else
  5068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5069. printf "%s\n" "no" >&6; }
  5070. fi
  5071. fi
  5072. if test -z "$ac_cv_prog_OBJDUMP"; then
  5073. ac_ct_OBJDUMP=$OBJDUMP
  5074. # Extract the first word of "objdump", so it can be a program name with args.
  5075. set dummy objdump; ac_word=$2
  5076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5077. printf %s "checking for $ac_word... " >&6; }
  5078. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5079. then :
  5080. printf %s "(cached) " >&6
  5081. else $as_nop
  5082. if test -n "$ac_ct_OBJDUMP"; then
  5083. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5084. else
  5085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5086. for as_dir in $PATH
  5087. do
  5088. IFS=$as_save_IFS
  5089. case $as_dir in #(((
  5090. '') as_dir=./ ;;
  5091. */) ;;
  5092. *) as_dir=$as_dir/ ;;
  5093. esac
  5094. for ac_exec_ext in '' $ac_executable_extensions; do
  5095. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5096. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5097. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5098. break 2
  5099. fi
  5100. done
  5101. done
  5102. IFS=$as_save_IFS
  5103. fi
  5104. fi
  5105. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5106. if test -n "$ac_ct_OBJDUMP"; then
  5107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5108. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5109. else
  5110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5111. printf "%s\n" "no" >&6; }
  5112. fi
  5113. if test "x$ac_ct_OBJDUMP" = x; then
  5114. OBJDUMP="false"
  5115. else
  5116. case $cross_compiling:$ac_tool_warned in
  5117. yes:)
  5118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5119. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5120. ac_tool_warned=yes ;;
  5121. esac
  5122. OBJDUMP=$ac_ct_OBJDUMP
  5123. fi
  5124. else
  5125. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5126. fi
  5127. test -z "$OBJDUMP" && OBJDUMP=objdump
  5128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5129. printf %s "checking how to recognize dependent libraries... " >&6; }
  5130. if test ${lt_cv_deplibs_check_method+y}
  5131. then :
  5132. printf %s "(cached) " >&6
  5133. else $as_nop
  5134. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5135. lt_cv_file_magic_test_file=
  5136. lt_cv_deplibs_check_method='unknown'
  5137. # Need to set the preceding variable on all platforms that support
  5138. # interlibrary dependencies.
  5139. # 'none' -- dependencies not supported.
  5140. # 'unknown' -- same as none, but documents that we really don't know.
  5141. # 'pass_all' -- all dependencies passed with no checks.
  5142. # 'test_compile' -- check by making test program.
  5143. # 'file_magic [[regex]]' -- check by looking for files in library path
  5144. # that responds to the $file_magic_cmd with a given extended regex.
  5145. # If you have 'file' or equivalent on your system and you're not sure
  5146. # whether 'pass_all' will *always* work, you probably want this one.
  5147. case $host_os in
  5148. aix[4-9]*)
  5149. lt_cv_deplibs_check_method=pass_all
  5150. ;;
  5151. beos*)
  5152. lt_cv_deplibs_check_method=pass_all
  5153. ;;
  5154. bsdi[45]*)
  5155. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5156. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5157. lt_cv_file_magic_test_file=/shlib/libc.so
  5158. ;;
  5159. cygwin*)
  5160. # func_win32_libid is a shell function defined in ltmain.sh
  5161. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5162. lt_cv_file_magic_cmd='func_win32_libid'
  5163. lt_cv_deplibs_check_method=pass_all # SDL customization
  5164. ;;
  5165. mingw* | pw32*)
  5166. # Base MSYS/MinGW do not provide the 'file' command needed by
  5167. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5168. # unless we find 'file', for example because we are cross-compiling.
  5169. if ( file / ) >/dev/null 2>&1; then
  5170. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5171. lt_cv_file_magic_cmd='func_win32_libid'
  5172. else
  5173. # Keep this pattern in sync with the one in func_win32_libid.
  5174. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5175. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5176. fi
  5177. lt_cv_deplibs_check_method=pass_all # SDL customization
  5178. ;;
  5179. cegcc*)
  5180. # use the weaker test based on 'objdump'. See mingw*.
  5181. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5182. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5183. ;;
  5184. darwin* | rhapsody*)
  5185. lt_cv_deplibs_check_method=pass_all
  5186. ;;
  5187. freebsd* | dragonfly* | midnightbsd*)
  5188. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5189. case $host_cpu in
  5190. i*86 )
  5191. # Not sure whether the presence of OpenBSD here was a mistake.
  5192. # Let's accept both of them until this is cleared up.
  5193. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5194. lt_cv_file_magic_cmd=/usr/bin/file
  5195. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5196. ;;
  5197. esac
  5198. else
  5199. lt_cv_deplibs_check_method=pass_all
  5200. fi
  5201. ;;
  5202. haiku*)
  5203. lt_cv_deplibs_check_method=pass_all
  5204. ;;
  5205. hpux10.20* | hpux11*)
  5206. lt_cv_file_magic_cmd=/usr/bin/file
  5207. case $host_cpu in
  5208. ia64*)
  5209. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5210. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5211. ;;
  5212. hppa*64*)
  5213. 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]'
  5214. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5215. ;;
  5216. *)
  5217. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5218. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5219. ;;
  5220. esac
  5221. ;;
  5222. interix[3-9]*)
  5223. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5224. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5225. ;;
  5226. irix5* | irix6* | nonstopux*)
  5227. case $LD in
  5228. *-32|*"-32 ") libmagic=32-bit;;
  5229. *-n32|*"-n32 ") libmagic=N32;;
  5230. *-64|*"-64 ") libmagic=64-bit;;
  5231. *) libmagic=never-match;;
  5232. esac
  5233. lt_cv_deplibs_check_method=pass_all
  5234. ;;
  5235. # This must be glibc/ELF.
  5236. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5237. lt_cv_deplibs_check_method=pass_all
  5238. ;;
  5239. netbsd*)
  5240. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5241. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5242. else
  5243. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5244. fi
  5245. ;;
  5246. newos6*)
  5247. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5248. lt_cv_file_magic_cmd=/usr/bin/file
  5249. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5250. ;;
  5251. *nto* | *qnx*)
  5252. lt_cv_deplibs_check_method=pass_all
  5253. ;;
  5254. openbsd* | bitrig*)
  5255. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5256. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5257. else
  5258. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5259. fi
  5260. ;;
  5261. osf3* | osf4* | osf5*)
  5262. lt_cv_deplibs_check_method=pass_all
  5263. ;;
  5264. rdos*)
  5265. lt_cv_deplibs_check_method=pass_all
  5266. ;;
  5267. solaris*)
  5268. lt_cv_deplibs_check_method=pass_all
  5269. ;;
  5270. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5271. lt_cv_deplibs_check_method=pass_all
  5272. ;;
  5273. sysv4 | sysv4.3*)
  5274. case $host_vendor in
  5275. motorola)
  5276. 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]'
  5277. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5278. ;;
  5279. ncr)
  5280. lt_cv_deplibs_check_method=pass_all
  5281. ;;
  5282. sequent)
  5283. lt_cv_file_magic_cmd='/bin/file'
  5284. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5285. ;;
  5286. sni)
  5287. lt_cv_file_magic_cmd='/bin/file'
  5288. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5289. lt_cv_file_magic_test_file=/lib/libc.so
  5290. ;;
  5291. siemens)
  5292. lt_cv_deplibs_check_method=pass_all
  5293. ;;
  5294. pc)
  5295. lt_cv_deplibs_check_method=pass_all
  5296. ;;
  5297. esac
  5298. ;;
  5299. tpf*)
  5300. lt_cv_deplibs_check_method=pass_all
  5301. ;;
  5302. os2*)
  5303. lt_cv_deplibs_check_method=pass_all
  5304. ;;
  5305. esac
  5306. fi
  5307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5308. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5309. file_magic_glob=
  5310. want_nocaseglob=no
  5311. if test "$build" = "$host"; then
  5312. case $host_os in
  5313. mingw* | pw32*)
  5314. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5315. want_nocaseglob=yes
  5316. else
  5317. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5318. fi
  5319. ;;
  5320. esac
  5321. fi
  5322. file_magic_cmd=$lt_cv_file_magic_cmd
  5323. deplibs_check_method=$lt_cv_deplibs_check_method
  5324. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5325. if test -n "$ac_tool_prefix"; then
  5326. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5327. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5329. printf %s "checking for $ac_word... " >&6; }
  5330. if test ${ac_cv_prog_DLLTOOL+y}
  5331. then :
  5332. printf %s "(cached) " >&6
  5333. else $as_nop
  5334. if test -n "$DLLTOOL"; then
  5335. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5336. else
  5337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5338. for as_dir in $PATH
  5339. do
  5340. IFS=$as_save_IFS
  5341. case $as_dir in #(((
  5342. '') as_dir=./ ;;
  5343. */) ;;
  5344. *) as_dir=$as_dir/ ;;
  5345. esac
  5346. for ac_exec_ext in '' $ac_executable_extensions; do
  5347. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5348. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5349. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5350. break 2
  5351. fi
  5352. done
  5353. done
  5354. IFS=$as_save_IFS
  5355. fi
  5356. fi
  5357. DLLTOOL=$ac_cv_prog_DLLTOOL
  5358. if test -n "$DLLTOOL"; then
  5359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5360. printf "%s\n" "$DLLTOOL" >&6; }
  5361. else
  5362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5363. printf "%s\n" "no" >&6; }
  5364. fi
  5365. fi
  5366. if test -z "$ac_cv_prog_DLLTOOL"; then
  5367. ac_ct_DLLTOOL=$DLLTOOL
  5368. # Extract the first word of "dlltool", so it can be a program name with args.
  5369. set dummy dlltool; ac_word=$2
  5370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5371. printf %s "checking for $ac_word... " >&6; }
  5372. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5373. then :
  5374. printf %s "(cached) " >&6
  5375. else $as_nop
  5376. if test -n "$ac_ct_DLLTOOL"; then
  5377. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5378. else
  5379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5380. for as_dir in $PATH
  5381. do
  5382. IFS=$as_save_IFS
  5383. case $as_dir in #(((
  5384. '') as_dir=./ ;;
  5385. */) ;;
  5386. *) as_dir=$as_dir/ ;;
  5387. esac
  5388. for ac_exec_ext in '' $ac_executable_extensions; do
  5389. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5390. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5391. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5392. break 2
  5393. fi
  5394. done
  5395. done
  5396. IFS=$as_save_IFS
  5397. fi
  5398. fi
  5399. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5400. if test -n "$ac_ct_DLLTOOL"; then
  5401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5402. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5403. else
  5404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5405. printf "%s\n" "no" >&6; }
  5406. fi
  5407. if test "x$ac_ct_DLLTOOL" = x; then
  5408. DLLTOOL="false"
  5409. else
  5410. case $cross_compiling:$ac_tool_warned in
  5411. yes:)
  5412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5413. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5414. ac_tool_warned=yes ;;
  5415. esac
  5416. DLLTOOL=$ac_ct_DLLTOOL
  5417. fi
  5418. else
  5419. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5420. fi
  5421. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5423. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5424. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5425. then :
  5426. printf %s "(cached) " >&6
  5427. else $as_nop
  5428. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5429. case $host_os in
  5430. cygwin* | mingw* | pw32* | cegcc*)
  5431. # two different shell functions defined in ltmain.sh;
  5432. # decide which one to use based on capabilities of $DLLTOOL
  5433. case `$DLLTOOL --help 2>&1` in
  5434. *--identify-strict*)
  5435. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5436. ;;
  5437. *)
  5438. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5439. ;;
  5440. esac
  5441. ;;
  5442. *)
  5443. # fallback: assume linklib IS sharedlib
  5444. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5445. ;;
  5446. esac
  5447. fi
  5448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5449. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5450. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5451. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5452. if test -n "$ac_tool_prefix"; then
  5453. for ac_prog in ar
  5454. do
  5455. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5456. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5458. printf %s "checking for $ac_word... " >&6; }
  5459. if test ${ac_cv_prog_AR+y}
  5460. then :
  5461. printf %s "(cached) " >&6
  5462. else $as_nop
  5463. if test -n "$AR"; then
  5464. ac_cv_prog_AR="$AR" # Let the user override the test.
  5465. else
  5466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5467. for as_dir in $PATH
  5468. do
  5469. IFS=$as_save_IFS
  5470. case $as_dir in #(((
  5471. '') as_dir=./ ;;
  5472. */) ;;
  5473. *) as_dir=$as_dir/ ;;
  5474. esac
  5475. for ac_exec_ext in '' $ac_executable_extensions; do
  5476. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5477. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5478. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5479. break 2
  5480. fi
  5481. done
  5482. done
  5483. IFS=$as_save_IFS
  5484. fi
  5485. fi
  5486. AR=$ac_cv_prog_AR
  5487. if test -n "$AR"; then
  5488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5489. printf "%s\n" "$AR" >&6; }
  5490. else
  5491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5492. printf "%s\n" "no" >&6; }
  5493. fi
  5494. test -n "$AR" && break
  5495. done
  5496. fi
  5497. if test -z "$AR"; then
  5498. ac_ct_AR=$AR
  5499. for ac_prog in ar
  5500. do
  5501. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5502. set dummy $ac_prog; ac_word=$2
  5503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5504. printf %s "checking for $ac_word... " >&6; }
  5505. if test ${ac_cv_prog_ac_ct_AR+y}
  5506. then :
  5507. printf %s "(cached) " >&6
  5508. else $as_nop
  5509. if test -n "$ac_ct_AR"; then
  5510. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5511. else
  5512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5513. for as_dir in $PATH
  5514. do
  5515. IFS=$as_save_IFS
  5516. case $as_dir in #(((
  5517. '') as_dir=./ ;;
  5518. */) ;;
  5519. *) as_dir=$as_dir/ ;;
  5520. esac
  5521. for ac_exec_ext in '' $ac_executable_extensions; do
  5522. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5523. ac_cv_prog_ac_ct_AR="$ac_prog"
  5524. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5525. break 2
  5526. fi
  5527. done
  5528. done
  5529. IFS=$as_save_IFS
  5530. fi
  5531. fi
  5532. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5533. if test -n "$ac_ct_AR"; then
  5534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5535. printf "%s\n" "$ac_ct_AR" >&6; }
  5536. else
  5537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5538. printf "%s\n" "no" >&6; }
  5539. fi
  5540. test -n "$ac_ct_AR" && break
  5541. done
  5542. if test "x$ac_ct_AR" = x; then
  5543. AR="false"
  5544. else
  5545. case $cross_compiling:$ac_tool_warned in
  5546. yes:)
  5547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5548. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5549. ac_tool_warned=yes ;;
  5550. esac
  5551. AR=$ac_ct_AR
  5552. fi
  5553. fi
  5554. : ${AR=ar}
  5555. : ${AR_FLAGS=cru}
  5556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5557. printf %s "checking for archiver @FILE support... " >&6; }
  5558. if test ${lt_cv_ar_at_file+y}
  5559. then :
  5560. printf %s "(cached) " >&6
  5561. else $as_nop
  5562. lt_cv_ar_at_file=no
  5563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5564. /* end confdefs.h. */
  5565. int
  5566. main (void)
  5567. {
  5568. ;
  5569. return 0;
  5570. }
  5571. _ACEOF
  5572. if ac_fn_c_try_compile "$LINENO"
  5573. then :
  5574. echo conftest.$ac_objext > conftest.lst
  5575. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5576. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5577. (eval $lt_ar_try) 2>&5
  5578. ac_status=$?
  5579. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5580. test $ac_status = 0; }
  5581. if test 0 -eq "$ac_status"; then
  5582. # Ensure the archiver fails upon bogus file names.
  5583. rm -f conftest.$ac_objext libconftest.a
  5584. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5585. (eval $lt_ar_try) 2>&5
  5586. ac_status=$?
  5587. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5588. test $ac_status = 0; }
  5589. if test 0 -ne "$ac_status"; then
  5590. lt_cv_ar_at_file=@
  5591. fi
  5592. fi
  5593. rm -f conftest.* libconftest.a
  5594. fi
  5595. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5596. fi
  5597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5598. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5599. if test no = "$lt_cv_ar_at_file"; then
  5600. archiver_list_spec=
  5601. else
  5602. archiver_list_spec=$lt_cv_ar_at_file
  5603. fi
  5604. if test -n "$ac_tool_prefix"; then
  5605. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5606. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5608. printf %s "checking for $ac_word... " >&6; }
  5609. if test ${ac_cv_prog_STRIP+y}
  5610. then :
  5611. printf %s "(cached) " >&6
  5612. else $as_nop
  5613. if test -n "$STRIP"; then
  5614. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5615. else
  5616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5617. for as_dir in $PATH
  5618. do
  5619. IFS=$as_save_IFS
  5620. case $as_dir in #(((
  5621. '') as_dir=./ ;;
  5622. */) ;;
  5623. *) as_dir=$as_dir/ ;;
  5624. esac
  5625. for ac_exec_ext in '' $ac_executable_extensions; do
  5626. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5627. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5628. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5629. break 2
  5630. fi
  5631. done
  5632. done
  5633. IFS=$as_save_IFS
  5634. fi
  5635. fi
  5636. STRIP=$ac_cv_prog_STRIP
  5637. if test -n "$STRIP"; then
  5638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5639. printf "%s\n" "$STRIP" >&6; }
  5640. else
  5641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5642. printf "%s\n" "no" >&6; }
  5643. fi
  5644. fi
  5645. if test -z "$ac_cv_prog_STRIP"; then
  5646. ac_ct_STRIP=$STRIP
  5647. # Extract the first word of "strip", so it can be a program name with args.
  5648. set dummy strip; ac_word=$2
  5649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5650. printf %s "checking for $ac_word... " >&6; }
  5651. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5652. then :
  5653. printf %s "(cached) " >&6
  5654. else $as_nop
  5655. if test -n "$ac_ct_STRIP"; then
  5656. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5657. else
  5658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5659. for as_dir in $PATH
  5660. do
  5661. IFS=$as_save_IFS
  5662. case $as_dir in #(((
  5663. '') as_dir=./ ;;
  5664. */) ;;
  5665. *) as_dir=$as_dir/ ;;
  5666. esac
  5667. for ac_exec_ext in '' $ac_executable_extensions; do
  5668. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5669. ac_cv_prog_ac_ct_STRIP="strip"
  5670. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5671. break 2
  5672. fi
  5673. done
  5674. done
  5675. IFS=$as_save_IFS
  5676. fi
  5677. fi
  5678. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5679. if test -n "$ac_ct_STRIP"; then
  5680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5681. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5682. else
  5683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5684. printf "%s\n" "no" >&6; }
  5685. fi
  5686. if test "x$ac_ct_STRIP" = x; then
  5687. STRIP=":"
  5688. else
  5689. case $cross_compiling:$ac_tool_warned in
  5690. yes:)
  5691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5692. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5693. ac_tool_warned=yes ;;
  5694. esac
  5695. STRIP=$ac_ct_STRIP
  5696. fi
  5697. else
  5698. STRIP="$ac_cv_prog_STRIP"
  5699. fi
  5700. test -z "$STRIP" && STRIP=:
  5701. if test -n "$ac_tool_prefix"; then
  5702. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5703. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5705. printf %s "checking for $ac_word... " >&6; }
  5706. if test ${ac_cv_prog_RANLIB+y}
  5707. then :
  5708. printf %s "(cached) " >&6
  5709. else $as_nop
  5710. if test -n "$RANLIB"; then
  5711. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5712. else
  5713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5714. for as_dir in $PATH
  5715. do
  5716. IFS=$as_save_IFS
  5717. case $as_dir in #(((
  5718. '') as_dir=./ ;;
  5719. */) ;;
  5720. *) as_dir=$as_dir/ ;;
  5721. esac
  5722. for ac_exec_ext in '' $ac_executable_extensions; do
  5723. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5724. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5725. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5726. break 2
  5727. fi
  5728. done
  5729. done
  5730. IFS=$as_save_IFS
  5731. fi
  5732. fi
  5733. RANLIB=$ac_cv_prog_RANLIB
  5734. if test -n "$RANLIB"; then
  5735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5736. printf "%s\n" "$RANLIB" >&6; }
  5737. else
  5738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5739. printf "%s\n" "no" >&6; }
  5740. fi
  5741. fi
  5742. if test -z "$ac_cv_prog_RANLIB"; then
  5743. ac_ct_RANLIB=$RANLIB
  5744. # Extract the first word of "ranlib", so it can be a program name with args.
  5745. set dummy ranlib; ac_word=$2
  5746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5747. printf %s "checking for $ac_word... " >&6; }
  5748. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5749. then :
  5750. printf %s "(cached) " >&6
  5751. else $as_nop
  5752. if test -n "$ac_ct_RANLIB"; then
  5753. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5754. else
  5755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5756. for as_dir in $PATH
  5757. do
  5758. IFS=$as_save_IFS
  5759. case $as_dir in #(((
  5760. '') as_dir=./ ;;
  5761. */) ;;
  5762. *) as_dir=$as_dir/ ;;
  5763. esac
  5764. for ac_exec_ext in '' $ac_executable_extensions; do
  5765. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5766. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5767. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5768. break 2
  5769. fi
  5770. done
  5771. done
  5772. IFS=$as_save_IFS
  5773. fi
  5774. fi
  5775. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5776. if test -n "$ac_ct_RANLIB"; then
  5777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5778. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5779. else
  5780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5781. printf "%s\n" "no" >&6; }
  5782. fi
  5783. if test "x$ac_ct_RANLIB" = x; then
  5784. RANLIB=":"
  5785. else
  5786. case $cross_compiling:$ac_tool_warned in
  5787. yes:)
  5788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5789. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5790. ac_tool_warned=yes ;;
  5791. esac
  5792. RANLIB=$ac_ct_RANLIB
  5793. fi
  5794. else
  5795. RANLIB="$ac_cv_prog_RANLIB"
  5796. fi
  5797. test -z "$RANLIB" && RANLIB=:
  5798. # Determine commands to create old-style static archives.
  5799. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5800. old_postinstall_cmds='chmod 644 $oldlib'
  5801. old_postuninstall_cmds=
  5802. if test -n "$RANLIB"; then
  5803. case $host_os in
  5804. bitrig* | openbsd*)
  5805. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5806. ;;
  5807. *)
  5808. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5809. ;;
  5810. esac
  5811. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5812. fi
  5813. case $host_os in
  5814. darwin*)
  5815. lock_old_archive_extraction=yes ;;
  5816. *)
  5817. lock_old_archive_extraction=no ;;
  5818. esac
  5819. for ac_prog in gawk mawk nawk awk
  5820. do
  5821. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5822. set dummy $ac_prog; ac_word=$2
  5823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5824. printf %s "checking for $ac_word... " >&6; }
  5825. if test ${ac_cv_prog_AWK+y}
  5826. then :
  5827. printf %s "(cached) " >&6
  5828. else $as_nop
  5829. if test -n "$AWK"; then
  5830. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5831. else
  5832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5833. for as_dir in $PATH
  5834. do
  5835. IFS=$as_save_IFS
  5836. case $as_dir in #(((
  5837. '') as_dir=./ ;;
  5838. */) ;;
  5839. *) as_dir=$as_dir/ ;;
  5840. esac
  5841. for ac_exec_ext in '' $ac_executable_extensions; do
  5842. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5843. ac_cv_prog_AWK="$ac_prog"
  5844. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5845. break 2
  5846. fi
  5847. done
  5848. done
  5849. IFS=$as_save_IFS
  5850. fi
  5851. fi
  5852. AWK=$ac_cv_prog_AWK
  5853. if test -n "$AWK"; then
  5854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5855. printf "%s\n" "$AWK" >&6; }
  5856. else
  5857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5858. printf "%s\n" "no" >&6; }
  5859. fi
  5860. test -n "$AWK" && break
  5861. done
  5862. # If no C compiler was specified, use CC.
  5863. LTCC=${LTCC-"$CC"}
  5864. # If no C compiler flags were specified, use CFLAGS.
  5865. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5866. # Allow CC to be a program name with arguments.
  5867. compiler=$CC
  5868. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5870. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5871. if test ${lt_cv_sys_global_symbol_pipe+y}
  5872. then :
  5873. printf %s "(cached) " >&6
  5874. else $as_nop
  5875. # These are sane defaults that work on at least a few old systems.
  5876. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5877. # Character class describing NM global symbol codes.
  5878. symcode='[BCDEGRST]'
  5879. # Regexp to match symbols that can be accessed directly from C.
  5880. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5881. # Define system-specific variables.
  5882. case $host_os in
  5883. aix*)
  5884. symcode='[BCDT]'
  5885. ;;
  5886. cygwin* | mingw* | pw32* | cegcc*)
  5887. symcode='[ABCDGISTW]'
  5888. ;;
  5889. hpux*)
  5890. if test ia64 = "$host_cpu"; then
  5891. symcode='[ABCDEGRST]'
  5892. fi
  5893. ;;
  5894. irix* | nonstopux*)
  5895. symcode='[BCDEGRST]'
  5896. ;;
  5897. osf*)
  5898. symcode='[BCDEGQRST]'
  5899. ;;
  5900. solaris*)
  5901. symcode='[BCDRT]'
  5902. ;;
  5903. sco3.2v5*)
  5904. symcode='[DT]'
  5905. ;;
  5906. sysv4.2uw2*)
  5907. symcode='[DT]'
  5908. ;;
  5909. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5910. symcode='[ABDT]'
  5911. ;;
  5912. sysv4)
  5913. symcode='[DFNSTU]'
  5914. ;;
  5915. esac
  5916. # If we're using GNU nm, then use its standard symbol codes.
  5917. case `$NM -V 2>&1` in
  5918. *GNU* | *'with BFD'*)
  5919. symcode='[ABCDGIRSTW]' ;;
  5920. esac
  5921. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5922. # Gets list of data symbols to import.
  5923. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5924. # Adjust the below global symbol transforms to fixup imported variables.
  5925. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5926. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5927. lt_c_name_lib_hook="\
  5928. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5929. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5930. else
  5931. # Disable hooks by default.
  5932. lt_cv_sys_global_symbol_to_import=
  5933. lt_cdecl_hook=
  5934. lt_c_name_hook=
  5935. lt_c_name_lib_hook=
  5936. fi
  5937. # Transform an extracted symbol line into a proper C declaration.
  5938. # Some systems (esp. on ia64) link data and code symbols differently,
  5939. # so use this general approach.
  5940. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5941. $lt_cdecl_hook\
  5942. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5943. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5944. # Transform an extracted symbol line into symbol name and symbol address
  5945. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5946. $lt_c_name_hook\
  5947. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5948. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5949. # Transform an extracted symbol line into symbol name with lib prefix and
  5950. # symbol address.
  5951. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5952. $lt_c_name_lib_hook\
  5953. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5954. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5955. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5956. # Handle CRLF in mingw tool chain
  5957. opt_cr=
  5958. case $build_os in
  5959. mingw*)
  5960. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5961. ;;
  5962. esac
  5963. # Try without a prefix underscore, then with it.
  5964. for ac_symprfx in "" "_"; do
  5965. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5966. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5967. # Write the raw and C identifiers.
  5968. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5969. # Fake it for dumpbin and say T for any non-static function,
  5970. # D for any global variable and I for any imported variable.
  5971. # Also find C++ and __fastcall symbols from MSVC++,
  5972. # which start with @ or ?.
  5973. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5974. " {last_section=section; section=\$ 3};"\
  5975. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5976. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5977. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5978. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5979. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5980. " \$ 0!~/External *\|/{next};"\
  5981. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5982. " {if(hide[section]) next};"\
  5983. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5984. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5985. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5986. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5987. " ' prfx=^$ac_symprfx"
  5988. else
  5989. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5990. fi
  5991. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5992. # Check to see that the pipe works correctly.
  5993. pipe_works=no
  5994. rm -f conftest*
  5995. cat > conftest.$ac_ext <<_LT_EOF
  5996. #ifdef __cplusplus
  5997. extern "C" {
  5998. #endif
  5999. char nm_test_var;
  6000. void nm_test_func(void);
  6001. void nm_test_func(void){}
  6002. #ifdef __cplusplus
  6003. }
  6004. #endif
  6005. int main(){nm_test_var='a';nm_test_func();return(0);}
  6006. _LT_EOF
  6007. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6008. (eval $ac_compile) 2>&5
  6009. ac_status=$?
  6010. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6011. test $ac_status = 0; }; then
  6012. # Now try to grab the symbols.
  6013. nlist=conftest.nm
  6014. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6015. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6016. ac_status=$?
  6017. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6018. test $ac_status = 0; } && test -s "$nlist"; then
  6019. # Try sorting and uniquifying the output.
  6020. if sort "$nlist" | uniq > "$nlist"T; then
  6021. mv -f "$nlist"T "$nlist"
  6022. else
  6023. rm -f "$nlist"T
  6024. fi
  6025. # Make sure that we snagged all the symbols we need.
  6026. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6027. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6028. cat <<_LT_EOF > conftest.$ac_ext
  6029. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6030. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6031. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6032. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6033. # define LT_DLSYM_CONST
  6034. #elif defined __osf__
  6035. /* This system does not cope well with relocations in const data. */
  6036. # define LT_DLSYM_CONST
  6037. #else
  6038. # define LT_DLSYM_CONST const
  6039. #endif
  6040. #ifdef __cplusplus
  6041. extern "C" {
  6042. #endif
  6043. _LT_EOF
  6044. # Now generate the symbol file.
  6045. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6046. cat <<_LT_EOF >> conftest.$ac_ext
  6047. /* The mapping between symbol names and symbols. */
  6048. LT_DLSYM_CONST struct {
  6049. const char *name;
  6050. void *address;
  6051. }
  6052. lt__PROGRAM__LTX_preloaded_symbols[] =
  6053. {
  6054. { "@PROGRAM@", (void *) 0 },
  6055. _LT_EOF
  6056. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6057. cat <<\_LT_EOF >> conftest.$ac_ext
  6058. {0, (void *) 0}
  6059. };
  6060. /* This works around a problem in FreeBSD linker */
  6061. #ifdef FREEBSD_WORKAROUND
  6062. static const void *lt_preloaded_setup() {
  6063. return lt__PROGRAM__LTX_preloaded_symbols;
  6064. }
  6065. #endif
  6066. #ifdef __cplusplus
  6067. }
  6068. #endif
  6069. _LT_EOF
  6070. # Now try linking the two files.
  6071. mv conftest.$ac_objext conftstm.$ac_objext
  6072. lt_globsym_save_LIBS=$LIBS
  6073. lt_globsym_save_CFLAGS=$CFLAGS
  6074. LIBS=conftstm.$ac_objext
  6075. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6076. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6077. (eval $ac_link) 2>&5
  6078. ac_status=$?
  6079. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6080. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6081. pipe_works=yes
  6082. fi
  6083. LIBS=$lt_globsym_save_LIBS
  6084. CFLAGS=$lt_globsym_save_CFLAGS
  6085. else
  6086. echo "cannot find nm_test_func in $nlist" >&5
  6087. fi
  6088. else
  6089. echo "cannot find nm_test_var in $nlist" >&5
  6090. fi
  6091. else
  6092. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6093. fi
  6094. else
  6095. echo "$progname: failed program was:" >&5
  6096. cat conftest.$ac_ext >&5
  6097. fi
  6098. rm -rf conftest* conftst*
  6099. # Do not use the global_symbol_pipe unless it works.
  6100. if test yes = "$pipe_works"; then
  6101. break
  6102. else
  6103. lt_cv_sys_global_symbol_pipe=
  6104. fi
  6105. done
  6106. fi
  6107. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6108. lt_cv_sys_global_symbol_to_cdecl=
  6109. fi
  6110. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6112. printf "%s\n" "failed" >&6; }
  6113. else
  6114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6115. printf "%s\n" "ok" >&6; }
  6116. fi
  6117. # Response file support.
  6118. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6119. nm_file_list_spec='@'
  6120. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6121. nm_file_list_spec='@'
  6122. fi
  6123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6124. printf %s "checking for sysroot... " >&6; }
  6125. # Check whether --with-sysroot was given.
  6126. if test ${with_sysroot+y}
  6127. then :
  6128. withval=$with_sysroot;
  6129. else $as_nop
  6130. with_sysroot=no
  6131. fi
  6132. lt_sysroot=
  6133. case $with_sysroot in #(
  6134. yes)
  6135. if test yes = "$GCC"; then
  6136. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6137. fi
  6138. ;; #(
  6139. /*)
  6140. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6141. ;; #(
  6142. no|'')
  6143. ;; #(
  6144. *)
  6145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6146. printf "%s\n" "$with_sysroot" >&6; }
  6147. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6148. ;;
  6149. esac
  6150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6151. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6153. printf %s "checking for a working dd... " >&6; }
  6154. if test ${ac_cv_path_lt_DD+y}
  6155. then :
  6156. printf %s "(cached) " >&6
  6157. else $as_nop
  6158. printf 0123456789abcdef0123456789abcdef >conftest.i
  6159. cat conftest.i conftest.i >conftest2.i
  6160. : ${lt_DD:=$DD}
  6161. if test -z "$lt_DD"; then
  6162. ac_path_lt_DD_found=false
  6163. # Loop through the user's path and test for each of PROGNAME-LIST
  6164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6165. for as_dir in $PATH
  6166. do
  6167. IFS=$as_save_IFS
  6168. case $as_dir in #(((
  6169. '') as_dir=./ ;;
  6170. */) ;;
  6171. *) as_dir=$as_dir/ ;;
  6172. esac
  6173. for ac_prog in dd
  6174. do
  6175. for ac_exec_ext in '' $ac_executable_extensions; do
  6176. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6177. as_fn_executable_p "$ac_path_lt_DD" || continue
  6178. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6179. cmp -s conftest.i conftest.out \
  6180. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6181. fi
  6182. $ac_path_lt_DD_found && break 3
  6183. done
  6184. done
  6185. done
  6186. IFS=$as_save_IFS
  6187. if test -z "$ac_cv_path_lt_DD"; then
  6188. :
  6189. fi
  6190. else
  6191. ac_cv_path_lt_DD=$lt_DD
  6192. fi
  6193. rm -f conftest.i conftest2.i conftest.out
  6194. fi
  6195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6196. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6198. printf %s "checking how to truncate binary pipes... " >&6; }
  6199. if test ${lt_cv_truncate_bin+y}
  6200. then :
  6201. printf %s "(cached) " >&6
  6202. else $as_nop
  6203. printf 0123456789abcdef0123456789abcdef >conftest.i
  6204. cat conftest.i conftest.i >conftest2.i
  6205. lt_cv_truncate_bin=
  6206. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6207. cmp -s conftest.i conftest.out \
  6208. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6209. fi
  6210. rm -f conftest.i conftest2.i conftest.out
  6211. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6212. fi
  6213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6214. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6215. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6216. func_cc_basename ()
  6217. {
  6218. for cc_temp in $*""; do
  6219. case $cc_temp in
  6220. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6221. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6222. \-*) ;;
  6223. *) break;;
  6224. esac
  6225. done
  6226. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6227. }
  6228. # Check whether --enable-libtool-lock was given.
  6229. if test ${enable_libtool_lock+y}
  6230. then :
  6231. enableval=$enable_libtool_lock;
  6232. fi
  6233. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6234. # Some flags need to be propagated to the compiler or linker for good
  6235. # libtool support.
  6236. case $host in
  6237. ia64-*-hpux*)
  6238. # Find out what ABI is being produced by ac_compile, and set mode
  6239. # options accordingly.
  6240. echo 'int i;' > conftest.$ac_ext
  6241. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6242. (eval $ac_compile) 2>&5
  6243. ac_status=$?
  6244. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6245. test $ac_status = 0; }; then
  6246. case `/usr/bin/file conftest.$ac_objext` in
  6247. *ELF-32*)
  6248. HPUX_IA64_MODE=32
  6249. ;;
  6250. *ELF-64*)
  6251. HPUX_IA64_MODE=64
  6252. ;;
  6253. esac
  6254. fi
  6255. rm -rf conftest*
  6256. ;;
  6257. *-*-irix6*)
  6258. # Find out what ABI is being produced by ac_compile, and set linker
  6259. # options accordingly.
  6260. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6261. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6262. (eval $ac_compile) 2>&5
  6263. ac_status=$?
  6264. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6265. test $ac_status = 0; }; then
  6266. if test yes = "$lt_cv_prog_gnu_ld"; then
  6267. case `/usr/bin/file conftest.$ac_objext` in
  6268. *32-bit*)
  6269. LD="${LD-ld} -melf32bsmip"
  6270. ;;
  6271. *N32*)
  6272. LD="${LD-ld} -melf32bmipn32"
  6273. ;;
  6274. *64-bit*)
  6275. LD="${LD-ld} -melf64bmip"
  6276. ;;
  6277. esac
  6278. else
  6279. case `/usr/bin/file conftest.$ac_objext` in
  6280. *32-bit*)
  6281. LD="${LD-ld} -32"
  6282. ;;
  6283. *N32*)
  6284. LD="${LD-ld} -n32"
  6285. ;;
  6286. *64-bit*)
  6287. LD="${LD-ld} -64"
  6288. ;;
  6289. esac
  6290. fi
  6291. fi
  6292. rm -rf conftest*
  6293. ;;
  6294. mips64*-*linux*)
  6295. # Find out what ABI is being produced by ac_compile, and set linker
  6296. # options accordingly.
  6297. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6298. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6299. (eval $ac_compile) 2>&5
  6300. ac_status=$?
  6301. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6302. test $ac_status = 0; }; then
  6303. emul=elf
  6304. case `/usr/bin/file conftest.$ac_objext` in
  6305. *32-bit*)
  6306. emul="${emul}32"
  6307. ;;
  6308. *64-bit*)
  6309. emul="${emul}64"
  6310. ;;
  6311. esac
  6312. case `/usr/bin/file conftest.$ac_objext` in
  6313. *MSB*)
  6314. emul="${emul}btsmip"
  6315. ;;
  6316. *LSB*)
  6317. emul="${emul}ltsmip"
  6318. ;;
  6319. esac
  6320. case `/usr/bin/file conftest.$ac_objext` in
  6321. *N32*)
  6322. emul="${emul}n32"
  6323. ;;
  6324. esac
  6325. LD="${LD-ld} -m $emul"
  6326. fi
  6327. rm -rf conftest*
  6328. ;;
  6329. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6330. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6331. # Find out what ABI is being produced by ac_compile, and set linker
  6332. # options accordingly. Note that the listed cases only cover the
  6333. # situations where additional linker options are needed (such as when
  6334. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6335. # vice versa); the common cases where no linker options are needed do
  6336. # not appear in the list.
  6337. echo 'int i;' > conftest.$ac_ext
  6338. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6339. (eval $ac_compile) 2>&5
  6340. ac_status=$?
  6341. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6342. test $ac_status = 0; }; then
  6343. case `/usr/bin/file conftest.o` in
  6344. *32-bit*)
  6345. case $host in
  6346. x86_64-*kfreebsd*-gnu)
  6347. LD="${LD-ld} -m elf_i386_fbsd"
  6348. ;;
  6349. x86_64-*linux*)
  6350. case `/usr/bin/file conftest.o` in
  6351. *x86-64*)
  6352. LD="${LD-ld} -m elf32_x86_64"
  6353. ;;
  6354. *)
  6355. LD="${LD-ld} -m elf_i386"
  6356. ;;
  6357. esac
  6358. ;;
  6359. powerpc64le-*linux*)
  6360. LD="${LD-ld} -m elf32lppclinux"
  6361. ;;
  6362. powerpc64-*linux*)
  6363. LD="${LD-ld} -m elf32ppclinux"
  6364. ;;
  6365. s390x-*linux*)
  6366. LD="${LD-ld} -m elf_s390"
  6367. ;;
  6368. sparc64-*linux*)
  6369. LD="${LD-ld} -m elf32_sparc"
  6370. ;;
  6371. esac
  6372. ;;
  6373. *64-bit*)
  6374. case $host in
  6375. x86_64-*kfreebsd*-gnu)
  6376. LD="${LD-ld} -m elf_x86_64_fbsd"
  6377. ;;
  6378. x86_64-*linux*)
  6379. LD="${LD-ld} -m elf_x86_64"
  6380. ;;
  6381. powerpcle-*linux*|powerpc64le-*linux*)
  6382. LD="${LD-ld} -m elf64lppc"
  6383. ;;
  6384. powerpc-*linux*|powerpc64-*linux*)
  6385. LD="${LD-ld} -m elf64ppc"
  6386. ;;
  6387. s390*-*linux*|s390*-*tpf*)
  6388. LD="${LD-ld} -m elf64_s390"
  6389. ;;
  6390. sparc*-*linux*)
  6391. LD="${LD-ld} -m elf64_sparc"
  6392. ;;
  6393. esac
  6394. ;;
  6395. esac
  6396. fi
  6397. rm -rf conftest*
  6398. ;;
  6399. *-*-sco3.2v5*)
  6400. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6401. SAVE_CFLAGS=$CFLAGS
  6402. CFLAGS="$CFLAGS -belf"
  6403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6404. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6405. if test ${lt_cv_cc_needs_belf+y}
  6406. then :
  6407. printf %s "(cached) " >&6
  6408. else $as_nop
  6409. ac_ext=c
  6410. ac_cpp='$CPP $CPPFLAGS'
  6411. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6412. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6413. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6415. /* end confdefs.h. */
  6416. int
  6417. main (void)
  6418. {
  6419. ;
  6420. return 0;
  6421. }
  6422. _ACEOF
  6423. if ac_fn_c_try_link "$LINENO"
  6424. then :
  6425. lt_cv_cc_needs_belf=yes
  6426. else $as_nop
  6427. lt_cv_cc_needs_belf=no
  6428. fi
  6429. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6430. conftest$ac_exeext conftest.$ac_ext
  6431. ac_ext=c
  6432. ac_cpp='$CPP $CPPFLAGS'
  6433. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6434. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6435. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6436. fi
  6437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6438. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6439. if test yes != "$lt_cv_cc_needs_belf"; then
  6440. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6441. CFLAGS=$SAVE_CFLAGS
  6442. fi
  6443. ;;
  6444. *-*solaris*)
  6445. # Find out what ABI is being produced by ac_compile, and set linker
  6446. # options accordingly.
  6447. echo 'int i;' > conftest.$ac_ext
  6448. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6449. (eval $ac_compile) 2>&5
  6450. ac_status=$?
  6451. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6452. test $ac_status = 0; }; then
  6453. case `/usr/bin/file conftest.o` in
  6454. *64-bit*)
  6455. case $lt_cv_prog_gnu_ld in
  6456. yes*)
  6457. case $host in
  6458. i?86-*-solaris*|x86_64-*-solaris*)
  6459. LD="${LD-ld} -m elf_x86_64"
  6460. ;;
  6461. sparc*-*-solaris*)
  6462. LD="${LD-ld} -m elf64_sparc"
  6463. ;;
  6464. esac
  6465. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6466. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6467. LD=${LD-ld}_sol2
  6468. fi
  6469. ;;
  6470. *)
  6471. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6472. LD="${LD-ld} -64"
  6473. fi
  6474. ;;
  6475. esac
  6476. ;;
  6477. esac
  6478. fi
  6479. rm -rf conftest*
  6480. ;;
  6481. esac
  6482. need_locks=$enable_libtool_lock
  6483. if test -n "$ac_tool_prefix"; then
  6484. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6485. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6487. printf %s "checking for $ac_word... " >&6; }
  6488. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6489. then :
  6490. printf %s "(cached) " >&6
  6491. else $as_nop
  6492. if test -n "$MANIFEST_TOOL"; then
  6493. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6494. else
  6495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6496. for as_dir in $PATH
  6497. do
  6498. IFS=$as_save_IFS
  6499. case $as_dir in #(((
  6500. '') as_dir=./ ;;
  6501. */) ;;
  6502. *) as_dir=$as_dir/ ;;
  6503. esac
  6504. for ac_exec_ext in '' $ac_executable_extensions; do
  6505. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6506. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6507. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6508. break 2
  6509. fi
  6510. done
  6511. done
  6512. IFS=$as_save_IFS
  6513. fi
  6514. fi
  6515. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6516. if test -n "$MANIFEST_TOOL"; then
  6517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6518. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6519. else
  6520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6521. printf "%s\n" "no" >&6; }
  6522. fi
  6523. fi
  6524. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6525. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6526. # Extract the first word of "mt", so it can be a program name with args.
  6527. set dummy mt; ac_word=$2
  6528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6529. printf %s "checking for $ac_word... " >&6; }
  6530. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6531. then :
  6532. printf %s "(cached) " >&6
  6533. else $as_nop
  6534. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6535. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6536. else
  6537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6538. for as_dir in $PATH
  6539. do
  6540. IFS=$as_save_IFS
  6541. case $as_dir in #(((
  6542. '') as_dir=./ ;;
  6543. */) ;;
  6544. *) as_dir=$as_dir/ ;;
  6545. esac
  6546. for ac_exec_ext in '' $ac_executable_extensions; do
  6547. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6548. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6549. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6550. break 2
  6551. fi
  6552. done
  6553. done
  6554. IFS=$as_save_IFS
  6555. fi
  6556. fi
  6557. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6558. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6560. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6561. else
  6562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6563. printf "%s\n" "no" >&6; }
  6564. fi
  6565. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6566. MANIFEST_TOOL=":"
  6567. else
  6568. case $cross_compiling:$ac_tool_warned in
  6569. yes:)
  6570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6571. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6572. ac_tool_warned=yes ;;
  6573. esac
  6574. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6575. fi
  6576. else
  6577. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6578. fi
  6579. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6581. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6582. if test ${lt_cv_path_mainfest_tool+y}
  6583. then :
  6584. printf %s "(cached) " >&6
  6585. else $as_nop
  6586. lt_cv_path_mainfest_tool=no
  6587. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6588. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6589. cat conftest.err >&5
  6590. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6591. lt_cv_path_mainfest_tool=yes
  6592. fi
  6593. rm -f conftest*
  6594. fi
  6595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6596. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6597. if test yes != "$lt_cv_path_mainfest_tool"; then
  6598. MANIFEST_TOOL=:
  6599. fi
  6600. case $host_os in
  6601. rhapsody* | darwin*)
  6602. if test -n "$ac_tool_prefix"; then
  6603. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6604. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6606. printf %s "checking for $ac_word... " >&6; }
  6607. if test ${ac_cv_prog_DSYMUTIL+y}
  6608. then :
  6609. printf %s "(cached) " >&6
  6610. else $as_nop
  6611. if test -n "$DSYMUTIL"; then
  6612. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6613. else
  6614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6615. for as_dir in $PATH
  6616. do
  6617. IFS=$as_save_IFS
  6618. case $as_dir in #(((
  6619. '') as_dir=./ ;;
  6620. */) ;;
  6621. *) as_dir=$as_dir/ ;;
  6622. esac
  6623. for ac_exec_ext in '' $ac_executable_extensions; do
  6624. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6625. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6626. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6627. break 2
  6628. fi
  6629. done
  6630. done
  6631. IFS=$as_save_IFS
  6632. fi
  6633. fi
  6634. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6635. if test -n "$DSYMUTIL"; then
  6636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6637. printf "%s\n" "$DSYMUTIL" >&6; }
  6638. else
  6639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6640. printf "%s\n" "no" >&6; }
  6641. fi
  6642. fi
  6643. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6644. ac_ct_DSYMUTIL=$DSYMUTIL
  6645. # Extract the first word of "dsymutil", so it can be a program name with args.
  6646. set dummy dsymutil; ac_word=$2
  6647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6648. printf %s "checking for $ac_word... " >&6; }
  6649. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6650. then :
  6651. printf %s "(cached) " >&6
  6652. else $as_nop
  6653. if test -n "$ac_ct_DSYMUTIL"; then
  6654. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6655. else
  6656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6657. for as_dir in $PATH
  6658. do
  6659. IFS=$as_save_IFS
  6660. case $as_dir in #(((
  6661. '') as_dir=./ ;;
  6662. */) ;;
  6663. *) as_dir=$as_dir/ ;;
  6664. esac
  6665. for ac_exec_ext in '' $ac_executable_extensions; do
  6666. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6667. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6668. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6669. break 2
  6670. fi
  6671. done
  6672. done
  6673. IFS=$as_save_IFS
  6674. fi
  6675. fi
  6676. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6677. if test -n "$ac_ct_DSYMUTIL"; then
  6678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6679. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6680. else
  6681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6682. printf "%s\n" "no" >&6; }
  6683. fi
  6684. if test "x$ac_ct_DSYMUTIL" = x; then
  6685. DSYMUTIL=":"
  6686. else
  6687. case $cross_compiling:$ac_tool_warned in
  6688. yes:)
  6689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6690. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6691. ac_tool_warned=yes ;;
  6692. esac
  6693. DSYMUTIL=$ac_ct_DSYMUTIL
  6694. fi
  6695. else
  6696. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6697. fi
  6698. if test -n "$ac_tool_prefix"; then
  6699. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6700. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6702. printf %s "checking for $ac_word... " >&6; }
  6703. if test ${ac_cv_prog_NMEDIT+y}
  6704. then :
  6705. printf %s "(cached) " >&6
  6706. else $as_nop
  6707. if test -n "$NMEDIT"; then
  6708. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6709. else
  6710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6711. for as_dir in $PATH
  6712. do
  6713. IFS=$as_save_IFS
  6714. case $as_dir in #(((
  6715. '') as_dir=./ ;;
  6716. */) ;;
  6717. *) as_dir=$as_dir/ ;;
  6718. esac
  6719. for ac_exec_ext in '' $ac_executable_extensions; do
  6720. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6721. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6722. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6723. break 2
  6724. fi
  6725. done
  6726. done
  6727. IFS=$as_save_IFS
  6728. fi
  6729. fi
  6730. NMEDIT=$ac_cv_prog_NMEDIT
  6731. if test -n "$NMEDIT"; then
  6732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6733. printf "%s\n" "$NMEDIT" >&6; }
  6734. else
  6735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6736. printf "%s\n" "no" >&6; }
  6737. fi
  6738. fi
  6739. if test -z "$ac_cv_prog_NMEDIT"; then
  6740. ac_ct_NMEDIT=$NMEDIT
  6741. # Extract the first word of "nmedit", so it can be a program name with args.
  6742. set dummy nmedit; ac_word=$2
  6743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6744. printf %s "checking for $ac_word... " >&6; }
  6745. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6746. then :
  6747. printf %s "(cached) " >&6
  6748. else $as_nop
  6749. if test -n "$ac_ct_NMEDIT"; then
  6750. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6751. else
  6752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6753. for as_dir in $PATH
  6754. do
  6755. IFS=$as_save_IFS
  6756. case $as_dir in #(((
  6757. '') as_dir=./ ;;
  6758. */) ;;
  6759. *) as_dir=$as_dir/ ;;
  6760. esac
  6761. for ac_exec_ext in '' $ac_executable_extensions; do
  6762. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6763. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6764. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6765. break 2
  6766. fi
  6767. done
  6768. done
  6769. IFS=$as_save_IFS
  6770. fi
  6771. fi
  6772. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6773. if test -n "$ac_ct_NMEDIT"; then
  6774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6775. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6776. else
  6777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6778. printf "%s\n" "no" >&6; }
  6779. fi
  6780. if test "x$ac_ct_NMEDIT" = x; then
  6781. NMEDIT=":"
  6782. else
  6783. case $cross_compiling:$ac_tool_warned in
  6784. yes:)
  6785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6786. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6787. ac_tool_warned=yes ;;
  6788. esac
  6789. NMEDIT=$ac_ct_NMEDIT
  6790. fi
  6791. else
  6792. NMEDIT="$ac_cv_prog_NMEDIT"
  6793. fi
  6794. if test -n "$ac_tool_prefix"; then
  6795. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6796. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6798. printf %s "checking for $ac_word... " >&6; }
  6799. if test ${ac_cv_prog_LIPO+y}
  6800. then :
  6801. printf %s "(cached) " >&6
  6802. else $as_nop
  6803. if test -n "$LIPO"; then
  6804. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6805. else
  6806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6807. for as_dir in $PATH
  6808. do
  6809. IFS=$as_save_IFS
  6810. case $as_dir in #(((
  6811. '') as_dir=./ ;;
  6812. */) ;;
  6813. *) as_dir=$as_dir/ ;;
  6814. esac
  6815. for ac_exec_ext in '' $ac_executable_extensions; do
  6816. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6817. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6818. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6819. break 2
  6820. fi
  6821. done
  6822. done
  6823. IFS=$as_save_IFS
  6824. fi
  6825. fi
  6826. LIPO=$ac_cv_prog_LIPO
  6827. if test -n "$LIPO"; then
  6828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6829. printf "%s\n" "$LIPO" >&6; }
  6830. else
  6831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6832. printf "%s\n" "no" >&6; }
  6833. fi
  6834. fi
  6835. if test -z "$ac_cv_prog_LIPO"; then
  6836. ac_ct_LIPO=$LIPO
  6837. # Extract the first word of "lipo", so it can be a program name with args.
  6838. set dummy lipo; ac_word=$2
  6839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6840. printf %s "checking for $ac_word... " >&6; }
  6841. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6842. then :
  6843. printf %s "(cached) " >&6
  6844. else $as_nop
  6845. if test -n "$ac_ct_LIPO"; then
  6846. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6847. else
  6848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6849. for as_dir in $PATH
  6850. do
  6851. IFS=$as_save_IFS
  6852. case $as_dir in #(((
  6853. '') as_dir=./ ;;
  6854. */) ;;
  6855. *) as_dir=$as_dir/ ;;
  6856. esac
  6857. for ac_exec_ext in '' $ac_executable_extensions; do
  6858. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6859. ac_cv_prog_ac_ct_LIPO="lipo"
  6860. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6861. break 2
  6862. fi
  6863. done
  6864. done
  6865. IFS=$as_save_IFS
  6866. fi
  6867. fi
  6868. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6869. if test -n "$ac_ct_LIPO"; then
  6870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6871. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6872. else
  6873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6874. printf "%s\n" "no" >&6; }
  6875. fi
  6876. if test "x$ac_ct_LIPO" = x; then
  6877. LIPO=":"
  6878. else
  6879. case $cross_compiling:$ac_tool_warned in
  6880. yes:)
  6881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6882. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6883. ac_tool_warned=yes ;;
  6884. esac
  6885. LIPO=$ac_ct_LIPO
  6886. fi
  6887. else
  6888. LIPO="$ac_cv_prog_LIPO"
  6889. fi
  6890. if test -n "$ac_tool_prefix"; then
  6891. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6892. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6894. printf %s "checking for $ac_word... " >&6; }
  6895. if test ${ac_cv_prog_OTOOL+y}
  6896. then :
  6897. printf %s "(cached) " >&6
  6898. else $as_nop
  6899. if test -n "$OTOOL"; then
  6900. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6901. else
  6902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6903. for as_dir in $PATH
  6904. do
  6905. IFS=$as_save_IFS
  6906. case $as_dir in #(((
  6907. '') as_dir=./ ;;
  6908. */) ;;
  6909. *) as_dir=$as_dir/ ;;
  6910. esac
  6911. for ac_exec_ext in '' $ac_executable_extensions; do
  6912. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6913. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6914. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6915. break 2
  6916. fi
  6917. done
  6918. done
  6919. IFS=$as_save_IFS
  6920. fi
  6921. fi
  6922. OTOOL=$ac_cv_prog_OTOOL
  6923. if test -n "$OTOOL"; then
  6924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6925. printf "%s\n" "$OTOOL" >&6; }
  6926. else
  6927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6928. printf "%s\n" "no" >&6; }
  6929. fi
  6930. fi
  6931. if test -z "$ac_cv_prog_OTOOL"; then
  6932. ac_ct_OTOOL=$OTOOL
  6933. # Extract the first word of "otool", so it can be a program name with args.
  6934. set dummy otool; ac_word=$2
  6935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6936. printf %s "checking for $ac_word... " >&6; }
  6937. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6938. then :
  6939. printf %s "(cached) " >&6
  6940. else $as_nop
  6941. if test -n "$ac_ct_OTOOL"; then
  6942. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6943. else
  6944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6945. for as_dir in $PATH
  6946. do
  6947. IFS=$as_save_IFS
  6948. case $as_dir in #(((
  6949. '') as_dir=./ ;;
  6950. */) ;;
  6951. *) as_dir=$as_dir/ ;;
  6952. esac
  6953. for ac_exec_ext in '' $ac_executable_extensions; do
  6954. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6955. ac_cv_prog_ac_ct_OTOOL="otool"
  6956. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6957. break 2
  6958. fi
  6959. done
  6960. done
  6961. IFS=$as_save_IFS
  6962. fi
  6963. fi
  6964. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6965. if test -n "$ac_ct_OTOOL"; then
  6966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6967. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6968. else
  6969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6970. printf "%s\n" "no" >&6; }
  6971. fi
  6972. if test "x$ac_ct_OTOOL" = x; then
  6973. OTOOL=":"
  6974. else
  6975. case $cross_compiling:$ac_tool_warned in
  6976. yes:)
  6977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6978. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6979. ac_tool_warned=yes ;;
  6980. esac
  6981. OTOOL=$ac_ct_OTOOL
  6982. fi
  6983. else
  6984. OTOOL="$ac_cv_prog_OTOOL"
  6985. fi
  6986. if test -n "$ac_tool_prefix"; then
  6987. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6988. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6990. printf %s "checking for $ac_word... " >&6; }
  6991. if test ${ac_cv_prog_OTOOL64+y}
  6992. then :
  6993. printf %s "(cached) " >&6
  6994. else $as_nop
  6995. if test -n "$OTOOL64"; then
  6996. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6997. else
  6998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6999. for as_dir in $PATH
  7000. do
  7001. IFS=$as_save_IFS
  7002. case $as_dir in #(((
  7003. '') as_dir=./ ;;
  7004. */) ;;
  7005. *) as_dir=$as_dir/ ;;
  7006. esac
  7007. for ac_exec_ext in '' $ac_executable_extensions; do
  7008. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7009. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7010. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7011. break 2
  7012. fi
  7013. done
  7014. done
  7015. IFS=$as_save_IFS
  7016. fi
  7017. fi
  7018. OTOOL64=$ac_cv_prog_OTOOL64
  7019. if test -n "$OTOOL64"; then
  7020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7021. printf "%s\n" "$OTOOL64" >&6; }
  7022. else
  7023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7024. printf "%s\n" "no" >&6; }
  7025. fi
  7026. fi
  7027. if test -z "$ac_cv_prog_OTOOL64"; then
  7028. ac_ct_OTOOL64=$OTOOL64
  7029. # Extract the first word of "otool64", so it can be a program name with args.
  7030. set dummy otool64; ac_word=$2
  7031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7032. printf %s "checking for $ac_word... " >&6; }
  7033. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7034. then :
  7035. printf %s "(cached) " >&6
  7036. else $as_nop
  7037. if test -n "$ac_ct_OTOOL64"; then
  7038. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7039. else
  7040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7041. for as_dir in $PATH
  7042. do
  7043. IFS=$as_save_IFS
  7044. case $as_dir in #(((
  7045. '') as_dir=./ ;;
  7046. */) ;;
  7047. *) as_dir=$as_dir/ ;;
  7048. esac
  7049. for ac_exec_ext in '' $ac_executable_extensions; do
  7050. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7051. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7052. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7053. break 2
  7054. fi
  7055. done
  7056. done
  7057. IFS=$as_save_IFS
  7058. fi
  7059. fi
  7060. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7061. if test -n "$ac_ct_OTOOL64"; then
  7062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7063. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7064. else
  7065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7066. printf "%s\n" "no" >&6; }
  7067. fi
  7068. if test "x$ac_ct_OTOOL64" = x; then
  7069. OTOOL64=":"
  7070. else
  7071. case $cross_compiling:$ac_tool_warned in
  7072. yes:)
  7073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7074. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7075. ac_tool_warned=yes ;;
  7076. esac
  7077. OTOOL64=$ac_ct_OTOOL64
  7078. fi
  7079. else
  7080. OTOOL64="$ac_cv_prog_OTOOL64"
  7081. fi
  7082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7083. printf %s "checking for -single_module linker flag... " >&6; }
  7084. if test ${lt_cv_apple_cc_single_mod+y}
  7085. then :
  7086. printf %s "(cached) " >&6
  7087. else $as_nop
  7088. lt_cv_apple_cc_single_mod=no
  7089. if test -z "$LT_MULTI_MODULE"; then
  7090. # By default we will add the -single_module flag. You can override
  7091. # by either setting the environment variable LT_MULTI_MODULE
  7092. # non-empty at configure time, or by adding -multi_module to the
  7093. # link flags.
  7094. rm -rf libconftest.dylib*
  7095. echo "int foo(void){return 1;}" > conftest.c
  7096. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7097. -dynamiclib -Wl,-single_module conftest.c" >&5
  7098. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7099. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7100. _lt_result=$?
  7101. # If there is a non-empty error log, and "single_module"
  7102. # appears in it, assume the flag caused a linker warning
  7103. if test -s conftest.err && $GREP single_module conftest.err; then
  7104. cat conftest.err >&5
  7105. # Otherwise, if the output was created with a 0 exit code from
  7106. # the compiler, it worked.
  7107. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7108. lt_cv_apple_cc_single_mod=yes
  7109. else
  7110. cat conftest.err >&5
  7111. fi
  7112. rm -rf libconftest.dylib*
  7113. rm -f conftest.*
  7114. fi
  7115. fi
  7116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7117. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7119. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7120. if test ${lt_cv_ld_exported_symbols_list+y}
  7121. then :
  7122. printf %s "(cached) " >&6
  7123. else $as_nop
  7124. lt_cv_ld_exported_symbols_list=no
  7125. save_LDFLAGS=$LDFLAGS
  7126. echo "_main" > conftest.sym
  7127. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7129. /* end confdefs.h. */
  7130. int
  7131. main (void)
  7132. {
  7133. ;
  7134. return 0;
  7135. }
  7136. _ACEOF
  7137. if ac_fn_c_try_link "$LINENO"
  7138. then :
  7139. lt_cv_ld_exported_symbols_list=yes
  7140. else $as_nop
  7141. lt_cv_ld_exported_symbols_list=no
  7142. fi
  7143. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7144. conftest$ac_exeext conftest.$ac_ext
  7145. LDFLAGS=$save_LDFLAGS
  7146. fi
  7147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7148. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7150. printf %s "checking for -force_load linker flag... " >&6; }
  7151. if test ${lt_cv_ld_force_load+y}
  7152. then :
  7153. printf %s "(cached) " >&6
  7154. else $as_nop
  7155. lt_cv_ld_force_load=no
  7156. cat > conftest.c << _LT_EOF
  7157. int forced_loaded() { return 2;}
  7158. _LT_EOF
  7159. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7160. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7161. echo "$AR cru libconftest.a conftest.o" >&5
  7162. $AR cru libconftest.a conftest.o 2>&5
  7163. echo "$RANLIB libconftest.a" >&5
  7164. $RANLIB libconftest.a 2>&5
  7165. cat > conftest.c << _LT_EOF
  7166. int main() { return 0;}
  7167. _LT_EOF
  7168. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7169. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7170. _lt_result=$?
  7171. if test -s conftest.err && $GREP force_load conftest.err; then
  7172. cat conftest.err >&5
  7173. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7174. lt_cv_ld_force_load=yes
  7175. else
  7176. cat conftest.err >&5
  7177. fi
  7178. rm -f conftest.err libconftest.a conftest conftest.c
  7179. rm -rf conftest.dSYM
  7180. fi
  7181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7182. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7183. case $host_os in
  7184. rhapsody* | darwin1.[012])
  7185. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7186. darwin1.*)
  7187. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7188. darwin*)
  7189. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7190. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7191. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7192. *)
  7193. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7194. esac
  7195. ;;
  7196. esac
  7197. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7198. _lt_dar_single_mod='$single_module'
  7199. fi
  7200. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7201. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7202. else
  7203. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7204. fi
  7205. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7206. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7207. else
  7208. _lt_dsymutil=
  7209. fi
  7210. ;;
  7211. esac
  7212. # func_munge_path_list VARIABLE PATH
  7213. # -----------------------------------
  7214. # VARIABLE is name of variable containing _space_ separated list of
  7215. # directories to be munged by the contents of PATH, which is string
  7216. # having a format:
  7217. # "DIR[:DIR]:"
  7218. # string "DIR[ DIR]" will be prepended to VARIABLE
  7219. # ":DIR[:DIR]"
  7220. # string "DIR[ DIR]" will be appended to VARIABLE
  7221. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7222. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7223. # "DIRA[ DIRA]" will be appended to VARIABLE
  7224. # "DIR[:DIR]"
  7225. # VARIABLE will be replaced by "DIR[ DIR]"
  7226. func_munge_path_list ()
  7227. {
  7228. case x$2 in
  7229. x)
  7230. ;;
  7231. *:)
  7232. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7233. ;;
  7234. x:*)
  7235. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7236. ;;
  7237. *::*)
  7238. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7239. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7240. ;;
  7241. *)
  7242. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7243. ;;
  7244. esac
  7245. }
  7246. ac_header= ac_cache=
  7247. for ac_item in $ac_header_c_list
  7248. do
  7249. if test $ac_cache; then
  7250. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7251. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7252. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7253. fi
  7254. ac_header= ac_cache=
  7255. elif test $ac_header; then
  7256. ac_cache=$ac_item
  7257. else
  7258. ac_header=$ac_item
  7259. fi
  7260. done
  7261. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7262. then :
  7263. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7264. fi
  7265. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7266. "
  7267. if test "x$ac_cv_header_dlfcn_h" = xyes
  7268. then :
  7269. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7270. fi
  7271. # Set options
  7272. enable_win32_dll=yes
  7273. case $host in
  7274. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7275. if test -n "$ac_tool_prefix"; then
  7276. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7277. set dummy ${ac_tool_prefix}as; ac_word=$2
  7278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7279. printf %s "checking for $ac_word... " >&6; }
  7280. if test ${ac_cv_prog_AS+y}
  7281. then :
  7282. printf %s "(cached) " >&6
  7283. else $as_nop
  7284. if test -n "$AS"; then
  7285. ac_cv_prog_AS="$AS" # Let the user override the test.
  7286. else
  7287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7288. for as_dir in $PATH
  7289. do
  7290. IFS=$as_save_IFS
  7291. case $as_dir in #(((
  7292. '') as_dir=./ ;;
  7293. */) ;;
  7294. *) as_dir=$as_dir/ ;;
  7295. esac
  7296. for ac_exec_ext in '' $ac_executable_extensions; do
  7297. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7298. ac_cv_prog_AS="${ac_tool_prefix}as"
  7299. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7300. break 2
  7301. fi
  7302. done
  7303. done
  7304. IFS=$as_save_IFS
  7305. fi
  7306. fi
  7307. AS=$ac_cv_prog_AS
  7308. if test -n "$AS"; then
  7309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7310. printf "%s\n" "$AS" >&6; }
  7311. else
  7312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7313. printf "%s\n" "no" >&6; }
  7314. fi
  7315. fi
  7316. if test -z "$ac_cv_prog_AS"; then
  7317. ac_ct_AS=$AS
  7318. # Extract the first word of "as", so it can be a program name with args.
  7319. set dummy as; ac_word=$2
  7320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7321. printf %s "checking for $ac_word... " >&6; }
  7322. if test ${ac_cv_prog_ac_ct_AS+y}
  7323. then :
  7324. printf %s "(cached) " >&6
  7325. else $as_nop
  7326. if test -n "$ac_ct_AS"; then
  7327. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7328. else
  7329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7330. for as_dir in $PATH
  7331. do
  7332. IFS=$as_save_IFS
  7333. case $as_dir in #(((
  7334. '') as_dir=./ ;;
  7335. */) ;;
  7336. *) as_dir=$as_dir/ ;;
  7337. esac
  7338. for ac_exec_ext in '' $ac_executable_extensions; do
  7339. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7340. ac_cv_prog_ac_ct_AS="as"
  7341. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7342. break 2
  7343. fi
  7344. done
  7345. done
  7346. IFS=$as_save_IFS
  7347. fi
  7348. fi
  7349. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7350. if test -n "$ac_ct_AS"; then
  7351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7352. printf "%s\n" "$ac_ct_AS" >&6; }
  7353. else
  7354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7355. printf "%s\n" "no" >&6; }
  7356. fi
  7357. if test "x$ac_ct_AS" = x; then
  7358. AS="false"
  7359. else
  7360. case $cross_compiling:$ac_tool_warned in
  7361. yes:)
  7362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7363. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7364. ac_tool_warned=yes ;;
  7365. esac
  7366. AS=$ac_ct_AS
  7367. fi
  7368. else
  7369. AS="$ac_cv_prog_AS"
  7370. fi
  7371. if test -n "$ac_tool_prefix"; then
  7372. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7373. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7375. printf %s "checking for $ac_word... " >&6; }
  7376. if test ${ac_cv_prog_DLLTOOL+y}
  7377. then :
  7378. printf %s "(cached) " >&6
  7379. else $as_nop
  7380. if test -n "$DLLTOOL"; then
  7381. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7382. else
  7383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7384. for as_dir in $PATH
  7385. do
  7386. IFS=$as_save_IFS
  7387. case $as_dir in #(((
  7388. '') as_dir=./ ;;
  7389. */) ;;
  7390. *) as_dir=$as_dir/ ;;
  7391. esac
  7392. for ac_exec_ext in '' $ac_executable_extensions; do
  7393. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7394. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7395. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7396. break 2
  7397. fi
  7398. done
  7399. done
  7400. IFS=$as_save_IFS
  7401. fi
  7402. fi
  7403. DLLTOOL=$ac_cv_prog_DLLTOOL
  7404. if test -n "$DLLTOOL"; then
  7405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7406. printf "%s\n" "$DLLTOOL" >&6; }
  7407. else
  7408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7409. printf "%s\n" "no" >&6; }
  7410. fi
  7411. fi
  7412. if test -z "$ac_cv_prog_DLLTOOL"; then
  7413. ac_ct_DLLTOOL=$DLLTOOL
  7414. # Extract the first word of "dlltool", so it can be a program name with args.
  7415. set dummy dlltool; ac_word=$2
  7416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7417. printf %s "checking for $ac_word... " >&6; }
  7418. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7419. then :
  7420. printf %s "(cached) " >&6
  7421. else $as_nop
  7422. if test -n "$ac_ct_DLLTOOL"; then
  7423. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7424. else
  7425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7426. for as_dir in $PATH
  7427. do
  7428. IFS=$as_save_IFS
  7429. case $as_dir in #(((
  7430. '') as_dir=./ ;;
  7431. */) ;;
  7432. *) as_dir=$as_dir/ ;;
  7433. esac
  7434. for ac_exec_ext in '' $ac_executable_extensions; do
  7435. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7436. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7437. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7438. break 2
  7439. fi
  7440. done
  7441. done
  7442. IFS=$as_save_IFS
  7443. fi
  7444. fi
  7445. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7446. if test -n "$ac_ct_DLLTOOL"; then
  7447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7448. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7449. else
  7450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7451. printf "%s\n" "no" >&6; }
  7452. fi
  7453. if test "x$ac_ct_DLLTOOL" = x; then
  7454. DLLTOOL="false"
  7455. else
  7456. case $cross_compiling:$ac_tool_warned in
  7457. yes:)
  7458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7459. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7460. ac_tool_warned=yes ;;
  7461. esac
  7462. DLLTOOL=$ac_ct_DLLTOOL
  7463. fi
  7464. else
  7465. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7466. fi
  7467. if test -n "$ac_tool_prefix"; then
  7468. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7469. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7471. printf %s "checking for $ac_word... " >&6; }
  7472. if test ${ac_cv_prog_OBJDUMP+y}
  7473. then :
  7474. printf %s "(cached) " >&6
  7475. else $as_nop
  7476. if test -n "$OBJDUMP"; then
  7477. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7478. else
  7479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7480. for as_dir in $PATH
  7481. do
  7482. IFS=$as_save_IFS
  7483. case $as_dir in #(((
  7484. '') as_dir=./ ;;
  7485. */) ;;
  7486. *) as_dir=$as_dir/ ;;
  7487. esac
  7488. for ac_exec_ext in '' $ac_executable_extensions; do
  7489. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7490. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7491. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7492. break 2
  7493. fi
  7494. done
  7495. done
  7496. IFS=$as_save_IFS
  7497. fi
  7498. fi
  7499. OBJDUMP=$ac_cv_prog_OBJDUMP
  7500. if test -n "$OBJDUMP"; then
  7501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7502. printf "%s\n" "$OBJDUMP" >&6; }
  7503. else
  7504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7505. printf "%s\n" "no" >&6; }
  7506. fi
  7507. fi
  7508. if test -z "$ac_cv_prog_OBJDUMP"; then
  7509. ac_ct_OBJDUMP=$OBJDUMP
  7510. # Extract the first word of "objdump", so it can be a program name with args.
  7511. set dummy objdump; ac_word=$2
  7512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7513. printf %s "checking for $ac_word... " >&6; }
  7514. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7515. then :
  7516. printf %s "(cached) " >&6
  7517. else $as_nop
  7518. if test -n "$ac_ct_OBJDUMP"; then
  7519. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7520. else
  7521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7522. for as_dir in $PATH
  7523. do
  7524. IFS=$as_save_IFS
  7525. case $as_dir in #(((
  7526. '') as_dir=./ ;;
  7527. */) ;;
  7528. *) as_dir=$as_dir/ ;;
  7529. esac
  7530. for ac_exec_ext in '' $ac_executable_extensions; do
  7531. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7532. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7533. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7534. break 2
  7535. fi
  7536. done
  7537. done
  7538. IFS=$as_save_IFS
  7539. fi
  7540. fi
  7541. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7542. if test -n "$ac_ct_OBJDUMP"; then
  7543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7544. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7545. else
  7546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7547. printf "%s\n" "no" >&6; }
  7548. fi
  7549. if test "x$ac_ct_OBJDUMP" = x; then
  7550. OBJDUMP="false"
  7551. else
  7552. case $cross_compiling:$ac_tool_warned in
  7553. yes:)
  7554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7555. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7556. ac_tool_warned=yes ;;
  7557. esac
  7558. OBJDUMP=$ac_ct_OBJDUMP
  7559. fi
  7560. else
  7561. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7562. fi
  7563. ;;
  7564. esac
  7565. test -z "$AS" && AS=as
  7566. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7567. test -z "$OBJDUMP" && OBJDUMP=objdump
  7568. enable_dlopen=no
  7569. # Check whether --enable-shared was given.
  7570. if test ${enable_shared+y}
  7571. then :
  7572. enableval=$enable_shared; p=${PACKAGE-default}
  7573. case $enableval in
  7574. yes) enable_shared=yes ;;
  7575. no) enable_shared=no ;;
  7576. *)
  7577. enable_shared=no
  7578. # Look at the argument we got. We use all the common list separators.
  7579. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7580. for pkg in $enableval; do
  7581. IFS=$lt_save_ifs
  7582. if test "X$pkg" = "X$p"; then
  7583. enable_shared=yes
  7584. fi
  7585. done
  7586. IFS=$lt_save_ifs
  7587. ;;
  7588. esac
  7589. else $as_nop
  7590. enable_shared=yes
  7591. fi
  7592. # Check whether --enable-static was given.
  7593. if test ${enable_static+y}
  7594. then :
  7595. enableval=$enable_static; p=${PACKAGE-default}
  7596. case $enableval in
  7597. yes) enable_static=yes ;;
  7598. no) enable_static=no ;;
  7599. *)
  7600. enable_static=no
  7601. # Look at the argument we got. We use all the common list separators.
  7602. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7603. for pkg in $enableval; do
  7604. IFS=$lt_save_ifs
  7605. if test "X$pkg" = "X$p"; then
  7606. enable_static=yes
  7607. fi
  7608. done
  7609. IFS=$lt_save_ifs
  7610. ;;
  7611. esac
  7612. else $as_nop
  7613. enable_static=yes
  7614. fi
  7615. # Check whether --with-pic was given.
  7616. if test ${with_pic+y}
  7617. then :
  7618. withval=$with_pic; lt_p=${PACKAGE-default}
  7619. case $withval in
  7620. yes|no) pic_mode=$withval ;;
  7621. *)
  7622. pic_mode=default
  7623. # Look at the argument we got. We use all the common list separators.
  7624. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7625. for lt_pkg in $withval; do
  7626. IFS=$lt_save_ifs
  7627. if test "X$lt_pkg" = "X$lt_p"; then
  7628. pic_mode=yes
  7629. fi
  7630. done
  7631. IFS=$lt_save_ifs
  7632. ;;
  7633. esac
  7634. else $as_nop
  7635. pic_mode=default
  7636. fi
  7637. # Check whether --enable-fast-install was given.
  7638. if test ${enable_fast_install+y}
  7639. then :
  7640. enableval=$enable_fast_install; p=${PACKAGE-default}
  7641. case $enableval in
  7642. yes) enable_fast_install=yes ;;
  7643. no) enable_fast_install=no ;;
  7644. *)
  7645. enable_fast_install=no
  7646. # Look at the argument we got. We use all the common list separators.
  7647. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7648. for pkg in $enableval; do
  7649. IFS=$lt_save_ifs
  7650. if test "X$pkg" = "X$p"; then
  7651. enable_fast_install=yes
  7652. fi
  7653. done
  7654. IFS=$lt_save_ifs
  7655. ;;
  7656. esac
  7657. else $as_nop
  7658. enable_fast_install=yes
  7659. fi
  7660. shared_archive_member_spec=
  7661. case $host,$enable_shared in
  7662. power*-*-aix[5-9]*,yes)
  7663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7664. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7665. # Check whether --with-aix-soname was given.
  7666. if test ${with_aix_soname+y}
  7667. then :
  7668. withval=$with_aix_soname; case $withval in
  7669. aix|svr4|both)
  7670. ;;
  7671. *)
  7672. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7673. ;;
  7674. esac
  7675. lt_cv_with_aix_soname=$with_aix_soname
  7676. else $as_nop
  7677. if test ${lt_cv_with_aix_soname+y}
  7678. then :
  7679. printf %s "(cached) " >&6
  7680. else $as_nop
  7681. lt_cv_with_aix_soname=aix
  7682. fi
  7683. with_aix_soname=$lt_cv_with_aix_soname
  7684. fi
  7685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7686. printf "%s\n" "$with_aix_soname" >&6; }
  7687. if test aix != "$with_aix_soname"; then
  7688. # For the AIX way of multilib, we name the shared archive member
  7689. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7690. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7691. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7692. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7693. if test 64 = "${OBJECT_MODE-32}"; then
  7694. shared_archive_member_spec=shr_64
  7695. else
  7696. shared_archive_member_spec=shr
  7697. fi
  7698. fi
  7699. ;;
  7700. *)
  7701. with_aix_soname=aix
  7702. ;;
  7703. esac
  7704. # This can be used to rebuild libtool when needed
  7705. LIBTOOL_DEPS=$ltmain
  7706. # Always use our own libtool.
  7707. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7708. test -z "$LN_S" && LN_S="ln -s"
  7709. if test -n "${ZSH_VERSION+set}"; then
  7710. setopt NO_GLOB_SUBST
  7711. fi
  7712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7713. printf %s "checking for objdir... " >&6; }
  7714. if test ${lt_cv_objdir+y}
  7715. then :
  7716. printf %s "(cached) " >&6
  7717. else $as_nop
  7718. rm -f .libs 2>/dev/null
  7719. mkdir .libs 2>/dev/null
  7720. if test -d .libs; then
  7721. lt_cv_objdir=.libs
  7722. else
  7723. # MS-DOS does not allow filenames that begin with a dot.
  7724. lt_cv_objdir=_libs
  7725. fi
  7726. rmdir .libs 2>/dev/null
  7727. fi
  7728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7729. printf "%s\n" "$lt_cv_objdir" >&6; }
  7730. objdir=$lt_cv_objdir
  7731. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7732. case $host_os in
  7733. aix3*)
  7734. # AIX sometimes has problems with the GCC collect2 program. For some
  7735. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7736. # vanish in a puff of smoke.
  7737. if test set != "${COLLECT_NAMES+set}"; then
  7738. COLLECT_NAMES=
  7739. export COLLECT_NAMES
  7740. fi
  7741. ;;
  7742. esac
  7743. # Global variables:
  7744. ofile=libtool
  7745. can_build_shared=yes
  7746. # All known linkers require a '.a' archive for static linking (except MSVC,
  7747. # which needs '.lib').
  7748. libext=a
  7749. with_gnu_ld=$lt_cv_prog_gnu_ld
  7750. old_CC=$CC
  7751. old_CFLAGS=$CFLAGS
  7752. # Set sane defaults for various variables
  7753. test -z "$CC" && CC=cc
  7754. test -z "$LTCC" && LTCC=$CC
  7755. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7756. test -z "$LD" && LD=ld
  7757. test -z "$ac_objext" && ac_objext=o
  7758. func_cc_basename $compiler
  7759. cc_basename=$func_cc_basename_result
  7760. # Only perform the check for file, if the check method requires it
  7761. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7762. case $deplibs_check_method in
  7763. file_magic*)
  7764. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7766. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7767. if test ${lt_cv_path_MAGIC_CMD+y}
  7768. then :
  7769. printf %s "(cached) " >&6
  7770. else $as_nop
  7771. case $MAGIC_CMD in
  7772. [\\/*] | ?:[\\/]*)
  7773. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7774. ;;
  7775. *)
  7776. lt_save_MAGIC_CMD=$MAGIC_CMD
  7777. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7778. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7779. for ac_dir in $ac_dummy; do
  7780. IFS=$lt_save_ifs
  7781. test -z "$ac_dir" && ac_dir=.
  7782. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7783. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7784. if test -n "$file_magic_test_file"; then
  7785. case $deplibs_check_method in
  7786. "file_magic "*)
  7787. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7788. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7789. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7790. $EGREP "$file_magic_regex" > /dev/null; then
  7791. :
  7792. else
  7793. cat <<_LT_EOF 1>&2
  7794. *** Warning: the command libtool uses to detect shared libraries,
  7795. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7796. *** The result is that libtool may fail to recognize shared libraries
  7797. *** as such. This will affect the creation of libtool libraries that
  7798. *** depend on shared libraries, but programs linked with such libtool
  7799. *** libraries will work regardless of this problem. Nevertheless, you
  7800. *** may want to report the problem to your system manager and/or to
  7801. *** bug-libtool@gnu.org
  7802. _LT_EOF
  7803. fi ;;
  7804. esac
  7805. fi
  7806. break
  7807. fi
  7808. done
  7809. IFS=$lt_save_ifs
  7810. MAGIC_CMD=$lt_save_MAGIC_CMD
  7811. ;;
  7812. esac
  7813. fi
  7814. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7815. if test -n "$MAGIC_CMD"; then
  7816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7817. printf "%s\n" "$MAGIC_CMD" >&6; }
  7818. else
  7819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7820. printf "%s\n" "no" >&6; }
  7821. fi
  7822. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7823. if test -n "$ac_tool_prefix"; then
  7824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7825. printf %s "checking for file... " >&6; }
  7826. if test ${lt_cv_path_MAGIC_CMD+y}
  7827. then :
  7828. printf %s "(cached) " >&6
  7829. else $as_nop
  7830. case $MAGIC_CMD in
  7831. [\\/*] | ?:[\\/]*)
  7832. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7833. ;;
  7834. *)
  7835. lt_save_MAGIC_CMD=$MAGIC_CMD
  7836. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7837. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7838. for ac_dir in $ac_dummy; do
  7839. IFS=$lt_save_ifs
  7840. test -z "$ac_dir" && ac_dir=.
  7841. if test -f "$ac_dir/file"; then
  7842. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7843. if test -n "$file_magic_test_file"; then
  7844. case $deplibs_check_method in
  7845. "file_magic "*)
  7846. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7847. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7848. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7849. $EGREP "$file_magic_regex" > /dev/null; then
  7850. :
  7851. else
  7852. cat <<_LT_EOF 1>&2
  7853. *** Warning: the command libtool uses to detect shared libraries,
  7854. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7855. *** The result is that libtool may fail to recognize shared libraries
  7856. *** as such. This will affect the creation of libtool libraries that
  7857. *** depend on shared libraries, but programs linked with such libtool
  7858. *** libraries will work regardless of this problem. Nevertheless, you
  7859. *** may want to report the problem to your system manager and/or to
  7860. *** bug-libtool@gnu.org
  7861. _LT_EOF
  7862. fi ;;
  7863. esac
  7864. fi
  7865. break
  7866. fi
  7867. done
  7868. IFS=$lt_save_ifs
  7869. MAGIC_CMD=$lt_save_MAGIC_CMD
  7870. ;;
  7871. esac
  7872. fi
  7873. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7874. if test -n "$MAGIC_CMD"; then
  7875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7876. printf "%s\n" "$MAGIC_CMD" >&6; }
  7877. else
  7878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7879. printf "%s\n" "no" >&6; }
  7880. fi
  7881. else
  7882. MAGIC_CMD=:
  7883. fi
  7884. fi
  7885. fi
  7886. ;;
  7887. esac
  7888. # Use C for the default configuration in the libtool script
  7889. lt_save_CC=$CC
  7890. ac_ext=c
  7891. ac_cpp='$CPP $CPPFLAGS'
  7892. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7893. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7894. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7895. # Source file extension for C test sources.
  7896. ac_ext=c
  7897. # Object file extension for compiled C test sources.
  7898. objext=o
  7899. objext=$objext
  7900. # Code to be used in simple compile tests
  7901. lt_simple_compile_test_code="int some_variable = 0;"
  7902. # Code to be used in simple link tests
  7903. lt_simple_link_test_code='int main(){return(0);}'
  7904. # If no C compiler was specified, use CC.
  7905. LTCC=${LTCC-"$CC"}
  7906. # If no C compiler flags were specified, use CFLAGS.
  7907. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7908. # Allow CC to be a program name with arguments.
  7909. compiler=$CC
  7910. # Save the default compiler, since it gets overwritten when the other
  7911. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7912. compiler_DEFAULT=$CC
  7913. # save warnings/boilerplate of simple test code
  7914. ac_outfile=conftest.$ac_objext
  7915. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7916. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7917. _lt_compiler_boilerplate=`cat conftest.err`
  7918. $RM conftest*
  7919. ac_outfile=conftest.$ac_objext
  7920. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7921. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7922. _lt_linker_boilerplate=`cat conftest.err`
  7923. $RM -r conftest*
  7924. ## CAVEAT EMPTOR:
  7925. ## There is no encapsulation within the following macros, do not change
  7926. ## the running order or otherwise move them around unless you know exactly
  7927. ## what you are doing...
  7928. if test -n "$compiler"; then
  7929. lt_prog_compiler_no_builtin_flag=
  7930. if test yes = "$GCC"; then
  7931. case $cc_basename in
  7932. nvcc*)
  7933. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7934. *)
  7935. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7936. esac
  7937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7938. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7939. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7940. then :
  7941. printf %s "(cached) " >&6
  7942. else $as_nop
  7943. lt_cv_prog_compiler_rtti_exceptions=no
  7944. ac_outfile=conftest.$ac_objext
  7945. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7946. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7947. # Insert the option either (1) after the last *FLAGS variable, or
  7948. # (2) before a word containing "conftest.", or (3) at the end.
  7949. # Note that $ac_compile itself does not contain backslashes and begins
  7950. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7951. # The option is referenced via a variable to avoid confusing sed.
  7952. lt_compile=`echo "$ac_compile" | $SED \
  7953. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7954. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7955. -e 's:$: $lt_compiler_flag:'`
  7956. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7957. (eval "$lt_compile" 2>conftest.err)
  7958. ac_status=$?
  7959. cat conftest.err >&5
  7960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7961. if (exit $ac_status) && test -s "$ac_outfile"; then
  7962. # The compiler can only warn and ignore the option if not recognized
  7963. # So say no if there are warnings other than the usual output.
  7964. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7965. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7966. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7967. lt_cv_prog_compiler_rtti_exceptions=yes
  7968. fi
  7969. fi
  7970. $RM conftest*
  7971. fi
  7972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7973. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7974. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7975. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7976. else
  7977. :
  7978. fi
  7979. fi
  7980. lt_prog_compiler_wl=
  7981. lt_prog_compiler_pic=
  7982. lt_prog_compiler_static=
  7983. if test yes = "$GCC"; then
  7984. lt_prog_compiler_wl='-Wl,'
  7985. lt_prog_compiler_static='-static'
  7986. case $host_os in
  7987. aix*)
  7988. # All AIX code is PIC.
  7989. if test ia64 = "$host_cpu"; then
  7990. # AIX 5 now supports IA64 processor
  7991. lt_prog_compiler_static='-Bstatic'
  7992. fi
  7993. lt_prog_compiler_pic='-fPIC'
  7994. ;;
  7995. amigaos*)
  7996. case $host_cpu in
  7997. powerpc)
  7998. # see comment about AmigaOS4 .so support
  7999. lt_prog_compiler_pic='-fPIC'
  8000. ;;
  8001. m68k)
  8002. # FIXME: we need at least 68020 code to build shared libraries, but
  8003. # adding the '-m68020' flag to GCC prevents building anything better,
  8004. # like '-m68040'.
  8005. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8006. ;;
  8007. esac
  8008. ;;
  8009. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8010. # PIC is the default for these OSes.
  8011. ;;
  8012. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8013. # This hack is so that the source file can tell whether it is being
  8014. # built for inclusion in a dll (and should export symbols for example).
  8015. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8016. # (--disable-auto-import) libraries
  8017. lt_prog_compiler_pic='-DDLL_EXPORT'
  8018. case $host_os in
  8019. os2*)
  8020. lt_prog_compiler_static='$wl-static'
  8021. ;;
  8022. esac
  8023. ;;
  8024. darwin* | rhapsody*)
  8025. # PIC is the default on this platform
  8026. # Common symbols not allowed in MH_DYLIB files
  8027. lt_prog_compiler_pic='-fno-common'
  8028. ;;
  8029. haiku*)
  8030. # PIC is the default for Haiku.
  8031. # The "-static" flag exists, but is broken.
  8032. lt_prog_compiler_static=
  8033. ;;
  8034. hpux*)
  8035. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8036. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8037. # sets the default TLS model and affects inlining.
  8038. case $host_cpu in
  8039. hppa*64*)
  8040. # +Z the default
  8041. ;;
  8042. *)
  8043. lt_prog_compiler_pic='-fPIC'
  8044. ;;
  8045. esac
  8046. ;;
  8047. interix[3-9]*)
  8048. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8049. # Instead, we relocate shared libraries at runtime.
  8050. ;;
  8051. msdosdjgpp*)
  8052. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8053. # on systems that don't support them.
  8054. lt_prog_compiler_can_build_shared=no
  8055. enable_shared=no
  8056. ;;
  8057. *nto* | *qnx*)
  8058. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8059. # it will coredump.
  8060. lt_prog_compiler_pic='-fPIC -shared'
  8061. ;;
  8062. sysv4*MP*)
  8063. if test -d /usr/nec; then
  8064. lt_prog_compiler_pic=-Kconform_pic
  8065. fi
  8066. ;;
  8067. *)
  8068. lt_prog_compiler_pic='-fPIC'
  8069. ;;
  8070. esac
  8071. case $cc_basename in
  8072. nvcc*) # Cuda Compiler Driver 2.2
  8073. lt_prog_compiler_wl='-Xlinker '
  8074. if test -n "$lt_prog_compiler_pic"; then
  8075. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8076. fi
  8077. ;;
  8078. esac
  8079. else
  8080. # PORTME Check for flag to pass linker flags through the system compiler.
  8081. case $host_os in
  8082. aix*)
  8083. lt_prog_compiler_wl='-Wl,'
  8084. if test ia64 = "$host_cpu"; then
  8085. # AIX 5 now supports IA64 processor
  8086. lt_prog_compiler_static='-Bstatic'
  8087. else
  8088. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8089. fi
  8090. ;;
  8091. darwin* | rhapsody*)
  8092. # PIC is the default on this platform
  8093. # Common symbols not allowed in MH_DYLIB files
  8094. lt_prog_compiler_pic='-fno-common'
  8095. case $cc_basename in
  8096. nagfor*)
  8097. # NAG Fortran compiler
  8098. lt_prog_compiler_wl='-Wl,-Wl,,'
  8099. lt_prog_compiler_pic='-PIC'
  8100. lt_prog_compiler_static='-Bstatic'
  8101. ;;
  8102. esac
  8103. ;;
  8104. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8105. # This hack is so that the source file can tell whether it is being
  8106. # built for inclusion in a dll (and should export symbols for example).
  8107. lt_prog_compiler_pic='-DDLL_EXPORT'
  8108. case $host_os in
  8109. os2*)
  8110. lt_prog_compiler_static='$wl-static'
  8111. ;;
  8112. esac
  8113. ;;
  8114. hpux9* | hpux10* | hpux11*)
  8115. lt_prog_compiler_wl='-Wl,'
  8116. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8117. # not for PA HP-UX.
  8118. case $host_cpu in
  8119. hppa*64*|ia64*)
  8120. # +Z the default
  8121. ;;
  8122. *)
  8123. lt_prog_compiler_pic='+Z'
  8124. ;;
  8125. esac
  8126. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8127. lt_prog_compiler_static='$wl-a ${wl}archive'
  8128. ;;
  8129. irix5* | irix6* | nonstopux*)
  8130. lt_prog_compiler_wl='-Wl,'
  8131. # PIC (with -KPIC) is the default.
  8132. lt_prog_compiler_static='-non_shared'
  8133. ;;
  8134. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8135. case $cc_basename in
  8136. # old Intel for x86_64, which still supported -KPIC.
  8137. ecc*)
  8138. lt_prog_compiler_wl='-Wl,'
  8139. lt_prog_compiler_pic='-KPIC'
  8140. lt_prog_compiler_static='-static'
  8141. ;;
  8142. # icc used to be incompatible with GCC.
  8143. # ICC 10 doesn't accept -KPIC any more.
  8144. icc* | ifort*)
  8145. lt_prog_compiler_wl='-Wl,'
  8146. lt_prog_compiler_pic='-fPIC'
  8147. lt_prog_compiler_static='-static'
  8148. ;;
  8149. # Lahey Fortran 8.1.
  8150. lf95*)
  8151. lt_prog_compiler_wl='-Wl,'
  8152. lt_prog_compiler_pic='--shared'
  8153. lt_prog_compiler_static='--static'
  8154. ;;
  8155. nagfor*)
  8156. # NAG Fortran compiler
  8157. lt_prog_compiler_wl='-Wl,-Wl,,'
  8158. lt_prog_compiler_pic='-PIC'
  8159. lt_prog_compiler_static='-Bstatic'
  8160. ;;
  8161. tcc*)
  8162. # Fabrice Bellard et al's Tiny C Compiler
  8163. lt_prog_compiler_wl='-Wl,'
  8164. lt_prog_compiler_pic='-fPIC'
  8165. lt_prog_compiler_static='-static'
  8166. ;;
  8167. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8168. # Portland Group compilers (*not* the Pentium gcc compiler,
  8169. # which looks to be a dead project)
  8170. lt_prog_compiler_wl='-Wl,'
  8171. lt_prog_compiler_pic='-fpic'
  8172. lt_prog_compiler_static='-Bstatic'
  8173. ;;
  8174. ccc*)
  8175. lt_prog_compiler_wl='-Wl,'
  8176. # All Alpha code is PIC.
  8177. lt_prog_compiler_static='-non_shared'
  8178. ;;
  8179. xl* | bgxl* | bgf* | mpixl*)
  8180. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8181. lt_prog_compiler_wl='-Wl,'
  8182. lt_prog_compiler_pic='-qpic'
  8183. lt_prog_compiler_static='-qstaticlink'
  8184. ;;
  8185. *)
  8186. case `$CC -V 2>&1 | sed 5q` in
  8187. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8188. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8189. lt_prog_compiler_pic='-KPIC'
  8190. lt_prog_compiler_static='-Bstatic'
  8191. lt_prog_compiler_wl=''
  8192. ;;
  8193. *Sun\ F* | *Sun*Fortran*)
  8194. lt_prog_compiler_pic='-KPIC'
  8195. lt_prog_compiler_static='-Bstatic'
  8196. lt_prog_compiler_wl='-Qoption ld '
  8197. ;;
  8198. *Sun\ C*)
  8199. # Sun C 5.9
  8200. lt_prog_compiler_pic='-KPIC'
  8201. lt_prog_compiler_static='-Bstatic'
  8202. lt_prog_compiler_wl='-Wl,'
  8203. ;;
  8204. *Intel*\ [CF]*Compiler*)
  8205. lt_prog_compiler_wl='-Wl,'
  8206. lt_prog_compiler_pic='-fPIC'
  8207. lt_prog_compiler_static='-static'
  8208. ;;
  8209. *Portland\ Group*)
  8210. lt_prog_compiler_wl='-Wl,'
  8211. lt_prog_compiler_pic='-fpic'
  8212. lt_prog_compiler_static='-Bstatic'
  8213. ;;
  8214. esac
  8215. ;;
  8216. esac
  8217. ;;
  8218. newsos6)
  8219. lt_prog_compiler_pic='-KPIC'
  8220. lt_prog_compiler_static='-Bstatic'
  8221. ;;
  8222. *nto* | *qnx*)
  8223. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8224. # it will coredump.
  8225. lt_prog_compiler_pic='-fPIC -shared'
  8226. ;;
  8227. osf3* | osf4* | osf5*)
  8228. lt_prog_compiler_wl='-Wl,'
  8229. # All OSF/1 code is PIC.
  8230. lt_prog_compiler_static='-non_shared'
  8231. ;;
  8232. rdos*)
  8233. lt_prog_compiler_static='-non_shared'
  8234. ;;
  8235. solaris*)
  8236. lt_prog_compiler_pic='-KPIC'
  8237. lt_prog_compiler_static='-Bstatic'
  8238. case $cc_basename in
  8239. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8240. lt_prog_compiler_wl='-Qoption ld ';;
  8241. *)
  8242. lt_prog_compiler_wl='-Wl,';;
  8243. esac
  8244. ;;
  8245. sunos4*)
  8246. lt_prog_compiler_wl='-Qoption ld '
  8247. lt_prog_compiler_pic='-PIC'
  8248. lt_prog_compiler_static='-Bstatic'
  8249. ;;
  8250. sysv4 | sysv4.2uw2* | sysv4.3*)
  8251. lt_prog_compiler_wl='-Wl,'
  8252. lt_prog_compiler_pic='-KPIC'
  8253. lt_prog_compiler_static='-Bstatic'
  8254. ;;
  8255. sysv4*MP*)
  8256. if test -d /usr/nec; then
  8257. lt_prog_compiler_pic='-Kconform_pic'
  8258. lt_prog_compiler_static='-Bstatic'
  8259. fi
  8260. ;;
  8261. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8262. lt_prog_compiler_wl='-Wl,'
  8263. lt_prog_compiler_pic='-KPIC'
  8264. lt_prog_compiler_static='-Bstatic'
  8265. ;;
  8266. unicos*)
  8267. lt_prog_compiler_wl='-Wl,'
  8268. lt_prog_compiler_can_build_shared=no
  8269. ;;
  8270. uts4*)
  8271. lt_prog_compiler_pic='-pic'
  8272. lt_prog_compiler_static='-Bstatic'
  8273. ;;
  8274. *)
  8275. lt_prog_compiler_can_build_shared=no
  8276. ;;
  8277. esac
  8278. fi
  8279. case $host_os in
  8280. # For platforms that do not support PIC, -DPIC is meaningless:
  8281. *djgpp*)
  8282. lt_prog_compiler_pic=
  8283. ;;
  8284. *)
  8285. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8286. ;;
  8287. esac
  8288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8289. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8290. if test ${lt_cv_prog_compiler_pic+y}
  8291. then :
  8292. printf %s "(cached) " >&6
  8293. else $as_nop
  8294. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8295. fi
  8296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8297. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8298. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8299. #
  8300. # Check to make sure the PIC flag actually works.
  8301. #
  8302. if test -n "$lt_prog_compiler_pic"; then
  8303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8304. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8305. if test ${lt_cv_prog_compiler_pic_works+y}
  8306. then :
  8307. printf %s "(cached) " >&6
  8308. else $as_nop
  8309. lt_cv_prog_compiler_pic_works=no
  8310. ac_outfile=conftest.$ac_objext
  8311. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8312. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8313. # Insert the option either (1) after the last *FLAGS variable, or
  8314. # (2) before a word containing "conftest.", or (3) at the end.
  8315. # Note that $ac_compile itself does not contain backslashes and begins
  8316. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8317. # The option is referenced via a variable to avoid confusing sed.
  8318. lt_compile=`echo "$ac_compile" | $SED \
  8319. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8320. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8321. -e 's:$: $lt_compiler_flag:'`
  8322. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8323. (eval "$lt_compile" 2>conftest.err)
  8324. ac_status=$?
  8325. cat conftest.err >&5
  8326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8327. if (exit $ac_status) && test -s "$ac_outfile"; then
  8328. # The compiler can only warn and ignore the option if not recognized
  8329. # So say no if there are warnings other than the usual output.
  8330. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8331. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8332. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8333. lt_cv_prog_compiler_pic_works=yes
  8334. fi
  8335. fi
  8336. $RM conftest*
  8337. fi
  8338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8339. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8340. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8341. case $lt_prog_compiler_pic in
  8342. "" | " "*) ;;
  8343. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8344. esac
  8345. else
  8346. lt_prog_compiler_pic=
  8347. lt_prog_compiler_can_build_shared=no
  8348. fi
  8349. fi
  8350. #
  8351. # Check to make sure the static flag actually works.
  8352. #
  8353. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8355. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8356. if test ${lt_cv_prog_compiler_static_works+y}
  8357. then :
  8358. printf %s "(cached) " >&6
  8359. else $as_nop
  8360. lt_cv_prog_compiler_static_works=no
  8361. save_LDFLAGS=$LDFLAGS
  8362. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8363. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8364. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8365. # The linker can only warn and ignore the option if not recognized
  8366. # So say no if there are warnings
  8367. if test -s conftest.err; then
  8368. # Append any errors to the config.log.
  8369. cat conftest.err 1>&5
  8370. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8371. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8372. if diff conftest.exp conftest.er2 >/dev/null; then
  8373. lt_cv_prog_compiler_static_works=yes
  8374. fi
  8375. else
  8376. lt_cv_prog_compiler_static_works=yes
  8377. fi
  8378. fi
  8379. $RM -r conftest*
  8380. LDFLAGS=$save_LDFLAGS
  8381. fi
  8382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8383. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8384. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8385. :
  8386. else
  8387. lt_prog_compiler_static=
  8388. fi
  8389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8390. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8391. if test ${lt_cv_prog_compiler_c_o+y}
  8392. then :
  8393. printf %s "(cached) " >&6
  8394. else $as_nop
  8395. lt_cv_prog_compiler_c_o=no
  8396. $RM -r conftest 2>/dev/null
  8397. mkdir conftest
  8398. cd conftest
  8399. mkdir out
  8400. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8401. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8402. # Insert the option either (1) after the last *FLAGS variable, or
  8403. # (2) before a word containing "conftest.", or (3) at the end.
  8404. # Note that $ac_compile itself does not contain backslashes and begins
  8405. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8406. lt_compile=`echo "$ac_compile" | $SED \
  8407. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8408. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8409. -e 's:$: $lt_compiler_flag:'`
  8410. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8411. (eval "$lt_compile" 2>out/conftest.err)
  8412. ac_status=$?
  8413. cat out/conftest.err >&5
  8414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8415. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8416. then
  8417. # The compiler can only warn and ignore the option if not recognized
  8418. # So say no if there are warnings
  8419. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8420. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8421. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8422. lt_cv_prog_compiler_c_o=yes
  8423. fi
  8424. fi
  8425. chmod u+w . 2>&5
  8426. $RM conftest*
  8427. # SGI C++ compiler will create directory out/ii_files/ for
  8428. # template instantiation
  8429. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8430. $RM out/* && rmdir out
  8431. cd ..
  8432. $RM -r conftest
  8433. $RM conftest*
  8434. fi
  8435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8436. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8438. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8439. if test ${lt_cv_prog_compiler_c_o+y}
  8440. then :
  8441. printf %s "(cached) " >&6
  8442. else $as_nop
  8443. lt_cv_prog_compiler_c_o=no
  8444. $RM -r conftest 2>/dev/null
  8445. mkdir conftest
  8446. cd conftest
  8447. mkdir out
  8448. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8449. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8450. # Insert the option either (1) after the last *FLAGS variable, or
  8451. # (2) before a word containing "conftest.", or (3) at the end.
  8452. # Note that $ac_compile itself does not contain backslashes and begins
  8453. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8454. lt_compile=`echo "$ac_compile" | $SED \
  8455. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8456. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8457. -e 's:$: $lt_compiler_flag:'`
  8458. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8459. (eval "$lt_compile" 2>out/conftest.err)
  8460. ac_status=$?
  8461. cat out/conftest.err >&5
  8462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8463. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8464. then
  8465. # The compiler can only warn and ignore the option if not recognized
  8466. # So say no if there are warnings
  8467. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8468. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8469. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8470. lt_cv_prog_compiler_c_o=yes
  8471. fi
  8472. fi
  8473. chmod u+w . 2>&5
  8474. $RM conftest*
  8475. # SGI C++ compiler will create directory out/ii_files/ for
  8476. # template instantiation
  8477. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8478. $RM out/* && rmdir out
  8479. cd ..
  8480. $RM -r conftest
  8481. $RM conftest*
  8482. fi
  8483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8484. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8485. hard_links=nottested
  8486. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8487. # do not overwrite the value of need_locks provided by the user
  8488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8489. printf %s "checking if we can lock with hard links... " >&6; }
  8490. hard_links=yes
  8491. $RM conftest*
  8492. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8493. touch conftest.a
  8494. ln conftest.a conftest.b 2>&5 || hard_links=no
  8495. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8497. printf "%s\n" "$hard_links" >&6; }
  8498. if test no = "$hard_links"; then
  8499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8500. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8501. need_locks=warn
  8502. fi
  8503. else
  8504. need_locks=no
  8505. fi
  8506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8507. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8508. runpath_var=
  8509. allow_undefined_flag=
  8510. always_export_symbols=no
  8511. archive_cmds=
  8512. archive_expsym_cmds=
  8513. compiler_needs_object=no
  8514. enable_shared_with_static_runtimes=no
  8515. export_dynamic_flag_spec=
  8516. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8517. hardcode_automatic=no
  8518. hardcode_direct=no
  8519. hardcode_direct_absolute=no
  8520. hardcode_libdir_flag_spec=
  8521. hardcode_libdir_separator=
  8522. hardcode_minus_L=no
  8523. hardcode_shlibpath_var=unsupported
  8524. inherit_rpath=no
  8525. link_all_deplibs=unknown
  8526. module_cmds=
  8527. module_expsym_cmds=
  8528. old_archive_from_new_cmds=
  8529. old_archive_from_expsyms_cmds=
  8530. thread_safe_flag_spec=
  8531. whole_archive_flag_spec=
  8532. # include_expsyms should be a list of space-separated symbols to be *always*
  8533. # included in the symbol list
  8534. include_expsyms=
  8535. # exclude_expsyms can be an extended regexp of symbols to exclude
  8536. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8537. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8538. # as well as any symbol that contains 'd'.
  8539. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8540. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8541. # platforms (ab)use it in PIC code, but their linkers get confused if
  8542. # the symbol is explicitly referenced. Since portable code cannot
  8543. # rely on this symbol name, it's probably fine to never include it in
  8544. # preloaded symbol tables.
  8545. # Exclude shared library initialization/finalization symbols.
  8546. extract_expsyms_cmds=
  8547. case $host_os in
  8548. cygwin* | mingw* | pw32* | cegcc*)
  8549. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8550. # When not using gcc, we currently assume that we are using
  8551. # Microsoft Visual C++.
  8552. if test yes != "$GCC"; then
  8553. with_gnu_ld=no
  8554. fi
  8555. ;;
  8556. interix*)
  8557. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8558. with_gnu_ld=yes
  8559. ;;
  8560. openbsd* | bitrig*)
  8561. with_gnu_ld=no
  8562. ;;
  8563. esac
  8564. ld_shlibs=yes
  8565. # On some targets, GNU ld is compatible enough with the native linker
  8566. # that we're better off using the native interface for both.
  8567. lt_use_gnu_ld_interface=no
  8568. if test yes = "$with_gnu_ld"; then
  8569. case $host_os in
  8570. aix*)
  8571. # The AIX port of GNU ld has always aspired to compatibility
  8572. # with the native linker. However, as the warning in the GNU ld
  8573. # block says, versions before 2.19.5* couldn't really create working
  8574. # shared libraries, regardless of the interface used.
  8575. case `$LD -v 2>&1` in
  8576. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8577. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8578. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8579. *)
  8580. lt_use_gnu_ld_interface=yes
  8581. ;;
  8582. esac
  8583. ;;
  8584. *)
  8585. lt_use_gnu_ld_interface=yes
  8586. ;;
  8587. esac
  8588. fi
  8589. if test yes = "$lt_use_gnu_ld_interface"; then
  8590. # If archive_cmds runs LD, not CC, wlarc should be empty
  8591. wlarc='$wl'
  8592. # Set some defaults for GNU ld with shared library support. These
  8593. # are reset later if shared libraries are not supported. Putting them
  8594. # here allows them to be overridden if necessary.
  8595. runpath_var=LD_RUN_PATH
  8596. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8597. export_dynamic_flag_spec='$wl--export-dynamic'
  8598. # ancient GNU ld didn't support --whole-archive et. al.
  8599. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8600. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8601. else
  8602. whole_archive_flag_spec=
  8603. fi
  8604. supports_anon_versioning=no
  8605. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8606. *GNU\ gold*) supports_anon_versioning=yes ;;
  8607. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8608. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8609. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8610. *\ 2.11.*) ;; # other 2.11 versions
  8611. *) supports_anon_versioning=yes ;;
  8612. esac
  8613. # See if GNU ld supports shared libraries.
  8614. case $host_os in
  8615. aix[3-9]*)
  8616. # On AIX/PPC, the GNU linker is very broken
  8617. if test ia64 != "$host_cpu"; then
  8618. ld_shlibs=no
  8619. cat <<_LT_EOF 1>&2
  8620. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8621. *** to be unable to reliably create shared libraries on AIX.
  8622. *** Therefore, libtool is disabling shared libraries support. If you
  8623. *** really care for shared libraries, you may want to install binutils
  8624. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8625. *** You will then need to restart the configuration process.
  8626. _LT_EOF
  8627. fi
  8628. ;;
  8629. amigaos*)
  8630. case $host_cpu in
  8631. powerpc)
  8632. # see comment about AmigaOS4 .so support
  8633. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8634. archive_expsym_cmds=''
  8635. ;;
  8636. m68k)
  8637. 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)'
  8638. hardcode_libdir_flag_spec='-L$libdir'
  8639. hardcode_minus_L=yes
  8640. ;;
  8641. esac
  8642. ;;
  8643. beos*)
  8644. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8645. allow_undefined_flag=unsupported
  8646. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8647. # support --undefined. This deserves some investigation. FIXME
  8648. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8649. else
  8650. ld_shlibs=no
  8651. fi
  8652. ;;
  8653. cygwin* | mingw* | pw32* | cegcc*)
  8654. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8655. # as there is no search path for DLLs.
  8656. hardcode_libdir_flag_spec='-L$libdir'
  8657. export_dynamic_flag_spec='$wl--export-all-symbols'
  8658. allow_undefined_flag=unsupported
  8659. always_export_symbols=no
  8660. enable_shared_with_static_runtimes=yes
  8661. 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'
  8662. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8663. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8664. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8665. # If the export-symbols file already is a .def file, use it as
  8666. # is; otherwise, prepend EXPORTS...
  8667. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8668. cp $export_symbols $output_objdir/$soname.def;
  8669. else
  8670. echo EXPORTS > $output_objdir/$soname.def;
  8671. cat $export_symbols >> $output_objdir/$soname.def;
  8672. fi~
  8673. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8674. else
  8675. ld_shlibs=no
  8676. fi
  8677. ;;
  8678. haiku*)
  8679. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8680. link_all_deplibs=yes
  8681. ;;
  8682. os2*)
  8683. hardcode_libdir_flag_spec='-L$libdir'
  8684. hardcode_minus_L=yes
  8685. allow_undefined_flag=unsupported
  8686. shrext_cmds=.dll
  8687. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8688. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8689. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8690. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8691. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8692. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8693. emximp -o $lib $output_objdir/$libname.def'
  8694. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8695. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8696. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8697. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8698. prefix_cmds="$SED"~
  8699. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8700. prefix_cmds="$prefix_cmds -e 1d";
  8701. fi~
  8702. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8703. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8704. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8705. emximp -o $lib $output_objdir/$libname.def'
  8706. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8707. enable_shared_with_static_runtimes=yes
  8708. file_list_spec='@'
  8709. ;;
  8710. interix[3-9]*)
  8711. hardcode_direct=no
  8712. hardcode_shlibpath_var=no
  8713. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8714. export_dynamic_flag_spec='$wl-E'
  8715. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8716. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8717. # default) and relocated if they conflict, which is a slow very memory
  8718. # consuming and fragmenting process. To avoid this, we pick a random,
  8719. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8720. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8721. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8722. 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'
  8723. ;;
  8724. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8725. tmp_diet=no
  8726. if test linux-dietlibc = "$host_os"; then
  8727. case $cc_basename in
  8728. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8729. esac
  8730. fi
  8731. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8732. && test no = "$tmp_diet"
  8733. then
  8734. tmp_addflag=' $pic_flag'
  8735. tmp_sharedflag='-shared'
  8736. case $cc_basename,$host_cpu in
  8737. pgcc*) # Portland Group C compiler
  8738. 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'
  8739. tmp_addflag=' $pic_flag'
  8740. ;;
  8741. pgf77* | pgf90* | pgf95* | pgfortran*)
  8742. # Portland Group f77 and f90 compilers
  8743. 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'
  8744. tmp_addflag=' $pic_flag -Mnomain' ;;
  8745. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8746. tmp_addflag=' -i_dynamic' ;;
  8747. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8748. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8749. ifc* | ifort*) # Intel Fortran compiler
  8750. tmp_addflag=' -nofor_main' ;;
  8751. lf95*) # Lahey Fortran 8.1
  8752. whole_archive_flag_spec=
  8753. tmp_sharedflag='--shared' ;;
  8754. nagfor*) # NAGFOR 5.3
  8755. tmp_sharedflag='-Wl,-shared' ;;
  8756. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8757. tmp_sharedflag='-qmkshrobj'
  8758. tmp_addflag= ;;
  8759. nvcc*) # Cuda Compiler Driver 2.2
  8760. 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'
  8761. compiler_needs_object=yes
  8762. ;;
  8763. esac
  8764. case `$CC -V 2>&1 | sed 5q` in
  8765. *Sun\ C*) # Sun C 5.9
  8766. 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'
  8767. compiler_needs_object=yes
  8768. tmp_sharedflag='-G' ;;
  8769. *Sun\ F*) # Sun Fortran 8.3
  8770. tmp_sharedflag='-G' ;;
  8771. esac
  8772. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8773. if test yes = "$supports_anon_versioning"; then
  8774. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8775. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8776. echo "local: *; };" >> $output_objdir/$libname.ver~
  8777. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8778. fi
  8779. case $cc_basename in
  8780. tcc*)
  8781. export_dynamic_flag_spec='-rdynamic'
  8782. ;;
  8783. xlf* | bgf* | bgxlf* | mpixlf*)
  8784. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8785. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8786. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8787. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8788. if test yes = "$supports_anon_versioning"; then
  8789. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8790. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8791. echo "local: *; };" >> $output_objdir/$libname.ver~
  8792. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8793. fi
  8794. ;;
  8795. esac
  8796. else
  8797. ld_shlibs=no
  8798. fi
  8799. ;;
  8800. netbsd*)
  8801. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8802. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8803. wlarc=
  8804. else
  8805. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8806. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8807. fi
  8808. ;;
  8809. solaris*)
  8810. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8811. ld_shlibs=no
  8812. cat <<_LT_EOF 1>&2
  8813. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8814. *** create shared libraries on Solaris systems. Therefore, libtool
  8815. *** is disabling shared libraries support. We urge you to upgrade GNU
  8816. *** binutils to release 2.9.1 or newer. Another option is to modify
  8817. *** your PATH or compiler configuration so that the native linker is
  8818. *** used, and then restart.
  8819. _LT_EOF
  8820. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8821. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8822. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8823. else
  8824. ld_shlibs=no
  8825. fi
  8826. ;;
  8827. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8828. case `$LD -v 2>&1` in
  8829. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8830. ld_shlibs=no
  8831. cat <<_LT_EOF 1>&2
  8832. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8833. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8834. *** is disabling shared libraries support. We urge you to upgrade GNU
  8835. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8836. *** your PATH or compiler configuration so that the native linker is
  8837. *** used, and then restart.
  8838. _LT_EOF
  8839. ;;
  8840. *)
  8841. # For security reasons, it is highly recommended that you always
  8842. # use absolute paths for naming shared libraries, and exclude the
  8843. # DT_RUNPATH tag from executables and libraries. But doing so
  8844. # requires that you compile everything twice, which is a pain.
  8845. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8846. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8847. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8848. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8849. else
  8850. ld_shlibs=no
  8851. fi
  8852. ;;
  8853. esac
  8854. ;;
  8855. sunos4*)
  8856. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8857. wlarc=
  8858. hardcode_direct=yes
  8859. hardcode_shlibpath_var=no
  8860. ;;
  8861. *)
  8862. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8863. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8864. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8865. else
  8866. ld_shlibs=no
  8867. fi
  8868. ;;
  8869. esac
  8870. if test no = "$ld_shlibs"; then
  8871. runpath_var=
  8872. hardcode_libdir_flag_spec=
  8873. export_dynamic_flag_spec=
  8874. whole_archive_flag_spec=
  8875. fi
  8876. else
  8877. # PORTME fill in a description of your system's linker (not GNU ld)
  8878. case $host_os in
  8879. aix3*)
  8880. allow_undefined_flag=unsupported
  8881. always_export_symbols=yes
  8882. 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'
  8883. # Note: this linker hardcodes the directories in LIBPATH if there
  8884. # are no directories specified by -L.
  8885. hardcode_minus_L=yes
  8886. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8887. # Neither direct hardcoding nor static linking is supported with a
  8888. # broken collect2.
  8889. hardcode_direct=unsupported
  8890. fi
  8891. ;;
  8892. aix[4-9]*)
  8893. if test ia64 = "$host_cpu"; then
  8894. # On IA64, the linker does run time linking by default, so we don't
  8895. # have to do anything special.
  8896. aix_use_runtimelinking=no
  8897. exp_sym_flag='-Bexport'
  8898. no_entry_flag=
  8899. else
  8900. # If we're using GNU nm, then we don't want the "-C" option.
  8901. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8902. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8903. # weak defined symbols like other global defined symbols, whereas
  8904. # GNU nm marks them as "W".
  8905. # While the 'weak' keyword is ignored in the Export File, we need
  8906. # it in the Import File for the 'aix-soname' feature, so we have
  8907. # to replace the "-B" option with "-P" for AIX nm.
  8908. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8909. 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'
  8910. else
  8911. 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'
  8912. fi
  8913. aix_use_runtimelinking=no
  8914. # Test if we are trying to use run time linking or normal
  8915. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8916. # have runtime linking enabled, and use it for executables.
  8917. # For shared libraries, we enable/disable runtime linking
  8918. # depending on the kind of the shared library created -
  8919. # when "with_aix_soname,aix_use_runtimelinking" is:
  8920. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8921. # "aix,yes" lib.so shared, rtl:yes, for executables
  8922. # lib.a static archive
  8923. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8924. # lib.a(lib.so.V) shared, rtl:no, for executables
  8925. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8926. # lib.a(lib.so.V) shared, rtl:no
  8927. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8928. # lib.a static archive
  8929. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8930. for ld_flag in $LDFLAGS; do
  8931. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8932. aix_use_runtimelinking=yes
  8933. break
  8934. fi
  8935. done
  8936. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8937. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8938. # so we don't have lib.a shared libs to link our executables.
  8939. # We have to force runtime linking in this case.
  8940. aix_use_runtimelinking=yes
  8941. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8942. fi
  8943. ;;
  8944. esac
  8945. exp_sym_flag='-bexport'
  8946. no_entry_flag='-bnoentry'
  8947. fi
  8948. # When large executables or shared objects are built, AIX ld can
  8949. # have problems creating the table of contents. If linking a library
  8950. # or program results in "error TOC overflow" add -mminimal-toc to
  8951. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8952. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8953. archive_cmds=''
  8954. hardcode_direct=yes
  8955. hardcode_direct_absolute=yes
  8956. hardcode_libdir_separator=':'
  8957. link_all_deplibs=yes
  8958. file_list_spec='$wl-f,'
  8959. case $with_aix_soname,$aix_use_runtimelinking in
  8960. aix,*) ;; # traditional, no import file
  8961. svr4,* | *,yes) # use import file
  8962. # The Import File defines what to hardcode.
  8963. hardcode_direct=no
  8964. hardcode_direct_absolute=no
  8965. ;;
  8966. esac
  8967. if test yes = "$GCC"; then
  8968. case $host_os in aix4.[012]|aix4.[012].*)
  8969. # We only want to do this on AIX 4.2 and lower, the check
  8970. # below for broken collect2 doesn't work under 4.3+
  8971. collect2name=`$CC -print-prog-name=collect2`
  8972. if test -f "$collect2name" &&
  8973. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8974. then
  8975. # We have reworked collect2
  8976. :
  8977. else
  8978. # We have old collect2
  8979. hardcode_direct=unsupported
  8980. # It fails to find uninstalled libraries when the uninstalled
  8981. # path is not listed in the libpath. Setting hardcode_minus_L
  8982. # to unsupported forces relinking
  8983. hardcode_minus_L=yes
  8984. hardcode_libdir_flag_spec='-L$libdir'
  8985. hardcode_libdir_separator=
  8986. fi
  8987. ;;
  8988. esac
  8989. shared_flag='-shared'
  8990. if test yes = "$aix_use_runtimelinking"; then
  8991. shared_flag="$shared_flag "'$wl-G'
  8992. fi
  8993. # Need to ensure runtime linking is disabled for the traditional
  8994. # shared library, or the linker may eventually find shared libraries
  8995. # /with/ Import File - we do not want to mix them.
  8996. shared_flag_aix='-shared'
  8997. shared_flag_svr4='-shared $wl-G'
  8998. else
  8999. # not using gcc
  9000. if test ia64 = "$host_cpu"; then
  9001. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9002. # chokes on -Wl,-G. The following line is correct:
  9003. shared_flag='-G'
  9004. else
  9005. if test yes = "$aix_use_runtimelinking"; then
  9006. shared_flag='$wl-G'
  9007. else
  9008. shared_flag='$wl-bM:SRE'
  9009. fi
  9010. shared_flag_aix='$wl-bM:SRE'
  9011. shared_flag_svr4='$wl-G'
  9012. fi
  9013. fi
  9014. export_dynamic_flag_spec='$wl-bexpall'
  9015. # It seems that -bexpall does not export symbols beginning with
  9016. # underscore (_), so it is better to generate a list of symbols to export.
  9017. always_export_symbols=yes
  9018. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9019. # Warning - without using the other runtime loading flags (-brtl),
  9020. # -berok will link without error, but may produce a broken library.
  9021. allow_undefined_flag='-berok'
  9022. # Determine the default libpath from the value encoded in an
  9023. # empty executable.
  9024. if test set = "${lt_cv_aix_libpath+set}"; then
  9025. aix_libpath=$lt_cv_aix_libpath
  9026. else
  9027. if test ${lt_cv_aix_libpath_+y}
  9028. then :
  9029. printf %s "(cached) " >&6
  9030. else $as_nop
  9031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9032. /* end confdefs.h. */
  9033. int
  9034. main (void)
  9035. {
  9036. ;
  9037. return 0;
  9038. }
  9039. _ACEOF
  9040. if ac_fn_c_try_link "$LINENO"
  9041. then :
  9042. lt_aix_libpath_sed='
  9043. /Import File Strings/,/^$/ {
  9044. /^0/ {
  9045. s/^0 *\([^ ]*\) *$/\1/
  9046. p
  9047. }
  9048. }'
  9049. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9050. # Check for a 64-bit object if we didn't find anything.
  9051. if test -z "$lt_cv_aix_libpath_"; then
  9052. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9053. fi
  9054. fi
  9055. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9056. conftest$ac_exeext conftest.$ac_ext
  9057. if test -z "$lt_cv_aix_libpath_"; then
  9058. lt_cv_aix_libpath_=/usr/lib:/lib
  9059. fi
  9060. fi
  9061. aix_libpath=$lt_cv_aix_libpath_
  9062. fi
  9063. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9064. 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
  9065. else
  9066. if test ia64 = "$host_cpu"; then
  9067. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9068. allow_undefined_flag="-z nodefs"
  9069. 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"
  9070. else
  9071. # Determine the default libpath from the value encoded in an
  9072. # empty executable.
  9073. if test set = "${lt_cv_aix_libpath+set}"; then
  9074. aix_libpath=$lt_cv_aix_libpath
  9075. else
  9076. if test ${lt_cv_aix_libpath_+y}
  9077. then :
  9078. printf %s "(cached) " >&6
  9079. else $as_nop
  9080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9081. /* end confdefs.h. */
  9082. int
  9083. main (void)
  9084. {
  9085. ;
  9086. return 0;
  9087. }
  9088. _ACEOF
  9089. if ac_fn_c_try_link "$LINENO"
  9090. then :
  9091. lt_aix_libpath_sed='
  9092. /Import File Strings/,/^$/ {
  9093. /^0/ {
  9094. s/^0 *\([^ ]*\) *$/\1/
  9095. p
  9096. }
  9097. }'
  9098. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9099. # Check for a 64-bit object if we didn't find anything.
  9100. if test -z "$lt_cv_aix_libpath_"; then
  9101. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9102. fi
  9103. fi
  9104. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9105. conftest$ac_exeext conftest.$ac_ext
  9106. if test -z "$lt_cv_aix_libpath_"; then
  9107. lt_cv_aix_libpath_=/usr/lib:/lib
  9108. fi
  9109. fi
  9110. aix_libpath=$lt_cv_aix_libpath_
  9111. fi
  9112. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9113. # Warning - without using the other run time loading flags,
  9114. # -berok will link without error, but may produce a broken library.
  9115. no_undefined_flag=' $wl-bernotok'
  9116. allow_undefined_flag=' $wl-berok'
  9117. if test yes = "$with_gnu_ld"; then
  9118. # We only use this code for GNU lds that support --whole-archive.
  9119. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9120. else
  9121. # Exported symbols can be pulled into shared objects from archives
  9122. whole_archive_flag_spec='$convenience'
  9123. fi
  9124. archive_cmds_need_lc=yes
  9125. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9126. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9127. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9128. if test svr4 != "$with_aix_soname"; then
  9129. # This is similar to how AIX traditionally builds its shared libraries.
  9130. 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'
  9131. fi
  9132. if test aix != "$with_aix_soname"; then
  9133. 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'
  9134. else
  9135. # used by -dlpreopen to get the symbols
  9136. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9137. fi
  9138. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9139. fi
  9140. fi
  9141. ;;
  9142. amigaos*)
  9143. case $host_cpu in
  9144. powerpc)
  9145. # see comment about AmigaOS4 .so support
  9146. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9147. archive_expsym_cmds=''
  9148. ;;
  9149. m68k)
  9150. 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)'
  9151. hardcode_libdir_flag_spec='-L$libdir'
  9152. hardcode_minus_L=yes
  9153. ;;
  9154. esac
  9155. ;;
  9156. bsdi[45]*)
  9157. export_dynamic_flag_spec=-rdynamic
  9158. ;;
  9159. cygwin* | mingw* | pw32* | cegcc*)
  9160. # When not using gcc, we currently assume that we are using
  9161. # Microsoft Visual C++.
  9162. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9163. # no search path for DLLs.
  9164. case $cc_basename in
  9165. cl*)
  9166. # Native MSVC
  9167. hardcode_libdir_flag_spec=' '
  9168. allow_undefined_flag=unsupported
  9169. always_export_symbols=yes
  9170. file_list_spec='@'
  9171. # Tell ltmain to make .lib files, not .a files.
  9172. libext=lib
  9173. # Tell ltmain to make .dll files, not .so files.
  9174. shrext_cmds=.dll
  9175. # FIXME: Setting linknames here is a bad hack.
  9176. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9177. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9178. cp "$export_symbols" "$output_objdir/$soname.def";
  9179. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9180. else
  9181. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9182. fi~
  9183. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9184. linknames='
  9185. # The linker will not automatically build a static lib if we build a DLL.
  9186. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9187. enable_shared_with_static_runtimes=yes
  9188. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9189. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9190. # Don't use ranlib
  9191. old_postinstall_cmds='chmod 644 $oldlib'
  9192. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9193. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9194. case $lt_outputfile in
  9195. *.exe|*.EXE) ;;
  9196. *)
  9197. lt_outputfile=$lt_outputfile.exe
  9198. lt_tool_outputfile=$lt_tool_outputfile.exe
  9199. ;;
  9200. esac~
  9201. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9202. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9203. $RM "$lt_outputfile.manifest";
  9204. fi'
  9205. ;;
  9206. *)
  9207. # Assume MSVC wrapper
  9208. hardcode_libdir_flag_spec=' '
  9209. allow_undefined_flag=unsupported
  9210. # Tell ltmain to make .lib files, not .a files.
  9211. libext=lib
  9212. # Tell ltmain to make .dll files, not .so files.
  9213. shrext_cmds=.dll
  9214. # FIXME: Setting linknames here is a bad hack.
  9215. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9216. # The linker will automatically build a .lib file if we build a DLL.
  9217. old_archive_from_new_cmds='true'
  9218. # FIXME: Should let the user specify the lib program.
  9219. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9220. enable_shared_with_static_runtimes=yes
  9221. ;;
  9222. esac
  9223. ;;
  9224. darwin* | rhapsody*)
  9225. archive_cmds_need_lc=no
  9226. hardcode_direct=no
  9227. hardcode_automatic=yes
  9228. hardcode_shlibpath_var=unsupported
  9229. if test yes = "$lt_cv_ld_force_load"; then
  9230. 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\"`'
  9231. else
  9232. whole_archive_flag_spec=''
  9233. fi
  9234. link_all_deplibs=yes
  9235. allow_undefined_flag=$_lt_dar_allow_undefined
  9236. case $cc_basename in
  9237. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9238. *) _lt_dar_can_shared=$GCC ;;
  9239. esac
  9240. if test yes = "$_lt_dar_can_shared"; then
  9241. output_verbose_link_cmd=func_echo_all
  9242. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9243. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9244. 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"
  9245. 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"
  9246. else
  9247. ld_shlibs=no
  9248. fi
  9249. ;;
  9250. dgux*)
  9251. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9252. hardcode_libdir_flag_spec='-L$libdir'
  9253. hardcode_shlibpath_var=no
  9254. ;;
  9255. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9256. # support. Future versions do this automatically, but an explicit c++rt0.o
  9257. # does not break anything, and helps significantly (at the cost of a little
  9258. # extra space).
  9259. freebsd2.2*)
  9260. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9261. hardcode_libdir_flag_spec='-R$libdir'
  9262. hardcode_direct=yes
  9263. hardcode_shlibpath_var=no
  9264. ;;
  9265. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9266. freebsd2.*)
  9267. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9268. hardcode_direct=yes
  9269. hardcode_minus_L=yes
  9270. hardcode_shlibpath_var=no
  9271. ;;
  9272. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9273. freebsd* | dragonfly* | midnightbsd*)
  9274. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9275. hardcode_libdir_flag_spec='-R$libdir'
  9276. hardcode_direct=yes
  9277. hardcode_shlibpath_var=no
  9278. ;;
  9279. hpux9*)
  9280. if test yes = "$GCC"; then
  9281. 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'
  9282. else
  9283. 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'
  9284. fi
  9285. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9286. hardcode_libdir_separator=:
  9287. hardcode_direct=yes
  9288. # hardcode_minus_L: Not really in the search PATH,
  9289. # but as the default location of the library.
  9290. hardcode_minus_L=yes
  9291. export_dynamic_flag_spec='$wl-E'
  9292. ;;
  9293. hpux10*)
  9294. if test yes,no = "$GCC,$with_gnu_ld"; then
  9295. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9296. else
  9297. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9298. fi
  9299. if test no = "$with_gnu_ld"; then
  9300. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9301. hardcode_libdir_separator=:
  9302. hardcode_direct=yes
  9303. hardcode_direct_absolute=yes
  9304. export_dynamic_flag_spec='$wl-E'
  9305. # hardcode_minus_L: Not really in the search PATH,
  9306. # but as the default location of the library.
  9307. hardcode_minus_L=yes
  9308. fi
  9309. ;;
  9310. hpux11*)
  9311. if test yes,no = "$GCC,$with_gnu_ld"; then
  9312. case $host_cpu in
  9313. hppa*64*)
  9314. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9315. ;;
  9316. ia64*)
  9317. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9318. ;;
  9319. *)
  9320. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9321. ;;
  9322. esac
  9323. else
  9324. case $host_cpu in
  9325. hppa*64*)
  9326. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9327. ;;
  9328. ia64*)
  9329. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9330. ;;
  9331. *)
  9332. # Older versions of the 11.00 compiler do not understand -b yet
  9333. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9335. printf %s "checking if $CC understands -b... " >&6; }
  9336. if test ${lt_cv_prog_compiler__b+y}
  9337. then :
  9338. printf %s "(cached) " >&6
  9339. else $as_nop
  9340. lt_cv_prog_compiler__b=no
  9341. save_LDFLAGS=$LDFLAGS
  9342. LDFLAGS="$LDFLAGS -b"
  9343. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9344. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9345. # The linker can only warn and ignore the option if not recognized
  9346. # So say no if there are warnings
  9347. if test -s conftest.err; then
  9348. # Append any errors to the config.log.
  9349. cat conftest.err 1>&5
  9350. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9351. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9352. if diff conftest.exp conftest.er2 >/dev/null; then
  9353. lt_cv_prog_compiler__b=yes
  9354. fi
  9355. else
  9356. lt_cv_prog_compiler__b=yes
  9357. fi
  9358. fi
  9359. $RM -r conftest*
  9360. LDFLAGS=$save_LDFLAGS
  9361. fi
  9362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9363. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9364. if test yes = "$lt_cv_prog_compiler__b"; then
  9365. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9366. else
  9367. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9368. fi
  9369. ;;
  9370. esac
  9371. fi
  9372. if test no = "$with_gnu_ld"; then
  9373. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9374. hardcode_libdir_separator=:
  9375. case $host_cpu in
  9376. hppa*64*|ia64*)
  9377. hardcode_direct=no
  9378. hardcode_shlibpath_var=no
  9379. ;;
  9380. *)
  9381. hardcode_direct=yes
  9382. hardcode_direct_absolute=yes
  9383. export_dynamic_flag_spec='$wl-E'
  9384. # hardcode_minus_L: Not really in the search PATH,
  9385. # but as the default location of the library.
  9386. hardcode_minus_L=yes
  9387. ;;
  9388. esac
  9389. fi
  9390. ;;
  9391. irix5* | irix6* | nonstopux*)
  9392. if test yes = "$GCC"; then
  9393. 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'
  9394. # Try to use the -exported_symbol ld option, if it does not
  9395. # work, assume that -exports_file does not work either and
  9396. # implicitly export all symbols.
  9397. # This should be the same for all languages, so no per-tag cache variable.
  9398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9399. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9400. if test ${lt_cv_irix_exported_symbol+y}
  9401. then :
  9402. printf %s "(cached) " >&6
  9403. else $as_nop
  9404. save_LDFLAGS=$LDFLAGS
  9405. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9407. /* end confdefs.h. */
  9408. int foo (void) { return 0; }
  9409. _ACEOF
  9410. if ac_fn_c_try_link "$LINENO"
  9411. then :
  9412. lt_cv_irix_exported_symbol=yes
  9413. else $as_nop
  9414. lt_cv_irix_exported_symbol=no
  9415. fi
  9416. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9417. conftest$ac_exeext conftest.$ac_ext
  9418. LDFLAGS=$save_LDFLAGS
  9419. fi
  9420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9421. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9422. if test yes = "$lt_cv_irix_exported_symbol"; then
  9423. 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'
  9424. fi
  9425. else
  9426. 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'
  9427. 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'
  9428. fi
  9429. archive_cmds_need_lc='no'
  9430. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9431. hardcode_libdir_separator=:
  9432. inherit_rpath=yes
  9433. link_all_deplibs=yes
  9434. ;;
  9435. linux*)
  9436. case $cc_basename in
  9437. tcc*)
  9438. # Fabrice Bellard et al's Tiny C Compiler
  9439. ld_shlibs=yes
  9440. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9441. ;;
  9442. esac
  9443. ;;
  9444. netbsd*)
  9445. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9446. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9447. else
  9448. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9449. fi
  9450. hardcode_libdir_flag_spec='-R$libdir'
  9451. hardcode_direct=yes
  9452. hardcode_shlibpath_var=no
  9453. ;;
  9454. newsos6)
  9455. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9456. hardcode_direct=yes
  9457. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9458. hardcode_libdir_separator=:
  9459. hardcode_shlibpath_var=no
  9460. ;;
  9461. *nto* | *qnx*)
  9462. ;;
  9463. openbsd* | bitrig*)
  9464. if test -f /usr/libexec/ld.so; then
  9465. hardcode_direct=yes
  9466. hardcode_shlibpath_var=no
  9467. hardcode_direct_absolute=yes
  9468. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9469. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9470. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9471. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9472. export_dynamic_flag_spec='$wl-E'
  9473. else
  9474. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9475. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9476. fi
  9477. else
  9478. ld_shlibs=no
  9479. fi
  9480. ;;
  9481. os2*)
  9482. hardcode_libdir_flag_spec='-L$libdir'
  9483. hardcode_minus_L=yes
  9484. allow_undefined_flag=unsupported
  9485. shrext_cmds=.dll
  9486. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9487. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9488. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9489. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9490. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9491. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9492. emximp -o $lib $output_objdir/$libname.def'
  9493. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9494. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9495. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9496. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9497. prefix_cmds="$SED"~
  9498. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9499. prefix_cmds="$prefix_cmds -e 1d";
  9500. fi~
  9501. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9502. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9503. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9504. emximp -o $lib $output_objdir/$libname.def'
  9505. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9506. enable_shared_with_static_runtimes=yes
  9507. file_list_spec='@'
  9508. ;;
  9509. osf3*)
  9510. if test yes = "$GCC"; then
  9511. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9512. 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'
  9513. else
  9514. allow_undefined_flag=' -expect_unresolved \*'
  9515. 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'
  9516. fi
  9517. archive_cmds_need_lc='no'
  9518. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9519. hardcode_libdir_separator=:
  9520. ;;
  9521. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9522. if test yes = "$GCC"; then
  9523. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9524. 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'
  9525. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9526. else
  9527. allow_undefined_flag=' -expect_unresolved \*'
  9528. 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'
  9529. 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~
  9530. $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'
  9531. # Both c and cxx compiler support -rpath directly
  9532. hardcode_libdir_flag_spec='-rpath $libdir'
  9533. fi
  9534. archive_cmds_need_lc='no'
  9535. hardcode_libdir_separator=:
  9536. ;;
  9537. solaris*)
  9538. no_undefined_flag=' -z defs'
  9539. if test yes = "$GCC"; then
  9540. wlarc='$wl'
  9541. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9542. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9543. $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'
  9544. else
  9545. case `$CC -V 2>&1` in
  9546. *"Compilers 5.0"*)
  9547. wlarc=''
  9548. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9549. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9550. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9551. ;;
  9552. *)
  9553. wlarc='$wl'
  9554. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9555. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9556. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9557. ;;
  9558. esac
  9559. fi
  9560. hardcode_libdir_flag_spec='-R$libdir'
  9561. hardcode_shlibpath_var=no
  9562. case $host_os in
  9563. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9564. *)
  9565. # The compiler driver will combine and reorder linker options,
  9566. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9567. # but is careful enough not to reorder.
  9568. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9569. if test yes = "$GCC"; then
  9570. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9571. else
  9572. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9573. fi
  9574. ;;
  9575. esac
  9576. link_all_deplibs=yes
  9577. ;;
  9578. sunos4*)
  9579. if test sequent = "$host_vendor"; then
  9580. # Use $CC to link under sequent, because it throws in some extra .o
  9581. # files that make .init and .fini sections work.
  9582. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9583. else
  9584. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9585. fi
  9586. hardcode_libdir_flag_spec='-L$libdir'
  9587. hardcode_direct=yes
  9588. hardcode_minus_L=yes
  9589. hardcode_shlibpath_var=no
  9590. ;;
  9591. sysv4)
  9592. case $host_vendor in
  9593. sni)
  9594. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9595. hardcode_direct=yes # is this really true???
  9596. ;;
  9597. siemens)
  9598. ## LD is ld it makes a PLAMLIB
  9599. ## CC just makes a GrossModule.
  9600. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9601. reload_cmds='$CC -r -o $output$reload_objs'
  9602. hardcode_direct=no
  9603. ;;
  9604. motorola)
  9605. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9606. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9607. ;;
  9608. esac
  9609. runpath_var='LD_RUN_PATH'
  9610. hardcode_shlibpath_var=no
  9611. ;;
  9612. sysv4.3*)
  9613. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9614. hardcode_shlibpath_var=no
  9615. export_dynamic_flag_spec='-Bexport'
  9616. ;;
  9617. sysv4*MP*)
  9618. if test -d /usr/nec; then
  9619. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9620. hardcode_shlibpath_var=no
  9621. runpath_var=LD_RUN_PATH
  9622. hardcode_runpath_var=yes
  9623. ld_shlibs=yes
  9624. fi
  9625. ;;
  9626. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9627. no_undefined_flag='$wl-z,text'
  9628. archive_cmds_need_lc=no
  9629. hardcode_shlibpath_var=no
  9630. runpath_var='LD_RUN_PATH'
  9631. if test yes = "$GCC"; then
  9632. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9633. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9634. else
  9635. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9636. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9637. fi
  9638. ;;
  9639. sysv5* | sco3.2v5* | sco5v6*)
  9640. # Note: We CANNOT use -z defs as we might desire, because we do not
  9641. # link with -lc, and that would cause any symbols used from libc to
  9642. # always be unresolved, which means just about no library would
  9643. # ever link correctly. If we're not using GNU ld we use -z text
  9644. # though, which does catch some bad symbols but isn't as heavy-handed
  9645. # as -z defs.
  9646. no_undefined_flag='$wl-z,text'
  9647. allow_undefined_flag='$wl-z,nodefs'
  9648. archive_cmds_need_lc=no
  9649. hardcode_shlibpath_var=no
  9650. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9651. hardcode_libdir_separator=':'
  9652. link_all_deplibs=yes
  9653. export_dynamic_flag_spec='$wl-Bexport'
  9654. runpath_var='LD_RUN_PATH'
  9655. if test yes = "$GCC"; then
  9656. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9657. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9658. else
  9659. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9660. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9661. fi
  9662. ;;
  9663. uts4*)
  9664. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9665. hardcode_libdir_flag_spec='-L$libdir'
  9666. hardcode_shlibpath_var=no
  9667. ;;
  9668. *)
  9669. ld_shlibs=no
  9670. ;;
  9671. esac
  9672. if test sni = "$host_vendor"; then
  9673. case $host in
  9674. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9675. export_dynamic_flag_spec='$wl-Blargedynsym'
  9676. ;;
  9677. esac
  9678. fi
  9679. fi
  9680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9681. printf "%s\n" "$ld_shlibs" >&6; }
  9682. test no = "$ld_shlibs" && can_build_shared=no
  9683. with_gnu_ld=$with_gnu_ld
  9684. #
  9685. # Do we need to explicitly link libc?
  9686. #
  9687. case "x$archive_cmds_need_lc" in
  9688. x|xyes)
  9689. # Assume -lc should be added
  9690. archive_cmds_need_lc=yes
  9691. if test yes,yes = "$GCC,$enable_shared"; then
  9692. case $archive_cmds in
  9693. *'~'*)
  9694. # FIXME: we may have to deal with multi-command sequences.
  9695. ;;
  9696. '$CC '*)
  9697. # Test whether the compiler implicitly links with -lc since on some
  9698. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9699. # to ld, don't add -lc before -lgcc.
  9700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9701. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9702. if test ${lt_cv_archive_cmds_need_lc+y}
  9703. then :
  9704. printf %s "(cached) " >&6
  9705. else $as_nop
  9706. $RM conftest*
  9707. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9708. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9709. (eval $ac_compile) 2>&5
  9710. ac_status=$?
  9711. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9712. test $ac_status = 0; } 2>conftest.err; then
  9713. soname=conftest
  9714. lib=conftest
  9715. libobjs=conftest.$ac_objext
  9716. deplibs=
  9717. wl=$lt_prog_compiler_wl
  9718. pic_flag=$lt_prog_compiler_pic
  9719. compiler_flags=-v
  9720. linker_flags=-v
  9721. verstring=
  9722. output_objdir=.
  9723. libname=conftest
  9724. lt_save_allow_undefined_flag=$allow_undefined_flag
  9725. allow_undefined_flag=
  9726. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9727. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9728. ac_status=$?
  9729. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9730. test $ac_status = 0; }
  9731. then
  9732. lt_cv_archive_cmds_need_lc=no
  9733. else
  9734. lt_cv_archive_cmds_need_lc=yes
  9735. fi
  9736. allow_undefined_flag=$lt_save_allow_undefined_flag
  9737. else
  9738. cat conftest.err 1>&5
  9739. fi
  9740. $RM conftest*
  9741. fi
  9742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9743. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9744. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9745. ;;
  9746. esac
  9747. fi
  9748. ;;
  9749. esac
  9750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9751. printf %s "checking dynamic linker characteristics... " >&6; }
  9752. if test yes = "$GCC"; then
  9753. case $host_os in
  9754. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9755. *) lt_awk_arg='/^libraries:/' ;;
  9756. esac
  9757. case $host_os in
  9758. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9759. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9760. esac
  9761. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9762. case $lt_search_path_spec in
  9763. *\;*)
  9764. # if the path contains ";" then we assume it to be the separator
  9765. # otherwise default to the standard path separator (i.e. ":") - it is
  9766. # assumed that no part of a normal pathname contains ";" but that should
  9767. # okay in the real world where ";" in dirpaths is itself problematic.
  9768. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9769. ;;
  9770. *)
  9771. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9772. ;;
  9773. esac
  9774. # Ok, now we have the path, separated by spaces, we can step through it
  9775. # and add multilib dir if necessary...
  9776. lt_tmp_lt_search_path_spec=
  9777. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9778. # ...but if some path component already ends with the multilib dir we assume
  9779. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9780. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9781. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9782. lt_multi_os_dir=
  9783. ;;
  9784. esac
  9785. for lt_sys_path in $lt_search_path_spec; do
  9786. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9787. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9788. elif test -n "$lt_multi_os_dir"; then
  9789. test -d "$lt_sys_path" && \
  9790. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9791. fi
  9792. done
  9793. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9794. BEGIN {RS = " "; FS = "/|\n";} {
  9795. lt_foo = "";
  9796. lt_count = 0;
  9797. for (lt_i = NF; lt_i > 0; lt_i--) {
  9798. if ($lt_i != "" && $lt_i != ".") {
  9799. if ($lt_i == "..") {
  9800. lt_count++;
  9801. } else {
  9802. if (lt_count == 0) {
  9803. lt_foo = "/" $lt_i lt_foo;
  9804. } else {
  9805. lt_count--;
  9806. }
  9807. }
  9808. }
  9809. }
  9810. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9811. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9812. }'`
  9813. # AWK program above erroneously prepends '/' to C:/dos/paths
  9814. # for these hosts.
  9815. case $host_os in
  9816. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9817. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9818. esac
  9819. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9820. else
  9821. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9822. fi
  9823. library_names_spec=
  9824. libname_spec='lib$name'
  9825. soname_spec=
  9826. shrext_cmds=.so
  9827. postinstall_cmds=
  9828. postuninstall_cmds=
  9829. finish_cmds=
  9830. finish_eval=
  9831. shlibpath_var=
  9832. shlibpath_overrides_runpath=unknown
  9833. version_type=none
  9834. dynamic_linker="$host_os ld.so"
  9835. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9836. need_lib_prefix=unknown
  9837. hardcode_into_libs=no
  9838. # when you set need_version to no, make sure it does not cause -set_version
  9839. # flags to be left without arguments
  9840. need_version=unknown
  9841. case $host_os in
  9842. aix3*)
  9843. version_type=linux # correct to gnu/linux during the next big refactor
  9844. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9845. shlibpath_var=LIBPATH
  9846. # AIX 3 has no versioning support, so we append a major version to the name.
  9847. soname_spec='$libname$release$shared_ext$major'
  9848. ;;
  9849. aix[4-9]*)
  9850. version_type=linux # correct to gnu/linux during the next big refactor
  9851. need_lib_prefix=no
  9852. need_version=no
  9853. hardcode_into_libs=yes
  9854. if test ia64 = "$host_cpu"; then
  9855. # AIX 5 supports IA64
  9856. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9857. shlibpath_var=LD_LIBRARY_PATH
  9858. else
  9859. # With GCC up to 2.95.x, collect2 would create an import file
  9860. # for dependence libraries. The import file would start with
  9861. # the line '#! .'. This would cause the generated library to
  9862. # depend on '.', always an invalid library. This was fixed in
  9863. # development snapshots of GCC prior to 3.0.
  9864. case $host_os in
  9865. aix4 | aix4.[01] | aix4.[01].*)
  9866. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9867. echo ' yes '
  9868. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9869. :
  9870. else
  9871. can_build_shared=no
  9872. fi
  9873. ;;
  9874. esac
  9875. # Using Import Files as archive members, it is possible to support
  9876. # filename-based versioning of shared library archives on AIX. While
  9877. # this would work for both with and without runtime linking, it will
  9878. # prevent static linking of such archives. So we do filename-based
  9879. # shared library versioning with .so extension only, which is used
  9880. # when both runtime linking and shared linking is enabled.
  9881. # Unfortunately, runtime linking may impact performance, so we do
  9882. # not want this to be the default eventually. Also, we use the
  9883. # versioned .so libs for executables only if there is the -brtl
  9884. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9885. # To allow for filename-based versioning support, we need to create
  9886. # libNAME.so.V as an archive file, containing:
  9887. # *) an Import File, referring to the versioned filename of the
  9888. # archive as well as the shared archive member, telling the
  9889. # bitwidth (32 or 64) of that shared object, and providing the
  9890. # list of exported symbols of that shared object, eventually
  9891. # decorated with the 'weak' keyword
  9892. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9893. # it being seen by the linker.
  9894. # At run time we better use the real file rather than another symlink,
  9895. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9896. case $with_aix_soname,$aix_use_runtimelinking in
  9897. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9898. # soname into executable. Probably we can add versioning support to
  9899. # collect2, so additional links can be useful in future.
  9900. aix,yes) # traditional libtool
  9901. dynamic_linker='AIX unversionable lib.so'
  9902. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9903. # instead of lib<name>.a to let people know that these are not
  9904. # typical AIX shared libraries.
  9905. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9906. ;;
  9907. aix,no) # traditional AIX only
  9908. dynamic_linker='AIX lib.a(lib.so.V)'
  9909. # We preserve .a as extension for shared libraries through AIX4.2
  9910. # and later when we are not doing run time linking.
  9911. library_names_spec='$libname$release.a $libname.a'
  9912. soname_spec='$libname$release$shared_ext$major'
  9913. ;;
  9914. svr4,*) # full svr4 only
  9915. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9916. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9917. # We do not specify a path in Import Files, so LIBPATH fires.
  9918. shlibpath_overrides_runpath=yes
  9919. ;;
  9920. *,yes) # both, prefer svr4
  9921. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9922. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9923. # unpreferred sharedlib libNAME.a needs extra handling
  9924. 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"'
  9925. 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"'
  9926. # We do not specify a path in Import Files, so LIBPATH fires.
  9927. shlibpath_overrides_runpath=yes
  9928. ;;
  9929. *,no) # both, prefer aix
  9930. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9931. library_names_spec='$libname$release.a $libname.a'
  9932. soname_spec='$libname$release$shared_ext$major'
  9933. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9934. 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)'
  9935. 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"'
  9936. ;;
  9937. esac
  9938. shlibpath_var=LIBPATH
  9939. fi
  9940. ;;
  9941. amigaos*)
  9942. case $host_cpu in
  9943. powerpc)
  9944. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9945. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9946. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9947. ;;
  9948. m68k)
  9949. library_names_spec='$libname.ixlibrary $libname.a'
  9950. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9951. 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'
  9952. ;;
  9953. esac
  9954. ;;
  9955. beos*)
  9956. library_names_spec='$libname$shared_ext'
  9957. dynamic_linker="$host_os ld.so"
  9958. shlibpath_var=LIBRARY_PATH
  9959. ;;
  9960. bsdi[45]*)
  9961. version_type=linux # correct to gnu/linux during the next big refactor
  9962. need_version=no
  9963. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9964. soname_spec='$libname$release$shared_ext$major'
  9965. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9966. shlibpath_var=LD_LIBRARY_PATH
  9967. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9968. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9969. # the default ld.so.conf also contains /usr/contrib/lib and
  9970. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9971. # libtool to hard-code these into programs
  9972. ;;
  9973. cygwin* | mingw* | pw32* | cegcc*)
  9974. version_type=windows
  9975. shrext_cmds=.dll
  9976. need_version=no
  9977. need_lib_prefix=no
  9978. case $GCC,$cc_basename in
  9979. yes,*)
  9980. # gcc
  9981. library_names_spec='$libname.dll.a'
  9982. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9983. postinstall_cmds='base_file=`basename \$file`~
  9984. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9985. dldir=$destdir/`dirname \$dlpath`~
  9986. test -d \$dldir || mkdir -p \$dldir~
  9987. $install_prog $dir/$dlname \$dldir/$dlname~
  9988. chmod a+x \$dldir/$dlname~
  9989. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9990. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9991. fi'
  9992. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9993. dlpath=$dir/\$dldll~
  9994. $RM \$dlpath'
  9995. shlibpath_overrides_runpath=yes
  9996. case $host_os in
  9997. cygwin*)
  9998. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9999. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10000. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  10001. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10002. ;;
  10003. mingw* | cegcc*)
  10004. # MinGW DLLs use traditional 'lib' prefix
  10005. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10006. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  10007. ;;
  10008. pw32*)
  10009. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10010. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10011. ;;
  10012. esac
  10013. dynamic_linker='Win32 ld.exe'
  10014. ;;
  10015. *,cl*)
  10016. # Native MSVC
  10017. libname_spec='$name'
  10018. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10019. library_names_spec='$libname.dll.lib'
  10020. case $build_os in
  10021. mingw*)
  10022. sys_lib_search_path_spec=
  10023. lt_save_ifs=$IFS
  10024. IFS=';'
  10025. for lt_path in $LIB
  10026. do
  10027. IFS=$lt_save_ifs
  10028. # Let DOS variable expansion print the short 8.3 style file name.
  10029. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10030. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10031. done
  10032. IFS=$lt_save_ifs
  10033. # Convert to MSYS style.
  10034. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10035. ;;
  10036. cygwin*)
  10037. # Convert to unix form, then to dos form, then back to unix form
  10038. # but this time dos style (no spaces!) so that the unix form looks
  10039. # like /cygdrive/c/PROGRA~1:/cygdr...
  10040. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10041. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10042. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10043. ;;
  10044. *)
  10045. sys_lib_search_path_spec=$LIB
  10046. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10047. # It is most probably a Windows format PATH.
  10048. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10049. else
  10050. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10051. fi
  10052. # FIXME: find the short name or the path components, as spaces are
  10053. # common. (e.g. "Program Files" -> "PROGRA~1")
  10054. ;;
  10055. esac
  10056. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10057. postinstall_cmds='base_file=`basename \$file`~
  10058. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10059. dldir=$destdir/`dirname \$dlpath`~
  10060. test -d \$dldir || mkdir -p \$dldir~
  10061. $install_prog $dir/$dlname \$dldir/$dlname'
  10062. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10063. dlpath=$dir/\$dldll~
  10064. $RM \$dlpath'
  10065. shlibpath_overrides_runpath=yes
  10066. dynamic_linker='Win32 link.exe'
  10067. ;;
  10068. *)
  10069. # Assume MSVC wrapper
  10070. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10071. dynamic_linker='Win32 ld.exe'
  10072. ;;
  10073. esac
  10074. # FIXME: first we should search . and the directory the executable is in
  10075. shlibpath_var=PATH
  10076. ;;
  10077. darwin* | rhapsody*)
  10078. dynamic_linker="$host_os dyld"
  10079. version_type=darwin
  10080. need_lib_prefix=no
  10081. need_version=no
  10082. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10083. soname_spec='$libname$release$major$shared_ext'
  10084. shlibpath_overrides_runpath=yes
  10085. shlibpath_var=DYLD_LIBRARY_PATH
  10086. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10087. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10088. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10089. ;;
  10090. dgux*)
  10091. version_type=linux # correct to gnu/linux during the next big refactor
  10092. need_lib_prefix=no
  10093. need_version=no
  10094. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10095. soname_spec='$libname$release$shared_ext$major'
  10096. shlibpath_var=LD_LIBRARY_PATH
  10097. ;;
  10098. freebsd* | dragonfly* | midnightbsd*)
  10099. # DragonFly does not have aout. When/if they implement a new
  10100. # versioning mechanism, adjust this.
  10101. if test -x /usr/bin/objformat; then
  10102. objformat=`/usr/bin/objformat`
  10103. else
  10104. case $host_os in
  10105. freebsd[23].*) objformat=aout ;;
  10106. *) objformat=elf ;;
  10107. esac
  10108. fi
  10109. version_type=freebsd-$objformat
  10110. case $version_type in
  10111. freebsd-elf*)
  10112. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10113. soname_spec='$libname$release$shared_ext$major'
  10114. need_version=no
  10115. need_lib_prefix=no
  10116. ;;
  10117. freebsd-*)
  10118. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10119. need_version=yes
  10120. ;;
  10121. esac
  10122. shlibpath_var=LD_LIBRARY_PATH
  10123. case $host_os in
  10124. freebsd2.*)
  10125. shlibpath_overrides_runpath=yes
  10126. ;;
  10127. freebsd3.[01]* | freebsdelf3.[01]*)
  10128. shlibpath_overrides_runpath=yes
  10129. hardcode_into_libs=yes
  10130. ;;
  10131. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10132. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10133. shlibpath_overrides_runpath=no
  10134. hardcode_into_libs=yes
  10135. ;;
  10136. *) # from 4.6 on, and DragonFly
  10137. shlibpath_overrides_runpath=yes
  10138. hardcode_into_libs=yes
  10139. ;;
  10140. esac
  10141. ;;
  10142. haiku*)
  10143. version_type=linux # correct to gnu/linux during the next big refactor
  10144. need_lib_prefix=no
  10145. need_version=no
  10146. dynamic_linker="$host_os runtime_loader"
  10147. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10148. soname_spec='$libname$release$shared_ext$major'
  10149. shlibpath_var=LIBRARY_PATH
  10150. shlibpath_overrides_runpath=no
  10151. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10152. hardcode_into_libs=yes
  10153. ;;
  10154. hpux9* | hpux10* | hpux11*)
  10155. # Give a soname corresponding to the major version so that dld.sl refuses to
  10156. # link against other versions.
  10157. version_type=sunos
  10158. need_lib_prefix=no
  10159. need_version=no
  10160. case $host_cpu in
  10161. ia64*)
  10162. shrext_cmds='.so'
  10163. hardcode_into_libs=yes
  10164. dynamic_linker="$host_os dld.so"
  10165. shlibpath_var=LD_LIBRARY_PATH
  10166. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10167. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10168. soname_spec='$libname$release$shared_ext$major'
  10169. if test 32 = "$HPUX_IA64_MODE"; then
  10170. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10171. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10172. else
  10173. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10174. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10175. fi
  10176. ;;
  10177. hppa*64*)
  10178. shrext_cmds='.sl'
  10179. hardcode_into_libs=yes
  10180. dynamic_linker="$host_os dld.sl"
  10181. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10182. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10183. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10184. soname_spec='$libname$release$shared_ext$major'
  10185. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10186. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10187. ;;
  10188. *)
  10189. shrext_cmds='.sl'
  10190. dynamic_linker="$host_os dld.sl"
  10191. shlibpath_var=SHLIB_PATH
  10192. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10193. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10194. soname_spec='$libname$release$shared_ext$major'
  10195. ;;
  10196. esac
  10197. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10198. postinstall_cmds='chmod 555 $lib'
  10199. # or fails outright, so override atomically:
  10200. install_override_mode=555
  10201. ;;
  10202. interix[3-9]*)
  10203. version_type=linux # correct to gnu/linux during the next big refactor
  10204. need_lib_prefix=no
  10205. need_version=no
  10206. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10207. soname_spec='$libname$release$shared_ext$major'
  10208. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10209. shlibpath_var=LD_LIBRARY_PATH
  10210. shlibpath_overrides_runpath=no
  10211. hardcode_into_libs=yes
  10212. ;;
  10213. irix5* | irix6* | nonstopux*)
  10214. case $host_os in
  10215. nonstopux*) version_type=nonstopux ;;
  10216. *)
  10217. if test yes = "$lt_cv_prog_gnu_ld"; then
  10218. version_type=linux # correct to gnu/linux during the next big refactor
  10219. else
  10220. version_type=irix
  10221. fi ;;
  10222. esac
  10223. need_lib_prefix=no
  10224. need_version=no
  10225. soname_spec='$libname$release$shared_ext$major'
  10226. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10227. case $host_os in
  10228. irix5* | nonstopux*)
  10229. libsuff= shlibsuff=
  10230. ;;
  10231. *)
  10232. case $LD in # libtool.m4 will add one of these switches to LD
  10233. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10234. libsuff= shlibsuff= libmagic=32-bit;;
  10235. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10236. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10237. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10238. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10239. *) libsuff= shlibsuff= libmagic=never-match;;
  10240. esac
  10241. ;;
  10242. esac
  10243. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10244. shlibpath_overrides_runpath=no
  10245. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10246. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10247. hardcode_into_libs=yes
  10248. ;;
  10249. # No shared lib support for Linux oldld, aout, or coff.
  10250. linux*oldld* | linux*aout* | linux*coff*)
  10251. dynamic_linker=no
  10252. ;;
  10253. linux*android*)
  10254. version_type=none # Android doesn't support versioned libraries.
  10255. need_lib_prefix=no
  10256. need_version=no
  10257. library_names_spec='$libname$release$shared_ext'
  10258. soname_spec='$libname$release$shared_ext'
  10259. finish_cmds=
  10260. shlibpath_var=LD_LIBRARY_PATH
  10261. shlibpath_overrides_runpath=yes
  10262. # This implies no fast_install, which is unacceptable.
  10263. # Some rework will be needed to allow for fast_install
  10264. # before this can be enabled.
  10265. hardcode_into_libs=yes
  10266. dynamic_linker='Android linker'
  10267. # Don't embed -rpath directories since the linker doesn't support them.
  10268. hardcode_libdir_flag_spec='-L$libdir'
  10269. ;;
  10270. # This must be glibc/ELF.
  10271. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10272. version_type=linux # correct to gnu/linux during the next big refactor
  10273. need_lib_prefix=no
  10274. need_version=no
  10275. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10276. soname_spec='$libname$release$shared_ext$major'
  10277. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10278. shlibpath_var=LD_LIBRARY_PATH
  10279. shlibpath_overrides_runpath=no
  10280. # Some binutils ld are patched to set DT_RUNPATH
  10281. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10282. then :
  10283. printf %s "(cached) " >&6
  10284. else $as_nop
  10285. lt_cv_shlibpath_overrides_runpath=no
  10286. save_LDFLAGS=$LDFLAGS
  10287. save_libdir=$libdir
  10288. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10289. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10291. /* end confdefs.h. */
  10292. int
  10293. main (void)
  10294. {
  10295. ;
  10296. return 0;
  10297. }
  10298. _ACEOF
  10299. if ac_fn_c_try_link "$LINENO"
  10300. then :
  10301. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10302. then :
  10303. lt_cv_shlibpath_overrides_runpath=yes
  10304. fi
  10305. fi
  10306. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10307. conftest$ac_exeext conftest.$ac_ext
  10308. LDFLAGS=$save_LDFLAGS
  10309. libdir=$save_libdir
  10310. fi
  10311. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10312. # This implies no fast_install, which is unacceptable.
  10313. # Some rework will be needed to allow for fast_install
  10314. # before this can be enabled.
  10315. hardcode_into_libs=yes
  10316. # Add ABI-specific directories to the system library path.
  10317. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10318. # Ideally, we could use ldconfig to report *all* directores which are
  10319. # searched for libraries, however this is still not possible. Aside from not
  10320. # being certain /sbin/ldconfig is available, command
  10321. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10322. # even though it is searched at run-time. Try to do the best guess by
  10323. # appending ld.so.conf contents (and includes) to the search path.
  10324. if test -f /etc/ld.so.conf; then
  10325. 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' ' '`
  10326. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10327. fi
  10328. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10329. # powerpc, because MkLinux only supported shared libraries with the
  10330. # GNU dynamic linker. Since this was broken with cross compilers,
  10331. # most powerpc-linux boxes support dynamic linking these days and
  10332. # people can always --disable-shared, the test was removed, and we
  10333. # assume the GNU/Linux dynamic linker is in use.
  10334. dynamic_linker='GNU/Linux ld.so'
  10335. ;;
  10336. netbsd*)
  10337. version_type=sunos
  10338. need_lib_prefix=no
  10339. need_version=no
  10340. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10341. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10342. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10343. dynamic_linker='NetBSD (a.out) ld.so'
  10344. else
  10345. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10346. soname_spec='$libname$release$shared_ext$major'
  10347. dynamic_linker='NetBSD ld.elf_so'
  10348. fi
  10349. shlibpath_var=LD_LIBRARY_PATH
  10350. shlibpath_overrides_runpath=yes
  10351. hardcode_into_libs=yes
  10352. ;;
  10353. newsos6)
  10354. version_type=linux # correct to gnu/linux during the next big refactor
  10355. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10356. shlibpath_var=LD_LIBRARY_PATH
  10357. shlibpath_overrides_runpath=yes
  10358. ;;
  10359. *nto* | *qnx*)
  10360. version_type=qnx
  10361. need_lib_prefix=no
  10362. need_version=no
  10363. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10364. soname_spec='$libname$release$shared_ext$major'
  10365. shlibpath_var=LD_LIBRARY_PATH
  10366. shlibpath_overrides_runpath=no
  10367. hardcode_into_libs=yes
  10368. dynamic_linker='ldqnx.so'
  10369. ;;
  10370. openbsd* | bitrig*)
  10371. version_type=sunos
  10372. sys_lib_dlsearch_path_spec=/usr/lib
  10373. need_lib_prefix=no
  10374. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10375. need_version=no
  10376. else
  10377. need_version=yes
  10378. fi
  10379. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10380. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10381. shlibpath_var=LD_LIBRARY_PATH
  10382. shlibpath_overrides_runpath=yes
  10383. ;;
  10384. os2*)
  10385. libname_spec='$name'
  10386. shrext_cmds=.dll
  10387. need_lib_prefix=no
  10388. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10389. # SDL customization: removed versioning support.
  10390. # version_type=windows
  10391. # need_version=no
  10392. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10393. # v=$($ECHO $release$versuffix | tr -d .-);
  10394. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10395. # $ECHO $n$v`$shared_ext'
  10396. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10397. library_names_spec='${libname}_dll.$libext'
  10398. dynamic_linker='OS/2 ld.exe'
  10399. shlibpath_var=BEGINLIBPATH
  10400. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10401. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10402. postinstall_cmds='base_file=`basename \$file`~
  10403. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10404. dldir=$destdir/`dirname \$dlpath`~
  10405. test -d \$dldir || mkdir -p \$dldir~
  10406. $install_prog $dir/$dlname \$dldir/$dlname~
  10407. chmod a+x \$dldir/$dlname~
  10408. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10409. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10410. fi'
  10411. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10412. dlpath=$dir/\$dldll~
  10413. $RM \$dlpath'
  10414. ;;
  10415. osf3* | osf4* | osf5*)
  10416. version_type=osf
  10417. need_lib_prefix=no
  10418. need_version=no
  10419. soname_spec='$libname$release$shared_ext$major'
  10420. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10421. shlibpath_var=LD_LIBRARY_PATH
  10422. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10423. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10424. ;;
  10425. rdos*)
  10426. dynamic_linker=no
  10427. ;;
  10428. solaris*)
  10429. version_type=linux # correct to gnu/linux during the next big refactor
  10430. need_lib_prefix=no
  10431. need_version=no
  10432. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10433. soname_spec='$libname$release$shared_ext$major'
  10434. shlibpath_var=LD_LIBRARY_PATH
  10435. shlibpath_overrides_runpath=yes
  10436. hardcode_into_libs=yes
  10437. # ldd complains unless libraries are executable
  10438. postinstall_cmds='chmod +x $lib'
  10439. ;;
  10440. sunos4*)
  10441. version_type=sunos
  10442. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10443. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10444. shlibpath_var=LD_LIBRARY_PATH
  10445. shlibpath_overrides_runpath=yes
  10446. if test yes = "$with_gnu_ld"; then
  10447. need_lib_prefix=no
  10448. fi
  10449. need_version=yes
  10450. ;;
  10451. sysv4 | sysv4.3*)
  10452. version_type=linux # correct to gnu/linux during the next big refactor
  10453. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10454. soname_spec='$libname$release$shared_ext$major'
  10455. shlibpath_var=LD_LIBRARY_PATH
  10456. case $host_vendor in
  10457. sni)
  10458. shlibpath_overrides_runpath=no
  10459. need_lib_prefix=no
  10460. runpath_var=LD_RUN_PATH
  10461. ;;
  10462. siemens)
  10463. need_lib_prefix=no
  10464. ;;
  10465. motorola)
  10466. need_lib_prefix=no
  10467. need_version=no
  10468. shlibpath_overrides_runpath=no
  10469. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10470. ;;
  10471. esac
  10472. ;;
  10473. sysv4*MP*)
  10474. if test -d /usr/nec; then
  10475. version_type=linux # correct to gnu/linux during the next big refactor
  10476. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10477. soname_spec='$libname$shared_ext.$major'
  10478. shlibpath_var=LD_LIBRARY_PATH
  10479. fi
  10480. ;;
  10481. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10482. version_type=sco
  10483. need_lib_prefix=no
  10484. need_version=no
  10485. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10486. soname_spec='$libname$release$shared_ext$major'
  10487. shlibpath_var=LD_LIBRARY_PATH
  10488. shlibpath_overrides_runpath=yes
  10489. hardcode_into_libs=yes
  10490. if test yes = "$with_gnu_ld"; then
  10491. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10492. else
  10493. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10494. case $host_os in
  10495. sco3.2v5*)
  10496. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10497. ;;
  10498. esac
  10499. fi
  10500. sys_lib_dlsearch_path_spec='/usr/lib'
  10501. ;;
  10502. tpf*)
  10503. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10504. version_type=linux # correct to gnu/linux during the next big refactor
  10505. need_lib_prefix=no
  10506. need_version=no
  10507. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10508. shlibpath_var=LD_LIBRARY_PATH
  10509. shlibpath_overrides_runpath=no
  10510. hardcode_into_libs=yes
  10511. ;;
  10512. uts4*)
  10513. version_type=linux # correct to gnu/linux during the next big refactor
  10514. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10515. soname_spec='$libname$release$shared_ext$major'
  10516. shlibpath_var=LD_LIBRARY_PATH
  10517. ;;
  10518. *)
  10519. dynamic_linker=no
  10520. ;;
  10521. esac
  10522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10523. printf "%s\n" "$dynamic_linker" >&6; }
  10524. test no = "$dynamic_linker" && can_build_shared=no
  10525. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10526. if test yes = "$GCC"; then
  10527. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10528. fi
  10529. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10530. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10531. fi
  10532. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10533. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10534. fi
  10535. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10536. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10537. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10538. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10539. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10540. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10542. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10543. hardcode_action=
  10544. if test -n "$hardcode_libdir_flag_spec" ||
  10545. test -n "$runpath_var" ||
  10546. test yes = "$hardcode_automatic"; then
  10547. # We can hardcode non-existent directories.
  10548. if test no != "$hardcode_direct" &&
  10549. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10550. # have to relink, otherwise we might link with an installed library
  10551. # when we should be linking with a yet-to-be-installed one
  10552. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10553. test no != "$hardcode_minus_L"; then
  10554. # Linking always hardcodes the temporary library directory.
  10555. hardcode_action=relink
  10556. else
  10557. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10558. hardcode_action=immediate
  10559. fi
  10560. else
  10561. # We cannot hardcode anything, or else we can only hardcode existing
  10562. # directories.
  10563. hardcode_action=unsupported
  10564. fi
  10565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10566. printf "%s\n" "$hardcode_action" >&6; }
  10567. if test relink = "$hardcode_action" ||
  10568. test yes = "$inherit_rpath"; then
  10569. # Fast installation is not supported
  10570. enable_fast_install=no
  10571. elif test yes = "$shlibpath_overrides_runpath" ||
  10572. test no = "$enable_shared"; then
  10573. # Fast installation is not necessary
  10574. enable_fast_install=needless
  10575. fi
  10576. if test yes != "$enable_dlopen"; then
  10577. enable_dlopen=unknown
  10578. enable_dlopen_self=unknown
  10579. enable_dlopen_self_static=unknown
  10580. else
  10581. lt_cv_dlopen=no
  10582. lt_cv_dlopen_libs=
  10583. case $host_os in
  10584. beos*)
  10585. lt_cv_dlopen=load_add_on
  10586. lt_cv_dlopen_libs=
  10587. lt_cv_dlopen_self=yes
  10588. ;;
  10589. mingw* | pw32* | cegcc*)
  10590. lt_cv_dlopen=LoadLibrary
  10591. lt_cv_dlopen_libs=
  10592. ;;
  10593. cygwin*)
  10594. lt_cv_dlopen=dlopen
  10595. lt_cv_dlopen_libs=
  10596. ;;
  10597. darwin*)
  10598. # if libdl is installed we need to link against it
  10599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10600. printf %s "checking for dlopen in -ldl... " >&6; }
  10601. if test ${ac_cv_lib_dl_dlopen+y}
  10602. then :
  10603. printf %s "(cached) " >&6
  10604. else $as_nop
  10605. ac_check_lib_save_LIBS=$LIBS
  10606. LIBS="-ldl $LIBS"
  10607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10608. /* end confdefs.h. */
  10609. /* Override any GCC internal prototype to avoid an error.
  10610. Use char because int might match the return type of a GCC
  10611. builtin and then its argument prototype would still apply. */
  10612. char dlopen ();
  10613. int
  10614. main (void)
  10615. {
  10616. return dlopen ();
  10617. ;
  10618. return 0;
  10619. }
  10620. _ACEOF
  10621. if ac_fn_c_try_link "$LINENO"
  10622. then :
  10623. ac_cv_lib_dl_dlopen=yes
  10624. else $as_nop
  10625. ac_cv_lib_dl_dlopen=no
  10626. fi
  10627. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10628. conftest$ac_exeext conftest.$ac_ext
  10629. LIBS=$ac_check_lib_save_LIBS
  10630. fi
  10631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10632. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10633. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10634. then :
  10635. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10636. else $as_nop
  10637. lt_cv_dlopen=dyld
  10638. lt_cv_dlopen_libs=
  10639. lt_cv_dlopen_self=yes
  10640. fi
  10641. ;;
  10642. tpf*)
  10643. # Don't try to run any link tests for TPF. We know it's impossible
  10644. # because TPF is a cross-compiler, and we know how we open DSOs.
  10645. lt_cv_dlopen=dlopen
  10646. lt_cv_dlopen_libs=
  10647. lt_cv_dlopen_self=no
  10648. ;;
  10649. *)
  10650. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10651. if test "x$ac_cv_func_shl_load" = xyes
  10652. then :
  10653. lt_cv_dlopen=shl_load
  10654. else $as_nop
  10655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10656. printf %s "checking for shl_load in -ldld... " >&6; }
  10657. if test ${ac_cv_lib_dld_shl_load+y}
  10658. then :
  10659. printf %s "(cached) " >&6
  10660. else $as_nop
  10661. ac_check_lib_save_LIBS=$LIBS
  10662. LIBS="-ldld $LIBS"
  10663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10664. /* end confdefs.h. */
  10665. /* Override any GCC internal prototype to avoid an error.
  10666. Use char because int might match the return type of a GCC
  10667. builtin and then its argument prototype would still apply. */
  10668. char shl_load ();
  10669. int
  10670. main (void)
  10671. {
  10672. return shl_load ();
  10673. ;
  10674. return 0;
  10675. }
  10676. _ACEOF
  10677. if ac_fn_c_try_link "$LINENO"
  10678. then :
  10679. ac_cv_lib_dld_shl_load=yes
  10680. else $as_nop
  10681. ac_cv_lib_dld_shl_load=no
  10682. fi
  10683. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10684. conftest$ac_exeext conftest.$ac_ext
  10685. LIBS=$ac_check_lib_save_LIBS
  10686. fi
  10687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10688. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10689. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10690. then :
  10691. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10692. else $as_nop
  10693. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10694. if test "x$ac_cv_func_dlopen" = xyes
  10695. then :
  10696. lt_cv_dlopen=dlopen
  10697. else $as_nop
  10698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10699. printf %s "checking for dlopen in -ldl... " >&6; }
  10700. if test ${ac_cv_lib_dl_dlopen+y}
  10701. then :
  10702. printf %s "(cached) " >&6
  10703. else $as_nop
  10704. ac_check_lib_save_LIBS=$LIBS
  10705. LIBS="-ldl $LIBS"
  10706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10707. /* end confdefs.h. */
  10708. /* Override any GCC internal prototype to avoid an error.
  10709. Use char because int might match the return type of a GCC
  10710. builtin and then its argument prototype would still apply. */
  10711. char dlopen ();
  10712. int
  10713. main (void)
  10714. {
  10715. return dlopen ();
  10716. ;
  10717. return 0;
  10718. }
  10719. _ACEOF
  10720. if ac_fn_c_try_link "$LINENO"
  10721. then :
  10722. ac_cv_lib_dl_dlopen=yes
  10723. else $as_nop
  10724. ac_cv_lib_dl_dlopen=no
  10725. fi
  10726. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10727. conftest$ac_exeext conftest.$ac_ext
  10728. LIBS=$ac_check_lib_save_LIBS
  10729. fi
  10730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10731. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10732. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10733. then :
  10734. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10735. else $as_nop
  10736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10737. printf %s "checking for dlopen in -lsvld... " >&6; }
  10738. if test ${ac_cv_lib_svld_dlopen+y}
  10739. then :
  10740. printf %s "(cached) " >&6
  10741. else $as_nop
  10742. ac_check_lib_save_LIBS=$LIBS
  10743. LIBS="-lsvld $LIBS"
  10744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10745. /* end confdefs.h. */
  10746. /* Override any GCC internal prototype to avoid an error.
  10747. Use char because int might match the return type of a GCC
  10748. builtin and then its argument prototype would still apply. */
  10749. char dlopen ();
  10750. int
  10751. main (void)
  10752. {
  10753. return dlopen ();
  10754. ;
  10755. return 0;
  10756. }
  10757. _ACEOF
  10758. if ac_fn_c_try_link "$LINENO"
  10759. then :
  10760. ac_cv_lib_svld_dlopen=yes
  10761. else $as_nop
  10762. ac_cv_lib_svld_dlopen=no
  10763. fi
  10764. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10765. conftest$ac_exeext conftest.$ac_ext
  10766. LIBS=$ac_check_lib_save_LIBS
  10767. fi
  10768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10769. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10770. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10771. then :
  10772. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10773. else $as_nop
  10774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10775. printf %s "checking for dld_link in -ldld... " >&6; }
  10776. if test ${ac_cv_lib_dld_dld_link+y}
  10777. then :
  10778. printf %s "(cached) " >&6
  10779. else $as_nop
  10780. ac_check_lib_save_LIBS=$LIBS
  10781. LIBS="-ldld $LIBS"
  10782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10783. /* end confdefs.h. */
  10784. /* Override any GCC internal prototype to avoid an error.
  10785. Use char because int might match the return type of a GCC
  10786. builtin and then its argument prototype would still apply. */
  10787. char dld_link ();
  10788. int
  10789. main (void)
  10790. {
  10791. return dld_link ();
  10792. ;
  10793. return 0;
  10794. }
  10795. _ACEOF
  10796. if ac_fn_c_try_link "$LINENO"
  10797. then :
  10798. ac_cv_lib_dld_dld_link=yes
  10799. else $as_nop
  10800. ac_cv_lib_dld_dld_link=no
  10801. fi
  10802. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10803. conftest$ac_exeext conftest.$ac_ext
  10804. LIBS=$ac_check_lib_save_LIBS
  10805. fi
  10806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10807. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10808. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10809. then :
  10810. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10811. fi
  10812. fi
  10813. fi
  10814. fi
  10815. fi
  10816. fi
  10817. ;;
  10818. esac
  10819. if test no = "$lt_cv_dlopen"; then
  10820. enable_dlopen=no
  10821. else
  10822. enable_dlopen=yes
  10823. fi
  10824. case $lt_cv_dlopen in
  10825. dlopen)
  10826. save_CPPFLAGS=$CPPFLAGS
  10827. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10828. save_LDFLAGS=$LDFLAGS
  10829. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10830. save_LIBS=$LIBS
  10831. LIBS="$lt_cv_dlopen_libs $LIBS"
  10832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10833. printf %s "checking whether a program can dlopen itself... " >&6; }
  10834. if test ${lt_cv_dlopen_self+y}
  10835. then :
  10836. printf %s "(cached) " >&6
  10837. else $as_nop
  10838. if test yes = "$cross_compiling"; then :
  10839. lt_cv_dlopen_self=cross
  10840. else
  10841. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10842. lt_status=$lt_dlunknown
  10843. cat > conftest.$ac_ext <<_LT_EOF
  10844. #line $LINENO "configure"
  10845. #include "confdefs.h"
  10846. #if HAVE_DLFCN_H
  10847. #include <dlfcn.h>
  10848. #endif
  10849. #include <stdio.h>
  10850. #ifdef RTLD_GLOBAL
  10851. # define LT_DLGLOBAL RTLD_GLOBAL
  10852. #else
  10853. # ifdef DL_GLOBAL
  10854. # define LT_DLGLOBAL DL_GLOBAL
  10855. # else
  10856. # define LT_DLGLOBAL 0
  10857. # endif
  10858. #endif
  10859. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10860. find out it does not work in some platform. */
  10861. #ifndef LT_DLLAZY_OR_NOW
  10862. # ifdef RTLD_LAZY
  10863. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10864. # else
  10865. # ifdef DL_LAZY
  10866. # define LT_DLLAZY_OR_NOW DL_LAZY
  10867. # else
  10868. # ifdef RTLD_NOW
  10869. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10870. # else
  10871. # ifdef DL_NOW
  10872. # define LT_DLLAZY_OR_NOW DL_NOW
  10873. # else
  10874. # define LT_DLLAZY_OR_NOW 0
  10875. # endif
  10876. # endif
  10877. # endif
  10878. # endif
  10879. #endif
  10880. /* When -fvisibility=hidden is used, assume the code has been annotated
  10881. correspondingly for the symbols needed. */
  10882. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10883. int fnord () __attribute__((visibility("default")));
  10884. #endif
  10885. int fnord () { return 42; }
  10886. int main ()
  10887. {
  10888. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10889. int status = $lt_dlunknown;
  10890. if (self)
  10891. {
  10892. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10893. else
  10894. {
  10895. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10896. else puts (dlerror ());
  10897. }
  10898. /* dlclose (self); */
  10899. }
  10900. else
  10901. puts (dlerror ());
  10902. return status;
  10903. }
  10904. _LT_EOF
  10905. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10906. (eval $ac_link) 2>&5
  10907. ac_status=$?
  10908. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10909. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10910. (./conftest; exit; ) >&5 2>/dev/null
  10911. lt_status=$?
  10912. case x$lt_status in
  10913. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10914. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10915. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10916. esac
  10917. else :
  10918. # compilation failed
  10919. lt_cv_dlopen_self=no
  10920. fi
  10921. fi
  10922. rm -fr conftest*
  10923. fi
  10924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10925. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10926. if test yes = "$lt_cv_dlopen_self"; then
  10927. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10929. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10930. if test ${lt_cv_dlopen_self_static+y}
  10931. then :
  10932. printf %s "(cached) " >&6
  10933. else $as_nop
  10934. if test yes = "$cross_compiling"; then :
  10935. lt_cv_dlopen_self_static=cross
  10936. else
  10937. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10938. lt_status=$lt_dlunknown
  10939. cat > conftest.$ac_ext <<_LT_EOF
  10940. #line $LINENO "configure"
  10941. #include "confdefs.h"
  10942. #if HAVE_DLFCN_H
  10943. #include <dlfcn.h>
  10944. #endif
  10945. #include <stdio.h>
  10946. #ifdef RTLD_GLOBAL
  10947. # define LT_DLGLOBAL RTLD_GLOBAL
  10948. #else
  10949. # ifdef DL_GLOBAL
  10950. # define LT_DLGLOBAL DL_GLOBAL
  10951. # else
  10952. # define LT_DLGLOBAL 0
  10953. # endif
  10954. #endif
  10955. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10956. find out it does not work in some platform. */
  10957. #ifndef LT_DLLAZY_OR_NOW
  10958. # ifdef RTLD_LAZY
  10959. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10960. # else
  10961. # ifdef DL_LAZY
  10962. # define LT_DLLAZY_OR_NOW DL_LAZY
  10963. # else
  10964. # ifdef RTLD_NOW
  10965. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10966. # else
  10967. # ifdef DL_NOW
  10968. # define LT_DLLAZY_OR_NOW DL_NOW
  10969. # else
  10970. # define LT_DLLAZY_OR_NOW 0
  10971. # endif
  10972. # endif
  10973. # endif
  10974. # endif
  10975. #endif
  10976. /* When -fvisibility=hidden is used, assume the code has been annotated
  10977. correspondingly for the symbols needed. */
  10978. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10979. int fnord () __attribute__((visibility("default")));
  10980. #endif
  10981. int fnord () { return 42; }
  10982. int main ()
  10983. {
  10984. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10985. int status = $lt_dlunknown;
  10986. if (self)
  10987. {
  10988. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10989. else
  10990. {
  10991. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10992. else puts (dlerror ());
  10993. }
  10994. /* dlclose (self); */
  10995. }
  10996. else
  10997. puts (dlerror ());
  10998. return status;
  10999. }
  11000. _LT_EOF
  11001. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11002. (eval $ac_link) 2>&5
  11003. ac_status=$?
  11004. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11005. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11006. (./conftest; exit; ) >&5 2>/dev/null
  11007. lt_status=$?
  11008. case x$lt_status in
  11009. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11010. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11011. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11012. esac
  11013. else :
  11014. # compilation failed
  11015. lt_cv_dlopen_self_static=no
  11016. fi
  11017. fi
  11018. rm -fr conftest*
  11019. fi
  11020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11021. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11022. fi
  11023. CPPFLAGS=$save_CPPFLAGS
  11024. LDFLAGS=$save_LDFLAGS
  11025. LIBS=$save_LIBS
  11026. ;;
  11027. esac
  11028. case $lt_cv_dlopen_self in
  11029. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11030. *) enable_dlopen_self=unknown ;;
  11031. esac
  11032. case $lt_cv_dlopen_self_static in
  11033. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11034. *) enable_dlopen_self_static=unknown ;;
  11035. esac
  11036. fi
  11037. striplib=
  11038. old_striplib=
  11039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11040. printf %s "checking whether stripping libraries is possible... " >&6; }
  11041. if test -z "$STRIP"; then
  11042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11043. printf "%s\n" "no" >&6; }
  11044. else
  11045. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11046. old_striplib="$STRIP --strip-debug"
  11047. striplib="$STRIP --strip-unneeded"
  11048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11049. printf "%s\n" "yes" >&6; }
  11050. else
  11051. case $host_os in
  11052. darwin*)
  11053. # FIXME - insert some real tests, host_os isn't really good enough
  11054. striplib="$STRIP -x"
  11055. old_striplib="$STRIP -S"
  11056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11057. printf "%s\n" "yes" >&6; }
  11058. ;;
  11059. freebsd*)
  11060. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11061. old_striplib="$STRIP --strip-debug"
  11062. striplib="$STRIP --strip-unneeded"
  11063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11064. printf "%s\n" "yes" >&6; }
  11065. else
  11066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11067. printf "%s\n" "no" >&6; }
  11068. fi
  11069. ;;
  11070. *)
  11071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11072. printf "%s\n" "no" >&6; }
  11073. ;;
  11074. esac
  11075. fi
  11076. fi
  11077. # Report what library types will actually be built
  11078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11079. printf %s "checking if libtool supports shared libraries... " >&6; }
  11080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11081. printf "%s\n" "$can_build_shared" >&6; }
  11082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11083. printf %s "checking whether to build shared libraries... " >&6; }
  11084. test no = "$can_build_shared" && enable_shared=no
  11085. # On AIX, shared libraries and static libraries use the same namespace, and
  11086. # are all built from PIC.
  11087. case $host_os in
  11088. aix3*)
  11089. test yes = "$enable_shared" && enable_static=no
  11090. if test -n "$RANLIB"; then
  11091. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11092. postinstall_cmds='$RANLIB $lib'
  11093. fi
  11094. ;;
  11095. aix[4-9]*)
  11096. if test ia64 != "$host_cpu"; then
  11097. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11098. yes,aix,yes) ;; # shared object as lib.so file only
  11099. yes,svr4,*) ;; # shared object as lib.so archive member only
  11100. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11101. esac
  11102. fi
  11103. ;;
  11104. esac
  11105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11106. printf "%s\n" "$enable_shared" >&6; }
  11107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11108. printf %s "checking whether to build static libraries... " >&6; }
  11109. # Make sure either enable_shared or enable_static is yes.
  11110. test yes = "$enable_shared" || enable_static=yes
  11111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11112. printf "%s\n" "$enable_static" >&6; }
  11113. fi
  11114. ac_ext=c
  11115. ac_cpp='$CPP $CPPFLAGS'
  11116. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11117. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11118. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11119. CC=$lt_save_CC
  11120. ac_config_commands="$ac_config_commands libtool"
  11121. # Only expand once:
  11122. if test -n "$ac_tool_prefix"; then
  11123. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11124. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11126. printf %s "checking for $ac_word... " >&6; }
  11127. if test ${ac_cv_prog_RC+y}
  11128. then :
  11129. printf %s "(cached) " >&6
  11130. else $as_nop
  11131. if test -n "$RC"; then
  11132. ac_cv_prog_RC="$RC" # Let the user override the test.
  11133. else
  11134. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11135. for as_dir in $PATH
  11136. do
  11137. IFS=$as_save_IFS
  11138. case $as_dir in #(((
  11139. '') as_dir=./ ;;
  11140. */) ;;
  11141. *) as_dir=$as_dir/ ;;
  11142. esac
  11143. for ac_exec_ext in '' $ac_executable_extensions; do
  11144. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11145. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11146. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11147. break 2
  11148. fi
  11149. done
  11150. done
  11151. IFS=$as_save_IFS
  11152. fi
  11153. fi
  11154. RC=$ac_cv_prog_RC
  11155. if test -n "$RC"; then
  11156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11157. printf "%s\n" "$RC" >&6; }
  11158. else
  11159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11160. printf "%s\n" "no" >&6; }
  11161. fi
  11162. fi
  11163. if test -z "$ac_cv_prog_RC"; then
  11164. ac_ct_RC=$RC
  11165. # Extract the first word of "windres", so it can be a program name with args.
  11166. set dummy windres; ac_word=$2
  11167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11168. printf %s "checking for $ac_word... " >&6; }
  11169. if test ${ac_cv_prog_ac_ct_RC+y}
  11170. then :
  11171. printf %s "(cached) " >&6
  11172. else $as_nop
  11173. if test -n "$ac_ct_RC"; then
  11174. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11175. else
  11176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11177. for as_dir in $PATH
  11178. do
  11179. IFS=$as_save_IFS
  11180. case $as_dir in #(((
  11181. '') as_dir=./ ;;
  11182. */) ;;
  11183. *) as_dir=$as_dir/ ;;
  11184. esac
  11185. for ac_exec_ext in '' $ac_executable_extensions; do
  11186. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11187. ac_cv_prog_ac_ct_RC="windres"
  11188. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11189. break 2
  11190. fi
  11191. done
  11192. done
  11193. IFS=$as_save_IFS
  11194. fi
  11195. fi
  11196. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11197. if test -n "$ac_ct_RC"; then
  11198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11199. printf "%s\n" "$ac_ct_RC" >&6; }
  11200. else
  11201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11202. printf "%s\n" "no" >&6; }
  11203. fi
  11204. if test "x$ac_ct_RC" = x; then
  11205. RC=""
  11206. else
  11207. case $cross_compiling:$ac_tool_warned in
  11208. yes:)
  11209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11210. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11211. ac_tool_warned=yes ;;
  11212. esac
  11213. RC=$ac_ct_RC
  11214. fi
  11215. else
  11216. RC="$ac_cv_prog_RC"
  11217. fi
  11218. # Source file extension for RC test sources.
  11219. ac_ext=rc
  11220. # Object file extension for compiled RC test sources.
  11221. objext=o
  11222. objext_RC=$objext
  11223. # Code to be used in simple compile tests
  11224. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11225. # Code to be used in simple link tests
  11226. lt_simple_link_test_code=$lt_simple_compile_test_code
  11227. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11228. # If no C compiler was specified, use CC.
  11229. LTCC=${LTCC-"$CC"}
  11230. # If no C compiler flags were specified, use CFLAGS.
  11231. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11232. # Allow CC to be a program name with arguments.
  11233. compiler=$CC
  11234. # save warnings/boilerplate of simple test code
  11235. ac_outfile=conftest.$ac_objext
  11236. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11237. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11238. _lt_compiler_boilerplate=`cat conftest.err`
  11239. $RM conftest*
  11240. ac_outfile=conftest.$ac_objext
  11241. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11242. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11243. _lt_linker_boilerplate=`cat conftest.err`
  11244. $RM -r conftest*
  11245. # Allow CC to be a program name with arguments.
  11246. lt_save_CC=$CC
  11247. lt_save_CFLAGS=$CFLAGS
  11248. lt_save_GCC=$GCC
  11249. GCC=
  11250. CC=${RC-"windres"}
  11251. CFLAGS=
  11252. compiler=$CC
  11253. compiler_RC=$CC
  11254. func_cc_basename $compiler
  11255. cc_basename=$func_cc_basename_result
  11256. lt_cv_prog_compiler_c_o_RC=yes
  11257. if test -n "$compiler"; then
  11258. :
  11259. fi
  11260. GCC=$lt_save_GCC
  11261. ac_ext=c
  11262. ac_cpp='$CPP $CPPFLAGS'
  11263. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11264. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11265. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11266. CC=$lt_save_CC
  11267. CFLAGS=$lt_save_CFLAGS
  11268. # For historical reasons, the library name redundantly includes the major
  11269. # version twice: libSDL2-2.0.so.0.
  11270. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11271. LT_RELEASE=2.0
  11272. # Increment this if there is an incompatible change - but if that happens,
  11273. # we should rename the library from SDL2 to SDL3, at which point this would
  11274. # reset to 0 anyway.
  11275. LT_MAJOR=0
  11276. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11277. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11278. LT_REVISION=$SDL_INTERFACE_AGE
  11279. for ac_prog in gawk mawk nawk awk
  11280. do
  11281. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11282. set dummy $ac_prog; ac_word=$2
  11283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11284. printf %s "checking for $ac_word... " >&6; }
  11285. if test ${ac_cv_prog_AWK+y}
  11286. then :
  11287. printf %s "(cached) " >&6
  11288. else $as_nop
  11289. if test -n "$AWK"; then
  11290. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11291. else
  11292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11293. for as_dir in $PATH
  11294. do
  11295. IFS=$as_save_IFS
  11296. case $as_dir in #(((
  11297. '') as_dir=./ ;;
  11298. */) ;;
  11299. *) as_dir=$as_dir/ ;;
  11300. esac
  11301. for ac_exec_ext in '' $ac_executable_extensions; do
  11302. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11303. ac_cv_prog_AWK="$ac_prog"
  11304. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11305. break 2
  11306. fi
  11307. done
  11308. done
  11309. IFS=$as_save_IFS
  11310. fi
  11311. fi
  11312. AWK=$ac_cv_prog_AWK
  11313. if test -n "$AWK"; then
  11314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11315. printf "%s\n" "$AWK" >&6; }
  11316. else
  11317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11318. printf "%s\n" "no" >&6; }
  11319. fi
  11320. test -n "$AWK" && break
  11321. done
  11322. ac_ext=c
  11323. ac_cpp='$CPP $CPPFLAGS'
  11324. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11325. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11326. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11327. if test -n "$ac_tool_prefix"; then
  11328. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11329. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11331. printf %s "checking for $ac_word... " >&6; }
  11332. if test ${ac_cv_prog_CC+y}
  11333. then :
  11334. printf %s "(cached) " >&6
  11335. else $as_nop
  11336. if test -n "$CC"; then
  11337. ac_cv_prog_CC="$CC" # Let the user override the test.
  11338. else
  11339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11340. for as_dir in $PATH
  11341. do
  11342. IFS=$as_save_IFS
  11343. case $as_dir in #(((
  11344. '') as_dir=./ ;;
  11345. */) ;;
  11346. *) as_dir=$as_dir/ ;;
  11347. esac
  11348. for ac_exec_ext in '' $ac_executable_extensions; do
  11349. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11350. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11351. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11352. break 2
  11353. fi
  11354. done
  11355. done
  11356. IFS=$as_save_IFS
  11357. fi
  11358. fi
  11359. CC=$ac_cv_prog_CC
  11360. if test -n "$CC"; then
  11361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11362. printf "%s\n" "$CC" >&6; }
  11363. else
  11364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11365. printf "%s\n" "no" >&6; }
  11366. fi
  11367. fi
  11368. if test -z "$ac_cv_prog_CC"; then
  11369. ac_ct_CC=$CC
  11370. # Extract the first word of "gcc", so it can be a program name with args.
  11371. set dummy gcc; ac_word=$2
  11372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11373. printf %s "checking for $ac_word... " >&6; }
  11374. if test ${ac_cv_prog_ac_ct_CC+y}
  11375. then :
  11376. printf %s "(cached) " >&6
  11377. else $as_nop
  11378. if test -n "$ac_ct_CC"; then
  11379. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11380. else
  11381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11382. for as_dir in $PATH
  11383. do
  11384. IFS=$as_save_IFS
  11385. case $as_dir in #(((
  11386. '') as_dir=./ ;;
  11387. */) ;;
  11388. *) as_dir=$as_dir/ ;;
  11389. esac
  11390. for ac_exec_ext in '' $ac_executable_extensions; do
  11391. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11392. ac_cv_prog_ac_ct_CC="gcc"
  11393. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11394. break 2
  11395. fi
  11396. done
  11397. done
  11398. IFS=$as_save_IFS
  11399. fi
  11400. fi
  11401. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11402. if test -n "$ac_ct_CC"; then
  11403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11404. printf "%s\n" "$ac_ct_CC" >&6; }
  11405. else
  11406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11407. printf "%s\n" "no" >&6; }
  11408. fi
  11409. if test "x$ac_ct_CC" = x; then
  11410. CC=""
  11411. else
  11412. case $cross_compiling:$ac_tool_warned in
  11413. yes:)
  11414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11415. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11416. ac_tool_warned=yes ;;
  11417. esac
  11418. CC=$ac_ct_CC
  11419. fi
  11420. else
  11421. CC="$ac_cv_prog_CC"
  11422. fi
  11423. if test -z "$CC"; then
  11424. if test -n "$ac_tool_prefix"; then
  11425. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11426. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11428. printf %s "checking for $ac_word... " >&6; }
  11429. if test ${ac_cv_prog_CC+y}
  11430. then :
  11431. printf %s "(cached) " >&6
  11432. else $as_nop
  11433. if test -n "$CC"; then
  11434. ac_cv_prog_CC="$CC" # Let the user override the test.
  11435. else
  11436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11437. for as_dir in $PATH
  11438. do
  11439. IFS=$as_save_IFS
  11440. case $as_dir in #(((
  11441. '') as_dir=./ ;;
  11442. */) ;;
  11443. *) as_dir=$as_dir/ ;;
  11444. esac
  11445. for ac_exec_ext in '' $ac_executable_extensions; do
  11446. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11447. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11448. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11449. break 2
  11450. fi
  11451. done
  11452. done
  11453. IFS=$as_save_IFS
  11454. fi
  11455. fi
  11456. CC=$ac_cv_prog_CC
  11457. if test -n "$CC"; then
  11458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11459. printf "%s\n" "$CC" >&6; }
  11460. else
  11461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11462. printf "%s\n" "no" >&6; }
  11463. fi
  11464. fi
  11465. fi
  11466. if test -z "$CC"; then
  11467. # Extract the first word of "cc", so it can be a program name with args.
  11468. set dummy cc; ac_word=$2
  11469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11470. printf %s "checking for $ac_word... " >&6; }
  11471. if test ${ac_cv_prog_CC+y}
  11472. then :
  11473. printf %s "(cached) " >&6
  11474. else $as_nop
  11475. if test -n "$CC"; then
  11476. ac_cv_prog_CC="$CC" # Let the user override the test.
  11477. else
  11478. ac_prog_rejected=no
  11479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11480. for as_dir in $PATH
  11481. do
  11482. IFS=$as_save_IFS
  11483. case $as_dir in #(((
  11484. '') as_dir=./ ;;
  11485. */) ;;
  11486. *) as_dir=$as_dir/ ;;
  11487. esac
  11488. for ac_exec_ext in '' $ac_executable_extensions; do
  11489. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11490. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11491. ac_prog_rejected=yes
  11492. continue
  11493. fi
  11494. ac_cv_prog_CC="cc"
  11495. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11496. break 2
  11497. fi
  11498. done
  11499. done
  11500. IFS=$as_save_IFS
  11501. if test $ac_prog_rejected = yes; then
  11502. # We found a bogon in the path, so make sure we never use it.
  11503. set dummy $ac_cv_prog_CC
  11504. shift
  11505. if test $# != 0; then
  11506. # We chose a different compiler from the bogus one.
  11507. # However, it has the same basename, so the bogon will be chosen
  11508. # first if we set CC to just the basename; use the full file name.
  11509. shift
  11510. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11511. fi
  11512. fi
  11513. fi
  11514. fi
  11515. CC=$ac_cv_prog_CC
  11516. if test -n "$CC"; then
  11517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11518. printf "%s\n" "$CC" >&6; }
  11519. else
  11520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11521. printf "%s\n" "no" >&6; }
  11522. fi
  11523. fi
  11524. if test -z "$CC"; then
  11525. if test -n "$ac_tool_prefix"; then
  11526. for ac_prog in cl.exe
  11527. do
  11528. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11529. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11531. printf %s "checking for $ac_word... " >&6; }
  11532. if test ${ac_cv_prog_CC+y}
  11533. then :
  11534. printf %s "(cached) " >&6
  11535. else $as_nop
  11536. if test -n "$CC"; then
  11537. ac_cv_prog_CC="$CC" # Let the user override the test.
  11538. else
  11539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11540. for as_dir in $PATH
  11541. do
  11542. IFS=$as_save_IFS
  11543. case $as_dir in #(((
  11544. '') as_dir=./ ;;
  11545. */) ;;
  11546. *) as_dir=$as_dir/ ;;
  11547. esac
  11548. for ac_exec_ext in '' $ac_executable_extensions; do
  11549. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11550. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11551. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11552. break 2
  11553. fi
  11554. done
  11555. done
  11556. IFS=$as_save_IFS
  11557. fi
  11558. fi
  11559. CC=$ac_cv_prog_CC
  11560. if test -n "$CC"; then
  11561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11562. printf "%s\n" "$CC" >&6; }
  11563. else
  11564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11565. printf "%s\n" "no" >&6; }
  11566. fi
  11567. test -n "$CC" && break
  11568. done
  11569. fi
  11570. if test -z "$CC"; then
  11571. ac_ct_CC=$CC
  11572. for ac_prog in cl.exe
  11573. do
  11574. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11575. set dummy $ac_prog; ac_word=$2
  11576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11577. printf %s "checking for $ac_word... " >&6; }
  11578. if test ${ac_cv_prog_ac_ct_CC+y}
  11579. then :
  11580. printf %s "(cached) " >&6
  11581. else $as_nop
  11582. if test -n "$ac_ct_CC"; then
  11583. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11584. else
  11585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11586. for as_dir in $PATH
  11587. do
  11588. IFS=$as_save_IFS
  11589. case $as_dir in #(((
  11590. '') as_dir=./ ;;
  11591. */) ;;
  11592. *) as_dir=$as_dir/ ;;
  11593. esac
  11594. for ac_exec_ext in '' $ac_executable_extensions; do
  11595. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11596. ac_cv_prog_ac_ct_CC="$ac_prog"
  11597. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11598. break 2
  11599. fi
  11600. done
  11601. done
  11602. IFS=$as_save_IFS
  11603. fi
  11604. fi
  11605. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11606. if test -n "$ac_ct_CC"; then
  11607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11608. printf "%s\n" "$ac_ct_CC" >&6; }
  11609. else
  11610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11611. printf "%s\n" "no" >&6; }
  11612. fi
  11613. test -n "$ac_ct_CC" && break
  11614. done
  11615. if test "x$ac_ct_CC" = x; then
  11616. CC=""
  11617. else
  11618. case $cross_compiling:$ac_tool_warned in
  11619. yes:)
  11620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11621. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11622. ac_tool_warned=yes ;;
  11623. esac
  11624. CC=$ac_ct_CC
  11625. fi
  11626. fi
  11627. fi
  11628. if test -z "$CC"; then
  11629. if test -n "$ac_tool_prefix"; then
  11630. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11631. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11633. printf %s "checking for $ac_word... " >&6; }
  11634. if test ${ac_cv_prog_CC+y}
  11635. then :
  11636. printf %s "(cached) " >&6
  11637. else $as_nop
  11638. if test -n "$CC"; then
  11639. ac_cv_prog_CC="$CC" # Let the user override the test.
  11640. else
  11641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11642. for as_dir in $PATH
  11643. do
  11644. IFS=$as_save_IFS
  11645. case $as_dir in #(((
  11646. '') as_dir=./ ;;
  11647. */) ;;
  11648. *) as_dir=$as_dir/ ;;
  11649. esac
  11650. for ac_exec_ext in '' $ac_executable_extensions; do
  11651. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11652. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11653. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11654. break 2
  11655. fi
  11656. done
  11657. done
  11658. IFS=$as_save_IFS
  11659. fi
  11660. fi
  11661. CC=$ac_cv_prog_CC
  11662. if test -n "$CC"; then
  11663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11664. printf "%s\n" "$CC" >&6; }
  11665. else
  11666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11667. printf "%s\n" "no" >&6; }
  11668. fi
  11669. fi
  11670. if test -z "$ac_cv_prog_CC"; then
  11671. ac_ct_CC=$CC
  11672. # Extract the first word of "clang", so it can be a program name with args.
  11673. set dummy clang; ac_word=$2
  11674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11675. printf %s "checking for $ac_word... " >&6; }
  11676. if test ${ac_cv_prog_ac_ct_CC+y}
  11677. then :
  11678. printf %s "(cached) " >&6
  11679. else $as_nop
  11680. if test -n "$ac_ct_CC"; then
  11681. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11682. else
  11683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11684. for as_dir in $PATH
  11685. do
  11686. IFS=$as_save_IFS
  11687. case $as_dir in #(((
  11688. '') as_dir=./ ;;
  11689. */) ;;
  11690. *) as_dir=$as_dir/ ;;
  11691. esac
  11692. for ac_exec_ext in '' $ac_executable_extensions; do
  11693. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11694. ac_cv_prog_ac_ct_CC="clang"
  11695. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11696. break 2
  11697. fi
  11698. done
  11699. done
  11700. IFS=$as_save_IFS
  11701. fi
  11702. fi
  11703. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11704. if test -n "$ac_ct_CC"; then
  11705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11706. printf "%s\n" "$ac_ct_CC" >&6; }
  11707. else
  11708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11709. printf "%s\n" "no" >&6; }
  11710. fi
  11711. if test "x$ac_ct_CC" = x; then
  11712. CC=""
  11713. else
  11714. case $cross_compiling:$ac_tool_warned in
  11715. yes:)
  11716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11717. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11718. ac_tool_warned=yes ;;
  11719. esac
  11720. CC=$ac_ct_CC
  11721. fi
  11722. else
  11723. CC="$ac_cv_prog_CC"
  11724. fi
  11725. fi
  11726. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11727. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11728. as_fn_error $? "no acceptable C compiler found in \$PATH
  11729. See \`config.log' for more details" "$LINENO" 5; }
  11730. # Provide some information about the compiler.
  11731. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11732. set X $ac_compile
  11733. ac_compiler=$2
  11734. for ac_option in --version -v -V -qversion -version; do
  11735. { { ac_try="$ac_compiler $ac_option >&5"
  11736. case "(($ac_try" in
  11737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11738. *) ac_try_echo=$ac_try;;
  11739. esac
  11740. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11741. printf "%s\n" "$ac_try_echo"; } >&5
  11742. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11743. ac_status=$?
  11744. if test -s conftest.err; then
  11745. sed '10a\
  11746. ... rest of stderr output deleted ...
  11747. 10q' conftest.err >conftest.er1
  11748. cat conftest.er1 >&5
  11749. fi
  11750. rm -f conftest.er1 conftest.err
  11751. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11752. test $ac_status = 0; }
  11753. done
  11754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11755. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11756. if test ${ac_cv_c_compiler_gnu+y}
  11757. then :
  11758. printf %s "(cached) " >&6
  11759. else $as_nop
  11760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11761. /* end confdefs.h. */
  11762. int
  11763. main (void)
  11764. {
  11765. #ifndef __GNUC__
  11766. choke me
  11767. #endif
  11768. ;
  11769. return 0;
  11770. }
  11771. _ACEOF
  11772. if ac_fn_c_try_compile "$LINENO"
  11773. then :
  11774. ac_compiler_gnu=yes
  11775. else $as_nop
  11776. ac_compiler_gnu=no
  11777. fi
  11778. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11779. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11780. fi
  11781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11782. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11783. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11784. if test $ac_compiler_gnu = yes; then
  11785. GCC=yes
  11786. else
  11787. GCC=
  11788. fi
  11789. ac_test_CFLAGS=${CFLAGS+y}
  11790. ac_save_CFLAGS=$CFLAGS
  11791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11792. printf %s "checking whether $CC accepts -g... " >&6; }
  11793. if test ${ac_cv_prog_cc_g+y}
  11794. then :
  11795. printf %s "(cached) " >&6
  11796. else $as_nop
  11797. ac_save_c_werror_flag=$ac_c_werror_flag
  11798. ac_c_werror_flag=yes
  11799. ac_cv_prog_cc_g=no
  11800. CFLAGS="-g"
  11801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11802. /* end confdefs.h. */
  11803. int
  11804. main (void)
  11805. {
  11806. ;
  11807. return 0;
  11808. }
  11809. _ACEOF
  11810. if ac_fn_c_try_compile "$LINENO"
  11811. then :
  11812. ac_cv_prog_cc_g=yes
  11813. else $as_nop
  11814. CFLAGS=""
  11815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11816. /* end confdefs.h. */
  11817. int
  11818. main (void)
  11819. {
  11820. ;
  11821. return 0;
  11822. }
  11823. _ACEOF
  11824. if ac_fn_c_try_compile "$LINENO"
  11825. then :
  11826. else $as_nop
  11827. ac_c_werror_flag=$ac_save_c_werror_flag
  11828. CFLAGS="-g"
  11829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11830. /* end confdefs.h. */
  11831. int
  11832. main (void)
  11833. {
  11834. ;
  11835. return 0;
  11836. }
  11837. _ACEOF
  11838. if ac_fn_c_try_compile "$LINENO"
  11839. then :
  11840. ac_cv_prog_cc_g=yes
  11841. fi
  11842. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11843. fi
  11844. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11845. fi
  11846. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11847. ac_c_werror_flag=$ac_save_c_werror_flag
  11848. fi
  11849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11850. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11851. if test $ac_test_CFLAGS; then
  11852. CFLAGS=$ac_save_CFLAGS
  11853. elif test $ac_cv_prog_cc_g = yes; then
  11854. if test "$GCC" = yes; then
  11855. CFLAGS="-g -O2"
  11856. else
  11857. CFLAGS="-g"
  11858. fi
  11859. else
  11860. if test "$GCC" = yes; then
  11861. CFLAGS="-O2"
  11862. else
  11863. CFLAGS=
  11864. fi
  11865. fi
  11866. ac_prog_cc_stdc=no
  11867. if test x$ac_prog_cc_stdc = xno
  11868. then :
  11869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11870. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11871. if test ${ac_cv_prog_cc_c11+y}
  11872. then :
  11873. printf %s "(cached) " >&6
  11874. else $as_nop
  11875. ac_cv_prog_cc_c11=no
  11876. ac_save_CC=$CC
  11877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11878. /* end confdefs.h. */
  11879. $ac_c_conftest_c11_program
  11880. _ACEOF
  11881. for ac_arg in '' -std=gnu11
  11882. do
  11883. CC="$ac_save_CC $ac_arg"
  11884. if ac_fn_c_try_compile "$LINENO"
  11885. then :
  11886. ac_cv_prog_cc_c11=$ac_arg
  11887. fi
  11888. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11889. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11890. done
  11891. rm -f conftest.$ac_ext
  11892. CC=$ac_save_CC
  11893. fi
  11894. if test "x$ac_cv_prog_cc_c11" = xno
  11895. then :
  11896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11897. printf "%s\n" "unsupported" >&6; }
  11898. else $as_nop
  11899. if test "x$ac_cv_prog_cc_c11" = x
  11900. then :
  11901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11902. printf "%s\n" "none needed" >&6; }
  11903. else $as_nop
  11904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11905. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11906. CC="$CC $ac_cv_prog_cc_c11"
  11907. fi
  11908. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11909. ac_prog_cc_stdc=c11
  11910. fi
  11911. fi
  11912. if test x$ac_prog_cc_stdc = xno
  11913. then :
  11914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11915. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11916. if test ${ac_cv_prog_cc_c99+y}
  11917. then :
  11918. printf %s "(cached) " >&6
  11919. else $as_nop
  11920. ac_cv_prog_cc_c99=no
  11921. ac_save_CC=$CC
  11922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11923. /* end confdefs.h. */
  11924. $ac_c_conftest_c99_program
  11925. _ACEOF
  11926. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11927. do
  11928. CC="$ac_save_CC $ac_arg"
  11929. if ac_fn_c_try_compile "$LINENO"
  11930. then :
  11931. ac_cv_prog_cc_c99=$ac_arg
  11932. fi
  11933. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11934. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11935. done
  11936. rm -f conftest.$ac_ext
  11937. CC=$ac_save_CC
  11938. fi
  11939. if test "x$ac_cv_prog_cc_c99" = xno
  11940. then :
  11941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11942. printf "%s\n" "unsupported" >&6; }
  11943. else $as_nop
  11944. if test "x$ac_cv_prog_cc_c99" = x
  11945. then :
  11946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11947. printf "%s\n" "none needed" >&6; }
  11948. else $as_nop
  11949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11950. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11951. CC="$CC $ac_cv_prog_cc_c99"
  11952. fi
  11953. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11954. ac_prog_cc_stdc=c99
  11955. fi
  11956. fi
  11957. if test x$ac_prog_cc_stdc = xno
  11958. then :
  11959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11960. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11961. if test ${ac_cv_prog_cc_c89+y}
  11962. then :
  11963. printf %s "(cached) " >&6
  11964. else $as_nop
  11965. ac_cv_prog_cc_c89=no
  11966. ac_save_CC=$CC
  11967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11968. /* end confdefs.h. */
  11969. $ac_c_conftest_c89_program
  11970. _ACEOF
  11971. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11972. do
  11973. CC="$ac_save_CC $ac_arg"
  11974. if ac_fn_c_try_compile "$LINENO"
  11975. then :
  11976. ac_cv_prog_cc_c89=$ac_arg
  11977. fi
  11978. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11979. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11980. done
  11981. rm -f conftest.$ac_ext
  11982. CC=$ac_save_CC
  11983. fi
  11984. if test "x$ac_cv_prog_cc_c89" = xno
  11985. then :
  11986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11987. printf "%s\n" "unsupported" >&6; }
  11988. else $as_nop
  11989. if test "x$ac_cv_prog_cc_c89" = x
  11990. then :
  11991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11992. printf "%s\n" "none needed" >&6; }
  11993. else $as_nop
  11994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11995. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  11996. CC="$CC $ac_cv_prog_cc_c89"
  11997. fi
  11998. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  11999. ac_prog_cc_stdc=c89
  12000. fi
  12001. fi
  12002. ac_ext=c
  12003. ac_cpp='$CPP $CPPFLAGS'
  12004. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12005. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12006. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12007. ac_ext=cpp
  12008. ac_cpp='$CXXCPP $CPPFLAGS'
  12009. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12010. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12011. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12012. if test -z "$CXX"; then
  12013. if test -n "$CCC"; then
  12014. CXX=$CCC
  12015. else
  12016. if test -n "$ac_tool_prefix"; then
  12017. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12018. do
  12019. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12020. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12022. printf %s "checking for $ac_word... " >&6; }
  12023. if test ${ac_cv_prog_CXX+y}
  12024. then :
  12025. printf %s "(cached) " >&6
  12026. else $as_nop
  12027. if test -n "$CXX"; then
  12028. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12029. else
  12030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12031. for as_dir in $PATH
  12032. do
  12033. IFS=$as_save_IFS
  12034. case $as_dir in #(((
  12035. '') as_dir=./ ;;
  12036. */) ;;
  12037. *) as_dir=$as_dir/ ;;
  12038. esac
  12039. for ac_exec_ext in '' $ac_executable_extensions; do
  12040. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12041. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12042. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12043. break 2
  12044. fi
  12045. done
  12046. done
  12047. IFS=$as_save_IFS
  12048. fi
  12049. fi
  12050. CXX=$ac_cv_prog_CXX
  12051. if test -n "$CXX"; then
  12052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12053. printf "%s\n" "$CXX" >&6; }
  12054. else
  12055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12056. printf "%s\n" "no" >&6; }
  12057. fi
  12058. test -n "$CXX" && break
  12059. done
  12060. fi
  12061. if test -z "$CXX"; then
  12062. ac_ct_CXX=$CXX
  12063. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12064. do
  12065. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12066. set dummy $ac_prog; ac_word=$2
  12067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12068. printf %s "checking for $ac_word... " >&6; }
  12069. if test ${ac_cv_prog_ac_ct_CXX+y}
  12070. then :
  12071. printf %s "(cached) " >&6
  12072. else $as_nop
  12073. if test -n "$ac_ct_CXX"; then
  12074. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12075. else
  12076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12077. for as_dir in $PATH
  12078. do
  12079. IFS=$as_save_IFS
  12080. case $as_dir in #(((
  12081. '') as_dir=./ ;;
  12082. */) ;;
  12083. *) as_dir=$as_dir/ ;;
  12084. esac
  12085. for ac_exec_ext in '' $ac_executable_extensions; do
  12086. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12087. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12088. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12089. break 2
  12090. fi
  12091. done
  12092. done
  12093. IFS=$as_save_IFS
  12094. fi
  12095. fi
  12096. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12097. if test -n "$ac_ct_CXX"; then
  12098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12099. printf "%s\n" "$ac_ct_CXX" >&6; }
  12100. else
  12101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12102. printf "%s\n" "no" >&6; }
  12103. fi
  12104. test -n "$ac_ct_CXX" && break
  12105. done
  12106. if test "x$ac_ct_CXX" = x; then
  12107. CXX="g++"
  12108. else
  12109. case $cross_compiling:$ac_tool_warned in
  12110. yes:)
  12111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12112. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12113. ac_tool_warned=yes ;;
  12114. esac
  12115. CXX=$ac_ct_CXX
  12116. fi
  12117. fi
  12118. fi
  12119. fi
  12120. # Provide some information about the compiler.
  12121. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12122. set X $ac_compile
  12123. ac_compiler=$2
  12124. for ac_option in --version -v -V -qversion; do
  12125. { { ac_try="$ac_compiler $ac_option >&5"
  12126. case "(($ac_try" in
  12127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12128. *) ac_try_echo=$ac_try;;
  12129. esac
  12130. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12131. printf "%s\n" "$ac_try_echo"; } >&5
  12132. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12133. ac_status=$?
  12134. if test -s conftest.err; then
  12135. sed '10a\
  12136. ... rest of stderr output deleted ...
  12137. 10q' conftest.err >conftest.er1
  12138. cat conftest.er1 >&5
  12139. fi
  12140. rm -f conftest.er1 conftest.err
  12141. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12142. test $ac_status = 0; }
  12143. done
  12144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12145. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12146. if test ${ac_cv_cxx_compiler_gnu+y}
  12147. then :
  12148. printf %s "(cached) " >&6
  12149. else $as_nop
  12150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12151. /* end confdefs.h. */
  12152. int
  12153. main (void)
  12154. {
  12155. #ifndef __GNUC__
  12156. choke me
  12157. #endif
  12158. ;
  12159. return 0;
  12160. }
  12161. _ACEOF
  12162. if ac_fn_cxx_try_compile "$LINENO"
  12163. then :
  12164. ac_compiler_gnu=yes
  12165. else $as_nop
  12166. ac_compiler_gnu=no
  12167. fi
  12168. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12169. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12170. fi
  12171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12172. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12173. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12174. if test $ac_compiler_gnu = yes; then
  12175. GXX=yes
  12176. else
  12177. GXX=
  12178. fi
  12179. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12180. ac_save_CXXFLAGS=$CXXFLAGS
  12181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12182. printf %s "checking whether $CXX accepts -g... " >&6; }
  12183. if test ${ac_cv_prog_cxx_g+y}
  12184. then :
  12185. printf %s "(cached) " >&6
  12186. else $as_nop
  12187. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12188. ac_cxx_werror_flag=yes
  12189. ac_cv_prog_cxx_g=no
  12190. CXXFLAGS="-g"
  12191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12192. /* end confdefs.h. */
  12193. int
  12194. main (void)
  12195. {
  12196. ;
  12197. return 0;
  12198. }
  12199. _ACEOF
  12200. if ac_fn_cxx_try_compile "$LINENO"
  12201. then :
  12202. ac_cv_prog_cxx_g=yes
  12203. else $as_nop
  12204. CXXFLAGS=""
  12205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12206. /* end confdefs.h. */
  12207. int
  12208. main (void)
  12209. {
  12210. ;
  12211. return 0;
  12212. }
  12213. _ACEOF
  12214. if ac_fn_cxx_try_compile "$LINENO"
  12215. then :
  12216. else $as_nop
  12217. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12218. CXXFLAGS="-g"
  12219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12220. /* end confdefs.h. */
  12221. int
  12222. main (void)
  12223. {
  12224. ;
  12225. return 0;
  12226. }
  12227. _ACEOF
  12228. if ac_fn_cxx_try_compile "$LINENO"
  12229. then :
  12230. ac_cv_prog_cxx_g=yes
  12231. fi
  12232. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12233. fi
  12234. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12235. fi
  12236. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12237. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12238. fi
  12239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12240. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12241. if test $ac_test_CXXFLAGS; then
  12242. CXXFLAGS=$ac_save_CXXFLAGS
  12243. elif test $ac_cv_prog_cxx_g = yes; then
  12244. if test "$GXX" = yes; then
  12245. CXXFLAGS="-g -O2"
  12246. else
  12247. CXXFLAGS="-g"
  12248. fi
  12249. else
  12250. if test "$GXX" = yes; then
  12251. CXXFLAGS="-O2"
  12252. else
  12253. CXXFLAGS=
  12254. fi
  12255. fi
  12256. ac_prog_cxx_stdcxx=no
  12257. if test x$ac_prog_cxx_stdcxx = xno
  12258. then :
  12259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12260. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12261. if test ${ac_cv_prog_cxx_11+y}
  12262. then :
  12263. printf %s "(cached) " >&6
  12264. else $as_nop
  12265. ac_cv_prog_cxx_11=no
  12266. ac_save_CXX=$CXX
  12267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12268. /* end confdefs.h. */
  12269. $ac_cxx_conftest_cxx11_program
  12270. _ACEOF
  12271. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12272. do
  12273. CXX="$ac_save_CXX $ac_arg"
  12274. if ac_fn_cxx_try_compile "$LINENO"
  12275. then :
  12276. ac_cv_prog_cxx_cxx11=$ac_arg
  12277. fi
  12278. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12279. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12280. done
  12281. rm -f conftest.$ac_ext
  12282. CXX=$ac_save_CXX
  12283. fi
  12284. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12285. then :
  12286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12287. printf "%s\n" "unsupported" >&6; }
  12288. else $as_nop
  12289. if test "x$ac_cv_prog_cxx_cxx11" = x
  12290. then :
  12291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12292. printf "%s\n" "none needed" >&6; }
  12293. else $as_nop
  12294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12295. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12296. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12297. fi
  12298. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12299. ac_prog_cxx_stdcxx=cxx11
  12300. fi
  12301. fi
  12302. if test x$ac_prog_cxx_stdcxx = xno
  12303. then :
  12304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12305. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12306. if test ${ac_cv_prog_cxx_98+y}
  12307. then :
  12308. printf %s "(cached) " >&6
  12309. else $as_nop
  12310. ac_cv_prog_cxx_98=no
  12311. ac_save_CXX=$CXX
  12312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12313. /* end confdefs.h. */
  12314. $ac_cxx_conftest_cxx98_program
  12315. _ACEOF
  12316. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12317. do
  12318. CXX="$ac_save_CXX $ac_arg"
  12319. if ac_fn_cxx_try_compile "$LINENO"
  12320. then :
  12321. ac_cv_prog_cxx_cxx98=$ac_arg
  12322. fi
  12323. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12324. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12325. done
  12326. rm -f conftest.$ac_ext
  12327. CXX=$ac_save_CXX
  12328. fi
  12329. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12330. then :
  12331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12332. printf "%s\n" "unsupported" >&6; }
  12333. else $as_nop
  12334. if test "x$ac_cv_prog_cxx_cxx98" = x
  12335. then :
  12336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12337. printf "%s\n" "none needed" >&6; }
  12338. else $as_nop
  12339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12340. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12341. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12342. fi
  12343. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12344. ac_prog_cxx_stdcxx=cxx98
  12345. fi
  12346. fi
  12347. ac_ext=c
  12348. ac_cpp='$CPP $CPPFLAGS'
  12349. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12350. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12351. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12352. func_stripname_cnf ()
  12353. {
  12354. case $2 in
  12355. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12356. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12357. esac
  12358. } # func_stripname_cnf
  12359. if test -n "$CXX" && ( test no != "$CXX" &&
  12360. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12361. (test g++ != "$CXX"))); then
  12362. ac_ext=cpp
  12363. ac_cpp='$CXXCPP $CPPFLAGS'
  12364. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12365. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12366. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12368. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12369. if test -z "$CXXCPP"; then
  12370. if test ${ac_cv_prog_CXXCPP+y}
  12371. then :
  12372. printf %s "(cached) " >&6
  12373. else $as_nop
  12374. # Double quotes because $CXX needs to be expanded
  12375. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12376. do
  12377. ac_preproc_ok=false
  12378. for ac_cxx_preproc_warn_flag in '' yes
  12379. do
  12380. # Use a header file that comes with gcc, so configuring glibc
  12381. # with a fresh cross-compiler works.
  12382. # On the NeXT, cc -E runs the code through the compiler's parser,
  12383. # not just through cpp. "Syntax error" is here to catch this case.
  12384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12385. /* end confdefs.h. */
  12386. #include <limits.h>
  12387. Syntax error
  12388. _ACEOF
  12389. if ac_fn_cxx_try_cpp "$LINENO"
  12390. then :
  12391. else $as_nop
  12392. # Broken: fails on valid input.
  12393. continue
  12394. fi
  12395. rm -f conftest.err conftest.i conftest.$ac_ext
  12396. # OK, works on sane cases. Now check whether nonexistent headers
  12397. # can be detected and how.
  12398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12399. /* end confdefs.h. */
  12400. #include <ac_nonexistent.h>
  12401. _ACEOF
  12402. if ac_fn_cxx_try_cpp "$LINENO"
  12403. then :
  12404. # Broken: success on invalid input.
  12405. continue
  12406. else $as_nop
  12407. # Passes both tests.
  12408. ac_preproc_ok=:
  12409. break
  12410. fi
  12411. rm -f conftest.err conftest.i conftest.$ac_ext
  12412. done
  12413. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12414. rm -f conftest.i conftest.err conftest.$ac_ext
  12415. if $ac_preproc_ok
  12416. then :
  12417. break
  12418. fi
  12419. done
  12420. ac_cv_prog_CXXCPP=$CXXCPP
  12421. fi
  12422. CXXCPP=$ac_cv_prog_CXXCPP
  12423. else
  12424. ac_cv_prog_CXXCPP=$CXXCPP
  12425. fi
  12426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12427. printf "%s\n" "$CXXCPP" >&6; }
  12428. ac_preproc_ok=false
  12429. for ac_cxx_preproc_warn_flag in '' yes
  12430. do
  12431. # Use a header file that comes with gcc, so configuring glibc
  12432. # with a fresh cross-compiler works.
  12433. # On the NeXT, cc -E runs the code through the compiler's parser,
  12434. # not just through cpp. "Syntax error" is here to catch this case.
  12435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12436. /* end confdefs.h. */
  12437. #include <limits.h>
  12438. Syntax error
  12439. _ACEOF
  12440. if ac_fn_cxx_try_cpp "$LINENO"
  12441. then :
  12442. else $as_nop
  12443. # Broken: fails on valid input.
  12444. continue
  12445. fi
  12446. rm -f conftest.err conftest.i conftest.$ac_ext
  12447. # OK, works on sane cases. Now check whether nonexistent headers
  12448. # can be detected and how.
  12449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12450. /* end confdefs.h. */
  12451. #include <ac_nonexistent.h>
  12452. _ACEOF
  12453. if ac_fn_cxx_try_cpp "$LINENO"
  12454. then :
  12455. # Broken: success on invalid input.
  12456. continue
  12457. else $as_nop
  12458. # Passes both tests.
  12459. ac_preproc_ok=:
  12460. break
  12461. fi
  12462. rm -f conftest.err conftest.i conftest.$ac_ext
  12463. done
  12464. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12465. rm -f conftest.i conftest.err conftest.$ac_ext
  12466. if $ac_preproc_ok
  12467. then :
  12468. else $as_nop
  12469. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12470. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12471. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12472. See \`config.log' for more details" "$LINENO" 5; }
  12473. fi
  12474. ac_ext=c
  12475. ac_cpp='$CPP $CPPFLAGS'
  12476. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12477. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12478. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12479. else
  12480. _lt_caught_CXX_error=yes
  12481. fi
  12482. ac_ext=cpp
  12483. ac_cpp='$CXXCPP $CPPFLAGS'
  12484. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12485. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12486. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12487. archive_cmds_need_lc_CXX=no
  12488. allow_undefined_flag_CXX=
  12489. always_export_symbols_CXX=no
  12490. archive_expsym_cmds_CXX=
  12491. compiler_needs_object_CXX=no
  12492. export_dynamic_flag_spec_CXX=
  12493. hardcode_direct_CXX=no
  12494. hardcode_direct_absolute_CXX=no
  12495. hardcode_libdir_flag_spec_CXX=
  12496. hardcode_libdir_separator_CXX=
  12497. hardcode_minus_L_CXX=no
  12498. hardcode_shlibpath_var_CXX=unsupported
  12499. hardcode_automatic_CXX=no
  12500. inherit_rpath_CXX=no
  12501. module_cmds_CXX=
  12502. module_expsym_cmds_CXX=
  12503. link_all_deplibs_CXX=unknown
  12504. old_archive_cmds_CXX=$old_archive_cmds
  12505. reload_flag_CXX=$reload_flag
  12506. reload_cmds_CXX=$reload_cmds
  12507. no_undefined_flag_CXX=
  12508. whole_archive_flag_spec_CXX=
  12509. enable_shared_with_static_runtimes_CXX=no
  12510. # Source file extension for C++ test sources.
  12511. ac_ext=cpp
  12512. # Object file extension for compiled C++ test sources.
  12513. objext=o
  12514. objext_CXX=$objext
  12515. # No sense in running all these tests if we already determined that
  12516. # the CXX compiler isn't working. Some variables (like enable_shared)
  12517. # are currently assumed to apply to all compilers on this platform,
  12518. # and will be corrupted by setting them based on a non-working compiler.
  12519. if test yes != "$_lt_caught_CXX_error"; then
  12520. # Code to be used in simple compile tests
  12521. lt_simple_compile_test_code="int some_variable = 0;"
  12522. # Code to be used in simple link tests
  12523. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12524. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12525. # If no C compiler was specified, use CC.
  12526. LTCC=${LTCC-"$CC"}
  12527. # If no C compiler flags were specified, use CFLAGS.
  12528. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12529. # Allow CC to be a program name with arguments.
  12530. compiler=$CC
  12531. # save warnings/boilerplate of simple test code
  12532. ac_outfile=conftest.$ac_objext
  12533. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12534. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12535. _lt_compiler_boilerplate=`cat conftest.err`
  12536. $RM conftest*
  12537. ac_outfile=conftest.$ac_objext
  12538. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12539. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12540. _lt_linker_boilerplate=`cat conftest.err`
  12541. $RM -r conftest*
  12542. # Allow CC to be a program name with arguments.
  12543. lt_save_CC=$CC
  12544. lt_save_CFLAGS=$CFLAGS
  12545. lt_save_LD=$LD
  12546. lt_save_GCC=$GCC
  12547. GCC=$GXX
  12548. lt_save_with_gnu_ld=$with_gnu_ld
  12549. lt_save_path_LD=$lt_cv_path_LD
  12550. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12551. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12552. else
  12553. $as_unset lt_cv_prog_gnu_ld
  12554. fi
  12555. if test -n "${lt_cv_path_LDCXX+set}"; then
  12556. lt_cv_path_LD=$lt_cv_path_LDCXX
  12557. else
  12558. $as_unset lt_cv_path_LD
  12559. fi
  12560. test -z "${LDCXX+set}" || LD=$LDCXX
  12561. CC=${CXX-"c++"}
  12562. CFLAGS=$CXXFLAGS
  12563. compiler=$CC
  12564. compiler_CXX=$CC
  12565. func_cc_basename $compiler
  12566. cc_basename=$func_cc_basename_result
  12567. if test -n "$compiler"; then
  12568. # We don't want -fno-exception when compiling C++ code, so set the
  12569. # no_builtin_flag separately
  12570. if test yes = "$GXX"; then
  12571. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12572. else
  12573. lt_prog_compiler_no_builtin_flag_CXX=
  12574. fi
  12575. if test yes = "$GXX"; then
  12576. # Set up default GNU C++ configuration
  12577. # Check whether --with-gnu-ld was given.
  12578. if test ${with_gnu_ld+y}
  12579. then :
  12580. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12581. else $as_nop
  12582. with_gnu_ld=no
  12583. fi
  12584. ac_prog=ld
  12585. if test yes = "$GCC"; then
  12586. # Check if gcc -print-prog-name=ld gives a path.
  12587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12588. printf %s "checking for ld used by $CC... " >&6; }
  12589. case $host in
  12590. *-*-mingw*)
  12591. # gcc leaves a trailing carriage return, which upsets mingw
  12592. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12593. *)
  12594. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12595. esac
  12596. case $ac_prog in
  12597. # Accept absolute paths.
  12598. [\\/]* | ?:[\\/]*)
  12599. re_direlt='/[^/][^/]*/\.\./'
  12600. # Canonicalize the pathname of ld
  12601. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12602. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12603. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12604. done
  12605. test -z "$LD" && LD=$ac_prog
  12606. ;;
  12607. "")
  12608. # If it fails, then pretend we aren't using GCC.
  12609. ac_prog=ld
  12610. ;;
  12611. *)
  12612. # If it is relative, then search for the first ld in PATH.
  12613. with_gnu_ld=unknown
  12614. ;;
  12615. esac
  12616. elif test yes = "$with_gnu_ld"; then
  12617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12618. printf %s "checking for GNU ld... " >&6; }
  12619. else
  12620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12621. printf %s "checking for non-GNU ld... " >&6; }
  12622. fi
  12623. if test ${lt_cv_path_LD+y}
  12624. then :
  12625. printf %s "(cached) " >&6
  12626. else $as_nop
  12627. if test -z "$LD"; then
  12628. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12629. for ac_dir in $PATH; do
  12630. IFS=$lt_save_ifs
  12631. test -z "$ac_dir" && ac_dir=.
  12632. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12633. lt_cv_path_LD=$ac_dir/$ac_prog
  12634. # Check to see if the program is GNU ld. I'd rather use --version,
  12635. # but apparently some variants of GNU ld only accept -v.
  12636. # Break only if it was the GNU/non-GNU ld that we prefer.
  12637. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12638. *GNU* | *'with BFD'*)
  12639. test no != "$with_gnu_ld" && break
  12640. ;;
  12641. *)
  12642. test yes != "$with_gnu_ld" && break
  12643. ;;
  12644. esac
  12645. fi
  12646. done
  12647. IFS=$lt_save_ifs
  12648. else
  12649. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12650. fi
  12651. fi
  12652. LD=$lt_cv_path_LD
  12653. if test -n "$LD"; then
  12654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12655. printf "%s\n" "$LD" >&6; }
  12656. else
  12657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12658. printf "%s\n" "no" >&6; }
  12659. fi
  12660. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12662. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12663. if test ${lt_cv_prog_gnu_ld+y}
  12664. then :
  12665. printf %s "(cached) " >&6
  12666. else $as_nop
  12667. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12668. case `$LD -v 2>&1 </dev/null` in
  12669. *GNU* | *'with BFD'*)
  12670. lt_cv_prog_gnu_ld=yes
  12671. ;;
  12672. *)
  12673. lt_cv_prog_gnu_ld=no
  12674. ;;
  12675. esac
  12676. fi
  12677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12678. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12679. with_gnu_ld=$lt_cv_prog_gnu_ld
  12680. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12681. # archiving commands below assume that GNU ld is being used.
  12682. if test yes = "$with_gnu_ld"; then
  12683. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12684. 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'
  12685. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12686. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12687. # If archive_cmds runs LD, not CC, wlarc should be empty
  12688. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12689. # investigate it a little bit more. (MM)
  12690. wlarc='$wl'
  12691. # ancient GNU ld didn't support --whole-archive et. al.
  12692. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12693. $GREP 'no-whole-archive' > /dev/null; then
  12694. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12695. else
  12696. whole_archive_flag_spec_CXX=
  12697. fi
  12698. else
  12699. with_gnu_ld=no
  12700. wlarc=
  12701. # A generic and very simple default shared library creation
  12702. # command for GNU C++ for the case where it uses the native
  12703. # linker, instead of GNU ld. If possible, this setting should
  12704. # overridden to take advantage of the native linker features on
  12705. # the platform it is being used on.
  12706. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12707. fi
  12708. # Commands to make compiler produce verbose output that lists
  12709. # what "hidden" libraries, object files and flags are used when
  12710. # linking a shared library.
  12711. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12712. else
  12713. GXX=no
  12714. with_gnu_ld=no
  12715. wlarc=
  12716. fi
  12717. # PORTME: fill in a description of your system's C++ link characteristics
  12718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12719. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12720. ld_shlibs_CXX=yes
  12721. case $host_os in
  12722. aix3*)
  12723. # FIXME: insert proper C++ library support
  12724. ld_shlibs_CXX=no
  12725. ;;
  12726. aix[4-9]*)
  12727. if test ia64 = "$host_cpu"; then
  12728. # On IA64, the linker does run time linking by default, so we don't
  12729. # have to do anything special.
  12730. aix_use_runtimelinking=no
  12731. exp_sym_flag='-Bexport'
  12732. no_entry_flag=
  12733. else
  12734. aix_use_runtimelinking=no
  12735. # Test if we are trying to use run time linking or normal
  12736. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12737. # have runtime linking enabled, and use it for executables.
  12738. # For shared libraries, we enable/disable runtime linking
  12739. # depending on the kind of the shared library created -
  12740. # when "with_aix_soname,aix_use_runtimelinking" is:
  12741. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12742. # "aix,yes" lib.so shared, rtl:yes, for executables
  12743. # lib.a static archive
  12744. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12745. # lib.a(lib.so.V) shared, rtl:no, for executables
  12746. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12747. # lib.a(lib.so.V) shared, rtl:no
  12748. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12749. # lib.a static archive
  12750. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12751. for ld_flag in $LDFLAGS; do
  12752. case $ld_flag in
  12753. *-brtl*)
  12754. aix_use_runtimelinking=yes
  12755. break
  12756. ;;
  12757. esac
  12758. done
  12759. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12760. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12761. # so we don't have lib.a shared libs to link our executables.
  12762. # We have to force runtime linking in this case.
  12763. aix_use_runtimelinking=yes
  12764. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12765. fi
  12766. ;;
  12767. esac
  12768. exp_sym_flag='-bexport'
  12769. no_entry_flag='-bnoentry'
  12770. fi
  12771. # When large executables or shared objects are built, AIX ld can
  12772. # have problems creating the table of contents. If linking a library
  12773. # or program results in "error TOC overflow" add -mminimal-toc to
  12774. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12775. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12776. archive_cmds_CXX=''
  12777. hardcode_direct_CXX=yes
  12778. hardcode_direct_absolute_CXX=yes
  12779. hardcode_libdir_separator_CXX=':'
  12780. link_all_deplibs_CXX=yes
  12781. file_list_spec_CXX='$wl-f,'
  12782. case $with_aix_soname,$aix_use_runtimelinking in
  12783. aix,*) ;; # no import file
  12784. svr4,* | *,yes) # use import file
  12785. # The Import File defines what to hardcode.
  12786. hardcode_direct_CXX=no
  12787. hardcode_direct_absolute_CXX=no
  12788. ;;
  12789. esac
  12790. if test yes = "$GXX"; then
  12791. case $host_os in aix4.[012]|aix4.[012].*)
  12792. # We only want to do this on AIX 4.2 and lower, the check
  12793. # below for broken collect2 doesn't work under 4.3+
  12794. collect2name=`$CC -print-prog-name=collect2`
  12795. if test -f "$collect2name" &&
  12796. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12797. then
  12798. # We have reworked collect2
  12799. :
  12800. else
  12801. # We have old collect2
  12802. hardcode_direct_CXX=unsupported
  12803. # It fails to find uninstalled libraries when the uninstalled
  12804. # path is not listed in the libpath. Setting hardcode_minus_L
  12805. # to unsupported forces relinking
  12806. hardcode_minus_L_CXX=yes
  12807. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12808. hardcode_libdir_separator_CXX=
  12809. fi
  12810. esac
  12811. shared_flag='-shared'
  12812. if test yes = "$aix_use_runtimelinking"; then
  12813. shared_flag=$shared_flag' $wl-G'
  12814. fi
  12815. # Need to ensure runtime linking is disabled for the traditional
  12816. # shared library, or the linker may eventually find shared libraries
  12817. # /with/ Import File - we do not want to mix them.
  12818. shared_flag_aix='-shared'
  12819. shared_flag_svr4='-shared $wl-G'
  12820. else
  12821. # not using gcc
  12822. if test ia64 = "$host_cpu"; then
  12823. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12824. # chokes on -Wl,-G. The following line is correct:
  12825. shared_flag='-G'
  12826. else
  12827. if test yes = "$aix_use_runtimelinking"; then
  12828. shared_flag='$wl-G'
  12829. else
  12830. shared_flag='$wl-bM:SRE'
  12831. fi
  12832. shared_flag_aix='$wl-bM:SRE'
  12833. shared_flag_svr4='$wl-G'
  12834. fi
  12835. fi
  12836. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12837. # It seems that -bexpall does not export symbols beginning with
  12838. # underscore (_), so it is better to generate a list of symbols to
  12839. # export.
  12840. always_export_symbols_CXX=yes
  12841. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12842. # Warning - without using the other runtime loading flags (-brtl),
  12843. # -berok will link without error, but may produce a broken library.
  12844. # The "-G" linker flag allows undefined symbols.
  12845. no_undefined_flag_CXX='-bernotok'
  12846. # Determine the default libpath from the value encoded in an empty
  12847. # executable.
  12848. if test set = "${lt_cv_aix_libpath+set}"; then
  12849. aix_libpath=$lt_cv_aix_libpath
  12850. else
  12851. if test ${lt_cv_aix_libpath__CXX+y}
  12852. then :
  12853. printf %s "(cached) " >&6
  12854. else $as_nop
  12855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12856. /* end confdefs.h. */
  12857. int
  12858. main (void)
  12859. {
  12860. ;
  12861. return 0;
  12862. }
  12863. _ACEOF
  12864. if ac_fn_cxx_try_link "$LINENO"
  12865. then :
  12866. lt_aix_libpath_sed='
  12867. /Import File Strings/,/^$/ {
  12868. /^0/ {
  12869. s/^0 *\([^ ]*\) *$/\1/
  12870. p
  12871. }
  12872. }'
  12873. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12874. # Check for a 64-bit object if we didn't find anything.
  12875. if test -z "$lt_cv_aix_libpath__CXX"; then
  12876. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12877. fi
  12878. fi
  12879. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12880. conftest$ac_exeext conftest.$ac_ext
  12881. if test -z "$lt_cv_aix_libpath__CXX"; then
  12882. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12883. fi
  12884. fi
  12885. aix_libpath=$lt_cv_aix_libpath__CXX
  12886. fi
  12887. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12888. 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
  12889. else
  12890. if test ia64 = "$host_cpu"; then
  12891. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12892. allow_undefined_flag_CXX="-z nodefs"
  12893. 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"
  12894. else
  12895. # Determine the default libpath from the value encoded in an
  12896. # empty executable.
  12897. if test set = "${lt_cv_aix_libpath+set}"; then
  12898. aix_libpath=$lt_cv_aix_libpath
  12899. else
  12900. if test ${lt_cv_aix_libpath__CXX+y}
  12901. then :
  12902. printf %s "(cached) " >&6
  12903. else $as_nop
  12904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12905. /* end confdefs.h. */
  12906. int
  12907. main (void)
  12908. {
  12909. ;
  12910. return 0;
  12911. }
  12912. _ACEOF
  12913. if ac_fn_cxx_try_link "$LINENO"
  12914. then :
  12915. lt_aix_libpath_sed='
  12916. /Import File Strings/,/^$/ {
  12917. /^0/ {
  12918. s/^0 *\([^ ]*\) *$/\1/
  12919. p
  12920. }
  12921. }'
  12922. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12923. # Check for a 64-bit object if we didn't find anything.
  12924. if test -z "$lt_cv_aix_libpath__CXX"; then
  12925. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12926. fi
  12927. fi
  12928. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12929. conftest$ac_exeext conftest.$ac_ext
  12930. if test -z "$lt_cv_aix_libpath__CXX"; then
  12931. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12932. fi
  12933. fi
  12934. aix_libpath=$lt_cv_aix_libpath__CXX
  12935. fi
  12936. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12937. # Warning - without using the other run time loading flags,
  12938. # -berok will link without error, but may produce a broken library.
  12939. no_undefined_flag_CXX=' $wl-bernotok'
  12940. allow_undefined_flag_CXX=' $wl-berok'
  12941. if test yes = "$with_gnu_ld"; then
  12942. # We only use this code for GNU lds that support --whole-archive.
  12943. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12944. else
  12945. # Exported symbols can be pulled into shared objects from archives
  12946. whole_archive_flag_spec_CXX='$convenience'
  12947. fi
  12948. archive_cmds_need_lc_CXX=yes
  12949. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12950. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12951. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12952. if test svr4 != "$with_aix_soname"; then
  12953. # This is similar to how AIX traditionally builds its shared
  12954. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12955. 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'
  12956. fi
  12957. if test aix != "$with_aix_soname"; then
  12958. 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'
  12959. else
  12960. # used by -dlpreopen to get the symbols
  12961. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12962. fi
  12963. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12964. fi
  12965. fi
  12966. ;;
  12967. beos*)
  12968. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12969. allow_undefined_flag_CXX=unsupported
  12970. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12971. # support --undefined. This deserves some investigation. FIXME
  12972. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12973. else
  12974. ld_shlibs_CXX=no
  12975. fi
  12976. ;;
  12977. chorus*)
  12978. case $cc_basename in
  12979. *)
  12980. # FIXME: insert proper C++ library support
  12981. ld_shlibs_CXX=no
  12982. ;;
  12983. esac
  12984. ;;
  12985. cygwin* | mingw* | pw32* | cegcc*)
  12986. case $GXX,$cc_basename in
  12987. ,cl* | no,cl*)
  12988. # Native MSVC
  12989. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12990. # no search path for DLLs.
  12991. hardcode_libdir_flag_spec_CXX=' '
  12992. allow_undefined_flag_CXX=unsupported
  12993. always_export_symbols_CXX=yes
  12994. file_list_spec_CXX='@'
  12995. # Tell ltmain to make .lib files, not .a files.
  12996. libext=lib
  12997. # Tell ltmain to make .dll files, not .so files.
  12998. shrext_cmds=.dll
  12999. # FIXME: Setting linknames here is a bad hack.
  13000. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13001. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13002. cp "$export_symbols" "$output_objdir/$soname.def";
  13003. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13004. else
  13005. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13006. fi~
  13007. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13008. linknames='
  13009. # The linker will not automatically build a static lib if we build a DLL.
  13010. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13011. enable_shared_with_static_runtimes_CXX=yes
  13012. # Don't use ranlib
  13013. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13014. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13015. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13016. case $lt_outputfile in
  13017. *.exe|*.EXE) ;;
  13018. *)
  13019. lt_outputfile=$lt_outputfile.exe
  13020. lt_tool_outputfile=$lt_tool_outputfile.exe
  13021. ;;
  13022. esac~
  13023. func_to_tool_file "$lt_outputfile"~
  13024. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13025. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13026. $RM "$lt_outputfile.manifest";
  13027. fi'
  13028. ;;
  13029. *)
  13030. # g++
  13031. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13032. # as there is no search path for DLLs.
  13033. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13034. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13035. allow_undefined_flag_CXX=unsupported
  13036. always_export_symbols_CXX=no
  13037. enable_shared_with_static_runtimes_CXX=yes
  13038. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13039. 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'
  13040. # If the export-symbols file already is a .def file, use it as
  13041. # is; otherwise, prepend EXPORTS...
  13042. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13043. cp $export_symbols $output_objdir/$soname.def;
  13044. else
  13045. echo EXPORTS > $output_objdir/$soname.def;
  13046. cat $export_symbols >> $output_objdir/$soname.def;
  13047. fi~
  13048. $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'
  13049. else
  13050. ld_shlibs_CXX=no
  13051. fi
  13052. ;;
  13053. esac
  13054. ;;
  13055. darwin* | rhapsody*)
  13056. archive_cmds_need_lc_CXX=no
  13057. hardcode_direct_CXX=no
  13058. hardcode_automatic_CXX=yes
  13059. hardcode_shlibpath_var_CXX=unsupported
  13060. if test yes = "$lt_cv_ld_force_load"; then
  13061. 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\"`'
  13062. else
  13063. whole_archive_flag_spec_CXX=''
  13064. fi
  13065. link_all_deplibs_CXX=yes
  13066. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13067. case $cc_basename in
  13068. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13069. *) _lt_dar_can_shared=$GCC ;;
  13070. esac
  13071. if test yes = "$_lt_dar_can_shared"; then
  13072. output_verbose_link_cmd=func_echo_all
  13073. 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"
  13074. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13075. 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"
  13076. 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"
  13077. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13078. 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"
  13079. 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"
  13080. fi
  13081. else
  13082. ld_shlibs_CXX=no
  13083. fi
  13084. ;;
  13085. os2*)
  13086. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13087. hardcode_minus_L_CXX=yes
  13088. allow_undefined_flag_CXX=unsupported
  13089. shrext_cmds=.dll
  13090. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13091. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13092. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13093. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13094. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13095. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13096. emximp -o $lib $output_objdir/$libname.def'
  13097. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13098. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13099. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13100. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13101. prefix_cmds="$SED"~
  13102. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13103. prefix_cmds="$prefix_cmds -e 1d";
  13104. fi~
  13105. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13106. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13107. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13108. emximp -o $lib $output_objdir/$libname.def'
  13109. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13110. enable_shared_with_static_runtimes_CXX=yes
  13111. file_list_spec_CXX='@'
  13112. ;;
  13113. dgux*)
  13114. case $cc_basename in
  13115. ec++*)
  13116. # FIXME: insert proper C++ library support
  13117. ld_shlibs_CXX=no
  13118. ;;
  13119. ghcx*)
  13120. # Green Hills C++ Compiler
  13121. # FIXME: insert proper C++ library support
  13122. ld_shlibs_CXX=no
  13123. ;;
  13124. *)
  13125. # FIXME: insert proper C++ library support
  13126. ld_shlibs_CXX=no
  13127. ;;
  13128. esac
  13129. ;;
  13130. freebsd2.*)
  13131. # C++ shared libraries reported to be fairly broken before
  13132. # switch to ELF
  13133. ld_shlibs_CXX=no
  13134. ;;
  13135. freebsd-elf*)
  13136. archive_cmds_need_lc_CXX=no
  13137. ;;
  13138. freebsd* | dragonfly* | midnightbsd*)
  13139. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13140. # conventions
  13141. ld_shlibs_CXX=yes
  13142. ;;
  13143. haiku*)
  13144. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13145. link_all_deplibs_CXX=yes
  13146. ;;
  13147. hpux9*)
  13148. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13149. hardcode_libdir_separator_CXX=:
  13150. export_dynamic_flag_spec_CXX='$wl-E'
  13151. hardcode_direct_CXX=yes
  13152. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13153. # but as the default
  13154. # location of the library.
  13155. case $cc_basename in
  13156. CC*)
  13157. # FIXME: insert proper C++ library support
  13158. ld_shlibs_CXX=no
  13159. ;;
  13160. aCC*)
  13161. 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'
  13162. # Commands to make compiler produce verbose output that lists
  13163. # what "hidden" libraries, object files and flags are used when
  13164. # linking a shared library.
  13165. #
  13166. # There doesn't appear to be a way to prevent this compiler from
  13167. # explicitly linking system object files so we need to strip them
  13168. # from the output so that they don't get included in the library
  13169. # dependencies.
  13170. 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"'
  13171. ;;
  13172. *)
  13173. if test yes = "$GXX"; then
  13174. 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'
  13175. else
  13176. # FIXME: insert proper C++ library support
  13177. ld_shlibs_CXX=no
  13178. fi
  13179. ;;
  13180. esac
  13181. ;;
  13182. hpux10*|hpux11*)
  13183. if test no = "$with_gnu_ld"; then
  13184. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13185. hardcode_libdir_separator_CXX=:
  13186. case $host_cpu in
  13187. hppa*64*|ia64*)
  13188. ;;
  13189. *)
  13190. export_dynamic_flag_spec_CXX='$wl-E'
  13191. ;;
  13192. esac
  13193. fi
  13194. case $host_cpu in
  13195. hppa*64*|ia64*)
  13196. hardcode_direct_CXX=no
  13197. hardcode_shlibpath_var_CXX=no
  13198. ;;
  13199. *)
  13200. hardcode_direct_CXX=yes
  13201. hardcode_direct_absolute_CXX=yes
  13202. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13203. # but as the default
  13204. # location of the library.
  13205. ;;
  13206. esac
  13207. case $cc_basename in
  13208. CC*)
  13209. # FIXME: insert proper C++ library support
  13210. ld_shlibs_CXX=no
  13211. ;;
  13212. aCC*)
  13213. case $host_cpu in
  13214. hppa*64*)
  13215. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13216. ;;
  13217. ia64*)
  13218. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13219. ;;
  13220. *)
  13221. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13222. ;;
  13223. esac
  13224. # Commands to make compiler produce verbose output that lists
  13225. # what "hidden" libraries, object files and flags are used when
  13226. # linking a shared library.
  13227. #
  13228. # There doesn't appear to be a way to prevent this compiler from
  13229. # explicitly linking system object files so we need to strip them
  13230. # from the output so that they don't get included in the library
  13231. # dependencies.
  13232. 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"'
  13233. ;;
  13234. *)
  13235. if test yes = "$GXX"; then
  13236. if test no = "$with_gnu_ld"; then
  13237. case $host_cpu in
  13238. hppa*64*)
  13239. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13240. ;;
  13241. ia64*)
  13242. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13243. ;;
  13244. *)
  13245. 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'
  13246. ;;
  13247. esac
  13248. fi
  13249. else
  13250. # FIXME: insert proper C++ library support
  13251. ld_shlibs_CXX=no
  13252. fi
  13253. ;;
  13254. esac
  13255. ;;
  13256. interix[3-9]*)
  13257. hardcode_direct_CXX=no
  13258. hardcode_shlibpath_var_CXX=no
  13259. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13260. export_dynamic_flag_spec_CXX='$wl-E'
  13261. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13262. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13263. # default) and relocated if they conflict, which is a slow very memory
  13264. # consuming and fragmenting process. To avoid this, we pick a random,
  13265. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13266. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13267. 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'
  13268. 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'
  13269. ;;
  13270. irix5* | irix6*)
  13271. case $cc_basename in
  13272. CC*)
  13273. # SGI C++
  13274. 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'
  13275. # Archives containing C++ object files must be created using
  13276. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13277. # necessary to make sure instantiated templates are included
  13278. # in the archive.
  13279. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13280. ;;
  13281. *)
  13282. if test yes = "$GXX"; then
  13283. if test no = "$with_gnu_ld"; then
  13284. 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'
  13285. else
  13286. 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'
  13287. fi
  13288. fi
  13289. link_all_deplibs_CXX=yes
  13290. ;;
  13291. esac
  13292. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13293. hardcode_libdir_separator_CXX=:
  13294. inherit_rpath_CXX=yes
  13295. ;;
  13296. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13297. case $cc_basename in
  13298. KCC*)
  13299. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13300. # KCC will only create a shared library if the output file
  13301. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13302. # to its proper name (with version) after linking.
  13303. 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'
  13304. 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'
  13305. # Commands to make compiler produce verbose output that lists
  13306. # what "hidden" libraries, object files and flags are used when
  13307. # linking a shared library.
  13308. #
  13309. # There doesn't appear to be a way to prevent this compiler from
  13310. # explicitly linking system object files so we need to strip them
  13311. # from the output so that they don't get included in the library
  13312. # dependencies.
  13313. 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"'
  13314. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13315. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13316. # Archives containing C++ object files must be created using
  13317. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13318. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13319. ;;
  13320. icpc* | ecpc* )
  13321. # Intel C++
  13322. with_gnu_ld=yes
  13323. # version 8.0 and above of icpc choke on multiply defined symbols
  13324. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13325. # earlier do not add the objects themselves.
  13326. case `$CC -V 2>&1` in
  13327. *"Version 7."*)
  13328. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13329. 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'
  13330. ;;
  13331. *) # Version 8.0 or newer
  13332. tmp_idyn=
  13333. case $host_cpu in
  13334. ia64*) tmp_idyn=' -i_dynamic';;
  13335. esac
  13336. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13337. 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'
  13338. ;;
  13339. esac
  13340. archive_cmds_need_lc_CXX=no
  13341. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13342. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13343. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13344. ;;
  13345. pgCC* | pgcpp*)
  13346. # Portland Group C++ compiler
  13347. case `$CC -V` in
  13348. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13349. prelink_cmds_CXX='tpldir=Template.dir~
  13350. rm -rf $tpldir~
  13351. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13352. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13353. old_archive_cmds_CXX='tpldir=Template.dir~
  13354. rm -rf $tpldir~
  13355. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13356. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13357. $RANLIB $oldlib'
  13358. archive_cmds_CXX='tpldir=Template.dir~
  13359. rm -rf $tpldir~
  13360. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13361. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13362. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13363. rm -rf $tpldir~
  13364. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13365. $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'
  13366. ;;
  13367. *) # Version 6 and above use weak symbols
  13368. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13369. 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'
  13370. ;;
  13371. esac
  13372. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13373. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13374. 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'
  13375. ;;
  13376. cxx*)
  13377. # Compaq C++
  13378. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13379. 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'
  13380. runpath_var=LD_RUN_PATH
  13381. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13382. hardcode_libdir_separator_CXX=:
  13383. # Commands to make compiler produce verbose output that lists
  13384. # what "hidden" libraries, object files and flags are used when
  13385. # linking a shared library.
  13386. #
  13387. # There doesn't appear to be a way to prevent this compiler from
  13388. # explicitly linking system object files so we need to strip them
  13389. # from the output so that they don't get included in the library
  13390. # dependencies.
  13391. 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'
  13392. ;;
  13393. xl* | mpixl* | bgxl*)
  13394. # IBM XL 8.0 on PPC, with GNU ld
  13395. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13396. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13397. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13398. if test yes = "$supports_anon_versioning"; then
  13399. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13400. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13401. echo "local: *; };" >> $output_objdir/$libname.ver~
  13402. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13403. fi
  13404. ;;
  13405. *)
  13406. case `$CC -V 2>&1 | sed 5q` in
  13407. *Sun\ C*)
  13408. # Sun C++ 5.9
  13409. no_undefined_flag_CXX=' -zdefs'
  13410. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13411. 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'
  13412. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13413. 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'
  13414. compiler_needs_object_CXX=yes
  13415. # Not sure whether something based on
  13416. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13417. # would be better.
  13418. output_verbose_link_cmd='func_echo_all'
  13419. # Archives containing C++ object files must be created using
  13420. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13421. # necessary to make sure instantiated templates are included
  13422. # in the archive.
  13423. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13424. ;;
  13425. esac
  13426. ;;
  13427. esac
  13428. ;;
  13429. lynxos*)
  13430. # FIXME: insert proper C++ library support
  13431. ld_shlibs_CXX=no
  13432. ;;
  13433. m88k*)
  13434. # FIXME: insert proper C++ library support
  13435. ld_shlibs_CXX=no
  13436. ;;
  13437. mvs*)
  13438. case $cc_basename in
  13439. cxx*)
  13440. # FIXME: insert proper C++ library support
  13441. ld_shlibs_CXX=no
  13442. ;;
  13443. *)
  13444. # FIXME: insert proper C++ library support
  13445. ld_shlibs_CXX=no
  13446. ;;
  13447. esac
  13448. ;;
  13449. netbsd*)
  13450. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13451. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13452. wlarc=
  13453. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13454. hardcode_direct_CXX=yes
  13455. hardcode_shlibpath_var_CXX=no
  13456. fi
  13457. # Workaround some broken pre-1.5 toolchains
  13458. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13459. ;;
  13460. *nto* | *qnx*)
  13461. ld_shlibs_CXX=yes
  13462. ;;
  13463. openbsd* | bitrig*)
  13464. if test -f /usr/libexec/ld.so; then
  13465. hardcode_direct_CXX=yes
  13466. hardcode_shlibpath_var_CXX=no
  13467. hardcode_direct_absolute_CXX=yes
  13468. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13469. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13470. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13471. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13472. export_dynamic_flag_spec_CXX='$wl-E'
  13473. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13474. fi
  13475. output_verbose_link_cmd=func_echo_all
  13476. else
  13477. ld_shlibs_CXX=no
  13478. fi
  13479. ;;
  13480. osf3* | osf4* | osf5*)
  13481. case $cc_basename in
  13482. KCC*)
  13483. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13484. # KCC will only create a shared library if the output file
  13485. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13486. # to its proper name (with version) after linking.
  13487. 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'
  13488. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13489. hardcode_libdir_separator_CXX=:
  13490. # Archives containing C++ object files must be created using
  13491. # the KAI C++ compiler.
  13492. case $host in
  13493. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13494. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13495. esac
  13496. ;;
  13497. RCC*)
  13498. # Rational C++ 2.4.1
  13499. # FIXME: insert proper C++ library support
  13500. ld_shlibs_CXX=no
  13501. ;;
  13502. cxx*)
  13503. case $host in
  13504. osf3*)
  13505. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13506. 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'
  13507. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13508. ;;
  13509. *)
  13510. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13511. 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'
  13512. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13513. echo "-hidden">> $lib.exp~
  13514. $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~
  13515. $RM $lib.exp'
  13516. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13517. ;;
  13518. esac
  13519. hardcode_libdir_separator_CXX=:
  13520. # Commands to make compiler produce verbose output that lists
  13521. # what "hidden" libraries, object files and flags are used when
  13522. # linking a shared library.
  13523. #
  13524. # There doesn't appear to be a way to prevent this compiler from
  13525. # explicitly linking system object files so we need to strip them
  13526. # from the output so that they don't get included in the library
  13527. # dependencies.
  13528. 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"'
  13529. ;;
  13530. *)
  13531. if test yes,no = "$GXX,$with_gnu_ld"; then
  13532. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13533. case $host in
  13534. osf3*)
  13535. 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'
  13536. ;;
  13537. *)
  13538. 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'
  13539. ;;
  13540. esac
  13541. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13542. hardcode_libdir_separator_CXX=:
  13543. # Commands to make compiler produce verbose output that lists
  13544. # what "hidden" libraries, object files and flags are used when
  13545. # linking a shared library.
  13546. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13547. else
  13548. # FIXME: insert proper C++ library support
  13549. ld_shlibs_CXX=no
  13550. fi
  13551. ;;
  13552. esac
  13553. ;;
  13554. psos*)
  13555. # FIXME: insert proper C++ library support
  13556. ld_shlibs_CXX=no
  13557. ;;
  13558. sunos4*)
  13559. case $cc_basename in
  13560. CC*)
  13561. # Sun C++ 4.x
  13562. # FIXME: insert proper C++ library support
  13563. ld_shlibs_CXX=no
  13564. ;;
  13565. lcc*)
  13566. # Lucid
  13567. # FIXME: insert proper C++ library support
  13568. ld_shlibs_CXX=no
  13569. ;;
  13570. *)
  13571. # FIXME: insert proper C++ library support
  13572. ld_shlibs_CXX=no
  13573. ;;
  13574. esac
  13575. ;;
  13576. solaris*)
  13577. case $cc_basename in
  13578. CC* | sunCC*)
  13579. # Sun C++ 4.2, 5.x and Centerline C++
  13580. archive_cmds_need_lc_CXX=yes
  13581. no_undefined_flag_CXX=' -zdefs'
  13582. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13583. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13584. $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'
  13585. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13586. hardcode_shlibpath_var_CXX=no
  13587. case $host_os in
  13588. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13589. *)
  13590. # The compiler driver will combine and reorder linker options,
  13591. # but understands '-z linker_flag'.
  13592. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13593. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13594. ;;
  13595. esac
  13596. link_all_deplibs_CXX=yes
  13597. output_verbose_link_cmd='func_echo_all'
  13598. # Archives containing C++ object files must be created using
  13599. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13600. # necessary to make sure instantiated templates are included
  13601. # in the archive.
  13602. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13603. ;;
  13604. gcx*)
  13605. # Green Hills C++ Compiler
  13606. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13607. # The C++ compiler must be used to create the archive.
  13608. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13609. ;;
  13610. *)
  13611. # GNU C++ compiler with Solaris linker
  13612. if test yes,no = "$GXX,$with_gnu_ld"; then
  13613. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13614. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13615. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13616. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13617. $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'
  13618. # Commands to make compiler produce verbose output that lists
  13619. # what "hidden" libraries, object files and flags are used when
  13620. # linking a shared library.
  13621. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13622. else
  13623. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13624. # platform.
  13625. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13626. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13627. $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'
  13628. # Commands to make compiler produce verbose output that lists
  13629. # what "hidden" libraries, object files and flags are used when
  13630. # linking a shared library.
  13631. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13632. fi
  13633. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13634. case $host_os in
  13635. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13636. *)
  13637. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13638. ;;
  13639. esac
  13640. fi
  13641. ;;
  13642. esac
  13643. ;;
  13644. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13645. no_undefined_flag_CXX='$wl-z,text'
  13646. archive_cmds_need_lc_CXX=no
  13647. hardcode_shlibpath_var_CXX=no
  13648. runpath_var='LD_RUN_PATH'
  13649. case $cc_basename in
  13650. CC*)
  13651. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13652. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13653. ;;
  13654. *)
  13655. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13656. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13657. ;;
  13658. esac
  13659. ;;
  13660. sysv5* | sco3.2v5* | sco5v6*)
  13661. # Note: We CANNOT use -z defs as we might desire, because we do not
  13662. # link with -lc, and that would cause any symbols used from libc to
  13663. # always be unresolved, which means just about no library would
  13664. # ever link correctly. If we're not using GNU ld we use -z text
  13665. # though, which does catch some bad symbols but isn't as heavy-handed
  13666. # as -z defs.
  13667. no_undefined_flag_CXX='$wl-z,text'
  13668. allow_undefined_flag_CXX='$wl-z,nodefs'
  13669. archive_cmds_need_lc_CXX=no
  13670. hardcode_shlibpath_var_CXX=no
  13671. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13672. hardcode_libdir_separator_CXX=':'
  13673. link_all_deplibs_CXX=yes
  13674. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13675. runpath_var='LD_RUN_PATH'
  13676. case $cc_basename in
  13677. CC*)
  13678. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13679. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13680. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13681. '"$old_archive_cmds_CXX"
  13682. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13683. '"$reload_cmds_CXX"
  13684. ;;
  13685. *)
  13686. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13687. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13688. ;;
  13689. esac
  13690. ;;
  13691. tandem*)
  13692. case $cc_basename in
  13693. NCC*)
  13694. # NonStop-UX NCC 3.20
  13695. # FIXME: insert proper C++ library support
  13696. ld_shlibs_CXX=no
  13697. ;;
  13698. *)
  13699. # FIXME: insert proper C++ library support
  13700. ld_shlibs_CXX=no
  13701. ;;
  13702. esac
  13703. ;;
  13704. vxworks*)
  13705. # FIXME: insert proper C++ library support
  13706. ld_shlibs_CXX=no
  13707. ;;
  13708. *)
  13709. # FIXME: insert proper C++ library support
  13710. ld_shlibs_CXX=no
  13711. ;;
  13712. esac
  13713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13714. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13715. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13716. GCC_CXX=$GXX
  13717. LD_CXX=$LD
  13718. ## CAVEAT EMPTOR:
  13719. ## There is no encapsulation within the following macros, do not change
  13720. ## the running order or otherwise move them around unless you know exactly
  13721. ## what you are doing...
  13722. # Dependencies to place before and after the object being linked:
  13723. predep_objects_CXX=
  13724. postdep_objects_CXX=
  13725. predeps_CXX=
  13726. postdeps_CXX=
  13727. compiler_lib_search_path_CXX=
  13728. cat > conftest.$ac_ext <<_LT_EOF
  13729. class Foo
  13730. {
  13731. public:
  13732. Foo (void) { a = 0; }
  13733. private:
  13734. int a;
  13735. };
  13736. _LT_EOF
  13737. _lt_libdeps_save_CFLAGS=$CFLAGS
  13738. case "$CC $CFLAGS " in #(
  13739. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13740. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13741. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13742. esac
  13743. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13744. (eval $ac_compile) 2>&5
  13745. ac_status=$?
  13746. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13747. test $ac_status = 0; }; then
  13748. # Parse the compiler output and extract the necessary
  13749. # objects, libraries and library flags.
  13750. # Sentinel used to keep track of whether or not we are before
  13751. # the conftest object file.
  13752. pre_test_object_deps_done=no
  13753. for p in `eval "$output_verbose_link_cmd"`; do
  13754. case $prev$p in
  13755. -L* | -R* | -l*)
  13756. # Some compilers place space between "-{L,R}" and the path.
  13757. # Remove the space.
  13758. if test x-L = "x$p" ||
  13759. test x-R = "x$p" ||
  13760. test x-l = "x$p"; then
  13761. prev=$p
  13762. continue
  13763. fi
  13764. # Expand the sysroot to ease extracting the directories later.
  13765. if test -z "$prev"; then
  13766. case $p in
  13767. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13768. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13769. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13770. esac
  13771. fi
  13772. case $p in
  13773. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13774. esac
  13775. if test no = "$pre_test_object_deps_done"; then
  13776. case $prev in
  13777. -L | -R)
  13778. # Internal compiler library paths should come after those
  13779. # provided the user. The postdeps already come after the
  13780. # user supplied libs so there is no need to process them.
  13781. if test -z "$compiler_lib_search_path_CXX"; then
  13782. compiler_lib_search_path_CXX=$prev$p
  13783. else
  13784. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13785. fi
  13786. ;;
  13787. # The "-l" case would never come before the object being
  13788. # linked, so don't bother handling this case.
  13789. esac
  13790. else
  13791. if test -z "$postdeps_CXX"; then
  13792. postdeps_CXX=$prev$p
  13793. else
  13794. postdeps_CXX="${postdeps_CXX} $prev$p"
  13795. fi
  13796. fi
  13797. prev=
  13798. ;;
  13799. *.lto.$objext) ;; # Ignore GCC LTO objects
  13800. *.$objext)
  13801. # This assumes that the test object file only shows up
  13802. # once in the compiler output.
  13803. if test "$p" = "conftest.$objext"; then
  13804. pre_test_object_deps_done=yes
  13805. continue
  13806. fi
  13807. if test no = "$pre_test_object_deps_done"; then
  13808. if test -z "$predep_objects_CXX"; then
  13809. predep_objects_CXX=$p
  13810. else
  13811. predep_objects_CXX="$predep_objects_CXX $p"
  13812. fi
  13813. else
  13814. if test -z "$postdep_objects_CXX"; then
  13815. postdep_objects_CXX=$p
  13816. else
  13817. postdep_objects_CXX="$postdep_objects_CXX $p"
  13818. fi
  13819. fi
  13820. ;;
  13821. *) ;; # Ignore the rest.
  13822. esac
  13823. done
  13824. # Clean up.
  13825. rm -f a.out a.exe
  13826. else
  13827. echo "libtool.m4: error: problem compiling CXX test program"
  13828. fi
  13829. $RM -f confest.$objext
  13830. CFLAGS=$_lt_libdeps_save_CFLAGS
  13831. # PORTME: override above test on systems where it is broken
  13832. case $host_os in
  13833. interix[3-9]*)
  13834. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13835. # hack all around it, let's just trust "g++" to DTRT.
  13836. predep_objects_CXX=
  13837. postdep_objects_CXX=
  13838. postdeps_CXX=
  13839. ;;
  13840. esac
  13841. case " $postdeps_CXX " in
  13842. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13843. esac
  13844. compiler_lib_search_dirs_CXX=
  13845. if test -n "${compiler_lib_search_path_CXX}"; then
  13846. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13847. fi
  13848. lt_prog_compiler_wl_CXX=
  13849. lt_prog_compiler_pic_CXX=
  13850. lt_prog_compiler_static_CXX=
  13851. # C++ specific cases for pic, static, wl, etc.
  13852. if test yes = "$GXX"; then
  13853. lt_prog_compiler_wl_CXX='-Wl,'
  13854. lt_prog_compiler_static_CXX='-static'
  13855. case $host_os in
  13856. aix*)
  13857. # All AIX code is PIC.
  13858. if test ia64 = "$host_cpu"; then
  13859. # AIX 5 now supports IA64 processor
  13860. lt_prog_compiler_static_CXX='-Bstatic'
  13861. fi
  13862. lt_prog_compiler_pic_CXX='-fPIC'
  13863. ;;
  13864. amigaos*)
  13865. case $host_cpu in
  13866. powerpc)
  13867. # see comment about AmigaOS4 .so support
  13868. lt_prog_compiler_pic_CXX='-fPIC'
  13869. ;;
  13870. m68k)
  13871. # FIXME: we need at least 68020 code to build shared libraries, but
  13872. # adding the '-m68020' flag to GCC prevents building anything better,
  13873. # like '-m68040'.
  13874. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13875. ;;
  13876. esac
  13877. ;;
  13878. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13879. # PIC is the default for these OSes.
  13880. ;;
  13881. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13882. # This hack is so that the source file can tell whether it is being
  13883. # built for inclusion in a dll (and should export symbols for example).
  13884. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13885. # (--disable-auto-import) libraries
  13886. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13887. case $host_os in
  13888. os2*)
  13889. lt_prog_compiler_static_CXX='$wl-static'
  13890. ;;
  13891. esac
  13892. ;;
  13893. darwin* | rhapsody*)
  13894. # PIC is the default on this platform
  13895. # Common symbols not allowed in MH_DYLIB files
  13896. lt_prog_compiler_pic_CXX='-fno-common'
  13897. ;;
  13898. *djgpp*)
  13899. # DJGPP does not support shared libraries at all
  13900. lt_prog_compiler_pic_CXX=
  13901. ;;
  13902. haiku*)
  13903. # PIC is the default for Haiku.
  13904. # The "-static" flag exists, but is broken.
  13905. lt_prog_compiler_static_CXX=
  13906. ;;
  13907. interix[3-9]*)
  13908. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13909. # Instead, we relocate shared libraries at runtime.
  13910. ;;
  13911. sysv4*MP*)
  13912. if test -d /usr/nec; then
  13913. lt_prog_compiler_pic_CXX=-Kconform_pic
  13914. fi
  13915. ;;
  13916. hpux*)
  13917. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13918. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13919. # sets the default TLS model and affects inlining.
  13920. case $host_cpu in
  13921. hppa*64*)
  13922. ;;
  13923. *)
  13924. lt_prog_compiler_pic_CXX='-fPIC'
  13925. ;;
  13926. esac
  13927. ;;
  13928. *qnx* | *nto*)
  13929. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13930. # it will coredump.
  13931. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13932. ;;
  13933. *)
  13934. lt_prog_compiler_pic_CXX='-fPIC'
  13935. ;;
  13936. esac
  13937. else
  13938. case $host_os in
  13939. aix[4-9]*)
  13940. # All AIX code is PIC.
  13941. if test ia64 = "$host_cpu"; then
  13942. # AIX 5 now supports IA64 processor
  13943. lt_prog_compiler_static_CXX='-Bstatic'
  13944. else
  13945. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13946. fi
  13947. ;;
  13948. chorus*)
  13949. case $cc_basename in
  13950. cxch68*)
  13951. # Green Hills C++ Compiler
  13952. # _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"
  13953. ;;
  13954. esac
  13955. ;;
  13956. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13957. # This hack is so that the source file can tell whether it is being
  13958. # built for inclusion in a dll (and should export symbols for example).
  13959. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13960. ;;
  13961. dgux*)
  13962. case $cc_basename in
  13963. ec++*)
  13964. lt_prog_compiler_pic_CXX='-KPIC'
  13965. ;;
  13966. ghcx*)
  13967. # Green Hills C++ Compiler
  13968. lt_prog_compiler_pic_CXX='-pic'
  13969. ;;
  13970. *)
  13971. ;;
  13972. esac
  13973. ;;
  13974. freebsd* | dragonfly* | midnightbsd*)
  13975. # FreeBSD uses GNU C++
  13976. ;;
  13977. hpux9* | hpux10* | hpux11*)
  13978. case $cc_basename in
  13979. CC*)
  13980. lt_prog_compiler_wl_CXX='-Wl,'
  13981. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13982. if test ia64 != "$host_cpu"; then
  13983. lt_prog_compiler_pic_CXX='+Z'
  13984. fi
  13985. ;;
  13986. aCC*)
  13987. lt_prog_compiler_wl_CXX='-Wl,'
  13988. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13989. case $host_cpu in
  13990. hppa*64*|ia64*)
  13991. # +Z the default
  13992. ;;
  13993. *)
  13994. lt_prog_compiler_pic_CXX='+Z'
  13995. ;;
  13996. esac
  13997. ;;
  13998. *)
  13999. ;;
  14000. esac
  14001. ;;
  14002. interix*)
  14003. # This is c89, which is MS Visual C++ (no shared libs)
  14004. # Anyone wants to do a port?
  14005. ;;
  14006. irix5* | irix6* | nonstopux*)
  14007. case $cc_basename in
  14008. CC*)
  14009. lt_prog_compiler_wl_CXX='-Wl,'
  14010. lt_prog_compiler_static_CXX='-non_shared'
  14011. # CC pic flag -KPIC is the default.
  14012. ;;
  14013. *)
  14014. ;;
  14015. esac
  14016. ;;
  14017. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14018. case $cc_basename in
  14019. KCC*)
  14020. # KAI C++ Compiler
  14021. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14022. lt_prog_compiler_pic_CXX='-fPIC'
  14023. ;;
  14024. ecpc* )
  14025. # old Intel C++ for x86_64, which still supported -KPIC.
  14026. lt_prog_compiler_wl_CXX='-Wl,'
  14027. lt_prog_compiler_pic_CXX='-KPIC'
  14028. lt_prog_compiler_static_CXX='-static'
  14029. ;;
  14030. icpc* )
  14031. # Intel C++, used to be incompatible with GCC.
  14032. # ICC 10 doesn't accept -KPIC any more.
  14033. lt_prog_compiler_wl_CXX='-Wl,'
  14034. lt_prog_compiler_pic_CXX='-fPIC'
  14035. lt_prog_compiler_static_CXX='-static'
  14036. ;;
  14037. pgCC* | pgcpp*)
  14038. # Portland Group C++ compiler
  14039. lt_prog_compiler_wl_CXX='-Wl,'
  14040. lt_prog_compiler_pic_CXX='-fpic'
  14041. lt_prog_compiler_static_CXX='-Bstatic'
  14042. ;;
  14043. cxx*)
  14044. # Compaq C++
  14045. # Make sure the PIC flag is empty. It appears that all Alpha
  14046. # Linux and Compaq Tru64 Unix objects are PIC.
  14047. lt_prog_compiler_pic_CXX=
  14048. lt_prog_compiler_static_CXX='-non_shared'
  14049. ;;
  14050. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14051. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14052. lt_prog_compiler_wl_CXX='-Wl,'
  14053. lt_prog_compiler_pic_CXX='-qpic'
  14054. lt_prog_compiler_static_CXX='-qstaticlink'
  14055. ;;
  14056. *)
  14057. case `$CC -V 2>&1 | sed 5q` in
  14058. *Sun\ C*)
  14059. # Sun C++ 5.9
  14060. lt_prog_compiler_pic_CXX='-KPIC'
  14061. lt_prog_compiler_static_CXX='-Bstatic'
  14062. lt_prog_compiler_wl_CXX='-Qoption ld '
  14063. ;;
  14064. esac
  14065. ;;
  14066. esac
  14067. ;;
  14068. lynxos*)
  14069. ;;
  14070. m88k*)
  14071. ;;
  14072. mvs*)
  14073. case $cc_basename in
  14074. cxx*)
  14075. lt_prog_compiler_pic_CXX='-W c,exportall'
  14076. ;;
  14077. *)
  14078. ;;
  14079. esac
  14080. ;;
  14081. netbsd*)
  14082. ;;
  14083. *qnx* | *nto*)
  14084. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14085. # it will coredump.
  14086. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14087. ;;
  14088. osf3* | osf4* | osf5*)
  14089. case $cc_basename in
  14090. KCC*)
  14091. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14092. ;;
  14093. RCC*)
  14094. # Rational C++ 2.4.1
  14095. lt_prog_compiler_pic_CXX='-pic'
  14096. ;;
  14097. cxx*)
  14098. # Digital/Compaq C++
  14099. lt_prog_compiler_wl_CXX='-Wl,'
  14100. # Make sure the PIC flag is empty. It appears that all Alpha
  14101. # Linux and Compaq Tru64 Unix objects are PIC.
  14102. lt_prog_compiler_pic_CXX=
  14103. lt_prog_compiler_static_CXX='-non_shared'
  14104. ;;
  14105. *)
  14106. ;;
  14107. esac
  14108. ;;
  14109. psos*)
  14110. ;;
  14111. solaris*)
  14112. case $cc_basename in
  14113. CC* | sunCC*)
  14114. # Sun C++ 4.2, 5.x and Centerline C++
  14115. lt_prog_compiler_pic_CXX='-KPIC'
  14116. lt_prog_compiler_static_CXX='-Bstatic'
  14117. lt_prog_compiler_wl_CXX='-Qoption ld '
  14118. ;;
  14119. gcx*)
  14120. # Green Hills C++ Compiler
  14121. lt_prog_compiler_pic_CXX='-PIC'
  14122. ;;
  14123. *)
  14124. ;;
  14125. esac
  14126. ;;
  14127. sunos4*)
  14128. case $cc_basename in
  14129. CC*)
  14130. # Sun C++ 4.x
  14131. lt_prog_compiler_pic_CXX='-pic'
  14132. lt_prog_compiler_static_CXX='-Bstatic'
  14133. ;;
  14134. lcc*)
  14135. # Lucid
  14136. lt_prog_compiler_pic_CXX='-pic'
  14137. ;;
  14138. *)
  14139. ;;
  14140. esac
  14141. ;;
  14142. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14143. case $cc_basename in
  14144. CC*)
  14145. lt_prog_compiler_wl_CXX='-Wl,'
  14146. lt_prog_compiler_pic_CXX='-KPIC'
  14147. lt_prog_compiler_static_CXX='-Bstatic'
  14148. ;;
  14149. esac
  14150. ;;
  14151. tandem*)
  14152. case $cc_basename in
  14153. NCC*)
  14154. # NonStop-UX NCC 3.20
  14155. lt_prog_compiler_pic_CXX='-KPIC'
  14156. ;;
  14157. *)
  14158. ;;
  14159. esac
  14160. ;;
  14161. vxworks*)
  14162. ;;
  14163. *)
  14164. lt_prog_compiler_can_build_shared_CXX=no
  14165. ;;
  14166. esac
  14167. fi
  14168. case $host_os in
  14169. # For platforms that do not support PIC, -DPIC is meaningless:
  14170. *djgpp*)
  14171. lt_prog_compiler_pic_CXX=
  14172. ;;
  14173. *)
  14174. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14175. ;;
  14176. esac
  14177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14178. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14179. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14180. then :
  14181. printf %s "(cached) " >&6
  14182. else $as_nop
  14183. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14184. fi
  14185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14186. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14187. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14188. #
  14189. # Check to make sure the PIC flag actually works.
  14190. #
  14191. if test -n "$lt_prog_compiler_pic_CXX"; then
  14192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14193. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14194. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14195. then :
  14196. printf %s "(cached) " >&6
  14197. else $as_nop
  14198. lt_cv_prog_compiler_pic_works_CXX=no
  14199. ac_outfile=conftest.$ac_objext
  14200. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14201. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14202. # Insert the option either (1) after the last *FLAGS variable, or
  14203. # (2) before a word containing "conftest.", or (3) at the end.
  14204. # Note that $ac_compile itself does not contain backslashes and begins
  14205. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14206. # The option is referenced via a variable to avoid confusing sed.
  14207. lt_compile=`echo "$ac_compile" | $SED \
  14208. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14209. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14210. -e 's:$: $lt_compiler_flag:'`
  14211. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14212. (eval "$lt_compile" 2>conftest.err)
  14213. ac_status=$?
  14214. cat conftest.err >&5
  14215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14216. if (exit $ac_status) && test -s "$ac_outfile"; then
  14217. # The compiler can only warn and ignore the option if not recognized
  14218. # So say no if there are warnings other than the usual output.
  14219. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14220. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14221. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14222. lt_cv_prog_compiler_pic_works_CXX=yes
  14223. fi
  14224. fi
  14225. $RM conftest*
  14226. fi
  14227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14228. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14229. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14230. case $lt_prog_compiler_pic_CXX in
  14231. "" | " "*) ;;
  14232. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14233. esac
  14234. else
  14235. lt_prog_compiler_pic_CXX=
  14236. lt_prog_compiler_can_build_shared_CXX=no
  14237. fi
  14238. fi
  14239. #
  14240. # Check to make sure the static flag actually works.
  14241. #
  14242. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14244. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14245. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14246. then :
  14247. printf %s "(cached) " >&6
  14248. else $as_nop
  14249. lt_cv_prog_compiler_static_works_CXX=no
  14250. save_LDFLAGS=$LDFLAGS
  14251. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14252. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14253. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14254. # The linker can only warn and ignore the option if not recognized
  14255. # So say no if there are warnings
  14256. if test -s conftest.err; then
  14257. # Append any errors to the config.log.
  14258. cat conftest.err 1>&5
  14259. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14260. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14261. if diff conftest.exp conftest.er2 >/dev/null; then
  14262. lt_cv_prog_compiler_static_works_CXX=yes
  14263. fi
  14264. else
  14265. lt_cv_prog_compiler_static_works_CXX=yes
  14266. fi
  14267. fi
  14268. $RM -r conftest*
  14269. LDFLAGS=$save_LDFLAGS
  14270. fi
  14271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14272. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14273. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14274. :
  14275. else
  14276. lt_prog_compiler_static_CXX=
  14277. fi
  14278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14279. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14280. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14281. then :
  14282. printf %s "(cached) " >&6
  14283. else $as_nop
  14284. lt_cv_prog_compiler_c_o_CXX=no
  14285. $RM -r conftest 2>/dev/null
  14286. mkdir conftest
  14287. cd conftest
  14288. mkdir out
  14289. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14290. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14291. # Insert the option either (1) after the last *FLAGS variable, or
  14292. # (2) before a word containing "conftest.", or (3) at the end.
  14293. # Note that $ac_compile itself does not contain backslashes and begins
  14294. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14295. lt_compile=`echo "$ac_compile" | $SED \
  14296. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14297. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14298. -e 's:$: $lt_compiler_flag:'`
  14299. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14300. (eval "$lt_compile" 2>out/conftest.err)
  14301. ac_status=$?
  14302. cat out/conftest.err >&5
  14303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14304. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14305. then
  14306. # The compiler can only warn and ignore the option if not recognized
  14307. # So say no if there are warnings
  14308. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14309. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14310. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14311. lt_cv_prog_compiler_c_o_CXX=yes
  14312. fi
  14313. fi
  14314. chmod u+w . 2>&5
  14315. $RM conftest*
  14316. # SGI C++ compiler will create directory out/ii_files/ for
  14317. # template instantiation
  14318. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14319. $RM out/* && rmdir out
  14320. cd ..
  14321. $RM -r conftest
  14322. $RM conftest*
  14323. fi
  14324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14325. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14327. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14328. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14329. then :
  14330. printf %s "(cached) " >&6
  14331. else $as_nop
  14332. lt_cv_prog_compiler_c_o_CXX=no
  14333. $RM -r conftest 2>/dev/null
  14334. mkdir conftest
  14335. cd conftest
  14336. mkdir out
  14337. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14338. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14339. # Insert the option either (1) after the last *FLAGS variable, or
  14340. # (2) before a word containing "conftest.", or (3) at the end.
  14341. # Note that $ac_compile itself does not contain backslashes and begins
  14342. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14343. lt_compile=`echo "$ac_compile" | $SED \
  14344. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14345. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14346. -e 's:$: $lt_compiler_flag:'`
  14347. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14348. (eval "$lt_compile" 2>out/conftest.err)
  14349. ac_status=$?
  14350. cat out/conftest.err >&5
  14351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14352. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14353. then
  14354. # The compiler can only warn and ignore the option if not recognized
  14355. # So say no if there are warnings
  14356. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14357. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14358. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14359. lt_cv_prog_compiler_c_o_CXX=yes
  14360. fi
  14361. fi
  14362. chmod u+w . 2>&5
  14363. $RM conftest*
  14364. # SGI C++ compiler will create directory out/ii_files/ for
  14365. # template instantiation
  14366. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14367. $RM out/* && rmdir out
  14368. cd ..
  14369. $RM -r conftest
  14370. $RM conftest*
  14371. fi
  14372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14373. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14374. hard_links=nottested
  14375. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14376. # do not overwrite the value of need_locks provided by the user
  14377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14378. printf %s "checking if we can lock with hard links... " >&6; }
  14379. hard_links=yes
  14380. $RM conftest*
  14381. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14382. touch conftest.a
  14383. ln conftest.a conftest.b 2>&5 || hard_links=no
  14384. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14386. printf "%s\n" "$hard_links" >&6; }
  14387. if test no = "$hard_links"; then
  14388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14389. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14390. need_locks=warn
  14391. fi
  14392. else
  14393. need_locks=no
  14394. fi
  14395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14396. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14397. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14398. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14399. case $host_os in
  14400. aix[4-9]*)
  14401. # If we're using GNU nm, then we don't want the "-C" option.
  14402. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14403. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14404. # weak defined symbols like other global defined symbols, whereas
  14405. # GNU nm marks them as "W".
  14406. # While the 'weak' keyword is ignored in the Export File, we need
  14407. # it in the Import File for the 'aix-soname' feature, so we have
  14408. # to replace the "-B" option with "-P" for AIX nm.
  14409. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14410. 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'
  14411. else
  14412. 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'
  14413. fi
  14414. ;;
  14415. pw32*)
  14416. export_symbols_cmds_CXX=$ltdll_cmds
  14417. ;;
  14418. cygwin* | mingw* | cegcc*)
  14419. case $cc_basename in
  14420. cl*)
  14421. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14422. ;;
  14423. *)
  14424. 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'
  14425. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14426. ;;
  14427. esac
  14428. ;;
  14429. *)
  14430. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14431. ;;
  14432. esac
  14433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14434. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14435. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14436. with_gnu_ld_CXX=$with_gnu_ld
  14437. #
  14438. # Do we need to explicitly link libc?
  14439. #
  14440. case "x$archive_cmds_need_lc_CXX" in
  14441. x|xyes)
  14442. # Assume -lc should be added
  14443. archive_cmds_need_lc_CXX=yes
  14444. if test yes,yes = "$GCC,$enable_shared"; then
  14445. case $archive_cmds_CXX in
  14446. *'~'*)
  14447. # FIXME: we may have to deal with multi-command sequences.
  14448. ;;
  14449. '$CC '*)
  14450. # Test whether the compiler implicitly links with -lc since on some
  14451. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14452. # to ld, don't add -lc before -lgcc.
  14453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14454. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14455. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14456. then :
  14457. printf %s "(cached) " >&6
  14458. else $as_nop
  14459. $RM conftest*
  14460. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14461. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14462. (eval $ac_compile) 2>&5
  14463. ac_status=$?
  14464. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14465. test $ac_status = 0; } 2>conftest.err; then
  14466. soname=conftest
  14467. lib=conftest
  14468. libobjs=conftest.$ac_objext
  14469. deplibs=
  14470. wl=$lt_prog_compiler_wl_CXX
  14471. pic_flag=$lt_prog_compiler_pic_CXX
  14472. compiler_flags=-v
  14473. linker_flags=-v
  14474. verstring=
  14475. output_objdir=.
  14476. libname=conftest
  14477. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14478. allow_undefined_flag_CXX=
  14479. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14480. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14481. ac_status=$?
  14482. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14483. test $ac_status = 0; }
  14484. then
  14485. lt_cv_archive_cmds_need_lc_CXX=no
  14486. else
  14487. lt_cv_archive_cmds_need_lc_CXX=yes
  14488. fi
  14489. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14490. else
  14491. cat conftest.err 1>&5
  14492. fi
  14493. $RM conftest*
  14494. fi
  14495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14496. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14497. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14498. ;;
  14499. esac
  14500. fi
  14501. ;;
  14502. esac
  14503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14504. printf %s "checking dynamic linker characteristics... " >&6; }
  14505. library_names_spec=
  14506. libname_spec='lib$name'
  14507. soname_spec=
  14508. shrext_cmds=.so
  14509. postinstall_cmds=
  14510. postuninstall_cmds=
  14511. finish_cmds=
  14512. finish_eval=
  14513. shlibpath_var=
  14514. shlibpath_overrides_runpath=unknown
  14515. version_type=none
  14516. dynamic_linker="$host_os ld.so"
  14517. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14518. need_lib_prefix=unknown
  14519. hardcode_into_libs=no
  14520. # when you set need_version to no, make sure it does not cause -set_version
  14521. # flags to be left without arguments
  14522. need_version=unknown
  14523. case $host_os in
  14524. aix3*)
  14525. version_type=linux # correct to gnu/linux during the next big refactor
  14526. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14527. shlibpath_var=LIBPATH
  14528. # AIX 3 has no versioning support, so we append a major version to the name.
  14529. soname_spec='$libname$release$shared_ext$major'
  14530. ;;
  14531. aix[4-9]*)
  14532. version_type=linux # correct to gnu/linux during the next big refactor
  14533. need_lib_prefix=no
  14534. need_version=no
  14535. hardcode_into_libs=yes
  14536. if test ia64 = "$host_cpu"; then
  14537. # AIX 5 supports IA64
  14538. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14539. shlibpath_var=LD_LIBRARY_PATH
  14540. else
  14541. # With GCC up to 2.95.x, collect2 would create an import file
  14542. # for dependence libraries. The import file would start with
  14543. # the line '#! .'. This would cause the generated library to
  14544. # depend on '.', always an invalid library. This was fixed in
  14545. # development snapshots of GCC prior to 3.0.
  14546. case $host_os in
  14547. aix4 | aix4.[01] | aix4.[01].*)
  14548. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14549. echo ' yes '
  14550. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14551. :
  14552. else
  14553. can_build_shared=no
  14554. fi
  14555. ;;
  14556. esac
  14557. # Using Import Files as archive members, it is possible to support
  14558. # filename-based versioning of shared library archives on AIX. While
  14559. # this would work for both with and without runtime linking, it will
  14560. # prevent static linking of such archives. So we do filename-based
  14561. # shared library versioning with .so extension only, which is used
  14562. # when both runtime linking and shared linking is enabled.
  14563. # Unfortunately, runtime linking may impact performance, so we do
  14564. # not want this to be the default eventually. Also, we use the
  14565. # versioned .so libs for executables only if there is the -brtl
  14566. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14567. # To allow for filename-based versioning support, we need to create
  14568. # libNAME.so.V as an archive file, containing:
  14569. # *) an Import File, referring to the versioned filename of the
  14570. # archive as well as the shared archive member, telling the
  14571. # bitwidth (32 or 64) of that shared object, and providing the
  14572. # list of exported symbols of that shared object, eventually
  14573. # decorated with the 'weak' keyword
  14574. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14575. # it being seen by the linker.
  14576. # At run time we better use the real file rather than another symlink,
  14577. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14578. case $with_aix_soname,$aix_use_runtimelinking in
  14579. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14580. # soname into executable. Probably we can add versioning support to
  14581. # collect2, so additional links can be useful in future.
  14582. aix,yes) # traditional libtool
  14583. dynamic_linker='AIX unversionable lib.so'
  14584. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14585. # instead of lib<name>.a to let people know that these are not
  14586. # typical AIX shared libraries.
  14587. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14588. ;;
  14589. aix,no) # traditional AIX only
  14590. dynamic_linker='AIX lib.a(lib.so.V)'
  14591. # We preserve .a as extension for shared libraries through AIX4.2
  14592. # and later when we are not doing run time linking.
  14593. library_names_spec='$libname$release.a $libname.a'
  14594. soname_spec='$libname$release$shared_ext$major'
  14595. ;;
  14596. svr4,*) # full svr4 only
  14597. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14598. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14599. # We do not specify a path in Import Files, so LIBPATH fires.
  14600. shlibpath_overrides_runpath=yes
  14601. ;;
  14602. *,yes) # both, prefer svr4
  14603. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14604. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14605. # unpreferred sharedlib libNAME.a needs extra handling
  14606. 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"'
  14607. 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"'
  14608. # We do not specify a path in Import Files, so LIBPATH fires.
  14609. shlibpath_overrides_runpath=yes
  14610. ;;
  14611. *,no) # both, prefer aix
  14612. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14613. library_names_spec='$libname$release.a $libname.a'
  14614. soname_spec='$libname$release$shared_ext$major'
  14615. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14616. 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)'
  14617. 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"'
  14618. ;;
  14619. esac
  14620. shlibpath_var=LIBPATH
  14621. fi
  14622. ;;
  14623. amigaos*)
  14624. case $host_cpu in
  14625. powerpc)
  14626. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14627. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14628. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14629. ;;
  14630. m68k)
  14631. library_names_spec='$libname.ixlibrary $libname.a'
  14632. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14633. 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'
  14634. ;;
  14635. esac
  14636. ;;
  14637. beos*)
  14638. library_names_spec='$libname$shared_ext'
  14639. dynamic_linker="$host_os ld.so"
  14640. shlibpath_var=LIBRARY_PATH
  14641. ;;
  14642. bsdi[45]*)
  14643. version_type=linux # correct to gnu/linux during the next big refactor
  14644. need_version=no
  14645. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14646. soname_spec='$libname$release$shared_ext$major'
  14647. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14648. shlibpath_var=LD_LIBRARY_PATH
  14649. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14650. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14651. # the default ld.so.conf also contains /usr/contrib/lib and
  14652. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14653. # libtool to hard-code these into programs
  14654. ;;
  14655. cygwin* | mingw* | pw32* | cegcc*)
  14656. version_type=windows
  14657. shrext_cmds=.dll
  14658. need_version=no
  14659. need_lib_prefix=no
  14660. case $GCC,$cc_basename in
  14661. yes,*)
  14662. # gcc
  14663. library_names_spec='$libname.dll.a'
  14664. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14665. postinstall_cmds='base_file=`basename \$file`~
  14666. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14667. dldir=$destdir/`dirname \$dlpath`~
  14668. test -d \$dldir || mkdir -p \$dldir~
  14669. $install_prog $dir/$dlname \$dldir/$dlname~
  14670. chmod a+x \$dldir/$dlname~
  14671. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14672. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14673. fi'
  14674. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14675. dlpath=$dir/\$dldll~
  14676. $RM \$dlpath'
  14677. shlibpath_overrides_runpath=yes
  14678. case $host_os in
  14679. cygwin*)
  14680. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14681. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14682. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14683. ;;
  14684. mingw* | cegcc*)
  14685. # MinGW DLLs use traditional 'lib' prefix
  14686. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14687. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14688. ;;
  14689. pw32*)
  14690. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14691. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14692. ;;
  14693. esac
  14694. dynamic_linker='Win32 ld.exe'
  14695. ;;
  14696. *,cl*)
  14697. # Native MSVC
  14698. libname_spec='$name'
  14699. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14700. library_names_spec='$libname.dll.lib'
  14701. case $build_os in
  14702. mingw*)
  14703. sys_lib_search_path_spec=
  14704. lt_save_ifs=$IFS
  14705. IFS=';'
  14706. for lt_path in $LIB
  14707. do
  14708. IFS=$lt_save_ifs
  14709. # Let DOS variable expansion print the short 8.3 style file name.
  14710. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14711. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14712. done
  14713. IFS=$lt_save_ifs
  14714. # Convert to MSYS style.
  14715. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14716. ;;
  14717. cygwin*)
  14718. # Convert to unix form, then to dos form, then back to unix form
  14719. # but this time dos style (no spaces!) so that the unix form looks
  14720. # like /cygdrive/c/PROGRA~1:/cygdr...
  14721. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14722. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14723. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14724. ;;
  14725. *)
  14726. sys_lib_search_path_spec=$LIB
  14727. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14728. # It is most probably a Windows format PATH.
  14729. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14730. else
  14731. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14732. fi
  14733. # FIXME: find the short name or the path components, as spaces are
  14734. # common. (e.g. "Program Files" -> "PROGRA~1")
  14735. ;;
  14736. esac
  14737. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14738. postinstall_cmds='base_file=`basename \$file`~
  14739. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14740. dldir=$destdir/`dirname \$dlpath`~
  14741. test -d \$dldir || mkdir -p \$dldir~
  14742. $install_prog $dir/$dlname \$dldir/$dlname'
  14743. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14744. dlpath=$dir/\$dldll~
  14745. $RM \$dlpath'
  14746. shlibpath_overrides_runpath=yes
  14747. dynamic_linker='Win32 link.exe'
  14748. ;;
  14749. *)
  14750. # Assume MSVC wrapper
  14751. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14752. dynamic_linker='Win32 ld.exe'
  14753. ;;
  14754. esac
  14755. # FIXME: first we should search . and the directory the executable is in
  14756. shlibpath_var=PATH
  14757. ;;
  14758. darwin* | rhapsody*)
  14759. dynamic_linker="$host_os dyld"
  14760. version_type=darwin
  14761. need_lib_prefix=no
  14762. need_version=no
  14763. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14764. soname_spec='$libname$release$major$shared_ext'
  14765. shlibpath_overrides_runpath=yes
  14766. shlibpath_var=DYLD_LIBRARY_PATH
  14767. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14768. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14769. ;;
  14770. dgux*)
  14771. version_type=linux # correct to gnu/linux during the next big refactor
  14772. need_lib_prefix=no
  14773. need_version=no
  14774. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14775. soname_spec='$libname$release$shared_ext$major'
  14776. shlibpath_var=LD_LIBRARY_PATH
  14777. ;;
  14778. freebsd* | dragonfly* | midnightbsd*)
  14779. # DragonFly does not have aout. When/if they implement a new
  14780. # versioning mechanism, adjust this.
  14781. if test -x /usr/bin/objformat; then
  14782. objformat=`/usr/bin/objformat`
  14783. else
  14784. case $host_os in
  14785. freebsd[23].*) objformat=aout ;;
  14786. *) objformat=elf ;;
  14787. esac
  14788. fi
  14789. version_type=freebsd-$objformat
  14790. case $version_type in
  14791. freebsd-elf*)
  14792. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14793. soname_spec='$libname$release$shared_ext$major'
  14794. need_version=no
  14795. need_lib_prefix=no
  14796. ;;
  14797. freebsd-*)
  14798. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14799. need_version=yes
  14800. ;;
  14801. esac
  14802. shlibpath_var=LD_LIBRARY_PATH
  14803. case $host_os in
  14804. freebsd2.*)
  14805. shlibpath_overrides_runpath=yes
  14806. ;;
  14807. freebsd3.[01]* | freebsdelf3.[01]*)
  14808. shlibpath_overrides_runpath=yes
  14809. hardcode_into_libs=yes
  14810. ;;
  14811. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14812. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14813. shlibpath_overrides_runpath=no
  14814. hardcode_into_libs=yes
  14815. ;;
  14816. *) # from 4.6 on, and DragonFly
  14817. shlibpath_overrides_runpath=yes
  14818. hardcode_into_libs=yes
  14819. ;;
  14820. esac
  14821. ;;
  14822. haiku*)
  14823. version_type=linux # correct to gnu/linux during the next big refactor
  14824. need_lib_prefix=no
  14825. need_version=no
  14826. dynamic_linker="$host_os runtime_loader"
  14827. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14828. soname_spec='$libname$release$shared_ext$major'
  14829. shlibpath_var=LIBRARY_PATH
  14830. shlibpath_overrides_runpath=no
  14831. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14832. hardcode_into_libs=yes
  14833. ;;
  14834. hpux9* | hpux10* | hpux11*)
  14835. # Give a soname corresponding to the major version so that dld.sl refuses to
  14836. # link against other versions.
  14837. version_type=sunos
  14838. need_lib_prefix=no
  14839. need_version=no
  14840. case $host_cpu in
  14841. ia64*)
  14842. shrext_cmds='.so'
  14843. hardcode_into_libs=yes
  14844. dynamic_linker="$host_os dld.so"
  14845. shlibpath_var=LD_LIBRARY_PATH
  14846. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14847. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14848. soname_spec='$libname$release$shared_ext$major'
  14849. if test 32 = "$HPUX_IA64_MODE"; then
  14850. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14851. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14852. else
  14853. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14854. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14855. fi
  14856. ;;
  14857. hppa*64*)
  14858. shrext_cmds='.sl'
  14859. hardcode_into_libs=yes
  14860. dynamic_linker="$host_os dld.sl"
  14861. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14862. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14863. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14864. soname_spec='$libname$release$shared_ext$major'
  14865. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14866. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14867. ;;
  14868. *)
  14869. shrext_cmds='.sl'
  14870. dynamic_linker="$host_os dld.sl"
  14871. shlibpath_var=SHLIB_PATH
  14872. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14873. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14874. soname_spec='$libname$release$shared_ext$major'
  14875. ;;
  14876. esac
  14877. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14878. postinstall_cmds='chmod 555 $lib'
  14879. # or fails outright, so override atomically:
  14880. install_override_mode=555
  14881. ;;
  14882. interix[3-9]*)
  14883. version_type=linux # correct to gnu/linux during the next big refactor
  14884. need_lib_prefix=no
  14885. need_version=no
  14886. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14887. soname_spec='$libname$release$shared_ext$major'
  14888. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14889. shlibpath_var=LD_LIBRARY_PATH
  14890. shlibpath_overrides_runpath=no
  14891. hardcode_into_libs=yes
  14892. ;;
  14893. irix5* | irix6* | nonstopux*)
  14894. case $host_os in
  14895. nonstopux*) version_type=nonstopux ;;
  14896. *)
  14897. if test yes = "$lt_cv_prog_gnu_ld"; then
  14898. version_type=linux # correct to gnu/linux during the next big refactor
  14899. else
  14900. version_type=irix
  14901. fi ;;
  14902. esac
  14903. need_lib_prefix=no
  14904. need_version=no
  14905. soname_spec='$libname$release$shared_ext$major'
  14906. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14907. case $host_os in
  14908. irix5* | nonstopux*)
  14909. libsuff= shlibsuff=
  14910. ;;
  14911. *)
  14912. case $LD in # libtool.m4 will add one of these switches to LD
  14913. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14914. libsuff= shlibsuff= libmagic=32-bit;;
  14915. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14916. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14917. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14918. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14919. *) libsuff= shlibsuff= libmagic=never-match;;
  14920. esac
  14921. ;;
  14922. esac
  14923. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14924. shlibpath_overrides_runpath=no
  14925. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14926. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14927. hardcode_into_libs=yes
  14928. ;;
  14929. # No shared lib support for Linux oldld, aout, or coff.
  14930. linux*oldld* | linux*aout* | linux*coff*)
  14931. dynamic_linker=no
  14932. ;;
  14933. linux*android*)
  14934. version_type=none # Android doesn't support versioned libraries.
  14935. need_lib_prefix=no
  14936. need_version=no
  14937. library_names_spec='$libname$release$shared_ext'
  14938. soname_spec='$libname$release$shared_ext'
  14939. finish_cmds=
  14940. shlibpath_var=LD_LIBRARY_PATH
  14941. shlibpath_overrides_runpath=yes
  14942. # This implies no fast_install, which is unacceptable.
  14943. # Some rework will be needed to allow for fast_install
  14944. # before this can be enabled.
  14945. hardcode_into_libs=yes
  14946. dynamic_linker='Android linker'
  14947. # Don't embed -rpath directories since the linker doesn't support them.
  14948. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14949. ;;
  14950. # This must be glibc/ELF.
  14951. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14952. version_type=linux # correct to gnu/linux during the next big refactor
  14953. need_lib_prefix=no
  14954. need_version=no
  14955. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14956. soname_spec='$libname$release$shared_ext$major'
  14957. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14958. shlibpath_var=LD_LIBRARY_PATH
  14959. shlibpath_overrides_runpath=no
  14960. # Some binutils ld are patched to set DT_RUNPATH
  14961. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14962. then :
  14963. printf %s "(cached) " >&6
  14964. else $as_nop
  14965. lt_cv_shlibpath_overrides_runpath=no
  14966. save_LDFLAGS=$LDFLAGS
  14967. save_libdir=$libdir
  14968. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14969. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14971. /* end confdefs.h. */
  14972. int
  14973. main (void)
  14974. {
  14975. ;
  14976. return 0;
  14977. }
  14978. _ACEOF
  14979. if ac_fn_cxx_try_link "$LINENO"
  14980. then :
  14981. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14982. then :
  14983. lt_cv_shlibpath_overrides_runpath=yes
  14984. fi
  14985. fi
  14986. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14987. conftest$ac_exeext conftest.$ac_ext
  14988. LDFLAGS=$save_LDFLAGS
  14989. libdir=$save_libdir
  14990. fi
  14991. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14992. # This implies no fast_install, which is unacceptable.
  14993. # Some rework will be needed to allow for fast_install
  14994. # before this can be enabled.
  14995. hardcode_into_libs=yes
  14996. # Add ABI-specific directories to the system library path.
  14997. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  14998. # Ideally, we could use ldconfig to report *all* directores which are
  14999. # searched for libraries, however this is still not possible. Aside from not
  15000. # being certain /sbin/ldconfig is available, command
  15001. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15002. # even though it is searched at run-time. Try to do the best guess by
  15003. # appending ld.so.conf contents (and includes) to the search path.
  15004. if test -f /etc/ld.so.conf; then
  15005. 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' ' '`
  15006. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15007. fi
  15008. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15009. # powerpc, because MkLinux only supported shared libraries with the
  15010. # GNU dynamic linker. Since this was broken with cross compilers,
  15011. # most powerpc-linux boxes support dynamic linking these days and
  15012. # people can always --disable-shared, the test was removed, and we
  15013. # assume the GNU/Linux dynamic linker is in use.
  15014. dynamic_linker='GNU/Linux ld.so'
  15015. ;;
  15016. netbsd*)
  15017. version_type=sunos
  15018. need_lib_prefix=no
  15019. need_version=no
  15020. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15021. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15022. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15023. dynamic_linker='NetBSD (a.out) ld.so'
  15024. else
  15025. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15026. soname_spec='$libname$release$shared_ext$major'
  15027. dynamic_linker='NetBSD ld.elf_so'
  15028. fi
  15029. shlibpath_var=LD_LIBRARY_PATH
  15030. shlibpath_overrides_runpath=yes
  15031. hardcode_into_libs=yes
  15032. ;;
  15033. newsos6)
  15034. version_type=linux # correct to gnu/linux during the next big refactor
  15035. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15036. shlibpath_var=LD_LIBRARY_PATH
  15037. shlibpath_overrides_runpath=yes
  15038. ;;
  15039. *nto* | *qnx*)
  15040. version_type=qnx
  15041. need_lib_prefix=no
  15042. need_version=no
  15043. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15044. soname_spec='$libname$release$shared_ext$major'
  15045. shlibpath_var=LD_LIBRARY_PATH
  15046. shlibpath_overrides_runpath=no
  15047. hardcode_into_libs=yes
  15048. dynamic_linker='ldqnx.so'
  15049. ;;
  15050. openbsd* | bitrig*)
  15051. version_type=sunos
  15052. sys_lib_dlsearch_path_spec=/usr/lib
  15053. need_lib_prefix=no
  15054. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15055. need_version=no
  15056. else
  15057. need_version=yes
  15058. fi
  15059. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15060. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15061. shlibpath_var=LD_LIBRARY_PATH
  15062. shlibpath_overrides_runpath=yes
  15063. ;;
  15064. os2*)
  15065. libname_spec='$name'
  15066. shrext_cmds=.dll
  15067. need_lib_prefix=no
  15068. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15069. # SDL customization: removed versioning support.
  15070. # version_type=windows
  15071. # need_version=no
  15072. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15073. # v=$($ECHO $release$versuffix | tr -d .-);
  15074. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15075. # $ECHO $n$v`$shared_ext'
  15076. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15077. library_names_spec='${libname}_dll.$libext'
  15078. dynamic_linker='OS/2 ld.exe'
  15079. shlibpath_var=BEGINLIBPATH
  15080. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15081. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15082. postinstall_cmds='base_file=`basename \$file`~
  15083. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15084. dldir=$destdir/`dirname \$dlpath`~
  15085. test -d \$dldir || mkdir -p \$dldir~
  15086. $install_prog $dir/$dlname \$dldir/$dlname~
  15087. chmod a+x \$dldir/$dlname~
  15088. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15089. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15090. fi'
  15091. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15092. dlpath=$dir/\$dldll~
  15093. $RM \$dlpath'
  15094. ;;
  15095. osf3* | osf4* | osf5*)
  15096. version_type=osf
  15097. need_lib_prefix=no
  15098. need_version=no
  15099. soname_spec='$libname$release$shared_ext$major'
  15100. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15101. shlibpath_var=LD_LIBRARY_PATH
  15102. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15103. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15104. ;;
  15105. rdos*)
  15106. dynamic_linker=no
  15107. ;;
  15108. solaris*)
  15109. version_type=linux # correct to gnu/linux during the next big refactor
  15110. need_lib_prefix=no
  15111. need_version=no
  15112. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15113. soname_spec='$libname$release$shared_ext$major'
  15114. shlibpath_var=LD_LIBRARY_PATH
  15115. shlibpath_overrides_runpath=yes
  15116. hardcode_into_libs=yes
  15117. # ldd complains unless libraries are executable
  15118. postinstall_cmds='chmod +x $lib'
  15119. ;;
  15120. sunos4*)
  15121. version_type=sunos
  15122. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15123. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15124. shlibpath_var=LD_LIBRARY_PATH
  15125. shlibpath_overrides_runpath=yes
  15126. if test yes = "$with_gnu_ld"; then
  15127. need_lib_prefix=no
  15128. fi
  15129. need_version=yes
  15130. ;;
  15131. sysv4 | sysv4.3*)
  15132. version_type=linux # correct to gnu/linux during the next big refactor
  15133. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15134. soname_spec='$libname$release$shared_ext$major'
  15135. shlibpath_var=LD_LIBRARY_PATH
  15136. case $host_vendor in
  15137. sni)
  15138. shlibpath_overrides_runpath=no
  15139. need_lib_prefix=no
  15140. runpath_var=LD_RUN_PATH
  15141. ;;
  15142. siemens)
  15143. need_lib_prefix=no
  15144. ;;
  15145. motorola)
  15146. need_lib_prefix=no
  15147. need_version=no
  15148. shlibpath_overrides_runpath=no
  15149. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15150. ;;
  15151. esac
  15152. ;;
  15153. sysv4*MP*)
  15154. if test -d /usr/nec; then
  15155. version_type=linux # correct to gnu/linux during the next big refactor
  15156. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15157. soname_spec='$libname$shared_ext.$major'
  15158. shlibpath_var=LD_LIBRARY_PATH
  15159. fi
  15160. ;;
  15161. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15162. version_type=sco
  15163. need_lib_prefix=no
  15164. need_version=no
  15165. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15166. soname_spec='$libname$release$shared_ext$major'
  15167. shlibpath_var=LD_LIBRARY_PATH
  15168. shlibpath_overrides_runpath=yes
  15169. hardcode_into_libs=yes
  15170. if test yes = "$with_gnu_ld"; then
  15171. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15172. else
  15173. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15174. case $host_os in
  15175. sco3.2v5*)
  15176. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15177. ;;
  15178. esac
  15179. fi
  15180. sys_lib_dlsearch_path_spec='/usr/lib'
  15181. ;;
  15182. tpf*)
  15183. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15184. version_type=linux # correct to gnu/linux during the next big refactor
  15185. need_lib_prefix=no
  15186. need_version=no
  15187. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15188. shlibpath_var=LD_LIBRARY_PATH
  15189. shlibpath_overrides_runpath=no
  15190. hardcode_into_libs=yes
  15191. ;;
  15192. uts4*)
  15193. version_type=linux # correct to gnu/linux during the next big refactor
  15194. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15195. soname_spec='$libname$release$shared_ext$major'
  15196. shlibpath_var=LD_LIBRARY_PATH
  15197. ;;
  15198. *)
  15199. dynamic_linker=no
  15200. ;;
  15201. esac
  15202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15203. printf "%s\n" "$dynamic_linker" >&6; }
  15204. test no = "$dynamic_linker" && can_build_shared=no
  15205. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15206. if test yes = "$GCC"; then
  15207. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15208. fi
  15209. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15210. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15211. fi
  15212. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15213. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15214. fi
  15215. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15216. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15217. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15218. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15219. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15220. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15222. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15223. hardcode_action_CXX=
  15224. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15225. test -n "$runpath_var_CXX" ||
  15226. test yes = "$hardcode_automatic_CXX"; then
  15227. # We can hardcode non-existent directories.
  15228. if test no != "$hardcode_direct_CXX" &&
  15229. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15230. # have to relink, otherwise we might link with an installed library
  15231. # when we should be linking with a yet-to-be-installed one
  15232. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15233. test no != "$hardcode_minus_L_CXX"; then
  15234. # Linking always hardcodes the temporary library directory.
  15235. hardcode_action_CXX=relink
  15236. else
  15237. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15238. hardcode_action_CXX=immediate
  15239. fi
  15240. else
  15241. # We cannot hardcode anything, or else we can only hardcode existing
  15242. # directories.
  15243. hardcode_action_CXX=unsupported
  15244. fi
  15245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15246. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15247. if test relink = "$hardcode_action_CXX" ||
  15248. test yes = "$inherit_rpath_CXX"; then
  15249. # Fast installation is not supported
  15250. enable_fast_install=no
  15251. elif test yes = "$shlibpath_overrides_runpath" ||
  15252. test no = "$enable_shared"; then
  15253. # Fast installation is not necessary
  15254. enable_fast_install=needless
  15255. fi
  15256. fi # test -n "$compiler"
  15257. CC=$lt_save_CC
  15258. CFLAGS=$lt_save_CFLAGS
  15259. LDCXX=$LD
  15260. LD=$lt_save_LD
  15261. GCC=$lt_save_GCC
  15262. with_gnu_ld=$lt_save_with_gnu_ld
  15263. lt_cv_path_LDCXX=$lt_cv_path_LD
  15264. lt_cv_path_LD=$lt_save_path_LD
  15265. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15266. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15267. fi # test yes != "$_lt_caught_CXX_error"
  15268. ac_ext=c
  15269. ac_cpp='$CPP $CPPFLAGS'
  15270. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15271. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15272. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15274. printf %s "checking for egrep... " >&6; }
  15275. if test ${ac_cv_path_EGREP+y}
  15276. then :
  15277. printf %s "(cached) " >&6
  15278. else $as_nop
  15279. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15280. then ac_cv_path_EGREP="$GREP -E"
  15281. else
  15282. if test -z "$EGREP"; then
  15283. ac_path_EGREP_found=false
  15284. # Loop through the user's path and test for each of PROGNAME-LIST
  15285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15286. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15287. do
  15288. IFS=$as_save_IFS
  15289. case $as_dir in #(((
  15290. '') as_dir=./ ;;
  15291. */) ;;
  15292. *) as_dir=$as_dir/ ;;
  15293. esac
  15294. for ac_prog in egrep
  15295. do
  15296. for ac_exec_ext in '' $ac_executable_extensions; do
  15297. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15298. as_fn_executable_p "$ac_path_EGREP" || continue
  15299. # Check for GNU ac_path_EGREP and select it if it is found.
  15300. # Check for GNU $ac_path_EGREP
  15301. case `"$ac_path_EGREP" --version 2>&1` in
  15302. *GNU*)
  15303. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15304. *)
  15305. ac_count=0
  15306. printf %s 0123456789 >"conftest.in"
  15307. while :
  15308. do
  15309. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15310. mv "conftest.tmp" "conftest.in"
  15311. cp "conftest.in" "conftest.nl"
  15312. printf "%s\n" 'EGREP' >> "conftest.nl"
  15313. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15314. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15315. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15316. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15317. # Best one so far, save it but keep looking for a better one
  15318. ac_cv_path_EGREP="$ac_path_EGREP"
  15319. ac_path_EGREP_max=$ac_count
  15320. fi
  15321. # 10*(2^10) chars as input seems more than enough
  15322. test $ac_count -gt 10 && break
  15323. done
  15324. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15325. esac
  15326. $ac_path_EGREP_found && break 3
  15327. done
  15328. done
  15329. done
  15330. IFS=$as_save_IFS
  15331. if test -z "$ac_cv_path_EGREP"; then
  15332. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15333. fi
  15334. else
  15335. ac_cv_path_EGREP=$EGREP
  15336. fi
  15337. fi
  15338. fi
  15339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15340. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15341. EGREP="$ac_cv_path_EGREP"
  15342. # Find a good install program. We prefer a C program (faster),
  15343. # so one script is as good as another. But avoid the broken or
  15344. # incompatible versions:
  15345. # SysV /etc/install, /usr/sbin/install
  15346. # SunOS /usr/etc/install
  15347. # IRIX /sbin/install
  15348. # AIX /bin/install
  15349. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15350. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15351. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15352. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15353. # OS/2's system install, which has a completely different semantic
  15354. # ./install, which can be erroneously created by make from ./install.sh.
  15355. # Reject install programs that cannot install multiple files.
  15356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15357. printf %s "checking for a BSD-compatible install... " >&6; }
  15358. if test -z "$INSTALL"; then
  15359. if test ${ac_cv_path_install+y}
  15360. then :
  15361. printf %s "(cached) " >&6
  15362. else $as_nop
  15363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15364. for as_dir in $PATH
  15365. do
  15366. IFS=$as_save_IFS
  15367. case $as_dir in #(((
  15368. '') as_dir=./ ;;
  15369. */) ;;
  15370. *) as_dir=$as_dir/ ;;
  15371. esac
  15372. # Account for fact that we put trailing slashes in our PATH walk.
  15373. case $as_dir in #((
  15374. ./ | /[cC]/* | \
  15375. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15376. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15377. /usr/ucb/* ) ;;
  15378. *)
  15379. # OSF1 and SCO ODT 3.0 have their own names for install.
  15380. # Don't use installbsd from OSF since it installs stuff as root
  15381. # by default.
  15382. for ac_prog in ginstall scoinst install; do
  15383. for ac_exec_ext in '' $ac_executable_extensions; do
  15384. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15385. if test $ac_prog = install &&
  15386. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15387. # AIX install. It has an incompatible calling convention.
  15388. :
  15389. elif test $ac_prog = install &&
  15390. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15391. # program-specific install script used by HP pwplus--don't use.
  15392. :
  15393. else
  15394. rm -rf conftest.one conftest.two conftest.dir
  15395. echo one > conftest.one
  15396. echo two > conftest.two
  15397. mkdir conftest.dir
  15398. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15399. test -s conftest.one && test -s conftest.two &&
  15400. test -s conftest.dir/conftest.one &&
  15401. test -s conftest.dir/conftest.two
  15402. then
  15403. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15404. break 3
  15405. fi
  15406. fi
  15407. fi
  15408. done
  15409. done
  15410. ;;
  15411. esac
  15412. done
  15413. IFS=$as_save_IFS
  15414. rm -rf conftest.one conftest.two conftest.dir
  15415. fi
  15416. if test ${ac_cv_path_install+y}; then
  15417. INSTALL=$ac_cv_path_install
  15418. else
  15419. # As a last resort, use the slow shell script. Don't cache a
  15420. # value for INSTALL within a source directory, because that will
  15421. # break other packages using the cache if that directory is
  15422. # removed, or if the value is a relative name.
  15423. INSTALL=$ac_install_sh
  15424. fi
  15425. fi
  15426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15427. printf "%s\n" "$INSTALL" >&6; }
  15428. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15429. # It thinks the first close brace ends the variable substitution.
  15430. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15431. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15432. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15434. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15435. set x ${MAKE-make}
  15436. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15437. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15438. then :
  15439. printf %s "(cached) " >&6
  15440. else $as_nop
  15441. cat >conftest.make <<\_ACEOF
  15442. SHELL = /bin/sh
  15443. all:
  15444. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15445. _ACEOF
  15446. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15447. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15448. *@@@%%%=?*=@@@%%%*)
  15449. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15450. *)
  15451. eval ac_cv_prog_make_${ac_make}_set=no;;
  15452. esac
  15453. rm -f conftest.make
  15454. fi
  15455. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15457. printf "%s\n" "yes" >&6; }
  15458. SET_MAKE=
  15459. else
  15460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15461. printf "%s\n" "no" >&6; }
  15462. SET_MAKE="MAKE=${MAKE-make}"
  15463. fi
  15464. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15465. if test -n "$ac_tool_prefix"; then
  15466. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15467. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15469. printf %s "checking for $ac_word... " >&6; }
  15470. if test ${ac_cv_path_PKG_CONFIG+y}
  15471. then :
  15472. printf %s "(cached) " >&6
  15473. else $as_nop
  15474. case $PKG_CONFIG in
  15475. [\\/]* | ?:[\\/]*)
  15476. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15477. ;;
  15478. *)
  15479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15480. for as_dir in $PATH
  15481. do
  15482. IFS=$as_save_IFS
  15483. case $as_dir in #(((
  15484. '') as_dir=./ ;;
  15485. */) ;;
  15486. *) as_dir=$as_dir/ ;;
  15487. esac
  15488. for ac_exec_ext in '' $ac_executable_extensions; do
  15489. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15490. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15491. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15492. break 2
  15493. fi
  15494. done
  15495. done
  15496. IFS=$as_save_IFS
  15497. ;;
  15498. esac
  15499. fi
  15500. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15501. if test -n "$PKG_CONFIG"; then
  15502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15503. printf "%s\n" "$PKG_CONFIG" >&6; }
  15504. else
  15505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15506. printf "%s\n" "no" >&6; }
  15507. fi
  15508. fi
  15509. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15510. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15511. # Extract the first word of "pkg-config", so it can be a program name with args.
  15512. set dummy pkg-config; ac_word=$2
  15513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15514. printf %s "checking for $ac_word... " >&6; }
  15515. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15516. then :
  15517. printf %s "(cached) " >&6
  15518. else $as_nop
  15519. case $ac_pt_PKG_CONFIG in
  15520. [\\/]* | ?:[\\/]*)
  15521. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15522. ;;
  15523. *)
  15524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15525. for as_dir in $PATH
  15526. do
  15527. IFS=$as_save_IFS
  15528. case $as_dir in #(((
  15529. '') as_dir=./ ;;
  15530. */) ;;
  15531. *) as_dir=$as_dir/ ;;
  15532. esac
  15533. for ac_exec_ext in '' $ac_executable_extensions; do
  15534. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15535. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15536. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15537. break 2
  15538. fi
  15539. done
  15540. done
  15541. IFS=$as_save_IFS
  15542. ;;
  15543. esac
  15544. fi
  15545. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15546. if test -n "$ac_pt_PKG_CONFIG"; then
  15547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15548. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15549. else
  15550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15551. printf "%s\n" "no" >&6; }
  15552. fi
  15553. if test "x$ac_pt_PKG_CONFIG" = x; then
  15554. PKG_CONFIG=""
  15555. else
  15556. case $cross_compiling:$ac_tool_warned in
  15557. yes:)
  15558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15559. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15560. ac_tool_warned=yes ;;
  15561. esac
  15562. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15563. fi
  15564. else
  15565. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15566. fi
  15567. fi
  15568. if test -n "$PKG_CONFIG"; then
  15569. _pkg_min_version=0.9.0
  15570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15571. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15572. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15574. printf "%s\n" "yes" >&6; }
  15575. else
  15576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15577. printf "%s\n" "no" >&6; }
  15578. PKG_CONFIG=""
  15579. fi
  15580. fi
  15581. if test -z "$AWK" ; then
  15582. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15583. fi
  15584. for ac_prog in gsort sort
  15585. do
  15586. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15587. set dummy $ac_prog; ac_word=$2
  15588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15589. printf %s "checking for $ac_word... " >&6; }
  15590. if test ${ac_cv_prog_SORT+y}
  15591. then :
  15592. printf %s "(cached) " >&6
  15593. else $as_nop
  15594. if test -n "$SORT"; then
  15595. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15596. else
  15597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15598. for as_dir in $PATH
  15599. do
  15600. IFS=$as_save_IFS
  15601. case $as_dir in #(((
  15602. '') as_dir=./ ;;
  15603. */) ;;
  15604. *) as_dir=$as_dir/ ;;
  15605. esac
  15606. for ac_exec_ext in '' $ac_executable_extensions; do
  15607. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15608. ac_cv_prog_SORT="$ac_prog"
  15609. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15610. break 2
  15611. fi
  15612. done
  15613. done
  15614. IFS=$as_save_IFS
  15615. fi
  15616. fi
  15617. SORT=$ac_cv_prog_SORT
  15618. if test -n "$SORT"; then
  15619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15620. printf "%s\n" "$SORT" >&6; }
  15621. else
  15622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15623. printf "%s\n" "no" >&6; }
  15624. fi
  15625. test -n "$SORT" && break
  15626. done
  15627. test -n "$SORT" || SORT="false"
  15628. if ! "$SORT" -V </dev/null >/dev/null
  15629. then :
  15630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GNU sort(1) is required to find dynamic libraries" >&5
  15631. printf "%s\n" "$as_me: WARNING: GNU sort(1) is required to find dynamic libraries" >&2;}
  15632. fi
  15633. # Check whether --enable-largefile was given.
  15634. if test ${enable_largefile+y}
  15635. then :
  15636. enableval=$enable_largefile;
  15637. fi
  15638. if test "$enable_largefile" != no; then
  15639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15640. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15641. if test ${ac_cv_sys_largefile_CC+y}
  15642. then :
  15643. printf %s "(cached) " >&6
  15644. else $as_nop
  15645. ac_cv_sys_largefile_CC=no
  15646. if test "$GCC" != yes; then
  15647. ac_save_CC=$CC
  15648. while :; do
  15649. # IRIX 6.2 and later do not support large files by default,
  15650. # so use the C compiler's -n32 option if that helps.
  15651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15652. /* end confdefs.h. */
  15653. #include <sys/types.h>
  15654. /* Check that off_t can represent 2**63 - 1 correctly.
  15655. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15656. since some C++ compilers masquerading as C compilers
  15657. incorrectly reject 9223372036854775807. */
  15658. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15659. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15660. && LARGE_OFF_T % 2147483647 == 1)
  15661. ? 1 : -1];
  15662. int
  15663. main (void)
  15664. {
  15665. ;
  15666. return 0;
  15667. }
  15668. _ACEOF
  15669. if ac_fn_c_try_compile "$LINENO"
  15670. then :
  15671. break
  15672. fi
  15673. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15674. CC="$CC -n32"
  15675. if ac_fn_c_try_compile "$LINENO"
  15676. then :
  15677. ac_cv_sys_largefile_CC=' -n32'; break
  15678. fi
  15679. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15680. break
  15681. done
  15682. CC=$ac_save_CC
  15683. rm -f conftest.$ac_ext
  15684. fi
  15685. fi
  15686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15687. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15688. if test "$ac_cv_sys_largefile_CC" != no; then
  15689. CC=$CC$ac_cv_sys_largefile_CC
  15690. fi
  15691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15692. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15693. if test ${ac_cv_sys_file_offset_bits+y}
  15694. then :
  15695. printf %s "(cached) " >&6
  15696. else $as_nop
  15697. while :; do
  15698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15699. /* end confdefs.h. */
  15700. #include <sys/types.h>
  15701. /* Check that off_t can represent 2**63 - 1 correctly.
  15702. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15703. since some C++ compilers masquerading as C compilers
  15704. incorrectly reject 9223372036854775807. */
  15705. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15706. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15707. && LARGE_OFF_T % 2147483647 == 1)
  15708. ? 1 : -1];
  15709. int
  15710. main (void)
  15711. {
  15712. ;
  15713. return 0;
  15714. }
  15715. _ACEOF
  15716. if ac_fn_c_try_compile "$LINENO"
  15717. then :
  15718. ac_cv_sys_file_offset_bits=no; break
  15719. fi
  15720. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15722. /* end confdefs.h. */
  15723. #define _FILE_OFFSET_BITS 64
  15724. #include <sys/types.h>
  15725. /* Check that off_t can represent 2**63 - 1 correctly.
  15726. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15727. since some C++ compilers masquerading as C compilers
  15728. incorrectly reject 9223372036854775807. */
  15729. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15730. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15731. && LARGE_OFF_T % 2147483647 == 1)
  15732. ? 1 : -1];
  15733. int
  15734. main (void)
  15735. {
  15736. ;
  15737. return 0;
  15738. }
  15739. _ACEOF
  15740. if ac_fn_c_try_compile "$LINENO"
  15741. then :
  15742. ac_cv_sys_file_offset_bits=64; break
  15743. fi
  15744. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15745. ac_cv_sys_file_offset_bits=unknown
  15746. break
  15747. done
  15748. fi
  15749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15750. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15751. case $ac_cv_sys_file_offset_bits in #(
  15752. no | unknown) ;;
  15753. *)
  15754. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15755. ;;
  15756. esac
  15757. rm -rf conftest*
  15758. if test $ac_cv_sys_file_offset_bits = unknown; then
  15759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15760. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15761. if test ${ac_cv_sys_large_files+y}
  15762. then :
  15763. printf %s "(cached) " >&6
  15764. else $as_nop
  15765. while :; do
  15766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15767. /* end confdefs.h. */
  15768. #include <sys/types.h>
  15769. /* Check that off_t can represent 2**63 - 1 correctly.
  15770. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15771. since some C++ compilers masquerading as C compilers
  15772. incorrectly reject 9223372036854775807. */
  15773. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15774. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15775. && LARGE_OFF_T % 2147483647 == 1)
  15776. ? 1 : -1];
  15777. int
  15778. main (void)
  15779. {
  15780. ;
  15781. return 0;
  15782. }
  15783. _ACEOF
  15784. if ac_fn_c_try_compile "$LINENO"
  15785. then :
  15786. ac_cv_sys_large_files=no; break
  15787. fi
  15788. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15790. /* end confdefs.h. */
  15791. #define _LARGE_FILES 1
  15792. #include <sys/types.h>
  15793. /* Check that off_t can represent 2**63 - 1 correctly.
  15794. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15795. since some C++ compilers masquerading as C compilers
  15796. incorrectly reject 9223372036854775807. */
  15797. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15798. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15799. && LARGE_OFF_T % 2147483647 == 1)
  15800. ? 1 : -1];
  15801. int
  15802. main (void)
  15803. {
  15804. ;
  15805. return 0;
  15806. }
  15807. _ACEOF
  15808. if ac_fn_c_try_compile "$LINENO"
  15809. then :
  15810. ac_cv_sys_large_files=1; break
  15811. fi
  15812. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15813. ac_cv_sys_large_files=unknown
  15814. break
  15815. done
  15816. fi
  15817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15818. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15819. case $ac_cv_sys_large_files in #(
  15820. no | unknown) ;;
  15821. *)
  15822. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15823. ;;
  15824. esac
  15825. rm -rf conftest*
  15826. fi
  15827. fi
  15828. case "$host" in
  15829. *-*-mingw*)
  15830. # Except on msys, where make can't handle full pathnames (bug 1972)
  15831. ;;
  15832. *)
  15833. srcdir=`cd $srcdir && pwd`
  15834. ;;
  15835. esac
  15836. INCLUDE="-I$srcdir/include"
  15837. case "$host" in
  15838. *-*-nto-qnx*)
  15839. ;;
  15840. *)
  15841. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15842. ;;
  15843. esac
  15844. case "$host" in
  15845. *-*-haiku*)
  15846. LINKER='$(CXX)'
  15847. LIBTOOLLINKERTAG='CXX'
  15848. ;;
  15849. *)
  15850. LINKER='$(CC)'
  15851. LIBTOOLLINKERTAG='CC'
  15852. ;;
  15853. esac
  15854. if test x$srcdir != x.; then
  15855. INCLUDE="-Iinclude $INCLUDE"
  15856. elif test -d .git; then
  15857. as_fn_error $? "
  15858. *** When building from a git clone you should configure and build in a
  15859. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15860. " "$LINENO" 5
  15861. fi
  15862. BASE_CFLAGS=""
  15863. BASE_LDFLAGS=""
  15864. case "$host" in
  15865. *-*-cygwin*)
  15866. # We build SDL on cygwin without the UNIX emulation layer
  15867. save_CFLAGS="$CFLAGS"
  15868. have_no_cygwin=no
  15869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15870. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15871. CFLAGS="$save_CFLAGS -mno-cygwin"
  15872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15873. /* end confdefs.h. */
  15874. int
  15875. main (void)
  15876. {
  15877. ;
  15878. return 0;
  15879. }
  15880. _ACEOF
  15881. if ac_fn_c_try_compile "$LINENO"
  15882. then :
  15883. have_no_cygwin=yes
  15884. fi
  15885. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15887. printf "%s\n" "$have_no_cygwin" >&6; }
  15888. CFLAGS="$save_CFLAGS"
  15889. if test x$have_no_cygwin = xyes; then
  15890. BASE_CFLAGS="-mno-cygwin"
  15891. BASE_LDFLAGS="-mno-cygwin"
  15892. fi
  15893. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15894. ;;
  15895. esac
  15896. # Uncomment the following line if you want to force SDL and applications
  15897. # built with it to be compiled for a particular architecture.
  15898. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15899. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15900. # The default optimization for SDL is -O3 (Bug #31)
  15901. if test "x$orig_CFLAGS" = x; then
  15902. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15903. fi
  15904. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15905. BUILD_LDFLAGS="$LDFLAGS"
  15906. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15907. ## These are common directories to find software packages
  15908. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15909. # if test -d $path/include; then
  15910. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15911. # fi
  15912. # if test -d $path/lib; then
  15913. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15914. # fi
  15915. #done
  15916. SDL_CFLAGS="$BASE_CFLAGS"
  15917. SDL_LIBS="-lSDL2"
  15918. if test "x$BASE_LDFLAGS" != x; then
  15919. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15920. fi
  15921. if test "x$EXTRA_CFLAGS" != x; then
  15922. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15923. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15924. fi
  15925. if test "x$EXTRA_LDFLAGS" != x; then
  15926. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15927. fi
  15928. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15929. find_lib()
  15930. {
  15931. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15932. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15933. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15934. if test "$cross_compiling" = yes; then
  15935. host_lib_path=""
  15936. else
  15937. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15938. fi
  15939. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15940. 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`
  15941. if test x$lib != x; then
  15942. echo $lib
  15943. return
  15944. fi
  15945. done
  15946. }
  15947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15948. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15949. if test ${ac_cv_c_const+y}
  15950. then :
  15951. printf %s "(cached) " >&6
  15952. else $as_nop
  15953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15954. /* end confdefs.h. */
  15955. int
  15956. main (void)
  15957. {
  15958. #ifndef __cplusplus
  15959. /* Ultrix mips cc rejects this sort of thing. */
  15960. typedef int charset[2];
  15961. const charset cs = { 0, 0 };
  15962. /* SunOS 4.1.1 cc rejects this. */
  15963. char const *const *pcpcc;
  15964. char **ppc;
  15965. /* NEC SVR4.0.2 mips cc rejects this. */
  15966. struct point {int x, y;};
  15967. static struct point const zero = {0,0};
  15968. /* IBM XL C 1.02.0.0 rejects this.
  15969. It does not let you subtract one const X* pointer from another in
  15970. an arm of an if-expression whose if-part is not a constant
  15971. expression */
  15972. const char *g = "string";
  15973. pcpcc = &g + (g ? g-g : 0);
  15974. /* HPUX 7.0 cc rejects these. */
  15975. ++pcpcc;
  15976. ppc = (char**) pcpcc;
  15977. pcpcc = (char const *const *) ppc;
  15978. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15979. char tx;
  15980. char *t = &tx;
  15981. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15982. *t++ = 0;
  15983. if (s) return 0;
  15984. }
  15985. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15986. int x[] = {25, 17};
  15987. const int *foo = &x[0];
  15988. ++foo;
  15989. }
  15990. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15991. typedef const int *iptr;
  15992. iptr p = 0;
  15993. ++p;
  15994. }
  15995. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  15996. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15997. struct s { int j; const int *ap[3]; } bx;
  15998. struct s *b = &bx; b->j = 5;
  15999. }
  16000. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16001. const int foo = 10;
  16002. if (!foo) return 0;
  16003. }
  16004. return !cs[0] && !zero.x;
  16005. #endif
  16006. ;
  16007. return 0;
  16008. }
  16009. _ACEOF
  16010. if ac_fn_c_try_compile "$LINENO"
  16011. then :
  16012. ac_cv_c_const=yes
  16013. else $as_nop
  16014. ac_cv_c_const=no
  16015. fi
  16016. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16017. fi
  16018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16019. printf "%s\n" "$ac_cv_c_const" >&6; }
  16020. if test $ac_cv_c_const = no; then
  16021. printf "%s\n" "#define const /**/" >>confdefs.h
  16022. fi
  16023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16024. printf %s "checking for inline... " >&6; }
  16025. if test ${ac_cv_c_inline+y}
  16026. then :
  16027. printf %s "(cached) " >&6
  16028. else $as_nop
  16029. ac_cv_c_inline=no
  16030. for ac_kw in inline __inline__ __inline; do
  16031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16032. /* end confdefs.h. */
  16033. #ifndef __cplusplus
  16034. typedef int foo_t;
  16035. static $ac_kw foo_t static_foo (void) {return 0; }
  16036. $ac_kw foo_t foo (void) {return 0; }
  16037. #endif
  16038. _ACEOF
  16039. if ac_fn_c_try_compile "$LINENO"
  16040. then :
  16041. ac_cv_c_inline=$ac_kw
  16042. fi
  16043. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16044. test "$ac_cv_c_inline" != no && break
  16045. done
  16046. fi
  16047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16048. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16049. case $ac_cv_c_inline in
  16050. inline | yes) ;;
  16051. *)
  16052. case $ac_cv_c_inline in
  16053. no) ac_val=;;
  16054. *) ac_val=$ac_cv_c_inline;;
  16055. esac
  16056. cat >>confdefs.h <<_ACEOF
  16057. #ifndef __cplusplus
  16058. #define inline $ac_val
  16059. #endif
  16060. _ACEOF
  16061. ;;
  16062. esac
  16063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16064. printf %s "checking for working volatile... " >&6; }
  16065. if test ${ac_cv_c_volatile+y}
  16066. then :
  16067. printf %s "(cached) " >&6
  16068. else $as_nop
  16069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16070. /* end confdefs.h. */
  16071. int
  16072. main (void)
  16073. {
  16074. volatile int x;
  16075. int * volatile y = (int *) 0;
  16076. return !x && !y;
  16077. ;
  16078. return 0;
  16079. }
  16080. _ACEOF
  16081. if ac_fn_c_try_compile "$LINENO"
  16082. then :
  16083. ac_cv_c_volatile=yes
  16084. else $as_nop
  16085. ac_cv_c_volatile=no
  16086. fi
  16087. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16088. fi
  16089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16090. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16091. if test $ac_cv_c_volatile = no; then
  16092. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16093. fi
  16094. # Check whether --enable-assertions was given.
  16095. if test ${enable_assertions+y}
  16096. then :
  16097. enableval=$enable_assertions;
  16098. else $as_nop
  16099. enable_assertions=auto
  16100. fi
  16101. case "$enable_assertions" in
  16102. auto) # Use optimization settings to determine assertion level
  16103. ;;
  16104. disabled)
  16105. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16106. ;;
  16107. release)
  16108. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16109. ;;
  16110. enabled)
  16111. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16112. ;;
  16113. paranoid)
  16114. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16115. ;;
  16116. *)
  16117. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16118. ;;
  16119. esac
  16120. 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"
  16121. # Check whether --enable-dependency-tracking was given.
  16122. if test ${enable_dependency_tracking+y}
  16123. then :
  16124. enableval=$enable_dependency_tracking;
  16125. else $as_nop
  16126. enable_dependency_tracking=yes
  16127. fi
  16128. if test x$enable_dependency_tracking = xyes; then
  16129. have_gcc_mmd_mt=no
  16130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16131. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16133. /* end confdefs.h. */
  16134. #if !defined(__GNUC__) || __GNUC__ < 3
  16135. #error Dependency tracking requires GCC 3.0 or newer
  16136. #endif
  16137. int
  16138. main (void)
  16139. {
  16140. ;
  16141. return 0;
  16142. }
  16143. _ACEOF
  16144. if ac_fn_c_try_compile "$LINENO"
  16145. then :
  16146. have_gcc_mmd_mt=yes
  16147. fi
  16148. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16150. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16151. if test x$have_gcc_mmd_mt = xyes; then
  16152. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16153. fi
  16154. fi
  16155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16156. printf %s "checking for linker option --no-undefined... " >&6; }
  16157. have_no_undefined=no
  16158. case "$host" in
  16159. *-*-openbsd*)
  16160. ;;
  16161. *)
  16162. save_LDFLAGS="$LDFLAGS"
  16163. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16165. /* end confdefs.h. */
  16166. int
  16167. main (void)
  16168. {
  16169. ;
  16170. return 0;
  16171. }
  16172. _ACEOF
  16173. if ac_fn_c_try_link "$LINENO"
  16174. then :
  16175. have_no_undefined=yes
  16176. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16177. fi
  16178. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16179. conftest$ac_exeext conftest.$ac_ext
  16180. LDFLAGS="$save_LDFLAGS"
  16181. ;;
  16182. esac
  16183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16184. printf "%s\n" "$have_no_undefined" >&6; }
  16185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16186. printf %s "checking for linker option --dynamicbase... " >&6; }
  16187. have_dynamicbase=no
  16188. case "$host" in
  16189. *)
  16190. save_LDFLAGS="$LDFLAGS"
  16191. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16193. /* end confdefs.h. */
  16194. int
  16195. main (void)
  16196. {
  16197. ;
  16198. return 0;
  16199. }
  16200. _ACEOF
  16201. if ac_fn_c_try_link "$LINENO"
  16202. then :
  16203. have_dynamicbase=yes
  16204. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16205. fi
  16206. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16207. conftest$ac_exeext conftest.$ac_ext
  16208. LDFLAGS="$save_LDFLAGS"
  16209. ;;
  16210. esac
  16211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16212. printf "%s\n" "$have_dynamicbase" >&6; }
  16213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16214. printf %s "checking for linker option --nxcompat... " >&6; }
  16215. have_nxcompat=no
  16216. case "$host" in
  16217. *)
  16218. save_LDFLAGS="$LDFLAGS"
  16219. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16221. /* end confdefs.h. */
  16222. int
  16223. main (void)
  16224. {
  16225. ;
  16226. return 0;
  16227. }
  16228. _ACEOF
  16229. if ac_fn_c_try_link "$LINENO"
  16230. then :
  16231. have_nxcompat=yes
  16232. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16233. fi
  16234. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16235. conftest$ac_exeext conftest.$ac_ext
  16236. LDFLAGS="$save_LDFLAGS"
  16237. ;;
  16238. esac
  16239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16240. printf "%s\n" "$have_nxcompat" >&6; }
  16241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16242. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16243. have_high_entropy_va=no
  16244. case "$host" in
  16245. *)
  16246. save_LDFLAGS="$LDFLAGS"
  16247. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16249. /* end confdefs.h. */
  16250. int
  16251. main (void)
  16252. {
  16253. ;
  16254. return 0;
  16255. }
  16256. _ACEOF
  16257. if ac_fn_c_try_link "$LINENO"
  16258. then :
  16259. have_high_entropy_va=yes
  16260. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16261. fi
  16262. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16263. conftest$ac_exeext conftest.$ac_ext
  16264. LDFLAGS="$save_LDFLAGS"
  16265. ;;
  16266. esac
  16267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16268. printf "%s\n" "$have_high_entropy_va" >&6; }
  16269. # Check whether --enable-libc was given.
  16270. if test ${enable_libc+y}
  16271. then :
  16272. enableval=$enable_libc;
  16273. else $as_nop
  16274. enable_libc=yes
  16275. fi
  16276. # Check whether --enable-system-iconv was given.
  16277. if test ${enable_system_iconv+y}
  16278. then :
  16279. enableval=$enable_system_iconv;
  16280. else $as_nop
  16281. enable_system_iconv=yes
  16282. fi
  16283. if test x$enable_libc = xyes; then
  16284. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16285. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16286. if test "x$ac_cv_header_sys_types_h" = xyes
  16287. then :
  16288. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16289. fi
  16290. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16291. if test "x$ac_cv_header_stdio_h" = xyes
  16292. then :
  16293. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16294. fi
  16295. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16296. if test "x$ac_cv_header_stdlib_h" = xyes
  16297. then :
  16298. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16299. fi
  16300. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16301. if test "x$ac_cv_header_stddef_h" = xyes
  16302. then :
  16303. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16304. fi
  16305. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16306. if test "x$ac_cv_header_stdarg_h" = xyes
  16307. then :
  16308. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16309. fi
  16310. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16311. if test "x$ac_cv_header_malloc_h" = xyes
  16312. then :
  16313. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16314. fi
  16315. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16316. if test "x$ac_cv_header_memory_h" = xyes
  16317. then :
  16318. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16319. fi
  16320. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16321. if test "x$ac_cv_header_string_h" = xyes
  16322. then :
  16323. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16324. fi
  16325. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16326. if test "x$ac_cv_header_strings_h" = xyes
  16327. then :
  16328. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16329. fi
  16330. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16331. if test "x$ac_cv_header_wchar_h" = xyes
  16332. then :
  16333. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16334. fi
  16335. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16336. if test "x$ac_cv_header_inttypes_h" = xyes
  16337. then :
  16338. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16339. fi
  16340. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16341. if test "x$ac_cv_header_stdint_h" = xyes
  16342. then :
  16343. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16344. fi
  16345. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16346. if test "x$ac_cv_header_limits_h" = xyes
  16347. then :
  16348. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16349. fi
  16350. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16351. if test "x$ac_cv_header_ctype_h" = xyes
  16352. then :
  16353. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16354. fi
  16355. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16356. if test "x$ac_cv_header_math_h" = xyes
  16357. then :
  16358. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16359. fi
  16360. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16361. if test "x$ac_cv_header_float_h" = xyes
  16362. then :
  16363. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16364. fi
  16365. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16366. if test "x$ac_cv_header_iconv_h" = xyes
  16367. then :
  16368. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16369. fi
  16370. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16371. if test "x$ac_cv_header_signal_h" = xyes
  16372. then :
  16373. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16374. fi
  16375. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16376. if test "x$ac_cv_type_size_t" = xyes
  16377. then :
  16378. else $as_nop
  16379. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16380. fi
  16381. ac_ext=c
  16382. ac_cpp='$CPP $CPPFLAGS'
  16383. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16384. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16385. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16387. printf %s "checking how to run the C preprocessor... " >&6; }
  16388. # On Suns, sometimes $CPP names a directory.
  16389. if test -n "$CPP" && test -d "$CPP"; then
  16390. CPP=
  16391. fi
  16392. if test -z "$CPP"; then
  16393. if test ${ac_cv_prog_CPP+y}
  16394. then :
  16395. printf %s "(cached) " >&6
  16396. else $as_nop
  16397. # Double quotes because $CC needs to be expanded
  16398. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16399. do
  16400. ac_preproc_ok=false
  16401. for ac_c_preproc_warn_flag in '' yes
  16402. do
  16403. # Use a header file that comes with gcc, so configuring glibc
  16404. # with a fresh cross-compiler works.
  16405. # On the NeXT, cc -E runs the code through the compiler's parser,
  16406. # not just through cpp. "Syntax error" is here to catch this case.
  16407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16408. /* end confdefs.h. */
  16409. #include <limits.h>
  16410. Syntax error
  16411. _ACEOF
  16412. if ac_fn_c_try_cpp "$LINENO"
  16413. then :
  16414. else $as_nop
  16415. # Broken: fails on valid input.
  16416. continue
  16417. fi
  16418. rm -f conftest.err conftest.i conftest.$ac_ext
  16419. # OK, works on sane cases. Now check whether nonexistent headers
  16420. # can be detected and how.
  16421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16422. /* end confdefs.h. */
  16423. #include <ac_nonexistent.h>
  16424. _ACEOF
  16425. if ac_fn_c_try_cpp "$LINENO"
  16426. then :
  16427. # Broken: success on invalid input.
  16428. continue
  16429. else $as_nop
  16430. # Passes both tests.
  16431. ac_preproc_ok=:
  16432. break
  16433. fi
  16434. rm -f conftest.err conftest.i conftest.$ac_ext
  16435. done
  16436. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16437. rm -f conftest.i conftest.err conftest.$ac_ext
  16438. if $ac_preproc_ok
  16439. then :
  16440. break
  16441. fi
  16442. done
  16443. ac_cv_prog_CPP=$CPP
  16444. fi
  16445. CPP=$ac_cv_prog_CPP
  16446. else
  16447. ac_cv_prog_CPP=$CPP
  16448. fi
  16449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16450. printf "%s\n" "$CPP" >&6; }
  16451. ac_preproc_ok=false
  16452. for ac_c_preproc_warn_flag in '' yes
  16453. do
  16454. # Use a header file that comes with gcc, so configuring glibc
  16455. # with a fresh cross-compiler works.
  16456. # On the NeXT, cc -E runs the code through the compiler's parser,
  16457. # not just through cpp. "Syntax error" is here to catch this case.
  16458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16459. /* end confdefs.h. */
  16460. #include <limits.h>
  16461. Syntax error
  16462. _ACEOF
  16463. if ac_fn_c_try_cpp "$LINENO"
  16464. then :
  16465. else $as_nop
  16466. # Broken: fails on valid input.
  16467. continue
  16468. fi
  16469. rm -f conftest.err conftest.i conftest.$ac_ext
  16470. # OK, works on sane cases. Now check whether nonexistent headers
  16471. # can be detected and how.
  16472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16473. /* end confdefs.h. */
  16474. #include <ac_nonexistent.h>
  16475. _ACEOF
  16476. if ac_fn_c_try_cpp "$LINENO"
  16477. then :
  16478. # Broken: success on invalid input.
  16479. continue
  16480. else $as_nop
  16481. # Passes both tests.
  16482. ac_preproc_ok=:
  16483. break
  16484. fi
  16485. rm -f conftest.err conftest.i conftest.$ac_ext
  16486. done
  16487. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16488. rm -f conftest.i conftest.err conftest.$ac_ext
  16489. if $ac_preproc_ok
  16490. then :
  16491. else $as_nop
  16492. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16493. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16494. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16495. See \`config.log' for more details" "$LINENO" 5; }
  16496. fi
  16497. ac_ext=c
  16498. ac_cpp='$CPP $CPPFLAGS'
  16499. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16500. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16501. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16503. printf %s "checking for M_PI in math.h... " >&6; }
  16504. if test ${ac_cv_define_M_PI+y}
  16505. then :
  16506. printf %s "(cached) " >&6
  16507. else $as_nop
  16508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16509. /* end confdefs.h. */
  16510. #include <math.h>
  16511. #ifdef M_PI
  16512. YES_IS_DEFINED
  16513. #endif
  16514. _ACEOF
  16515. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16516. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16517. then :
  16518. ac_cv_define_M_PI=yes
  16519. else $as_nop
  16520. ac_cv_define_M_PI=no
  16521. fi
  16522. rm -rf conftest*
  16523. fi
  16524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16525. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16526. if test "$ac_cv_define_M_PI" = "yes" ; then
  16527. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16528. fi
  16529. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16530. # for constant arguments. Useless!
  16531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16532. printf %s "checking for working alloca.h... " >&6; }
  16533. if test ${ac_cv_working_alloca_h+y}
  16534. then :
  16535. printf %s "(cached) " >&6
  16536. else $as_nop
  16537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16538. /* end confdefs.h. */
  16539. #include <alloca.h>
  16540. int
  16541. main (void)
  16542. {
  16543. char *p = (char *) alloca (2 * sizeof (int));
  16544. if (p) return 0;
  16545. ;
  16546. return 0;
  16547. }
  16548. _ACEOF
  16549. if ac_fn_c_try_link "$LINENO"
  16550. then :
  16551. ac_cv_working_alloca_h=yes
  16552. else $as_nop
  16553. ac_cv_working_alloca_h=no
  16554. fi
  16555. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16556. conftest$ac_exeext conftest.$ac_ext
  16557. fi
  16558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16559. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16560. if test $ac_cv_working_alloca_h = yes; then
  16561. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16562. fi
  16563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16564. printf %s "checking for alloca... " >&6; }
  16565. if test ${ac_cv_func_alloca_works+y}
  16566. then :
  16567. printf %s "(cached) " >&6
  16568. else $as_nop
  16569. if test $ac_cv_working_alloca_h = yes; then
  16570. ac_cv_func_alloca_works=yes
  16571. else
  16572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16573. /* end confdefs.h. */
  16574. #include <stdlib.h>
  16575. #include <stddef.h>
  16576. #ifndef alloca
  16577. # ifdef __GNUC__
  16578. # define alloca __builtin_alloca
  16579. # elif defined _MSC_VER
  16580. # include <malloc.h>
  16581. # define alloca _alloca
  16582. # else
  16583. # ifdef __cplusplus
  16584. extern "C"
  16585. # endif
  16586. void *alloca (size_t);
  16587. # endif
  16588. #endif
  16589. int
  16590. main (void)
  16591. {
  16592. char *p = (char *) alloca (1);
  16593. if (p) return 0;
  16594. ;
  16595. return 0;
  16596. }
  16597. _ACEOF
  16598. if ac_fn_c_try_link "$LINENO"
  16599. then :
  16600. ac_cv_func_alloca_works=yes
  16601. else $as_nop
  16602. ac_cv_func_alloca_works=no
  16603. fi
  16604. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16605. conftest$ac_exeext conftest.$ac_ext
  16606. fi
  16607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16608. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16609. fi
  16610. if test $ac_cv_func_alloca_works = yes; then
  16611. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16612. else
  16613. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16614. # that cause trouble. Some versions do not even contain alloca or
  16615. # contain a buggy version. If you still want to use their alloca,
  16616. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16617. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16618. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16620. printf %s "checking stack direction for C alloca... " >&6; }
  16621. if test ${ac_cv_c_stack_direction+y}
  16622. then :
  16623. printf %s "(cached) " >&6
  16624. else $as_nop
  16625. if test "$cross_compiling" = yes
  16626. then :
  16627. ac_cv_c_stack_direction=0
  16628. else $as_nop
  16629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16630. /* end confdefs.h. */
  16631. $ac_includes_default
  16632. int
  16633. find_stack_direction (int *addr, int depth)
  16634. {
  16635. int dir, dummy = 0;
  16636. if (! addr)
  16637. addr = &dummy;
  16638. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16639. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16640. return dir + dummy;
  16641. }
  16642. int
  16643. main (int argc, char **argv)
  16644. {
  16645. return find_stack_direction (0, argc + !argv + 20) < 0;
  16646. }
  16647. _ACEOF
  16648. if ac_fn_c_try_run "$LINENO"
  16649. then :
  16650. ac_cv_c_stack_direction=1
  16651. else $as_nop
  16652. ac_cv_c_stack_direction=-1
  16653. fi
  16654. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16655. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16656. fi
  16657. fi
  16658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16659. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16660. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16661. fi
  16662. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16663. if test "x$ac_cv_func_mprotect" = xyes
  16664. then :
  16665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16666. /* end confdefs.h. */
  16667. #include <sys/types.h>
  16668. #include <sys/mman.h>
  16669. int
  16670. main (void)
  16671. {
  16672. ;
  16673. return 0;
  16674. }
  16675. _ACEOF
  16676. if ac_fn_c_try_compile "$LINENO"
  16677. then :
  16678. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16679. fi
  16680. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16681. fi
  16682. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16683. if test "x$ac_cv_func_malloc" = xyes
  16684. then :
  16685. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16686. fi
  16687. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16688. if test "x$ac_cv_func_calloc" = xyes
  16689. then :
  16690. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16691. fi
  16692. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16693. if test "x$ac_cv_func_realloc" = xyes
  16694. then :
  16695. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16696. fi
  16697. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16698. if test "x$ac_cv_func_free" = xyes
  16699. then :
  16700. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16701. fi
  16702. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16703. if test "x$ac_cv_func_getenv" = xyes
  16704. then :
  16705. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16706. fi
  16707. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16708. if test "x$ac_cv_func_setenv" = xyes
  16709. then :
  16710. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16711. fi
  16712. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16713. if test "x$ac_cv_func_putenv" = xyes
  16714. then :
  16715. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16716. fi
  16717. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16718. if test "x$ac_cv_func_unsetenv" = xyes
  16719. then :
  16720. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16721. fi
  16722. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16723. if test "x$ac_cv_func_bsearch" = xyes
  16724. then :
  16725. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16726. fi
  16727. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16728. if test "x$ac_cv_func_qsort" = xyes
  16729. then :
  16730. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16731. fi
  16732. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16733. if test "x$ac_cv_func_abs" = xyes
  16734. then :
  16735. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16736. fi
  16737. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16738. if test "x$ac_cv_func_bcopy" = xyes
  16739. then :
  16740. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16741. fi
  16742. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16743. if test "x$ac_cv_func_memset" = xyes
  16744. then :
  16745. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16746. fi
  16747. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16748. if test "x$ac_cv_func_memcmp" = xyes
  16749. then :
  16750. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16751. fi
  16752. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16753. if test "x$ac_cv_func_memcpy" = xyes
  16754. then :
  16755. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16756. fi
  16757. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16758. if test "x$ac_cv_func_memmove" = xyes
  16759. then :
  16760. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16761. fi
  16762. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16763. if test "x$ac_cv_func_wcslen" = xyes
  16764. then :
  16765. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16766. fi
  16767. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16768. if test "x$ac_cv_func_wcslcpy" = xyes
  16769. then :
  16770. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16771. fi
  16772. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16773. if test "x$ac_cv_func_wcslcat" = xyes
  16774. then :
  16775. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16776. fi
  16777. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16778. if test "x$ac_cv_func__wcsdup" = xyes
  16779. then :
  16780. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16781. fi
  16782. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16783. if test "x$ac_cv_func_wcsdup" = xyes
  16784. then :
  16785. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16786. fi
  16787. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16788. if test "x$ac_cv_func_wcsstr" = xyes
  16789. then :
  16790. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16791. fi
  16792. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16793. if test "x$ac_cv_func_wcscmp" = xyes
  16794. then :
  16795. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16796. fi
  16797. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16798. if test "x$ac_cv_func_wcsncmp" = xyes
  16799. then :
  16800. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16801. fi
  16802. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16803. if test "x$ac_cv_func_wcscasecmp" = xyes
  16804. then :
  16805. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16806. fi
  16807. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16808. if test "x$ac_cv_func__wcsicmp" = xyes
  16809. then :
  16810. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16811. fi
  16812. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16813. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16814. then :
  16815. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16816. fi
  16817. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16818. if test "x$ac_cv_func__wcsnicmp" = xyes
  16819. then :
  16820. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16821. fi
  16822. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16823. if test "x$ac_cv_func_strlen" = xyes
  16824. then :
  16825. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16826. fi
  16827. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16828. if test "x$ac_cv_func_strlcpy" = xyes
  16829. then :
  16830. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16831. fi
  16832. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16833. if test "x$ac_cv_func_strlcat" = xyes
  16834. then :
  16835. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16836. fi
  16837. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16838. if test "x$ac_cv_func__strrev" = xyes
  16839. then :
  16840. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16841. fi
  16842. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16843. if test "x$ac_cv_func__strupr" = xyes
  16844. then :
  16845. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16846. fi
  16847. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16848. if test "x$ac_cv_func__strlwr" = xyes
  16849. then :
  16850. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16851. fi
  16852. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16853. if test "x$ac_cv_func_index" = xyes
  16854. then :
  16855. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16856. fi
  16857. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16858. if test "x$ac_cv_func_rindex" = xyes
  16859. then :
  16860. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16861. fi
  16862. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16863. if test "x$ac_cv_func_strchr" = xyes
  16864. then :
  16865. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16866. fi
  16867. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16868. if test "x$ac_cv_func_strrchr" = xyes
  16869. then :
  16870. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16871. fi
  16872. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16873. if test "x$ac_cv_func_strstr" = xyes
  16874. then :
  16875. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16876. fi
  16877. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16878. if test "x$ac_cv_func_strtok_r" = xyes
  16879. then :
  16880. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16881. fi
  16882. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16883. if test "x$ac_cv_func_itoa" = xyes
  16884. then :
  16885. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16886. fi
  16887. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16888. if test "x$ac_cv_func__ltoa" = xyes
  16889. then :
  16890. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16891. fi
  16892. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16893. if test "x$ac_cv_func__uitoa" = xyes
  16894. then :
  16895. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16896. fi
  16897. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16898. if test "x$ac_cv_func__ultoa" = xyes
  16899. then :
  16900. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16901. fi
  16902. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  16903. if test "x$ac_cv_func_strtod" = xyes
  16904. then :
  16905. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16906. fi
  16907. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16908. if test "x$ac_cv_func_strtol" = xyes
  16909. then :
  16910. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16911. fi
  16912. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  16913. if test "x$ac_cv_func_strtoul" = xyes
  16914. then :
  16915. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  16916. fi
  16917. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  16918. if test "x$ac_cv_func__i64toa" = xyes
  16919. then :
  16920. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  16921. fi
  16922. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  16923. if test "x$ac_cv_func__ui64toa" = xyes
  16924. then :
  16925. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  16926. fi
  16927. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  16928. if test "x$ac_cv_func_strtoll" = xyes
  16929. then :
  16930. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  16931. fi
  16932. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  16933. if test "x$ac_cv_func_strtoull" = xyes
  16934. then :
  16935. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  16936. fi
  16937. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  16938. if test "x$ac_cv_func_atoi" = xyes
  16939. then :
  16940. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  16941. fi
  16942. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  16943. if test "x$ac_cv_func_atof" = xyes
  16944. then :
  16945. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  16946. fi
  16947. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  16948. if test "x$ac_cv_func_strcmp" = xyes
  16949. then :
  16950. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  16951. fi
  16952. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  16953. if test "x$ac_cv_func_strncmp" = xyes
  16954. then :
  16955. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  16956. fi
  16957. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  16958. if test "x$ac_cv_func__stricmp" = xyes
  16959. then :
  16960. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  16961. fi
  16962. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  16963. if test "x$ac_cv_func_strcasecmp" = xyes
  16964. then :
  16965. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  16966. fi
  16967. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  16968. if test "x$ac_cv_func__strnicmp" = xyes
  16969. then :
  16970. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  16971. fi
  16972. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  16973. if test "x$ac_cv_func_strncasecmp" = xyes
  16974. then :
  16975. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  16976. fi
  16977. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  16978. if test "x$ac_cv_func_vsscanf" = xyes
  16979. then :
  16980. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  16981. fi
  16982. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  16983. if test "x$ac_cv_func_vsnprintf" = xyes
  16984. then :
  16985. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  16986. fi
  16987. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  16988. if test "x$ac_cv_func_fopen64" = xyes
  16989. then :
  16990. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  16991. fi
  16992. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  16993. if test "x$ac_cv_func_fseeko" = xyes
  16994. then :
  16995. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  16996. fi
  16997. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  16998. if test "x$ac_cv_func_fseeko64" = xyes
  16999. then :
  17000. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17001. fi
  17002. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17003. if test "x$ac_cv_func_sigaction" = xyes
  17004. then :
  17005. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17006. fi
  17007. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17008. if test "x$ac_cv_func_setjmp" = xyes
  17009. then :
  17010. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17011. fi
  17012. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17013. if test "x$ac_cv_func_nanosleep" = xyes
  17014. then :
  17015. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17016. fi
  17017. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17018. if test "x$ac_cv_func_sysconf" = xyes
  17019. then :
  17020. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17021. fi
  17022. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17023. if test "x$ac_cv_func_sysctlbyname" = xyes
  17024. then :
  17025. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17026. fi
  17027. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17028. if test "x$ac_cv_func_getauxval" = xyes
  17029. then :
  17030. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17031. fi
  17032. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17033. if test "x$ac_cv_func_elf_aux_info" = xyes
  17034. then :
  17035. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17036. fi
  17037. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17038. if test "x$ac_cv_func_poll" = xyes
  17039. then :
  17040. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17041. fi
  17042. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17043. if test "x$ac_cv_func__Exit" = xyes
  17044. then :
  17045. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17046. fi
  17047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17048. printf %s "checking for pow in -lm... " >&6; }
  17049. if test ${ac_cv_lib_m_pow+y}
  17050. then :
  17051. printf %s "(cached) " >&6
  17052. else $as_nop
  17053. ac_check_lib_save_LIBS=$LIBS
  17054. LIBS="-lm $LIBS"
  17055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17056. /* end confdefs.h. */
  17057. /* Override any GCC internal prototype to avoid an error.
  17058. Use char because int might match the return type of a GCC
  17059. builtin and then its argument prototype would still apply. */
  17060. char pow ();
  17061. int
  17062. main (void)
  17063. {
  17064. return pow ();
  17065. ;
  17066. return 0;
  17067. }
  17068. _ACEOF
  17069. if ac_fn_c_try_link "$LINENO"
  17070. then :
  17071. ac_cv_lib_m_pow=yes
  17072. else $as_nop
  17073. ac_cv_lib_m_pow=no
  17074. fi
  17075. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17076. conftest$ac_exeext conftest.$ac_ext
  17077. LIBS=$ac_check_lib_save_LIBS
  17078. fi
  17079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17080. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17081. if test "x$ac_cv_lib_m_pow" = xyes
  17082. then :
  17083. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17084. fi
  17085. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17086. if test "x$ac_cv_func_acos" = xyes
  17087. then :
  17088. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17089. fi
  17090. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17091. if test "x$ac_cv_func_acosf" = xyes
  17092. then :
  17093. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17094. fi
  17095. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17096. if test "x$ac_cv_func_asin" = xyes
  17097. then :
  17098. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17099. fi
  17100. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17101. if test "x$ac_cv_func_asinf" = xyes
  17102. then :
  17103. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17104. fi
  17105. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17106. if test "x$ac_cv_func_atan" = xyes
  17107. then :
  17108. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17109. fi
  17110. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17111. if test "x$ac_cv_func_atanf" = xyes
  17112. then :
  17113. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17114. fi
  17115. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17116. if test "x$ac_cv_func_atan2" = xyes
  17117. then :
  17118. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17119. fi
  17120. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17121. if test "x$ac_cv_func_atan2f" = xyes
  17122. then :
  17123. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17124. fi
  17125. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17126. if test "x$ac_cv_func_ceil" = xyes
  17127. then :
  17128. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17129. fi
  17130. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17131. if test "x$ac_cv_func_ceilf" = xyes
  17132. then :
  17133. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17134. fi
  17135. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17136. if test "x$ac_cv_func_copysign" = xyes
  17137. then :
  17138. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17139. fi
  17140. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17141. if test "x$ac_cv_func_copysignf" = xyes
  17142. then :
  17143. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17144. fi
  17145. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17146. if test "x$ac_cv_func_cos" = xyes
  17147. then :
  17148. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17149. fi
  17150. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17151. if test "x$ac_cv_func_cosf" = xyes
  17152. then :
  17153. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17154. fi
  17155. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17156. if test "x$ac_cv_func_exp" = xyes
  17157. then :
  17158. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17159. fi
  17160. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17161. if test "x$ac_cv_func_expf" = xyes
  17162. then :
  17163. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17164. fi
  17165. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17166. if test "x$ac_cv_func_fabs" = xyes
  17167. then :
  17168. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17169. fi
  17170. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17171. if test "x$ac_cv_func_fabsf" = xyes
  17172. then :
  17173. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17174. fi
  17175. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17176. if test "x$ac_cv_func_floor" = xyes
  17177. then :
  17178. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17179. fi
  17180. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17181. if test "x$ac_cv_func_floorf" = xyes
  17182. then :
  17183. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17184. fi
  17185. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17186. if test "x$ac_cv_func_trunc" = xyes
  17187. then :
  17188. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17189. fi
  17190. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17191. if test "x$ac_cv_func_truncf" = xyes
  17192. then :
  17193. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17194. fi
  17195. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17196. if test "x$ac_cv_func_fmod" = xyes
  17197. then :
  17198. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17199. fi
  17200. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17201. if test "x$ac_cv_func_fmodf" = xyes
  17202. then :
  17203. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17204. fi
  17205. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17206. if test "x$ac_cv_func_log" = xyes
  17207. then :
  17208. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17209. fi
  17210. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17211. if test "x$ac_cv_func_logf" = xyes
  17212. then :
  17213. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17214. fi
  17215. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17216. if test "x$ac_cv_func_log10" = xyes
  17217. then :
  17218. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17219. fi
  17220. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17221. if test "x$ac_cv_func_log10f" = xyes
  17222. then :
  17223. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17224. fi
  17225. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17226. if test "x$ac_cv_func_lround" = xyes
  17227. then :
  17228. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17229. fi
  17230. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17231. if test "x$ac_cv_func_lroundf" = xyes
  17232. then :
  17233. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17234. fi
  17235. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17236. if test "x$ac_cv_func_pow" = xyes
  17237. then :
  17238. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17239. fi
  17240. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17241. if test "x$ac_cv_func_powf" = xyes
  17242. then :
  17243. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17244. fi
  17245. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17246. if test "x$ac_cv_func_round" = xyes
  17247. then :
  17248. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17249. fi
  17250. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17251. if test "x$ac_cv_func_roundf" = xyes
  17252. then :
  17253. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17254. fi
  17255. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17256. if test "x$ac_cv_func_scalbn" = xyes
  17257. then :
  17258. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17259. fi
  17260. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17261. if test "x$ac_cv_func_scalbnf" = xyes
  17262. then :
  17263. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17264. fi
  17265. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17266. if test "x$ac_cv_func_sin" = xyes
  17267. then :
  17268. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17269. fi
  17270. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17271. if test "x$ac_cv_func_sinf" = xyes
  17272. then :
  17273. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17274. fi
  17275. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17276. if test "x$ac_cv_func_sqrt" = xyes
  17277. then :
  17278. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17279. fi
  17280. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17281. if test "x$ac_cv_func_sqrtf" = xyes
  17282. then :
  17283. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17284. fi
  17285. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17286. if test "x$ac_cv_func_tan" = xyes
  17287. then :
  17288. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17289. fi
  17290. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17291. if test "x$ac_cv_func_tanf" = xyes
  17292. then :
  17293. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17294. fi
  17295. if test x$enable_system_iconv = xyes; then
  17296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17297. printf %s "checking for iconv_open in -liconv... " >&6; }
  17298. if test ${ac_cv_lib_iconv_iconv_open+y}
  17299. then :
  17300. printf %s "(cached) " >&6
  17301. else $as_nop
  17302. ac_check_lib_save_LIBS=$LIBS
  17303. LIBS="-liconv $LIBS"
  17304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17305. /* end confdefs.h. */
  17306. /* Override any GCC internal prototype to avoid an error.
  17307. Use char because int might match the return type of a GCC
  17308. builtin and then its argument prototype would still apply. */
  17309. char iconv_open ();
  17310. int
  17311. main (void)
  17312. {
  17313. return iconv_open ();
  17314. ;
  17315. return 0;
  17316. }
  17317. _ACEOF
  17318. if ac_fn_c_try_link "$LINENO"
  17319. then :
  17320. ac_cv_lib_iconv_iconv_open=yes
  17321. else $as_nop
  17322. ac_cv_lib_iconv_iconv_open=no
  17323. fi
  17324. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17325. conftest$ac_exeext conftest.$ac_ext
  17326. LIBS=$ac_check_lib_save_LIBS
  17327. fi
  17328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17329. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17330. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17331. then :
  17332. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17333. fi
  17334. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17335. if test "x$ac_cv_func_iconv" = xyes
  17336. then :
  17337. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17338. fi
  17339. fi
  17340. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17341. "
  17342. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17343. then :
  17344. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17345. fi
  17346. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17347. if test "x$ac_cv_header_libunwind_h" = xyes
  17348. then :
  17349. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17350. fi
  17351. fi
  17352. # Check whether --enable-gcc-atomics was given.
  17353. if test ${enable_gcc_atomics+y}
  17354. then :
  17355. enableval=$enable_gcc_atomics;
  17356. else $as_nop
  17357. enable_gcc_atomics=yes
  17358. fi
  17359. if test x$enable_gcc_atomics = xyes; then
  17360. have_gcc_atomics=no
  17361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17362. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17364. /* end confdefs.h. */
  17365. int
  17366. main (void)
  17367. {
  17368. int a;
  17369. void *x, *y, *z;
  17370. __sync_lock_test_and_set(&a, 4);
  17371. __sync_lock_test_and_set(&x, y);
  17372. __sync_fetch_and_add(&a, 1);
  17373. __sync_bool_compare_and_swap(&a, 5, 10);
  17374. __sync_bool_compare_and_swap(&x, y, z);
  17375. ;
  17376. return 0;
  17377. }
  17378. _ACEOF
  17379. if ac_fn_c_try_link "$LINENO"
  17380. then :
  17381. have_gcc_atomics=yes
  17382. fi
  17383. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17384. conftest$ac_exeext conftest.$ac_ext
  17385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17386. printf "%s\n" "$have_gcc_atomics" >&6; }
  17387. if test x$have_gcc_atomics = xyes; then
  17388. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17389. else
  17390. # See if we have the minimum operation needed for GCC atomics
  17391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17392. /* end confdefs.h. */
  17393. int
  17394. main (void)
  17395. {
  17396. int a;
  17397. __sync_lock_test_and_set(&a, 1);
  17398. __sync_lock_release(&a);
  17399. ;
  17400. return 0;
  17401. }
  17402. _ACEOF
  17403. if ac_fn_c_try_link "$LINENO"
  17404. then :
  17405. have_gcc_sync_lock_test_and_set=yes
  17406. fi
  17407. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17408. conftest$ac_exeext conftest.$ac_ext
  17409. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17410. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17411. fi
  17412. fi
  17413. fi
  17414. # Standard C sources
  17415. SOURCES="$SOURCES $srcdir/src/*.c"
  17416. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17417. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17418. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17419. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17420. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17421. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17422. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17423. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17424. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17425. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17426. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17427. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17428. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17429. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17430. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17431. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17432. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17433. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17434. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17435. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17436. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17437. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17438. case "$host" in
  17439. *-*-emscripten*)
  17440. default_atomic=no
  17441. ;;
  17442. *)
  17443. default_atomic=yes
  17444. ;;
  17445. esac
  17446. # Check whether --enable-atomic was given.
  17447. if test ${enable_atomic+y}
  17448. then :
  17449. enableval=$enable_atomic;
  17450. else $as_nop
  17451. enable_atomic=$default_atomic
  17452. fi
  17453. if test x$enable_atomic != xyes; then
  17454. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17455. else
  17456. SUMMARY_modules="${SUMMARY_modules} atomic"
  17457. fi
  17458. # Check whether --enable-audio was given.
  17459. if test ${enable_audio+y}
  17460. then :
  17461. enableval=$enable_audio;
  17462. else $as_nop
  17463. enable_audio=yes
  17464. fi
  17465. if test x$enable_audio != xyes; then
  17466. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17467. else
  17468. SUMMARY_modules="${SUMMARY_modules} audio"
  17469. fi
  17470. # Check whether --enable-video was given.
  17471. if test ${enable_video+y}
  17472. then :
  17473. enableval=$enable_video;
  17474. else $as_nop
  17475. enable_video=yes
  17476. fi
  17477. if test x$enable_video != xyes; then
  17478. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17479. else
  17480. SUMMARY_modules="${SUMMARY_modules} video"
  17481. fi
  17482. # Check whether --enable-render was given.
  17483. if test ${enable_render+y}
  17484. then :
  17485. enableval=$enable_render;
  17486. else $as_nop
  17487. enable_render=yes
  17488. fi
  17489. if test x$enable_render != xyes; then
  17490. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17491. else
  17492. SUMMARY_modules="${SUMMARY_modules} render"
  17493. fi
  17494. # Check whether --enable-events was given.
  17495. if test ${enable_events+y}
  17496. then :
  17497. enableval=$enable_events;
  17498. else $as_nop
  17499. enable_events=yes
  17500. fi
  17501. if test x$enable_events != xyes; then
  17502. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17503. else
  17504. SUMMARY_modules="${SUMMARY_modules} events"
  17505. fi
  17506. # Check whether --enable-joystick was given.
  17507. if test ${enable_joystick+y}
  17508. then :
  17509. enableval=$enable_joystick;
  17510. else $as_nop
  17511. enable_joystick=yes
  17512. fi
  17513. if test x$enable_joystick != xyes; then
  17514. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17515. else
  17516. SUMMARY_modules="${SUMMARY_modules} joystick"
  17517. fi
  17518. # Check whether --enable-haptic was given.
  17519. if test ${enable_haptic+y}
  17520. then :
  17521. enableval=$enable_haptic;
  17522. else $as_nop
  17523. enable_haptic=yes
  17524. fi
  17525. if test x$enable_haptic != xyes; then
  17526. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17527. else
  17528. SUMMARY_modules="${SUMMARY_modules} haptic"
  17529. fi
  17530. # Check whether --enable-hidapi was given.
  17531. if test ${enable_hidapi+y}
  17532. then :
  17533. enableval=$enable_hidapi;
  17534. else $as_nop
  17535. enable_hidapi=yes
  17536. fi
  17537. if test x$enable_hidapi != xyes; then
  17538. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17539. else
  17540. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17541. fi
  17542. # Check whether --enable-sensor was given.
  17543. if test ${enable_sensor+y}
  17544. then :
  17545. enableval=$enable_sensor;
  17546. else $as_nop
  17547. enable_sensor=yes
  17548. fi
  17549. if test x$enable_sensor != xyes; then
  17550. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17551. else
  17552. SUMMARY_modules="${SUMMARY_modules} sensor"
  17553. fi
  17554. # Check whether --enable-power was given.
  17555. if test ${enable_power+y}
  17556. then :
  17557. enableval=$enable_power;
  17558. else $as_nop
  17559. enable_power=yes
  17560. fi
  17561. if test x$enable_power != xyes; then
  17562. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17563. else
  17564. SUMMARY_modules="${SUMMARY_modules} power"
  17565. fi
  17566. # Check whether --enable-filesystem was given.
  17567. if test ${enable_filesystem+y}
  17568. then :
  17569. enableval=$enable_filesystem;
  17570. else $as_nop
  17571. enable_filesystem=yes
  17572. fi
  17573. if test x$enable_filesystem != xyes; then
  17574. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17575. else
  17576. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17577. fi
  17578. # Many subsystems depend on threads, so leave them enabled by default
  17579. #AC_ARG_ENABLE(threads,
  17580. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17581. # , enable_threads=yes)
  17582. enable_threads=yes
  17583. if test x$enable_threads != xyes; then
  17584. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17585. else
  17586. SUMMARY_modules="${SUMMARY_modules} threads"
  17587. fi
  17588. # Check whether --enable-timers was given.
  17589. if test ${enable_timers+y}
  17590. then :
  17591. enableval=$enable_timers;
  17592. else $as_nop
  17593. enable_timers=yes
  17594. fi
  17595. if test x$enable_timers != xyes; then
  17596. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17597. else
  17598. SUMMARY_modules="${SUMMARY_modules} timers"
  17599. fi
  17600. # Check whether --enable-file was given.
  17601. if test ${enable_file+y}
  17602. then :
  17603. enableval=$enable_file;
  17604. else $as_nop
  17605. enable_file=yes
  17606. fi
  17607. if test x$enable_file != xyes; then
  17608. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17609. else
  17610. SUMMARY_modules="${SUMMARY_modules} file"
  17611. fi
  17612. # Check whether --enable-misc was given.
  17613. if test ${enable_misc+y}
  17614. then :
  17615. enableval=$enable_misc;
  17616. else $as_nop
  17617. enable_misc=yes
  17618. fi
  17619. if test x$enable_misc != xyes; then
  17620. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17621. else
  17622. SUMMARY_modules="${SUMMARY_modules} misc"
  17623. fi
  17624. # Check whether --enable-locale was given.
  17625. if test ${enable_locale+y}
  17626. then :
  17627. enableval=$enable_locale;
  17628. else $as_nop
  17629. enable_locale=yes
  17630. fi
  17631. if test x$enable_locale != xyes; then
  17632. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17633. else
  17634. SUMMARY_modules="${SUMMARY_modules} locale"
  17635. fi
  17636. # Check whether --enable-loadso was given.
  17637. if test ${enable_loadso+y}
  17638. then :
  17639. enableval=$enable_loadso;
  17640. else $as_nop
  17641. enable_loadso=yes
  17642. fi
  17643. if test x$enable_loadso != xyes; then
  17644. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17645. else
  17646. SUMMARY_modules="${SUMMARY_modules} loadso"
  17647. fi
  17648. # Check whether --enable-cpuinfo was given.
  17649. if test ${enable_cpuinfo+y}
  17650. then :
  17651. enableval=$enable_cpuinfo;
  17652. else $as_nop
  17653. enable_cpuinfo=yes
  17654. fi
  17655. if test x$enable_cpuinfo != xyes; then
  17656. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17657. else
  17658. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17659. fi
  17660. # Check whether --enable-assembly was given.
  17661. if test ${enable_assembly+y}
  17662. then :
  17663. enableval=$enable_assembly;
  17664. else $as_nop
  17665. enable_assembly=yes
  17666. fi
  17667. if test x$enable_assembly = xyes; then
  17668. SUMMARY_modules="${SUMMARY_modules} assembly"
  17669. # Make sure that we don't generate floating point code that would
  17670. # cause illegal instruction exceptions on older processors
  17671. case "$host" in
  17672. *-*-darwin*)
  17673. # Don't need to worry about Apple hardware, it's all SSE capable
  17674. default_ssemath=yes
  17675. ;;
  17676. *64-*-*)
  17677. # x86 64-bit architectures all have SSE instructions
  17678. default_ssemath=yes
  17679. ;;
  17680. *)
  17681. default_ssemath=no
  17682. ;;
  17683. esac
  17684. # Check whether --enable-ssemath was given.
  17685. if test ${enable_ssemath+y}
  17686. then :
  17687. enableval=$enable_ssemath;
  17688. else $as_nop
  17689. enable_ssemath=$default_ssemath
  17690. fi
  17691. if test x$enable_ssemath = xno; then
  17692. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17693. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17694. fi
  17695. fi
  17696. # Check whether --enable-mmx was given.
  17697. if test ${enable_mmx+y}
  17698. then :
  17699. enableval=$enable_mmx;
  17700. else $as_nop
  17701. enable_mmx=yes
  17702. fi
  17703. if test x$enable_mmx = xyes; then
  17704. save_CFLAGS="$CFLAGS"
  17705. have_gcc_mmx=no
  17706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17707. printf %s "checking for GCC -mmmx option... " >&6; }
  17708. mmx_CFLAGS="-mmmx"
  17709. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17711. /* end confdefs.h. */
  17712. #ifdef __MINGW32__
  17713. #include <_mingw.h>
  17714. #ifdef __MINGW64_VERSION_MAJOR
  17715. #include <intrin.h>
  17716. #else
  17717. #include <mmintrin.h>
  17718. #endif
  17719. #else
  17720. #include <mmintrin.h>
  17721. #endif
  17722. #ifndef __MMX__
  17723. #error Assembler CPP flag not enabled
  17724. #endif
  17725. int
  17726. main (void)
  17727. {
  17728. ;
  17729. return 0;
  17730. }
  17731. _ACEOF
  17732. if ac_fn_c_try_compile "$LINENO"
  17733. then :
  17734. have_gcc_mmx=yes
  17735. fi
  17736. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17738. printf "%s\n" "$have_gcc_mmx" >&6; }
  17739. CFLAGS="$save_CFLAGS"
  17740. if test x$have_gcc_mmx = xyes; then
  17741. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17742. SUMMARY_math="${SUMMARY_math} mmx"
  17743. fi
  17744. fi
  17745. # Check whether --enable-3dnow was given.
  17746. if test ${enable_3dnow+y}
  17747. then :
  17748. enableval=$enable_3dnow;
  17749. else $as_nop
  17750. enable_3dnow=yes
  17751. fi
  17752. if test x$enable_3dnow = xyes; then
  17753. save_CFLAGS="$CFLAGS"
  17754. have_gcc_3dnow=no
  17755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17756. printf %s "checking for GCC -m3dnow option... " >&6; }
  17757. amd3dnow_CFLAGS="-m3dnow"
  17758. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17760. /* end confdefs.h. */
  17761. #include <mm3dnow.h>
  17762. #ifndef __3dNOW__
  17763. #error Assembler CPP flag not enabled
  17764. #endif
  17765. int
  17766. main (void)
  17767. {
  17768. void *p = 0;
  17769. _m_prefetch(p);
  17770. ;
  17771. return 0;
  17772. }
  17773. _ACEOF
  17774. if ac_fn_c_try_link "$LINENO"
  17775. then :
  17776. have_gcc_3dnow=yes
  17777. fi
  17778. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17779. conftest$ac_exeext conftest.$ac_ext
  17780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17781. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17782. CFLAGS="$save_CFLAGS"
  17783. if test x$have_gcc_3dnow = xyes; then
  17784. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17785. SUMMARY_math="${SUMMARY_math} 3dnow"
  17786. fi
  17787. fi
  17788. # Check whether --enable-sse was given.
  17789. if test ${enable_sse+y}
  17790. then :
  17791. enableval=$enable_sse;
  17792. else $as_nop
  17793. enable_sse=yes
  17794. fi
  17795. if test x$enable_sse = xyes; then
  17796. save_CFLAGS="$CFLAGS"
  17797. have_gcc_sse=no
  17798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17799. printf %s "checking for GCC -msse option... " >&6; }
  17800. sse_CFLAGS="-msse"
  17801. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17803. /* end confdefs.h. */
  17804. #ifdef __MINGW32__
  17805. #include <_mingw.h>
  17806. #ifdef __MINGW64_VERSION_MAJOR
  17807. #include <intrin.h>
  17808. #else
  17809. #include <xmmintrin.h>
  17810. #endif
  17811. #else
  17812. #include <xmmintrin.h>
  17813. #endif
  17814. #ifndef __SSE__
  17815. #error Assembler CPP flag not enabled
  17816. #endif
  17817. int
  17818. main (void)
  17819. {
  17820. ;
  17821. return 0;
  17822. }
  17823. _ACEOF
  17824. if ac_fn_c_try_compile "$LINENO"
  17825. then :
  17826. have_gcc_sse=yes
  17827. fi
  17828. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17830. printf "%s\n" "$have_gcc_sse" >&6; }
  17831. CFLAGS="$save_CFLAGS"
  17832. if test x$have_gcc_sse = xyes; then
  17833. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17834. SUMMARY_math="${SUMMARY_math} sse"
  17835. fi
  17836. fi
  17837. # Check whether --enable-sse2 was given.
  17838. if test ${enable_sse2+y}
  17839. then :
  17840. enableval=$enable_sse2;
  17841. else $as_nop
  17842. enable_sse2=$default_ssemath
  17843. fi
  17844. if test x$enable_sse2 = xyes; then
  17845. save_CFLAGS="$CFLAGS"
  17846. have_gcc_sse2=no
  17847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17848. printf %s "checking for GCC -msse2 option... " >&6; }
  17849. sse2_CFLAGS="-msse2"
  17850. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17852. /* end confdefs.h. */
  17853. #ifdef __MINGW32__
  17854. #include <_mingw.h>
  17855. #ifdef __MINGW64_VERSION_MAJOR
  17856. #include <intrin.h>
  17857. #else
  17858. #include <emmintrin.h>
  17859. #endif
  17860. #else
  17861. #include <emmintrin.h>
  17862. #endif
  17863. #ifndef __SSE2__
  17864. #error Assembler CPP flag not enabled
  17865. #endif
  17866. int
  17867. main (void)
  17868. {
  17869. ;
  17870. return 0;
  17871. }
  17872. _ACEOF
  17873. if ac_fn_c_try_compile "$LINENO"
  17874. then :
  17875. have_gcc_sse2=yes
  17876. fi
  17877. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17879. printf "%s\n" "$have_gcc_sse2" >&6; }
  17880. CFLAGS="$save_CFLAGS"
  17881. if test x$have_gcc_sse2 = xyes; then
  17882. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17883. SUMMARY_math="${SUMMARY_math} sse2"
  17884. fi
  17885. fi
  17886. # Check whether --enable-sse3 was given.
  17887. if test ${enable_sse3+y}
  17888. then :
  17889. enableval=$enable_sse3;
  17890. else $as_nop
  17891. enable_sse3=$default_ssemath
  17892. fi
  17893. if test x$enable_sse3 = xyes; then
  17894. save_CFLAGS="$CFLAGS"
  17895. have_gcc_sse3=no
  17896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17897. printf %s "checking for GCC -msse3 option... " >&6; }
  17898. sse3_CFLAGS="-msse3"
  17899. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17901. /* end confdefs.h. */
  17902. #ifdef __MINGW32__
  17903. #include <_mingw.h>
  17904. #ifdef __MINGW64_VERSION_MAJOR
  17905. #include <intrin.h>
  17906. #else
  17907. #include <pmmintrin.h>
  17908. #endif
  17909. #else
  17910. #include <pmmintrin.h>
  17911. #endif
  17912. #ifndef __SSE2__
  17913. #error Assembler CPP flag not enabled
  17914. #endif
  17915. int
  17916. main (void)
  17917. {
  17918. ;
  17919. return 0;
  17920. }
  17921. _ACEOF
  17922. if ac_fn_c_try_compile "$LINENO"
  17923. then :
  17924. have_gcc_sse3=yes
  17925. fi
  17926. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  17928. printf "%s\n" "$have_gcc_sse3" >&6; }
  17929. CFLAGS="$save_CFLAGS"
  17930. if test x$have_gcc_sse3 = xyes; then
  17931. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  17932. SUMMARY_math="${SUMMARY_math} sse3"
  17933. fi
  17934. fi
  17935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  17936. printf %s "checking for immintrin.h... " >&6; }
  17937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17938. /* end confdefs.h. */
  17939. #include <immintrin.h>
  17940. int
  17941. main (void)
  17942. {
  17943. ;
  17944. return 0;
  17945. }
  17946. _ACEOF
  17947. if ac_fn_c_try_compile "$LINENO"
  17948. then :
  17949. have_immintrin_h_hdr=yes
  17950. else $as_nop
  17951. have_immintrin_h_hdr=no
  17952. fi
  17953. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  17955. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  17956. if test x$have_immintrin_h_hdr = xyes; then
  17957. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  17958. fi
  17959. # Check whether --enable-altivec was given.
  17960. if test ${enable_altivec+y}
  17961. then :
  17962. enableval=$enable_altivec;
  17963. else $as_nop
  17964. enable_altivec=yes
  17965. fi
  17966. if test x$enable_altivec = xyes; then
  17967. save_CFLAGS="$CFLAGS"
  17968. have_gcc_altivec=no
  17969. have_altivec_h_hdr=no
  17970. altivec_CFLAGS="-maltivec"
  17971. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  17973. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  17974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17975. /* end confdefs.h. */
  17976. #include <altivec.h>
  17977. vector unsigned int vzero() {
  17978. return vec_splat_u32(0);
  17979. }
  17980. int
  17981. main (void)
  17982. {
  17983. ;
  17984. return 0;
  17985. }
  17986. _ACEOF
  17987. if ac_fn_c_try_compile "$LINENO"
  17988. then :
  17989. have_gcc_altivec=yes
  17990. have_altivec_h_hdr=yes
  17991. fi
  17992. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17994. printf "%s\n" "$have_gcc_altivec" >&6; }
  17995. if test x$have_gcc_altivec = xno; then
  17996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  17997. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  17998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17999. /* end confdefs.h. */
  18000. vector unsigned int vzero() {
  18001. return vec_splat_u32(0);
  18002. }
  18003. int
  18004. main (void)
  18005. {
  18006. ;
  18007. return 0;
  18008. }
  18009. _ACEOF
  18010. if ac_fn_c_try_compile "$LINENO"
  18011. then :
  18012. have_gcc_altivec=yes
  18013. fi
  18014. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18016. printf "%s\n" "$have_gcc_altivec" >&6; }
  18017. fi
  18018. if test x$have_gcc_altivec = xno; then
  18019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18020. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18021. altivec_CFLAGS="-faltivec"
  18022. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18024. /* end confdefs.h. */
  18025. #include <altivec.h>
  18026. vector unsigned int vzero() {
  18027. return vec_splat_u32(0);
  18028. }
  18029. int
  18030. main (void)
  18031. {
  18032. ;
  18033. return 0;
  18034. }
  18035. _ACEOF
  18036. if ac_fn_c_try_compile "$LINENO"
  18037. then :
  18038. have_gcc_altivec=yes
  18039. have_altivec_h_hdr=yes
  18040. fi
  18041. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18043. printf "%s\n" "$have_gcc_altivec" >&6; }
  18044. fi
  18045. if test x$have_gcc_altivec = xno; then
  18046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18047. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18049. /* end confdefs.h. */
  18050. vector unsigned int vzero() {
  18051. return vec_splat_u32(0);
  18052. }
  18053. int
  18054. main (void)
  18055. {
  18056. ;
  18057. return 0;
  18058. }
  18059. _ACEOF
  18060. if ac_fn_c_try_compile "$LINENO"
  18061. then :
  18062. have_gcc_altivec=yes
  18063. fi
  18064. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18066. printf "%s\n" "$have_gcc_altivec" >&6; }
  18067. fi
  18068. CFLAGS="$save_CFLAGS"
  18069. if test x$have_gcc_altivec = xyes; then
  18070. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18071. if test x$have_altivec_h_hdr = xyes; then
  18072. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18073. fi
  18074. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18075. SUMMARY_math="${SUMMARY_math} altivec"
  18076. fi
  18077. fi
  18078. fi
  18079. # Check whether --enable-lsx was given.
  18080. if test ${enable_lsx+y}
  18081. then :
  18082. enableval=$enable_lsx;
  18083. else $as_nop
  18084. enable_lsx=yes
  18085. fi
  18086. if test x$enable_lsx = xyes; then
  18087. save_CFLAGS="$CFLAGS"
  18088. have_gcc_lsx=no
  18089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18090. printf %s "checking for GCC -mlsx option... " >&6; }
  18091. lsx_CFLAGS="-mlsx"
  18092. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18094. /* end confdefs.h. */
  18095. #ifndef __loongarch_sx
  18096. #error Assembler CPP flag not enabled
  18097. #endif
  18098. int
  18099. main (void)
  18100. {
  18101. ;
  18102. return 0;
  18103. }
  18104. _ACEOF
  18105. if ac_fn_c_try_compile "$LINENO"
  18106. then :
  18107. have_gcc_lsx=yes
  18108. fi
  18109. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18111. printf "%s\n" "$have_gcc_lsx" >&6; }
  18112. CFLAGS="$save_CFLAGS"
  18113. if test x$have_gcc_lsx = xyes; then
  18114. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18115. SUMMARY_math="${SUMMARY_math} lsx"
  18116. fi
  18117. fi
  18118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18119. printf %s "checking for lsxintrin.h... " >&6; }
  18120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18121. /* end confdefs.h. */
  18122. #include <lsxintrin.h>
  18123. int
  18124. main (void)
  18125. {
  18126. ;
  18127. return 0;
  18128. }
  18129. _ACEOF
  18130. if ac_fn_c_try_compile "$LINENO"
  18131. then :
  18132. have_lsxintrin_h_hdr=yes
  18133. else $as_nop
  18134. have_lsxintrin_h_hdr=no
  18135. fi
  18136. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18138. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18139. if test x$have_lsxintrin_h_hdr = xyes; then
  18140. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18141. fi
  18142. # Check whether --enable-lasx was given.
  18143. if test ${enable_lasx+y}
  18144. then :
  18145. enableval=$enable_lasx;
  18146. else $as_nop
  18147. enable_LASX=yes
  18148. fi
  18149. if test x$enable_LASX = xyes; then
  18150. save_CFLAGS="$CFLAGS"
  18151. have_gcc_lasx=no
  18152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18153. printf %s "checking for GCC -mlasx option... " >&6; }
  18154. lasx_CFLAGS="-mlasx"
  18155. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18157. /* end confdefs.h. */
  18158. #ifndef __loongarch_asx
  18159. #error Assembler CPP flag not enabled
  18160. #endif
  18161. int
  18162. main (void)
  18163. {
  18164. ;
  18165. return 0;
  18166. }
  18167. _ACEOF
  18168. if ac_fn_c_try_compile "$LINENO"
  18169. then :
  18170. have_gcc_lasx=yes
  18171. fi
  18172. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18174. printf "%s\n" "$have_gcc_lasx" >&6; }
  18175. CFLAGS="$save_CFLAGS"
  18176. if test x$have_gcc_lasx = xyes; then
  18177. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18178. SUMMARY_math="${SUMMARY_math} lasx"
  18179. fi
  18180. fi
  18181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18182. printf %s "checking for lasxintrin.h... " >&6; }
  18183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18184. /* end confdefs.h. */
  18185. #include <lasxintrin.h>
  18186. int
  18187. main (void)
  18188. {
  18189. ;
  18190. return 0;
  18191. }
  18192. _ACEOF
  18193. if ac_fn_c_try_compile "$LINENO"
  18194. then :
  18195. have_lasxintrin_h_hdr=yes
  18196. else $as_nop
  18197. have_lasxintrin_h_hdr=no
  18198. fi
  18199. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18201. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18202. if test x$have_lasxintrin_h_hdr = xyes; then
  18203. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18204. fi
  18205. CheckOSS()
  18206. {
  18207. # Check whether --enable-oss was given.
  18208. if test ${enable_oss+y}
  18209. then :
  18210. enableval=$enable_oss;
  18211. else $as_nop
  18212. enable_oss=maybe
  18213. fi
  18214. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  18215. # use sndio instead. So on there, we default to disabled. You can force
  18216. # it on if you really want, though.
  18217. if test x$enable_oss = xmaybe; then
  18218. enable_oss=yes
  18219. case "$host" in
  18220. *-*-openbsd*)
  18221. enable_oss=no;;
  18222. esac
  18223. fi
  18224. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18226. printf %s "checking for OSS audio support... " >&6; }
  18227. have_oss=no
  18228. if test x$have_oss != xyes; then
  18229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18230. /* end confdefs.h. */
  18231. #include <sys/soundcard.h>
  18232. int
  18233. main (void)
  18234. {
  18235. int arg = SNDCTL_DSP_SETFRAGMENT;
  18236. ;
  18237. return 0;
  18238. }
  18239. _ACEOF
  18240. if ac_fn_c_try_compile "$LINENO"
  18241. then :
  18242. have_oss=yes
  18243. fi
  18244. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18245. fi
  18246. if test x$have_oss != xyes; then
  18247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18248. /* end confdefs.h. */
  18249. #include <soundcard.h>
  18250. int
  18251. main (void)
  18252. {
  18253. int arg = SNDCTL_DSP_SETFRAGMENT;
  18254. ;
  18255. return 0;
  18256. }
  18257. _ACEOF
  18258. if ac_fn_c_try_compile "$LINENO"
  18259. then :
  18260. have_oss=yes
  18261. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  18262. fi
  18263. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18264. fi
  18265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18266. printf "%s\n" "$have_oss" >&6; }
  18267. if test x$have_oss = xyes; then
  18268. SUMMARY_audio="${SUMMARY_audio} oss"
  18269. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18270. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18271. have_audio=yes
  18272. # We may need to link with ossaudio emulation library
  18273. case "$host" in
  18274. *-*-openbsd*|*-*-netbsd*)
  18275. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18276. esac
  18277. fi
  18278. fi
  18279. }
  18280. CheckALSA()
  18281. {
  18282. # Check whether --enable-alsa was given.
  18283. if test ${enable_alsa+y}
  18284. then :
  18285. enableval=$enable_alsa;
  18286. else $as_nop
  18287. enable_alsa=yes
  18288. fi
  18289. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18290. alsa_save_CFLAGS="$CFLAGS"
  18291. alsa_save_LDFLAGS="$LDFLAGS"
  18292. alsa_save_LIBS="$LIBS"
  18293. alsa_found=yes
  18294. # Check whether --with-alsa-prefix was given.
  18295. if test ${with_alsa_prefix+y}
  18296. then :
  18297. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18298. else $as_nop
  18299. alsa_prefix=""
  18300. fi
  18301. # Check whether --with-alsa-inc-prefix was given.
  18302. if test ${with_alsa_inc_prefix+y}
  18303. then :
  18304. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18305. else $as_nop
  18306. alsa_inc_prefix=""
  18307. fi
  18308. # Check whether --enable-alsatest was given.
  18309. if test ${enable_alsatest+y}
  18310. then :
  18311. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18312. else $as_nop
  18313. enable_alsatest=yes
  18314. fi
  18315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18316. printf %s "checking for ALSA CFLAGS... " >&6; }
  18317. if test "$alsa_inc_prefix" != "" ; then
  18318. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18319. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18320. fi
  18321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18322. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18324. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18325. if test "$alsa_prefix" != "" ; then
  18326. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18327. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18328. fi
  18329. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18330. LIBS=`echo $LIBS | sed 's/-lm//'`
  18331. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18332. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18333. LIBS=`echo $LIBS | sed 's/ //'`
  18334. LIBS="$ALSA_LIBS $LIBS"
  18335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18336. printf "%s\n" "$ALSA_LIBS" >&6; }
  18337. min_alsa_version=1.0.11
  18338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18339. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18340. no_alsa=""
  18341. alsa_min_major_version=`echo $min_alsa_version | \
  18342. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18343. alsa_min_minor_version=`echo $min_alsa_version | \
  18344. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18345. alsa_min_micro_version=`echo $min_alsa_version | \
  18346. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18347. ac_ext=c
  18348. ac_cpp='$CPP $CPPFLAGS'
  18349. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18350. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18351. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18353. /* end confdefs.h. */
  18354. #include <alsa/asoundlib.h>
  18355. int
  18356. main (void)
  18357. {
  18358. /* ensure backward compatibility */
  18359. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18360. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18361. #endif
  18362. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18363. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18364. #endif
  18365. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18366. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18367. #endif
  18368. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18369. exit(0);
  18370. # else
  18371. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18372. # error not present
  18373. # endif
  18374. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18375. exit(0);
  18376. # else
  18377. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18378. # error not present
  18379. # endif
  18380. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18381. # error not present
  18382. # endif
  18383. # endif
  18384. # endif
  18385. exit(0);
  18386. ;
  18387. return 0;
  18388. }
  18389. _ACEOF
  18390. if ac_fn_c_try_compile "$LINENO"
  18391. then :
  18392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18393. printf "%s\n" "found." >&6; }
  18394. else $as_nop
  18395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18396. printf "%s\n" "not present." >&6; }
  18397. alsa_found=no
  18398. fi
  18399. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18400. ac_ext=c
  18401. ac_cpp='$CPP $CPPFLAGS'
  18402. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18403. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18404. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18405. if test "x$enable_alsatest" = "xyes"; then
  18406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18407. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18408. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18409. then :
  18410. printf %s "(cached) " >&6
  18411. else $as_nop
  18412. ac_check_lib_save_LIBS=$LIBS
  18413. LIBS="-lasound $LIBS"
  18414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18415. /* end confdefs.h. */
  18416. /* Override any GCC internal prototype to avoid an error.
  18417. Use char because int might match the return type of a GCC
  18418. builtin and then its argument prototype would still apply. */
  18419. char snd_ctl_open ();
  18420. int
  18421. main (void)
  18422. {
  18423. return snd_ctl_open ();
  18424. ;
  18425. return 0;
  18426. }
  18427. _ACEOF
  18428. if ac_fn_c_try_link "$LINENO"
  18429. then :
  18430. ac_cv_lib_asound_snd_ctl_open=yes
  18431. else $as_nop
  18432. ac_cv_lib_asound_snd_ctl_open=no
  18433. fi
  18434. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18435. conftest$ac_exeext conftest.$ac_ext
  18436. LIBS=$ac_check_lib_save_LIBS
  18437. fi
  18438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18439. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18440. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18441. then :
  18442. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18443. LIBS="-lasound $LIBS"
  18444. else $as_nop
  18445. alsa_found=no
  18446. fi
  18447. fi
  18448. if test "x$alsa_found" = "xyes" ; then
  18449. have_alsa=yes
  18450. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18451. LIBS=`echo $LIBS | sed 's/ //'`
  18452. LIBS="-lasound $LIBS"
  18453. fi
  18454. if test "x$alsa_found" = "xno" ; then
  18455. have_alsa=no
  18456. CFLAGS="$alsa_save_CFLAGS"
  18457. LDFLAGS="$alsa_save_LDFLAGS"
  18458. LIBS="$alsa_save_LIBS"
  18459. ALSA_CFLAGS=""
  18460. ALSA_LIBS=""
  18461. fi
  18462. # Restore all flags from before the ALSA detection runs
  18463. CFLAGS="$alsa_save_CFLAGS"
  18464. LDFLAGS="$alsa_save_LDFLAGS"
  18465. LIBS="$alsa_save_LIBS"
  18466. if test x$have_alsa = xyes; then
  18467. # Check whether --enable-alsa-shared was given.
  18468. if test ${enable_alsa_shared+y}
  18469. then :
  18470. enableval=$enable_alsa_shared;
  18471. else $as_nop
  18472. enable_alsa_shared=yes
  18473. fi
  18474. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18475. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18476. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18477. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18478. if test x$have_loadso != xyes && \
  18479. test x$enable_alsa_shared = xyes; then
  18480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18481. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18482. fi
  18483. if test x$have_loadso = xyes && \
  18484. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18485. echo "-- dynamic libasound -> $alsa_lib"
  18486. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18487. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18488. else
  18489. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18490. SUMMARY_audio="${SUMMARY_audio} alsa"
  18491. fi
  18492. have_audio=yes
  18493. fi
  18494. fi
  18495. }
  18496. CheckJACK()
  18497. {
  18498. # Check whether --enable-jack was given.
  18499. if test ${enable_jack+y}
  18500. then :
  18501. enableval=$enable_jack;
  18502. else $as_nop
  18503. enable_jack=yes
  18504. fi
  18505. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18506. pkg_failed=no
  18507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18508. printf %s "checking for jack >= 0.125... " >&6; }
  18509. if test -n "$JACK_CFLAGS"; then
  18510. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  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_CFLAGS=`$PKG_CONFIG --cflags "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 -n "$JACK_LIBS"; then
  18527. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18528. elif test -n "$PKG_CONFIG"; then
  18529. if test -n "$PKG_CONFIG" && \
  18530. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18531. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18532. ac_status=$?
  18533. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18534. test $ac_status = 0; }; then
  18535. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18536. test "x$?" != "x0" && pkg_failed=yes
  18537. else
  18538. pkg_failed=yes
  18539. fi
  18540. else
  18541. pkg_failed=untried
  18542. fi
  18543. if test $pkg_failed = yes; then
  18544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18545. printf "%s\n" "no" >&6; }
  18546. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18547. _pkg_short_errors_supported=yes
  18548. else
  18549. _pkg_short_errors_supported=no
  18550. fi
  18551. if test $_pkg_short_errors_supported = yes; then
  18552. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18553. else
  18554. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18555. fi
  18556. # Put the nasty error message in config.log where it belongs
  18557. echo "$JACK_PKG_ERRORS" >&5
  18558. audio_jack=no
  18559. elif test $pkg_failed = untried; then
  18560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18561. printf "%s\n" "no" >&6; }
  18562. audio_jack=no
  18563. else
  18564. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18565. JACK_LIBS=$pkg_cv_JACK_LIBS
  18566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18567. printf "%s\n" "yes" >&6; }
  18568. audio_jack=yes
  18569. fi
  18570. if test x$audio_jack = xyes; then
  18571. # Check whether --enable-jack-shared was given.
  18572. if test ${enable_jack_shared+y}
  18573. then :
  18574. enableval=$enable_jack_shared;
  18575. else $as_nop
  18576. enable_jack_shared=yes
  18577. fi
  18578. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18579. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18580. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18581. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18582. if test x$have_loadso != xyes && \
  18583. test x$enable_jack_shared = xyes; then
  18584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18585. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18586. fi
  18587. if test x$have_loadso = xyes && \
  18588. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18589. echo "-- dynamic libjack -> $jack_lib"
  18590. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18591. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18592. case "$host" in
  18593. # On Solaris, jack must be linked deferred explicitly
  18594. # to prevent undefined symbol failures.
  18595. *-*-solaris*)
  18596. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18597. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18598. esac
  18599. else
  18600. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18601. SUMMARY_audio="${SUMMARY_audio} jack"
  18602. fi
  18603. have_audio=yes
  18604. fi
  18605. fi
  18606. }
  18607. CheckESD()
  18608. {
  18609. # Check whether --enable-esd was given.
  18610. if test ${enable_esd+y}
  18611. then :
  18612. enableval=$enable_esd;
  18613. else $as_nop
  18614. enable_esd=yes
  18615. fi
  18616. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18617. pkg_failed=no
  18618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18619. printf %s "checking for esound >= 0.2.8... " >&6; }
  18620. if test -n "$ESD_CFLAGS"; then
  18621. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  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_CFLAGS=`$PKG_CONFIG --cflags "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 -n "$ESD_LIBS"; then
  18638. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18639. elif test -n "$PKG_CONFIG"; then
  18640. if test -n "$PKG_CONFIG" && \
  18641. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18642. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18643. ac_status=$?
  18644. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18645. test $ac_status = 0; }; then
  18646. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18647. test "x$?" != "x0" && pkg_failed=yes
  18648. else
  18649. pkg_failed=yes
  18650. fi
  18651. else
  18652. pkg_failed=untried
  18653. fi
  18654. if test $pkg_failed = yes; then
  18655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18656. printf "%s\n" "no" >&6; }
  18657. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18658. _pkg_short_errors_supported=yes
  18659. else
  18660. _pkg_short_errors_supported=no
  18661. fi
  18662. if test $_pkg_short_errors_supported = yes; then
  18663. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18664. else
  18665. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18666. fi
  18667. # Put the nasty error message in config.log where it belongs
  18668. echo "$ESD_PKG_ERRORS" >&5
  18669. have_esd=no
  18670. elif test $pkg_failed = untried; then
  18671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18672. printf "%s\n" "no" >&6; }
  18673. have_esd=no
  18674. else
  18675. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18676. ESD_LIBS=$pkg_cv_ESD_LIBS
  18677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18678. printf "%s\n" "yes" >&6; }
  18679. have_esd=yes
  18680. fi
  18681. if test x$have_esd = xno; then
  18682. # Check whether --with-esd-prefix was given.
  18683. if test ${with_esd_prefix+y}
  18684. then :
  18685. withval=$with_esd_prefix; esd_prefix="$withval"
  18686. else $as_nop
  18687. esd_prefix=""
  18688. fi
  18689. # Check whether --with-esd-exec-prefix was given.
  18690. if test ${with_esd_exec_prefix+y}
  18691. then :
  18692. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18693. else $as_nop
  18694. esd_exec_prefix=""
  18695. fi
  18696. # Check whether --enable-esdtest was given.
  18697. if test ${enable_esdtest+y}
  18698. then :
  18699. enableval=$enable_esdtest;
  18700. else $as_nop
  18701. enable_esdtest=yes
  18702. fi
  18703. if test x$esd_exec_prefix != x ; then
  18704. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18705. if test x${ESD_CONFIG+set} != xset ; then
  18706. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18707. fi
  18708. fi
  18709. if test x$esd_prefix != x ; then
  18710. esd_args="$esd_args --prefix=$esd_prefix"
  18711. if test x${ESD_CONFIG+set} != xset ; then
  18712. ESD_CONFIG=$esd_prefix/bin/esd-config
  18713. fi
  18714. fi
  18715. # Extract the first word of "esd-config", so it can be a program name with args.
  18716. set dummy esd-config; ac_word=$2
  18717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18718. printf %s "checking for $ac_word... " >&6; }
  18719. if test ${ac_cv_path_ESD_CONFIG+y}
  18720. then :
  18721. printf %s "(cached) " >&6
  18722. else $as_nop
  18723. case $ESD_CONFIG in
  18724. [\\/]* | ?:[\\/]*)
  18725. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18726. ;;
  18727. *)
  18728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18729. for as_dir in $PATH
  18730. do
  18731. IFS=$as_save_IFS
  18732. case $as_dir in #(((
  18733. '') as_dir=./ ;;
  18734. */) ;;
  18735. *) as_dir=$as_dir/ ;;
  18736. esac
  18737. for ac_exec_ext in '' $ac_executable_extensions; do
  18738. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18739. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18740. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18741. break 2
  18742. fi
  18743. done
  18744. done
  18745. IFS=$as_save_IFS
  18746. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18747. ;;
  18748. esac
  18749. fi
  18750. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18751. if test -n "$ESD_CONFIG"; then
  18752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18753. printf "%s\n" "$ESD_CONFIG" >&6; }
  18754. else
  18755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18756. printf "%s\n" "no" >&6; }
  18757. fi
  18758. min_esd_version=0.2.8
  18759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18760. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18761. no_esd=""
  18762. if test "$ESD_CONFIG" = "no" ; then
  18763. no_esd=yes
  18764. else
  18765. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18766. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18767. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18768. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18769. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18770. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18771. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18772. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18773. if test "x$enable_esdtest" = "xyes" ; then
  18774. ac_ext=c
  18775. ac_cpp='$CPP $CPPFLAGS'
  18776. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18777. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18778. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18779. ac_save_CFLAGS="$CFLAGS"
  18780. ac_save_LIBS="$LIBS"
  18781. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18782. LIBS="$LIBS $ESD_LIBS"
  18783. rm -f conf.esdtest
  18784. if test "$cross_compiling" = yes
  18785. then :
  18786. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18787. else $as_nop
  18788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18789. /* end confdefs.h. */
  18790. #include <stdio.h>
  18791. #include <stdlib.h>
  18792. #include <esd.h>
  18793. int main (void)
  18794. {
  18795. int major, minor, micro;
  18796. FILE *fp = fopen("conf.esdtest", "w");
  18797. if (fp) fclose(fp);
  18798. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18799. printf("%s, bad version string\n", "$min_esd_version");
  18800. exit(1);
  18801. }
  18802. if (($esd_major_version > major) ||
  18803. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18804. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18805. {
  18806. return 0;
  18807. }
  18808. else
  18809. {
  18810. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18811. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18812. printf("*** best to upgrade to the required version.\n");
  18813. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18814. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18815. printf("*** config.cache before re-running configure\n");
  18816. return 1;
  18817. }
  18818. }
  18819. _ACEOF
  18820. if ac_fn_c_try_run "$LINENO"
  18821. then :
  18822. else $as_nop
  18823. no_esd=yes
  18824. fi
  18825. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18826. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18827. fi
  18828. CFLAGS="$ac_save_CFLAGS"
  18829. LIBS="$ac_save_LIBS"
  18830. ac_ext=c
  18831. ac_cpp='$CPP $CPPFLAGS'
  18832. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18833. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18834. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18835. fi
  18836. fi
  18837. if test "x$no_esd" = x ; then
  18838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18839. printf "%s\n" "yes" >&6; }
  18840. have_esd=yes
  18841. else
  18842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18843. printf "%s\n" "no" >&6; }
  18844. if test "$ESD_CONFIG" = "no" ; then
  18845. :
  18846. else
  18847. if test -f conf.esdtest ; then
  18848. :
  18849. else
  18850. echo "*** Could not run ESD test program, checking why..."
  18851. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18852. LIBS="$LIBS $ESD_LIBS"
  18853. ac_ext=c
  18854. ac_cpp='$CPP $CPPFLAGS'
  18855. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18856. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18857. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18859. /* end confdefs.h. */
  18860. #include <stdio.h>
  18861. #include <esd.h>
  18862. int
  18863. main (void)
  18864. {
  18865. return 0;
  18866. ;
  18867. return 0;
  18868. }
  18869. _ACEOF
  18870. if ac_fn_c_try_link "$LINENO"
  18871. then :
  18872. echo "*** The test program compiled, but did not run. This usually means"
  18873. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18874. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18875. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18876. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18877. echo "*** is required on your system"
  18878. echo "***"
  18879. echo "*** If you have an old version installed, it is best to remove it, although"
  18880. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18881. else $as_nop
  18882. echo "*** The test program failed to compile or link. See the file config.log for the"
  18883. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18884. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18885. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18886. fi
  18887. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18888. conftest$ac_exeext conftest.$ac_ext
  18889. CFLAGS="$ac_save_CFLAGS"
  18890. LIBS="$ac_save_LIBS"
  18891. ac_ext=c
  18892. ac_cpp='$CPP $CPPFLAGS'
  18893. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18894. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18895. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18896. fi
  18897. fi
  18898. ESD_CFLAGS=""
  18899. ESD_LIBS=""
  18900. have_esd=no
  18901. fi
  18902. rm -f conf.esdtest
  18903. fi
  18904. if test x$have_esd = xyes; then
  18905. # Check whether --enable-esd-shared was given.
  18906. if test ${enable_esd_shared+y}
  18907. then :
  18908. enableval=$enable_esd_shared;
  18909. else $as_nop
  18910. enable_esd_shared=yes
  18911. fi
  18912. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18913. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  18914. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  18915. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  18916. if test x$have_loadso != xyes && \
  18917. test x$enable_esd_shared = xyes; then
  18918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  18919. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  18920. fi
  18921. if test x$have_loadso = xyes && \
  18922. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  18923. echo "-- dynamic libesd -> $esd_lib"
  18924. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  18925. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  18926. else
  18927. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  18928. SUMMARY_audio="${SUMMARY_audio} esd"
  18929. fi
  18930. have_audio=yes
  18931. fi
  18932. fi
  18933. }
  18934. CheckPipewire()
  18935. {
  18936. # Check whether --enable-pipewire was given.
  18937. if test ${enable_pipewire+y}
  18938. then :
  18939. enableval=$enable_pipewire;
  18940. else $as_nop
  18941. enable_pipewire=yes
  18942. fi
  18943. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18944. pkg_failed=no
  18945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18946. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18947. if test -n "$PIPEWIRE_CFLAGS"; then
  18948. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  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_CFLAGS=`$PKG_CONFIG --cflags "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 -n "$PIPEWIRE_LIBS"; then
  18965. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  18966. elif test -n "$PKG_CONFIG"; then
  18967. if test -n "$PKG_CONFIG" && \
  18968. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18969. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18970. ac_status=$?
  18971. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18972. test $ac_status = 0; }; then
  18973. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18974. test "x$?" != "x0" && pkg_failed=yes
  18975. else
  18976. pkg_failed=yes
  18977. fi
  18978. else
  18979. pkg_failed=untried
  18980. fi
  18981. if test $pkg_failed = yes; then
  18982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18983. printf "%s\n" "no" >&6; }
  18984. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18985. _pkg_short_errors_supported=yes
  18986. else
  18987. _pkg_short_errors_supported=no
  18988. fi
  18989. if test $_pkg_short_errors_supported = yes; then
  18990. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18991. else
  18992. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18993. fi
  18994. # Put the nasty error message in config.log where it belongs
  18995. echo "$PIPEWIRE_PKG_ERRORS" >&5
  18996. audio_pipewire=no
  18997. elif test $pkg_failed = untried; then
  18998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18999. printf "%s\n" "no" >&6; }
  19000. audio_pipewire=no
  19001. else
  19002. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19003. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19005. printf "%s\n" "yes" >&6; }
  19006. audio_pipewire=yes
  19007. fi
  19008. if test x$audio_pipewire = xyes; then
  19009. # Check whether --enable-pipewire-shared was given.
  19010. if test ${enable_pipewire_shared+y}
  19011. then :
  19012. enableval=$enable_pipewire_shared;
  19013. else $as_nop
  19014. enable_pipewire_shared=yes
  19015. fi
  19016. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19017. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19018. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19019. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19020. if test x$have_loadso != xyes && \
  19021. test x$enable_pipewire_shared = xyes; then
  19022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19023. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19024. fi
  19025. if test x$have_loadso = xyes && \
  19026. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19027. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19028. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19029. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19030. else
  19031. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19032. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19033. fi
  19034. have_audio=yes
  19035. fi
  19036. fi
  19037. }
  19038. CheckPulseAudio()
  19039. {
  19040. # Check whether --enable-pulseaudio was given.
  19041. if test ${enable_pulseaudio+y}
  19042. then :
  19043. enableval=$enable_pulseaudio;
  19044. else $as_nop
  19045. enable_pulseaudio=yes
  19046. fi
  19047. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19048. pkg_failed=no
  19049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  19050. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  19051. if test -n "$PULSEAUDIO_CFLAGS"; then
  19052. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  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_CFLAGS=`$PKG_CONFIG --cflags "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 -n "$PULSEAUDIO_LIBS"; then
  19069. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19070. elif test -n "$PKG_CONFIG"; then
  19071. if test -n "$PKG_CONFIG" && \
  19072. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19073. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19074. ac_status=$?
  19075. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19076. test $ac_status = 0; }; then
  19077. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  19078. test "x$?" != "x0" && pkg_failed=yes
  19079. else
  19080. pkg_failed=yes
  19081. fi
  19082. else
  19083. pkg_failed=untried
  19084. fi
  19085. if test $pkg_failed = yes; then
  19086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19087. printf "%s\n" "no" >&6; }
  19088. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19089. _pkg_short_errors_supported=yes
  19090. else
  19091. _pkg_short_errors_supported=no
  19092. fi
  19093. if test $_pkg_short_errors_supported = yes; then
  19094. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19095. else
  19096. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19097. fi
  19098. # Put the nasty error message in config.log where it belongs
  19099. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19100. audio_pulseaudio=no
  19101. elif test $pkg_failed = untried; then
  19102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19103. printf "%s\n" "no" >&6; }
  19104. audio_pulseaudio=no
  19105. else
  19106. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19107. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19109. printf "%s\n" "yes" >&6; }
  19110. audio_pulseaudio=yes
  19111. fi
  19112. if test x$audio_pulseaudio = xyes; then
  19113. # Check whether --enable-pulseaudio-shared was given.
  19114. if test ${enable_pulseaudio_shared+y}
  19115. then :
  19116. enableval=$enable_pulseaudio_shared;
  19117. else $as_nop
  19118. enable_pulseaudio_shared=yes
  19119. fi
  19120. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19121. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19122. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19123. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19124. if test x$have_loadso != xyes && \
  19125. test x$enable_pulseaudio_shared = xyes; then
  19126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19127. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19128. fi
  19129. if test x$have_loadso = xyes && \
  19130. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19131. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  19132. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19133. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19134. case "$host" in
  19135. # On Solaris, pulseaudio must be linked deferred explicitly
  19136. # to prevent undefined symbol failures.
  19137. *-*-solaris*)
  19138. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19139. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19140. esac
  19141. else
  19142. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19143. SUMMARY_audio="${SUMMARY_audio} pulse"
  19144. fi
  19145. have_audio=yes
  19146. fi
  19147. fi
  19148. }
  19149. CheckARTSC()
  19150. {
  19151. # Check whether --enable-arts was given.
  19152. if test ${enable_arts+y}
  19153. then :
  19154. enableval=$enable_arts;
  19155. else $as_nop
  19156. enable_arts=yes
  19157. fi
  19158. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19159. # Extract the first word of "artsc-config", so it can be a program name with args.
  19160. set dummy artsc-config; ac_word=$2
  19161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19162. printf %s "checking for $ac_word... " >&6; }
  19163. if test ${ac_cv_path_ARTSCONFIG+y}
  19164. then :
  19165. printf %s "(cached) " >&6
  19166. else $as_nop
  19167. case $ARTSCONFIG in
  19168. [\\/]* | ?:[\\/]*)
  19169. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19170. ;;
  19171. *)
  19172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19173. for as_dir in $PATH
  19174. do
  19175. IFS=$as_save_IFS
  19176. case $as_dir in #(((
  19177. '') as_dir=./ ;;
  19178. */) ;;
  19179. *) as_dir=$as_dir/ ;;
  19180. esac
  19181. for ac_exec_ext in '' $ac_executable_extensions; do
  19182. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19183. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19184. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19185. break 2
  19186. fi
  19187. done
  19188. done
  19189. IFS=$as_save_IFS
  19190. ;;
  19191. esac
  19192. fi
  19193. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19194. if test -n "$ARTSCONFIG"; then
  19195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19196. printf "%s\n" "$ARTSCONFIG" >&6; }
  19197. else
  19198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19199. printf "%s\n" "no" >&6; }
  19200. fi
  19201. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19202. : # arts isn't installed
  19203. else
  19204. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19205. ARTS_LIBS=`$ARTSCONFIG --libs`
  19206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19207. printf %s "checking for aRts development environment... " >&6; }
  19208. audio_arts=no
  19209. save_CFLAGS="$CFLAGS"
  19210. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19212. /* end confdefs.h. */
  19213. #include <artsc.h>
  19214. int
  19215. main (void)
  19216. {
  19217. arts_stream_t stream;
  19218. ;
  19219. return 0;
  19220. }
  19221. _ACEOF
  19222. if ac_fn_c_try_compile "$LINENO"
  19223. then :
  19224. audio_arts=yes
  19225. fi
  19226. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19227. CFLAGS="$save_CFLAGS"
  19228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19229. printf "%s\n" "$audio_arts" >&6; }
  19230. if test x$audio_arts = xyes; then
  19231. # Check whether --enable-arts-shared was given.
  19232. if test ${enable_arts_shared+y}
  19233. then :
  19234. enableval=$enable_arts_shared;
  19235. else $as_nop
  19236. enable_arts_shared=yes
  19237. fi
  19238. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19239. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19240. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19241. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19242. if test x$have_loadso != xyes && \
  19243. test x$enable_arts_shared = xyes; then
  19244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19245. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19246. fi
  19247. if test x$have_loadso = xyes && \
  19248. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19249. echo "-- dynamic libartsc -> $arts_lib"
  19250. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19251. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19252. else
  19253. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19254. SUMMARY_audio="${SUMMARY_audio} arts"
  19255. fi
  19256. have_audio=yes
  19257. fi
  19258. fi
  19259. fi
  19260. }
  19261. CheckNAS()
  19262. {
  19263. # Check whether --enable-nas was given.
  19264. if test ${enable_nas+y}
  19265. then :
  19266. enableval=$enable_nas;
  19267. else $as_nop
  19268. enable_nas=yes
  19269. fi
  19270. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19271. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19272. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19273. then :
  19274. have_nas_hdr=yes
  19275. fi
  19276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19277. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19278. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19279. then :
  19280. printf %s "(cached) " >&6
  19281. else $as_nop
  19282. ac_check_lib_save_LIBS=$LIBS
  19283. LIBS="-laudio $LIBS"
  19284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19285. /* end confdefs.h. */
  19286. /* Override any GCC internal prototype to avoid an error.
  19287. Use char because int might match the return type of a GCC
  19288. builtin and then its argument prototype would still apply. */
  19289. char AuOpenServer ();
  19290. int
  19291. main (void)
  19292. {
  19293. return AuOpenServer ();
  19294. ;
  19295. return 0;
  19296. }
  19297. _ACEOF
  19298. if ac_fn_c_try_link "$LINENO"
  19299. then :
  19300. ac_cv_lib_audio_AuOpenServer=yes
  19301. else $as_nop
  19302. ac_cv_lib_audio_AuOpenServer=no
  19303. fi
  19304. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19305. conftest$ac_exeext conftest.$ac_ext
  19306. LIBS=$ac_check_lib_save_LIBS
  19307. fi
  19308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19309. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19310. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19311. then :
  19312. have_nas_lib=yes
  19313. fi
  19314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19315. printf %s "checking for NAS audio support... " >&6; }
  19316. have_nas=no
  19317. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19318. have_nas=yes
  19319. NAS_LIBS="-laudio"
  19320. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19321. have_nas=yes
  19322. NAS_CFLAGS="-I/usr/X11R6/include/"
  19323. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19324. fi
  19325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19326. printf "%s\n" "$have_nas" >&6; }
  19327. if test x$have_nas = xyes; then
  19328. # Check whether --enable-nas-shared was given.
  19329. if test ${enable_nas_shared+y}
  19330. then :
  19331. enableval=$enable_nas_shared;
  19332. else $as_nop
  19333. enable_nas_shared=yes
  19334. fi
  19335. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19336. if test x$have_loadso != xyes && \
  19337. test x$enable_nas_shared = xyes; then
  19338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19339. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19340. fi
  19341. if test x$have_loadso = xyes && \
  19342. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19343. echo "-- dynamic libaudio -> $nas_lib"
  19344. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19345. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19346. else
  19347. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19348. SUMMARY_audio="${SUMMARY_audio} nas"
  19349. fi
  19350. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19351. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19352. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19353. have_audio=yes
  19354. fi
  19355. fi
  19356. }
  19357. CheckSNDIO()
  19358. {
  19359. # Check whether --enable-sndio was given.
  19360. if test ${enable_sndio+y}
  19361. then :
  19362. enableval=$enable_sndio;
  19363. else $as_nop
  19364. enable_sndio=yes
  19365. fi
  19366. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19367. ac_fn_c_check_header_compile "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  19368. if test "x$ac_cv_header_sndio_h" = xyes
  19369. then :
  19370. have_sndio_hdr=yes
  19371. fi
  19372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  19373. printf %s "checking for sio_open in -lsndio... " >&6; }
  19374. if test ${ac_cv_lib_sndio_sio_open+y}
  19375. then :
  19376. printf %s "(cached) " >&6
  19377. else $as_nop
  19378. ac_check_lib_save_LIBS=$LIBS
  19379. LIBS="-lsndio $LIBS"
  19380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19381. /* end confdefs.h. */
  19382. /* Override any GCC internal prototype to avoid an error.
  19383. Use char because int might match the return type of a GCC
  19384. builtin and then its argument prototype would still apply. */
  19385. char sio_open ();
  19386. int
  19387. main (void)
  19388. {
  19389. return sio_open ();
  19390. ;
  19391. return 0;
  19392. }
  19393. _ACEOF
  19394. if ac_fn_c_try_link "$LINENO"
  19395. then :
  19396. ac_cv_lib_sndio_sio_open=yes
  19397. else $as_nop
  19398. ac_cv_lib_sndio_sio_open=no
  19399. fi
  19400. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19401. conftest$ac_exeext conftest.$ac_ext
  19402. LIBS=$ac_check_lib_save_LIBS
  19403. fi
  19404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  19405. printf "%s\n" "$ac_cv_lib_sndio_sio_open" >&6; }
  19406. if test "x$ac_cv_lib_sndio_sio_open" = xyes
  19407. then :
  19408. have_sndio_lib=yes
  19409. fi
  19410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  19411. printf %s "checking for sndio audio support... " >&6; }
  19412. have_sndio=no
  19413. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  19414. have_sndio=yes
  19415. SNDIO_LIBS="-lsndio"
  19416. fi
  19417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  19418. printf "%s\n" "$have_sndio" >&6; }
  19419. if test x$have_sndio = xyes; then
  19420. # Check whether --enable-sndio-shared was given.
  19421. if test ${enable_sndio_shared+y}
  19422. then :
  19423. enableval=$enable_sndio_shared;
  19424. else $as_nop
  19425. enable_sndio_shared=yes
  19426. fi
  19427. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19428. if test x$have_loadso != xyes && \
  19429. test x$enable_sndio_shared = xyes; then
  19430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19431. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19432. fi
  19433. if test x$have_loadso = xyes && \
  19434. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19435. echo "-- dynamic libsndio -> $sndio_lib"
  19436. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19437. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19438. else
  19439. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19440. SUMMARY_audio="${SUMMARY_audio} sndio"
  19441. fi
  19442. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19443. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19444. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19445. have_audio=yes
  19446. fi
  19447. fi
  19448. }
  19449. CheckFusionSound()
  19450. {
  19451. # Check whether --enable-fusionsound was given.
  19452. if test ${enable_fusionsound+y}
  19453. then :
  19454. enableval=$enable_fusionsound;
  19455. else $as_nop
  19456. enable_fusionsound=no
  19457. fi
  19458. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19459. pkg_failed=no
  19460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19461. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19462. if test -n "$FUSIONSOUND_CFLAGS"; then
  19463. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19464. elif test -n "$PKG_CONFIG"; then
  19465. if test -n "$PKG_CONFIG" && \
  19466. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19467. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19468. ac_status=$?
  19469. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19470. test $ac_status = 0; }; then
  19471. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19472. test "x$?" != "x0" && pkg_failed=yes
  19473. else
  19474. pkg_failed=yes
  19475. fi
  19476. else
  19477. pkg_failed=untried
  19478. fi
  19479. if test -n "$FUSIONSOUND_LIBS"; then
  19480. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19481. elif test -n "$PKG_CONFIG"; then
  19482. if test -n "$PKG_CONFIG" && \
  19483. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19484. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19485. ac_status=$?
  19486. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19487. test $ac_status = 0; }; then
  19488. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19489. test "x$?" != "x0" && pkg_failed=yes
  19490. else
  19491. pkg_failed=yes
  19492. fi
  19493. else
  19494. pkg_failed=untried
  19495. fi
  19496. if test $pkg_failed = yes; then
  19497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19498. printf "%s\n" "no" >&6; }
  19499. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19500. _pkg_short_errors_supported=yes
  19501. else
  19502. _pkg_short_errors_supported=no
  19503. fi
  19504. if test $_pkg_short_errors_supported = yes; then
  19505. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19506. else
  19507. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19508. fi
  19509. # Put the nasty error message in config.log where it belongs
  19510. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19511. fusionsound=no
  19512. elif test $pkg_failed = untried; then
  19513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19514. printf "%s\n" "no" >&6; }
  19515. fusionsound=no
  19516. else
  19517. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19518. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19520. printf "%s\n" "yes" >&6; }
  19521. fusionsound=yes
  19522. fi
  19523. if test x$fusionsound = xyes; then
  19524. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19525. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19526. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19527. # Check whether --enable-fusionsound-shared was given.
  19528. if test ${enable_fusionsound_shared+y}
  19529. then :
  19530. enableval=$enable_fusionsound_shared;
  19531. else $as_nop
  19532. enable_fusionsound_shared=yes
  19533. fi
  19534. fusionsound_shared=no
  19535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19536. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19537. if test x$have_loadso != xyes && \
  19538. test x$enable_fusionsound_shared = xyes; then
  19539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19540. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19541. fi
  19542. if test x$have_loadso = xyes && \
  19543. test x$enable_fusionsound_shared = xyes; then
  19544. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19545. fusionsound_shared=yes
  19546. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19547. else
  19548. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19549. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19550. fi
  19551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19552. printf "%s\n" "$fusionsound_shared" >&6; }
  19553. have_audio=yes
  19554. fi
  19555. fi
  19556. }
  19557. CheckDiskAudio()
  19558. {
  19559. # Check whether --enable-diskaudio was given.
  19560. if test ${enable_diskaudio+y}
  19561. then :
  19562. enableval=$enable_diskaudio;
  19563. else $as_nop
  19564. enable_diskaudio=yes
  19565. fi
  19566. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19567. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19568. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19569. SUMMARY_audio="${SUMMARY_audio} disk"
  19570. have_audio=yes
  19571. fi
  19572. }
  19573. CheckDummyAudio()
  19574. {
  19575. # Check whether --enable-dummyaudio was given.
  19576. if test ${enable_dummyaudio+y}
  19577. then :
  19578. enableval=$enable_dummyaudio;
  19579. else $as_nop
  19580. enable_dummyaudio=yes
  19581. fi
  19582. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19583. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19584. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19585. SUMMARY_audio="${SUMMARY_audio} dummy"
  19586. have_audio=yes
  19587. fi
  19588. }
  19589. CheckLibSampleRate()
  19590. {
  19591. # Check whether --enable-libsamplerate was given.
  19592. if test ${enable_libsamplerate+y}
  19593. then :
  19594. enableval=$enable_libsamplerate;
  19595. else $as_nop
  19596. enable_libsamplerate=yes
  19597. fi
  19598. if test x$enable_libsamplerate = xyes; then
  19599. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19600. if test "x$ac_cv_header_samplerate_h" = xyes
  19601. then :
  19602. have_samplerate_h_hdr=yes
  19603. else $as_nop
  19604. have_samplerate_h_hdr=no
  19605. fi
  19606. if test x$have_samplerate_h_hdr = xyes; then
  19607. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19608. # Check whether --enable-libsamplerate-shared was given.
  19609. if test ${enable_libsamplerate_shared+y}
  19610. then :
  19611. enableval=$enable_libsamplerate_shared;
  19612. else $as_nop
  19613. enable_libsamplerate_shared=yes
  19614. fi
  19615. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19616. if test x$have_loadso != xyes && \
  19617. test x$enable_libsamplerate_shared = xyes; then
  19618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19619. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19620. fi
  19621. if test x$have_loadso = xyes && \
  19622. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19623. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19624. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19625. else
  19626. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19627. fi
  19628. fi
  19629. fi
  19630. }
  19631. CheckARM()
  19632. {
  19633. # Check whether --enable-arm-simd was given.
  19634. if test ${enable_arm_simd+y}
  19635. then :
  19636. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19637. else $as_nop
  19638. enable_arm_simd=no
  19639. fi
  19640. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19641. save_CFLAGS="$CFLAGS"
  19642. have_arm_simd=no
  19643. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19645. printf %s "checking for ARM SIMD... " >&6; }
  19646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19647. /* end confdefs.h. */
  19648. .text
  19649. .arch armv6
  19650. .object_arch armv4
  19651. .arm
  19652. .altmacro
  19653. #ifndef __ARM_EABI__
  19654. #error EABI is required (to be sure that calling conventions are compatible)
  19655. #endif
  19656. pld [r0]
  19657. uqadd8 r0, r0, r0
  19658. _ACEOF
  19659. if ac_fn_c_try_compile "$LINENO"
  19660. then :
  19661. have_arm_simd=yes
  19662. fi
  19663. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19665. printf "%s\n" "$have_arm_simd" >&6; }
  19666. CFLAGS="$save_CFLAGS"
  19667. if test x$have_arm_simd = xyes; then
  19668. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19669. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19670. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19671. fi
  19672. fi
  19673. }
  19674. CheckNEON()
  19675. {
  19676. # Check whether --enable-arm-neon was given.
  19677. if test ${enable_arm_neon+y}
  19678. then :
  19679. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19680. else $as_nop
  19681. enable_arm_neon=no
  19682. fi
  19683. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19684. save_CFLAGS="$CFLAGS"
  19685. have_arm_neon=no
  19686. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19688. printf %s "checking for ARM NEON... " >&6; }
  19689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19690. /* end confdefs.h. */
  19691. .text
  19692. .fpu neon
  19693. .arch armv7a
  19694. .object_arch armv4
  19695. .eabi_attribute 10, 0
  19696. .arm
  19697. .altmacro
  19698. #ifndef __ARM_EABI__
  19699. #error EABI is required (to be sure that calling conventions are compatible)
  19700. #endif
  19701. pld [r0]
  19702. vmovn.u16 d0, q0
  19703. _ACEOF
  19704. if ac_fn_c_try_compile "$LINENO"
  19705. then :
  19706. have_arm_neon=yes
  19707. fi
  19708. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19710. printf "%s\n" "$have_arm_neon" >&6; }
  19711. CFLAGS="$save_CFLAGS"
  19712. if test x$have_arm_neon = xyes; then
  19713. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19714. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19715. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19716. fi
  19717. fi
  19718. }
  19719. CheckObjectiveCARC()
  19720. {
  19721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19722. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19723. have_clang_objc_arc=no
  19724. save_CFLAGS="$CFLAGS"
  19725. CFLAGS="$save_CFLAGS -fobjc-arc"
  19726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19727. /* end confdefs.h. */
  19728. int x = 0;
  19729. int
  19730. main (void)
  19731. {
  19732. ;
  19733. return 0;
  19734. }
  19735. _ACEOF
  19736. if ac_fn_c_try_compile "$LINENO"
  19737. then :
  19738. have_clang_objc_arc=yes
  19739. fi
  19740. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19742. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19743. CFLAGS="$save_CFLAGS"
  19744. if test x$have_clang_objc_arc = xyes; then
  19745. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19746. fi
  19747. }
  19748. CheckGDwarf4()
  19749. {
  19750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19751. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19752. have_gcc_gdwarf4=no
  19753. save_CFLAGS="$CFLAGS"
  19754. CFLAGS="$save_CFLAGS -gdwarf-4"
  19755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19756. /* end confdefs.h. */
  19757. int x = 0;
  19758. int
  19759. main (void)
  19760. {
  19761. ;
  19762. return 0;
  19763. }
  19764. _ACEOF
  19765. if ac_fn_c_try_compile "$LINENO"
  19766. then :
  19767. have_gcc_gdwarf4=yes
  19768. fi
  19769. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19771. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19772. CFLAGS="$save_CFLAGS"
  19773. if test x$have_gcc_gdwarf4 = xyes; then
  19774. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19775. fi
  19776. }
  19777. CheckVisibilityHidden()
  19778. {
  19779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19780. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19781. have_gcc_fvisibility=no
  19782. visibility_CFLAGS="-fvisibility=hidden"
  19783. save_CFLAGS="$CFLAGS"
  19784. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19786. /* end confdefs.h. */
  19787. #if !defined(__GNUC__) || __GNUC__ < 4
  19788. #error SDL only uses visibility attributes in GCC 4 or newer
  19789. #endif
  19790. int
  19791. main (void)
  19792. {
  19793. ;
  19794. return 0;
  19795. }
  19796. _ACEOF
  19797. if ac_fn_c_try_compile "$LINENO"
  19798. then :
  19799. have_gcc_fvisibility=yes
  19800. fi
  19801. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19803. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19804. CFLAGS="$save_CFLAGS"
  19805. if test x$have_gcc_fvisibility = xyes; then
  19806. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19807. fi
  19808. }
  19809. CheckNoStrictAliasing()
  19810. {
  19811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19812. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19813. have_gcc_no_strict_aliasing=no
  19814. save_CFLAGS="$CFLAGS"
  19815. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19817. /* end confdefs.h. */
  19818. int x = 0;
  19819. int
  19820. main (void)
  19821. {
  19822. ;
  19823. return 0;
  19824. }
  19825. _ACEOF
  19826. if ac_fn_c_try_compile "$LINENO"
  19827. then :
  19828. have_gcc_no_strict_aliasing=yes
  19829. fi
  19830. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19832. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19833. CFLAGS="$save_CFLAGS"
  19834. if test x$have_gcc_no_strict_aliasing = xyes; then
  19835. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19836. fi
  19837. }
  19838. CheckStackBoundary()
  19839. {
  19840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19841. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19842. have_gcc_preferred_stack_boundary=no
  19843. save_CFLAGS="$CFLAGS"
  19844. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  19845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19846. /* end confdefs.h. */
  19847. int x = 0;
  19848. int
  19849. main (void)
  19850. {
  19851. ;
  19852. return 0;
  19853. }
  19854. _ACEOF
  19855. if ac_fn_c_try_compile "$LINENO"
  19856. then :
  19857. have_gcc_preferred_stack_boundary=yes
  19858. fi
  19859. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  19861. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19862. CFLAGS="$save_CFLAGS"
  19863. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19864. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19865. fi
  19866. }
  19867. CheckDeclarationAfterStatement()
  19868. {
  19869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19870. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19871. have_gcc_declaration_after_statement=no
  19872. save_CFLAGS="$CFLAGS"
  19873. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19875. /* end confdefs.h. */
  19876. int x = 0;
  19877. int
  19878. main (void)
  19879. {
  19880. ;
  19881. return 0;
  19882. }
  19883. _ACEOF
  19884. if ac_fn_c_try_compile "$LINENO"
  19885. then :
  19886. have_gcc_declaration_after_statement=yes
  19887. fi
  19888. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19890. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19891. CFLAGS="$save_CFLAGS"
  19892. if test x$have_gcc_declaration_after_statement = xyes; then
  19893. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19894. fi
  19895. }
  19896. CheckWarnAll()
  19897. {
  19898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19899. printf %s "checking for GCC -Wall option... " >&6; }
  19900. have_gcc_Wall=no
  19901. save_CFLAGS="$CFLAGS"
  19902. CFLAGS="$save_CFLAGS -Wall"
  19903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19904. /* end confdefs.h. */
  19905. int x = 0;
  19906. int
  19907. main (void)
  19908. {
  19909. ;
  19910. return 0;
  19911. }
  19912. _ACEOF
  19913. if ac_fn_c_try_compile "$LINENO"
  19914. then :
  19915. have_gcc_Wall=yes
  19916. fi
  19917. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19919. printf "%s\n" "$have_gcc_Wall" >&6; }
  19920. CFLAGS="$save_CFLAGS"
  19921. if test x$have_gcc_Wall = xyes; then
  19922. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19924. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19925. need_gcc_Wno_multichar=no
  19926. case "$host" in
  19927. *-*-haiku*)
  19928. need_gcc_Wno_multichar=yes
  19929. ;;
  19930. esac
  19931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  19932. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  19933. if test x$need_gcc_Wno_multichar = xyes; then
  19934. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  19935. fi
  19936. fi
  19937. }
  19938. CheckWayland()
  19939. {
  19940. # Check whether --enable-video-wayland was given.
  19941. if test ${enable_video_wayland+y}
  19942. then :
  19943. enableval=$enable_video_wayland;
  19944. else $as_nop
  19945. enable_video_wayland=yes
  19946. fi
  19947. # Check whether --enable-video-wayland-qt-touch was given.
  19948. if test ${enable_video_wayland_qt_touch+y}
  19949. then :
  19950. enableval=$enable_video_wayland_qt_touch;
  19951. else $as_nop
  19952. enable_video_wayland_qt_touch=yes
  19953. fi
  19954. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  19955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  19956. printf %s "checking for Wayland support... " >&6; }
  19957. video_wayland=no
  19958. if test x$video_opengl_egl = xyes && \
  19959. test x$video_opengles_v2 = xyes; then
  19960. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  19961. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  19962. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  19963. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  19964. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  19965. then :
  19966. WAYLAND_SCANNER_CODE_MODE=private-code
  19967. else $as_nop
  19968. WAYLAND_SCANNER_CODE_MODE=code
  19969. fi
  19970. video_wayland=yes
  19971. fi
  19972. fi
  19973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  19974. printf "%s\n" "$video_wayland" >&6; }
  19975. if test x$video_wayland = xyes; then
  19976. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  19977. if test x$enable_video_wayland_qt_touch = xyes; then
  19978. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  19979. fi
  19980. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  19981. SOURCES="$SOURCES $WAYLAND_SOURCES"
  19982. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  19983. # Check whether --enable-wayland-shared was given.
  19984. if test ${enable_wayland_shared+y}
  19985. then :
  19986. enableval=$enable_wayland_shared;
  19987. else $as_nop
  19988. enable_wayland_shared=maybe
  19989. fi
  19990. case "$host" in
  19991. *)
  19992. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19993. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19994. if test x$wayland_egl_lib = x; then
  19995. # This works in Ubuntu 13.10, maybe others
  19996. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19997. fi
  19998. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19999. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20000. ;;
  20001. esac
  20002. if test x$enable_wayland_shared = xmaybe; then
  20003. enable_wayland_shared=yes
  20004. fi
  20005. if test x$have_loadso != xyes && \
  20006. test x$enable_wayland_shared = xyes; then
  20007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20008. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20009. enable_wayland_shared=no
  20010. fi
  20011. if test x$have_loadso = xyes && \
  20012. test x$enable_wayland_shared = xyes && \
  20013. test x$wayland_client_lib != x && \
  20014. test x$wayland_egl_lib != x && \
  20015. test x$wayland_cursor_lib != x && \
  20016. test x$xkbcommon_lib != x; then
  20017. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20018. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20019. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20020. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20021. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20022. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20023. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20024. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20025. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20026. else
  20027. enable_wayland_shared=no
  20028. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20029. SUMMARY_video="${SUMMARY_video} wayland"
  20030. fi
  20031. have_video=yes
  20032. # Check whether --enable-libdecor was given.
  20033. if test ${enable_libdecor+y}
  20034. then :
  20035. enableval=$enable_libdecor;
  20036. else $as_nop
  20037. enable_libdecor=yes
  20038. fi
  20039. if test x$enable_libdecor = xyes; then
  20040. pkg_failed=no
  20041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20042. printf %s "checking for libdecor-0... " >&6; }
  20043. if test -n "$DECOR_CFLAGS"; then
  20044. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20045. elif test -n "$PKG_CONFIG"; then
  20046. if test -n "$PKG_CONFIG" && \
  20047. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20048. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20049. ac_status=$?
  20050. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20051. test $ac_status = 0; }; then
  20052. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20053. test "x$?" != "x0" && pkg_failed=yes
  20054. else
  20055. pkg_failed=yes
  20056. fi
  20057. else
  20058. pkg_failed=untried
  20059. fi
  20060. if test -n "$DECOR_LIBS"; then
  20061. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20062. elif test -n "$PKG_CONFIG"; then
  20063. if test -n "$PKG_CONFIG" && \
  20064. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20065. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20066. ac_status=$?
  20067. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20068. test $ac_status = 0; }; then
  20069. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20070. test "x$?" != "x0" && pkg_failed=yes
  20071. else
  20072. pkg_failed=yes
  20073. fi
  20074. else
  20075. pkg_failed=untried
  20076. fi
  20077. if test $pkg_failed = yes; then
  20078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20079. printf "%s\n" "no" >&6; }
  20080. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20081. _pkg_short_errors_supported=yes
  20082. else
  20083. _pkg_short_errors_supported=no
  20084. fi
  20085. if test $_pkg_short_errors_supported = yes; then
  20086. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20087. else
  20088. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20089. fi
  20090. # Put the nasty error message in config.log where it belongs
  20091. echo "$DECOR_PKG_ERRORS" >&5
  20092. video_libdecor=no
  20093. elif test $pkg_failed = untried; then
  20094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20095. printf "%s\n" "no" >&6; }
  20096. video_libdecor=no
  20097. else
  20098. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20099. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20101. printf "%s\n" "yes" >&6; }
  20102. video_libdecor=yes
  20103. fi
  20104. if test x$video_libdecor = xyes; then
  20105. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20106. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20107. # Check whether --enable-libdecor-shared was given.
  20108. if test ${enable_libdecor_shared+y}
  20109. then :
  20110. enableval=$enable_libdecor_shared;
  20111. else $as_nop
  20112. enable_libdecor_shared=yes
  20113. fi
  20114. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20115. if test x$enable_wayland_shared != xyes; then
  20116. enable_libdecor_shared=no
  20117. fi
  20118. if test x$have_loadso != xyes && \
  20119. test x$enable_libdecor_shared = xyes; then
  20120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20121. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20122. fi
  20123. if test x$have_loadso = xyes && \
  20124. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20125. echo "-- dynamic libdecor -> $decor_lib"
  20126. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20127. else
  20128. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20129. fi
  20130. fi
  20131. fi
  20132. fi
  20133. fi
  20134. }
  20135. CheckNativeClient()
  20136. {
  20137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20138. /* end confdefs.h. */
  20139. #if !defined(__native_client__)
  20140. #error "NO NACL"
  20141. #endif
  20142. int
  20143. main (void)
  20144. {
  20145. ;
  20146. return 0;
  20147. }
  20148. _ACEOF
  20149. if ac_fn_c_try_compile "$LINENO"
  20150. then :
  20151. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20152. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20153. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20154. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20155. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20156. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20157. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20158. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20159. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20160. SUMMARY_audio="${SUMMARY_audio} nacl"
  20161. have_audio=yes
  20162. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20163. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20164. have_video=yes
  20165. fi
  20166. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20167. }
  20168. CheckRPI()
  20169. {
  20170. # Check whether --enable-video-rpi was given.
  20171. if test ${enable_video_rpi+y}
  20172. then :
  20173. enableval=$enable_video_rpi;
  20174. else $as_nop
  20175. enable_video_rpi=yes
  20176. fi
  20177. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20178. pkg_failed=no
  20179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20180. printf %s "checking for bcm_host brcmegl... " >&6; }
  20181. if test -n "$RPI_CFLAGS"; then
  20182. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20183. elif test -n "$PKG_CONFIG"; then
  20184. if test -n "$PKG_CONFIG" && \
  20185. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20186. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20187. ac_status=$?
  20188. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20189. test $ac_status = 0; }; then
  20190. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20191. test "x$?" != "x0" && pkg_failed=yes
  20192. else
  20193. pkg_failed=yes
  20194. fi
  20195. else
  20196. pkg_failed=untried
  20197. fi
  20198. if test -n "$RPI_LIBS"; then
  20199. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20200. elif test -n "$PKG_CONFIG"; then
  20201. if test -n "$PKG_CONFIG" && \
  20202. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20203. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20204. ac_status=$?
  20205. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20206. test $ac_status = 0; }; then
  20207. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  20208. test "x$?" != "x0" && pkg_failed=yes
  20209. else
  20210. pkg_failed=yes
  20211. fi
  20212. else
  20213. pkg_failed=untried
  20214. fi
  20215. if test $pkg_failed = yes; then
  20216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20217. printf "%s\n" "no" >&6; }
  20218. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20219. _pkg_short_errors_supported=yes
  20220. else
  20221. _pkg_short_errors_supported=no
  20222. fi
  20223. if test $_pkg_short_errors_supported = yes; then
  20224. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20225. else
  20226. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20227. fi
  20228. # Put the nasty error message in config.log where it belongs
  20229. echo "$RPI_PKG_ERRORS" >&5
  20230. video_rpi=no
  20231. elif test $pkg_failed = untried; then
  20232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20233. printf "%s\n" "no" >&6; }
  20234. video_rpi=no
  20235. else
  20236. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20237. RPI_LIBS=$pkg_cv_RPI_LIBS
  20238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20239. printf "%s\n" "yes" >&6; }
  20240. video_rpi=yes
  20241. fi
  20242. if test x$video_rpi = xno; then
  20243. if test x$ARCH = xnetbsd; then
  20244. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20245. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20246. else
  20247. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20248. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20249. fi
  20250. fi
  20251. # Save the original compiler flags and libraries
  20252. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20253. # Add the Raspberry Pi compiler flags and libraries
  20254. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20256. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20257. have_video_rpi=no
  20258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20259. /* end confdefs.h. */
  20260. #include <bcm_host.h>
  20261. #include <EGL/eglplatform.h>
  20262. int
  20263. main (void)
  20264. {
  20265. EGL_DISPMANX_WINDOW_T window;
  20266. bcm_host_init();
  20267. ;
  20268. return 0;
  20269. }
  20270. _ACEOF
  20271. if ac_fn_c_try_link "$LINENO"
  20272. then :
  20273. have_video_rpi=yes
  20274. fi
  20275. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20276. conftest$ac_exeext conftest.$ac_ext
  20277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20278. printf "%s\n" "$have_video_rpi" >&6; }
  20279. # Restore the compiler flags and libraries
  20280. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20281. if test x$have_video_rpi = xyes; then
  20282. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20283. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20284. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20285. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20286. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20287. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20288. SUMMARY_video="${SUMMARY_video} rpi"
  20289. have_video=yes
  20290. fi
  20291. fi
  20292. }
  20293. CheckX11()
  20294. {
  20295. # Check whether --enable-video-x11 was given.
  20296. if test ${enable_video_x11+y}
  20297. then :
  20298. enableval=$enable_video_x11;
  20299. else $as_nop
  20300. enable_video_x11=yes
  20301. fi
  20302. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20303. case "$host" in
  20304. *-*-darwin*)
  20305. # This isn't necessary for X11, but fixes GLX detection
  20306. if test "x$x_includes" = xNONE && \
  20307. test "x$x_libraries" = xNONE && \
  20308. test -d /opt/X11/include && \
  20309. test -d /opt/X11/lib; then
  20310. x_includes="/opt/X11/include"
  20311. x_libraries="/opt/X11/lib"
  20312. fi
  20313. ;;
  20314. esac
  20315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20316. printf %s "checking for X... " >&6; }
  20317. # Check whether --with-x was given.
  20318. if test ${with_x+y}
  20319. then :
  20320. withval=$with_x;
  20321. fi
  20322. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20323. if test "x$with_x" = xno; then
  20324. # The user explicitly disabled X.
  20325. have_x=disabled
  20326. else
  20327. case $x_includes,$x_libraries in #(
  20328. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20329. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20330. then :
  20331. printf %s "(cached) " >&6
  20332. else $as_nop
  20333. # One or both of the vars are not set, and there is no cached value.
  20334. ac_x_includes=no
  20335. ac_x_libraries=no
  20336. # Do we need to do anything special at all?
  20337. ac_save_LIBS=$LIBS
  20338. LIBS="-lX11 $LIBS"
  20339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20340. /* end confdefs.h. */
  20341. #include <X11/Xlib.h>
  20342. int
  20343. main (void)
  20344. {
  20345. XrmInitialize ()
  20346. ;
  20347. return 0;
  20348. }
  20349. _ACEOF
  20350. if ac_fn_c_try_link "$LINENO"
  20351. then :
  20352. # We can compile and link X programs with no special options.
  20353. ac_x_includes=
  20354. ac_x_libraries=
  20355. fi
  20356. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20357. conftest$ac_exeext conftest.$ac_ext
  20358. LIBS="$ac_save_LIBS"
  20359. # If that didn't work, only try xmkmf and file system searches
  20360. # for native compilation.
  20361. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20362. then :
  20363. rm -f -r conftest.dir
  20364. if mkdir conftest.dir; then
  20365. cd conftest.dir
  20366. cat >Imakefile <<'_ACEOF'
  20367. incroot:
  20368. @echo incroot='${INCROOT}'
  20369. usrlibdir:
  20370. @echo usrlibdir='${USRLIBDIR}'
  20371. libdir:
  20372. @echo libdir='${LIBDIR}'
  20373. _ACEOF
  20374. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20375. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20376. for ac_var in incroot usrlibdir libdir; do
  20377. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20378. done
  20379. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20380. for ac_extension in a so sl dylib la dll; do
  20381. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20382. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20383. ac_im_usrlibdir=$ac_im_libdir; break
  20384. fi
  20385. done
  20386. # Screen out bogus values from the imake configuration. They are
  20387. # bogus both because they are the default anyway, and because
  20388. # using them would break gcc on systems where it needs fixed includes.
  20389. case $ac_im_incroot in
  20390. /usr/include) ac_x_includes= ;;
  20391. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20392. esac
  20393. case $ac_im_usrlibdir in
  20394. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20395. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20396. esac
  20397. fi
  20398. cd ..
  20399. rm -f -r conftest.dir
  20400. fi
  20401. # Standard set of common directories for X headers.
  20402. # Check X11 before X11Rn because it is often a symlink to the current release.
  20403. ac_x_header_dirs='
  20404. /usr/X11/include
  20405. /usr/X11R7/include
  20406. /usr/X11R6/include
  20407. /usr/X11R5/include
  20408. /usr/X11R4/include
  20409. /usr/include/X11
  20410. /usr/include/X11R7
  20411. /usr/include/X11R6
  20412. /usr/include/X11R5
  20413. /usr/include/X11R4
  20414. /usr/local/X11/include
  20415. /usr/local/X11R7/include
  20416. /usr/local/X11R6/include
  20417. /usr/local/X11R5/include
  20418. /usr/local/X11R4/include
  20419. /usr/local/include/X11
  20420. /usr/local/include/X11R7
  20421. /usr/local/include/X11R6
  20422. /usr/local/include/X11R5
  20423. /usr/local/include/X11R4
  20424. /opt/X11/include
  20425. /usr/X386/include
  20426. /usr/x386/include
  20427. /usr/XFree86/include/X11
  20428. /usr/include
  20429. /usr/local/include
  20430. /usr/unsupported/include
  20431. /usr/athena/include
  20432. /usr/local/x11r5/include
  20433. /usr/lpp/Xamples/include
  20434. /usr/openwin/include
  20435. /usr/openwin/share/include'
  20436. if test "$ac_x_includes" = no; then
  20437. # Guess where to find include files, by looking for Xlib.h.
  20438. # First, try using that file with no special directory specified.
  20439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20440. /* end confdefs.h. */
  20441. #include <X11/Xlib.h>
  20442. _ACEOF
  20443. if ac_fn_c_try_cpp "$LINENO"
  20444. then :
  20445. # We can compile using X headers with no special include directory.
  20446. ac_x_includes=
  20447. else $as_nop
  20448. for ac_dir in $ac_x_header_dirs; do
  20449. if test -r "$ac_dir/X11/Xlib.h"; then
  20450. ac_x_includes=$ac_dir
  20451. break
  20452. fi
  20453. done
  20454. fi
  20455. rm -f conftest.err conftest.i conftest.$ac_ext
  20456. fi # $ac_x_includes = no
  20457. if test "$ac_x_libraries" = no; then
  20458. # Check for the libraries.
  20459. # See if we find them without any special options.
  20460. # Don't add to $LIBS permanently.
  20461. ac_save_LIBS=$LIBS
  20462. LIBS="-lX11 $LIBS"
  20463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20464. /* end confdefs.h. */
  20465. #include <X11/Xlib.h>
  20466. int
  20467. main (void)
  20468. {
  20469. XrmInitialize ()
  20470. ;
  20471. return 0;
  20472. }
  20473. _ACEOF
  20474. if ac_fn_c_try_link "$LINENO"
  20475. then :
  20476. LIBS=$ac_save_LIBS
  20477. # We can link X programs with no special library path.
  20478. ac_x_libraries=
  20479. else $as_nop
  20480. LIBS=$ac_save_LIBS
  20481. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20482. do
  20483. # Don't even attempt the hair of trying to link an X program!
  20484. for ac_extension in a so sl dylib la dll; do
  20485. if test -r "$ac_dir/libX11.$ac_extension"; then
  20486. ac_x_libraries=$ac_dir
  20487. break 2
  20488. fi
  20489. done
  20490. done
  20491. fi
  20492. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20493. conftest$ac_exeext conftest.$ac_ext
  20494. fi # $ac_x_libraries = no
  20495. fi
  20496. # Record the results.
  20497. case $ac_x_includes,$ac_x_libraries in #(
  20498. no,* | *,no | *\'*) :
  20499. # Didn't find X, or a directory has "'" in its name.
  20500. ac_cv_have_x="have_x=no" ;; #(
  20501. *) :
  20502. # Record where we found X for the cache.
  20503. ac_cv_have_x="have_x=yes\
  20504. ac_x_includes='$ac_x_includes'\
  20505. ac_x_libraries='$ac_x_libraries'" ;;
  20506. esac
  20507. fi
  20508. ;; #(
  20509. *) have_x=yes;;
  20510. esac
  20511. eval "$ac_cv_have_x"
  20512. fi # $with_x != no
  20513. if test "$have_x" != yes; then
  20514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20515. printf "%s\n" "$have_x" >&6; }
  20516. no_x=yes
  20517. else
  20518. # If each of the values was on the command line, it overrides each guess.
  20519. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20520. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20521. # Update the cache value to reflect the command line values.
  20522. ac_cv_have_x="have_x=yes\
  20523. ac_x_includes='$x_includes'\
  20524. ac_x_libraries='$x_libraries'"
  20525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20526. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20527. fi
  20528. if test "$no_x" = yes; then
  20529. # Not all programs may use this symbol, but it does not hurt to define it.
  20530. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20531. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20532. else
  20533. if test -n "$x_includes"; then
  20534. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20535. fi
  20536. # It would also be nice to do this for all -L options, not just this one.
  20537. if test -n "$x_libraries"; then
  20538. X_LIBS="$X_LIBS -L$x_libraries"
  20539. # For Solaris; some versions of Sun CC require a space after -R and
  20540. # others require no space. Words are not sufficient . . . .
  20541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20542. printf %s "checking whether -R must be followed by a space... " >&6; }
  20543. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20544. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20545. ac_c_werror_flag=yes
  20546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20547. /* end confdefs.h. */
  20548. int
  20549. main (void)
  20550. {
  20551. ;
  20552. return 0;
  20553. }
  20554. _ACEOF
  20555. if ac_fn_c_try_link "$LINENO"
  20556. then :
  20557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20558. printf "%s\n" "no" >&6; }
  20559. X_LIBS="$X_LIBS -R$x_libraries"
  20560. else $as_nop
  20561. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20563. /* end confdefs.h. */
  20564. int
  20565. main (void)
  20566. {
  20567. ;
  20568. return 0;
  20569. }
  20570. _ACEOF
  20571. if ac_fn_c_try_link "$LINENO"
  20572. then :
  20573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20574. printf "%s\n" "yes" >&6; }
  20575. X_LIBS="$X_LIBS -R $x_libraries"
  20576. else $as_nop
  20577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20578. printf "%s\n" "neither works" >&6; }
  20579. fi
  20580. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20581. conftest$ac_exeext conftest.$ac_ext
  20582. fi
  20583. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20584. conftest$ac_exeext conftest.$ac_ext
  20585. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20586. LIBS=$ac_xsave_LIBS
  20587. fi
  20588. # Check for system-dependent libraries X programs must link with.
  20589. # Do this before checking for the system-independent R6 libraries
  20590. # (-lICE), since we may need -lsocket or whatever for X linking.
  20591. if test "$ISC" = yes; then
  20592. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20593. else
  20594. # Martyn Johnson says this is needed for Ultrix, if the X
  20595. # libraries were built with DECnet support. And Karl Berry says
  20596. # the Alpha needs dnet_stub (dnet does not exist).
  20597. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20599. /* end confdefs.h. */
  20600. /* Override any GCC internal prototype to avoid an error.
  20601. Use char because int might match the return type of a GCC
  20602. builtin and then its argument prototype would still apply. */
  20603. char XOpenDisplay ();
  20604. int
  20605. main (void)
  20606. {
  20607. return XOpenDisplay ();
  20608. ;
  20609. return 0;
  20610. }
  20611. _ACEOF
  20612. if ac_fn_c_try_link "$LINENO"
  20613. then :
  20614. else $as_nop
  20615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20616. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20617. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20618. then :
  20619. printf %s "(cached) " >&6
  20620. else $as_nop
  20621. ac_check_lib_save_LIBS=$LIBS
  20622. LIBS="-ldnet $LIBS"
  20623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20624. /* end confdefs.h. */
  20625. /* Override any GCC internal prototype to avoid an error.
  20626. Use char because int might match the return type of a GCC
  20627. builtin and then its argument prototype would still apply. */
  20628. char dnet_ntoa ();
  20629. int
  20630. main (void)
  20631. {
  20632. return dnet_ntoa ();
  20633. ;
  20634. return 0;
  20635. }
  20636. _ACEOF
  20637. if ac_fn_c_try_link "$LINENO"
  20638. then :
  20639. ac_cv_lib_dnet_dnet_ntoa=yes
  20640. else $as_nop
  20641. ac_cv_lib_dnet_dnet_ntoa=no
  20642. fi
  20643. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20644. conftest$ac_exeext conftest.$ac_ext
  20645. LIBS=$ac_check_lib_save_LIBS
  20646. fi
  20647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20648. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20649. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20650. then :
  20651. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20652. fi
  20653. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20655. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20656. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20657. then :
  20658. printf %s "(cached) " >&6
  20659. else $as_nop
  20660. ac_check_lib_save_LIBS=$LIBS
  20661. LIBS="-ldnet_stub $LIBS"
  20662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20663. /* end confdefs.h. */
  20664. /* Override any GCC internal prototype to avoid an error.
  20665. Use char because int might match the return type of a GCC
  20666. builtin and then its argument prototype would still apply. */
  20667. char dnet_ntoa ();
  20668. int
  20669. main (void)
  20670. {
  20671. return dnet_ntoa ();
  20672. ;
  20673. return 0;
  20674. }
  20675. _ACEOF
  20676. if ac_fn_c_try_link "$LINENO"
  20677. then :
  20678. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20679. else $as_nop
  20680. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20681. fi
  20682. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20683. conftest$ac_exeext conftest.$ac_ext
  20684. LIBS=$ac_check_lib_save_LIBS
  20685. fi
  20686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20687. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20688. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20689. then :
  20690. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20691. fi
  20692. fi
  20693. fi
  20694. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20695. conftest$ac_exeext conftest.$ac_ext
  20696. LIBS="$ac_xsave_LIBS"
  20697. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20698. # to get the SysV transport functions.
  20699. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20700. # needs -lnsl.
  20701. # The nsl library prevents programs from opening the X display
  20702. # on Irix 5.2, according to T.E. Dickey.
  20703. # The functions gethostbyname, getservbyname, and inet_addr are
  20704. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20705. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20706. if test "x$ac_cv_func_gethostbyname" = xyes
  20707. then :
  20708. fi
  20709. if test $ac_cv_func_gethostbyname = no; then
  20710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20711. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20712. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20713. then :
  20714. printf %s "(cached) " >&6
  20715. else $as_nop
  20716. ac_check_lib_save_LIBS=$LIBS
  20717. LIBS="-lnsl $LIBS"
  20718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20719. /* end confdefs.h. */
  20720. /* Override any GCC internal prototype to avoid an error.
  20721. Use char because int might match the return type of a GCC
  20722. builtin and then its argument prototype would still apply. */
  20723. char gethostbyname ();
  20724. int
  20725. main (void)
  20726. {
  20727. return gethostbyname ();
  20728. ;
  20729. return 0;
  20730. }
  20731. _ACEOF
  20732. if ac_fn_c_try_link "$LINENO"
  20733. then :
  20734. ac_cv_lib_nsl_gethostbyname=yes
  20735. else $as_nop
  20736. ac_cv_lib_nsl_gethostbyname=no
  20737. fi
  20738. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20739. conftest$ac_exeext conftest.$ac_ext
  20740. LIBS=$ac_check_lib_save_LIBS
  20741. fi
  20742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20743. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20744. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  20745. then :
  20746. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20747. fi
  20748. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20750. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  20751. if test ${ac_cv_lib_bsd_gethostbyname+y}
  20752. then :
  20753. printf %s "(cached) " >&6
  20754. else $as_nop
  20755. ac_check_lib_save_LIBS=$LIBS
  20756. LIBS="-lbsd $LIBS"
  20757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20758. /* end confdefs.h. */
  20759. /* Override any GCC internal prototype to avoid an error.
  20760. Use char because int might match the return type of a GCC
  20761. builtin and then its argument prototype would still apply. */
  20762. char gethostbyname ();
  20763. int
  20764. main (void)
  20765. {
  20766. return gethostbyname ();
  20767. ;
  20768. return 0;
  20769. }
  20770. _ACEOF
  20771. if ac_fn_c_try_link "$LINENO"
  20772. then :
  20773. ac_cv_lib_bsd_gethostbyname=yes
  20774. else $as_nop
  20775. ac_cv_lib_bsd_gethostbyname=no
  20776. fi
  20777. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20778. conftest$ac_exeext conftest.$ac_ext
  20779. LIBS=$ac_check_lib_save_LIBS
  20780. fi
  20781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20782. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20783. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20784. then :
  20785. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20786. fi
  20787. fi
  20788. fi
  20789. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20790. # socket/setsockopt and other routines are undefined under SCO ODT
  20791. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20792. # on later versions), says Simon Leinen: it contains gethostby*
  20793. # variants that don't use the name server (or something). -lsocket
  20794. # must be given before -lnsl if both are needed. We assume that
  20795. # if connect needs -lnsl, so does gethostbyname.
  20796. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20797. if test "x$ac_cv_func_connect" = xyes
  20798. then :
  20799. fi
  20800. if test $ac_cv_func_connect = no; then
  20801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20802. printf %s "checking for connect in -lsocket... " >&6; }
  20803. if test ${ac_cv_lib_socket_connect+y}
  20804. then :
  20805. printf %s "(cached) " >&6
  20806. else $as_nop
  20807. ac_check_lib_save_LIBS=$LIBS
  20808. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20810. /* end confdefs.h. */
  20811. /* Override any GCC internal prototype to avoid an error.
  20812. Use char because int might match the return type of a GCC
  20813. builtin and then its argument prototype would still apply. */
  20814. char connect ();
  20815. int
  20816. main (void)
  20817. {
  20818. return connect ();
  20819. ;
  20820. return 0;
  20821. }
  20822. _ACEOF
  20823. if ac_fn_c_try_link "$LINENO"
  20824. then :
  20825. ac_cv_lib_socket_connect=yes
  20826. else $as_nop
  20827. ac_cv_lib_socket_connect=no
  20828. fi
  20829. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20830. conftest$ac_exeext conftest.$ac_ext
  20831. LIBS=$ac_check_lib_save_LIBS
  20832. fi
  20833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20834. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20835. if test "x$ac_cv_lib_socket_connect" = xyes
  20836. then :
  20837. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20838. fi
  20839. fi
  20840. # Guillermo Gomez says -lposix is necessary on A/UX.
  20841. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20842. if test "x$ac_cv_func_remove" = xyes
  20843. then :
  20844. fi
  20845. if test $ac_cv_func_remove = no; then
  20846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20847. printf %s "checking for remove in -lposix... " >&6; }
  20848. if test ${ac_cv_lib_posix_remove+y}
  20849. then :
  20850. printf %s "(cached) " >&6
  20851. else $as_nop
  20852. ac_check_lib_save_LIBS=$LIBS
  20853. LIBS="-lposix $LIBS"
  20854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20855. /* end confdefs.h. */
  20856. /* Override any GCC internal prototype to avoid an error.
  20857. Use char because int might match the return type of a GCC
  20858. builtin and then its argument prototype would still apply. */
  20859. char remove ();
  20860. int
  20861. main (void)
  20862. {
  20863. return remove ();
  20864. ;
  20865. return 0;
  20866. }
  20867. _ACEOF
  20868. if ac_fn_c_try_link "$LINENO"
  20869. then :
  20870. ac_cv_lib_posix_remove=yes
  20871. else $as_nop
  20872. ac_cv_lib_posix_remove=no
  20873. fi
  20874. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20875. conftest$ac_exeext conftest.$ac_ext
  20876. LIBS=$ac_check_lib_save_LIBS
  20877. fi
  20878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20879. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20880. if test "x$ac_cv_lib_posix_remove" = xyes
  20881. then :
  20882. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20883. fi
  20884. fi
  20885. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20886. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20887. if test "x$ac_cv_func_shmat" = xyes
  20888. then :
  20889. fi
  20890. if test $ac_cv_func_shmat = no; then
  20891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20892. printf %s "checking for shmat in -lipc... " >&6; }
  20893. if test ${ac_cv_lib_ipc_shmat+y}
  20894. then :
  20895. printf %s "(cached) " >&6
  20896. else $as_nop
  20897. ac_check_lib_save_LIBS=$LIBS
  20898. LIBS="-lipc $LIBS"
  20899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20900. /* end confdefs.h. */
  20901. /* Override any GCC internal prototype to avoid an error.
  20902. Use char because int might match the return type of a GCC
  20903. builtin and then its argument prototype would still apply. */
  20904. char shmat ();
  20905. int
  20906. main (void)
  20907. {
  20908. return shmat ();
  20909. ;
  20910. return 0;
  20911. }
  20912. _ACEOF
  20913. if ac_fn_c_try_link "$LINENO"
  20914. then :
  20915. ac_cv_lib_ipc_shmat=yes
  20916. else $as_nop
  20917. ac_cv_lib_ipc_shmat=no
  20918. fi
  20919. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20920. conftest$ac_exeext conftest.$ac_ext
  20921. LIBS=$ac_check_lib_save_LIBS
  20922. fi
  20923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20924. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  20925. if test "x$ac_cv_lib_ipc_shmat" = xyes
  20926. then :
  20927. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20928. fi
  20929. fi
  20930. fi
  20931. # Check for libraries that X11R6 Xt/Xaw programs need.
  20932. ac_save_LDFLAGS=$LDFLAGS
  20933. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  20934. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  20935. # check for ICE first), but we must link in the order -lSM -lICE or
  20936. # we get undefined symbols. So assume we have SM if we have ICE.
  20937. # These have to be linked with before -lX11, unlike the other
  20938. # libraries we check for below, so use a different variable.
  20939. # John Interrante, Karl Berry
  20940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  20941. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  20942. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  20943. then :
  20944. printf %s "(cached) " >&6
  20945. else $as_nop
  20946. ac_check_lib_save_LIBS=$LIBS
  20947. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  20948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20949. /* end confdefs.h. */
  20950. /* Override any GCC internal prototype to avoid an error.
  20951. Use char because int might match the return type of a GCC
  20952. builtin and then its argument prototype would still apply. */
  20953. char IceConnectionNumber ();
  20954. int
  20955. main (void)
  20956. {
  20957. return IceConnectionNumber ();
  20958. ;
  20959. return 0;
  20960. }
  20961. _ACEOF
  20962. if ac_fn_c_try_link "$LINENO"
  20963. then :
  20964. ac_cv_lib_ICE_IceConnectionNumber=yes
  20965. else $as_nop
  20966. ac_cv_lib_ICE_IceConnectionNumber=no
  20967. fi
  20968. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20969. conftest$ac_exeext conftest.$ac_ext
  20970. LIBS=$ac_check_lib_save_LIBS
  20971. fi
  20972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  20973. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  20974. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  20975. then :
  20976. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  20977. fi
  20978. LDFLAGS=$ac_save_LDFLAGS
  20979. fi
  20980. if test x$have_x = xyes; then
  20981. # Check whether --enable-x11-shared was given.
  20982. if test ${enable_x11_shared+y}
  20983. then :
  20984. enableval=$enable_x11_shared;
  20985. else $as_nop
  20986. enable_x11_shared=maybe
  20987. fi
  20988. case "$host" in
  20989. *-*-darwin*)
  20990. # Apple now puts this in /opt/X11
  20991. x11_lib='/opt/X11/lib/libX11.6.dylib'
  20992. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  20993. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  20994. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  20995. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  20996. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  20997. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  20998. xss_lib='/opt/X11/lib/libXss.1.dylib'
  20999. ;;
  21000. *-*-openbsd*)
  21001. x11_lib='libX11.so'
  21002. x11ext_lib='libXext.so'
  21003. xcursor_lib='libXcursor.so'
  21004. xinput_lib='libXi.so'
  21005. xfixes_lib='libXfixes.so'
  21006. xrandr_lib='libXrandr.so'
  21007. xrender_lib='libXrender.so'
  21008. xss_lib='libXss.so'
  21009. ;;
  21010. *)
  21011. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21012. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21013. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21014. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21015. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21016. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21017. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21018. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21019. ;;
  21020. esac
  21021. if test x$ac_cv_func_shmat != xyes; then
  21022. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21023. fi
  21024. CFLAGS="$CFLAGS $X_CFLAGS"
  21025. LDFLAGS="$LDFLAGS $X_LIBS"
  21026. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21027. #include <X11/Xproto.h>
  21028. "
  21029. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21030. then :
  21031. have_xext_h_hdr=yes
  21032. else $as_nop
  21033. have_xext_h_hdr=no
  21034. fi
  21035. if test x$have_xext_h_hdr != xyes; then
  21036. as_fn_error $? "
  21037. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21038. " "$LINENO" 5
  21039. fi
  21040. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21041. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21042. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21043. # Needed so SDL applications can include SDL_syswm.h
  21044. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21045. if test x$enable_x11_shared = xmaybe; then
  21046. enable_x11_shared=yes
  21047. fi
  21048. if test x$have_loadso != xyes && \
  21049. test x$enable_x11_shared = xyes; then
  21050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21051. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21052. enable_x11_shared=no
  21053. fi
  21054. if test x$have_loadso = xyes && \
  21055. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21056. echo "-- dynamic libX11 -> $x11_lib"
  21057. echo "-- dynamic libX11ext -> $x11ext_lib"
  21058. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21059. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21060. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21061. else
  21062. enable_x11_shared=no
  21063. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21064. SUMMARY_video="${SUMMARY_video} x11"
  21065. fi
  21066. have_video=yes
  21067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21068. printf %s "checking for XGenericEvent... " >&6; }
  21069. have_XGenericEvent=no
  21070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21071. /* end confdefs.h. */
  21072. #include <X11/Xlib.h>
  21073. int
  21074. main (void)
  21075. {
  21076. Display *display;
  21077. XEvent event;
  21078. XGenericEventCookie *cookie = &event.xcookie;
  21079. XNextEvent(display, &event);
  21080. XGetEventData(display, cookie);
  21081. XFreeEventData(display, cookie);
  21082. ;
  21083. return 0;
  21084. }
  21085. _ACEOF
  21086. if ac_fn_c_try_compile "$LINENO"
  21087. then :
  21088. have_XGenericEvent=yes
  21089. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21090. fi
  21091. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21093. printf "%s\n" "$have_XGenericEvent" >&6; }
  21094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21095. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21096. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21097. then :
  21098. printf %s "(cached) " >&6
  21099. else $as_nop
  21100. ac_check_lib_save_LIBS=$LIBS
  21101. LIBS="-lX11 $LIBS"
  21102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21103. /* end confdefs.h. */
  21104. /* Override any GCC internal prototype to avoid an error.
  21105. Use char because int might match the return type of a GCC
  21106. builtin and then its argument prototype would still apply. */
  21107. char XkbKeycodeToKeysym ();
  21108. int
  21109. main (void)
  21110. {
  21111. return XkbKeycodeToKeysym ();
  21112. ;
  21113. return 0;
  21114. }
  21115. _ACEOF
  21116. if ac_fn_c_try_link "$LINENO"
  21117. then :
  21118. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21119. else $as_nop
  21120. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21121. fi
  21122. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21123. conftest$ac_exeext conftest.$ac_ext
  21124. LIBS=$ac_check_lib_save_LIBS
  21125. fi
  21126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21127. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21128. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21129. then :
  21130. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21131. fi
  21132. # Check whether --enable-video-x11-xcursor was given.
  21133. if test ${enable_video_x11_xcursor+y}
  21134. then :
  21135. enableval=$enable_video_x11_xcursor;
  21136. else $as_nop
  21137. enable_video_x11_xcursor=yes
  21138. fi
  21139. if test x$enable_video_x11_xcursor = xyes; then
  21140. definitely_enable_video_x11_xcursor=no
  21141. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21142. "
  21143. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21144. then :
  21145. have_xcursor_h_hdr=yes
  21146. else $as_nop
  21147. have_xcursor_h_hdr=no
  21148. fi
  21149. if test x$have_xcursor_h_hdr = xyes; then
  21150. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21151. echo "-- dynamic libXcursor -> $xcursor_lib"
  21152. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21153. definitely_enable_video_x11_xcursor=yes
  21154. else
  21155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21156. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21157. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21158. then :
  21159. printf %s "(cached) " >&6
  21160. else $as_nop
  21161. ac_check_lib_save_LIBS=$LIBS
  21162. LIBS="-lXcursor $LIBS"
  21163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21164. /* end confdefs.h. */
  21165. /* Override any GCC internal prototype to avoid an error.
  21166. Use char because int might match the return type of a GCC
  21167. builtin and then its argument prototype would still apply. */
  21168. char XcursorImageCreate ();
  21169. int
  21170. main (void)
  21171. {
  21172. return XcursorImageCreate ();
  21173. ;
  21174. return 0;
  21175. }
  21176. _ACEOF
  21177. if ac_fn_c_try_link "$LINENO"
  21178. then :
  21179. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21180. else $as_nop
  21181. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21182. fi
  21183. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21184. conftest$ac_exeext conftest.$ac_ext
  21185. LIBS=$ac_check_lib_save_LIBS
  21186. fi
  21187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21188. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21189. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21190. then :
  21191. have_xcursor_lib=yes
  21192. fi
  21193. if test x$have_xcursor_lib = xyes ; then
  21194. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21195. definitely_enable_video_x11_xcursor=yes
  21196. fi
  21197. fi
  21198. fi
  21199. fi
  21200. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21201. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21202. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21203. fi
  21204. # Check whether --enable-video-x11-xdbe was given.
  21205. if test ${enable_video_x11_xdbe+y}
  21206. then :
  21207. enableval=$enable_video_x11_xdbe;
  21208. else $as_nop
  21209. enable_video_x11_xdbe=yes
  21210. fi
  21211. if test x$enable_video_x11_xdbe = xyes; then
  21212. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21213. "
  21214. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21215. then :
  21216. have_dbe_h_hdr=yes
  21217. else $as_nop
  21218. have_dbe_h_hdr=no
  21219. fi
  21220. if test x$have_dbe_h_hdr = xyes; then
  21221. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21222. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21223. fi
  21224. fi
  21225. # Check whether --enable-video-x11-xinput was given.
  21226. if test ${enable_video_x11_xinput+y}
  21227. then :
  21228. enableval=$enable_video_x11_xinput;
  21229. else $as_nop
  21230. enable_video_x11_xinput=yes
  21231. fi
  21232. if test x$enable_video_x11_xinput = xyes; then
  21233. definitely_enable_video_x11_xinput=no
  21234. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21235. "
  21236. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21237. then :
  21238. have_xinput_h_hdr=yes
  21239. else $as_nop
  21240. have_xinput_h_hdr=no
  21241. fi
  21242. if test x$have_xinput_h_hdr = xyes; then
  21243. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21244. echo "-- dynamic libXi -> $xinput_lib"
  21245. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21246. definitely_enable_video_x11_xinput=yes
  21247. else
  21248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21249. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21250. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21251. then :
  21252. printf %s "(cached) " >&6
  21253. else $as_nop
  21254. ac_check_lib_save_LIBS=$LIBS
  21255. LIBS="-lXi $LIBS"
  21256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21257. /* end confdefs.h. */
  21258. /* Override any GCC internal prototype to avoid an error.
  21259. Use char because int might match the return type of a GCC
  21260. builtin and then its argument prototype would still apply. */
  21261. char XOpenDevice ();
  21262. int
  21263. main (void)
  21264. {
  21265. return XOpenDevice ();
  21266. ;
  21267. return 0;
  21268. }
  21269. _ACEOF
  21270. if ac_fn_c_try_link "$LINENO"
  21271. then :
  21272. ac_cv_lib_Xi_XOpenDevice=yes
  21273. else $as_nop
  21274. ac_cv_lib_Xi_XOpenDevice=no
  21275. fi
  21276. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21277. conftest$ac_exeext conftest.$ac_ext
  21278. LIBS=$ac_check_lib_save_LIBS
  21279. fi
  21280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21281. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21282. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21283. then :
  21284. have_xinput_lib=yes
  21285. fi
  21286. if test x$have_xinput_lib = xyes ; then
  21287. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21288. definitely_enable_video_x11_xinput=yes
  21289. fi
  21290. fi
  21291. fi
  21292. fi
  21293. if test x$definitely_enable_video_x11_xinput = xyes; then
  21294. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21295. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21297. printf %s "checking for xinput2 multitouch... " >&6; }
  21298. have_xinput2_multitouch=no
  21299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21300. /* end confdefs.h. */
  21301. #include <X11/Xlib.h>
  21302. #include <X11/Xproto.h>
  21303. #include <X11/extensions/XInput2.h>
  21304. int
  21305. main (void)
  21306. {
  21307. int event_type = XI_TouchBegin;
  21308. XITouchClassInfo *t;
  21309. ;
  21310. return 0;
  21311. }
  21312. _ACEOF
  21313. if ac_fn_c_try_compile "$LINENO"
  21314. then :
  21315. have_xinput2_multitouch=yes
  21316. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21317. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21318. fi
  21319. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21321. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21322. fi
  21323. # Check whether --enable-video-x11-xfixes was given.
  21324. if test ${enable_video_x11_xfixes+y}
  21325. then :
  21326. enableval=$enable_video_x11_xfixes;
  21327. else $as_nop
  21328. enable_video_x11_xfixes=yes
  21329. fi
  21330. if test x$enable_video_x11_xfixes = xyes; then
  21331. definitely_enable_video_x11_xfixes=no
  21332. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21334. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21336. /* end confdefs.h. */
  21337. #include <X11/Xlib.h>
  21338. #include <X11/Xproto.h>
  21339. #include <X11/extensions/XInput2.h>
  21340. #include <X11/extensions/Xfixes.h>
  21341. int
  21342. main (void)
  21343. {
  21344. BarrierEventID b;
  21345. ;
  21346. return 0;
  21347. }
  21348. _ACEOF
  21349. if ac_fn_c_try_compile "$LINENO"
  21350. then :
  21351. have_xfixes_h_hdr=yes
  21352. else $as_nop
  21353. have_xfixes_h_hdr=no
  21354. fi
  21355. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21357. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21358. if test x$have_xfixes_h_hdr = xyes; then
  21359. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21360. echo "-- dynamic libXfixes -> $xfixes_lib"
  21361. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21362. definitely_enable_video_x11_xfixes=yes
  21363. else
  21364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21365. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21366. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21367. then :
  21368. printf %s "(cached) " >&6
  21369. else $as_nop
  21370. ac_check_lib_save_LIBS=$LIBS
  21371. LIBS="-lXfixes $LIBS"
  21372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21373. /* end confdefs.h. */
  21374. /* Override any GCC internal prototype to avoid an error.
  21375. Use char because int might match the return type of a GCC
  21376. builtin and then its argument prototype would still apply. */
  21377. char XFixesCreatePointerBarrier ();
  21378. int
  21379. main (void)
  21380. {
  21381. return XFixesCreatePointerBarrier ();
  21382. ;
  21383. return 0;
  21384. }
  21385. _ACEOF
  21386. if ac_fn_c_try_link "$LINENO"
  21387. then :
  21388. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21389. else $as_nop
  21390. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21391. fi
  21392. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21393. conftest$ac_exeext conftest.$ac_ext
  21394. LIBS=$ac_check_lib_save_LIBS
  21395. fi
  21396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21397. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21398. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21399. then :
  21400. have_xfixes_lib=yes
  21401. fi
  21402. if test x$have_xfixes_lib = xyes ; then
  21403. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21404. definitely_enable_video_x11_xfixes=yes
  21405. fi
  21406. fi
  21407. fi
  21408. fi
  21409. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21410. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21411. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21412. fi
  21413. # Check whether --enable-video-x11-xrandr was given.
  21414. if test ${enable_video_x11_xrandr+y}
  21415. then :
  21416. enableval=$enable_video_x11_xrandr;
  21417. else $as_nop
  21418. enable_video_x11_xrandr=yes
  21419. fi
  21420. if test x$enable_video_x11_xrandr = xyes; then
  21421. definitely_enable_video_x11_xrandr=no
  21422. have_xrandr_h_hdr=no
  21423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21424. /* end confdefs.h. */
  21425. #include <X11/Xlib.h>
  21426. #include <X11/extensions/Xrandr.h>
  21427. int
  21428. main (void)
  21429. {
  21430. XRRScreenResources *res = NULL;
  21431. ;
  21432. return 0;
  21433. }
  21434. _ACEOF
  21435. if ac_fn_c_try_compile "$LINENO"
  21436. then :
  21437. have_xrandr_h_hdr=yes
  21438. fi
  21439. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21440. if test x$have_xrandr_h_hdr = xyes; then
  21441. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21442. echo "-- dynamic libXrandr -> $xrandr_lib"
  21443. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21444. definitely_enable_video_x11_xrandr=yes
  21445. else
  21446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21447. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21448. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21449. then :
  21450. printf %s "(cached) " >&6
  21451. else $as_nop
  21452. ac_check_lib_save_LIBS=$LIBS
  21453. LIBS="-lXrandr $LIBS"
  21454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21455. /* end confdefs.h. */
  21456. /* Override any GCC internal prototype to avoid an error.
  21457. Use char because int might match the return type of a GCC
  21458. builtin and then its argument prototype would still apply. */
  21459. char XRRQueryExtension ();
  21460. int
  21461. main (void)
  21462. {
  21463. return XRRQueryExtension ();
  21464. ;
  21465. return 0;
  21466. }
  21467. _ACEOF
  21468. if ac_fn_c_try_link "$LINENO"
  21469. then :
  21470. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21471. else $as_nop
  21472. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21473. fi
  21474. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21475. conftest$ac_exeext conftest.$ac_ext
  21476. LIBS=$ac_check_lib_save_LIBS
  21477. fi
  21478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21479. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21480. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21481. then :
  21482. have_xrandr_lib=yes
  21483. fi
  21484. if test x$have_xrandr_lib = xyes ; then
  21485. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21486. definitely_enable_video_x11_xrandr=yes
  21487. fi
  21488. fi
  21489. fi
  21490. fi
  21491. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21492. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21493. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21494. fi
  21495. # Check whether --enable-video-x11-scrnsaver was given.
  21496. if test ${enable_video_x11_scrnsaver+y}
  21497. then :
  21498. enableval=$enable_video_x11_scrnsaver;
  21499. else $as_nop
  21500. enable_video_x11_scrnsaver=yes
  21501. fi
  21502. if test x$enable_video_x11_scrnsaver = xyes; then
  21503. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21504. "
  21505. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21506. then :
  21507. have_scrnsaver_h_hdr=yes
  21508. else $as_nop
  21509. have_scrnsaver_h_hdr=no
  21510. fi
  21511. if test x$have_scrnsaver_h_hdr = xyes; then
  21512. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21513. echo "-- dynamic libXss -> $xss_lib"
  21514. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21515. definitely_enable_video_x11_scrnsaver=yes
  21516. else
  21517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21518. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21519. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21520. then :
  21521. printf %s "(cached) " >&6
  21522. else $as_nop
  21523. ac_check_lib_save_LIBS=$LIBS
  21524. LIBS="-lXss $LIBS"
  21525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21526. /* end confdefs.h. */
  21527. /* Override any GCC internal prototype to avoid an error.
  21528. Use char because int might match the return type of a GCC
  21529. builtin and then its argument prototype would still apply. */
  21530. char XScreenSaverSuspend ();
  21531. int
  21532. main (void)
  21533. {
  21534. return XScreenSaverSuspend ();
  21535. ;
  21536. return 0;
  21537. }
  21538. _ACEOF
  21539. if ac_fn_c_try_link "$LINENO"
  21540. then :
  21541. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21542. else $as_nop
  21543. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21544. fi
  21545. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21546. conftest$ac_exeext conftest.$ac_ext
  21547. LIBS=$ac_check_lib_save_LIBS
  21548. fi
  21549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21550. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21551. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21552. then :
  21553. have_xss_lib=yes
  21554. fi
  21555. if test x$have_xss_lib = xyes ; then
  21556. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21557. definitely_enable_video_x11_scrnsaver=yes
  21558. fi
  21559. fi
  21560. fi
  21561. fi
  21562. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21563. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21564. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21565. fi
  21566. # Check whether --enable-video-x11-xshape was given.
  21567. if test ${enable_video_x11_xshape+y}
  21568. then :
  21569. enableval=$enable_video_x11_xshape;
  21570. else $as_nop
  21571. enable_video_x11_xshape=yes
  21572. fi
  21573. if test x$enable_video_x11_xshape = xyes; then
  21574. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21575. "
  21576. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21577. then :
  21578. have_shape_h_hdr=yes
  21579. else $as_nop
  21580. have_shape_h_hdr=no
  21581. fi
  21582. if test x$have_shape_h_hdr = xyes; then
  21583. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21584. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21585. fi
  21586. fi
  21587. fi
  21588. fi
  21589. if test x$have_x != xyes; then
  21590. # Prevent Mesa from including X11 headers
  21591. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21592. fi
  21593. }
  21594. CheckVivanteVideo()
  21595. {
  21596. # Check whether --enable-video-vivante was given.
  21597. if test ${enable_video_vivante+y}
  21598. then :
  21599. enableval=$enable_video_vivante;
  21600. else $as_nop
  21601. enable_video_vivante=yes
  21602. fi
  21603. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21605. printf %s "checking for Vivante VDK API... " >&6; }
  21606. have_vivante_vdk=no
  21607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21608. /* end confdefs.h. */
  21609. #define LINUX
  21610. #define EGL_API_FB
  21611. #include <gc_vdk.h>
  21612. int
  21613. main (void)
  21614. {
  21615. ;
  21616. return 0;
  21617. }
  21618. _ACEOF
  21619. if ac_fn_c_try_compile "$LINENO"
  21620. then :
  21621. have_vivante_vdk=yes
  21622. fi
  21623. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21625. printf "%s\n" "$have_vivante_vdk" >&6; }
  21626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21627. printf %s "checking for Vivante FB API... " >&6; }
  21628. have_vivante_egl=no
  21629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21630. /* end confdefs.h. */
  21631. #define LINUX
  21632. #define EGL_API_FB
  21633. #include <EGL/eglvivante.h>
  21634. int
  21635. main (void)
  21636. {
  21637. ;
  21638. return 0;
  21639. }
  21640. _ACEOF
  21641. if ac_fn_c_try_compile "$LINENO"
  21642. then :
  21643. have_vivante_egl=yes
  21644. fi
  21645. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21647. printf "%s\n" "$have_vivante_egl" >&6; }
  21648. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21649. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21650. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21651. if test x$have_vivante_vdk = xyes; then
  21652. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21653. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21654. fi
  21655. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21656. SUMMARY_video="${SUMMARY_video} vivante"
  21657. have_video=yes
  21658. fi
  21659. fi
  21660. }
  21661. CheckHaikuVideo()
  21662. {
  21663. if test x$enable_video = xyes; then
  21664. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21665. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21666. have_video=yes
  21667. SUMMARY_video="${SUMMARY_video} haiku"
  21668. fi
  21669. }
  21670. CheckCOCOA()
  21671. {
  21672. # Check whether --enable-video-cocoa was given.
  21673. if test ${enable_video_cocoa+y}
  21674. then :
  21675. enableval=$enable_video_cocoa;
  21676. else $as_nop
  21677. enable_video_cocoa=yes
  21678. fi
  21679. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21680. save_CFLAGS="$CFLAGS"
  21681. CFLAGS="$CFLAGS -x objective-c"
  21682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21683. printf %s "checking for Cocoa framework... " >&6; }
  21684. have_cocoa=no
  21685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21686. /* end confdefs.h. */
  21687. #import <Cocoa/Cocoa.h>
  21688. int
  21689. main (void)
  21690. {
  21691. ;
  21692. return 0;
  21693. }
  21694. _ACEOF
  21695. if ac_fn_c_try_compile "$LINENO"
  21696. then :
  21697. have_cocoa=yes
  21698. fi
  21699. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21701. printf "%s\n" "$have_cocoa" >&6; }
  21702. CFLAGS="$save_CFLAGS"
  21703. if test x$have_cocoa = xyes; then
  21704. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21705. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21706. SUMMARY_video="${SUMMARY_video} cocoa"
  21707. have_video=yes
  21708. fi
  21709. fi
  21710. }
  21711. CheckMETAL()
  21712. {
  21713. # Check whether --enable-video-metal was given.
  21714. if test ${enable_video_metal+y}
  21715. then :
  21716. enableval=$enable_video_metal;
  21717. else $as_nop
  21718. enable_video_metal=yes
  21719. fi
  21720. # Check whether --enable-render-metal was given.
  21721. if test ${enable_render_metal+y}
  21722. then :
  21723. enableval=$enable_render_metal;
  21724. else $as_nop
  21725. enable_render_metal=yes
  21726. fi
  21727. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  21728. save_CFLAGS="$CFLAGS"
  21729. CFLAGS="$CFLAGS -x objective-c"
  21730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  21731. printf %s "checking for Metal framework... " >&6; }
  21732. have_metal=no
  21733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21734. /* end confdefs.h. */
  21735. #import <Cocoa/Cocoa.h>
  21736. #import <Metal/Metal.h>
  21737. #import <QuartzCore/CAMetalLayer.h>
  21738. #if TARGET_CPU_X86
  21739. #error Metal doesn't work on this configuration
  21740. #endif
  21741. int
  21742. main (void)
  21743. {
  21744. ;
  21745. return 0;
  21746. }
  21747. _ACEOF
  21748. if ac_fn_c_try_compile "$LINENO"
  21749. then :
  21750. have_metal=yes
  21751. fi
  21752. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21753. CFLAGS="$save_CFLAGS"
  21754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  21755. printf "%s\n" "$have_metal" >&6; }
  21756. if test x$have_metal = xyes; then
  21757. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  21758. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21759. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  21760. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  21761. fi
  21762. SUMMARY_video="${SUMMARY_video} metal"
  21763. else
  21764. enable_video_metal=no
  21765. enable_render_metal=no
  21766. fi
  21767. fi
  21768. }
  21769. CheckDirectFB()
  21770. {
  21771. # Check whether --enable-video-directfb was given.
  21772. if test ${enable_video_directfb+y}
  21773. then :
  21774. enableval=$enable_video_directfb;
  21775. else $as_nop
  21776. enable_video_directfb=no
  21777. fi
  21778. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  21779. pkg_failed=no
  21780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  21781. printf %s "checking for directfb >= 1.0.0... " >&6; }
  21782. if test -n "$DIRECTFB_CFLAGS"; then
  21783. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  21784. elif test -n "$PKG_CONFIG"; then
  21785. if test -n "$PKG_CONFIG" && \
  21786. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21787. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21788. ac_status=$?
  21789. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21790. test $ac_status = 0; }; then
  21791. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  21792. test "x$?" != "x0" && pkg_failed=yes
  21793. else
  21794. pkg_failed=yes
  21795. fi
  21796. else
  21797. pkg_failed=untried
  21798. fi
  21799. if test -n "$DIRECTFB_LIBS"; then
  21800. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  21801. elif test -n "$PKG_CONFIG"; then
  21802. if test -n "$PKG_CONFIG" && \
  21803. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21804. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21805. ac_status=$?
  21806. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21807. test $ac_status = 0; }; then
  21808. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  21809. test "x$?" != "x0" && pkg_failed=yes
  21810. else
  21811. pkg_failed=yes
  21812. fi
  21813. else
  21814. pkg_failed=untried
  21815. fi
  21816. if test $pkg_failed = yes; then
  21817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21818. printf "%s\n" "no" >&6; }
  21819. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21820. _pkg_short_errors_supported=yes
  21821. else
  21822. _pkg_short_errors_supported=no
  21823. fi
  21824. if test $_pkg_short_errors_supported = yes; then
  21825. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21826. else
  21827. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21828. fi
  21829. # Put the nasty error message in config.log where it belongs
  21830. echo "$DIRECTFB_PKG_ERRORS" >&5
  21831. video_directfb=no
  21832. elif test $pkg_failed = untried; then
  21833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21834. printf "%s\n" "no" >&6; }
  21835. video_directfb=no
  21836. else
  21837. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  21838. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  21839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21840. printf "%s\n" "yes" >&6; }
  21841. video_directfb=yes
  21842. fi
  21843. if test x$video_directfb = xyes; then
  21844. # SuSE 11.1 installs directfb-config without directfb-devel
  21845. save_CPPFLAGS="$CPPFLAGS"
  21846. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  21847. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  21848. if test "x$ac_cv_header_directfb_h" = xyes
  21849. then :
  21850. have_directfb_hdr=yes
  21851. else $as_nop
  21852. have_directfb_hdr=no
  21853. fi
  21854. CPPFLAGS="$save_CPPFLAGS"
  21855. video_directfb=$have_directfb_hdr
  21856. fi
  21857. if test x$video_directfb = xyes; then
  21858. # Check whether --enable-directfb-shared was given.
  21859. if test ${enable_directfb_shared+y}
  21860. then :
  21861. enableval=$enable_directfb_shared;
  21862. else $as_nop
  21863. enable_directfb_shared=yes
  21864. fi
  21865. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  21866. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  21867. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  21868. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  21869. directfb_shared=no
  21870. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  21871. if test x$have_loadso != xyes && \
  21872. test x$enable_directfb_shared = xyes; then
  21873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  21874. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  21875. fi
  21876. if test x$have_loadso = xyes && \
  21877. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  21878. directfb_shared=yes
  21879. echo "-- dynamic libdirectfb -> $directfb_lib"
  21880. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  21881. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  21882. else
  21883. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  21884. SUMMARY_video="${SUMMARY_video} directfb"
  21885. fi
  21886. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  21887. have_video=yes
  21888. fi
  21889. fi
  21890. }
  21891. CheckKMSDRM()
  21892. {
  21893. # Check whether --enable-video-kmsdrm was given.
  21894. if test ${enable_video_kmsdrm+y}
  21895. then :
  21896. enableval=$enable_video_kmsdrm;
  21897. else $as_nop
  21898. enable_video_kmsdrm=yes
  21899. fi
  21900. if test x$enable_video = xyes && \
  21901. test x$enable_video_kmsdrm = xyes && \
  21902. test x$video_opengl_egl = xyes; then
  21903. video_kmsdrm=no
  21904. pkg_failed=no
  21905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21906. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  21907. if test -n "$LIBDRM_CFLAGS"; then
  21908. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21909. elif test -n "$PKG_CONFIG"; then
  21910. if test -n "$PKG_CONFIG" && \
  21911. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21912. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21913. ac_status=$?
  21914. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21915. test $ac_status = 0; }; then
  21916. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  21917. test "x$?" != "x0" && pkg_failed=yes
  21918. else
  21919. pkg_failed=yes
  21920. fi
  21921. else
  21922. pkg_failed=untried
  21923. fi
  21924. if test -n "$LIBDRM_LIBS"; then
  21925. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  21926. elif test -n "$PKG_CONFIG"; then
  21927. if test -n "$PKG_CONFIG" && \
  21928. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21929. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21930. ac_status=$?
  21931. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21932. test $ac_status = 0; }; then
  21933. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  21934. test "x$?" != "x0" && pkg_failed=yes
  21935. else
  21936. pkg_failed=yes
  21937. fi
  21938. else
  21939. pkg_failed=untried
  21940. fi
  21941. if test $pkg_failed = yes; then
  21942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21943. printf "%s\n" "no" >&6; }
  21944. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21945. _pkg_short_errors_supported=yes
  21946. else
  21947. _pkg_short_errors_supported=no
  21948. fi
  21949. if test $_pkg_short_errors_supported = yes; then
  21950. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21951. else
  21952. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21953. fi
  21954. # Put the nasty error message in config.log where it belongs
  21955. echo "$LIBDRM_PKG_ERRORS" >&5
  21956. libdrm_avail=no
  21957. elif test $pkg_failed = untried; then
  21958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21959. printf "%s\n" "no" >&6; }
  21960. libdrm_avail=no
  21961. else
  21962. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  21963. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  21964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21965. printf "%s\n" "yes" >&6; }
  21966. libdrm_avail=yes
  21967. fi
  21968. pkg_failed=no
  21969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  21970. printf %s "checking for gbm >= 11.1.0... " >&6; }
  21971. if test -n "$LIBGBM_CFLAGS"; then
  21972. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  21973. elif test -n "$PKG_CONFIG"; then
  21974. if test -n "$PKG_CONFIG" && \
  21975. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21976. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21977. ac_status=$?
  21978. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21979. test $ac_status = 0; }; then
  21980. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  21981. test "x$?" != "x0" && pkg_failed=yes
  21982. else
  21983. pkg_failed=yes
  21984. fi
  21985. else
  21986. pkg_failed=untried
  21987. fi
  21988. if test -n "$LIBGBM_LIBS"; then
  21989. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  21990. elif test -n "$PKG_CONFIG"; then
  21991. if test -n "$PKG_CONFIG" && \
  21992. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21993. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21994. ac_status=$?
  21995. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21996. test $ac_status = 0; }; then
  21997. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  21998. test "x$?" != "x0" && pkg_failed=yes
  21999. else
  22000. pkg_failed=yes
  22001. fi
  22002. else
  22003. pkg_failed=untried
  22004. fi
  22005. if test $pkg_failed = yes; then
  22006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22007. printf "%s\n" "no" >&6; }
  22008. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22009. _pkg_short_errors_supported=yes
  22010. else
  22011. _pkg_short_errors_supported=no
  22012. fi
  22013. if test $_pkg_short_errors_supported = yes; then
  22014. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22015. else
  22016. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22017. fi
  22018. # Put the nasty error message in config.log where it belongs
  22019. echo "$LIBGBM_PKG_ERRORS" >&5
  22020. libgbm_avail=no
  22021. elif test $pkg_failed = untried; then
  22022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22023. printf "%s\n" "no" >&6; }
  22024. libgbm_avail=no
  22025. else
  22026. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22027. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22029. printf "%s\n" "yes" >&6; }
  22030. libgbm_avail=yes
  22031. fi
  22032. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22033. video_kmsdrm=yes
  22034. fi
  22035. if test x$video_kmsdrm = xyes; then
  22036. # Check whether --enable-kmsdrm-shared was given.
  22037. if test ${enable_kmsdrm_shared+y}
  22038. then :
  22039. enableval=$enable_kmsdrm_shared;
  22040. else $as_nop
  22041. enable_kmsdrm_shared=yes
  22042. fi
  22043. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22044. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22045. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22047. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22048. kmsdrm_shared=no
  22049. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22050. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22051. if test x$have_loadso != xyes && \
  22052. test x$enable_kmsdrm_shared = xyes; then
  22053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22054. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22055. fi
  22056. if test x$have_loadso = xyes && \
  22057. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22058. kmsdrm_shared=yes
  22059. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22060. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22061. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22062. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22063. else
  22064. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22065. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22066. fi
  22067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22068. printf "%s\n" "$kmsdrm_shared" >&6; }
  22069. if test x$kmsdrm_shared = xyes; then
  22070. echo "-- dynamic libdrm -> $drm_lib"
  22071. echo "-- dynamic libgbm -> $gbm_lib"
  22072. fi
  22073. have_video=yes
  22074. fi
  22075. fi
  22076. }
  22077. CheckDummyVideo()
  22078. {
  22079. # Check whether --enable-video-dummy was given.
  22080. if test ${enable_video_dummy+y}
  22081. then :
  22082. enableval=$enable_video_dummy;
  22083. else $as_nop
  22084. enable_video_dummy=yes
  22085. fi
  22086. if test x$enable_video_dummy = xyes; then
  22087. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22088. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22089. have_video=yes
  22090. SUMMARY_video="${SUMMARY_video} dummy"
  22091. fi
  22092. }
  22093. CheckOffscreenVideo()
  22094. {
  22095. # Check whether --enable-video-offscreen was given.
  22096. if test ${enable_video_offscreen+y}
  22097. then :
  22098. enableval=$enable_video_offscreen;
  22099. else $as_nop
  22100. enable_video_offscreen=yes
  22101. fi
  22102. if test x$enable_video_offscreen = xyes; then
  22103. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22104. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22105. have_video=yes
  22106. SUMMARY_video="${SUMMARY_video} offscreen"
  22107. fi
  22108. }
  22109. CheckQNXVideo()
  22110. {
  22111. if test x$enable_video = xyes; then
  22112. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22113. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22114. have_video=yes
  22115. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22116. SUMMARY_video="${SUMMARY_video} qnx"
  22117. fi
  22118. }
  22119. CheckQNXAudio()
  22120. {
  22121. if test x$enable_audio = xyes; then
  22122. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22123. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22124. have_audio=yes
  22125. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22126. SUMMARY_audio="${SUMMARY_audio} qsa"
  22127. fi
  22128. }
  22129. # Check whether --enable-video-opengl was given.
  22130. if test ${enable_video_opengl+y}
  22131. then :
  22132. enableval=$enable_video_opengl;
  22133. else $as_nop
  22134. enable_video_opengl=yes
  22135. fi
  22136. CheckGLX()
  22137. {
  22138. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22140. printf %s "checking for GLX support... " >&6; }
  22141. video_opengl_glx=no
  22142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22143. /* end confdefs.h. */
  22144. #include <GL/glx.h>
  22145. int
  22146. main (void)
  22147. {
  22148. ;
  22149. return 0;
  22150. }
  22151. _ACEOF
  22152. if ac_fn_c_try_compile "$LINENO"
  22153. then :
  22154. video_opengl_glx=yes
  22155. fi
  22156. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22158. printf "%s\n" "$video_opengl_glx" >&6; }
  22159. if test x$video_opengl_glx = xyes; then
  22160. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22161. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22162. fi
  22163. fi
  22164. }
  22165. # Check whether --enable-video-opengles was given.
  22166. if test ${enable_video_opengles+y}
  22167. then :
  22168. enableval=$enable_video_opengles;
  22169. else $as_nop
  22170. enable_video_opengles=yes
  22171. fi
  22172. # Check whether --enable-video-opengles1 was given.
  22173. if test ${enable_video_opengles1+y}
  22174. then :
  22175. enableval=$enable_video_opengles1;
  22176. else $as_nop
  22177. enable_video_opengles1=yes
  22178. fi
  22179. # Check whether --enable-video-opengles2 was given.
  22180. if test ${enable_video_opengles2+y}
  22181. then :
  22182. enableval=$enable_video_opengles2;
  22183. else $as_nop
  22184. enable_video_opengles2=yes
  22185. fi
  22186. CheckEGL()
  22187. {
  22188. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22190. printf %s "checking for EGL support... " >&6; }
  22191. video_opengl_egl=no
  22192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22193. /* end confdefs.h. */
  22194. #define LINUX
  22195. #define EGL_API_FB
  22196. #define MESA_EGL_NO_X11_HEADERS
  22197. #define EGL_NO_X11
  22198. #include <EGL/egl.h>
  22199. #include <EGL/eglext.h>
  22200. int
  22201. main (void)
  22202. {
  22203. ;
  22204. return 0;
  22205. }
  22206. _ACEOF
  22207. if ac_fn_c_try_compile "$LINENO"
  22208. then :
  22209. video_opengl_egl=yes
  22210. fi
  22211. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22213. printf "%s\n" "$video_opengl_egl" >&6; }
  22214. if test x$video_opengl_egl = xyes; then
  22215. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22216. fi
  22217. fi
  22218. }
  22219. CheckOpenGL()
  22220. {
  22221. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22223. printf %s "checking for OpenGL headers... " >&6; }
  22224. video_opengl=no
  22225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22226. /* end confdefs.h. */
  22227. #include <GL/gl.h>
  22228. #include <GL/glext.h>
  22229. int
  22230. main (void)
  22231. {
  22232. ;
  22233. return 0;
  22234. }
  22235. _ACEOF
  22236. if ac_fn_c_try_compile "$LINENO"
  22237. then :
  22238. video_opengl=yes
  22239. fi
  22240. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22242. printf "%s\n" "$video_opengl" >&6; }
  22243. if test x$video_opengl = xyes; then
  22244. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22245. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22246. SUMMARY_video="${SUMMARY_video} opengl"
  22247. fi
  22248. fi
  22249. }
  22250. CheckOpenGLES()
  22251. {
  22252. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22253. if test x$enable_video_opengles1 = xyes; then
  22254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22255. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22256. video_opengles_v1=no
  22257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22258. /* end confdefs.h. */
  22259. #include <GLES/gl.h>
  22260. #include <GLES/glext.h>
  22261. int
  22262. main (void)
  22263. {
  22264. ;
  22265. return 0;
  22266. }
  22267. _ACEOF
  22268. if ac_fn_c_try_compile "$LINENO"
  22269. then :
  22270. video_opengles_v1=yes
  22271. fi
  22272. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22274. printf "%s\n" "$video_opengles_v1" >&6; }
  22275. if test x$video_opengles_v1 = xyes; then
  22276. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22277. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22278. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22279. fi
  22280. fi
  22281. if test x$enable_video_opengles2 = xyes; then
  22282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22283. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22284. video_opengles_v2=no
  22285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22286. /* end confdefs.h. */
  22287. #include <GLES2/gl2.h>
  22288. #include <GLES2/gl2ext.h>
  22289. int
  22290. main (void)
  22291. {
  22292. ;
  22293. return 0;
  22294. }
  22295. _ACEOF
  22296. if ac_fn_c_try_compile "$LINENO"
  22297. then :
  22298. video_opengles_v2=yes
  22299. fi
  22300. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22302. printf "%s\n" "$video_opengles_v2" >&6; }
  22303. if test x$video_opengles_v2 = xyes; then
  22304. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22305. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22306. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22307. fi
  22308. fi
  22309. fi
  22310. }
  22311. CheckWINDOWSGL()
  22312. {
  22313. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22314. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22315. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22316. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22317. SUMMARY_video="${SUMMARY_video} opengl"
  22318. fi
  22319. }
  22320. CheckWINDOWSGLES()
  22321. {
  22322. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22324. printf %s "checking for EGL support... " >&6; }
  22325. video_opengl_egl=no
  22326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22327. /* end confdefs.h. */
  22328. #include <EGL/egl.h>
  22329. int
  22330. main (void)
  22331. {
  22332. ;
  22333. return 0;
  22334. }
  22335. _ACEOF
  22336. if ac_fn_c_try_compile "$LINENO"
  22337. then :
  22338. video_opengl_egl=yes
  22339. fi
  22340. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22342. printf "%s\n" "$video_opengl_egl" >&6; }
  22343. if test x$video_opengl_egl = xyes; then
  22344. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22345. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22346. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22347. fi
  22348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22349. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22350. video_opengles_v2=no
  22351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22352. /* end confdefs.h. */
  22353. #include <GLES2/gl2.h>
  22354. #include <GLES2/gl2ext.h>
  22355. int
  22356. main (void)
  22357. {
  22358. ;
  22359. return 0;
  22360. }
  22361. _ACEOF
  22362. if ac_fn_c_try_compile "$LINENO"
  22363. then :
  22364. video_opengles_v2=yes
  22365. fi
  22366. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22368. printf "%s\n" "$video_opengles_v2" >&6; }
  22369. if test x$video_opengles_v2 = xyes; then
  22370. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  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. }
  22377. CheckHaikuGL()
  22378. {
  22379. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22380. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22381. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22382. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22383. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22384. SUMMARY_video="${SUMMARY_video} opengl"
  22385. fi
  22386. }
  22387. CheckMacGL()
  22388. {
  22389. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22390. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22391. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22392. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22393. SUMMARY_video="${SUMMARY_video} opengl"
  22394. fi
  22395. }
  22396. CheckMacGLES()
  22397. {
  22398. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22399. video_opengl_egl=yes
  22400. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22401. video_opengles_v2=yes
  22402. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22403. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22404. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22405. fi
  22406. }
  22407. CheckEmscriptenGLES()
  22408. {
  22409. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22411. printf %s "checking for EGL support... " >&6; }
  22412. video_opengl_egl=no
  22413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22414. /* end confdefs.h. */
  22415. #include <EGL/egl.h>
  22416. int
  22417. main (void)
  22418. {
  22419. ;
  22420. return 0;
  22421. }
  22422. _ACEOF
  22423. if ac_fn_c_try_compile "$LINENO"
  22424. then :
  22425. video_opengl_egl=yes
  22426. fi
  22427. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22429. printf "%s\n" "$video_opengl_egl" >&6; }
  22430. if test x$video_opengl_egl = xyes; then
  22431. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22432. fi
  22433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22434. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22435. video_opengles_v2=no
  22436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22437. /* end confdefs.h. */
  22438. #include <GLES2/gl2.h>
  22439. #include <GLES2/gl2ext.h>
  22440. int
  22441. main (void)
  22442. {
  22443. ;
  22444. return 0;
  22445. }
  22446. _ACEOF
  22447. if ac_fn_c_try_compile "$LINENO"
  22448. then :
  22449. video_opengles_v2=yes
  22450. fi
  22451. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22453. printf "%s\n" "$video_opengles_v2" >&6; }
  22454. if test x$video_opengles_v2 = xyes; then
  22455. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22456. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22457. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22458. fi
  22459. fi
  22460. }
  22461. # Check whether --enable-video-vulkan was given.
  22462. if test ${enable_video_vulkan+y}
  22463. then :
  22464. enableval=$enable_video_vulkan;
  22465. else $as_nop
  22466. enable_video_vulkan=yes
  22467. fi
  22468. CheckVulkan()
  22469. {
  22470. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22471. case "$host" in
  22472. *-*-android*)
  22473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22474. /* end confdefs.h. */
  22475. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22476. #error Vulkan doesn't work on this configuration
  22477. #endif
  22478. int
  22479. main (void)
  22480. {
  22481. ;
  22482. return 0;
  22483. }
  22484. _ACEOF
  22485. if ac_fn_c_try_compile "$LINENO"
  22486. then :
  22487. else $as_nop
  22488. enable_video_vulkan=no
  22489. fi
  22490. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22491. ;;
  22492. *-*-darwin*)
  22493. save_CFLAGS="$CFLAGS"
  22494. CFLAGS="$CFLAGS -x objective-c"
  22495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22496. /* end confdefs.h. */
  22497. #include <Cocoa/Cocoa.h>
  22498. #include <Metal/Metal.h>
  22499. #include <QuartzCore/CAMetalLayer.h>
  22500. #if TARGET_CPU_X86
  22501. #error Vulkan doesn't work on this configuration
  22502. #endif
  22503. int
  22504. main (void)
  22505. {
  22506. ;
  22507. return 0;
  22508. }
  22509. _ACEOF
  22510. if ac_fn_c_try_compile "$LINENO"
  22511. then :
  22512. else $as_nop
  22513. enable_video_vulkan=no
  22514. fi
  22515. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22516. CFLAGS="$save_CFLAGS"
  22517. ;;
  22518. *)
  22519. ;;
  22520. esac
  22521. if test x$enable_video_vulkan = xno; then
  22522. # For reasons I am totally unable to see, I get an undefined macro error if
  22523. # I put this in the AC_TRY_COMPILE.
  22524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22525. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22526. fi
  22527. fi
  22528. if test x$have_loadso != xyes; then
  22529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22530. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22531. enable_video_vulkan=no
  22532. fi
  22533. if test x$enable_video_vulkan = xyes; then
  22534. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22535. SUMMARY_video="${SUMMARY_video} vulkan"
  22536. fi
  22537. }
  22538. CheckInputEvents()
  22539. {
  22540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22541. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22542. use_input_events=no
  22543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22544. /* end confdefs.h. */
  22545. #include <linux/input.h>
  22546. int
  22547. main (void)
  22548. {
  22549. #ifndef EVIOCGNAME
  22550. #error EVIOCGNAME() ioctl not available
  22551. #endif
  22552. ;
  22553. return 0;
  22554. }
  22555. _ACEOF
  22556. if ac_fn_c_try_compile "$LINENO"
  22557. then :
  22558. use_input_events=yes
  22559. fi
  22560. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22562. printf "%s\n" "$use_input_events" >&6; }
  22563. if test x$use_input_events = xyes; then
  22564. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22565. SUMMARY_input="${SUMMARY_input} linuxev"
  22566. fi
  22567. }
  22568. CheckInputKD()
  22569. {
  22570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22571. printf %s "checking for Linux kd.h... " >&6; }
  22572. use_input_kd=no
  22573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22574. /* end confdefs.h. */
  22575. #include <linux/kd.h>
  22576. #include <linux/keyboard.h>
  22577. #include <sys/ioctl.h>
  22578. int
  22579. main (void)
  22580. {
  22581. struct kbentry kbe;
  22582. kbe.kb_table = KG_CTRL;
  22583. ioctl(0, KDGKBENT, &kbe);
  22584. ;
  22585. return 0;
  22586. }
  22587. _ACEOF
  22588. if ac_fn_c_try_compile "$LINENO"
  22589. then :
  22590. use_input_kd=yes
  22591. fi
  22592. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22594. printf "%s\n" "$use_input_kd" >&6; }
  22595. if test x$use_input_kd = xyes; then
  22596. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22597. SUMMARY_input="${SUMMARY_input} linuxkd"
  22598. fi
  22599. }
  22600. CheckInputKBIO()
  22601. {
  22602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22603. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22604. use_input_kbio=no
  22605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22606. /* end confdefs.h. */
  22607. #include <sys/kbio.h>
  22608. #include <sys/ioctl.h>
  22609. int
  22610. main (void)
  22611. {
  22612. accentmap_t accTable;
  22613. ioctl(0, KDENABIO, 1);
  22614. ;
  22615. return 0;
  22616. }
  22617. _ACEOF
  22618. if ac_fn_c_try_compile "$LINENO"
  22619. then :
  22620. use_input_kbio=yes
  22621. fi
  22622. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22624. printf "%s\n" "$use_input_kbio" >&6; }
  22625. if test x$use_input_kbio = xyes; then
  22626. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22627. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22628. fi
  22629. }
  22630. CheckInputWSCONS()
  22631. {
  22632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22633. printf %s "checking for OpenBSD wscons... " >&6; }
  22634. use_input_wscons=no
  22635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22636. /* end confdefs.h. */
  22637. #include <sys/time.h>
  22638. #include <dev/wscons/wsconsio.h>
  22639. #include <dev/wscons/wsksymdef.h>
  22640. #include <dev/wscons/wsksymvar.h>
  22641. #include <sys/ioctl.h>
  22642. int
  22643. main (void)
  22644. {
  22645. struct wskbd_map_data data;
  22646. ioctl(0, WSKBDIO_GETMAP, &data);
  22647. ;
  22648. return 0;
  22649. }
  22650. _ACEOF
  22651. if ac_fn_c_try_compile "$LINENO"
  22652. then :
  22653. use_input_wscons=yes
  22654. fi
  22655. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  22657. printf "%s\n" "$use_input_wscons" >&6; }
  22658. if test x$use_input_wscons = xyes; then
  22659. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  22660. SUMMARY_input="${SUMMARY_input} wscons"
  22661. fi
  22662. }
  22663. CheckLibUDev()
  22664. {
  22665. # Check whether --enable-libudev was given.
  22666. if test ${enable_libudev+y}
  22667. then :
  22668. enableval=$enable_libudev;
  22669. else $as_nop
  22670. enable_libudev=yes
  22671. fi
  22672. if test x$enable_libudev = xyes; then
  22673. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  22674. if test "x$ac_cv_header_libudev_h" = xyes
  22675. then :
  22676. have_libudev_h_hdr=yes
  22677. else $as_nop
  22678. have_libudev_h_hdr=no
  22679. fi
  22680. if test x$have_libudev_h_hdr = xyes; then
  22681. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  22682. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22683. if test x$udev_lib != x; then
  22684. echo "-- dynamic udev -> $udev_lib"
  22685. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  22686. fi
  22687. fi
  22688. fi
  22689. }
  22690. CheckDBus()
  22691. {
  22692. # Check whether --enable-dbus was given.
  22693. if test ${enable_dbus+y}
  22694. then :
  22695. enableval=$enable_dbus;
  22696. else $as_nop
  22697. enable_dbus=yes
  22698. fi
  22699. if test x$enable_dbus = xyes; then
  22700. pkg_failed=no
  22701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  22702. printf %s "checking for dbus-1... " >&6; }
  22703. if test -n "$DBUS_CFLAGS"; then
  22704. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  22705. elif test -n "$PKG_CONFIG"; then
  22706. if test -n "$PKG_CONFIG" && \
  22707. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22708. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22709. ac_status=$?
  22710. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22711. test $ac_status = 0; }; then
  22712. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  22713. test "x$?" != "x0" && pkg_failed=yes
  22714. else
  22715. pkg_failed=yes
  22716. fi
  22717. else
  22718. pkg_failed=untried
  22719. fi
  22720. if test -n "$DBUS_LIBS"; then
  22721. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  22722. elif test -n "$PKG_CONFIG"; then
  22723. if test -n "$PKG_CONFIG" && \
  22724. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22725. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22726. ac_status=$?
  22727. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22728. test $ac_status = 0; }; then
  22729. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  22730. test "x$?" != "x0" && pkg_failed=yes
  22731. else
  22732. pkg_failed=yes
  22733. fi
  22734. else
  22735. pkg_failed=untried
  22736. fi
  22737. if test $pkg_failed = yes; then
  22738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22739. printf "%s\n" "no" >&6; }
  22740. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22741. _pkg_short_errors_supported=yes
  22742. else
  22743. _pkg_short_errors_supported=no
  22744. fi
  22745. if test $_pkg_short_errors_supported = yes; then
  22746. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  22747. else
  22748. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  22749. fi
  22750. # Put the nasty error message in config.log where it belongs
  22751. echo "$DBUS_PKG_ERRORS" >&5
  22752. have_dbus=no
  22753. elif test $pkg_failed = untried; then
  22754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22755. printf "%s\n" "no" >&6; }
  22756. have_dbus=no
  22757. else
  22758. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  22759. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  22760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22761. printf "%s\n" "yes" >&6; }
  22762. have_dbus=yes
  22763. fi
  22764. save_CPPFLAGS="$CPPFLAGS"
  22765. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  22766. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  22767. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  22768. then :
  22769. have_dbus_dbus_h_hdr=yes
  22770. else $as_nop
  22771. have_dbus_dbus_h_hdr=no
  22772. fi
  22773. CPPFLAGS="$save_CPPFLAGS"
  22774. if test x$have_dbus_dbus_h_hdr = xyes; then
  22775. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  22776. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  22777. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  22778. fi
  22779. fi
  22780. }
  22781. CheckIME()
  22782. {
  22783. # Check whether --enable-ime was given.
  22784. if test ${enable_ime+y}
  22785. then :
  22786. enableval=$enable_ime;
  22787. else $as_nop
  22788. enable_ime=yes
  22789. fi
  22790. if test x$enable_ime = xyes; then
  22791. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  22792. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  22793. fi
  22794. }
  22795. CheckInotify()
  22796. {
  22797. save_LIBS="$LIBS"
  22798. case "$host" in
  22799. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  22800. ;;
  22801. esac
  22802. for ac_header in sys/inotify.h
  22803. do :
  22804. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  22805. if test "x$ac_cv_header_sys_inotify_h" = xyes
  22806. then :
  22807. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  22808. have_inotify_inotify_h_hdr=yes
  22809. fi
  22810. done
  22811. for ac_func in inotify_init
  22812. do :
  22813. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  22814. if test "x$ac_cv_func_inotify_init" = xyes
  22815. then :
  22816. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  22817. have_inotify=yes
  22818. fi
  22819. done
  22820. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  22821. if test "x$ac_cv_func_inotify_init1" = xyes
  22822. then :
  22823. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  22824. fi
  22825. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  22826. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  22827. case "$host" in
  22828. *-*-freebsd*|*-*-dragonfly*)
  22829. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  22830. ;;
  22831. esac
  22832. fi
  22833. LIBS="$save_LIBS"
  22834. }
  22835. CheckIBus()
  22836. {
  22837. # Check whether --enable-ibus was given.
  22838. if test ${enable_ibus+y}
  22839. then :
  22840. enableval=$enable_ibus;
  22841. else $as_nop
  22842. enable_ibus=yes
  22843. fi
  22844. if test x$enable_ibus = xyes; then
  22845. pkg_failed=no
  22846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22847. printf %s "checking for ibus-1.0... " >&6; }
  22848. if test -n "$IBUS_CFLAGS"; then
  22849. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  22850. elif test -n "$PKG_CONFIG"; then
  22851. if test -n "$PKG_CONFIG" && \
  22852. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22853. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22854. ac_status=$?
  22855. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22856. test $ac_status = 0; }; then
  22857. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  22858. test "x$?" != "x0" && pkg_failed=yes
  22859. else
  22860. pkg_failed=yes
  22861. fi
  22862. else
  22863. pkg_failed=untried
  22864. fi
  22865. if test -n "$IBUS_LIBS"; then
  22866. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  22867. elif test -n "$PKG_CONFIG"; then
  22868. if test -n "$PKG_CONFIG" && \
  22869. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22870. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22871. ac_status=$?
  22872. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22873. test $ac_status = 0; }; then
  22874. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  22875. test "x$?" != "x0" && pkg_failed=yes
  22876. else
  22877. pkg_failed=yes
  22878. fi
  22879. else
  22880. pkg_failed=untried
  22881. fi
  22882. if test $pkg_failed = yes; then
  22883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22884. printf "%s\n" "no" >&6; }
  22885. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22886. _pkg_short_errors_supported=yes
  22887. else
  22888. _pkg_short_errors_supported=no
  22889. fi
  22890. if test $_pkg_short_errors_supported = yes; then
  22891. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22892. else
  22893. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22894. fi
  22895. # Put the nasty error message in config.log where it belongs
  22896. echo "$IBUS_PKG_ERRORS" >&5
  22897. have_ibus=no
  22898. elif test $pkg_failed = untried; then
  22899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22900. printf "%s\n" "no" >&6; }
  22901. have_ibus=no
  22902. else
  22903. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  22904. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  22905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22906. printf "%s\n" "yes" >&6; }
  22907. have_ibus=yes
  22908. fi
  22909. save_CPPFLAGS="$CPPFLAGS"
  22910. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  22911. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  22912. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  22913. then :
  22914. have_ibus_ibus_h_hdr=yes
  22915. else $as_nop
  22916. have_ibus_ibus_h_hdr=no
  22917. fi
  22918. CPPFLAGS="$save_CPPFLAGS"
  22919. if test x$have_ibus_ibus_h_hdr = xyes; then
  22920. if test x$enable_ime != xyes; then
  22921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  22922. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  22923. have_ibus_ibus_h_hdr=no
  22924. elif test x$enable_dbus != xyes; then
  22925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  22926. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  22927. have_ibus_ibus_h_hdr=no
  22928. elif test x$have_inotify_inotify_h_hdr != xyes; then
  22929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  22930. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  22931. have_ibus_ibus_h_hdr=no
  22932. else
  22933. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  22934. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  22935. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  22936. fi
  22937. fi
  22938. fi
  22939. }
  22940. CheckFcitx()
  22941. {
  22942. # Check whether --enable-fcitx was given.
  22943. if test ${enable_fcitx+y}
  22944. then :
  22945. enableval=$enable_fcitx;
  22946. else $as_nop
  22947. enable_fcitx=yes
  22948. fi
  22949. if test x$enable_fcitx = xyes; then
  22950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  22951. printf %s "checking for fcitx support... " >&6; }
  22952. have_fcitx=no
  22953. if test x$enable_ime != xyes; then
  22954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  22955. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  22956. elif test x$have_dbus_dbus_h_hdr != xyes; then
  22957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  22958. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  22959. else
  22960. have_fcitx=yes
  22961. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  22962. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  22963. fi
  22964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  22965. printf "%s\n" "$have_fcitx" >&6; }
  22966. fi
  22967. }
  22968. CheckJoystickMFI()
  22969. {
  22970. # Check whether --enable-joystick-mfi was given.
  22971. if test ${enable_joystick_mfi+y}
  22972. then :
  22973. enableval=$enable_joystick_mfi;
  22974. else $as_nop
  22975. enable_joystick_mfi=yes
  22976. fi
  22977. if test x$enable_joystick_mfi = xyes; then
  22978. save_CFLAGS="$CFLAGS"
  22979. save_LDFLAGS="$LDFLAGS"
  22980. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  22981. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  22983. printf %s "checking for GameController framework... " >&6; }
  22984. enable_joystick_mfi=no
  22985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22986. /* end confdefs.h. */
  22987. #include <AvailabilityMacros.h>
  22988. #include <TargetConditionals.h>
  22989. #import <GameController/GameController.h>
  22990. int
  22991. main (void)
  22992. {
  22993. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  22994. #error GameController framework doesn't work on this configuration
  22995. #endif
  22996. #if TARGET_CPU_X86
  22997. #error GameController framework doesn't work on this configuration
  22998. #endif
  22999. ;
  23000. return 0;
  23001. }
  23002. _ACEOF
  23003. if ac_fn_c_try_link "$LINENO"
  23004. then :
  23005. enable_joystick_mfi=yes
  23006. fi
  23007. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23008. conftest$ac_exeext conftest.$ac_ext
  23009. CFLAGS="$save_CFLAGS"
  23010. LDFLAGS="$save_LDFLAGS"
  23011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23012. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23013. if test x$enable_joystick_mfi = xyes; then
  23014. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23015. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23016. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23017. fi
  23018. fi
  23019. }
  23020. CheckPTHREAD()
  23021. {
  23022. case "$host" in
  23023. *-*-emscripten*)
  23024. enable_pthreads_default=no
  23025. ;;
  23026. *)
  23027. enable_pthreads_default=yes
  23028. ;;
  23029. esac
  23030. # Check whether --enable-pthreads was given.
  23031. if test ${enable_pthreads+y}
  23032. then :
  23033. enableval=$enable_pthreads;
  23034. else $as_nop
  23035. enable_pthreads=maybe
  23036. fi
  23037. # Check whether --enable-pthread-sem was given.
  23038. if test ${enable_pthread_sem+y}
  23039. then :
  23040. enableval=$enable_pthread_sem;
  23041. else $as_nop
  23042. enable_pthread_sem=maybe
  23043. fi
  23044. if test x$enable_pthreads = xmaybe; then
  23045. enable_pthreads=$enable_pthreads_default
  23046. fi
  23047. if test x$enable_pthread_sem = xmaybe; then
  23048. enable_pthread_sem=$enable_pthreads
  23049. fi
  23050. case "$host" in
  23051. *-*-android*)
  23052. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23053. pthread_lib=""
  23054. ;;
  23055. *-*-linux*|*-*-uclinux*)
  23056. pthread_cflags="-D_REENTRANT"
  23057. pthread_lib="-lpthread"
  23058. ;;
  23059. *-*-bsdi*)
  23060. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23061. pthread_lib=""
  23062. ;;
  23063. *-*-darwin*)
  23064. pthread_cflags="-D_THREAD_SAFE"
  23065. # causes Carbon.p complaints?
  23066. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23067. ;;
  23068. *-*-freebsd*|*-*-dragonfly*)
  23069. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23070. pthread_lib="-pthread"
  23071. ;;
  23072. *-*-netbsd*)
  23073. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23074. pthread_lib="-lpthread"
  23075. ;;
  23076. *-*-openbsd*)
  23077. pthread_cflags="-D_REENTRANT"
  23078. pthread_lib="-pthread"
  23079. ;;
  23080. *-*-solaris2.9)
  23081. # From Solaris 9+, posix4's preferred name is rt.
  23082. pthread_cflags="-D_REENTRANT"
  23083. pthread_lib="-lpthread -lrt"
  23084. ;;
  23085. *-*-solaris2.10)
  23086. # Solaris 10+ merged pthread into libc.
  23087. pthread_cflags="-D_REENTRANT"
  23088. pthread_lib="-lrt"
  23089. ;;
  23090. *-*-solaris*)
  23091. # Solaris 11+ merged rt into libc.
  23092. pthread_cflags="-D_REENTRANT"
  23093. pthread_lib=""
  23094. ;;
  23095. *-*-sysv5*)
  23096. pthread_cflags="-D_REENTRANT -Kthread"
  23097. pthread_lib=""
  23098. ;;
  23099. *-*-aix*)
  23100. pthread_cflags="-D_REENTRANT -mthreads"
  23101. pthread_lib="-lpthread"
  23102. ;;
  23103. *-*-hpux11*)
  23104. pthread_cflags="-D_REENTRANT"
  23105. pthread_lib="-L/usr/lib -lpthread"
  23106. ;;
  23107. *-*-haiku*)
  23108. pthread_cflags="-D_REENTRANT"
  23109. pthread_lib=""
  23110. ;;
  23111. *-*-nto*)
  23112. pthread_cflags="-D_REENTRANT"
  23113. pthread_lib=""
  23114. ;;
  23115. *-*-emscripten*)
  23116. pthread_cflags="-D_REENTRANT -pthread"
  23117. pthread_lib="-pthread"
  23118. ;;
  23119. *)
  23120. pthread_cflags="-D_REENTRANT"
  23121. pthread_lib="-lpthread"
  23122. ;;
  23123. esac
  23124. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23125. # Save the original compiler flags and libraries
  23126. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23127. # Add the pthread compiler flags and libraries
  23128. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23129. # Check to see if we have pthread support on this system
  23130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23131. printf %s "checking for pthreads... " >&6; }
  23132. use_pthreads=no
  23133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23134. /* end confdefs.h. */
  23135. #include <pthread.h>
  23136. int
  23137. main (void)
  23138. {
  23139. pthread_attr_t type;
  23140. pthread_attr_init(&type);
  23141. ;
  23142. return 0;
  23143. }
  23144. _ACEOF
  23145. if ac_fn_c_try_link "$LINENO"
  23146. then :
  23147. use_pthreads=yes
  23148. fi
  23149. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23150. conftest$ac_exeext conftest.$ac_ext
  23151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23152. printf "%s\n" "$use_pthreads" >&6; }
  23153. # Restore the compiler flags and libraries
  23154. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23155. # Do futher testing if we have pthread support...
  23156. if test x$use_pthreads = xyes; then
  23157. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23158. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23159. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23160. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23161. # Save the original compiler flags and libraries
  23162. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23163. # Add the pthread compiler flags and libraries
  23164. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23165. # Check to see if recursive mutexes are available
  23166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23167. printf %s "checking for recursive mutexes... " >&6; }
  23168. has_recursive_mutexes=no
  23169. if test x$has_recursive_mutexes = xno; then
  23170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23171. /* end confdefs.h. */
  23172. #define _GNU_SOURCE 1
  23173. #include <pthread.h>
  23174. int
  23175. main (void)
  23176. {
  23177. pthread_mutexattr_t attr;
  23178. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23179. ;
  23180. return 0;
  23181. }
  23182. _ACEOF
  23183. if ac_fn_c_try_link "$LINENO"
  23184. then :
  23185. has_recursive_mutexes=yes
  23186. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23187. fi
  23188. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23189. conftest$ac_exeext conftest.$ac_ext
  23190. fi
  23191. if test x$has_recursive_mutexes = xno; then
  23192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23193. /* end confdefs.h. */
  23194. #define _GNU_SOURCE 1
  23195. #include <pthread.h>
  23196. int
  23197. main (void)
  23198. {
  23199. pthread_mutexattr_t attr;
  23200. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23201. ;
  23202. return 0;
  23203. }
  23204. _ACEOF
  23205. if ac_fn_c_try_link "$LINENO"
  23206. then :
  23207. has_recursive_mutexes=yes
  23208. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23209. fi
  23210. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23211. conftest$ac_exeext conftest.$ac_ext
  23212. fi
  23213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23214. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23215. # Check to see if pthread semaphore support is missing
  23216. if test x$enable_pthread_sem = xyes; then
  23217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23218. printf %s "checking for pthread semaphores... " >&6; }
  23219. have_pthread_sem=no
  23220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23221. /* end confdefs.h. */
  23222. #include <pthread.h>
  23223. #include <semaphore.h>
  23224. int
  23225. main (void)
  23226. {
  23227. ;
  23228. return 0;
  23229. }
  23230. _ACEOF
  23231. if ac_fn_c_try_compile "$LINENO"
  23232. then :
  23233. have_pthread_sem=yes
  23234. fi
  23235. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23237. printf "%s\n" "$have_pthread_sem" >&6; }
  23238. fi
  23239. if test x$have_pthread_sem = xyes; then
  23240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23241. printf %s "checking for sem_timedwait... " >&6; }
  23242. have_sem_timedwait=no
  23243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23244. /* end confdefs.h. */
  23245. #include <pthread.h>
  23246. #include <semaphore.h>
  23247. int
  23248. main (void)
  23249. {
  23250. sem_timedwait(NULL, NULL);
  23251. ;
  23252. return 0;
  23253. }
  23254. _ACEOF
  23255. if ac_fn_c_try_link "$LINENO"
  23256. then :
  23257. have_sem_timedwait=yes
  23258. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23259. fi
  23260. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23261. conftest$ac_exeext conftest.$ac_ext
  23262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23263. printf "%s\n" "$have_sem_timedwait" >&6; }
  23264. fi
  23265. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23266. "
  23267. if test "x$ac_cv_header_pthread_np_h" = xyes
  23268. then :
  23269. have_pthread_np_h=yes
  23270. else $as_nop
  23271. have_pthread_np_h=no
  23272. fi
  23273. if test x$have_pthread_np_h = xyes; then
  23274. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23275. fi
  23276. # Check to see if pthread naming is available
  23277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23278. printf %s "checking for pthread_setname_np... " >&6; }
  23279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23280. /* end confdefs.h. */
  23281. /* Override any GCC internal prototype to avoid an error.
  23282. Use char because int might match the return type of a GCC
  23283. builtin and then its argument prototype would still apply. */
  23284. char pthread_setname_np ();
  23285. int
  23286. main (void)
  23287. {
  23288. return pthread_setname_np ();
  23289. ;
  23290. return 0;
  23291. }
  23292. _ACEOF
  23293. if ac_fn_c_try_link "$LINENO"
  23294. then :
  23295. has_pthread_setname_np=yes
  23296. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23297. else $as_nop
  23298. has_pthread_setname_np=no
  23299. fi
  23300. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23301. conftest$ac_exeext conftest.$ac_ext
  23302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23303. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23305. printf %s "checking for pthread_set_name_np... " >&6; }
  23306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23307. /* end confdefs.h. */
  23308. /* Override any GCC internal prototype to avoid an error.
  23309. Use char because int might match the return type of a GCC
  23310. builtin and then its argument prototype would still apply. */
  23311. char pthread_set_name_np ();
  23312. int
  23313. main (void)
  23314. {
  23315. return pthread_set_name_np ();
  23316. ;
  23317. return 0;
  23318. }
  23319. _ACEOF
  23320. if ac_fn_c_try_link "$LINENO"
  23321. then :
  23322. has_pthread_set_name_np=yes
  23323. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23324. else $as_nop
  23325. has_pthread_set_name_np=no
  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: $has_pthread_set_name_np" >&5
  23330. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23331. # Restore the compiler flags and libraries
  23332. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23333. # Basic thread creation functions
  23334. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23335. # Semaphores
  23336. # We can fake these with mutexes and condition variables if necessary
  23337. if test x$have_pthread_sem = xyes; then
  23338. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23339. else
  23340. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23341. fi
  23342. # Mutexes
  23343. # We can fake these with semaphores if necessary
  23344. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23345. # Condition variables
  23346. # We can fake these with semaphores and mutexes if necessary
  23347. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23348. # Thread local storage
  23349. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23350. have_threads=yes
  23351. fi
  23352. fi
  23353. }
  23354. CheckWINDOWS()
  23355. {
  23356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23357. printf %s "checking Windows compiler... " >&6; }
  23358. have_win32_gcc=no
  23359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23360. /* end confdefs.h. */
  23361. #include <windows.h>
  23362. int
  23363. main (void)
  23364. {
  23365. ;
  23366. return 0;
  23367. }
  23368. _ACEOF
  23369. if ac_fn_c_try_compile "$LINENO"
  23370. then :
  23371. have_win32_gcc=yes
  23372. fi
  23373. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23375. printf "%s\n" "$have_win32_gcc" >&6; }
  23376. if test x$have_win32_gcc != xyes; then
  23377. as_fn_error $? "
  23378. *** Your compiler ($CC) does not produce Windows executables!
  23379. " "$LINENO" 5
  23380. fi
  23381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23382. printf %s "checking Windows CE... " >&6; }
  23383. have_wince=no
  23384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23385. /* end confdefs.h. */
  23386. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23387. #error This is not Windows CE
  23388. #endif
  23389. int
  23390. main (void)
  23391. {
  23392. ;
  23393. return 0;
  23394. }
  23395. _ACEOF
  23396. if ac_fn_c_try_compile "$LINENO"
  23397. then :
  23398. have_wince=yes
  23399. as_fn_error $? "
  23400. *** Sorry, Windows CE is no longer supported.
  23401. " "$LINENO" 5
  23402. fi
  23403. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23405. printf "%s\n" "$have_wince" >&6; }
  23406. # This fixes Windows stack alignment with newer GCC
  23407. CheckStackBoundary
  23408. # headers needed elsewhere
  23409. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23410. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23411. then :
  23412. have_tpcshrd_h=yes
  23413. fi
  23414. if test x$have_tpcshrd_h = xyes; then
  23415. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23416. fi
  23417. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23418. if test "x$ac_cv_header_roapi_h" = xyes
  23419. then :
  23420. have_roapi_h=yes
  23421. fi
  23422. if test x$have_roapi_h = xyes; then
  23423. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23424. fi
  23425. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23426. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23427. then :
  23428. have_shellscalingapi_h=yes
  23429. fi
  23430. if test x$shellscalingapi_h = xyes; then
  23431. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23432. fi
  23433. }
  23434. CheckOS2()
  23435. {
  23436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23437. printf %s "checking OS/2 compiler... " >&6; }
  23438. have_os2_gcc=no
  23439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23440. /* end confdefs.h. */
  23441. #include <os2.h>
  23442. int
  23443. main (void)
  23444. {
  23445. ;
  23446. return 0;
  23447. }
  23448. _ACEOF
  23449. if ac_fn_c_try_compile "$LINENO"
  23450. then :
  23451. have_os2_gcc=yes
  23452. fi
  23453. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23455. printf "%s\n" "$have_os2_gcc" >&6; }
  23456. if test x$have_os2_gcc != xyes; then
  23457. as_fn_error $? "
  23458. *** Your compiler ($CC) does not produce OS/2 executables!
  23459. " "$LINENO" 5
  23460. fi
  23461. }
  23462. CheckDIRECTX()
  23463. {
  23464. # Check whether --enable-directx was given.
  23465. if test ${enable_directx+y}
  23466. then :
  23467. enableval=$enable_directx;
  23468. else $as_nop
  23469. enable_directx=yes
  23470. fi
  23471. if test x$enable_directx = xyes; then
  23472. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23473. if test "x$ac_cv_header_d3d9_h" = xyes
  23474. then :
  23475. have_d3d=yes
  23476. fi
  23477. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23478. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23479. then :
  23480. have_d3d11=yes
  23481. fi
  23482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  23483. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  23484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23485. /* end confdefs.h. */
  23486. #include <winsdkver.h>
  23487. #include <sdkddkver.h>
  23488. #include <d3d12.h>
  23489. ID3D12Device1 *device;
  23490. #if WDK_NTDDI_VERSION <= 0x0A000008
  23491. asdf
  23492. #endif
  23493. int
  23494. main (void)
  23495. {
  23496. ;
  23497. return 0;
  23498. }
  23499. _ACEOF
  23500. if ac_fn_c_try_compile "$LINENO"
  23501. then :
  23502. have_d3d12=yes
  23503. else $as_nop
  23504. have_d3d12=no
  23505. fi
  23506. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23508. printf "%s\n" "$have_d3d12" >&6; }
  23509. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23510. if test "x$ac_cv_header_ddraw_h" = xyes
  23511. then :
  23512. have_ddraw=yes
  23513. fi
  23514. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23515. if test "x$ac_cv_header_dsound_h" = xyes
  23516. then :
  23517. have_dsound=yes
  23518. fi
  23519. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23520. if test "x$ac_cv_header_dinput_h" = xyes
  23521. then :
  23522. have_dinput=yes
  23523. fi
  23524. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23525. if test "x$ac_cv_header_dxgi_h" = xyes
  23526. then :
  23527. have_dxgi=yes
  23528. fi
  23529. if test x$have_ddraw = xyes; then
  23530. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23531. fi
  23532. if test x$have_dinput = xyes; then
  23533. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23534. fi
  23535. if test x$have_dsound = xyes; then
  23536. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23537. fi
  23538. if test x$have_dxgi = xyes; then
  23539. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23540. fi
  23541. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23542. # FIXME: ...so force it off for now.
  23543. case "$host" in
  23544. *-*-cygwin*)
  23545. have_dinput=false
  23546. ;;
  23547. esac
  23548. fi
  23549. # Check whether --enable-xinput was given.
  23550. if test ${enable_xinput+y}
  23551. then :
  23552. enableval=$enable_xinput;
  23553. else $as_nop
  23554. enable_xinput=yes
  23555. fi
  23556. if test x$enable_xinput = xyes; then
  23557. have_xinput_gamepadex=no
  23558. have_xinput_stateex=no
  23559. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23560. if test "x$ac_cv_header_xinput_h" = xyes
  23561. then :
  23562. have_xinput=yes
  23563. fi
  23564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  23565. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  23566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23567. /* end confdefs.h. */
  23568. #include <windows.h>
  23569. #include <xinput.h>
  23570. XINPUT_GAMEPAD_EX x1;
  23571. int
  23572. main (void)
  23573. {
  23574. ;
  23575. return 0;
  23576. }
  23577. _ACEOF
  23578. if ac_fn_c_try_compile "$LINENO"
  23579. then :
  23580. have_xinput_gamepadex=yes
  23581. fi
  23582. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  23584. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  23585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  23586. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  23587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23588. /* end confdefs.h. */
  23589. #include <windows.h>
  23590. #include <xinput.h>
  23591. XINPUT_STATE_EX s1;
  23592. int
  23593. main (void)
  23594. {
  23595. ;
  23596. return 0;
  23597. }
  23598. _ACEOF
  23599. if ac_fn_c_try_compile "$LINENO"
  23600. then :
  23601. have_xinput_stateex=yes
  23602. fi
  23603. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  23605. printf "%s\n" "$have_xinput_stateex" >&6; }
  23606. if test x$have_xinput = xyes; then
  23607. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23608. fi
  23609. if test x$have_xinput_gamepadex = xyes; then
  23610. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  23611. fi
  23612. if test x$have_xinput_stateex = xyes; then
  23613. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  23614. fi
  23615. fi
  23616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23617. printf %s "checking for windows.gaming.input.h... " >&6; }
  23618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23619. /* end confdefs.h. */
  23620. #define COBJMACROS
  23621. #include <windows.gaming.input.h>
  23622. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23623. int
  23624. main (void)
  23625. {
  23626. ;
  23627. return 0;
  23628. }
  23629. _ACEOF
  23630. if ac_fn_c_try_compile "$LINENO"
  23631. then :
  23632. have_wgi=yes
  23633. else $as_nop
  23634. have_wgi=no
  23635. fi
  23636. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23638. printf "%s\n" "$have_wgi" >&6; }
  23639. if test x$have_wgi = xyes; then
  23640. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23641. fi
  23642. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23643. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23644. then :
  23645. have_wasapi=yes
  23646. fi
  23647. if test x$have_wasapi = xyes; then
  23648. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23649. fi
  23650. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23651. if test "x$ac_cv_header_audioclient_h" = xyes
  23652. then :
  23653. else $as_nop
  23654. have_wasapi=no
  23655. fi
  23656. if test x$have_wasapi = xyes; then
  23657. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23658. fi
  23659. # Check whether --enable-wasapi was given.
  23660. if test ${enable_wasapi+y}
  23661. then :
  23662. enableval=$enable_wasapi;
  23663. else $as_nop
  23664. enable_wasapi=yes
  23665. fi
  23666. }
  23667. CheckDLOPEN()
  23668. {
  23669. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23670. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23671. if test "x$ac_cv_header_dlfcn_h" = xyes
  23672. then :
  23673. have_dlfcn_h=yes
  23674. else $as_nop
  23675. have_dlfcn_h=no
  23676. fi
  23677. have_dlopen=no
  23678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23679. printf %s "checking for dlopen in -lc... " >&6; }
  23680. if test ${ac_cv_lib_c_dlopen+y}
  23681. then :
  23682. printf %s "(cached) " >&6
  23683. else $as_nop
  23684. ac_check_lib_save_LIBS=$LIBS
  23685. LIBS="-lc $LIBS"
  23686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23687. /* end confdefs.h. */
  23688. /* Override any GCC internal prototype to avoid an error.
  23689. Use char because int might match the return type of a GCC
  23690. builtin and then its argument prototype would still apply. */
  23691. char dlopen ();
  23692. int
  23693. main (void)
  23694. {
  23695. return dlopen ();
  23696. ;
  23697. return 0;
  23698. }
  23699. _ACEOF
  23700. if ac_fn_c_try_link "$LINENO"
  23701. then :
  23702. ac_cv_lib_c_dlopen=yes
  23703. else $as_nop
  23704. ac_cv_lib_c_dlopen=no
  23705. fi
  23706. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23707. conftest$ac_exeext conftest.$ac_ext
  23708. LIBS=$ac_check_lib_save_LIBS
  23709. fi
  23710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  23711. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  23712. if test "x$ac_cv_lib_c_dlopen" = xyes
  23713. then :
  23714. have_dlopen=yes
  23715. else $as_nop
  23716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  23717. printf %s "checking for dlopen in -ldl... " >&6; }
  23718. if test ${ac_cv_lib_dl_dlopen+y}
  23719. then :
  23720. printf %s "(cached) " >&6
  23721. else $as_nop
  23722. ac_check_lib_save_LIBS=$LIBS
  23723. LIBS="-ldl $LIBS"
  23724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23725. /* end confdefs.h. */
  23726. /* Override any GCC internal prototype to avoid an error.
  23727. Use char because int might match the return type of a GCC
  23728. builtin and then its argument prototype would still apply. */
  23729. char dlopen ();
  23730. int
  23731. main (void)
  23732. {
  23733. return dlopen ();
  23734. ;
  23735. return 0;
  23736. }
  23737. _ACEOF
  23738. if ac_fn_c_try_link "$LINENO"
  23739. then :
  23740. ac_cv_lib_dl_dlopen=yes
  23741. else $as_nop
  23742. ac_cv_lib_dl_dlopen=no
  23743. fi
  23744. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23745. conftest$ac_exeext conftest.$ac_ext
  23746. LIBS=$ac_check_lib_save_LIBS
  23747. fi
  23748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  23749. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  23750. if test "x$ac_cv_lib_dl_dlopen" = xyes
  23751. then :
  23752. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  23753. fi
  23754. fi
  23755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  23756. printf %s "checking for dlopen... " >&6; }
  23757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  23758. printf "%s\n" "$have_dlopen" >&6; }
  23759. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  23760. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  23761. if test x$enable_loadso = xyes; then
  23762. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  23763. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  23764. have_loadso=yes
  23765. fi
  23766. fi
  23767. }
  23768. CheckO_CLOEXEC()
  23769. {
  23770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  23771. printf %s "checking for O_CLOEXEC... " >&6; }
  23772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23773. /* end confdefs.h. */
  23774. #include <fcntl.h>
  23775. int flag = O_CLOEXEC;
  23776. int
  23777. main (void)
  23778. {
  23779. ;
  23780. return 0;
  23781. }
  23782. _ACEOF
  23783. if ac_fn_c_try_compile "$LINENO"
  23784. then :
  23785. have_o_cloexec=yes
  23786. else $as_nop
  23787. have_o_cloexec=no
  23788. fi
  23789. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  23791. printf "%s\n" "$have_o_cloexec" >&6; }
  23792. if test $have_o_cloexec = yes; then
  23793. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  23794. fi
  23795. }
  23796. CheckUSBHID()
  23797. {
  23798. case "$host" in
  23799. *-*-*bsd*|*-*-dragonfly*)
  23800. if test x$enable_joystick = xyes; then
  23801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  23802. printf %s "checking for hid_init in -lusbhid... " >&6; }
  23803. if test ${ac_cv_lib_usbhid_hid_init+y}
  23804. then :
  23805. printf %s "(cached) " >&6
  23806. else $as_nop
  23807. ac_check_lib_save_LIBS=$LIBS
  23808. LIBS="-lusbhid $LIBS"
  23809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23810. /* end confdefs.h. */
  23811. /* Override any GCC internal prototype to avoid an error.
  23812. Use char because int might match the return type of a GCC
  23813. builtin and then its argument prototype would still apply. */
  23814. char hid_init ();
  23815. int
  23816. main (void)
  23817. {
  23818. return hid_init ();
  23819. ;
  23820. return 0;
  23821. }
  23822. _ACEOF
  23823. if ac_fn_c_try_link "$LINENO"
  23824. then :
  23825. ac_cv_lib_usbhid_hid_init=yes
  23826. else $as_nop
  23827. ac_cv_lib_usbhid_hid_init=no
  23828. fi
  23829. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23830. conftest$ac_exeext conftest.$ac_ext
  23831. LIBS=$ac_check_lib_save_LIBS
  23832. fi
  23833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  23834. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  23835. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  23836. then :
  23837. have_libusbhid=yes
  23838. fi
  23839. if test x$have_libusbhid = xyes; then
  23840. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  23841. if test "x$ac_cv_header_usbhid_h" = xyes
  23842. then :
  23843. USB_CFLAGS="-DHAVE_USBHID_H"
  23844. fi
  23845. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  23846. if test "x$ac_cv_header_libusbhid_h" = xyes
  23847. then :
  23848. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  23849. fi
  23850. USB_LIBS="$USB_LIBS -lusbhid"
  23851. else
  23852. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  23853. if test "x$ac_cv_header_usb_h" = xyes
  23854. then :
  23855. USB_CFLAGS="-DHAVE_USB_H"
  23856. fi
  23857. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23858. if test "x$ac_cv_header_libusb_h" = xyes
  23859. then :
  23860. USB_CFLAGS="-DHAVE_LIBUSB_H"
  23861. fi
  23862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  23863. printf %s "checking for hid_init in -lusb... " >&6; }
  23864. if test ${ac_cv_lib_usb_hid_init+y}
  23865. then :
  23866. printf %s "(cached) " >&6
  23867. else $as_nop
  23868. ac_check_lib_save_LIBS=$LIBS
  23869. LIBS="-lusb $LIBS"
  23870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23871. /* end confdefs.h. */
  23872. /* Override any GCC internal prototype to avoid an error.
  23873. Use char because int might match the return type of a GCC
  23874. builtin and then its argument prototype would still apply. */
  23875. char hid_init ();
  23876. int
  23877. main (void)
  23878. {
  23879. return hid_init ();
  23880. ;
  23881. return 0;
  23882. }
  23883. _ACEOF
  23884. if ac_fn_c_try_link "$LINENO"
  23885. then :
  23886. ac_cv_lib_usb_hid_init=yes
  23887. else $as_nop
  23888. ac_cv_lib_usb_hid_init=no
  23889. fi
  23890. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23891. conftest$ac_exeext conftest.$ac_ext
  23892. LIBS=$ac_check_lib_save_LIBS
  23893. fi
  23894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  23895. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  23896. if test "x$ac_cv_lib_usb_hid_init" = xyes
  23897. then :
  23898. USB_LIBS="$USB_LIBS -lusb"
  23899. fi
  23900. fi
  23901. save_CFLAGS="$CFLAGS"
  23902. CFLAGS="$CFLAGS $USB_CFLAGS"
  23903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  23904. printf %s "checking for usbhid... " >&6; }
  23905. have_usbhid=no
  23906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23907. /* end confdefs.h. */
  23908. #include <sys/types.h>
  23909. #if defined(HAVE_USB_H)
  23910. #include <usb.h>
  23911. #endif
  23912. #ifdef __DragonFly__
  23913. # include <bus/u4b/usb.h>
  23914. # include <bus/u4b/usbhid.h>
  23915. #else
  23916. # include <dev/usb/usb.h>
  23917. # include <dev/usb/usbhid.h>
  23918. #endif
  23919. #if defined(HAVE_USBHID_H)
  23920. #include <usbhid.h>
  23921. #elif defined(HAVE_LIBUSB_H)
  23922. #include <libusb.h>
  23923. #elif defined(HAVE_LIBUSBHID_H)
  23924. #include <libusbhid.h>
  23925. #endif
  23926. int
  23927. main (void)
  23928. {
  23929. struct report_desc *repdesc;
  23930. struct usb_ctl_report *repbuf;
  23931. hid_kind_t hidkind;
  23932. ;
  23933. return 0;
  23934. }
  23935. _ACEOF
  23936. if ac_fn_c_try_compile "$LINENO"
  23937. then :
  23938. have_usbhid=yes
  23939. fi
  23940. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  23942. printf "%s\n" "$have_usbhid" >&6; }
  23943. if test x$have_usbhid = xyes; then
  23944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  23945. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  23946. have_usbhid_ucr_data=no
  23947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23948. /* end confdefs.h. */
  23949. #include <sys/types.h>
  23950. #if defined(HAVE_USB_H)
  23951. #include <usb.h>
  23952. #endif
  23953. #ifdef __DragonFly__
  23954. # include <bus/u4b/usb.h>
  23955. # include <bus/u4b/usbhid.h>
  23956. #else
  23957. # include <dev/usb/usb.h>
  23958. # include <dev/usb/usbhid.h>
  23959. #endif
  23960. #if defined(HAVE_USBHID_H)
  23961. #include <usbhid.h>
  23962. #elif defined(HAVE_LIBUSB_H)
  23963. #include <libusb.h>
  23964. #elif defined(HAVE_LIBUSBHID_H)
  23965. #include <libusbhid.h>
  23966. #endif
  23967. int
  23968. main (void)
  23969. {
  23970. struct usb_ctl_report buf;
  23971. if (buf.ucr_data) { }
  23972. ;
  23973. return 0;
  23974. }
  23975. _ACEOF
  23976. if ac_fn_c_try_compile "$LINENO"
  23977. then :
  23978. have_usbhid_ucr_data=yes
  23979. fi
  23980. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23981. if test x$have_usbhid_ucr_data = xyes; then
  23982. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  23983. fi
  23984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  23985. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  23986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  23987. printf %s "checking for new usbhid API... " >&6; }
  23988. have_usbhid_new=no
  23989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23990. /* end confdefs.h. */
  23991. #include <sys/types.h>
  23992. #if defined(HAVE_USB_H)
  23993. #include <usb.h>
  23994. #endif
  23995. #ifdef __DragonFly__
  23996. #include <bus/u4b/usb.h>
  23997. #include <bus/u4b/usbhid.h>
  23998. #else
  23999. #include <dev/usb/usb.h>
  24000. #include <dev/usb/usbhid.h>
  24001. #endif
  24002. #if defined(HAVE_USBHID_H)
  24003. #include <usbhid.h>
  24004. #elif defined(HAVE_LIBUSB_H)
  24005. #include <libusb.h>
  24006. #elif defined(HAVE_LIBUSBHID_H)
  24007. #include <libusbhid.h>
  24008. #endif
  24009. int
  24010. main (void)
  24011. {
  24012. report_desc_t d;
  24013. hid_start_parse(d, 1, 1);
  24014. ;
  24015. return 0;
  24016. }
  24017. _ACEOF
  24018. if ac_fn_c_try_compile "$LINENO"
  24019. then :
  24020. have_usbhid_new=yes
  24021. fi
  24022. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24023. if test x$have_usbhid_new = xyes; then
  24024. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24025. fi
  24026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24027. printf "%s\n" "$have_usbhid_new" >&6; }
  24028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24029. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24030. have_machine_joystick=no
  24031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24032. /* end confdefs.h. */
  24033. #include <machine/joystick.h>
  24034. int
  24035. main (void)
  24036. {
  24037. struct joystick t;
  24038. ;
  24039. return 0;
  24040. }
  24041. _ACEOF
  24042. if ac_fn_c_try_compile "$LINENO"
  24043. then :
  24044. have_machine_joystick=yes
  24045. fi
  24046. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24047. if test x$have_machine_joystick = xyes; then
  24048. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24049. fi
  24050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24051. printf "%s\n" "$have_machine_joystick" >&6; }
  24052. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24053. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24054. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24055. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24056. have_joystick=yes
  24057. fi
  24058. CFLAGS="$save_CFLAGS"
  24059. fi
  24060. ;;
  24061. esac
  24062. }
  24063. CheckHIDAPI()
  24064. {
  24065. # Check whether --enable-hidapi-joystick was given.
  24066. if test ${enable_hidapi_joystick+y}
  24067. then :
  24068. enableval=$enable_hidapi_joystick;
  24069. else $as_nop
  24070. enable_hidapi_joystick=yes
  24071. fi
  24072. # Check whether --enable-hidapi-libusb was given.
  24073. if test ${enable_hidapi_libusb+y}
  24074. then :
  24075. enableval=$enable_hidapi_libusb;
  24076. else $as_nop
  24077. enable_hidapi_libusb=maybe
  24078. fi
  24079. if test x$enable_hidapi = xyes; then
  24080. case "$host" in
  24081. # libusb does not support iOS
  24082. *-ios-* )
  24083. enable_hidapi_libusb=no
  24084. ;;
  24085. # On the other hand, *BSD specifically uses libusb only
  24086. *-*-*bsd* )
  24087. enable_hidapi_libusb=yes
  24088. require_hidapi_libusb=yes
  24089. ;;
  24090. *-*-os2* )
  24091. enable_hidapi_libusb=yes
  24092. ;;
  24093. esac
  24094. hidapi_support=yes
  24095. if test x$enable_hidapi_libusb = xyes; then
  24096. pkg_failed=no
  24097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24098. printf %s "checking for libusb-1.0... " >&6; }
  24099. if test -n "$LIBUSB_CFLAGS"; then
  24100. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24101. elif test -n "$PKG_CONFIG"; then
  24102. if test -n "$PKG_CONFIG" && \
  24103. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24104. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24105. ac_status=$?
  24106. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24107. test $ac_status = 0; }; then
  24108. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24109. test "x$?" != "x0" && pkg_failed=yes
  24110. else
  24111. pkg_failed=yes
  24112. fi
  24113. else
  24114. pkg_failed=untried
  24115. fi
  24116. if test -n "$LIBUSB_LIBS"; then
  24117. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24118. elif test -n "$PKG_CONFIG"; then
  24119. if test -n "$PKG_CONFIG" && \
  24120. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24121. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24122. ac_status=$?
  24123. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24124. test $ac_status = 0; }; then
  24125. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24126. test "x$?" != "x0" && pkg_failed=yes
  24127. else
  24128. pkg_failed=yes
  24129. fi
  24130. else
  24131. pkg_failed=untried
  24132. fi
  24133. if test $pkg_failed = yes; then
  24134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24135. printf "%s\n" "no" >&6; }
  24136. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24137. _pkg_short_errors_supported=yes
  24138. else
  24139. _pkg_short_errors_supported=no
  24140. fi
  24141. if test $_pkg_short_errors_supported = yes; then
  24142. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24143. else
  24144. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24145. fi
  24146. # Put the nasty error message in config.log where it belongs
  24147. echo "$LIBUSB_PKG_ERRORS" >&5
  24148. have_libusb=no
  24149. elif test $pkg_failed = untried; then
  24150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24151. printf "%s\n" "no" >&6; }
  24152. have_libusb=no
  24153. else
  24154. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24155. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24157. printf "%s\n" "yes" >&6; }
  24158. have_libusb=yes
  24159. fi
  24160. save_CPPFLAGS="$CPPFLAGS"
  24161. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24162. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24163. if test "x$ac_cv_header_libusb_h" = xyes
  24164. then :
  24165. have_libusb_h=yes
  24166. else $as_nop
  24167. have_libusb_h=no
  24168. fi
  24169. CPPFLAGS="$save_CPPFLAGS"
  24170. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24171. hidapi_support=no
  24172. fi
  24173. fi
  24174. if test x$hidapi_support = xyes; then
  24175. if test x$have_libusb_h = xyes; then
  24176. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24177. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24178. if test x$require_hidapi_libusb = xyes; then
  24179. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24180. else
  24181. if test x$have_loadso != xyes; then
  24182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24183. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24184. fi
  24185. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24186. libusb_lib=""
  24187. case "$host" in
  24188. *-*-darwin* )
  24189. libusb_lib="libusb-1.0.0.dylib"
  24190. ;;
  24191. *-*-cygwin* | *-*-mingw* )
  24192. libusb_lib="libusb-1.0.dll"
  24193. ;;
  24194. *-*-os2* )
  24195. libusb_lib="usb100.dll"
  24196. ;;
  24197. esac
  24198. if test x$libusb_lib = x; then
  24199. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24200. fi
  24201. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24202. fi
  24203. fi
  24204. fi
  24205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24206. printf %s "checking for hidapi joystick support... " >&6; }
  24207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24208. printf "%s\n" "$hidapi_support" >&6; }
  24209. fi
  24210. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24211. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24212. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24213. fi
  24214. }
  24215. CheckClockGettime()
  24216. {
  24217. # Check whether --enable-clock_gettime was given.
  24218. if test ${enable_clock_gettime+y}
  24219. then :
  24220. enableval=$enable_clock_gettime;
  24221. else $as_nop
  24222. enable_clock_gettime=yes
  24223. fi
  24224. if test x$enable_clock_gettime = xyes; then
  24225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24226. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24227. if test ${ac_cv_lib_rt_clock_gettime+y}
  24228. then :
  24229. printf %s "(cached) " >&6
  24230. else $as_nop
  24231. ac_check_lib_save_LIBS=$LIBS
  24232. LIBS="-lrt $LIBS"
  24233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24234. /* end confdefs.h. */
  24235. /* Override any GCC internal prototype to avoid an error.
  24236. Use char because int might match the return type of a GCC
  24237. builtin and then its argument prototype would still apply. */
  24238. char clock_gettime ();
  24239. int
  24240. main (void)
  24241. {
  24242. return clock_gettime ();
  24243. ;
  24244. return 0;
  24245. }
  24246. _ACEOF
  24247. if ac_fn_c_try_link "$LINENO"
  24248. then :
  24249. ac_cv_lib_rt_clock_gettime=yes
  24250. else $as_nop
  24251. ac_cv_lib_rt_clock_gettime=no
  24252. fi
  24253. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24254. conftest$ac_exeext conftest.$ac_ext
  24255. LIBS=$ac_check_lib_save_LIBS
  24256. fi
  24257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24258. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24259. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24260. then :
  24261. have_clock_gettime=yes
  24262. fi
  24263. if test x$have_clock_gettime = xyes; then
  24264. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24265. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24266. else
  24267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24268. printf %s "checking for clock_gettime in -lc... " >&6; }
  24269. if test ${ac_cv_lib_c_clock_gettime+y}
  24270. then :
  24271. printf %s "(cached) " >&6
  24272. else $as_nop
  24273. ac_check_lib_save_LIBS=$LIBS
  24274. LIBS="-lc $LIBS"
  24275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24276. /* end confdefs.h. */
  24277. /* Override any GCC internal prototype to avoid an error.
  24278. Use char because int might match the return type of a GCC
  24279. builtin and then its argument prototype would still apply. */
  24280. char clock_gettime ();
  24281. int
  24282. main (void)
  24283. {
  24284. return clock_gettime ();
  24285. ;
  24286. return 0;
  24287. }
  24288. _ACEOF
  24289. if ac_fn_c_try_link "$LINENO"
  24290. then :
  24291. ac_cv_lib_c_clock_gettime=yes
  24292. else $as_nop
  24293. ac_cv_lib_c_clock_gettime=no
  24294. fi
  24295. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24296. conftest$ac_exeext conftest.$ac_ext
  24297. LIBS=$ac_check_lib_save_LIBS
  24298. fi
  24299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24300. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24301. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24302. then :
  24303. have_clock_gettime=yes
  24304. fi
  24305. if test x$have_clock_gettime = xyes; then
  24306. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24307. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  24308. fi
  24309. fi
  24310. fi
  24311. }
  24312. CheckLinuxVersion()
  24313. {
  24314. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24315. if test "x$ac_cv_header_linux_version_h" = xyes
  24316. then :
  24317. have_linux_version_h=yes
  24318. fi
  24319. if test x$have_linux_version_h = xyes; then
  24320. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24321. fi
  24322. }
  24323. CheckRPATH()
  24324. {
  24325. # Check whether --enable-rpath was given.
  24326. if test ${enable_rpath+y}
  24327. then :
  24328. enableval=$enable_rpath;
  24329. else $as_nop
  24330. enable_rpath=yes
  24331. fi
  24332. }
  24333. CheckEventSignals()
  24334. {
  24335. # Check whether --enable-backgrounding-signal was given.
  24336. if test ${enable_backgrounding_signal+y}
  24337. then :
  24338. enableval=$enable_backgrounding_signal;
  24339. else $as_nop
  24340. enable_backgrounding_signal=no
  24341. fi
  24342. if test x$enable_backgrounding_signal != xno; then
  24343. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24344. fi
  24345. # Check whether --enable-foregrounding-signal was given.
  24346. if test ${enable_foregrounding_signal+y}
  24347. then :
  24348. enableval=$enable_foregrounding_signal;
  24349. else $as_nop
  24350. enable_foregrounding_signal=no
  24351. fi
  24352. if test x$enable_foregrounding_signal != xno; then
  24353. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24354. fi
  24355. }
  24356. CheckVirtualJoystick()
  24357. {
  24358. # Check whether --enable-joystick-virtual was given.
  24359. if test ${enable_joystick_virtual+y}
  24360. then :
  24361. enableval=$enable_joystick_virtual;
  24362. else $as_nop
  24363. enable_joystick_virtual=yes
  24364. fi
  24365. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24366. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24367. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24368. have_joystick_virtual=yes
  24369. fi
  24370. }
  24371. CheckWarnAll
  24372. CheckNoStrictAliasing
  24373. CheckEventSignals
  24374. have_locale=no
  24375. case "$host" in
  24376. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24377. case "$host" in
  24378. *-*-android*)
  24379. # Android
  24380. ARCH=android
  24381. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24382. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24383. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24384. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24385. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24386. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24387. if test x$enable_video = xyes; then
  24388. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24389. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24390. SUMMARY_video="${SUMMARY_video} android"
  24391. have_video=yes
  24392. fi
  24393. ;;
  24394. *-*-linux*) ARCH=linux ;;
  24395. *-*-uclinux*) ARCH=linux ;;
  24396. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24397. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24398. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24399. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24400. *-*-bsdi*) ARCH=bsdi ;;
  24401. *-*-freebsd*) ARCH=freebsd ;;
  24402. *-*-dragonfly*) ARCH=freebsd ;;
  24403. *-*-netbsd*) ARCH=netbsd ;;
  24404. *-*-openbsd*) ARCH=openbsd ;;
  24405. *-*-sysv5*) ARCH=sysv5 ;;
  24406. *-*-solaris*) ARCH=solaris ;;
  24407. *-*-hpux*) ARCH=hpux ;;
  24408. *-*-aix*) ARCH=aix ;;
  24409. *-*-minix*) ARCH=minix ;;
  24410. *-*-nto*) ARCH=nto
  24411. CheckQNXVideo
  24412. ;;
  24413. esac
  24414. CheckVisibilityHidden
  24415. CheckDeclarationAfterStatement
  24416. CheckDummyVideo
  24417. CheckOffscreenVideo
  24418. CheckDiskAudio
  24419. CheckDummyAudio
  24420. CheckDLOPEN
  24421. CheckARM
  24422. CheckNEON
  24423. CheckO_CLOEXEC
  24424. CheckOSS
  24425. CheckALSA
  24426. CheckPipewire
  24427. CheckPulseAudio
  24428. CheckJACK
  24429. CheckARTSC
  24430. CheckESD
  24431. CheckNAS
  24432. CheckSNDIO
  24433. CheckFusionSound
  24434. CheckLibSampleRate
  24435. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24436. CheckRPI
  24437. CheckX11
  24438. CheckDirectFB
  24439. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24440. CheckEGL
  24441. CheckKMSDRM
  24442. CheckGLX
  24443. CheckOpenGL
  24444. CheckOpenGLES
  24445. CheckVulkan
  24446. CheckWayland
  24447. CheckInputEvents
  24448. CheckLibUDev
  24449. CheckDBus
  24450. CheckIME
  24451. CheckInotify
  24452. CheckIBus
  24453. CheckFcitx
  24454. case $ARCH in
  24455. linux)
  24456. CheckInputKD
  24457. ;;
  24458. freebsd)
  24459. CheckInputKBIO
  24460. ;;
  24461. openbsd|netbsd)
  24462. CheckInputWSCONS
  24463. ;;
  24464. esac
  24465. CheckUSBHID
  24466. CheckHIDAPI
  24467. CheckPTHREAD
  24468. CheckClockGettime
  24469. CheckLinuxVersion
  24470. CheckRPATH
  24471. CheckVivanteVideo
  24472. # Set up files for the misc library
  24473. if test x$enable_misc = xyes; then
  24474. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24475. have_misc=yes
  24476. fi
  24477. # Set up files for the locale library
  24478. if test x$enable_locale = xyes; then
  24479. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24480. have_locale=yes
  24481. fi
  24482. # Set up files for the audio library
  24483. if test x$enable_audio = xyes; then
  24484. case $ARCH in
  24485. sysv5|solaris|hpux)
  24486. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24487. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24488. SUMMARY_audio="${SUMMARY_audio} sun"
  24489. have_audio=yes
  24490. ;;
  24491. netbsd) # Don't use this on OpenBSD, it's busted.
  24492. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24493. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24494. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24495. have_audio=yes
  24496. ;;
  24497. aix)
  24498. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24499. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24500. SUMMARY_audio="${SUMMARY_audio} paudio"
  24501. have_audio=yes
  24502. ;;
  24503. android)
  24504. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24505. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24506. SUMMARY_audio="${SUMMARY_audio} android"
  24507. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24508. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24509. SUMMARY_audio="${SUMMARY_audio} openslES"
  24510. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24511. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24512. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24513. have_audio=yes
  24514. ;;
  24515. nto)
  24516. CheckQNXAudio
  24517. ;;
  24518. esac
  24519. fi
  24520. # Set up files for the joystick library
  24521. if test x$enable_joystick = xyes; then
  24522. case $ARCH in
  24523. linux)
  24524. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24525. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24526. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24527. have_joystick=yes
  24528. ;;
  24529. freebsd)
  24530. if test x$use_input_events = xyes; then
  24531. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24532. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24533. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24534. have_joystick=yes
  24535. fi
  24536. ;;
  24537. android)
  24538. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24539. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24540. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24541. have_joystick=yes
  24542. ;;
  24543. esac
  24544. fi
  24545. # Set up files for the haptic library
  24546. if test x$enable_haptic = xyes; then
  24547. case $ARCH in
  24548. linux|freebsd)
  24549. if test x$use_input_events = xyes; then
  24550. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24551. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24552. have_haptic=yes
  24553. fi
  24554. ;;
  24555. android)
  24556. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24557. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24558. have_haptic=yes
  24559. ;;
  24560. esac
  24561. fi
  24562. # Set up files for the sensor library
  24563. if test x$enable_sensor = xyes; then
  24564. case $ARCH in
  24565. android)
  24566. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24567. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24568. have_sensor=yes
  24569. ;;
  24570. esac
  24571. fi
  24572. # Set up files for the power library
  24573. if test x$enable_power = xyes; then
  24574. case $ARCH in
  24575. linux)
  24576. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24577. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24578. have_power=yes
  24579. ;;
  24580. android)
  24581. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24582. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24583. have_power=yes
  24584. ;;
  24585. esac
  24586. fi
  24587. # Set up files for the filesystem library
  24588. if test x$enable_filesystem = xyes; then
  24589. case $ARCH in
  24590. android)
  24591. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24592. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24593. have_filesystem=yes
  24594. ;;
  24595. *)
  24596. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24597. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24598. have_filesystem=yes
  24599. ;;
  24600. esac
  24601. fi
  24602. # Set up files for the timer library
  24603. if test x$enable_timers = xyes; then
  24604. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24605. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24606. have_timers=yes
  24607. fi
  24608. # Set up files for udev hotplugging support
  24609. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24610. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24611. fi
  24612. # Set up files for evdev input
  24613. if test x$use_input_events = xyes; then
  24614. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24615. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24616. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24617. fi
  24618. # Set up files for wscons input
  24619. if test x$use_input_wscons = xyes; then
  24620. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24621. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24622. fi
  24623. # Set up other core UNIX files
  24624. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24625. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24626. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24627. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24628. ;;
  24629. *-*-cygwin* | *-*-mingw*)
  24630. ARCH=win32
  24631. if test "$build" != "$host"; then # cross-compiling
  24632. # Default cross-compile location
  24633. ac_default_prefix=/usr/local/cross-tools/$host
  24634. else
  24635. # Look for the location of the tools and install there
  24636. if test "$BUILD_PREFIX" != ""; then
  24637. ac_default_prefix=$BUILD_PREFIX
  24638. fi
  24639. fi
  24640. if test x$enable_loadso = xyes; then
  24641. have_loadso=yes
  24642. fi
  24643. CheckGDwarf4
  24644. CheckDeclarationAfterStatement
  24645. CheckDummyVideo
  24646. CheckOffscreenVideo
  24647. CheckDiskAudio
  24648. CheckDummyAudio
  24649. CheckWINDOWS
  24650. CheckWINDOWSGL
  24651. CheckWINDOWSGLES
  24652. CheckVulkan
  24653. CheckDIRECTX
  24654. CheckHIDAPI
  24655. # Set up the core platform files
  24656. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24657. # Set up files for the misc library
  24658. if test x$enable_misc = xyes; then
  24659. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24660. have_misc=yes
  24661. fi
  24662. # Use the Windows locale APIs.
  24663. if test x$enable_locale = xyes; then
  24664. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24665. have_locale=yes
  24666. fi
  24667. # Set up files for the video library
  24668. if test x$enable_video = xyes; then
  24669. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24670. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24671. have_video=yes
  24672. # Check whether --enable-render-d3d was given.
  24673. if test ${enable_render_d3d+y}
  24674. then :
  24675. enableval=$enable_render_d3d;
  24676. else $as_nop
  24677. enable_render_d3d=yes
  24678. fi
  24679. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24680. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24681. SUMMARY_video="${SUMMARY_video} d3d9"
  24682. fi
  24683. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24684. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24685. SUMMARY_video="${SUMMARY_video} d3d11"
  24686. fi
  24687. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24688. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24689. SUMMARY_video="${SUMMARY_video} d3d12"
  24690. fi
  24691. fi
  24692. # Set up files for the audio library
  24693. if test x$enable_audio = xyes; then
  24694. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  24695. SUMMARY_audio="${SUMMARY_audio} winmm"
  24696. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  24697. if test x$have_dsound = xyes; then
  24698. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  24699. SUMMARY_audio="${SUMMARY_audio} directsound"
  24700. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  24701. fi
  24702. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  24703. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  24704. SUMMARY_audio="${SUMMARY_audio} wasapi"
  24705. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  24706. fi
  24707. have_audio=yes
  24708. fi
  24709. # Set up files for the joystick library
  24710. if test x$enable_joystick = xyes; then
  24711. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  24712. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  24713. if test x$have_xinput = xyes; then
  24714. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  24715. fi
  24716. if test x$have_wgi = xyes; then
  24717. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  24718. fi
  24719. if test x$have_dinput = xyes; then
  24720. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  24721. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  24722. fi
  24723. fi
  24724. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  24725. have_joystick=yes
  24726. fi
  24727. if test x$enable_haptic = xyes; then
  24728. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  24729. if test x$have_xinput = xyes; then
  24730. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  24731. fi
  24732. if test x$have_dinput = xyes; then
  24733. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  24734. fi
  24735. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  24736. have_haptic=yes
  24737. fi
  24738. fi
  24739. # Set up files for the sensor library
  24740. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  24741. if test "x$ac_cv_header_sensorsapi_h" = xyes
  24742. then :
  24743. have_winsensors=yes
  24744. else $as_nop
  24745. have_winsensors=no
  24746. fi
  24747. if test x$have_winsensors = xyes; then
  24748. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  24749. fi
  24750. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  24751. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  24752. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  24753. have_sensor=yes
  24754. fi
  24755. # Set up files for the power library
  24756. if test x$enable_power = xyes; then
  24757. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  24758. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  24759. have_power=yes
  24760. fi
  24761. # Set up files for the filesystem library
  24762. if test x$enable_filesystem = xyes; then
  24763. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  24764. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  24765. have_filesystem=yes
  24766. fi
  24767. # Set up files for the thread library
  24768. if test x$enable_threads = xyes; then
  24769. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  24770. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  24771. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  24772. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  24773. have_threads=yes
  24774. fi
  24775. # Set up files for the timer library
  24776. if test x$enable_timers = xyes; then
  24777. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  24778. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  24779. have_timers=yes
  24780. fi
  24781. # Set up files for the shared object loading library
  24782. if test x$enable_loadso = xyes; then
  24783. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  24784. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  24785. fi
  24786. # Set up the system libraries we need
  24787. if test -f /lib/w32api/libuuid.a; then
  24788. LIBUUID=/lib/w32api/libuuid.a
  24789. else
  24790. LIBUUID=-luuid
  24791. fi
  24792. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  24793. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  24794. # The Windows platform requires special setup
  24795. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  24796. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  24797. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  24798. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  24799. # Check to see if this is a mingw or cygwin build
  24800. have_mingw32=
  24801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  24802. printf %s "checking for main in -lmingw32... " >&6; }
  24803. if test ${ac_cv_lib_mingw32_main+y}
  24804. then :
  24805. printf %s "(cached) " >&6
  24806. else $as_nop
  24807. ac_check_lib_save_LIBS=$LIBS
  24808. LIBS="-lmingw32 $LIBS"
  24809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24810. /* end confdefs.h. */
  24811. int
  24812. main (void)
  24813. {
  24814. return main ();
  24815. ;
  24816. return 0;
  24817. }
  24818. _ACEOF
  24819. if ac_fn_c_try_link "$LINENO"
  24820. then :
  24821. ac_cv_lib_mingw32_main=yes
  24822. else $as_nop
  24823. ac_cv_lib_mingw32_main=no
  24824. fi
  24825. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24826. conftest$ac_exeext conftest.$ac_ext
  24827. LIBS=$ac_check_lib_save_LIBS
  24828. fi
  24829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  24830. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  24831. if test "x$ac_cv_lib_mingw32_main" = xyes
  24832. then :
  24833. have_mingw32=yes
  24834. fi
  24835. if test x$have_mingw32 = xyes; then
  24836. SDL_LIBS="-lmingw32 $SDL_LIBS"
  24837. else
  24838. SDL_LIBS="-lcygwin $SDL_LIBS"
  24839. fi
  24840. ;;
  24841. *-*-beos*)
  24842. as_fn_error $? "
  24843. *** BeOS support has been removed as of SDL 2.0.2.
  24844. " "$LINENO" 5
  24845. ;;
  24846. *-*-haiku*)
  24847. ARCH=haiku
  24848. ac_default_prefix=/boot/system
  24849. CheckDummyVideo
  24850. CheckOffscreenVideo
  24851. CheckDiskAudio
  24852. CheckDummyAudio
  24853. CheckDLOPEN
  24854. CheckO_CLOEXEC
  24855. CheckHaikuVideo
  24856. CheckHaikuGL
  24857. CheckPTHREAD
  24858. # Set up files for the audio library
  24859. if test x$enable_audio = xyes; then
  24860. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  24861. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  24862. SUMMARY_audio="${SUMMARY_audio} haiku"
  24863. have_audio=yes
  24864. fi
  24865. # Set up files for the joystick library
  24866. if test x$enable_joystick = xyes; then
  24867. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  24868. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  24869. have_joystick=yes
  24870. fi
  24871. # Set up files for the timer library
  24872. if test x$enable_timers = xyes; then
  24873. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  24874. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  24875. have_timers=yes
  24876. fi
  24877. # Set up files for the system power library
  24878. if test x$enable_power = xyes; then
  24879. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  24880. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  24881. have_power=yes
  24882. fi
  24883. # Set up files for the system filesystem library
  24884. if test x$enable_filesystem = xyes; then
  24885. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  24886. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  24887. have_filesystem=yes
  24888. fi
  24889. # Set up files for the misc library
  24890. if test x$enable_misc = xyes; then
  24891. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  24892. have_misc=yes
  24893. fi
  24894. # Set up files for the locale library
  24895. if test x$enable_locale = xyes; then
  24896. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  24897. have_locale=yes
  24898. fi
  24899. # The Haiku platform requires special setup.
  24900. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  24901. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  24902. ;;
  24903. *-ios-*)
  24904. ARCH=ios
  24905. CheckVisibilityHidden
  24906. CheckDeclarationAfterStatement
  24907. CheckDummyVideo
  24908. CheckOffscreenVideo
  24909. CheckDiskAudio
  24910. CheckDummyAudio
  24911. CheckDLOPEN
  24912. CheckO_CLOEXEC
  24913. CheckMETAL
  24914. CheckVulkan
  24915. CheckPTHREAD
  24916. # Set up files for the misc library
  24917. if test x$enable_misc = xyes; then
  24918. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  24919. have_misc=yes
  24920. fi
  24921. # Set up files for the locale library
  24922. if test x$enable_locale = xyes; then
  24923. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24924. have_locale=yes
  24925. fi
  24926. # Set up files for the audio library
  24927. if test x$enable_audio = xyes; then
  24928. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24929. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24930. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24931. have_audio=yes
  24932. fi
  24933. # Set up files for the joystick library
  24934. if test x$enable_joystick = xyes; then
  24935. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  24936. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24937. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24938. have_joystick=yes
  24939. else
  24940. # Need this code for accelerometer as joystick support
  24941. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24942. fi
  24943. # Set up files for the haptic library
  24944. #if test x$enable_haptic = xyes; then
  24945. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24946. # have_haptic=yes
  24947. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24948. #fi
  24949. # Set up files for the sensor library
  24950. if test x$enable_sensor = xyes; then
  24951. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  24952. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  24953. have_sensor=yes
  24954. fi
  24955. # Set up files for the power library
  24956. if test x$enable_power = xyes; then
  24957. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  24958. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  24959. have_power=yes
  24960. fi
  24961. # Set up files for the filesystem library
  24962. if test x$enable_filesystem = xyes; then
  24963. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24964. have_filesystem=yes
  24965. fi
  24966. # Set up additional files for the file library
  24967. if test x$enable_file = xyes; then
  24968. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24969. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24970. fi
  24971. # Set up files for the timer library
  24972. if test x$enable_timers = xyes; then
  24973. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24974. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24975. have_timers=yes
  24976. fi
  24977. # Set up other core UNIX files
  24978. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24979. # The iOS platform requires special setup.
  24980. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  24981. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  24982. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  24983. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  24984. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  24985. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  24986. SUMMARY_video="${SUMMARY_video} uikit"
  24987. have_video=yes
  24988. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  24989. if test x$enable_system_iconv = xyes; then
  24990. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  24991. fi
  24992. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  24993. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  24994. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  24995. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  24996. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  24997. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  24998. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  24999. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25000. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25001. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25002. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25003. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25004. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25005. fi
  25006. ;;
  25007. *-*-darwin* )
  25008. # This could be either full "Mac OS X", or plain "Darwin" which is
  25009. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25010. # Next line is broken, and a few files below require Mac OS X (full)
  25011. ARCH=macosx
  25012. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25013. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25014. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25015. CheckObjectiveCARC
  25016. CheckVisibilityHidden
  25017. CheckDeclarationAfterStatement
  25018. CheckDummyVideo
  25019. CheckOffscreenVideo
  25020. CheckDiskAudio
  25021. CheckDummyAudio
  25022. CheckDLOPEN
  25023. CheckO_CLOEXEC
  25024. CheckCOCOA
  25025. CheckMETAL
  25026. CheckX11
  25027. CheckMacGL
  25028. CheckMacGLES
  25029. CheckGLX
  25030. CheckOpenGL
  25031. CheckVulkan
  25032. CheckPTHREAD
  25033. CheckHIDAPI
  25034. # Set up files for the misc library
  25035. if test x$enable_misc = xyes; then
  25036. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25037. have_misc=yes
  25038. fi
  25039. # Set up files for the locale library
  25040. if test x$enable_locale = xyes; then
  25041. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25042. have_locale=yes
  25043. fi
  25044. # Set up files for the audio library
  25045. if test x$enable_audio = xyes; then
  25046. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25047. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25048. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25049. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25050. have_audio=yes
  25051. fi
  25052. # Set up files for the joystick library
  25053. if test x$enable_joystick = xyes; then
  25054. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25055. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25056. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25057. CheckJoystickMFI
  25058. have_joystick=yes
  25059. fi
  25060. # Set up files for the haptic library
  25061. if test x$enable_haptic = xyes; then
  25062. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25063. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25064. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25065. have_haptic=yes
  25066. fi
  25067. # Set up files for the power library
  25068. if test x$enable_power = xyes; then
  25069. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25070. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25071. have_power=yes
  25072. fi
  25073. # Set up files for the filesystem library
  25074. if test x$enable_filesystem = xyes; then
  25075. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25076. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25077. have_filesystem=yes
  25078. fi
  25079. # Set up files for the timer library
  25080. if test x$enable_timers = xyes; then
  25081. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25082. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25083. have_timers=yes
  25084. fi
  25085. # Set up additional files for the file library
  25086. if test x$enable_file = xyes; then
  25087. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25088. fi
  25089. # Set up other core UNIX files
  25090. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25091. # The Mac OS X platform requires special setup.
  25092. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25093. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25094. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25095. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25096. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25097. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25098. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25099. fi
  25100. ;;
  25101. *-nacl|*-pnacl)
  25102. ARCH=nacl
  25103. CheckNativeClient
  25104. CheckDummyAudio
  25105. CheckDummyVideo
  25106. CheckOffscreenVideo
  25107. CheckInputEvents
  25108. CheckPTHREAD
  25109. CheckO_CLOEXEC
  25110. # Set up files for the timer library
  25111. if test x$enable_timers = xyes; then
  25112. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25113. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25114. have_timers=yes
  25115. fi
  25116. if test x$enable_filesystem = xyes; then
  25117. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25118. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25119. have_filesystem=yes
  25120. fi
  25121. ;;
  25122. *-*-emscripten* )
  25123. if test x$enable_video = xyes; then
  25124. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25125. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25126. have_video=yes
  25127. SUMMARY_video="${SUMMARY_video} emscripten"
  25128. fi
  25129. if test x$enable_audio = xyes; then
  25130. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25131. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25132. have_audio=yes
  25133. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25134. fi
  25135. CheckVisibilityHidden
  25136. CheckDeclarationAfterStatement
  25137. CheckDummyVideo
  25138. CheckOffscreenVideo
  25139. CheckDiskAudio
  25140. CheckDummyAudio
  25141. CheckPTHREAD
  25142. CheckDLOPEN
  25143. CheckClockGettime
  25144. CheckEmscriptenGLES
  25145. # Set up files for the misc library
  25146. if test x$enable_misc = xyes; then
  25147. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25148. have_misc=yes
  25149. fi
  25150. # Set up files for the power library
  25151. if test x$enable_power = xyes; then
  25152. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25153. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25154. have_power=yes
  25155. fi
  25156. # Set up files for the joystick library
  25157. if test x$enable_joystick = xyes; then
  25158. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25159. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25160. have_joystick=yes
  25161. fi
  25162. # Set up files for the filesystem library
  25163. if test x$enable_filesystem = xyes; then
  25164. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25165. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25166. have_filesystem=yes
  25167. fi
  25168. # Set up files for the timer library
  25169. if test x$enable_timers = xyes; then
  25170. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25171. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25172. have_timers=yes
  25173. fi
  25174. # Set up files for the locale library
  25175. if test x$enable_locale = xyes; then
  25176. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25177. have_locale=yes
  25178. fi
  25179. ;;
  25180. *-*-riscos*)
  25181. ARCH=riscos
  25182. CheckVisibilityHidden
  25183. CheckDeclarationAfterStatement
  25184. CheckDummyVideo
  25185. CheckOffscreenVideo
  25186. CheckDiskAudio
  25187. CheckDummyAudio
  25188. CheckDLOPEN
  25189. CheckO_CLOEXEC
  25190. CheckOSS
  25191. CheckPTHREAD
  25192. CheckClockGettime
  25193. # Set up files for the misc library
  25194. if test x$enable_misc = xyes; then
  25195. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25196. have_misc=yes
  25197. fi
  25198. # Set up files for the video library
  25199. if test x$enable_video = xyes; then
  25200. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25201. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25202. have_video=yes
  25203. SUMMARY_video="${SUMMARY_video} riscos"
  25204. fi
  25205. # Set up files for the filesystem library
  25206. if test x$enable_filesystem = xyes; then
  25207. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25208. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25209. have_filesystem=yes
  25210. fi
  25211. # Set up files for the timer library
  25212. if test x$enable_timers = xyes; then
  25213. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25214. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25215. have_timers=yes
  25216. fi
  25217. ;;
  25218. *-*-os2*)
  25219. ARCH=os2
  25220. if test "$build" != "$host"; then # cross-compiling
  25221. # Default cross-compile location
  25222. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25223. else
  25224. # Look for the location of the tools and install there
  25225. if test "$BUILD_PREFIX" != ""; then
  25226. ac_default_prefix=$BUILD_PREFIX
  25227. fi
  25228. fi
  25229. enable_static=no # disable static builds
  25230. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25231. CheckOS2
  25232. CheckDeclarationAfterStatement
  25233. CheckDummyVideo
  25234. CheckDiskAudio
  25235. CheckDummyAudio
  25236. CheckHIDAPI
  25237. # Set up the core platform files
  25238. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25239. if test x$enable_system_iconv = xyes; then
  25240. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25241. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25242. fi
  25243. fi
  25244. # Use the Unix locale APIs.
  25245. if test x$enable_locale = xyes; then
  25246. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25247. have_locale=yes
  25248. fi
  25249. # Set up files for the video library
  25250. if test x$enable_video = xyes; then
  25251. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25252. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25253. have_video=yes
  25254. SUMMARY_video="${SUMMARY_video} os/2"
  25255. fi
  25256. # Set up files for the audio library
  25257. if test x$enable_audio = xyes; then
  25258. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25259. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25260. have_audio=yes
  25261. SUMMARY_audio="${SUMMARY_audio} os/2"
  25262. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25263. fi
  25264. # Set up files for the thread library
  25265. if test x$enable_threads = xyes; then
  25266. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25267. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25268. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25269. have_threads=yes
  25270. fi
  25271. # Set up files for the timer library
  25272. if test x$enable_timers = xyes; then
  25273. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25274. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25275. have_timers=yes
  25276. fi
  25277. # Set up files for the shared object loading library
  25278. if test x$enable_loadso = xyes; then
  25279. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25280. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25281. have_loadso=yes
  25282. fi
  25283. # Set up files for the filesystem library
  25284. if test x$enable_filesystem = xyes; then
  25285. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25286. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25287. have_filesystem=yes
  25288. fi
  25289. # Set up files for the joystick library
  25290. if test x$enable_joystick = xyes; then
  25291. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25292. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25293. have_joystick=yes
  25294. fi
  25295. ;;
  25296. *)
  25297. as_fn_error $? "
  25298. *** Unsupported host: Please add to configure.ac
  25299. " "$LINENO" 5
  25300. ;;
  25301. esac
  25302. CheckVirtualJoystick
  25303. # Check whether to install sdl2-config
  25304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25305. printf %s "checking whether to install sdl2-config... " >&6; }
  25306. # Check whether --enable-sdl2-config was given.
  25307. if test ${enable_sdl2_config+y}
  25308. then :
  25309. enableval=$enable_sdl2_config; case "${enableval}" in
  25310. yes) enable_sdl2_config="TRUE" ;;
  25311. no) enable_sdl2_config="FALSE" ;;
  25312. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25313. esac
  25314. else $as_nop
  25315. enable_sdl2_config="TRUE"
  25316. fi
  25317. if test "$enable_sdl2_config" = "TRUE"; then
  25318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25319. printf "%s\n" "yes" >&6; }
  25320. else
  25321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25322. printf "%s\n" "no" >&6; }
  25323. fi
  25324. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25325. # Verify that we have all the platform specific files we need
  25326. if test x$have_audio != xyes; then
  25327. if test x$enable_audio = xyes; then
  25328. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25329. fi
  25330. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25331. fi
  25332. if test x$have_video != xyes; then
  25333. if test x$enable_video = xyes; then
  25334. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25335. fi
  25336. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25337. fi
  25338. if test x$have_misc != xyes; then
  25339. if test x$enable_misc = xyes; then
  25340. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25341. fi
  25342. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25343. fi
  25344. if test x$have_locale != xyes; then
  25345. if test x$enable_locale = xyes; then
  25346. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25347. fi
  25348. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25349. fi
  25350. if test x$have_joystick != xyes; then
  25351. if test x$enable_joystick = xyes; then
  25352. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25353. fi
  25354. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25355. fi
  25356. if test x$have_haptic != xyes; then
  25357. if test x$enable_haptic = xyes; then
  25358. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25359. fi
  25360. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25361. fi
  25362. if test x$have_sensor != xyes; then
  25363. if test x$enable_sensor = xyes; then
  25364. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25365. fi
  25366. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25367. fi
  25368. if test x$have_threads != xyes; then
  25369. if test x$enable_threads = xyes; then
  25370. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25371. fi
  25372. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25373. fi
  25374. if test x$have_timers != xyes; then
  25375. if test x$enable_timers = xyes; then
  25376. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25377. fi
  25378. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25379. fi
  25380. if test x$have_filesystem != xyes; then
  25381. if test x$enable_filesystem = xyes; then
  25382. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25383. fi
  25384. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25385. fi
  25386. if test x$have_loadso != xyes; then
  25387. if test x$enable_loadso = xyes; then
  25388. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25389. fi
  25390. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25391. fi
  25392. if test x$SDLMAIN_SOURCES = x; then
  25393. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25394. fi
  25395. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25396. if test x$video_wayland = xyes; then
  25397. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25398. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25399. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25400. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25401. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25402. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25403. echo ;\
  25404. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25405. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25406. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25407. echo ;\
  25408. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25409. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25410. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25411. echo ;\
  25412. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25413. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25414. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25415. done ;\
  25416. echo ;\
  25417. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25418. fi
  25419. OBJECTS=`echo $SOURCES`
  25420. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25421. for EXT in asm cc m c S; do
  25422. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25423. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25424. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25425. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25426. done
  25427. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25428. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25429. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25430. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25431. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25432. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25433. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25434. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25435. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25436. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25437. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25438. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25439. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25440. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25441. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25442. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25443. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25444. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25445. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25446. # Set runtime shared library paths as needed
  25447. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25448. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25449. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25451. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25452. have_enable_new_dtags=no
  25453. save_LDFLAGS="$LDFLAGS"
  25454. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25456. /* end confdefs.h. */
  25457. int
  25458. main (void)
  25459. {
  25460. ;
  25461. return 0;
  25462. }
  25463. _ACEOF
  25464. if ac_fn_c_try_link "$LINENO"
  25465. then :
  25466. have_enable_new_dtags=yes
  25467. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25468. fi
  25469. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25470. conftest$ac_exeext conftest.$ac_ext
  25471. LDFLAGS="$save_LDFLAGS"
  25472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25473. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25474. fi
  25475. if test $ARCH = solaris; then
  25476. SDL_RLD_FLAGS="-R\${libdir}"
  25477. fi
  25478. else
  25479. SDL_RLD_FLAGS=""
  25480. fi
  25481. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25482. pkg_cmakedir='$libdir/cmake/SDL2'
  25483. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25484. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25485. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25486. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25487. _lcl_receval="$_lcl_from"
  25488. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25489. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25490. _lcl_receval_old=''
  25491. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25492. _lcl_receval_old="$_lcl_receval"
  25493. eval _lcl_receval="\"$_lcl_receval\""
  25494. done
  25495. echo "$_lcl_receval")`
  25496. _lcl_receval="$_lcl_to"
  25497. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25498. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25499. _lcl_receval_old=''
  25500. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25501. _lcl_receval_old="$_lcl_receval"
  25502. eval _lcl_receval="\"$_lcl_receval\""
  25503. done
  25504. echo "$_lcl_receval")`
  25505. _lcl_notation="$_lcl_from$_lcl_to"
  25506. case ":$_lcl_from:" in
  25507. # change empty paths to '.'
  25508. ::) _lcl_from='.' ;;
  25509. # strip trailing slashes
  25510. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25511. :*:) ;;
  25512. esac
  25513. # squeeze repeated slashes
  25514. case '/' in
  25515. # if the path contains any backslashes, turn slashes into backslashes
  25516. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25517. # if the path contains slashes, also turn backslashes into slashes
  25518. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25519. esac
  25520. case ":$_lcl_to:" in
  25521. # change empty paths to '.'
  25522. ::) _lcl_to='.' ;;
  25523. # strip trailing slashes
  25524. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25525. :*:) ;;
  25526. esac
  25527. # squeeze repeated slashes
  25528. case '/' in
  25529. # if the path contains any backslashes, turn slashes into backslashes
  25530. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25531. # if the path contains slashes, also turn backslashes into slashes
  25532. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25533. esac
  25534. _lcl_common_prefix=''
  25535. _lcl_second_prefix_match=''
  25536. while test "$_lcl_second_prefix_match" != 0; do
  25537. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25538. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25539. if test "$_lcl_second_prefix_match" != 0; then
  25540. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25541. _lcl_common_prefix="$_lcl_first_prefix"
  25542. else
  25543. _lcl_second_prefix_match=0
  25544. fi
  25545. fi
  25546. done
  25547. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25548. _lcl_first_rel=''
  25549. _lcl_tmp='xxx'
  25550. while test "$_lcl_tmp" != ''; do
  25551. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25552. if test "$_lcl_first_suffix" != ''; then
  25553. _lcl_first_suffix="$_lcl_tmp"
  25554. _lcl_first_rel="../$_lcl_first_rel"
  25555. fi
  25556. done
  25557. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25558. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25559. case ":$_lcl_result_tmp:" in
  25560. # change empty paths to '.'
  25561. ::) _lcl_result_tmp='.' ;;
  25562. # strip trailing slashes
  25563. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25564. :*:) ;;
  25565. esac
  25566. # squeeze repeated slashes
  25567. case "$_lcl_notation" in
  25568. # if the path contains any backslashes, turn slashes into backslashes
  25569. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25570. # if the path contains slashes, also turn backslashes into slashes
  25571. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25572. esac
  25573. eval $_lcl_result_var='$_lcl_result_tmp'
  25574. done
  25575. if test x$enable_shared = xyes; then
  25576. PKGCONFIG_LIBS_PRIV="
  25577. Libs.private:"
  25578. ENABLE_SHARED_TRUE=
  25579. ENABLE_SHARED_FALSE="#"
  25580. else
  25581. PKGCONFIG_LIBS_PRIV=
  25582. ENABLE_SHARED_TRUE="#"
  25583. ENABLE_SHARED_FALSE=
  25584. fi
  25585. if test x$enable_static = xyes; then
  25586. ENABLE_STATIC_TRUE=
  25587. ENABLE_STATIC_FALSE="#"
  25588. else
  25589. ENABLE_STATIC_TRUE="#"
  25590. ENABLE_STATIC_FALSE=
  25591. fi
  25592. cat >Makefile.rules <<__EOF__
  25593. # Build rules for objects
  25594. -include \$(OBJECTS:.lo=.d)
  25595. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25596. $srcdir/src/SDL.c: update-revision
  25597. $DEPENDS
  25598. $VERSION_DEPENDS
  25599. $SDLMAIN_DEPENDS
  25600. $SDLTEST_DEPENDS
  25601. $WAYLAND_PROTOCOLS_DEPENDS
  25602. __EOF__
  25603. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25604. ac_config_commands="$ac_config_commands sdl2_config"
  25605. SUMMARY="SDL2 Configure Summary:\n"
  25606. if test x$enable_shared = xyes; then
  25607. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25608. fi
  25609. if test x$enable_static = xyes; then
  25610. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25611. fi
  25612. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25613. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25614. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25615. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25616. if test x$have_x = xyes; then
  25617. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25618. fi
  25619. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25620. if test x$have_joystick_virtual = xyes; then
  25621. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25622. else
  25623. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25624. fi
  25625. if test x$have_samplerate_h_hdr = xyes; then
  25626. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25627. else
  25628. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25629. fi
  25630. if test x$have_libudev_h_hdr = xyes; then
  25631. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25632. else
  25633. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25634. fi
  25635. if test x$have_dbus_dbus_h_hdr = xyes; then
  25636. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25637. else
  25638. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25639. fi
  25640. if test x$enable_ime = xyes; then
  25641. SUMMARY="${SUMMARY}Using ime : YES\n"
  25642. else
  25643. SUMMARY="${SUMMARY}Using ime : NO\n"
  25644. fi
  25645. if test x$have_ibus_ibus_h_hdr = xyes; then
  25646. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25647. else
  25648. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25649. fi
  25650. if test x$have_fcitx = xyes; then
  25651. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25652. else
  25653. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25654. fi
  25655. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25656. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25657. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25658. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25659. SUMMARY="${SUMMARY}configure script with:\n"
  25660. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25661. fi
  25662. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25663. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25664. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25665. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25666. SUMMARY="${SUMMARY}configure script with:\n"
  25667. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25668. fi
  25669. ac_config_commands="$ac_config_commands summary"
  25670. cat >confcache <<\_ACEOF
  25671. # This file is a shell script that caches the results of configure
  25672. # tests run on this system so they can be shared between configure
  25673. # scripts and configure runs, see configure's option --config-cache.
  25674. # It is not useful on other systems. If it contains results you don't
  25675. # want to keep, you may remove or edit it.
  25676. #
  25677. # config.status only pays attention to the cache file if you give it
  25678. # the --recheck option to rerun configure.
  25679. #
  25680. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25681. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25682. # following values.
  25683. _ACEOF
  25684. # The following way of writing the cache mishandles newlines in values,
  25685. # but we know of no workaround that is simple, portable, and efficient.
  25686. # So, we kill variables containing newlines.
  25687. # Ultrix sh set writes to stderr and can't be redirected directly,
  25688. # and sets the high bit in the cache file unless we assign to the vars.
  25689. (
  25690. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25691. eval ac_val=\$$ac_var
  25692. case $ac_val in #(
  25693. *${as_nl}*)
  25694. case $ac_var in #(
  25695. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25696. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25697. esac
  25698. case $ac_var in #(
  25699. _ | IFS | as_nl) ;; #(
  25700. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25701. *) { eval $ac_var=; unset $ac_var;} ;;
  25702. esac ;;
  25703. esac
  25704. done
  25705. (set) 2>&1 |
  25706. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25707. *${as_nl}ac_space=\ *)
  25708. # `set' does not quote correctly, so add quotes: double-quote
  25709. # substitution turns \\\\ into \\, and sed turns \\ into \.
  25710. sed -n \
  25711. "s/'/'\\\\''/g;
  25712. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25713. ;; #(
  25714. *)
  25715. # `set' quotes correctly as required by POSIX, so do not add quotes.
  25716. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25717. ;;
  25718. esac |
  25719. sort
  25720. ) |
  25721. sed '
  25722. /^ac_cv_env_/b end
  25723. t clear
  25724. :clear
  25725. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  25726. t end
  25727. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25728. :end' >>confcache
  25729. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25730. if test -w "$cache_file"; then
  25731. if test "x$cache_file" != "x/dev/null"; then
  25732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25733. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  25734. if test ! -f "$cache_file" || test -h "$cache_file"; then
  25735. cat confcache >"$cache_file"
  25736. else
  25737. case $cache_file in #(
  25738. */* | ?:*)
  25739. mv -f confcache "$cache_file"$$ &&
  25740. mv -f "$cache_file"$$ "$cache_file" ;; #(
  25741. *)
  25742. mv -f confcache "$cache_file" ;;
  25743. esac
  25744. fi
  25745. fi
  25746. else
  25747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  25748. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  25749. fi
  25750. fi
  25751. rm -f confcache
  25752. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25753. # Let make expand exec_prefix.
  25754. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25755. DEFS=-DHAVE_CONFIG_H
  25756. ac_libobjs=
  25757. ac_ltlibobjs=
  25758. U=
  25759. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25760. # 1. Remove the extension, and $U if already installed.
  25761. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25762. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  25763. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25764. # will be set to the directory where LIBOBJS objects are built.
  25765. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25766. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  25767. done
  25768. LIBOBJS=$ac_libobjs
  25769. LTLIBOBJS=$ac_ltlibobjs
  25770. : "${CONFIG_STATUS=./config.status}"
  25771. ac_write_fail=0
  25772. ac_clean_files_save=$ac_clean_files
  25773. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  25775. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  25776. as_write_fail=0
  25777. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  25778. #! $SHELL
  25779. # Generated by $as_me.
  25780. # Run this file to recreate the current configuration.
  25781. # Compiler output produced by configure, useful for debugging
  25782. # configure, is in config.log if it exists.
  25783. debug=false
  25784. ac_cs_recheck=false
  25785. ac_cs_silent=false
  25786. SHELL=\${CONFIG_SHELL-$SHELL}
  25787. export SHELL
  25788. _ASEOF
  25789. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  25790. ## -------------------- ##
  25791. ## M4sh Initialization. ##
  25792. ## -------------------- ##
  25793. # Be more Bourne compatible
  25794. DUALCASE=1; export DUALCASE # for MKS sh
  25795. as_nop=:
  25796. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  25797. then :
  25798. emulate sh
  25799. NULLCMD=:
  25800. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25801. # is contrary to our usage. Disable this feature.
  25802. alias -g '${1+"$@"}'='"$@"'
  25803. setopt NO_GLOB_SUBST
  25804. else $as_nop
  25805. case `(set -o) 2>/dev/null` in #(
  25806. *posix*) :
  25807. set -o posix ;; #(
  25808. *) :
  25809. ;;
  25810. esac
  25811. fi
  25812. # Reset variables that may have inherited troublesome values from
  25813. # the environment.
  25814. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  25815. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  25816. # side effect of setting IFS to empty, thus disabling word splitting.)
  25817. # Quoting is to prevent editors from complaining about space-tab.
  25818. as_nl='
  25819. '
  25820. export as_nl
  25821. IFS=" "" $as_nl"
  25822. PS1='$ '
  25823. PS2='> '
  25824. PS4='+ '
  25825. # Ensure predictable behavior from utilities with locale-dependent output.
  25826. LC_ALL=C
  25827. export LC_ALL
  25828. LANGUAGE=C
  25829. export LANGUAGE
  25830. # We cannot yet rely on "unset" to work, but we need these variables
  25831. # to be unset--not just set to an empty or harmless value--now, to
  25832. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  25833. # also avoids known problems related to "unset" and subshell syntax
  25834. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  25835. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  25836. do eval test \${$as_var+y} \
  25837. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  25838. done
  25839. # Ensure that fds 0, 1, and 2 are open.
  25840. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  25841. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  25842. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  25843. # The user is always right.
  25844. if ${PATH_SEPARATOR+false} :; then
  25845. PATH_SEPARATOR=:
  25846. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  25847. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  25848. PATH_SEPARATOR=';'
  25849. }
  25850. fi
  25851. # Find who we are. Look in the path if we contain no directory separator.
  25852. as_myself=
  25853. case $0 in #((
  25854. *[\\/]* ) as_myself=$0 ;;
  25855. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25856. for as_dir in $PATH
  25857. do
  25858. IFS=$as_save_IFS
  25859. case $as_dir in #(((
  25860. '') as_dir=./ ;;
  25861. */) ;;
  25862. *) as_dir=$as_dir/ ;;
  25863. esac
  25864. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  25865. done
  25866. IFS=$as_save_IFS
  25867. ;;
  25868. esac
  25869. # We did not find ourselves, most probably we were run as `sh COMMAND'
  25870. # in which case we are not to be found in the path.
  25871. if test "x$as_myself" = x; then
  25872. as_myself=$0
  25873. fi
  25874. if test ! -f "$as_myself"; then
  25875. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  25876. exit 1
  25877. fi
  25878. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  25879. # ----------------------------------------
  25880. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  25881. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  25882. # script with STATUS, using 1 if that was 0.
  25883. as_fn_error ()
  25884. {
  25885. as_status=$1; test $as_status -eq 0 && as_status=1
  25886. if test "$4"; then
  25887. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  25888. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  25889. fi
  25890. printf "%s\n" "$as_me: error: $2" >&2
  25891. as_fn_exit $as_status
  25892. } # as_fn_error
  25893. # as_fn_set_status STATUS
  25894. # -----------------------
  25895. # Set $? to STATUS, without forking.
  25896. as_fn_set_status ()
  25897. {
  25898. return $1
  25899. } # as_fn_set_status
  25900. # as_fn_exit STATUS
  25901. # -----------------
  25902. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  25903. as_fn_exit ()
  25904. {
  25905. set +e
  25906. as_fn_set_status $1
  25907. exit $1
  25908. } # as_fn_exit
  25909. # as_fn_unset VAR
  25910. # ---------------
  25911. # Portably unset VAR.
  25912. as_fn_unset ()
  25913. {
  25914. { eval $1=; unset $1;}
  25915. }
  25916. as_unset=as_fn_unset
  25917. # as_fn_append VAR VALUE
  25918. # ----------------------
  25919. # Append the text in VALUE to the end of the definition contained in VAR. Take
  25920. # advantage of any shell optimizations that allow amortized linear growth over
  25921. # repeated appends, instead of the typical quadratic growth present in naive
  25922. # implementations.
  25923. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  25924. then :
  25925. eval 'as_fn_append ()
  25926. {
  25927. eval $1+=\$2
  25928. }'
  25929. else $as_nop
  25930. as_fn_append ()
  25931. {
  25932. eval $1=\$$1\$2
  25933. }
  25934. fi # as_fn_append
  25935. # as_fn_arith ARG...
  25936. # ------------------
  25937. # Perform arithmetic evaluation on the ARGs, and store the result in the
  25938. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  25939. # must be portable across $(()) and expr.
  25940. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  25941. then :
  25942. eval 'as_fn_arith ()
  25943. {
  25944. as_val=$(( $* ))
  25945. }'
  25946. else $as_nop
  25947. as_fn_arith ()
  25948. {
  25949. as_val=`expr "$@" || test $? -eq 1`
  25950. }
  25951. fi # as_fn_arith
  25952. if expr a : '\(a\)' >/dev/null 2>&1 &&
  25953. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  25954. as_expr=expr
  25955. else
  25956. as_expr=false
  25957. fi
  25958. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  25959. as_basename=basename
  25960. else
  25961. as_basename=false
  25962. fi
  25963. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  25964. as_dirname=dirname
  25965. else
  25966. as_dirname=false
  25967. fi
  25968. as_me=`$as_basename -- "$0" ||
  25969. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  25970. X"$0" : 'X\(//\)$' \| \
  25971. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  25972. printf "%s\n" X/"$0" |
  25973. sed '/^.*\/\([^/][^/]*\)\/*$/{
  25974. s//\1/
  25975. q
  25976. }
  25977. /^X\/\(\/\/\)$/{
  25978. s//\1/
  25979. q
  25980. }
  25981. /^X\/\(\/\).*/{
  25982. s//\1/
  25983. q
  25984. }
  25985. s/.*/./; q'`
  25986. # Avoid depending upon Character Ranges.
  25987. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  25988. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  25989. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  25990. as_cr_digits='0123456789'
  25991. as_cr_alnum=$as_cr_Letters$as_cr_digits
  25992. # Determine whether it's possible to make 'echo' print without a newline.
  25993. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  25994. # for compatibility with existing Makefiles.
  25995. ECHO_C= ECHO_N= ECHO_T=
  25996. case `echo -n x` in #(((((
  25997. -n*)
  25998. case `echo 'xy\c'` in
  25999. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26000. xy) ECHO_C='\c';;
  26001. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26002. ECHO_T=' ';;
  26003. esac;;
  26004. *)
  26005. ECHO_N='-n';;
  26006. esac
  26007. # For backward compatibility with old third-party macros, we provide
  26008. # the shell variables $as_echo and $as_echo_n. New code should use
  26009. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26010. as_echo='printf %s\n'
  26011. as_echo_n='printf %s'
  26012. rm -f conf$$ conf$$.exe conf$$.file
  26013. if test -d conf$$.dir; then
  26014. rm -f conf$$.dir/conf$$.file
  26015. else
  26016. rm -f conf$$.dir
  26017. mkdir conf$$.dir 2>/dev/null
  26018. fi
  26019. if (echo >conf$$.file) 2>/dev/null; then
  26020. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26021. as_ln_s='ln -s'
  26022. # ... but there are two gotchas:
  26023. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26024. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26025. # In both cases, we have to default to `cp -pR'.
  26026. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26027. as_ln_s='cp -pR'
  26028. elif ln conf$$.file conf$$ 2>/dev/null; then
  26029. as_ln_s=ln
  26030. else
  26031. as_ln_s='cp -pR'
  26032. fi
  26033. else
  26034. as_ln_s='cp -pR'
  26035. fi
  26036. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26037. rmdir conf$$.dir 2>/dev/null
  26038. # as_fn_mkdir_p
  26039. # -------------
  26040. # Create "$as_dir" as a directory, including parents if necessary.
  26041. as_fn_mkdir_p ()
  26042. {
  26043. case $as_dir in #(
  26044. -*) as_dir=./$as_dir;;
  26045. esac
  26046. test -d "$as_dir" || eval $as_mkdir_p || {
  26047. as_dirs=
  26048. while :; do
  26049. case $as_dir in #(
  26050. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26051. *) as_qdir=$as_dir;;
  26052. esac
  26053. as_dirs="'$as_qdir' $as_dirs"
  26054. as_dir=`$as_dirname -- "$as_dir" ||
  26055. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26056. X"$as_dir" : 'X\(//\)[^/]' \| \
  26057. X"$as_dir" : 'X\(//\)$' \| \
  26058. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26059. printf "%s\n" X"$as_dir" |
  26060. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26061. s//\1/
  26062. q
  26063. }
  26064. /^X\(\/\/\)[^/].*/{
  26065. s//\1/
  26066. q
  26067. }
  26068. /^X\(\/\/\)$/{
  26069. s//\1/
  26070. q
  26071. }
  26072. /^X\(\/\).*/{
  26073. s//\1/
  26074. q
  26075. }
  26076. s/.*/./; q'`
  26077. test -d "$as_dir" && break
  26078. done
  26079. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26080. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26081. } # as_fn_mkdir_p
  26082. if mkdir -p . 2>/dev/null; then
  26083. as_mkdir_p='mkdir -p "$as_dir"'
  26084. else
  26085. test -d ./-p && rmdir ./-p
  26086. as_mkdir_p=false
  26087. fi
  26088. # as_fn_executable_p FILE
  26089. # -----------------------
  26090. # Test if FILE is an executable regular file.
  26091. as_fn_executable_p ()
  26092. {
  26093. test -f "$1" && test -x "$1"
  26094. } # as_fn_executable_p
  26095. as_test_x='test -x'
  26096. as_executable_p=as_fn_executable_p
  26097. # Sed expression to map a string onto a valid CPP name.
  26098. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26099. # Sed expression to map a string onto a valid variable name.
  26100. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26101. exec 6>&1
  26102. ## ----------------------------------- ##
  26103. ## Main body of $CONFIG_STATUS script. ##
  26104. ## ----------------------------------- ##
  26105. _ASEOF
  26106. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26107. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26108. # Save the log message, to keep $0 and so on meaningful, and to
  26109. # report actual input values of CONFIG_FILES etc. instead of their
  26110. # values after options handling.
  26111. ac_log="
  26112. This file was extended by $as_me, which was
  26113. generated by GNU Autoconf 2.71. Invocation command line was
  26114. CONFIG_FILES = $CONFIG_FILES
  26115. CONFIG_HEADERS = $CONFIG_HEADERS
  26116. CONFIG_LINKS = $CONFIG_LINKS
  26117. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26118. $ $0 $@
  26119. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26120. "
  26121. _ACEOF
  26122. case $ac_config_files in *"
  26123. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26124. esac
  26125. case $ac_config_headers in *"
  26126. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26127. esac
  26128. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26129. # Files that config.status was made for.
  26130. config_files="$ac_config_files"
  26131. config_headers="$ac_config_headers"
  26132. config_commands="$ac_config_commands"
  26133. _ACEOF
  26134. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26135. ac_cs_usage="\
  26136. \`$as_me' instantiates files and other configuration actions
  26137. from templates according to the current configuration. Unless the files
  26138. and actions are specified as TAGs, all are instantiated by default.
  26139. Usage: $0 [OPTION]... [TAG]...
  26140. -h, --help print this help, then exit
  26141. -V, --version print version number and configuration settings, then exit
  26142. --config print configuration, then exit
  26143. -q, --quiet, --silent
  26144. do not print progress messages
  26145. -d, --debug don't remove temporary files
  26146. --recheck update $as_me by reconfiguring in the same conditions
  26147. --file=FILE[:TEMPLATE]
  26148. instantiate the configuration file FILE
  26149. --header=FILE[:TEMPLATE]
  26150. instantiate the configuration header FILE
  26151. Configuration files:
  26152. $config_files
  26153. Configuration headers:
  26154. $config_headers
  26155. Configuration commands:
  26156. $config_commands
  26157. Report bugs to the package provider."
  26158. _ACEOF
  26159. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26160. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26161. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26162. ac_cs_config='$ac_cs_config_escaped'
  26163. ac_cs_version="\\
  26164. config.status
  26165. configured by $0, generated by GNU Autoconf 2.71,
  26166. with options \\"\$ac_cs_config\\"
  26167. Copyright (C) 2021 Free Software Foundation, Inc.
  26168. This config.status script is free software; the Free Software Foundation
  26169. gives unlimited permission to copy, distribute and modify it."
  26170. ac_pwd='$ac_pwd'
  26171. srcdir='$srcdir'
  26172. INSTALL='$INSTALL'
  26173. AWK='$AWK'
  26174. test -n "\$AWK" || AWK=awk
  26175. _ACEOF
  26176. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26177. # The default lists apply if the user does not specify any file.
  26178. ac_need_defaults=:
  26179. while test $# != 0
  26180. do
  26181. case $1 in
  26182. --*=?*)
  26183. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26184. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26185. ac_shift=:
  26186. ;;
  26187. --*=)
  26188. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26189. ac_optarg=
  26190. ac_shift=:
  26191. ;;
  26192. *)
  26193. ac_option=$1
  26194. ac_optarg=$2
  26195. ac_shift=shift
  26196. ;;
  26197. esac
  26198. case $ac_option in
  26199. # Handling of the options.
  26200. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26201. ac_cs_recheck=: ;;
  26202. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26203. printf "%s\n" "$ac_cs_version"; exit ;;
  26204. --config | --confi | --conf | --con | --co | --c )
  26205. printf "%s\n" "$ac_cs_config"; exit ;;
  26206. --debug | --debu | --deb | --de | --d | -d )
  26207. debug=: ;;
  26208. --file | --fil | --fi | --f )
  26209. $ac_shift
  26210. case $ac_optarg in
  26211. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26212. '') as_fn_error $? "missing file argument" ;;
  26213. esac
  26214. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26215. ac_need_defaults=false;;
  26216. --header | --heade | --head | --hea )
  26217. $ac_shift
  26218. case $ac_optarg in
  26219. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26220. esac
  26221. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26222. ac_need_defaults=false;;
  26223. --he | --h)
  26224. # Conflict between --help and --header
  26225. as_fn_error $? "ambiguous option: \`$1'
  26226. Try \`$0 --help' for more information.";;
  26227. --help | --hel | -h )
  26228. printf "%s\n" "$ac_cs_usage"; exit ;;
  26229. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26230. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26231. ac_cs_silent=: ;;
  26232. # This is an error.
  26233. -*) as_fn_error $? "unrecognized option: \`$1'
  26234. Try \`$0 --help' for more information." ;;
  26235. *) as_fn_append ac_config_targets " $1"
  26236. ac_need_defaults=false ;;
  26237. esac
  26238. shift
  26239. done
  26240. ac_configure_extra_args=
  26241. if $ac_cs_silent; then
  26242. exec 6>/dev/null
  26243. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26244. fi
  26245. _ACEOF
  26246. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26247. if \$ac_cs_recheck; then
  26248. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26249. shift
  26250. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26251. CONFIG_SHELL='$SHELL'
  26252. export CONFIG_SHELL
  26253. exec "\$@"
  26254. fi
  26255. _ACEOF
  26256. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26257. exec 5>>config.log
  26258. {
  26259. echo
  26260. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26261. ## Running $as_me. ##
  26262. _ASBOX
  26263. printf "%s\n" "$ac_log"
  26264. } >&5
  26265. _ACEOF
  26266. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26267. #
  26268. # INIT-COMMANDS
  26269. #
  26270. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26271. # if CDPATH is set.
  26272. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26273. sed_quote_subst='$sed_quote_subst'
  26274. double_quote_subst='$double_quote_subst'
  26275. delay_variable_subst='$delay_variable_subst'
  26276. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26277. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26278. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26279. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26280. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26281. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26282. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26283. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26284. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26285. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26286. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26287. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26288. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26289. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26290. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26291. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26292. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26293. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26294. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26295. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26296. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26297. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26298. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26299. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26300. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26301. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26302. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26303. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26304. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26305. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26306. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26307. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26308. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26309. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26310. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26311. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26312. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26313. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26314. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26315. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26316. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26317. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26318. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26319. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26320. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26321. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26322. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26323. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26324. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26325. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26326. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26327. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26328. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26329. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26330. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26331. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26332. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26333. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26334. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26335. 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"`'
  26336. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26337. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26338. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26339. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26340. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26341. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26342. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26343. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26344. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26345. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26346. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26347. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26348. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26349. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26350. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26351. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26352. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26353. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26354. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26355. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26356. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26357. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26358. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26359. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26360. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26361. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26362. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26363. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26364. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26365. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26366. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26367. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26368. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26369. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26370. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26371. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26372. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26373. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26374. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26375. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26376. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26377. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26378. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26379. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26380. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26381. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26382. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26383. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26384. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26385. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26386. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26387. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26388. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26389. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26390. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26391. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26392. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26393. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26394. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26395. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26396. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26397. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26398. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26399. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26400. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26401. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26402. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26403. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26404. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26405. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26406. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26407. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26408. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26409. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26410. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26411. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26412. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26413. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26414. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26415. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26416. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26417. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26418. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26419. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26420. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26421. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26422. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26423. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26424. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26425. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26426. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26427. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26428. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26429. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26430. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26431. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26432. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26433. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26434. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26435. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26436. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26437. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26438. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26439. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26440. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26441. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26442. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26443. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26444. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26445. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26446. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26447. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26448. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26449. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26450. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26451. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26452. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26453. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26454. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26455. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26456. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26457. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26458. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26459. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26460. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26461. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26462. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26463. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26464. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26465. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26466. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26467. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26468. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26469. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26470. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26471. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26472. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26473. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26474. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26475. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26476. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26477. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26478. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26479. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26480. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26481. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26482. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26483. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26484. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26485. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26486. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26487. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26488. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26489. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26490. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26491. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26492. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26493. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26494. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26495. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26496. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26497. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26498. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26499. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26500. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26501. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26502. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26503. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26504. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26505. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26506. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26507. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26508. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26509. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26510. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26511. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26512. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26513. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26514. LTCC='$LTCC'
  26515. LTCFLAGS='$LTCFLAGS'
  26516. compiler='$compiler_DEFAULT'
  26517. # A function that is used when there is no print builtin or printf.
  26518. func_fallback_echo ()
  26519. {
  26520. eval 'cat <<_LTECHO_EOF
  26521. \$1
  26522. _LTECHO_EOF'
  26523. }
  26524. # Quote evaled strings.
  26525. for var in AS \
  26526. DLLTOOL \
  26527. OBJDUMP \
  26528. SHELL \
  26529. ECHO \
  26530. PATH_SEPARATOR \
  26531. SED \
  26532. GREP \
  26533. EGREP \
  26534. FGREP \
  26535. LD \
  26536. NM \
  26537. LN_S \
  26538. lt_SP2NL \
  26539. lt_NL2SP \
  26540. reload_flag \
  26541. deplibs_check_method \
  26542. file_magic_cmd \
  26543. file_magic_glob \
  26544. want_nocaseglob \
  26545. sharedlib_from_linklib_cmd \
  26546. AR \
  26547. AR_FLAGS \
  26548. archiver_list_spec \
  26549. STRIP \
  26550. RANLIB \
  26551. CC \
  26552. CFLAGS \
  26553. compiler \
  26554. lt_cv_sys_global_symbol_pipe \
  26555. lt_cv_sys_global_symbol_to_cdecl \
  26556. lt_cv_sys_global_symbol_to_import \
  26557. lt_cv_sys_global_symbol_to_c_name_address \
  26558. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26559. lt_cv_nm_interface \
  26560. nm_file_list_spec \
  26561. lt_cv_truncate_bin \
  26562. lt_prog_compiler_no_builtin_flag \
  26563. lt_prog_compiler_pic \
  26564. lt_prog_compiler_wl \
  26565. lt_prog_compiler_static \
  26566. lt_cv_prog_compiler_c_o \
  26567. need_locks \
  26568. MANIFEST_TOOL \
  26569. DSYMUTIL \
  26570. NMEDIT \
  26571. LIPO \
  26572. OTOOL \
  26573. OTOOL64 \
  26574. shrext_cmds \
  26575. export_dynamic_flag_spec \
  26576. whole_archive_flag_spec \
  26577. compiler_needs_object \
  26578. with_gnu_ld \
  26579. allow_undefined_flag \
  26580. no_undefined_flag \
  26581. hardcode_libdir_flag_spec \
  26582. hardcode_libdir_separator \
  26583. exclude_expsyms \
  26584. include_expsyms \
  26585. file_list_spec \
  26586. variables_saved_for_relink \
  26587. libname_spec \
  26588. library_names_spec \
  26589. soname_spec \
  26590. install_override_mode \
  26591. finish_eval \
  26592. old_striplib \
  26593. striplib \
  26594. compiler_lib_search_dirs \
  26595. predep_objects \
  26596. postdep_objects \
  26597. predeps \
  26598. postdeps \
  26599. compiler_lib_search_path \
  26600. LD_RC \
  26601. LD_CXX \
  26602. reload_flag_RC \
  26603. reload_flag_CXX \
  26604. compiler_RC \
  26605. compiler_CXX \
  26606. lt_prog_compiler_no_builtin_flag_RC \
  26607. lt_prog_compiler_no_builtin_flag_CXX \
  26608. lt_prog_compiler_pic_RC \
  26609. lt_prog_compiler_pic_CXX \
  26610. lt_prog_compiler_wl_RC \
  26611. lt_prog_compiler_wl_CXX \
  26612. lt_prog_compiler_static_RC \
  26613. lt_prog_compiler_static_CXX \
  26614. lt_cv_prog_compiler_c_o_RC \
  26615. lt_cv_prog_compiler_c_o_CXX \
  26616. export_dynamic_flag_spec_RC \
  26617. export_dynamic_flag_spec_CXX \
  26618. whole_archive_flag_spec_RC \
  26619. whole_archive_flag_spec_CXX \
  26620. compiler_needs_object_RC \
  26621. compiler_needs_object_CXX \
  26622. with_gnu_ld_RC \
  26623. with_gnu_ld_CXX \
  26624. allow_undefined_flag_RC \
  26625. allow_undefined_flag_CXX \
  26626. no_undefined_flag_RC \
  26627. no_undefined_flag_CXX \
  26628. hardcode_libdir_flag_spec_RC \
  26629. hardcode_libdir_flag_spec_CXX \
  26630. hardcode_libdir_separator_RC \
  26631. hardcode_libdir_separator_CXX \
  26632. exclude_expsyms_RC \
  26633. exclude_expsyms_CXX \
  26634. include_expsyms_RC \
  26635. include_expsyms_CXX \
  26636. file_list_spec_RC \
  26637. file_list_spec_CXX \
  26638. compiler_lib_search_dirs_RC \
  26639. compiler_lib_search_dirs_CXX \
  26640. predep_objects_RC \
  26641. predep_objects_CXX \
  26642. postdep_objects_RC \
  26643. postdep_objects_CXX \
  26644. predeps_RC \
  26645. predeps_CXX \
  26646. postdeps_RC \
  26647. postdeps_CXX \
  26648. compiler_lib_search_path_RC \
  26649. compiler_lib_search_path_CXX; do
  26650. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26651. *[\\\\\\\`\\"\\\$]*)
  26652. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26653. ;;
  26654. *)
  26655. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26656. ;;
  26657. esac
  26658. done
  26659. # Double-quote double-evaled strings.
  26660. for var in reload_cmds \
  26661. old_postinstall_cmds \
  26662. old_postuninstall_cmds \
  26663. old_archive_cmds \
  26664. extract_expsyms_cmds \
  26665. old_archive_from_new_cmds \
  26666. old_archive_from_expsyms_cmds \
  26667. archive_cmds \
  26668. archive_expsym_cmds \
  26669. module_cmds \
  26670. module_expsym_cmds \
  26671. export_symbols_cmds \
  26672. prelink_cmds \
  26673. postlink_cmds \
  26674. postinstall_cmds \
  26675. postuninstall_cmds \
  26676. finish_cmds \
  26677. sys_lib_search_path_spec \
  26678. configure_time_dlsearch_path \
  26679. configure_time_lt_sys_library_path \
  26680. reload_cmds_RC \
  26681. reload_cmds_CXX \
  26682. old_archive_cmds_RC \
  26683. old_archive_cmds_CXX \
  26684. old_archive_from_new_cmds_RC \
  26685. old_archive_from_new_cmds_CXX \
  26686. old_archive_from_expsyms_cmds_RC \
  26687. old_archive_from_expsyms_cmds_CXX \
  26688. archive_cmds_RC \
  26689. archive_cmds_CXX \
  26690. archive_expsym_cmds_RC \
  26691. archive_expsym_cmds_CXX \
  26692. module_cmds_RC \
  26693. module_cmds_CXX \
  26694. module_expsym_cmds_RC \
  26695. module_expsym_cmds_CXX \
  26696. export_symbols_cmds_RC \
  26697. export_symbols_cmds_CXX \
  26698. prelink_cmds_RC \
  26699. prelink_cmds_CXX \
  26700. postlink_cmds_RC \
  26701. postlink_cmds_CXX; do
  26702. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26703. *[\\\\\\\`\\"\\\$]*)
  26704. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26705. ;;
  26706. *)
  26707. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26708. ;;
  26709. esac
  26710. done
  26711. ac_aux_dir='$ac_aux_dir'
  26712. # See if we are running on zsh, and set the options that allow our
  26713. # commands through without removal of \ escapes INIT.
  26714. if test -n "\${ZSH_VERSION+set}"; then
  26715. setopt NO_GLOB_SUBST
  26716. fi
  26717. PACKAGE='$PACKAGE'
  26718. VERSION='$VERSION'
  26719. RM='$RM'
  26720. ofile='$ofile'
  26721. SUMMARY="$SUMMARY"
  26722. _ACEOF
  26723. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26724. # Handling of arguments.
  26725. for ac_config_target in $ac_config_targets
  26726. do
  26727. case $ac_config_target in
  26728. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  26729. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26730. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  26731. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  26732. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  26733. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  26734. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  26735. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  26736. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  26737. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  26738. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  26739. esac
  26740. done
  26741. # If the user did not use the arguments to specify the items to instantiate,
  26742. # then the envvar interface is used. Set only those that are not.
  26743. # We use the long form for the default assignment because of an extremely
  26744. # bizarre bug on SunOS 4.1.3.
  26745. if $ac_need_defaults; then
  26746. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  26747. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  26748. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  26749. fi
  26750. # Have a temporary directory for convenience. Make it in the build tree
  26751. # simply because there is no reason against having it here, and in addition,
  26752. # creating and moving files from /tmp can sometimes cause problems.
  26753. # Hook for its removal unless debugging.
  26754. # Note that there is a small window in which the directory will not be cleaned:
  26755. # after its creation but before its name has been assigned to `$tmp'.
  26756. $debug ||
  26757. {
  26758. tmp= ac_tmp=
  26759. trap 'exit_status=$?
  26760. : "${ac_tmp:=$tmp}"
  26761. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  26762. ' 0
  26763. trap 'as_fn_exit 1' 1 2 13 15
  26764. }
  26765. # Create a (secure) tmp directory for tmp files.
  26766. {
  26767. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26768. test -d "$tmp"
  26769. } ||
  26770. {
  26771. tmp=./conf$$-$RANDOM
  26772. (umask 077 && mkdir "$tmp")
  26773. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  26774. ac_tmp=$tmp
  26775. # Set up the scripts for CONFIG_FILES section.
  26776. # No need to generate them if there are no CONFIG_FILES.
  26777. # This happens for instance with `./config.status config.h'.
  26778. if test -n "$CONFIG_FILES"; then
  26779. ac_cr=`echo X | tr X '\015'`
  26780. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  26781. # But we know of no other shell where ac_cr would be empty at this
  26782. # point, so we can use a bashism as a fallback.
  26783. if test "x$ac_cr" = x; then
  26784. eval ac_cr=\$\'\\r\'
  26785. fi
  26786. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26787. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26788. ac_cs_awk_cr='\\r'
  26789. else
  26790. ac_cs_awk_cr=$ac_cr
  26791. fi
  26792. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  26793. _ACEOF
  26794. {
  26795. echo "cat >conf$$subs.awk <<_ACEOF" &&
  26796. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26797. echo "_ACEOF"
  26798. } >conf$$subs.sh ||
  26799. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26800. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  26801. ac_delim='%!_!# '
  26802. for ac_last_try in false false false false false :; do
  26803. . ./conf$$subs.sh ||
  26804. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26805. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26806. if test $ac_delim_n = $ac_delim_num; then
  26807. break
  26808. elif $ac_last_try; then
  26809. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26810. else
  26811. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26812. fi
  26813. done
  26814. rm -f conf$$subs.sh
  26815. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26816. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  26817. _ACEOF
  26818. sed -n '
  26819. h
  26820. s/^/S["/; s/!.*/"]=/
  26821. p
  26822. g
  26823. s/^[^!]*!//
  26824. :repl
  26825. t repl
  26826. s/'"$ac_delim"'$//
  26827. t delim
  26828. :nl
  26829. h
  26830. s/\(.\{148\}\)..*/\1/
  26831. t more1
  26832. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  26833. p
  26834. n
  26835. b repl
  26836. :more1
  26837. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26838. p
  26839. g
  26840. s/.\{148\}//
  26841. t nl
  26842. :delim
  26843. h
  26844. s/\(.\{148\}\)..*/\1/
  26845. t more2
  26846. s/["\\]/\\&/g; s/^/"/; s/$/"/
  26847. p
  26848. b
  26849. :more2
  26850. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26851. p
  26852. g
  26853. s/.\{148\}//
  26854. t delim
  26855. ' <conf$$subs.awk | sed '
  26856. /^[^""]/{
  26857. N
  26858. s/\n//
  26859. }
  26860. ' >>$CONFIG_STATUS || ac_write_fail=1
  26861. rm -f conf$$subs.awk
  26862. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26863. _ACAWK
  26864. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  26865. for (key in S) S_is_set[key] = 1
  26866. FS = ""
  26867. }
  26868. {
  26869. line = $ 0
  26870. nfields = split(line, field, "@")
  26871. substed = 0
  26872. len = length(field[1])
  26873. for (i = 2; i < nfields; i++) {
  26874. key = field[i]
  26875. keylen = length(key)
  26876. if (S_is_set[key]) {
  26877. value = S[key]
  26878. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  26879. len += length(value) + length(field[++i])
  26880. substed = 1
  26881. } else
  26882. len += 1 + keylen
  26883. }
  26884. print line
  26885. }
  26886. _ACAWK
  26887. _ACEOF
  26888. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26889. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  26890. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  26891. else
  26892. cat
  26893. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  26894. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  26895. _ACEOF
  26896. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  26897. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  26898. # trailing colons and then remove the whole line if VPATH becomes empty
  26899. # (actually we leave an empty line to preserve line numbers).
  26900. if test "x$srcdir" = x.; then
  26901. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  26902. h
  26903. s///
  26904. s/^/:/
  26905. s/[ ]*$/:/
  26906. s/:\$(srcdir):/:/g
  26907. s/:\${srcdir}:/:/g
  26908. s/:@srcdir@:/:/g
  26909. s/^:*//
  26910. s/:*$//
  26911. x
  26912. s/\(=[ ]*\).*/\1/
  26913. G
  26914. s/\n//
  26915. s/^[^=]*=[ ]*$//
  26916. }'
  26917. fi
  26918. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26919. fi # test -n "$CONFIG_FILES"
  26920. # Set up the scripts for CONFIG_HEADERS section.
  26921. # No need to generate them if there are no CONFIG_HEADERS.
  26922. # This happens for instance with `./config.status Makefile'.
  26923. if test -n "$CONFIG_HEADERS"; then
  26924. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  26925. BEGIN {
  26926. _ACEOF
  26927. # Transform confdefs.h into an awk script `defines.awk', embedded as
  26928. # here-document in config.status, that substitutes the proper values into
  26929. # config.h.in to produce config.h.
  26930. # Create a delimiter string that does not exist in confdefs.h, to ease
  26931. # handling of long lines.
  26932. ac_delim='%!_!# '
  26933. for ac_last_try in false false :; do
  26934. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  26935. if test -z "$ac_tt"; then
  26936. break
  26937. elif $ac_last_try; then
  26938. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  26939. else
  26940. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26941. fi
  26942. done
  26943. # For the awk script, D is an array of macro values keyed by name,
  26944. # likewise P contains macro parameters if any. Preserve backslash
  26945. # newline sequences.
  26946. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  26947. sed -n '
  26948. s/.\{148\}/&'"$ac_delim"'/g
  26949. t rset
  26950. :rset
  26951. s/^[ ]*#[ ]*define[ ][ ]*/ /
  26952. t def
  26953. d
  26954. :def
  26955. s/\\$//
  26956. t bsnl
  26957. s/["\\]/\\&/g
  26958. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26959. D["\1"]=" \3"/p
  26960. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  26961. d
  26962. :bsnl
  26963. s/["\\]/\\&/g
  26964. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26965. D["\1"]=" \3\\\\\\n"\\/p
  26966. t cont
  26967. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  26968. t cont
  26969. d
  26970. :cont
  26971. n
  26972. s/.\{148\}/&'"$ac_delim"'/g
  26973. t clear
  26974. :clear
  26975. s/\\$//
  26976. t bsnlc
  26977. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  26978. d
  26979. :bsnlc
  26980. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  26981. b cont
  26982. ' <confdefs.h | sed '
  26983. s/'"$ac_delim"'/"\\\
  26984. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  26985. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26986. for (key in D) D_is_set[key] = 1
  26987. FS = ""
  26988. }
  26989. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  26990. line = \$ 0
  26991. split(line, arg, " ")
  26992. if (arg[1] == "#") {
  26993. defundef = arg[2]
  26994. mac1 = arg[3]
  26995. } else {
  26996. defundef = substr(arg[1], 2)
  26997. mac1 = arg[2]
  26998. }
  26999. split(mac1, mac2, "(") #)
  27000. macro = mac2[1]
  27001. prefix = substr(line, 1, index(line, defundef) - 1)
  27002. if (D_is_set[macro]) {
  27003. # Preserve the white space surrounding the "#".
  27004. print prefix "define", macro P[macro] D[macro]
  27005. next
  27006. } else {
  27007. # Replace #undef with comments. This is necessary, for example,
  27008. # in the case of _POSIX_SOURCE, which is predefined and required
  27009. # on some systems where configure will not decide to define it.
  27010. if (defundef == "undef") {
  27011. print "/*", prefix defundef, macro, "*/"
  27012. next
  27013. }
  27014. }
  27015. }
  27016. { print }
  27017. _ACAWK
  27018. _ACEOF
  27019. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27020. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27021. fi # test -n "$CONFIG_HEADERS"
  27022. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27023. shift
  27024. for ac_tag
  27025. do
  27026. case $ac_tag in
  27027. :[FHLC]) ac_mode=$ac_tag; continue;;
  27028. esac
  27029. case $ac_mode$ac_tag in
  27030. :[FHL]*:*);;
  27031. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27032. :[FH]-) ac_tag=-:-;;
  27033. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27034. esac
  27035. ac_save_IFS=$IFS
  27036. IFS=:
  27037. set x $ac_tag
  27038. IFS=$ac_save_IFS
  27039. shift
  27040. ac_file=$1
  27041. shift
  27042. case $ac_mode in
  27043. :L) ac_source=$1;;
  27044. :[FH])
  27045. ac_file_inputs=
  27046. for ac_f
  27047. do
  27048. case $ac_f in
  27049. -) ac_f="$ac_tmp/stdin";;
  27050. *) # Look for the file first in the build tree, then in the source tree
  27051. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27052. # because $ac_f cannot contain `:'.
  27053. test -f "$ac_f" ||
  27054. case $ac_f in
  27055. [\\/$]*) false;;
  27056. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27057. esac ||
  27058. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27059. esac
  27060. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27061. as_fn_append ac_file_inputs " '$ac_f'"
  27062. done
  27063. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27064. # use $as_me), people would be surprised to read:
  27065. # /* config.h. Generated by config.status. */
  27066. configure_input='Generated from '`
  27067. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27068. `' by configure.'
  27069. if test x"$ac_file" != x-; then
  27070. configure_input="$ac_file. $configure_input"
  27071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27072. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27073. fi
  27074. # Neutralize special characters interpreted by sed in replacement strings.
  27075. case $configure_input in #(
  27076. *\&* | *\|* | *\\* )
  27077. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27078. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27079. *) ac_sed_conf_input=$configure_input;;
  27080. esac
  27081. case $ac_tag in
  27082. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27083. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27084. esac
  27085. ;;
  27086. esac
  27087. ac_dir=`$as_dirname -- "$ac_file" ||
  27088. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27089. X"$ac_file" : 'X\(//\)[^/]' \| \
  27090. X"$ac_file" : 'X\(//\)$' \| \
  27091. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27092. printf "%s\n" X"$ac_file" |
  27093. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27094. s//\1/
  27095. q
  27096. }
  27097. /^X\(\/\/\)[^/].*/{
  27098. s//\1/
  27099. q
  27100. }
  27101. /^X\(\/\/\)$/{
  27102. s//\1/
  27103. q
  27104. }
  27105. /^X\(\/\).*/{
  27106. s//\1/
  27107. q
  27108. }
  27109. s/.*/./; q'`
  27110. as_dir="$ac_dir"; as_fn_mkdir_p
  27111. ac_builddir=.
  27112. case "$ac_dir" in
  27113. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27114. *)
  27115. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27116. # A ".." for each directory in $ac_dir_suffix.
  27117. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27118. case $ac_top_builddir_sub in
  27119. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27120. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27121. esac ;;
  27122. esac
  27123. ac_abs_top_builddir=$ac_pwd
  27124. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27125. # for backward compatibility:
  27126. ac_top_builddir=$ac_top_build_prefix
  27127. case $srcdir in
  27128. .) # We are building in place.
  27129. ac_srcdir=.
  27130. ac_top_srcdir=$ac_top_builddir_sub
  27131. ac_abs_top_srcdir=$ac_pwd ;;
  27132. [\\/]* | ?:[\\/]* ) # Absolute name.
  27133. ac_srcdir=$srcdir$ac_dir_suffix;
  27134. ac_top_srcdir=$srcdir
  27135. ac_abs_top_srcdir=$srcdir ;;
  27136. *) # Relative name.
  27137. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27138. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27139. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27140. esac
  27141. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27142. case $ac_mode in
  27143. :F)
  27144. #
  27145. # CONFIG_FILE
  27146. #
  27147. case $INSTALL in
  27148. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27149. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27150. esac
  27151. _ACEOF
  27152. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27153. # If the template does not know about datarootdir, expand it.
  27154. # FIXME: This hack should be removed a few years after 2.60.
  27155. ac_datarootdir_hack=; ac_datarootdir_seen=
  27156. ac_sed_dataroot='
  27157. /datarootdir/ {
  27158. p
  27159. q
  27160. }
  27161. /@datadir@/p
  27162. /@docdir@/p
  27163. /@infodir@/p
  27164. /@localedir@/p
  27165. /@mandir@/p'
  27166. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27167. *datarootdir*) ac_datarootdir_seen=yes;;
  27168. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27170. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27171. _ACEOF
  27172. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27173. ac_datarootdir_hack='
  27174. s&@datadir@&$datadir&g
  27175. s&@docdir@&$docdir&g
  27176. s&@infodir@&$infodir&g
  27177. s&@localedir@&$localedir&g
  27178. s&@mandir@&$mandir&g
  27179. s&\\\${datarootdir}&$datarootdir&g' ;;
  27180. esac
  27181. _ACEOF
  27182. # Neutralize VPATH when `$srcdir' = `.'.
  27183. # Shell code in configure.ac might set extrasub.
  27184. # FIXME: do we really want to maintain this feature?
  27185. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27186. ac_sed_extra="$ac_vpsub
  27187. $extrasub
  27188. _ACEOF
  27189. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27190. :t
  27191. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27192. s|@configure_input@|$ac_sed_conf_input|;t t
  27193. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27194. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27195. s&@srcdir@&$ac_srcdir&;t t
  27196. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27197. s&@top_srcdir@&$ac_top_srcdir&;t t
  27198. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27199. s&@builddir@&$ac_builddir&;t t
  27200. s&@abs_builddir@&$ac_abs_builddir&;t t
  27201. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27202. s&@INSTALL@&$ac_INSTALL&;t t
  27203. $ac_datarootdir_hack
  27204. "
  27205. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27206. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27207. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27208. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27209. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27210. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27212. which seems to be undefined. Please make sure it is defined" >&5
  27213. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27214. which seems to be undefined. Please make sure it is defined" >&2;}
  27215. rm -f "$ac_tmp/stdin"
  27216. case $ac_file in
  27217. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27218. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27219. esac \
  27220. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27221. ;;
  27222. :H)
  27223. #
  27224. # CONFIG_HEADER
  27225. #
  27226. if test x"$ac_file" != x-; then
  27227. {
  27228. printf "%s\n" "/* $configure_input */" >&1 \
  27229. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27230. } >"$ac_tmp/config.h" \
  27231. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27232. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27234. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27235. else
  27236. rm -f "$ac_file"
  27237. mv "$ac_tmp/config.h" "$ac_file" \
  27238. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27239. fi
  27240. else
  27241. printf "%s\n" "/* $configure_input */" >&1 \
  27242. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27243. || as_fn_error $? "could not create -" "$LINENO" 5
  27244. fi
  27245. ;;
  27246. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27247. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27248. ;;
  27249. esac
  27250. case $ac_file$ac_mode in
  27251. "libtool":C)
  27252. # See if we are running on zsh, and set the options that allow our
  27253. # commands through without removal of \ escapes.
  27254. if test -n "${ZSH_VERSION+set}"; then
  27255. setopt NO_GLOB_SUBST
  27256. fi
  27257. cfgfile=${ofile}T
  27258. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27259. $RM "$cfgfile"
  27260. cat <<_LT_EOF >> "$cfgfile"
  27261. #! $SHELL
  27262. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27263. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27264. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27265. # Provide generalized library-building support services.
  27266. # Written by Gordon Matzigkeit, 1996
  27267. # Copyright (C) 2014 Free Software Foundation, Inc.
  27268. # This is free software; see the source for copying conditions. There is NO
  27269. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27270. # GNU Libtool is free software; you can redistribute it and/or modify
  27271. # it under the terms of the GNU General Public License as published by
  27272. # the Free Software Foundation; either version 2 of of the License, or
  27273. # (at your option) any later version.
  27274. #
  27275. # As a special exception to the GNU General Public License, if you
  27276. # distribute this file as part of a program or library that is built
  27277. # using GNU Libtool, you may include this file under the same
  27278. # distribution terms that you use for the rest of that program.
  27279. #
  27280. # GNU Libtool is distributed in the hope that it will be useful, but
  27281. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27282. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27283. # GNU General Public License for more details.
  27284. #
  27285. # You should have received a copy of the GNU General Public License
  27286. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27287. # The names of the tagged configurations supported by this script.
  27288. available_tags='RC CXX '
  27289. # Configured defaults for sys_lib_dlsearch_path munging.
  27290. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27291. # ### BEGIN LIBTOOL CONFIG
  27292. # Which release of libtool.m4 was used?
  27293. macro_version=$macro_version
  27294. macro_revision=$macro_revision
  27295. # Assembler program.
  27296. AS=$lt_AS
  27297. # DLL creation program.
  27298. DLLTOOL=$lt_DLLTOOL
  27299. # Object dumper program.
  27300. OBJDUMP=$lt_OBJDUMP
  27301. # Whether or not to build shared libraries.
  27302. build_libtool_libs=$enable_shared
  27303. # Whether or not to build static libraries.
  27304. build_old_libs=$enable_static
  27305. # What type of objects to build.
  27306. pic_mode=$pic_mode
  27307. # Whether or not to optimize for fast installation.
  27308. fast_install=$enable_fast_install
  27309. # Shared archive member basename,for filename based shared library versioning on AIX.
  27310. shared_archive_member_spec=$shared_archive_member_spec
  27311. # Shell to use when invoking shell scripts.
  27312. SHELL=$lt_SHELL
  27313. # An echo program that protects backslashes.
  27314. ECHO=$lt_ECHO
  27315. # The PATH separator for the build system.
  27316. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27317. # The host system.
  27318. host_alias=$host_alias
  27319. host=$host
  27320. host_os=$host_os
  27321. # The build system.
  27322. build_alias=$build_alias
  27323. build=$build
  27324. build_os=$build_os
  27325. # A sed program that does not truncate output.
  27326. SED=$lt_SED
  27327. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27328. Xsed="\$SED -e 1s/^X//"
  27329. # A grep program that handles long lines.
  27330. GREP=$lt_GREP
  27331. # An ERE matcher.
  27332. EGREP=$lt_EGREP
  27333. # A literal string matcher.
  27334. FGREP=$lt_FGREP
  27335. # A BSD- or MS-compatible name lister.
  27336. NM=$lt_NM
  27337. # Whether we need soft or hard links.
  27338. LN_S=$lt_LN_S
  27339. # What is the maximum length of a command?
  27340. max_cmd_len=$max_cmd_len
  27341. # Object file suffix (normally "o").
  27342. objext=$ac_objext
  27343. # Executable file suffix (normally "").
  27344. exeext=$exeext
  27345. # whether the shell understands "unset".
  27346. lt_unset=$lt_unset
  27347. # turn spaces into newlines.
  27348. SP2NL=$lt_lt_SP2NL
  27349. # turn newlines into spaces.
  27350. NL2SP=$lt_lt_NL2SP
  27351. # convert \$build file names to \$host format.
  27352. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27353. # convert \$build files to toolchain format.
  27354. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27355. # Method to check whether dependent libraries are shared objects.
  27356. deplibs_check_method=$lt_deplibs_check_method
  27357. # Command to use when deplibs_check_method = "file_magic".
  27358. file_magic_cmd=$lt_file_magic_cmd
  27359. # How to find potential files when deplibs_check_method = "file_magic".
  27360. file_magic_glob=$lt_file_magic_glob
  27361. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27362. want_nocaseglob=$lt_want_nocaseglob
  27363. # Command to associate shared and link libraries.
  27364. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27365. # The archiver.
  27366. AR=$lt_AR
  27367. # Flags to create an archive.
  27368. AR_FLAGS=$lt_AR_FLAGS
  27369. # How to feed a file listing to the archiver.
  27370. archiver_list_spec=$lt_archiver_list_spec
  27371. # A symbol stripping program.
  27372. STRIP=$lt_STRIP
  27373. # Commands used to install an old-style archive.
  27374. RANLIB=$lt_RANLIB
  27375. old_postinstall_cmds=$lt_old_postinstall_cmds
  27376. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27377. # Whether to use a lock for old archive extraction.
  27378. lock_old_archive_extraction=$lock_old_archive_extraction
  27379. # A C compiler.
  27380. LTCC=$lt_CC
  27381. # LTCC compiler flags.
  27382. LTCFLAGS=$lt_CFLAGS
  27383. # Take the output of nm and produce a listing of raw symbols and C names.
  27384. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27385. # Transform the output of nm in a proper C declaration.
  27386. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27387. # Transform the output of nm into a list of symbols to manually relocate.
  27388. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27389. # Transform the output of nm in a C name address pair.
  27390. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27391. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27392. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27393. # The name lister interface.
  27394. nm_interface=$lt_lt_cv_nm_interface
  27395. # Specify filename containing input files for \$NM.
  27396. nm_file_list_spec=$lt_nm_file_list_spec
  27397. # The root where to search for dependent libraries,and where our libraries should be installed.
  27398. lt_sysroot=$lt_sysroot
  27399. # Command to truncate a binary pipe.
  27400. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27401. # The name of the directory that contains temporary libtool files.
  27402. objdir=$objdir
  27403. # Used to examine libraries when file_magic_cmd begins with "file".
  27404. MAGIC_CMD=$MAGIC_CMD
  27405. # Must we lock files when doing compilation?
  27406. need_locks=$lt_need_locks
  27407. # Manifest tool.
  27408. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27409. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27410. DSYMUTIL=$lt_DSYMUTIL
  27411. # Tool to change global to local symbols on Mac OS X.
  27412. NMEDIT=$lt_NMEDIT
  27413. # Tool to manipulate fat objects and archives on Mac OS X.
  27414. LIPO=$lt_LIPO
  27415. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27416. OTOOL=$lt_OTOOL
  27417. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27418. OTOOL64=$lt_OTOOL64
  27419. # Old archive suffix (normally "a").
  27420. libext=$libext
  27421. # Shared library suffix (normally ".so").
  27422. shrext_cmds=$lt_shrext_cmds
  27423. # The commands to extract the exported symbol list from a shared archive.
  27424. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27425. # Variables whose values should be saved in libtool wrapper scripts and
  27426. # restored at link time.
  27427. variables_saved_for_relink=$lt_variables_saved_for_relink
  27428. # Do we need the "lib" prefix for modules?
  27429. need_lib_prefix=$need_lib_prefix
  27430. # Do we need a version for libraries?
  27431. need_version=$need_version
  27432. # Library versioning type.
  27433. version_type=$version_type
  27434. # Shared library runtime path variable.
  27435. runpath_var=$runpath_var
  27436. # Shared library path variable.
  27437. shlibpath_var=$shlibpath_var
  27438. # Is shlibpath searched before the hard-coded library search path?
  27439. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27440. # Format of library name prefix.
  27441. libname_spec=$lt_libname_spec
  27442. # List of archive names. First name is the real one, the rest are links.
  27443. # The last name is the one that the linker finds with -lNAME
  27444. library_names_spec=$lt_library_names_spec
  27445. # The coded name of the library, if different from the real name.
  27446. soname_spec=$lt_soname_spec
  27447. # Permission mode override for installation of shared libraries.
  27448. install_override_mode=$lt_install_override_mode
  27449. # Command to use after installation of a shared archive.
  27450. postinstall_cmds=$lt_postinstall_cmds
  27451. # Command to use after uninstallation of a shared archive.
  27452. postuninstall_cmds=$lt_postuninstall_cmds
  27453. # Commands used to finish a libtool library installation in a directory.
  27454. finish_cmds=$lt_finish_cmds
  27455. # As "finish_cmds", except a single script fragment to be evaled but
  27456. # not shown.
  27457. finish_eval=$lt_finish_eval
  27458. # Whether we should hardcode library paths into libraries.
  27459. hardcode_into_libs=$hardcode_into_libs
  27460. # Compile-time system search path for libraries.
  27461. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27462. # Detected run-time system search path for libraries.
  27463. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27464. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27465. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27466. # Whether dlopen is supported.
  27467. dlopen_support=$enable_dlopen
  27468. # Whether dlopen of programs is supported.
  27469. dlopen_self=$enable_dlopen_self
  27470. # Whether dlopen of statically linked programs is supported.
  27471. dlopen_self_static=$enable_dlopen_self_static
  27472. # Commands to strip libraries.
  27473. old_striplib=$lt_old_striplib
  27474. striplib=$lt_striplib
  27475. # The linker used to build libraries.
  27476. LD=$lt_LD
  27477. # How to create reloadable object files.
  27478. reload_flag=$lt_reload_flag
  27479. reload_cmds=$lt_reload_cmds
  27480. # Commands used to build an old-style archive.
  27481. old_archive_cmds=$lt_old_archive_cmds
  27482. # A language specific compiler.
  27483. CC=$lt_compiler
  27484. # Is the compiler the GNU compiler?
  27485. with_gcc=$GCC
  27486. # Compiler flag to turn off builtin functions.
  27487. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27488. # Additional compiler flags for building library objects.
  27489. pic_flag=$lt_lt_prog_compiler_pic
  27490. # How to pass a linker flag through the compiler.
  27491. wl=$lt_lt_prog_compiler_wl
  27492. # Compiler flag to prevent dynamic linking.
  27493. link_static_flag=$lt_lt_prog_compiler_static
  27494. # Does compiler simultaneously support -c and -o options?
  27495. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27496. # Whether or not to add -lc for building shared libraries.
  27497. build_libtool_need_lc=$archive_cmds_need_lc
  27498. # Whether or not to disallow shared libs when runtime libs are static.
  27499. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27500. # Compiler flag to allow reflexive dlopens.
  27501. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27502. # Compiler flag to generate shared objects directly from archives.
  27503. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27504. # Whether the compiler copes with passing no objects directly.
  27505. compiler_needs_object=$lt_compiler_needs_object
  27506. # Create an old-style archive from a shared archive.
  27507. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27508. # Create a temporary old-style archive to link instead of a shared archive.
  27509. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27510. # Commands used to build a shared archive.
  27511. archive_cmds=$lt_archive_cmds
  27512. archive_expsym_cmds=$lt_archive_expsym_cmds
  27513. # Commands used to build a loadable module if different from building
  27514. # a shared archive.
  27515. module_cmds=$lt_module_cmds
  27516. module_expsym_cmds=$lt_module_expsym_cmds
  27517. # Whether we are building with GNU ld or not.
  27518. with_gnu_ld=$lt_with_gnu_ld
  27519. # Flag that allows shared libraries with undefined symbols to be built.
  27520. allow_undefined_flag=$lt_allow_undefined_flag
  27521. # Flag that enforces no undefined symbols.
  27522. no_undefined_flag=$lt_no_undefined_flag
  27523. # Flag to hardcode \$libdir into a binary during linking.
  27524. # This must work even if \$libdir does not exist
  27525. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27526. # Whether we need a single "-rpath" flag with a separated argument.
  27527. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27528. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27529. # DIR into the resulting binary.
  27530. hardcode_direct=$hardcode_direct
  27531. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27532. # DIR into the resulting binary and the resulting library dependency is
  27533. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27534. # library is relocated.
  27535. hardcode_direct_absolute=$hardcode_direct_absolute
  27536. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27537. # into the resulting binary.
  27538. hardcode_minus_L=$hardcode_minus_L
  27539. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27540. # into the resulting binary.
  27541. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27542. # Set to "yes" if building a shared library automatically hardcodes DIR
  27543. # into the library and all subsequent libraries and executables linked
  27544. # against it.
  27545. hardcode_automatic=$hardcode_automatic
  27546. # Set to yes if linker adds runtime paths of dependent libraries
  27547. # to runtime path list.
  27548. inherit_rpath=$inherit_rpath
  27549. # Whether libtool must link a program against all its dependency libraries.
  27550. link_all_deplibs=$link_all_deplibs
  27551. # Set to "yes" if exported symbols are required.
  27552. always_export_symbols=$always_export_symbols
  27553. # The commands to list exported symbols.
  27554. export_symbols_cmds=$lt_export_symbols_cmds
  27555. # Symbols that should not be listed in the preloaded symbols.
  27556. exclude_expsyms=$lt_exclude_expsyms
  27557. # Symbols that must always be exported.
  27558. include_expsyms=$lt_include_expsyms
  27559. # Commands necessary for linking programs (against libraries) with templates.
  27560. prelink_cmds=$lt_prelink_cmds
  27561. # Commands necessary for finishing linking programs.
  27562. postlink_cmds=$lt_postlink_cmds
  27563. # Specify filename containing input files.
  27564. file_list_spec=$lt_file_list_spec
  27565. # How to hardcode a shared library path into an executable.
  27566. hardcode_action=$hardcode_action
  27567. # The directories searched by this compiler when creating a shared library.
  27568. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27569. # Dependencies to place before and after the objects being linked to
  27570. # create a shared library.
  27571. predep_objects=$lt_predep_objects
  27572. postdep_objects=$lt_postdep_objects
  27573. predeps=$lt_predeps
  27574. postdeps=$lt_postdeps
  27575. # The library search path used internally by the compiler when linking
  27576. # a shared library.
  27577. compiler_lib_search_path=$lt_compiler_lib_search_path
  27578. # ### END LIBTOOL CONFIG
  27579. _LT_EOF
  27580. cat <<'_LT_EOF' >> "$cfgfile"
  27581. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27582. # func_munge_path_list VARIABLE PATH
  27583. # -----------------------------------
  27584. # VARIABLE is name of variable containing _space_ separated list of
  27585. # directories to be munged by the contents of PATH, which is string
  27586. # having a format:
  27587. # "DIR[:DIR]:"
  27588. # string "DIR[ DIR]" will be prepended to VARIABLE
  27589. # ":DIR[:DIR]"
  27590. # string "DIR[ DIR]" will be appended to VARIABLE
  27591. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27592. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27593. # "DIRA[ DIRA]" will be appended to VARIABLE
  27594. # "DIR[:DIR]"
  27595. # VARIABLE will be replaced by "DIR[ DIR]"
  27596. func_munge_path_list ()
  27597. {
  27598. case x$2 in
  27599. x)
  27600. ;;
  27601. *:)
  27602. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27603. ;;
  27604. x:*)
  27605. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27606. ;;
  27607. *::*)
  27608. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27609. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27610. ;;
  27611. *)
  27612. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27613. ;;
  27614. esac
  27615. }
  27616. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27617. func_cc_basename ()
  27618. {
  27619. for cc_temp in $*""; do
  27620. case $cc_temp in
  27621. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27622. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27623. \-*) ;;
  27624. *) break;;
  27625. esac
  27626. done
  27627. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27628. }
  27629. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27630. _LT_EOF
  27631. case $host_os in
  27632. aix3*)
  27633. cat <<\_LT_EOF >> "$cfgfile"
  27634. # AIX sometimes has problems with the GCC collect2 program. For some
  27635. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27636. # vanish in a puff of smoke.
  27637. if test set != "${COLLECT_NAMES+set}"; then
  27638. COLLECT_NAMES=
  27639. export COLLECT_NAMES
  27640. fi
  27641. _LT_EOF
  27642. ;;
  27643. esac
  27644. ltmain=$ac_aux_dir/ltmain.sh
  27645. # We use sed instead of cat because bash on DJGPP gets confused if
  27646. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27647. # text mode, it properly converts lines to CR/LF. This bash problem
  27648. # is reportedly fixed, but why not run on old versions too?
  27649. sed '$q' "$ltmain" >> "$cfgfile" \
  27650. || (rm -f "$cfgfile"; exit 1)
  27651. mv -f "$cfgfile" "$ofile" ||
  27652. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27653. chmod +x "$ofile"
  27654. cat <<_LT_EOF >> "$ofile"
  27655. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27656. # The linker used to build libraries.
  27657. LD=$lt_LD_RC
  27658. # How to create reloadable object files.
  27659. reload_flag=$lt_reload_flag_RC
  27660. reload_cmds=$lt_reload_cmds_RC
  27661. # Commands used to build an old-style archive.
  27662. old_archive_cmds=$lt_old_archive_cmds_RC
  27663. # A language specific compiler.
  27664. CC=$lt_compiler_RC
  27665. # Is the compiler the GNU compiler?
  27666. with_gcc=$GCC_RC
  27667. # Compiler flag to turn off builtin functions.
  27668. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27669. # Additional compiler flags for building library objects.
  27670. pic_flag=$lt_lt_prog_compiler_pic_RC
  27671. # How to pass a linker flag through the compiler.
  27672. wl=$lt_lt_prog_compiler_wl_RC
  27673. # Compiler flag to prevent dynamic linking.
  27674. link_static_flag=$lt_lt_prog_compiler_static_RC
  27675. # Does compiler simultaneously support -c and -o options?
  27676. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27677. # Whether or not to add -lc for building shared libraries.
  27678. build_libtool_need_lc=$archive_cmds_need_lc_RC
  27679. # Whether or not to disallow shared libs when runtime libs are static.
  27680. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  27681. # Compiler flag to allow reflexive dlopens.
  27682. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  27683. # Compiler flag to generate shared objects directly from archives.
  27684. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  27685. # Whether the compiler copes with passing no objects directly.
  27686. compiler_needs_object=$lt_compiler_needs_object_RC
  27687. # Create an old-style archive from a shared archive.
  27688. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  27689. # Create a temporary old-style archive to link instead of a shared archive.
  27690. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  27691. # Commands used to build a shared archive.
  27692. archive_cmds=$lt_archive_cmds_RC
  27693. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  27694. # Commands used to build a loadable module if different from building
  27695. # a shared archive.
  27696. module_cmds=$lt_module_cmds_RC
  27697. module_expsym_cmds=$lt_module_expsym_cmds_RC
  27698. # Whether we are building with GNU ld or not.
  27699. with_gnu_ld=$lt_with_gnu_ld_RC
  27700. # Flag that allows shared libraries with undefined symbols to be built.
  27701. allow_undefined_flag=$lt_allow_undefined_flag_RC
  27702. # Flag that enforces no undefined symbols.
  27703. no_undefined_flag=$lt_no_undefined_flag_RC
  27704. # Flag to hardcode \$libdir into a binary during linking.
  27705. # This must work even if \$libdir does not exist
  27706. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  27707. # Whether we need a single "-rpath" flag with a separated argument.
  27708. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  27709. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27710. # DIR into the resulting binary.
  27711. hardcode_direct=$hardcode_direct_RC
  27712. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27713. # DIR into the resulting binary and the resulting library dependency is
  27714. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27715. # library is relocated.
  27716. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  27717. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27718. # into the resulting binary.
  27719. hardcode_minus_L=$hardcode_minus_L_RC
  27720. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27721. # into the resulting binary.
  27722. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  27723. # Set to "yes" if building a shared library automatically hardcodes DIR
  27724. # into the library and all subsequent libraries and executables linked
  27725. # against it.
  27726. hardcode_automatic=$hardcode_automatic_RC
  27727. # Set to yes if linker adds runtime paths of dependent libraries
  27728. # to runtime path list.
  27729. inherit_rpath=$inherit_rpath_RC
  27730. # Whether libtool must link a program against all its dependency libraries.
  27731. link_all_deplibs=$link_all_deplibs_RC
  27732. # Set to "yes" if exported symbols are required.
  27733. always_export_symbols=$always_export_symbols_RC
  27734. # The commands to list exported symbols.
  27735. export_symbols_cmds=$lt_export_symbols_cmds_RC
  27736. # Symbols that should not be listed in the preloaded symbols.
  27737. exclude_expsyms=$lt_exclude_expsyms_RC
  27738. # Symbols that must always be exported.
  27739. include_expsyms=$lt_include_expsyms_RC
  27740. # Commands necessary for linking programs (against libraries) with templates.
  27741. prelink_cmds=$lt_prelink_cmds_RC
  27742. # Commands necessary for finishing linking programs.
  27743. postlink_cmds=$lt_postlink_cmds_RC
  27744. # Specify filename containing input files.
  27745. file_list_spec=$lt_file_list_spec_RC
  27746. # How to hardcode a shared library path into an executable.
  27747. hardcode_action=$hardcode_action_RC
  27748. # The directories searched by this compiler when creating a shared library.
  27749. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  27750. # Dependencies to place before and after the objects being linked to
  27751. # create a shared library.
  27752. predep_objects=$lt_predep_objects_RC
  27753. postdep_objects=$lt_postdep_objects_RC
  27754. predeps=$lt_predeps_RC
  27755. postdeps=$lt_postdeps_RC
  27756. # The library search path used internally by the compiler when linking
  27757. # a shared library.
  27758. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  27759. # ### END LIBTOOL TAG CONFIG: RC
  27760. _LT_EOF
  27761. cat <<_LT_EOF >> "$ofile"
  27762. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  27763. # The linker used to build libraries.
  27764. LD=$lt_LD_CXX
  27765. # How to create reloadable object files.
  27766. reload_flag=$lt_reload_flag_CXX
  27767. reload_cmds=$lt_reload_cmds_CXX
  27768. # Commands used to build an old-style archive.
  27769. old_archive_cmds=$lt_old_archive_cmds_CXX
  27770. # A language specific compiler.
  27771. CC=$lt_compiler_CXX
  27772. # Is the compiler the GNU compiler?
  27773. with_gcc=$GCC_CXX
  27774. # Compiler flag to turn off builtin functions.
  27775. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  27776. # Additional compiler flags for building library objects.
  27777. pic_flag=$lt_lt_prog_compiler_pic_CXX
  27778. # How to pass a linker flag through the compiler.
  27779. wl=$lt_lt_prog_compiler_wl_CXX
  27780. # Compiler flag to prevent dynamic linking.
  27781. link_static_flag=$lt_lt_prog_compiler_static_CXX
  27782. # Does compiler simultaneously support -c and -o options?
  27783. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  27784. # Whether or not to add -lc for building shared libraries.
  27785. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  27786. # Whether or not to disallow shared libs when runtime libs are static.
  27787. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  27788. # Compiler flag to allow reflexive dlopens.
  27789. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  27790. # Compiler flag to generate shared objects directly from archives.
  27791. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  27792. # Whether the compiler copes with passing no objects directly.
  27793. compiler_needs_object=$lt_compiler_needs_object_CXX
  27794. # Create an old-style archive from a shared archive.
  27795. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  27796. # Create a temporary old-style archive to link instead of a shared archive.
  27797. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  27798. # Commands used to build a shared archive.
  27799. archive_cmds=$lt_archive_cmds_CXX
  27800. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  27801. # Commands used to build a loadable module if different from building
  27802. # a shared archive.
  27803. module_cmds=$lt_module_cmds_CXX
  27804. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  27805. # Whether we are building with GNU ld or not.
  27806. with_gnu_ld=$lt_with_gnu_ld_CXX
  27807. # Flag that allows shared libraries with undefined symbols to be built.
  27808. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  27809. # Flag that enforces no undefined symbols.
  27810. no_undefined_flag=$lt_no_undefined_flag_CXX
  27811. # Flag to hardcode \$libdir into a binary during linking.
  27812. # This must work even if \$libdir does not exist
  27813. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  27814. # Whether we need a single "-rpath" flag with a separated argument.
  27815. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  27816. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27817. # DIR into the resulting binary.
  27818. hardcode_direct=$hardcode_direct_CXX
  27819. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27820. # DIR into the resulting binary and the resulting library dependency is
  27821. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27822. # library is relocated.
  27823. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  27824. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27825. # into the resulting binary.
  27826. hardcode_minus_L=$hardcode_minus_L_CXX
  27827. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27828. # into the resulting binary.
  27829. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  27830. # Set to "yes" if building a shared library automatically hardcodes DIR
  27831. # into the library and all subsequent libraries and executables linked
  27832. # against it.
  27833. hardcode_automatic=$hardcode_automatic_CXX
  27834. # Set to yes if linker adds runtime paths of dependent libraries
  27835. # to runtime path list.
  27836. inherit_rpath=$inherit_rpath_CXX
  27837. # Whether libtool must link a program against all its dependency libraries.
  27838. link_all_deplibs=$link_all_deplibs_CXX
  27839. # Set to "yes" if exported symbols are required.
  27840. always_export_symbols=$always_export_symbols_CXX
  27841. # The commands to list exported symbols.
  27842. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  27843. # Symbols that should not be listed in the preloaded symbols.
  27844. exclude_expsyms=$lt_exclude_expsyms_CXX
  27845. # Symbols that must always be exported.
  27846. include_expsyms=$lt_include_expsyms_CXX
  27847. # Commands necessary for linking programs (against libraries) with templates.
  27848. prelink_cmds=$lt_prelink_cmds_CXX
  27849. # Commands necessary for finishing linking programs.
  27850. postlink_cmds=$lt_postlink_cmds_CXX
  27851. # Specify filename containing input files.
  27852. file_list_spec=$lt_file_list_spec_CXX
  27853. # How to hardcode a shared library path into an executable.
  27854. hardcode_action=$hardcode_action_CXX
  27855. # The directories searched by this compiler when creating a shared library.
  27856. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  27857. # Dependencies to place before and after the objects being linked to
  27858. # create a shared library.
  27859. predep_objects=$lt_predep_objects_CXX
  27860. postdep_objects=$lt_postdep_objects_CXX
  27861. predeps=$lt_predeps_CXX
  27862. postdeps=$lt_postdeps_CXX
  27863. # The library search path used internally by the compiler when linking
  27864. # a shared library.
  27865. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  27866. # ### END LIBTOOL TAG CONFIG: CXX
  27867. _LT_EOF
  27868. ;;
  27869. "sdl2_config":C) chmod a+x sdl2-config ;;
  27870. "summary":C) printf "$SUMMARY" ;;
  27871. esac
  27872. done # for ac_tag
  27873. as_fn_exit 0
  27874. _ACEOF
  27875. ac_clean_files=$ac_clean_files_save
  27876. test $ac_write_fail = 0 ||
  27877. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  27878. # configure is writing to config.log, and then calls config.status.
  27879. # config.status does its own redirection, appending to config.log.
  27880. # Unfortunately, on DOS this fails, as config.log is still kept open
  27881. # by configure, so config.status won't be able to write to it; its
  27882. # output is simply discarded. So we exec the FD to /dev/null,
  27883. # effectively closing config.log, so it can be properly (re)opened and
  27884. # appended to by config.status. When coming back to configure, we
  27885. # need to make the FD available again.
  27886. if test "$no_create" != yes; then
  27887. ac_cs_success=:
  27888. ac_config_status_args=
  27889. test "$silent" = yes &&
  27890. ac_config_status_args="$ac_config_status_args --quiet"
  27891. exec 5>/dev/null
  27892. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  27893. exec 5>>config.log
  27894. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  27895. # would make configure fail if this is the last instruction.
  27896. $ac_cs_success || as_fn_exit 1
  27897. fi
  27898. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  27899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  27900. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  27901. fi