configure 952 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448
  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. as_fn_error $? "GNU sort(1) is required" "$LINENO" 5
  15631. fi
  15632. # Check whether --enable-largefile was given.
  15633. if test ${enable_largefile+y}
  15634. then :
  15635. enableval=$enable_largefile;
  15636. fi
  15637. if test "$enable_largefile" != no; then
  15638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15639. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15640. if test ${ac_cv_sys_largefile_CC+y}
  15641. then :
  15642. printf %s "(cached) " >&6
  15643. else $as_nop
  15644. ac_cv_sys_largefile_CC=no
  15645. if test "$GCC" != yes; then
  15646. ac_save_CC=$CC
  15647. while :; do
  15648. # IRIX 6.2 and later do not support large files by default,
  15649. # so use the C compiler's -n32 option if that helps.
  15650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15651. /* end confdefs.h. */
  15652. #include <sys/types.h>
  15653. /* Check that off_t can represent 2**63 - 1 correctly.
  15654. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15655. since some C++ compilers masquerading as C compilers
  15656. incorrectly reject 9223372036854775807. */
  15657. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15658. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15659. && LARGE_OFF_T % 2147483647 == 1)
  15660. ? 1 : -1];
  15661. int
  15662. main (void)
  15663. {
  15664. ;
  15665. return 0;
  15666. }
  15667. _ACEOF
  15668. if ac_fn_c_try_compile "$LINENO"
  15669. then :
  15670. break
  15671. fi
  15672. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15673. CC="$CC -n32"
  15674. if ac_fn_c_try_compile "$LINENO"
  15675. then :
  15676. ac_cv_sys_largefile_CC=' -n32'; break
  15677. fi
  15678. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15679. break
  15680. done
  15681. CC=$ac_save_CC
  15682. rm -f conftest.$ac_ext
  15683. fi
  15684. fi
  15685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15686. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15687. if test "$ac_cv_sys_largefile_CC" != no; then
  15688. CC=$CC$ac_cv_sys_largefile_CC
  15689. fi
  15690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15691. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15692. if test ${ac_cv_sys_file_offset_bits+y}
  15693. then :
  15694. printf %s "(cached) " >&6
  15695. else $as_nop
  15696. while :; do
  15697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15698. /* end confdefs.h. */
  15699. #include <sys/types.h>
  15700. /* Check that off_t can represent 2**63 - 1 correctly.
  15701. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15702. since some C++ compilers masquerading as C compilers
  15703. incorrectly reject 9223372036854775807. */
  15704. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15705. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15706. && LARGE_OFF_T % 2147483647 == 1)
  15707. ? 1 : -1];
  15708. int
  15709. main (void)
  15710. {
  15711. ;
  15712. return 0;
  15713. }
  15714. _ACEOF
  15715. if ac_fn_c_try_compile "$LINENO"
  15716. then :
  15717. ac_cv_sys_file_offset_bits=no; break
  15718. fi
  15719. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15721. /* end confdefs.h. */
  15722. #define _FILE_OFFSET_BITS 64
  15723. #include <sys/types.h>
  15724. /* Check that off_t can represent 2**63 - 1 correctly.
  15725. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15726. since some C++ compilers masquerading as C compilers
  15727. incorrectly reject 9223372036854775807. */
  15728. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15729. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15730. && LARGE_OFF_T % 2147483647 == 1)
  15731. ? 1 : -1];
  15732. int
  15733. main (void)
  15734. {
  15735. ;
  15736. return 0;
  15737. }
  15738. _ACEOF
  15739. if ac_fn_c_try_compile "$LINENO"
  15740. then :
  15741. ac_cv_sys_file_offset_bits=64; break
  15742. fi
  15743. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15744. ac_cv_sys_file_offset_bits=unknown
  15745. break
  15746. done
  15747. fi
  15748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15749. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15750. case $ac_cv_sys_file_offset_bits in #(
  15751. no | unknown) ;;
  15752. *)
  15753. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15754. ;;
  15755. esac
  15756. rm -rf conftest*
  15757. if test $ac_cv_sys_file_offset_bits = unknown; then
  15758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15759. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15760. if test ${ac_cv_sys_large_files+y}
  15761. then :
  15762. printf %s "(cached) " >&6
  15763. else $as_nop
  15764. while :; do
  15765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15766. /* end confdefs.h. */
  15767. #include <sys/types.h>
  15768. /* Check that off_t can represent 2**63 - 1 correctly.
  15769. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15770. since some C++ compilers masquerading as C compilers
  15771. incorrectly reject 9223372036854775807. */
  15772. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15773. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15774. && LARGE_OFF_T % 2147483647 == 1)
  15775. ? 1 : -1];
  15776. int
  15777. main (void)
  15778. {
  15779. ;
  15780. return 0;
  15781. }
  15782. _ACEOF
  15783. if ac_fn_c_try_compile "$LINENO"
  15784. then :
  15785. ac_cv_sys_large_files=no; break
  15786. fi
  15787. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15789. /* end confdefs.h. */
  15790. #define _LARGE_FILES 1
  15791. #include <sys/types.h>
  15792. /* Check that off_t can represent 2**63 - 1 correctly.
  15793. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15794. since some C++ compilers masquerading as C compilers
  15795. incorrectly reject 9223372036854775807. */
  15796. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15797. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15798. && LARGE_OFF_T % 2147483647 == 1)
  15799. ? 1 : -1];
  15800. int
  15801. main (void)
  15802. {
  15803. ;
  15804. return 0;
  15805. }
  15806. _ACEOF
  15807. if ac_fn_c_try_compile "$LINENO"
  15808. then :
  15809. ac_cv_sys_large_files=1; break
  15810. fi
  15811. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15812. ac_cv_sys_large_files=unknown
  15813. break
  15814. done
  15815. fi
  15816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15817. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15818. case $ac_cv_sys_large_files in #(
  15819. no | unknown) ;;
  15820. *)
  15821. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15822. ;;
  15823. esac
  15824. rm -rf conftest*
  15825. fi
  15826. fi
  15827. case "$host" in
  15828. *-*-mingw*)
  15829. # Except on msys, where make can't handle full pathnames (bug 1972)
  15830. ;;
  15831. *)
  15832. srcdir=`cd $srcdir && pwd`
  15833. ;;
  15834. esac
  15835. INCLUDE="-I$srcdir/include"
  15836. case "$host" in
  15837. *-*-nto-qnx*)
  15838. ;;
  15839. *)
  15840. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15841. ;;
  15842. esac
  15843. case "$host" in
  15844. *-*-haiku*)
  15845. LINKER='$(CXX)'
  15846. LIBTOOLLINKERTAG='CXX'
  15847. ;;
  15848. *)
  15849. LINKER='$(CC)'
  15850. LIBTOOLLINKERTAG='CC'
  15851. ;;
  15852. esac
  15853. if test x$srcdir != x.; then
  15854. INCLUDE="-Iinclude $INCLUDE"
  15855. elif test -d .git; then
  15856. as_fn_error $? "
  15857. *** When building from a git clone you should configure and build in a
  15858. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15859. " "$LINENO" 5
  15860. fi
  15861. BASE_CFLAGS=""
  15862. BASE_LDFLAGS=""
  15863. case "$host" in
  15864. *-*-cygwin*)
  15865. # We build SDL on cygwin without the UNIX emulation layer
  15866. save_CFLAGS="$CFLAGS"
  15867. have_no_cygwin=no
  15868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15869. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15870. CFLAGS="$save_CFLAGS -mno-cygwin"
  15871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15872. /* end confdefs.h. */
  15873. int
  15874. main (void)
  15875. {
  15876. ;
  15877. return 0;
  15878. }
  15879. _ACEOF
  15880. if ac_fn_c_try_compile "$LINENO"
  15881. then :
  15882. have_no_cygwin=yes
  15883. fi
  15884. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15886. printf "%s\n" "$have_no_cygwin" >&6; }
  15887. CFLAGS="$save_CFLAGS"
  15888. if test x$have_no_cygwin = xyes; then
  15889. BASE_CFLAGS="-mno-cygwin"
  15890. BASE_LDFLAGS="-mno-cygwin"
  15891. fi
  15892. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15893. ;;
  15894. esac
  15895. # Uncomment the following line if you want to force SDL and applications
  15896. # built with it to be compiled for a particular architecture.
  15897. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15898. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15899. # The default optimization for SDL is -O3 (Bug #31)
  15900. if test "x$orig_CFLAGS" = x; then
  15901. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15902. fi
  15903. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15904. BUILD_LDFLAGS="$LDFLAGS"
  15905. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15906. ## These are common directories to find software packages
  15907. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15908. # if test -d $path/include; then
  15909. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15910. # fi
  15911. # if test -d $path/lib; then
  15912. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15913. # fi
  15914. #done
  15915. SDL_CFLAGS="$BASE_CFLAGS"
  15916. SDL_LIBS="-lSDL2"
  15917. if test "x$BASE_LDFLAGS" != x; then
  15918. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15919. fi
  15920. if test "x$EXTRA_CFLAGS" != x; then
  15921. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15922. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15923. fi
  15924. if test "x$EXTRA_LDFLAGS" != x; then
  15925. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15926. fi
  15927. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15928. find_lib()
  15929. {
  15930. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15931. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15932. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15933. if test "$cross_compiling" = yes; then
  15934. host_lib_path=""
  15935. else
  15936. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15937. fi
  15938. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15939. 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`
  15940. if test x$lib != x; then
  15941. echo $lib
  15942. return
  15943. fi
  15944. done
  15945. }
  15946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15947. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15948. if test ${ac_cv_c_const+y}
  15949. then :
  15950. printf %s "(cached) " >&6
  15951. else $as_nop
  15952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15953. /* end confdefs.h. */
  15954. int
  15955. main (void)
  15956. {
  15957. #ifndef __cplusplus
  15958. /* Ultrix mips cc rejects this sort of thing. */
  15959. typedef int charset[2];
  15960. const charset cs = { 0, 0 };
  15961. /* SunOS 4.1.1 cc rejects this. */
  15962. char const *const *pcpcc;
  15963. char **ppc;
  15964. /* NEC SVR4.0.2 mips cc rejects this. */
  15965. struct point {int x, y;};
  15966. static struct point const zero = {0,0};
  15967. /* IBM XL C 1.02.0.0 rejects this.
  15968. It does not let you subtract one const X* pointer from another in
  15969. an arm of an if-expression whose if-part is not a constant
  15970. expression */
  15971. const char *g = "string";
  15972. pcpcc = &g + (g ? g-g : 0);
  15973. /* HPUX 7.0 cc rejects these. */
  15974. ++pcpcc;
  15975. ppc = (char**) pcpcc;
  15976. pcpcc = (char const *const *) ppc;
  15977. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15978. char tx;
  15979. char *t = &tx;
  15980. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15981. *t++ = 0;
  15982. if (s) return 0;
  15983. }
  15984. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15985. int x[] = {25, 17};
  15986. const int *foo = &x[0];
  15987. ++foo;
  15988. }
  15989. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15990. typedef const int *iptr;
  15991. iptr p = 0;
  15992. ++p;
  15993. }
  15994. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  15995. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15996. struct s { int j; const int *ap[3]; } bx;
  15997. struct s *b = &bx; b->j = 5;
  15998. }
  15999. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16000. const int foo = 10;
  16001. if (!foo) return 0;
  16002. }
  16003. return !cs[0] && !zero.x;
  16004. #endif
  16005. ;
  16006. return 0;
  16007. }
  16008. _ACEOF
  16009. if ac_fn_c_try_compile "$LINENO"
  16010. then :
  16011. ac_cv_c_const=yes
  16012. else $as_nop
  16013. ac_cv_c_const=no
  16014. fi
  16015. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16016. fi
  16017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16018. printf "%s\n" "$ac_cv_c_const" >&6; }
  16019. if test $ac_cv_c_const = no; then
  16020. printf "%s\n" "#define const /**/" >>confdefs.h
  16021. fi
  16022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16023. printf %s "checking for inline... " >&6; }
  16024. if test ${ac_cv_c_inline+y}
  16025. then :
  16026. printf %s "(cached) " >&6
  16027. else $as_nop
  16028. ac_cv_c_inline=no
  16029. for ac_kw in inline __inline__ __inline; do
  16030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16031. /* end confdefs.h. */
  16032. #ifndef __cplusplus
  16033. typedef int foo_t;
  16034. static $ac_kw foo_t static_foo (void) {return 0; }
  16035. $ac_kw foo_t foo (void) {return 0; }
  16036. #endif
  16037. _ACEOF
  16038. if ac_fn_c_try_compile "$LINENO"
  16039. then :
  16040. ac_cv_c_inline=$ac_kw
  16041. fi
  16042. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16043. test "$ac_cv_c_inline" != no && break
  16044. done
  16045. fi
  16046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16047. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16048. case $ac_cv_c_inline in
  16049. inline | yes) ;;
  16050. *)
  16051. case $ac_cv_c_inline in
  16052. no) ac_val=;;
  16053. *) ac_val=$ac_cv_c_inline;;
  16054. esac
  16055. cat >>confdefs.h <<_ACEOF
  16056. #ifndef __cplusplus
  16057. #define inline $ac_val
  16058. #endif
  16059. _ACEOF
  16060. ;;
  16061. esac
  16062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16063. printf %s "checking for working volatile... " >&6; }
  16064. if test ${ac_cv_c_volatile+y}
  16065. then :
  16066. printf %s "(cached) " >&6
  16067. else $as_nop
  16068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16069. /* end confdefs.h. */
  16070. int
  16071. main (void)
  16072. {
  16073. volatile int x;
  16074. int * volatile y = (int *) 0;
  16075. return !x && !y;
  16076. ;
  16077. return 0;
  16078. }
  16079. _ACEOF
  16080. if ac_fn_c_try_compile "$LINENO"
  16081. then :
  16082. ac_cv_c_volatile=yes
  16083. else $as_nop
  16084. ac_cv_c_volatile=no
  16085. fi
  16086. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16087. fi
  16088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16089. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16090. if test $ac_cv_c_volatile = no; then
  16091. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16092. fi
  16093. # Check whether --enable-assertions was given.
  16094. if test ${enable_assertions+y}
  16095. then :
  16096. enableval=$enable_assertions;
  16097. else $as_nop
  16098. enable_assertions=auto
  16099. fi
  16100. case "$enable_assertions" in
  16101. auto) # Use optimization settings to determine assertion level
  16102. ;;
  16103. disabled)
  16104. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16105. ;;
  16106. release)
  16107. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16108. ;;
  16109. enabled)
  16110. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16111. ;;
  16112. paranoid)
  16113. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16114. ;;
  16115. *)
  16116. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16117. ;;
  16118. esac
  16119. 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"
  16120. # Check whether --enable-dependency-tracking was given.
  16121. if test ${enable_dependency_tracking+y}
  16122. then :
  16123. enableval=$enable_dependency_tracking;
  16124. else $as_nop
  16125. enable_dependency_tracking=yes
  16126. fi
  16127. if test x$enable_dependency_tracking = xyes; then
  16128. have_gcc_mmd_mt=no
  16129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16130. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16132. /* end confdefs.h. */
  16133. #if !defined(__GNUC__) || __GNUC__ < 3
  16134. #error Dependency tracking requires GCC 3.0 or newer
  16135. #endif
  16136. int
  16137. main (void)
  16138. {
  16139. ;
  16140. return 0;
  16141. }
  16142. _ACEOF
  16143. if ac_fn_c_try_compile "$LINENO"
  16144. then :
  16145. have_gcc_mmd_mt=yes
  16146. fi
  16147. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16149. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16150. if test x$have_gcc_mmd_mt = xyes; then
  16151. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16152. fi
  16153. fi
  16154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16155. printf %s "checking for linker option --no-undefined... " >&6; }
  16156. have_no_undefined=no
  16157. case "$host" in
  16158. *-*-openbsd*)
  16159. ;;
  16160. *)
  16161. save_LDFLAGS="$LDFLAGS"
  16162. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16164. /* end confdefs.h. */
  16165. int
  16166. main (void)
  16167. {
  16168. ;
  16169. return 0;
  16170. }
  16171. _ACEOF
  16172. if ac_fn_c_try_link "$LINENO"
  16173. then :
  16174. have_no_undefined=yes
  16175. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16176. fi
  16177. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16178. conftest$ac_exeext conftest.$ac_ext
  16179. LDFLAGS="$save_LDFLAGS"
  16180. ;;
  16181. esac
  16182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16183. printf "%s\n" "$have_no_undefined" >&6; }
  16184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16185. printf %s "checking for linker option --dynamicbase... " >&6; }
  16186. have_dynamicbase=no
  16187. case "$host" in
  16188. *)
  16189. save_LDFLAGS="$LDFLAGS"
  16190. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16192. /* end confdefs.h. */
  16193. int
  16194. main (void)
  16195. {
  16196. ;
  16197. return 0;
  16198. }
  16199. _ACEOF
  16200. if ac_fn_c_try_link "$LINENO"
  16201. then :
  16202. have_dynamicbase=yes
  16203. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16204. fi
  16205. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16206. conftest$ac_exeext conftest.$ac_ext
  16207. LDFLAGS="$save_LDFLAGS"
  16208. ;;
  16209. esac
  16210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16211. printf "%s\n" "$have_dynamicbase" >&6; }
  16212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16213. printf %s "checking for linker option --nxcompat... " >&6; }
  16214. have_nxcompat=no
  16215. case "$host" in
  16216. *)
  16217. save_LDFLAGS="$LDFLAGS"
  16218. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16220. /* end confdefs.h. */
  16221. int
  16222. main (void)
  16223. {
  16224. ;
  16225. return 0;
  16226. }
  16227. _ACEOF
  16228. if ac_fn_c_try_link "$LINENO"
  16229. then :
  16230. have_nxcompat=yes
  16231. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16232. fi
  16233. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16234. conftest$ac_exeext conftest.$ac_ext
  16235. LDFLAGS="$save_LDFLAGS"
  16236. ;;
  16237. esac
  16238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16239. printf "%s\n" "$have_nxcompat" >&6; }
  16240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16241. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16242. have_high_entropy_va=no
  16243. case "$host" in
  16244. *)
  16245. save_LDFLAGS="$LDFLAGS"
  16246. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16248. /* end confdefs.h. */
  16249. int
  16250. main (void)
  16251. {
  16252. ;
  16253. return 0;
  16254. }
  16255. _ACEOF
  16256. if ac_fn_c_try_link "$LINENO"
  16257. then :
  16258. have_high_entropy_va=yes
  16259. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16260. fi
  16261. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16262. conftest$ac_exeext conftest.$ac_ext
  16263. LDFLAGS="$save_LDFLAGS"
  16264. ;;
  16265. esac
  16266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16267. printf "%s\n" "$have_high_entropy_va" >&6; }
  16268. # Check whether --enable-libc was given.
  16269. if test ${enable_libc+y}
  16270. then :
  16271. enableval=$enable_libc;
  16272. else $as_nop
  16273. enable_libc=yes
  16274. fi
  16275. # Check whether --enable-system-iconv was given.
  16276. if test ${enable_system_iconv+y}
  16277. then :
  16278. enableval=$enable_system_iconv;
  16279. else $as_nop
  16280. enable_system_iconv=yes
  16281. fi
  16282. if test x$enable_libc = xyes; then
  16283. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16284. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16285. if test "x$ac_cv_header_sys_types_h" = xyes
  16286. then :
  16287. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16288. fi
  16289. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16290. if test "x$ac_cv_header_stdio_h" = xyes
  16291. then :
  16292. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16293. fi
  16294. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16295. if test "x$ac_cv_header_stdlib_h" = xyes
  16296. then :
  16297. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16298. fi
  16299. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16300. if test "x$ac_cv_header_stddef_h" = xyes
  16301. then :
  16302. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16303. fi
  16304. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16305. if test "x$ac_cv_header_stdarg_h" = xyes
  16306. then :
  16307. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16308. fi
  16309. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16310. if test "x$ac_cv_header_malloc_h" = xyes
  16311. then :
  16312. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16313. fi
  16314. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16315. if test "x$ac_cv_header_memory_h" = xyes
  16316. then :
  16317. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16318. fi
  16319. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16320. if test "x$ac_cv_header_string_h" = xyes
  16321. then :
  16322. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16323. fi
  16324. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16325. if test "x$ac_cv_header_strings_h" = xyes
  16326. then :
  16327. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16328. fi
  16329. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16330. if test "x$ac_cv_header_wchar_h" = xyes
  16331. then :
  16332. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16333. fi
  16334. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16335. if test "x$ac_cv_header_inttypes_h" = xyes
  16336. then :
  16337. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16338. fi
  16339. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16340. if test "x$ac_cv_header_stdint_h" = xyes
  16341. then :
  16342. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16343. fi
  16344. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16345. if test "x$ac_cv_header_limits_h" = xyes
  16346. then :
  16347. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16348. fi
  16349. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16350. if test "x$ac_cv_header_ctype_h" = xyes
  16351. then :
  16352. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16353. fi
  16354. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16355. if test "x$ac_cv_header_math_h" = xyes
  16356. then :
  16357. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16358. fi
  16359. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16360. if test "x$ac_cv_header_float_h" = xyes
  16361. then :
  16362. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16363. fi
  16364. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16365. if test "x$ac_cv_header_iconv_h" = xyes
  16366. then :
  16367. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16368. fi
  16369. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16370. if test "x$ac_cv_header_signal_h" = xyes
  16371. then :
  16372. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16373. fi
  16374. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16375. if test "x$ac_cv_type_size_t" = xyes
  16376. then :
  16377. else $as_nop
  16378. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16379. fi
  16380. ac_ext=c
  16381. ac_cpp='$CPP $CPPFLAGS'
  16382. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16383. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16384. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16386. printf %s "checking how to run the C preprocessor... " >&6; }
  16387. # On Suns, sometimes $CPP names a directory.
  16388. if test -n "$CPP" && test -d "$CPP"; then
  16389. CPP=
  16390. fi
  16391. if test -z "$CPP"; then
  16392. if test ${ac_cv_prog_CPP+y}
  16393. then :
  16394. printf %s "(cached) " >&6
  16395. else $as_nop
  16396. # Double quotes because $CC needs to be expanded
  16397. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16398. do
  16399. ac_preproc_ok=false
  16400. for ac_c_preproc_warn_flag in '' yes
  16401. do
  16402. # Use a header file that comes with gcc, so configuring glibc
  16403. # with a fresh cross-compiler works.
  16404. # On the NeXT, cc -E runs the code through the compiler's parser,
  16405. # not just through cpp. "Syntax error" is here to catch this case.
  16406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16407. /* end confdefs.h. */
  16408. #include <limits.h>
  16409. Syntax error
  16410. _ACEOF
  16411. if ac_fn_c_try_cpp "$LINENO"
  16412. then :
  16413. else $as_nop
  16414. # Broken: fails on valid input.
  16415. continue
  16416. fi
  16417. rm -f conftest.err conftest.i conftest.$ac_ext
  16418. # OK, works on sane cases. Now check whether nonexistent headers
  16419. # can be detected and how.
  16420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16421. /* end confdefs.h. */
  16422. #include <ac_nonexistent.h>
  16423. _ACEOF
  16424. if ac_fn_c_try_cpp "$LINENO"
  16425. then :
  16426. # Broken: success on invalid input.
  16427. continue
  16428. else $as_nop
  16429. # Passes both tests.
  16430. ac_preproc_ok=:
  16431. break
  16432. fi
  16433. rm -f conftest.err conftest.i conftest.$ac_ext
  16434. done
  16435. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16436. rm -f conftest.i conftest.err conftest.$ac_ext
  16437. if $ac_preproc_ok
  16438. then :
  16439. break
  16440. fi
  16441. done
  16442. ac_cv_prog_CPP=$CPP
  16443. fi
  16444. CPP=$ac_cv_prog_CPP
  16445. else
  16446. ac_cv_prog_CPP=$CPP
  16447. fi
  16448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16449. printf "%s\n" "$CPP" >&6; }
  16450. ac_preproc_ok=false
  16451. for ac_c_preproc_warn_flag in '' yes
  16452. do
  16453. # Use a header file that comes with gcc, so configuring glibc
  16454. # with a fresh cross-compiler works.
  16455. # On the NeXT, cc -E runs the code through the compiler's parser,
  16456. # not just through cpp. "Syntax error" is here to catch this case.
  16457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16458. /* end confdefs.h. */
  16459. #include <limits.h>
  16460. Syntax error
  16461. _ACEOF
  16462. if ac_fn_c_try_cpp "$LINENO"
  16463. then :
  16464. else $as_nop
  16465. # Broken: fails on valid input.
  16466. continue
  16467. fi
  16468. rm -f conftest.err conftest.i conftest.$ac_ext
  16469. # OK, works on sane cases. Now check whether nonexistent headers
  16470. # can be detected and how.
  16471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16472. /* end confdefs.h. */
  16473. #include <ac_nonexistent.h>
  16474. _ACEOF
  16475. if ac_fn_c_try_cpp "$LINENO"
  16476. then :
  16477. # Broken: success on invalid input.
  16478. continue
  16479. else $as_nop
  16480. # Passes both tests.
  16481. ac_preproc_ok=:
  16482. break
  16483. fi
  16484. rm -f conftest.err conftest.i conftest.$ac_ext
  16485. done
  16486. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16487. rm -f conftest.i conftest.err conftest.$ac_ext
  16488. if $ac_preproc_ok
  16489. then :
  16490. else $as_nop
  16491. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16492. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16493. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16494. See \`config.log' for more details" "$LINENO" 5; }
  16495. fi
  16496. ac_ext=c
  16497. ac_cpp='$CPP $CPPFLAGS'
  16498. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16499. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16500. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16502. printf %s "checking for M_PI in math.h... " >&6; }
  16503. if test ${ac_cv_define_M_PI+y}
  16504. then :
  16505. printf %s "(cached) " >&6
  16506. else $as_nop
  16507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16508. /* end confdefs.h. */
  16509. #include <math.h>
  16510. #ifdef M_PI
  16511. YES_IS_DEFINED
  16512. #endif
  16513. _ACEOF
  16514. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16515. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16516. then :
  16517. ac_cv_define_M_PI=yes
  16518. else $as_nop
  16519. ac_cv_define_M_PI=no
  16520. fi
  16521. rm -rf conftest*
  16522. fi
  16523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16524. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16525. if test "$ac_cv_define_M_PI" = "yes" ; then
  16526. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16527. fi
  16528. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16529. # for constant arguments. Useless!
  16530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16531. printf %s "checking for working alloca.h... " >&6; }
  16532. if test ${ac_cv_working_alloca_h+y}
  16533. then :
  16534. printf %s "(cached) " >&6
  16535. else $as_nop
  16536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16537. /* end confdefs.h. */
  16538. #include <alloca.h>
  16539. int
  16540. main (void)
  16541. {
  16542. char *p = (char *) alloca (2 * sizeof (int));
  16543. if (p) return 0;
  16544. ;
  16545. return 0;
  16546. }
  16547. _ACEOF
  16548. if ac_fn_c_try_link "$LINENO"
  16549. then :
  16550. ac_cv_working_alloca_h=yes
  16551. else $as_nop
  16552. ac_cv_working_alloca_h=no
  16553. fi
  16554. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16555. conftest$ac_exeext conftest.$ac_ext
  16556. fi
  16557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16558. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16559. if test $ac_cv_working_alloca_h = yes; then
  16560. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16561. fi
  16562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16563. printf %s "checking for alloca... " >&6; }
  16564. if test ${ac_cv_func_alloca_works+y}
  16565. then :
  16566. printf %s "(cached) " >&6
  16567. else $as_nop
  16568. if test $ac_cv_working_alloca_h = yes; then
  16569. ac_cv_func_alloca_works=yes
  16570. else
  16571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16572. /* end confdefs.h. */
  16573. #include <stdlib.h>
  16574. #include <stddef.h>
  16575. #ifndef alloca
  16576. # ifdef __GNUC__
  16577. # define alloca __builtin_alloca
  16578. # elif defined _MSC_VER
  16579. # include <malloc.h>
  16580. # define alloca _alloca
  16581. # else
  16582. # ifdef __cplusplus
  16583. extern "C"
  16584. # endif
  16585. void *alloca (size_t);
  16586. # endif
  16587. #endif
  16588. int
  16589. main (void)
  16590. {
  16591. char *p = (char *) alloca (1);
  16592. if (p) return 0;
  16593. ;
  16594. return 0;
  16595. }
  16596. _ACEOF
  16597. if ac_fn_c_try_link "$LINENO"
  16598. then :
  16599. ac_cv_func_alloca_works=yes
  16600. else $as_nop
  16601. ac_cv_func_alloca_works=no
  16602. fi
  16603. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16604. conftest$ac_exeext conftest.$ac_ext
  16605. fi
  16606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16607. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16608. fi
  16609. if test $ac_cv_func_alloca_works = yes; then
  16610. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16611. else
  16612. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16613. # that cause trouble. Some versions do not even contain alloca or
  16614. # contain a buggy version. If you still want to use their alloca,
  16615. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16616. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16617. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16619. printf %s "checking stack direction for C alloca... " >&6; }
  16620. if test ${ac_cv_c_stack_direction+y}
  16621. then :
  16622. printf %s "(cached) " >&6
  16623. else $as_nop
  16624. if test "$cross_compiling" = yes
  16625. then :
  16626. ac_cv_c_stack_direction=0
  16627. else $as_nop
  16628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16629. /* end confdefs.h. */
  16630. $ac_includes_default
  16631. int
  16632. find_stack_direction (int *addr, int depth)
  16633. {
  16634. int dir, dummy = 0;
  16635. if (! addr)
  16636. addr = &dummy;
  16637. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16638. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16639. return dir + dummy;
  16640. }
  16641. int
  16642. main (int argc, char **argv)
  16643. {
  16644. return find_stack_direction (0, argc + !argv + 20) < 0;
  16645. }
  16646. _ACEOF
  16647. if ac_fn_c_try_run "$LINENO"
  16648. then :
  16649. ac_cv_c_stack_direction=1
  16650. else $as_nop
  16651. ac_cv_c_stack_direction=-1
  16652. fi
  16653. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16654. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16655. fi
  16656. fi
  16657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16658. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16659. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16660. fi
  16661. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16662. if test "x$ac_cv_func_mprotect" = xyes
  16663. then :
  16664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16665. /* end confdefs.h. */
  16666. #include <sys/types.h>
  16667. #include <sys/mman.h>
  16668. int
  16669. main (void)
  16670. {
  16671. ;
  16672. return 0;
  16673. }
  16674. _ACEOF
  16675. if ac_fn_c_try_compile "$LINENO"
  16676. then :
  16677. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16678. fi
  16679. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16680. fi
  16681. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16682. if test "x$ac_cv_func_malloc" = xyes
  16683. then :
  16684. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16685. fi
  16686. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16687. if test "x$ac_cv_func_calloc" = xyes
  16688. then :
  16689. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16690. fi
  16691. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16692. if test "x$ac_cv_func_realloc" = xyes
  16693. then :
  16694. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16695. fi
  16696. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16697. if test "x$ac_cv_func_free" = xyes
  16698. then :
  16699. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16700. fi
  16701. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16702. if test "x$ac_cv_func_getenv" = xyes
  16703. then :
  16704. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16705. fi
  16706. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16707. if test "x$ac_cv_func_setenv" = xyes
  16708. then :
  16709. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16710. fi
  16711. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16712. if test "x$ac_cv_func_putenv" = xyes
  16713. then :
  16714. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16715. fi
  16716. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16717. if test "x$ac_cv_func_unsetenv" = xyes
  16718. then :
  16719. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16720. fi
  16721. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16722. if test "x$ac_cv_func_bsearch" = xyes
  16723. then :
  16724. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16725. fi
  16726. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16727. if test "x$ac_cv_func_qsort" = xyes
  16728. then :
  16729. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16730. fi
  16731. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16732. if test "x$ac_cv_func_abs" = xyes
  16733. then :
  16734. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16735. fi
  16736. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16737. if test "x$ac_cv_func_bcopy" = xyes
  16738. then :
  16739. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16740. fi
  16741. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16742. if test "x$ac_cv_func_memset" = xyes
  16743. then :
  16744. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16745. fi
  16746. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16747. if test "x$ac_cv_func_memcmp" = xyes
  16748. then :
  16749. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16750. fi
  16751. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16752. if test "x$ac_cv_func_memcpy" = xyes
  16753. then :
  16754. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16755. fi
  16756. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16757. if test "x$ac_cv_func_memmove" = xyes
  16758. then :
  16759. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16760. fi
  16761. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16762. if test "x$ac_cv_func_wcslen" = xyes
  16763. then :
  16764. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16765. fi
  16766. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16767. if test "x$ac_cv_func_wcslcpy" = xyes
  16768. then :
  16769. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16770. fi
  16771. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16772. if test "x$ac_cv_func_wcslcat" = xyes
  16773. then :
  16774. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16775. fi
  16776. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16777. if test "x$ac_cv_func__wcsdup" = xyes
  16778. then :
  16779. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16780. fi
  16781. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16782. if test "x$ac_cv_func_wcsdup" = xyes
  16783. then :
  16784. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16785. fi
  16786. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16787. if test "x$ac_cv_func_wcsstr" = xyes
  16788. then :
  16789. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16790. fi
  16791. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16792. if test "x$ac_cv_func_wcscmp" = xyes
  16793. then :
  16794. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16795. fi
  16796. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16797. if test "x$ac_cv_func_wcsncmp" = xyes
  16798. then :
  16799. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16800. fi
  16801. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16802. if test "x$ac_cv_func_wcscasecmp" = xyes
  16803. then :
  16804. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16805. fi
  16806. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16807. if test "x$ac_cv_func__wcsicmp" = xyes
  16808. then :
  16809. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16810. fi
  16811. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16812. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16813. then :
  16814. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16815. fi
  16816. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16817. if test "x$ac_cv_func__wcsnicmp" = xyes
  16818. then :
  16819. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16820. fi
  16821. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16822. if test "x$ac_cv_func_strlen" = xyes
  16823. then :
  16824. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16825. fi
  16826. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16827. if test "x$ac_cv_func_strlcpy" = xyes
  16828. then :
  16829. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16830. fi
  16831. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16832. if test "x$ac_cv_func_strlcat" = xyes
  16833. then :
  16834. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16835. fi
  16836. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16837. if test "x$ac_cv_func__strrev" = xyes
  16838. then :
  16839. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16840. fi
  16841. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16842. if test "x$ac_cv_func__strupr" = xyes
  16843. then :
  16844. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16845. fi
  16846. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16847. if test "x$ac_cv_func__strlwr" = xyes
  16848. then :
  16849. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16850. fi
  16851. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16852. if test "x$ac_cv_func_index" = xyes
  16853. then :
  16854. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16855. fi
  16856. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16857. if test "x$ac_cv_func_rindex" = xyes
  16858. then :
  16859. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16860. fi
  16861. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16862. if test "x$ac_cv_func_strchr" = xyes
  16863. then :
  16864. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16865. fi
  16866. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16867. if test "x$ac_cv_func_strrchr" = xyes
  16868. then :
  16869. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16870. fi
  16871. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16872. if test "x$ac_cv_func_strstr" = xyes
  16873. then :
  16874. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16875. fi
  16876. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16877. if test "x$ac_cv_func_strtok_r" = xyes
  16878. then :
  16879. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16880. fi
  16881. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16882. if test "x$ac_cv_func_itoa" = xyes
  16883. then :
  16884. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16885. fi
  16886. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16887. if test "x$ac_cv_func__ltoa" = xyes
  16888. then :
  16889. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16890. fi
  16891. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16892. if test "x$ac_cv_func__uitoa" = xyes
  16893. then :
  16894. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16895. fi
  16896. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16897. if test "x$ac_cv_func__ultoa" = xyes
  16898. then :
  16899. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16900. fi
  16901. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  16902. if test "x$ac_cv_func_strtod" = xyes
  16903. then :
  16904. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16905. fi
  16906. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16907. if test "x$ac_cv_func_strtol" = xyes
  16908. then :
  16909. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16910. fi
  16911. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  16912. if test "x$ac_cv_func_strtoul" = xyes
  16913. then :
  16914. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  16915. fi
  16916. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  16917. if test "x$ac_cv_func__i64toa" = xyes
  16918. then :
  16919. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  16920. fi
  16921. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  16922. if test "x$ac_cv_func__ui64toa" = xyes
  16923. then :
  16924. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  16925. fi
  16926. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  16927. if test "x$ac_cv_func_strtoll" = xyes
  16928. then :
  16929. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  16930. fi
  16931. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  16932. if test "x$ac_cv_func_strtoull" = xyes
  16933. then :
  16934. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  16935. fi
  16936. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  16937. if test "x$ac_cv_func_atoi" = xyes
  16938. then :
  16939. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  16940. fi
  16941. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  16942. if test "x$ac_cv_func_atof" = xyes
  16943. then :
  16944. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  16945. fi
  16946. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  16947. if test "x$ac_cv_func_strcmp" = xyes
  16948. then :
  16949. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  16950. fi
  16951. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  16952. if test "x$ac_cv_func_strncmp" = xyes
  16953. then :
  16954. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  16955. fi
  16956. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  16957. if test "x$ac_cv_func__stricmp" = xyes
  16958. then :
  16959. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  16960. fi
  16961. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  16962. if test "x$ac_cv_func_strcasecmp" = xyes
  16963. then :
  16964. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  16965. fi
  16966. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  16967. if test "x$ac_cv_func__strnicmp" = xyes
  16968. then :
  16969. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  16970. fi
  16971. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  16972. if test "x$ac_cv_func_strncasecmp" = xyes
  16973. then :
  16974. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  16975. fi
  16976. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  16977. if test "x$ac_cv_func_vsscanf" = xyes
  16978. then :
  16979. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  16980. fi
  16981. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  16982. if test "x$ac_cv_func_vsnprintf" = xyes
  16983. then :
  16984. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  16985. fi
  16986. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  16987. if test "x$ac_cv_func_fopen64" = xyes
  16988. then :
  16989. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  16990. fi
  16991. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  16992. if test "x$ac_cv_func_fseeko" = xyes
  16993. then :
  16994. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  16995. fi
  16996. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  16997. if test "x$ac_cv_func_fseeko64" = xyes
  16998. then :
  16999. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17000. fi
  17001. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17002. if test "x$ac_cv_func_sigaction" = xyes
  17003. then :
  17004. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17005. fi
  17006. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17007. if test "x$ac_cv_func_setjmp" = xyes
  17008. then :
  17009. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17010. fi
  17011. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17012. if test "x$ac_cv_func_nanosleep" = xyes
  17013. then :
  17014. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17015. fi
  17016. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17017. if test "x$ac_cv_func_sysconf" = xyes
  17018. then :
  17019. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17020. fi
  17021. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17022. if test "x$ac_cv_func_sysctlbyname" = xyes
  17023. then :
  17024. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17025. fi
  17026. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17027. if test "x$ac_cv_func_getauxval" = xyes
  17028. then :
  17029. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17030. fi
  17031. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17032. if test "x$ac_cv_func_elf_aux_info" = xyes
  17033. then :
  17034. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17035. fi
  17036. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17037. if test "x$ac_cv_func_poll" = xyes
  17038. then :
  17039. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17040. fi
  17041. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17042. if test "x$ac_cv_func__Exit" = xyes
  17043. then :
  17044. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17045. fi
  17046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17047. printf %s "checking for pow in -lm... " >&6; }
  17048. if test ${ac_cv_lib_m_pow+y}
  17049. then :
  17050. printf %s "(cached) " >&6
  17051. else $as_nop
  17052. ac_check_lib_save_LIBS=$LIBS
  17053. LIBS="-lm $LIBS"
  17054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17055. /* end confdefs.h. */
  17056. /* Override any GCC internal prototype to avoid an error.
  17057. Use char because int might match the return type of a GCC
  17058. builtin and then its argument prototype would still apply. */
  17059. char pow ();
  17060. int
  17061. main (void)
  17062. {
  17063. return pow ();
  17064. ;
  17065. return 0;
  17066. }
  17067. _ACEOF
  17068. if ac_fn_c_try_link "$LINENO"
  17069. then :
  17070. ac_cv_lib_m_pow=yes
  17071. else $as_nop
  17072. ac_cv_lib_m_pow=no
  17073. fi
  17074. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17075. conftest$ac_exeext conftest.$ac_ext
  17076. LIBS=$ac_check_lib_save_LIBS
  17077. fi
  17078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17079. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17080. if test "x$ac_cv_lib_m_pow" = xyes
  17081. then :
  17082. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17083. fi
  17084. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17085. if test "x$ac_cv_func_acos" = xyes
  17086. then :
  17087. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17088. fi
  17089. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17090. if test "x$ac_cv_func_acosf" = xyes
  17091. then :
  17092. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17093. fi
  17094. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17095. if test "x$ac_cv_func_asin" = xyes
  17096. then :
  17097. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17098. fi
  17099. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17100. if test "x$ac_cv_func_asinf" = xyes
  17101. then :
  17102. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17103. fi
  17104. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17105. if test "x$ac_cv_func_atan" = xyes
  17106. then :
  17107. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17108. fi
  17109. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17110. if test "x$ac_cv_func_atanf" = xyes
  17111. then :
  17112. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17113. fi
  17114. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17115. if test "x$ac_cv_func_atan2" = xyes
  17116. then :
  17117. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17118. fi
  17119. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17120. if test "x$ac_cv_func_atan2f" = xyes
  17121. then :
  17122. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17123. fi
  17124. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17125. if test "x$ac_cv_func_ceil" = xyes
  17126. then :
  17127. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17128. fi
  17129. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17130. if test "x$ac_cv_func_ceilf" = xyes
  17131. then :
  17132. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17133. fi
  17134. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17135. if test "x$ac_cv_func_copysign" = xyes
  17136. then :
  17137. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17138. fi
  17139. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17140. if test "x$ac_cv_func_copysignf" = xyes
  17141. then :
  17142. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17143. fi
  17144. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17145. if test "x$ac_cv_func_cos" = xyes
  17146. then :
  17147. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17148. fi
  17149. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17150. if test "x$ac_cv_func_cosf" = xyes
  17151. then :
  17152. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17153. fi
  17154. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17155. if test "x$ac_cv_func_exp" = xyes
  17156. then :
  17157. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17158. fi
  17159. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17160. if test "x$ac_cv_func_expf" = xyes
  17161. then :
  17162. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17163. fi
  17164. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17165. if test "x$ac_cv_func_fabs" = xyes
  17166. then :
  17167. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17168. fi
  17169. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17170. if test "x$ac_cv_func_fabsf" = xyes
  17171. then :
  17172. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17173. fi
  17174. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17175. if test "x$ac_cv_func_floor" = xyes
  17176. then :
  17177. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17178. fi
  17179. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17180. if test "x$ac_cv_func_floorf" = xyes
  17181. then :
  17182. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17183. fi
  17184. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17185. if test "x$ac_cv_func_trunc" = xyes
  17186. then :
  17187. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17188. fi
  17189. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17190. if test "x$ac_cv_func_truncf" = xyes
  17191. then :
  17192. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17193. fi
  17194. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17195. if test "x$ac_cv_func_fmod" = xyes
  17196. then :
  17197. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17198. fi
  17199. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17200. if test "x$ac_cv_func_fmodf" = xyes
  17201. then :
  17202. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17203. fi
  17204. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17205. if test "x$ac_cv_func_log" = xyes
  17206. then :
  17207. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17208. fi
  17209. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17210. if test "x$ac_cv_func_logf" = xyes
  17211. then :
  17212. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17213. fi
  17214. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17215. if test "x$ac_cv_func_log10" = xyes
  17216. then :
  17217. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17218. fi
  17219. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17220. if test "x$ac_cv_func_log10f" = xyes
  17221. then :
  17222. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17223. fi
  17224. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17225. if test "x$ac_cv_func_lround" = xyes
  17226. then :
  17227. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17228. fi
  17229. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17230. if test "x$ac_cv_func_lroundf" = xyes
  17231. then :
  17232. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17233. fi
  17234. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17235. if test "x$ac_cv_func_pow" = xyes
  17236. then :
  17237. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17238. fi
  17239. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17240. if test "x$ac_cv_func_powf" = xyes
  17241. then :
  17242. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17243. fi
  17244. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17245. if test "x$ac_cv_func_round" = xyes
  17246. then :
  17247. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17248. fi
  17249. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17250. if test "x$ac_cv_func_roundf" = xyes
  17251. then :
  17252. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17253. fi
  17254. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17255. if test "x$ac_cv_func_scalbn" = xyes
  17256. then :
  17257. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17258. fi
  17259. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17260. if test "x$ac_cv_func_scalbnf" = xyes
  17261. then :
  17262. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17263. fi
  17264. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17265. if test "x$ac_cv_func_sin" = xyes
  17266. then :
  17267. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17268. fi
  17269. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17270. if test "x$ac_cv_func_sinf" = xyes
  17271. then :
  17272. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17273. fi
  17274. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17275. if test "x$ac_cv_func_sqrt" = xyes
  17276. then :
  17277. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17278. fi
  17279. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17280. if test "x$ac_cv_func_sqrtf" = xyes
  17281. then :
  17282. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17283. fi
  17284. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17285. if test "x$ac_cv_func_tan" = xyes
  17286. then :
  17287. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17288. fi
  17289. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17290. if test "x$ac_cv_func_tanf" = xyes
  17291. then :
  17292. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17293. fi
  17294. if test x$enable_system_iconv = xyes; then
  17295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17296. printf %s "checking for iconv_open in -liconv... " >&6; }
  17297. if test ${ac_cv_lib_iconv_iconv_open+y}
  17298. then :
  17299. printf %s "(cached) " >&6
  17300. else $as_nop
  17301. ac_check_lib_save_LIBS=$LIBS
  17302. LIBS="-liconv $LIBS"
  17303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17304. /* end confdefs.h. */
  17305. /* Override any GCC internal prototype to avoid an error.
  17306. Use char because int might match the return type of a GCC
  17307. builtin and then its argument prototype would still apply. */
  17308. char iconv_open ();
  17309. int
  17310. main (void)
  17311. {
  17312. return iconv_open ();
  17313. ;
  17314. return 0;
  17315. }
  17316. _ACEOF
  17317. if ac_fn_c_try_link "$LINENO"
  17318. then :
  17319. ac_cv_lib_iconv_iconv_open=yes
  17320. else $as_nop
  17321. ac_cv_lib_iconv_iconv_open=no
  17322. fi
  17323. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17324. conftest$ac_exeext conftest.$ac_ext
  17325. LIBS=$ac_check_lib_save_LIBS
  17326. fi
  17327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17328. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17329. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17330. then :
  17331. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17332. fi
  17333. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17334. if test "x$ac_cv_func_iconv" = xyes
  17335. then :
  17336. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17337. fi
  17338. fi
  17339. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17340. "
  17341. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17342. then :
  17343. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17344. fi
  17345. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17346. if test "x$ac_cv_header_libunwind_h" = xyes
  17347. then :
  17348. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17349. fi
  17350. fi
  17351. # Check whether --enable-gcc-atomics was given.
  17352. if test ${enable_gcc_atomics+y}
  17353. then :
  17354. enableval=$enable_gcc_atomics;
  17355. else $as_nop
  17356. enable_gcc_atomics=yes
  17357. fi
  17358. if test x$enable_gcc_atomics = xyes; then
  17359. have_gcc_atomics=no
  17360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17361. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17363. /* end confdefs.h. */
  17364. int
  17365. main (void)
  17366. {
  17367. int a;
  17368. void *x, *y, *z;
  17369. __sync_lock_test_and_set(&a, 4);
  17370. __sync_lock_test_and_set(&x, y);
  17371. __sync_fetch_and_add(&a, 1);
  17372. __sync_bool_compare_and_swap(&a, 5, 10);
  17373. __sync_bool_compare_and_swap(&x, y, z);
  17374. ;
  17375. return 0;
  17376. }
  17377. _ACEOF
  17378. if ac_fn_c_try_link "$LINENO"
  17379. then :
  17380. have_gcc_atomics=yes
  17381. fi
  17382. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17383. conftest$ac_exeext conftest.$ac_ext
  17384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17385. printf "%s\n" "$have_gcc_atomics" >&6; }
  17386. if test x$have_gcc_atomics = xyes; then
  17387. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17388. else
  17389. # See if we have the minimum operation needed for GCC atomics
  17390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17391. /* end confdefs.h. */
  17392. int
  17393. main (void)
  17394. {
  17395. int a;
  17396. __sync_lock_test_and_set(&a, 1);
  17397. __sync_lock_release(&a);
  17398. ;
  17399. return 0;
  17400. }
  17401. _ACEOF
  17402. if ac_fn_c_try_link "$LINENO"
  17403. then :
  17404. have_gcc_sync_lock_test_and_set=yes
  17405. fi
  17406. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17407. conftest$ac_exeext conftest.$ac_ext
  17408. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17409. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17410. fi
  17411. fi
  17412. fi
  17413. # Standard C sources
  17414. SOURCES="$SOURCES $srcdir/src/*.c"
  17415. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17416. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17417. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17418. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17419. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17420. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17421. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17422. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17423. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17424. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17425. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17426. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17427. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17428. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17429. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17430. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17431. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17432. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17433. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17434. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17435. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17436. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17437. case "$host" in
  17438. *-*-emscripten*)
  17439. default_atomic=no
  17440. ;;
  17441. *)
  17442. default_atomic=yes
  17443. ;;
  17444. esac
  17445. # Check whether --enable-atomic was given.
  17446. if test ${enable_atomic+y}
  17447. then :
  17448. enableval=$enable_atomic;
  17449. else $as_nop
  17450. enable_atomic=$default_atomic
  17451. fi
  17452. if test x$enable_atomic != xyes; then
  17453. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17454. else
  17455. SUMMARY_modules="${SUMMARY_modules} atomic"
  17456. fi
  17457. # Check whether --enable-audio was given.
  17458. if test ${enable_audio+y}
  17459. then :
  17460. enableval=$enable_audio;
  17461. else $as_nop
  17462. enable_audio=yes
  17463. fi
  17464. if test x$enable_audio != xyes; then
  17465. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17466. else
  17467. SUMMARY_modules="${SUMMARY_modules} audio"
  17468. fi
  17469. # Check whether --enable-video was given.
  17470. if test ${enable_video+y}
  17471. then :
  17472. enableval=$enable_video;
  17473. else $as_nop
  17474. enable_video=yes
  17475. fi
  17476. if test x$enable_video != xyes; then
  17477. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17478. else
  17479. SUMMARY_modules="${SUMMARY_modules} video"
  17480. fi
  17481. # Check whether --enable-render was given.
  17482. if test ${enable_render+y}
  17483. then :
  17484. enableval=$enable_render;
  17485. else $as_nop
  17486. enable_render=yes
  17487. fi
  17488. if test x$enable_render != xyes; then
  17489. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17490. else
  17491. SUMMARY_modules="${SUMMARY_modules} render"
  17492. fi
  17493. # Check whether --enable-events was given.
  17494. if test ${enable_events+y}
  17495. then :
  17496. enableval=$enable_events;
  17497. else $as_nop
  17498. enable_events=yes
  17499. fi
  17500. if test x$enable_events != xyes; then
  17501. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17502. else
  17503. SUMMARY_modules="${SUMMARY_modules} events"
  17504. fi
  17505. # Check whether --enable-joystick was given.
  17506. if test ${enable_joystick+y}
  17507. then :
  17508. enableval=$enable_joystick;
  17509. else $as_nop
  17510. enable_joystick=yes
  17511. fi
  17512. if test x$enable_joystick != xyes; then
  17513. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17514. else
  17515. SUMMARY_modules="${SUMMARY_modules} joystick"
  17516. fi
  17517. # Check whether --enable-haptic was given.
  17518. if test ${enable_haptic+y}
  17519. then :
  17520. enableval=$enable_haptic;
  17521. else $as_nop
  17522. enable_haptic=yes
  17523. fi
  17524. if test x$enable_haptic != xyes; then
  17525. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17526. else
  17527. SUMMARY_modules="${SUMMARY_modules} haptic"
  17528. fi
  17529. # Check whether --enable-hidapi was given.
  17530. if test ${enable_hidapi+y}
  17531. then :
  17532. enableval=$enable_hidapi;
  17533. else $as_nop
  17534. enable_hidapi=yes
  17535. fi
  17536. if test x$enable_hidapi != xyes; then
  17537. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17538. else
  17539. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17540. fi
  17541. # Check whether --enable-sensor was given.
  17542. if test ${enable_sensor+y}
  17543. then :
  17544. enableval=$enable_sensor;
  17545. else $as_nop
  17546. enable_sensor=yes
  17547. fi
  17548. if test x$enable_sensor != xyes; then
  17549. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17550. else
  17551. SUMMARY_modules="${SUMMARY_modules} sensor"
  17552. fi
  17553. # Check whether --enable-power was given.
  17554. if test ${enable_power+y}
  17555. then :
  17556. enableval=$enable_power;
  17557. else $as_nop
  17558. enable_power=yes
  17559. fi
  17560. if test x$enable_power != xyes; then
  17561. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17562. else
  17563. SUMMARY_modules="${SUMMARY_modules} power"
  17564. fi
  17565. # Check whether --enable-filesystem was given.
  17566. if test ${enable_filesystem+y}
  17567. then :
  17568. enableval=$enable_filesystem;
  17569. else $as_nop
  17570. enable_filesystem=yes
  17571. fi
  17572. if test x$enable_filesystem != xyes; then
  17573. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17574. else
  17575. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17576. fi
  17577. # Many subsystems depend on threads, so leave them enabled by default
  17578. #AC_ARG_ENABLE(threads,
  17579. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17580. # , enable_threads=yes)
  17581. enable_threads=yes
  17582. if test x$enable_threads != xyes; then
  17583. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17584. else
  17585. SUMMARY_modules="${SUMMARY_modules} threads"
  17586. fi
  17587. # Check whether --enable-timers was given.
  17588. if test ${enable_timers+y}
  17589. then :
  17590. enableval=$enable_timers;
  17591. else $as_nop
  17592. enable_timers=yes
  17593. fi
  17594. if test x$enable_timers != xyes; then
  17595. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17596. else
  17597. SUMMARY_modules="${SUMMARY_modules} timers"
  17598. fi
  17599. # Check whether --enable-file was given.
  17600. if test ${enable_file+y}
  17601. then :
  17602. enableval=$enable_file;
  17603. else $as_nop
  17604. enable_file=yes
  17605. fi
  17606. if test x$enable_file != xyes; then
  17607. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17608. else
  17609. SUMMARY_modules="${SUMMARY_modules} file"
  17610. fi
  17611. # Check whether --enable-misc was given.
  17612. if test ${enable_misc+y}
  17613. then :
  17614. enableval=$enable_misc;
  17615. else $as_nop
  17616. enable_misc=yes
  17617. fi
  17618. if test x$enable_misc != xyes; then
  17619. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17620. else
  17621. SUMMARY_modules="${SUMMARY_modules} misc"
  17622. fi
  17623. # Check whether --enable-locale was given.
  17624. if test ${enable_locale+y}
  17625. then :
  17626. enableval=$enable_locale;
  17627. else $as_nop
  17628. enable_locale=yes
  17629. fi
  17630. if test x$enable_locale != xyes; then
  17631. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17632. else
  17633. SUMMARY_modules="${SUMMARY_modules} locale"
  17634. fi
  17635. # Check whether --enable-loadso was given.
  17636. if test ${enable_loadso+y}
  17637. then :
  17638. enableval=$enable_loadso;
  17639. else $as_nop
  17640. enable_loadso=yes
  17641. fi
  17642. if test x$enable_loadso != xyes; then
  17643. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17644. else
  17645. SUMMARY_modules="${SUMMARY_modules} loadso"
  17646. fi
  17647. # Check whether --enable-cpuinfo was given.
  17648. if test ${enable_cpuinfo+y}
  17649. then :
  17650. enableval=$enable_cpuinfo;
  17651. else $as_nop
  17652. enable_cpuinfo=yes
  17653. fi
  17654. if test x$enable_cpuinfo != xyes; then
  17655. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17656. else
  17657. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17658. fi
  17659. # Check whether --enable-assembly was given.
  17660. if test ${enable_assembly+y}
  17661. then :
  17662. enableval=$enable_assembly;
  17663. else $as_nop
  17664. enable_assembly=yes
  17665. fi
  17666. if test x$enable_assembly = xyes; then
  17667. SUMMARY_modules="${SUMMARY_modules} assembly"
  17668. # Make sure that we don't generate floating point code that would
  17669. # cause illegal instruction exceptions on older processors
  17670. case "$host" in
  17671. *-*-darwin*)
  17672. # Don't need to worry about Apple hardware, it's all SSE capable
  17673. default_ssemath=yes
  17674. ;;
  17675. *64-*-*)
  17676. # x86 64-bit architectures all have SSE instructions
  17677. default_ssemath=yes
  17678. ;;
  17679. *)
  17680. default_ssemath=no
  17681. ;;
  17682. esac
  17683. # Check whether --enable-ssemath was given.
  17684. if test ${enable_ssemath+y}
  17685. then :
  17686. enableval=$enable_ssemath;
  17687. else $as_nop
  17688. enable_ssemath=$default_ssemath
  17689. fi
  17690. if test x$enable_ssemath = xno; then
  17691. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17692. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17693. fi
  17694. fi
  17695. # Check whether --enable-mmx was given.
  17696. if test ${enable_mmx+y}
  17697. then :
  17698. enableval=$enable_mmx;
  17699. else $as_nop
  17700. enable_mmx=yes
  17701. fi
  17702. if test x$enable_mmx = xyes; then
  17703. save_CFLAGS="$CFLAGS"
  17704. have_gcc_mmx=no
  17705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17706. printf %s "checking for GCC -mmmx option... " >&6; }
  17707. mmx_CFLAGS="-mmmx"
  17708. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17710. /* end confdefs.h. */
  17711. #ifdef __MINGW32__
  17712. #include <_mingw.h>
  17713. #ifdef __MINGW64_VERSION_MAJOR
  17714. #include <intrin.h>
  17715. #else
  17716. #include <mmintrin.h>
  17717. #endif
  17718. #else
  17719. #include <mmintrin.h>
  17720. #endif
  17721. #ifndef __MMX__
  17722. #error Assembler CPP flag not enabled
  17723. #endif
  17724. int
  17725. main (void)
  17726. {
  17727. ;
  17728. return 0;
  17729. }
  17730. _ACEOF
  17731. if ac_fn_c_try_compile "$LINENO"
  17732. then :
  17733. have_gcc_mmx=yes
  17734. fi
  17735. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17737. printf "%s\n" "$have_gcc_mmx" >&6; }
  17738. CFLAGS="$save_CFLAGS"
  17739. if test x$have_gcc_mmx = xyes; then
  17740. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17741. SUMMARY_math="${SUMMARY_math} mmx"
  17742. fi
  17743. fi
  17744. # Check whether --enable-3dnow was given.
  17745. if test ${enable_3dnow+y}
  17746. then :
  17747. enableval=$enable_3dnow;
  17748. else $as_nop
  17749. enable_3dnow=yes
  17750. fi
  17751. if test x$enable_3dnow = xyes; then
  17752. save_CFLAGS="$CFLAGS"
  17753. have_gcc_3dnow=no
  17754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17755. printf %s "checking for GCC -m3dnow option... " >&6; }
  17756. amd3dnow_CFLAGS="-m3dnow"
  17757. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17759. /* end confdefs.h. */
  17760. #include <mm3dnow.h>
  17761. #ifndef __3dNOW__
  17762. #error Assembler CPP flag not enabled
  17763. #endif
  17764. int
  17765. main (void)
  17766. {
  17767. void *p = 0;
  17768. _m_prefetch(p);
  17769. ;
  17770. return 0;
  17771. }
  17772. _ACEOF
  17773. if ac_fn_c_try_link "$LINENO"
  17774. then :
  17775. have_gcc_3dnow=yes
  17776. fi
  17777. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17778. conftest$ac_exeext conftest.$ac_ext
  17779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17780. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17781. CFLAGS="$save_CFLAGS"
  17782. if test x$have_gcc_3dnow = xyes; then
  17783. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17784. SUMMARY_math="${SUMMARY_math} 3dnow"
  17785. fi
  17786. fi
  17787. # Check whether --enable-sse was given.
  17788. if test ${enable_sse+y}
  17789. then :
  17790. enableval=$enable_sse;
  17791. else $as_nop
  17792. enable_sse=yes
  17793. fi
  17794. if test x$enable_sse = xyes; then
  17795. save_CFLAGS="$CFLAGS"
  17796. have_gcc_sse=no
  17797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17798. printf %s "checking for GCC -msse option... " >&6; }
  17799. sse_CFLAGS="-msse"
  17800. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17802. /* end confdefs.h. */
  17803. #ifdef __MINGW32__
  17804. #include <_mingw.h>
  17805. #ifdef __MINGW64_VERSION_MAJOR
  17806. #include <intrin.h>
  17807. #else
  17808. #include <xmmintrin.h>
  17809. #endif
  17810. #else
  17811. #include <xmmintrin.h>
  17812. #endif
  17813. #ifndef __SSE__
  17814. #error Assembler CPP flag not enabled
  17815. #endif
  17816. int
  17817. main (void)
  17818. {
  17819. ;
  17820. return 0;
  17821. }
  17822. _ACEOF
  17823. if ac_fn_c_try_compile "$LINENO"
  17824. then :
  17825. have_gcc_sse=yes
  17826. fi
  17827. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17829. printf "%s\n" "$have_gcc_sse" >&6; }
  17830. CFLAGS="$save_CFLAGS"
  17831. if test x$have_gcc_sse = xyes; then
  17832. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17833. SUMMARY_math="${SUMMARY_math} sse"
  17834. fi
  17835. fi
  17836. # Check whether --enable-sse2 was given.
  17837. if test ${enable_sse2+y}
  17838. then :
  17839. enableval=$enable_sse2;
  17840. else $as_nop
  17841. enable_sse2=$default_ssemath
  17842. fi
  17843. if test x$enable_sse2 = xyes; then
  17844. save_CFLAGS="$CFLAGS"
  17845. have_gcc_sse2=no
  17846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17847. printf %s "checking for GCC -msse2 option... " >&6; }
  17848. sse2_CFLAGS="-msse2"
  17849. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17851. /* end confdefs.h. */
  17852. #ifdef __MINGW32__
  17853. #include <_mingw.h>
  17854. #ifdef __MINGW64_VERSION_MAJOR
  17855. #include <intrin.h>
  17856. #else
  17857. #include <emmintrin.h>
  17858. #endif
  17859. #else
  17860. #include <emmintrin.h>
  17861. #endif
  17862. #ifndef __SSE2__
  17863. #error Assembler CPP flag not enabled
  17864. #endif
  17865. int
  17866. main (void)
  17867. {
  17868. ;
  17869. return 0;
  17870. }
  17871. _ACEOF
  17872. if ac_fn_c_try_compile "$LINENO"
  17873. then :
  17874. have_gcc_sse2=yes
  17875. fi
  17876. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17878. printf "%s\n" "$have_gcc_sse2" >&6; }
  17879. CFLAGS="$save_CFLAGS"
  17880. if test x$have_gcc_sse2 = xyes; then
  17881. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17882. SUMMARY_math="${SUMMARY_math} sse2"
  17883. fi
  17884. fi
  17885. # Check whether --enable-sse3 was given.
  17886. if test ${enable_sse3+y}
  17887. then :
  17888. enableval=$enable_sse3;
  17889. else $as_nop
  17890. enable_sse3=$default_ssemath
  17891. fi
  17892. if test x$enable_sse3 = xyes; then
  17893. save_CFLAGS="$CFLAGS"
  17894. have_gcc_sse3=no
  17895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17896. printf %s "checking for GCC -msse3 option... " >&6; }
  17897. sse3_CFLAGS="-msse3"
  17898. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17900. /* end confdefs.h. */
  17901. #ifdef __MINGW32__
  17902. #include <_mingw.h>
  17903. #ifdef __MINGW64_VERSION_MAJOR
  17904. #include <intrin.h>
  17905. #else
  17906. #include <pmmintrin.h>
  17907. #endif
  17908. #else
  17909. #include <pmmintrin.h>
  17910. #endif
  17911. #ifndef __SSE2__
  17912. #error Assembler CPP flag not enabled
  17913. #endif
  17914. int
  17915. main (void)
  17916. {
  17917. ;
  17918. return 0;
  17919. }
  17920. _ACEOF
  17921. if ac_fn_c_try_compile "$LINENO"
  17922. then :
  17923. have_gcc_sse3=yes
  17924. fi
  17925. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  17927. printf "%s\n" "$have_gcc_sse3" >&6; }
  17928. CFLAGS="$save_CFLAGS"
  17929. if test x$have_gcc_sse3 = xyes; then
  17930. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  17931. SUMMARY_math="${SUMMARY_math} sse3"
  17932. fi
  17933. fi
  17934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  17935. printf %s "checking for immintrin.h... " >&6; }
  17936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17937. /* end confdefs.h. */
  17938. #include <immintrin.h>
  17939. int
  17940. main (void)
  17941. {
  17942. ;
  17943. return 0;
  17944. }
  17945. _ACEOF
  17946. if ac_fn_c_try_compile "$LINENO"
  17947. then :
  17948. have_immintrin_h_hdr=yes
  17949. else $as_nop
  17950. have_immintrin_h_hdr=no
  17951. fi
  17952. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  17954. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  17955. if test x$have_immintrin_h_hdr = xyes; then
  17956. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  17957. fi
  17958. # Check whether --enable-altivec was given.
  17959. if test ${enable_altivec+y}
  17960. then :
  17961. enableval=$enable_altivec;
  17962. else $as_nop
  17963. enable_altivec=yes
  17964. fi
  17965. if test x$enable_altivec = xyes; then
  17966. save_CFLAGS="$CFLAGS"
  17967. have_gcc_altivec=no
  17968. have_altivec_h_hdr=no
  17969. altivec_CFLAGS="-maltivec"
  17970. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  17972. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  17973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17974. /* end confdefs.h. */
  17975. #include <altivec.h>
  17976. vector unsigned int vzero() {
  17977. return vec_splat_u32(0);
  17978. }
  17979. int
  17980. main (void)
  17981. {
  17982. ;
  17983. return 0;
  17984. }
  17985. _ACEOF
  17986. if ac_fn_c_try_compile "$LINENO"
  17987. then :
  17988. have_gcc_altivec=yes
  17989. have_altivec_h_hdr=yes
  17990. fi
  17991. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17993. printf "%s\n" "$have_gcc_altivec" >&6; }
  17994. if test x$have_gcc_altivec = xno; then
  17995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  17996. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  17997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17998. /* end confdefs.h. */
  17999. vector unsigned int vzero() {
  18000. return vec_splat_u32(0);
  18001. }
  18002. int
  18003. main (void)
  18004. {
  18005. ;
  18006. return 0;
  18007. }
  18008. _ACEOF
  18009. if ac_fn_c_try_compile "$LINENO"
  18010. then :
  18011. have_gcc_altivec=yes
  18012. fi
  18013. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18015. printf "%s\n" "$have_gcc_altivec" >&6; }
  18016. fi
  18017. if test x$have_gcc_altivec = xno; then
  18018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18019. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18020. altivec_CFLAGS="-faltivec"
  18021. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18023. /* end confdefs.h. */
  18024. #include <altivec.h>
  18025. vector unsigned int vzero() {
  18026. return vec_splat_u32(0);
  18027. }
  18028. int
  18029. main (void)
  18030. {
  18031. ;
  18032. return 0;
  18033. }
  18034. _ACEOF
  18035. if ac_fn_c_try_compile "$LINENO"
  18036. then :
  18037. have_gcc_altivec=yes
  18038. have_altivec_h_hdr=yes
  18039. fi
  18040. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18042. printf "%s\n" "$have_gcc_altivec" >&6; }
  18043. fi
  18044. if test x$have_gcc_altivec = xno; then
  18045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18046. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18048. /* end confdefs.h. */
  18049. vector unsigned int vzero() {
  18050. return vec_splat_u32(0);
  18051. }
  18052. int
  18053. main (void)
  18054. {
  18055. ;
  18056. return 0;
  18057. }
  18058. _ACEOF
  18059. if ac_fn_c_try_compile "$LINENO"
  18060. then :
  18061. have_gcc_altivec=yes
  18062. fi
  18063. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18065. printf "%s\n" "$have_gcc_altivec" >&6; }
  18066. fi
  18067. CFLAGS="$save_CFLAGS"
  18068. if test x$have_gcc_altivec = xyes; then
  18069. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18070. if test x$have_altivec_h_hdr = xyes; then
  18071. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18072. fi
  18073. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18074. SUMMARY_math="${SUMMARY_math} altivec"
  18075. fi
  18076. fi
  18077. fi
  18078. # Check whether --enable-lsx was given.
  18079. if test ${enable_lsx+y}
  18080. then :
  18081. enableval=$enable_lsx;
  18082. else $as_nop
  18083. enable_lsx=yes
  18084. fi
  18085. if test x$enable_lsx = xyes; then
  18086. save_CFLAGS="$CFLAGS"
  18087. have_gcc_lsx=no
  18088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18089. printf %s "checking for GCC -mlsx option... " >&6; }
  18090. lsx_CFLAGS="-mlsx"
  18091. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18093. /* end confdefs.h. */
  18094. #ifndef __loongarch_sx
  18095. #error Assembler CPP flag not enabled
  18096. #endif
  18097. int
  18098. main (void)
  18099. {
  18100. ;
  18101. return 0;
  18102. }
  18103. _ACEOF
  18104. if ac_fn_c_try_compile "$LINENO"
  18105. then :
  18106. have_gcc_lsx=yes
  18107. fi
  18108. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18110. printf "%s\n" "$have_gcc_lsx" >&6; }
  18111. CFLAGS="$save_CFLAGS"
  18112. if test x$have_gcc_lsx = xyes; then
  18113. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18114. SUMMARY_math="${SUMMARY_math} lsx"
  18115. fi
  18116. fi
  18117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18118. printf %s "checking for lsxintrin.h... " >&6; }
  18119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18120. /* end confdefs.h. */
  18121. #include <lsxintrin.h>
  18122. int
  18123. main (void)
  18124. {
  18125. ;
  18126. return 0;
  18127. }
  18128. _ACEOF
  18129. if ac_fn_c_try_compile "$LINENO"
  18130. then :
  18131. have_lsxintrin_h_hdr=yes
  18132. else $as_nop
  18133. have_lsxintrin_h_hdr=no
  18134. fi
  18135. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18137. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18138. if test x$have_lsxintrin_h_hdr = xyes; then
  18139. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18140. fi
  18141. # Check whether --enable-lasx was given.
  18142. if test ${enable_lasx+y}
  18143. then :
  18144. enableval=$enable_lasx;
  18145. else $as_nop
  18146. enable_LASX=yes
  18147. fi
  18148. if test x$enable_LASX = xyes; then
  18149. save_CFLAGS="$CFLAGS"
  18150. have_gcc_lasx=no
  18151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18152. printf %s "checking for GCC -mlasx option... " >&6; }
  18153. lasx_CFLAGS="-mlasx"
  18154. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18156. /* end confdefs.h. */
  18157. #ifndef __loongarch_asx
  18158. #error Assembler CPP flag not enabled
  18159. #endif
  18160. int
  18161. main (void)
  18162. {
  18163. ;
  18164. return 0;
  18165. }
  18166. _ACEOF
  18167. if ac_fn_c_try_compile "$LINENO"
  18168. then :
  18169. have_gcc_lasx=yes
  18170. fi
  18171. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18173. printf "%s\n" "$have_gcc_lasx" >&6; }
  18174. CFLAGS="$save_CFLAGS"
  18175. if test x$have_gcc_lasx = xyes; then
  18176. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18177. SUMMARY_math="${SUMMARY_math} lasx"
  18178. fi
  18179. fi
  18180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18181. printf %s "checking for lasxintrin.h... " >&6; }
  18182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18183. /* end confdefs.h. */
  18184. #include <lasxintrin.h>
  18185. int
  18186. main (void)
  18187. {
  18188. ;
  18189. return 0;
  18190. }
  18191. _ACEOF
  18192. if ac_fn_c_try_compile "$LINENO"
  18193. then :
  18194. have_lasxintrin_h_hdr=yes
  18195. else $as_nop
  18196. have_lasxintrin_h_hdr=no
  18197. fi
  18198. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18200. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18201. if test x$have_lasxintrin_h_hdr = xyes; then
  18202. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18203. fi
  18204. CheckOSS()
  18205. {
  18206. # Check whether --enable-oss was given.
  18207. if test ${enable_oss+y}
  18208. then :
  18209. enableval=$enable_oss;
  18210. else $as_nop
  18211. enable_oss=maybe
  18212. fi
  18213. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  18214. # use sndio instead. So on there, we default to disabled. You can force
  18215. # it on if you really want, though.
  18216. if test x$enable_oss = xmaybe; then
  18217. enable_oss=yes
  18218. case "$host" in
  18219. *-*-openbsd*)
  18220. enable_oss=no;;
  18221. esac
  18222. fi
  18223. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18225. printf %s "checking for OSS audio support... " >&6; }
  18226. have_oss=no
  18227. if test x$have_oss != xyes; then
  18228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18229. /* end confdefs.h. */
  18230. #include <sys/soundcard.h>
  18231. int
  18232. main (void)
  18233. {
  18234. int arg = SNDCTL_DSP_SETFRAGMENT;
  18235. ;
  18236. return 0;
  18237. }
  18238. _ACEOF
  18239. if ac_fn_c_try_compile "$LINENO"
  18240. then :
  18241. have_oss=yes
  18242. fi
  18243. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18244. fi
  18245. if test x$have_oss != xyes; then
  18246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18247. /* end confdefs.h. */
  18248. #include <soundcard.h>
  18249. int
  18250. main (void)
  18251. {
  18252. int arg = SNDCTL_DSP_SETFRAGMENT;
  18253. ;
  18254. return 0;
  18255. }
  18256. _ACEOF
  18257. if ac_fn_c_try_compile "$LINENO"
  18258. then :
  18259. have_oss=yes
  18260. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  18261. fi
  18262. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18263. fi
  18264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18265. printf "%s\n" "$have_oss" >&6; }
  18266. if test x$have_oss = xyes; then
  18267. SUMMARY_audio="${SUMMARY_audio} oss"
  18268. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18269. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18270. have_audio=yes
  18271. # We may need to link with ossaudio emulation library
  18272. case "$host" in
  18273. *-*-openbsd*|*-*-netbsd*)
  18274. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18275. esac
  18276. fi
  18277. fi
  18278. }
  18279. CheckALSA()
  18280. {
  18281. # Check whether --enable-alsa was given.
  18282. if test ${enable_alsa+y}
  18283. then :
  18284. enableval=$enable_alsa;
  18285. else $as_nop
  18286. enable_alsa=yes
  18287. fi
  18288. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18289. alsa_save_CFLAGS="$CFLAGS"
  18290. alsa_save_LDFLAGS="$LDFLAGS"
  18291. alsa_save_LIBS="$LIBS"
  18292. alsa_found=yes
  18293. # Check whether --with-alsa-prefix was given.
  18294. if test ${with_alsa_prefix+y}
  18295. then :
  18296. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18297. else $as_nop
  18298. alsa_prefix=""
  18299. fi
  18300. # Check whether --with-alsa-inc-prefix was given.
  18301. if test ${with_alsa_inc_prefix+y}
  18302. then :
  18303. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18304. else $as_nop
  18305. alsa_inc_prefix=""
  18306. fi
  18307. # Check whether --enable-alsatest was given.
  18308. if test ${enable_alsatest+y}
  18309. then :
  18310. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18311. else $as_nop
  18312. enable_alsatest=yes
  18313. fi
  18314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18315. printf %s "checking for ALSA CFLAGS... " >&6; }
  18316. if test "$alsa_inc_prefix" != "" ; then
  18317. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18318. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18319. fi
  18320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18321. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18323. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18324. if test "$alsa_prefix" != "" ; then
  18325. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18326. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18327. fi
  18328. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18329. LIBS=`echo $LIBS | sed 's/-lm//'`
  18330. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18331. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18332. LIBS=`echo $LIBS | sed 's/ //'`
  18333. LIBS="$ALSA_LIBS $LIBS"
  18334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18335. printf "%s\n" "$ALSA_LIBS" >&6; }
  18336. min_alsa_version=1.0.11
  18337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18338. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18339. no_alsa=""
  18340. alsa_min_major_version=`echo $min_alsa_version | \
  18341. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18342. alsa_min_minor_version=`echo $min_alsa_version | \
  18343. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18344. alsa_min_micro_version=`echo $min_alsa_version | \
  18345. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18346. ac_ext=c
  18347. ac_cpp='$CPP $CPPFLAGS'
  18348. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18349. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18350. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18352. /* end confdefs.h. */
  18353. #include <alsa/asoundlib.h>
  18354. int
  18355. main (void)
  18356. {
  18357. /* ensure backward compatibility */
  18358. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18359. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18360. #endif
  18361. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18362. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18363. #endif
  18364. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18365. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18366. #endif
  18367. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18368. exit(0);
  18369. # else
  18370. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18371. # error not present
  18372. # endif
  18373. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18374. exit(0);
  18375. # else
  18376. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18377. # error not present
  18378. # endif
  18379. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18380. # error not present
  18381. # endif
  18382. # endif
  18383. # endif
  18384. exit(0);
  18385. ;
  18386. return 0;
  18387. }
  18388. _ACEOF
  18389. if ac_fn_c_try_compile "$LINENO"
  18390. then :
  18391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18392. printf "%s\n" "found." >&6; }
  18393. else $as_nop
  18394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18395. printf "%s\n" "not present." >&6; }
  18396. alsa_found=no
  18397. fi
  18398. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18399. ac_ext=c
  18400. ac_cpp='$CPP $CPPFLAGS'
  18401. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18402. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18403. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18404. if test "x$enable_alsatest" = "xyes"; then
  18405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18406. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18407. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18408. then :
  18409. printf %s "(cached) " >&6
  18410. else $as_nop
  18411. ac_check_lib_save_LIBS=$LIBS
  18412. LIBS="-lasound $LIBS"
  18413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18414. /* end confdefs.h. */
  18415. /* Override any GCC internal prototype to avoid an error.
  18416. Use char because int might match the return type of a GCC
  18417. builtin and then its argument prototype would still apply. */
  18418. char snd_ctl_open ();
  18419. int
  18420. main (void)
  18421. {
  18422. return snd_ctl_open ();
  18423. ;
  18424. return 0;
  18425. }
  18426. _ACEOF
  18427. if ac_fn_c_try_link "$LINENO"
  18428. then :
  18429. ac_cv_lib_asound_snd_ctl_open=yes
  18430. else $as_nop
  18431. ac_cv_lib_asound_snd_ctl_open=no
  18432. fi
  18433. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18434. conftest$ac_exeext conftest.$ac_ext
  18435. LIBS=$ac_check_lib_save_LIBS
  18436. fi
  18437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18438. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18439. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18440. then :
  18441. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18442. LIBS="-lasound $LIBS"
  18443. else $as_nop
  18444. alsa_found=no
  18445. fi
  18446. fi
  18447. if test "x$alsa_found" = "xyes" ; then
  18448. have_alsa=yes
  18449. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18450. LIBS=`echo $LIBS | sed 's/ //'`
  18451. LIBS="-lasound $LIBS"
  18452. fi
  18453. if test "x$alsa_found" = "xno" ; then
  18454. have_alsa=no
  18455. CFLAGS="$alsa_save_CFLAGS"
  18456. LDFLAGS="$alsa_save_LDFLAGS"
  18457. LIBS="$alsa_save_LIBS"
  18458. ALSA_CFLAGS=""
  18459. ALSA_LIBS=""
  18460. fi
  18461. # Restore all flags from before the ALSA detection runs
  18462. CFLAGS="$alsa_save_CFLAGS"
  18463. LDFLAGS="$alsa_save_LDFLAGS"
  18464. LIBS="$alsa_save_LIBS"
  18465. if test x$have_alsa = xyes; then
  18466. # Check whether --enable-alsa-shared was given.
  18467. if test ${enable_alsa_shared+y}
  18468. then :
  18469. enableval=$enable_alsa_shared;
  18470. else $as_nop
  18471. enable_alsa_shared=yes
  18472. fi
  18473. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18474. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18475. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18476. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18477. if test x$have_loadso != xyes && \
  18478. test x$enable_alsa_shared = xyes; then
  18479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18480. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18481. fi
  18482. if test x$have_loadso = xyes && \
  18483. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18484. echo "-- dynamic libasound -> $alsa_lib"
  18485. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18486. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18487. else
  18488. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18489. SUMMARY_audio="${SUMMARY_audio} alsa"
  18490. fi
  18491. have_audio=yes
  18492. fi
  18493. fi
  18494. }
  18495. CheckJACK()
  18496. {
  18497. # Check whether --enable-jack was given.
  18498. if test ${enable_jack+y}
  18499. then :
  18500. enableval=$enable_jack;
  18501. else $as_nop
  18502. enable_jack=yes
  18503. fi
  18504. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18505. pkg_failed=no
  18506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18507. printf %s "checking for jack >= 0.125... " >&6; }
  18508. if test -n "$JACK_CFLAGS"; then
  18509. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18510. elif test -n "$PKG_CONFIG"; then
  18511. if test -n "$PKG_CONFIG" && \
  18512. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18513. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18514. ac_status=$?
  18515. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18516. test $ac_status = 0; }; then
  18517. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18518. test "x$?" != "x0" && pkg_failed=yes
  18519. else
  18520. pkg_failed=yes
  18521. fi
  18522. else
  18523. pkg_failed=untried
  18524. fi
  18525. if test -n "$JACK_LIBS"; then
  18526. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18527. elif test -n "$PKG_CONFIG"; then
  18528. if test -n "$PKG_CONFIG" && \
  18529. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18530. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18531. ac_status=$?
  18532. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18533. test $ac_status = 0; }; then
  18534. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18535. test "x$?" != "x0" && pkg_failed=yes
  18536. else
  18537. pkg_failed=yes
  18538. fi
  18539. else
  18540. pkg_failed=untried
  18541. fi
  18542. if test $pkg_failed = yes; then
  18543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18544. printf "%s\n" "no" >&6; }
  18545. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18546. _pkg_short_errors_supported=yes
  18547. else
  18548. _pkg_short_errors_supported=no
  18549. fi
  18550. if test $_pkg_short_errors_supported = yes; then
  18551. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18552. else
  18553. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18554. fi
  18555. # Put the nasty error message in config.log where it belongs
  18556. echo "$JACK_PKG_ERRORS" >&5
  18557. audio_jack=no
  18558. elif test $pkg_failed = untried; then
  18559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18560. printf "%s\n" "no" >&6; }
  18561. audio_jack=no
  18562. else
  18563. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18564. JACK_LIBS=$pkg_cv_JACK_LIBS
  18565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18566. printf "%s\n" "yes" >&6; }
  18567. audio_jack=yes
  18568. fi
  18569. if test x$audio_jack = xyes; then
  18570. # Check whether --enable-jack-shared was given.
  18571. if test ${enable_jack_shared+y}
  18572. then :
  18573. enableval=$enable_jack_shared;
  18574. else $as_nop
  18575. enable_jack_shared=yes
  18576. fi
  18577. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18578. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18579. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18580. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18581. if test x$have_loadso != xyes && \
  18582. test x$enable_jack_shared = xyes; then
  18583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18584. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18585. fi
  18586. if test x$have_loadso = xyes && \
  18587. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18588. echo "-- dynamic libjack -> $jack_lib"
  18589. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18590. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18591. case "$host" in
  18592. # On Solaris, jack must be linked deferred explicitly
  18593. # to prevent undefined symbol failures.
  18594. *-*-solaris*)
  18595. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18596. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18597. esac
  18598. else
  18599. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18600. SUMMARY_audio="${SUMMARY_audio} jack"
  18601. fi
  18602. have_audio=yes
  18603. fi
  18604. fi
  18605. }
  18606. CheckESD()
  18607. {
  18608. # Check whether --enable-esd was given.
  18609. if test ${enable_esd+y}
  18610. then :
  18611. enableval=$enable_esd;
  18612. else $as_nop
  18613. enable_esd=yes
  18614. fi
  18615. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18616. pkg_failed=no
  18617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18618. printf %s "checking for esound >= 0.2.8... " >&6; }
  18619. if test -n "$ESD_CFLAGS"; then
  18620. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18621. elif test -n "$PKG_CONFIG"; then
  18622. if test -n "$PKG_CONFIG" && \
  18623. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18624. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18625. ac_status=$?
  18626. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18627. test $ac_status = 0; }; then
  18628. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18629. test "x$?" != "x0" && pkg_failed=yes
  18630. else
  18631. pkg_failed=yes
  18632. fi
  18633. else
  18634. pkg_failed=untried
  18635. fi
  18636. if test -n "$ESD_LIBS"; then
  18637. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18638. elif test -n "$PKG_CONFIG"; then
  18639. if test -n "$PKG_CONFIG" && \
  18640. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18641. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18642. ac_status=$?
  18643. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18644. test $ac_status = 0; }; then
  18645. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18646. test "x$?" != "x0" && pkg_failed=yes
  18647. else
  18648. pkg_failed=yes
  18649. fi
  18650. else
  18651. pkg_failed=untried
  18652. fi
  18653. if test $pkg_failed = yes; then
  18654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18655. printf "%s\n" "no" >&6; }
  18656. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18657. _pkg_short_errors_supported=yes
  18658. else
  18659. _pkg_short_errors_supported=no
  18660. fi
  18661. if test $_pkg_short_errors_supported = yes; then
  18662. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18663. else
  18664. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18665. fi
  18666. # Put the nasty error message in config.log where it belongs
  18667. echo "$ESD_PKG_ERRORS" >&5
  18668. have_esd=no
  18669. elif test $pkg_failed = untried; then
  18670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18671. printf "%s\n" "no" >&6; }
  18672. have_esd=no
  18673. else
  18674. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18675. ESD_LIBS=$pkg_cv_ESD_LIBS
  18676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18677. printf "%s\n" "yes" >&6; }
  18678. have_esd=yes
  18679. fi
  18680. if test x$have_esd = xno; then
  18681. # Check whether --with-esd-prefix was given.
  18682. if test ${with_esd_prefix+y}
  18683. then :
  18684. withval=$with_esd_prefix; esd_prefix="$withval"
  18685. else $as_nop
  18686. esd_prefix=""
  18687. fi
  18688. # Check whether --with-esd-exec-prefix was given.
  18689. if test ${with_esd_exec_prefix+y}
  18690. then :
  18691. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18692. else $as_nop
  18693. esd_exec_prefix=""
  18694. fi
  18695. # Check whether --enable-esdtest was given.
  18696. if test ${enable_esdtest+y}
  18697. then :
  18698. enableval=$enable_esdtest;
  18699. else $as_nop
  18700. enable_esdtest=yes
  18701. fi
  18702. if test x$esd_exec_prefix != x ; then
  18703. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18704. if test x${ESD_CONFIG+set} != xset ; then
  18705. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18706. fi
  18707. fi
  18708. if test x$esd_prefix != x ; then
  18709. esd_args="$esd_args --prefix=$esd_prefix"
  18710. if test x${ESD_CONFIG+set} != xset ; then
  18711. ESD_CONFIG=$esd_prefix/bin/esd-config
  18712. fi
  18713. fi
  18714. # Extract the first word of "esd-config", so it can be a program name with args.
  18715. set dummy esd-config; ac_word=$2
  18716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18717. printf %s "checking for $ac_word... " >&6; }
  18718. if test ${ac_cv_path_ESD_CONFIG+y}
  18719. then :
  18720. printf %s "(cached) " >&6
  18721. else $as_nop
  18722. case $ESD_CONFIG in
  18723. [\\/]* | ?:[\\/]*)
  18724. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18725. ;;
  18726. *)
  18727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18728. for as_dir in $PATH
  18729. do
  18730. IFS=$as_save_IFS
  18731. case $as_dir in #(((
  18732. '') as_dir=./ ;;
  18733. */) ;;
  18734. *) as_dir=$as_dir/ ;;
  18735. esac
  18736. for ac_exec_ext in '' $ac_executable_extensions; do
  18737. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18738. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18739. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18740. break 2
  18741. fi
  18742. done
  18743. done
  18744. IFS=$as_save_IFS
  18745. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18746. ;;
  18747. esac
  18748. fi
  18749. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18750. if test -n "$ESD_CONFIG"; then
  18751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18752. printf "%s\n" "$ESD_CONFIG" >&6; }
  18753. else
  18754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18755. printf "%s\n" "no" >&6; }
  18756. fi
  18757. min_esd_version=0.2.8
  18758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18759. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18760. no_esd=""
  18761. if test "$ESD_CONFIG" = "no" ; then
  18762. no_esd=yes
  18763. else
  18764. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18765. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18766. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18767. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18768. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18769. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18770. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18771. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18772. if test "x$enable_esdtest" = "xyes" ; then
  18773. ac_ext=c
  18774. ac_cpp='$CPP $CPPFLAGS'
  18775. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18776. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18777. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18778. ac_save_CFLAGS="$CFLAGS"
  18779. ac_save_LIBS="$LIBS"
  18780. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18781. LIBS="$LIBS $ESD_LIBS"
  18782. rm -f conf.esdtest
  18783. if test "$cross_compiling" = yes
  18784. then :
  18785. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18786. else $as_nop
  18787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18788. /* end confdefs.h. */
  18789. #include <stdio.h>
  18790. #include <stdlib.h>
  18791. #include <esd.h>
  18792. int main (void)
  18793. {
  18794. int major, minor, micro;
  18795. FILE *fp = fopen("conf.esdtest", "w");
  18796. if (fp) fclose(fp);
  18797. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18798. printf("%s, bad version string\n", "$min_esd_version");
  18799. exit(1);
  18800. }
  18801. if (($esd_major_version > major) ||
  18802. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18803. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18804. {
  18805. return 0;
  18806. }
  18807. else
  18808. {
  18809. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18810. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18811. printf("*** best to upgrade to the required version.\n");
  18812. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18813. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18814. printf("*** config.cache before re-running configure\n");
  18815. return 1;
  18816. }
  18817. }
  18818. _ACEOF
  18819. if ac_fn_c_try_run "$LINENO"
  18820. then :
  18821. else $as_nop
  18822. no_esd=yes
  18823. fi
  18824. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18825. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18826. fi
  18827. CFLAGS="$ac_save_CFLAGS"
  18828. LIBS="$ac_save_LIBS"
  18829. ac_ext=c
  18830. ac_cpp='$CPP $CPPFLAGS'
  18831. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18832. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18833. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18834. fi
  18835. fi
  18836. if test "x$no_esd" = x ; then
  18837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18838. printf "%s\n" "yes" >&6; }
  18839. have_esd=yes
  18840. else
  18841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18842. printf "%s\n" "no" >&6; }
  18843. if test "$ESD_CONFIG" = "no" ; then
  18844. :
  18845. else
  18846. if test -f conf.esdtest ; then
  18847. :
  18848. else
  18849. echo "*** Could not run ESD test program, checking why..."
  18850. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18851. LIBS="$LIBS $ESD_LIBS"
  18852. ac_ext=c
  18853. ac_cpp='$CPP $CPPFLAGS'
  18854. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18855. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18856. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18858. /* end confdefs.h. */
  18859. #include <stdio.h>
  18860. #include <esd.h>
  18861. int
  18862. main (void)
  18863. {
  18864. return 0;
  18865. ;
  18866. return 0;
  18867. }
  18868. _ACEOF
  18869. if ac_fn_c_try_link "$LINENO"
  18870. then :
  18871. echo "*** The test program compiled, but did not run. This usually means"
  18872. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18873. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18874. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18875. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18876. echo "*** is required on your system"
  18877. echo "***"
  18878. echo "*** If you have an old version installed, it is best to remove it, although"
  18879. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18880. else $as_nop
  18881. echo "*** The test program failed to compile or link. See the file config.log for the"
  18882. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18883. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18884. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18885. fi
  18886. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18887. conftest$ac_exeext conftest.$ac_ext
  18888. CFLAGS="$ac_save_CFLAGS"
  18889. LIBS="$ac_save_LIBS"
  18890. ac_ext=c
  18891. ac_cpp='$CPP $CPPFLAGS'
  18892. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18893. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18894. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18895. fi
  18896. fi
  18897. ESD_CFLAGS=""
  18898. ESD_LIBS=""
  18899. have_esd=no
  18900. fi
  18901. rm -f conf.esdtest
  18902. fi
  18903. if test x$have_esd = xyes; then
  18904. # Check whether --enable-esd-shared was given.
  18905. if test ${enable_esd_shared+y}
  18906. then :
  18907. enableval=$enable_esd_shared;
  18908. else $as_nop
  18909. enable_esd_shared=yes
  18910. fi
  18911. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18912. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  18913. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  18914. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  18915. if test x$have_loadso != xyes && \
  18916. test x$enable_esd_shared = xyes; then
  18917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  18918. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  18919. fi
  18920. if test x$have_loadso = xyes && \
  18921. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  18922. echo "-- dynamic libesd -> $esd_lib"
  18923. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  18924. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  18925. else
  18926. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  18927. SUMMARY_audio="${SUMMARY_audio} esd"
  18928. fi
  18929. have_audio=yes
  18930. fi
  18931. fi
  18932. }
  18933. CheckPipewire()
  18934. {
  18935. # Check whether --enable-pipewire was given.
  18936. if test ${enable_pipewire+y}
  18937. then :
  18938. enableval=$enable_pipewire;
  18939. else $as_nop
  18940. enable_pipewire=yes
  18941. fi
  18942. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18943. pkg_failed=no
  18944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18945. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18946. if test -n "$PIPEWIRE_CFLAGS"; then
  18947. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18948. elif test -n "$PKG_CONFIG"; then
  18949. if test -n "$PKG_CONFIG" && \
  18950. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18951. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18952. ac_status=$?
  18953. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18954. test $ac_status = 0; }; then
  18955. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18956. test "x$?" != "x0" && pkg_failed=yes
  18957. else
  18958. pkg_failed=yes
  18959. fi
  18960. else
  18961. pkg_failed=untried
  18962. fi
  18963. if test -n "$PIPEWIRE_LIBS"; then
  18964. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  18965. elif test -n "$PKG_CONFIG"; then
  18966. if test -n "$PKG_CONFIG" && \
  18967. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18968. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18969. ac_status=$?
  18970. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18971. test $ac_status = 0; }; then
  18972. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18973. test "x$?" != "x0" && pkg_failed=yes
  18974. else
  18975. pkg_failed=yes
  18976. fi
  18977. else
  18978. pkg_failed=untried
  18979. fi
  18980. if test $pkg_failed = yes; then
  18981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18982. printf "%s\n" "no" >&6; }
  18983. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18984. _pkg_short_errors_supported=yes
  18985. else
  18986. _pkg_short_errors_supported=no
  18987. fi
  18988. if test $_pkg_short_errors_supported = yes; then
  18989. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18990. else
  18991. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18992. fi
  18993. # Put the nasty error message in config.log where it belongs
  18994. echo "$PIPEWIRE_PKG_ERRORS" >&5
  18995. audio_pipewire=no
  18996. elif test $pkg_failed = untried; then
  18997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18998. printf "%s\n" "no" >&6; }
  18999. audio_pipewire=no
  19000. else
  19001. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19002. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19004. printf "%s\n" "yes" >&6; }
  19005. audio_pipewire=yes
  19006. fi
  19007. if test x$audio_pipewire = xyes; then
  19008. # Check whether --enable-pipewire-shared was given.
  19009. if test ${enable_pipewire_shared+y}
  19010. then :
  19011. enableval=$enable_pipewire_shared;
  19012. else $as_nop
  19013. enable_pipewire_shared=yes
  19014. fi
  19015. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19016. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19017. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19018. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19019. if test x$have_loadso != xyes && \
  19020. test x$enable_pipewire_shared = xyes; then
  19021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19022. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19023. fi
  19024. if test x$have_loadso = xyes && \
  19025. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19026. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19027. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19028. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19029. else
  19030. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19031. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19032. fi
  19033. have_audio=yes
  19034. fi
  19035. fi
  19036. }
  19037. CheckPulseAudio()
  19038. {
  19039. # Check whether --enable-pulseaudio was given.
  19040. if test ${enable_pulseaudio+y}
  19041. then :
  19042. enableval=$enable_pulseaudio;
  19043. else $as_nop
  19044. enable_pulseaudio=yes
  19045. fi
  19046. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19047. pkg_failed=no
  19048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  19049. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  19050. if test -n "$PULSEAUDIO_CFLAGS"; then
  19051. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19052. elif test -n "$PKG_CONFIG"; then
  19053. if test -n "$PKG_CONFIG" && \
  19054. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19055. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19056. ac_status=$?
  19057. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19058. test $ac_status = 0; }; then
  19059. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  19060. test "x$?" != "x0" && pkg_failed=yes
  19061. else
  19062. pkg_failed=yes
  19063. fi
  19064. else
  19065. pkg_failed=untried
  19066. fi
  19067. if test -n "$PULSEAUDIO_LIBS"; then
  19068. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19069. elif test -n "$PKG_CONFIG"; then
  19070. if test -n "$PKG_CONFIG" && \
  19071. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19072. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19073. ac_status=$?
  19074. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19075. test $ac_status = 0; }; then
  19076. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  19077. test "x$?" != "x0" && pkg_failed=yes
  19078. else
  19079. pkg_failed=yes
  19080. fi
  19081. else
  19082. pkg_failed=untried
  19083. fi
  19084. if test $pkg_failed = yes; then
  19085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19086. printf "%s\n" "no" >&6; }
  19087. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19088. _pkg_short_errors_supported=yes
  19089. else
  19090. _pkg_short_errors_supported=no
  19091. fi
  19092. if test $_pkg_short_errors_supported = yes; then
  19093. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19094. else
  19095. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19096. fi
  19097. # Put the nasty error message in config.log where it belongs
  19098. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19099. audio_pulseaudio=no
  19100. elif test $pkg_failed = untried; then
  19101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19102. printf "%s\n" "no" >&6; }
  19103. audio_pulseaudio=no
  19104. else
  19105. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19106. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19108. printf "%s\n" "yes" >&6; }
  19109. audio_pulseaudio=yes
  19110. fi
  19111. if test x$audio_pulseaudio = xyes; then
  19112. # Check whether --enable-pulseaudio-shared was given.
  19113. if test ${enable_pulseaudio_shared+y}
  19114. then :
  19115. enableval=$enable_pulseaudio_shared;
  19116. else $as_nop
  19117. enable_pulseaudio_shared=yes
  19118. fi
  19119. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19120. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19121. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19122. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19123. if test x$have_loadso != xyes && \
  19124. test x$enable_pulseaudio_shared = xyes; then
  19125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19126. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19127. fi
  19128. if test x$have_loadso = xyes && \
  19129. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19130. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  19131. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19132. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19133. case "$host" in
  19134. # On Solaris, pulseaudio must be linked deferred explicitly
  19135. # to prevent undefined symbol failures.
  19136. *-*-solaris*)
  19137. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19138. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19139. esac
  19140. else
  19141. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19142. SUMMARY_audio="${SUMMARY_audio} pulse"
  19143. fi
  19144. have_audio=yes
  19145. fi
  19146. fi
  19147. }
  19148. CheckARTSC()
  19149. {
  19150. # Check whether --enable-arts was given.
  19151. if test ${enable_arts+y}
  19152. then :
  19153. enableval=$enable_arts;
  19154. else $as_nop
  19155. enable_arts=yes
  19156. fi
  19157. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19158. # Extract the first word of "artsc-config", so it can be a program name with args.
  19159. set dummy artsc-config; ac_word=$2
  19160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19161. printf %s "checking for $ac_word... " >&6; }
  19162. if test ${ac_cv_path_ARTSCONFIG+y}
  19163. then :
  19164. printf %s "(cached) " >&6
  19165. else $as_nop
  19166. case $ARTSCONFIG in
  19167. [\\/]* | ?:[\\/]*)
  19168. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19169. ;;
  19170. *)
  19171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19172. for as_dir in $PATH
  19173. do
  19174. IFS=$as_save_IFS
  19175. case $as_dir in #(((
  19176. '') as_dir=./ ;;
  19177. */) ;;
  19178. *) as_dir=$as_dir/ ;;
  19179. esac
  19180. for ac_exec_ext in '' $ac_executable_extensions; do
  19181. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19182. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19183. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19184. break 2
  19185. fi
  19186. done
  19187. done
  19188. IFS=$as_save_IFS
  19189. ;;
  19190. esac
  19191. fi
  19192. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19193. if test -n "$ARTSCONFIG"; then
  19194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19195. printf "%s\n" "$ARTSCONFIG" >&6; }
  19196. else
  19197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19198. printf "%s\n" "no" >&6; }
  19199. fi
  19200. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19201. : # arts isn't installed
  19202. else
  19203. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19204. ARTS_LIBS=`$ARTSCONFIG --libs`
  19205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19206. printf %s "checking for aRts development environment... " >&6; }
  19207. audio_arts=no
  19208. save_CFLAGS="$CFLAGS"
  19209. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19211. /* end confdefs.h. */
  19212. #include <artsc.h>
  19213. int
  19214. main (void)
  19215. {
  19216. arts_stream_t stream;
  19217. ;
  19218. return 0;
  19219. }
  19220. _ACEOF
  19221. if ac_fn_c_try_compile "$LINENO"
  19222. then :
  19223. audio_arts=yes
  19224. fi
  19225. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19226. CFLAGS="$save_CFLAGS"
  19227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19228. printf "%s\n" "$audio_arts" >&6; }
  19229. if test x$audio_arts = xyes; then
  19230. # Check whether --enable-arts-shared was given.
  19231. if test ${enable_arts_shared+y}
  19232. then :
  19233. enableval=$enable_arts_shared;
  19234. else $as_nop
  19235. enable_arts_shared=yes
  19236. fi
  19237. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19238. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19239. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19240. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19241. if test x$have_loadso != xyes && \
  19242. test x$enable_arts_shared = xyes; then
  19243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19244. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19245. fi
  19246. if test x$have_loadso = xyes && \
  19247. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19248. echo "-- dynamic libartsc -> $arts_lib"
  19249. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19250. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19251. else
  19252. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19253. SUMMARY_audio="${SUMMARY_audio} arts"
  19254. fi
  19255. have_audio=yes
  19256. fi
  19257. fi
  19258. fi
  19259. }
  19260. CheckNAS()
  19261. {
  19262. # Check whether --enable-nas was given.
  19263. if test ${enable_nas+y}
  19264. then :
  19265. enableval=$enable_nas;
  19266. else $as_nop
  19267. enable_nas=yes
  19268. fi
  19269. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19270. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19271. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19272. then :
  19273. have_nas_hdr=yes
  19274. fi
  19275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19276. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19277. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19278. then :
  19279. printf %s "(cached) " >&6
  19280. else $as_nop
  19281. ac_check_lib_save_LIBS=$LIBS
  19282. LIBS="-laudio $LIBS"
  19283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19284. /* end confdefs.h. */
  19285. /* Override any GCC internal prototype to avoid an error.
  19286. Use char because int might match the return type of a GCC
  19287. builtin and then its argument prototype would still apply. */
  19288. char AuOpenServer ();
  19289. int
  19290. main (void)
  19291. {
  19292. return AuOpenServer ();
  19293. ;
  19294. return 0;
  19295. }
  19296. _ACEOF
  19297. if ac_fn_c_try_link "$LINENO"
  19298. then :
  19299. ac_cv_lib_audio_AuOpenServer=yes
  19300. else $as_nop
  19301. ac_cv_lib_audio_AuOpenServer=no
  19302. fi
  19303. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19304. conftest$ac_exeext conftest.$ac_ext
  19305. LIBS=$ac_check_lib_save_LIBS
  19306. fi
  19307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19308. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19309. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19310. then :
  19311. have_nas_lib=yes
  19312. fi
  19313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19314. printf %s "checking for NAS audio support... " >&6; }
  19315. have_nas=no
  19316. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19317. have_nas=yes
  19318. NAS_LIBS="-laudio"
  19319. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19320. have_nas=yes
  19321. NAS_CFLAGS="-I/usr/X11R6/include/"
  19322. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19323. fi
  19324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19325. printf "%s\n" "$have_nas" >&6; }
  19326. if test x$have_nas = xyes; then
  19327. # Check whether --enable-nas-shared was given.
  19328. if test ${enable_nas_shared+y}
  19329. then :
  19330. enableval=$enable_nas_shared;
  19331. else $as_nop
  19332. enable_nas_shared=yes
  19333. fi
  19334. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19335. if test x$have_loadso != xyes && \
  19336. test x$enable_nas_shared = xyes; then
  19337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19338. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19339. fi
  19340. if test x$have_loadso = xyes && \
  19341. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19342. echo "-- dynamic libaudio -> $nas_lib"
  19343. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19344. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19345. else
  19346. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19347. SUMMARY_audio="${SUMMARY_audio} nas"
  19348. fi
  19349. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19350. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19351. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19352. have_audio=yes
  19353. fi
  19354. fi
  19355. }
  19356. CheckSNDIO()
  19357. {
  19358. # Check whether --enable-sndio was given.
  19359. if test ${enable_sndio+y}
  19360. then :
  19361. enableval=$enable_sndio;
  19362. else $as_nop
  19363. enable_sndio=yes
  19364. fi
  19365. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19366. ac_fn_c_check_header_compile "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  19367. if test "x$ac_cv_header_sndio_h" = xyes
  19368. then :
  19369. have_sndio_hdr=yes
  19370. fi
  19371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  19372. printf %s "checking for sio_open in -lsndio... " >&6; }
  19373. if test ${ac_cv_lib_sndio_sio_open+y}
  19374. then :
  19375. printf %s "(cached) " >&6
  19376. else $as_nop
  19377. ac_check_lib_save_LIBS=$LIBS
  19378. LIBS="-lsndio $LIBS"
  19379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19380. /* end confdefs.h. */
  19381. /* Override any GCC internal prototype to avoid an error.
  19382. Use char because int might match the return type of a GCC
  19383. builtin and then its argument prototype would still apply. */
  19384. char sio_open ();
  19385. int
  19386. main (void)
  19387. {
  19388. return sio_open ();
  19389. ;
  19390. return 0;
  19391. }
  19392. _ACEOF
  19393. if ac_fn_c_try_link "$LINENO"
  19394. then :
  19395. ac_cv_lib_sndio_sio_open=yes
  19396. else $as_nop
  19397. ac_cv_lib_sndio_sio_open=no
  19398. fi
  19399. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19400. conftest$ac_exeext conftest.$ac_ext
  19401. LIBS=$ac_check_lib_save_LIBS
  19402. fi
  19403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  19404. printf "%s\n" "$ac_cv_lib_sndio_sio_open" >&6; }
  19405. if test "x$ac_cv_lib_sndio_sio_open" = xyes
  19406. then :
  19407. have_sndio_lib=yes
  19408. fi
  19409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  19410. printf %s "checking for sndio audio support... " >&6; }
  19411. have_sndio=no
  19412. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  19413. have_sndio=yes
  19414. SNDIO_LIBS="-lsndio"
  19415. fi
  19416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  19417. printf "%s\n" "$have_sndio" >&6; }
  19418. if test x$have_sndio = xyes; then
  19419. # Check whether --enable-sndio-shared was given.
  19420. if test ${enable_sndio_shared+y}
  19421. then :
  19422. enableval=$enable_sndio_shared;
  19423. else $as_nop
  19424. enable_sndio_shared=yes
  19425. fi
  19426. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19427. if test x$have_loadso != xyes && \
  19428. test x$enable_sndio_shared = xyes; then
  19429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19430. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19431. fi
  19432. if test x$have_loadso = xyes && \
  19433. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19434. echo "-- dynamic libsndio -> $sndio_lib"
  19435. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19436. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19437. else
  19438. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19439. SUMMARY_audio="${SUMMARY_audio} sndio"
  19440. fi
  19441. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19442. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19443. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19444. have_audio=yes
  19445. fi
  19446. fi
  19447. }
  19448. CheckFusionSound()
  19449. {
  19450. # Check whether --enable-fusionsound was given.
  19451. if test ${enable_fusionsound+y}
  19452. then :
  19453. enableval=$enable_fusionsound;
  19454. else $as_nop
  19455. enable_fusionsound=no
  19456. fi
  19457. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19458. pkg_failed=no
  19459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19460. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19461. if test -n "$FUSIONSOUND_CFLAGS"; then
  19462. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19463. elif test -n "$PKG_CONFIG"; then
  19464. if test -n "$PKG_CONFIG" && \
  19465. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19466. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19467. ac_status=$?
  19468. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19469. test $ac_status = 0; }; then
  19470. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19471. test "x$?" != "x0" && pkg_failed=yes
  19472. else
  19473. pkg_failed=yes
  19474. fi
  19475. else
  19476. pkg_failed=untried
  19477. fi
  19478. if test -n "$FUSIONSOUND_LIBS"; then
  19479. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19480. elif test -n "$PKG_CONFIG"; then
  19481. if test -n "$PKG_CONFIG" && \
  19482. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19483. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19484. ac_status=$?
  19485. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19486. test $ac_status = 0; }; then
  19487. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19488. test "x$?" != "x0" && pkg_failed=yes
  19489. else
  19490. pkg_failed=yes
  19491. fi
  19492. else
  19493. pkg_failed=untried
  19494. fi
  19495. if test $pkg_failed = yes; then
  19496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19497. printf "%s\n" "no" >&6; }
  19498. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19499. _pkg_short_errors_supported=yes
  19500. else
  19501. _pkg_short_errors_supported=no
  19502. fi
  19503. if test $_pkg_short_errors_supported = yes; then
  19504. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19505. else
  19506. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19507. fi
  19508. # Put the nasty error message in config.log where it belongs
  19509. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19510. fusionsound=no
  19511. elif test $pkg_failed = untried; then
  19512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19513. printf "%s\n" "no" >&6; }
  19514. fusionsound=no
  19515. else
  19516. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19517. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19519. printf "%s\n" "yes" >&6; }
  19520. fusionsound=yes
  19521. fi
  19522. if test x$fusionsound = xyes; then
  19523. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19524. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19525. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19526. # Check whether --enable-fusionsound-shared was given.
  19527. if test ${enable_fusionsound_shared+y}
  19528. then :
  19529. enableval=$enable_fusionsound_shared;
  19530. else $as_nop
  19531. enable_fusionsound_shared=yes
  19532. fi
  19533. fusionsound_shared=no
  19534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19535. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19536. if test x$have_loadso != xyes && \
  19537. test x$enable_fusionsound_shared = xyes; then
  19538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19539. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19540. fi
  19541. if test x$have_loadso = xyes && \
  19542. test x$enable_fusionsound_shared = xyes; then
  19543. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19544. fusionsound_shared=yes
  19545. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19546. else
  19547. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19548. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19549. fi
  19550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19551. printf "%s\n" "$fusionsound_shared" >&6; }
  19552. have_audio=yes
  19553. fi
  19554. fi
  19555. }
  19556. CheckDiskAudio()
  19557. {
  19558. # Check whether --enable-diskaudio was given.
  19559. if test ${enable_diskaudio+y}
  19560. then :
  19561. enableval=$enable_diskaudio;
  19562. else $as_nop
  19563. enable_diskaudio=yes
  19564. fi
  19565. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19566. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19567. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19568. SUMMARY_audio="${SUMMARY_audio} disk"
  19569. have_audio=yes
  19570. fi
  19571. }
  19572. CheckDummyAudio()
  19573. {
  19574. # Check whether --enable-dummyaudio was given.
  19575. if test ${enable_dummyaudio+y}
  19576. then :
  19577. enableval=$enable_dummyaudio;
  19578. else $as_nop
  19579. enable_dummyaudio=yes
  19580. fi
  19581. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19582. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19583. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19584. SUMMARY_audio="${SUMMARY_audio} dummy"
  19585. have_audio=yes
  19586. fi
  19587. }
  19588. CheckLibSampleRate()
  19589. {
  19590. # Check whether --enable-libsamplerate was given.
  19591. if test ${enable_libsamplerate+y}
  19592. then :
  19593. enableval=$enable_libsamplerate;
  19594. else $as_nop
  19595. enable_libsamplerate=yes
  19596. fi
  19597. if test x$enable_libsamplerate = xyes; then
  19598. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19599. if test "x$ac_cv_header_samplerate_h" = xyes
  19600. then :
  19601. have_samplerate_h_hdr=yes
  19602. else $as_nop
  19603. have_samplerate_h_hdr=no
  19604. fi
  19605. if test x$have_samplerate_h_hdr = xyes; then
  19606. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19607. # Check whether --enable-libsamplerate-shared was given.
  19608. if test ${enable_libsamplerate_shared+y}
  19609. then :
  19610. enableval=$enable_libsamplerate_shared;
  19611. else $as_nop
  19612. enable_libsamplerate_shared=yes
  19613. fi
  19614. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19615. if test x$have_loadso != xyes && \
  19616. test x$enable_libsamplerate_shared = xyes; then
  19617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19618. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19619. fi
  19620. if test x$have_loadso = xyes && \
  19621. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19622. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19623. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19624. else
  19625. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19626. fi
  19627. fi
  19628. fi
  19629. }
  19630. CheckARM()
  19631. {
  19632. # Check whether --enable-arm-simd was given.
  19633. if test ${enable_arm_simd+y}
  19634. then :
  19635. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19636. else $as_nop
  19637. enable_arm_simd=no
  19638. fi
  19639. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19640. save_CFLAGS="$CFLAGS"
  19641. have_arm_simd=no
  19642. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19644. printf %s "checking for ARM SIMD... " >&6; }
  19645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19646. /* end confdefs.h. */
  19647. .text
  19648. .arch armv6
  19649. .object_arch armv4
  19650. .arm
  19651. .altmacro
  19652. #ifndef __ARM_EABI__
  19653. #error EABI is required (to be sure that calling conventions are compatible)
  19654. #endif
  19655. pld [r0]
  19656. uqadd8 r0, r0, r0
  19657. _ACEOF
  19658. if ac_fn_c_try_compile "$LINENO"
  19659. then :
  19660. have_arm_simd=yes
  19661. fi
  19662. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19664. printf "%s\n" "$have_arm_simd" >&6; }
  19665. CFLAGS="$save_CFLAGS"
  19666. if test x$have_arm_simd = xyes; then
  19667. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19668. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19669. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19670. fi
  19671. fi
  19672. }
  19673. CheckNEON()
  19674. {
  19675. # Check whether --enable-arm-neon was given.
  19676. if test ${enable_arm_neon+y}
  19677. then :
  19678. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19679. else $as_nop
  19680. enable_arm_neon=no
  19681. fi
  19682. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19683. save_CFLAGS="$CFLAGS"
  19684. have_arm_neon=no
  19685. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19687. printf %s "checking for ARM NEON... " >&6; }
  19688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19689. /* end confdefs.h. */
  19690. .text
  19691. .fpu neon
  19692. .arch armv7a
  19693. .object_arch armv4
  19694. .eabi_attribute 10, 0
  19695. .arm
  19696. .altmacro
  19697. #ifndef __ARM_EABI__
  19698. #error EABI is required (to be sure that calling conventions are compatible)
  19699. #endif
  19700. pld [r0]
  19701. vmovn.u16 d0, q0
  19702. _ACEOF
  19703. if ac_fn_c_try_compile "$LINENO"
  19704. then :
  19705. have_arm_neon=yes
  19706. fi
  19707. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19709. printf "%s\n" "$have_arm_neon" >&6; }
  19710. CFLAGS="$save_CFLAGS"
  19711. if test x$have_arm_neon = xyes; then
  19712. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19713. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19714. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19715. fi
  19716. fi
  19717. }
  19718. CheckObjectiveCARC()
  19719. {
  19720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19721. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19722. have_clang_objc_arc=no
  19723. save_CFLAGS="$CFLAGS"
  19724. CFLAGS="$save_CFLAGS -fobjc-arc"
  19725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19726. /* end confdefs.h. */
  19727. int x = 0;
  19728. int
  19729. main (void)
  19730. {
  19731. ;
  19732. return 0;
  19733. }
  19734. _ACEOF
  19735. if ac_fn_c_try_compile "$LINENO"
  19736. then :
  19737. have_clang_objc_arc=yes
  19738. fi
  19739. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19741. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19742. CFLAGS="$save_CFLAGS"
  19743. if test x$have_clang_objc_arc = xyes; then
  19744. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19745. fi
  19746. }
  19747. CheckGDwarf4()
  19748. {
  19749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19750. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19751. have_gcc_gdwarf4=no
  19752. save_CFLAGS="$CFLAGS"
  19753. CFLAGS="$save_CFLAGS -gdwarf-4"
  19754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19755. /* end confdefs.h. */
  19756. int x = 0;
  19757. int
  19758. main (void)
  19759. {
  19760. ;
  19761. return 0;
  19762. }
  19763. _ACEOF
  19764. if ac_fn_c_try_compile "$LINENO"
  19765. then :
  19766. have_gcc_gdwarf4=yes
  19767. fi
  19768. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19770. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19771. CFLAGS="$save_CFLAGS"
  19772. if test x$have_gcc_gdwarf4 = xyes; then
  19773. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19774. fi
  19775. }
  19776. CheckVisibilityHidden()
  19777. {
  19778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19779. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19780. have_gcc_fvisibility=no
  19781. visibility_CFLAGS="-fvisibility=hidden"
  19782. save_CFLAGS="$CFLAGS"
  19783. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19785. /* end confdefs.h. */
  19786. #if !defined(__GNUC__) || __GNUC__ < 4
  19787. #error SDL only uses visibility attributes in GCC 4 or newer
  19788. #endif
  19789. int
  19790. main (void)
  19791. {
  19792. ;
  19793. return 0;
  19794. }
  19795. _ACEOF
  19796. if ac_fn_c_try_compile "$LINENO"
  19797. then :
  19798. have_gcc_fvisibility=yes
  19799. fi
  19800. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19802. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19803. CFLAGS="$save_CFLAGS"
  19804. if test x$have_gcc_fvisibility = xyes; then
  19805. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19806. fi
  19807. }
  19808. CheckNoStrictAliasing()
  19809. {
  19810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19811. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19812. have_gcc_no_strict_aliasing=no
  19813. save_CFLAGS="$CFLAGS"
  19814. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19816. /* end confdefs.h. */
  19817. int x = 0;
  19818. int
  19819. main (void)
  19820. {
  19821. ;
  19822. return 0;
  19823. }
  19824. _ACEOF
  19825. if ac_fn_c_try_compile "$LINENO"
  19826. then :
  19827. have_gcc_no_strict_aliasing=yes
  19828. fi
  19829. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19831. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19832. CFLAGS="$save_CFLAGS"
  19833. if test x$have_gcc_no_strict_aliasing = xyes; then
  19834. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19835. fi
  19836. }
  19837. CheckStackBoundary()
  19838. {
  19839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19840. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19841. have_gcc_preferred_stack_boundary=no
  19842. save_CFLAGS="$CFLAGS"
  19843. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  19844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19845. /* end confdefs.h. */
  19846. int x = 0;
  19847. int
  19848. main (void)
  19849. {
  19850. ;
  19851. return 0;
  19852. }
  19853. _ACEOF
  19854. if ac_fn_c_try_compile "$LINENO"
  19855. then :
  19856. have_gcc_preferred_stack_boundary=yes
  19857. fi
  19858. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  19860. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19861. CFLAGS="$save_CFLAGS"
  19862. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19863. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19864. fi
  19865. }
  19866. CheckDeclarationAfterStatement()
  19867. {
  19868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19869. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19870. have_gcc_declaration_after_statement=no
  19871. save_CFLAGS="$CFLAGS"
  19872. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19874. /* end confdefs.h. */
  19875. int x = 0;
  19876. int
  19877. main (void)
  19878. {
  19879. ;
  19880. return 0;
  19881. }
  19882. _ACEOF
  19883. if ac_fn_c_try_compile "$LINENO"
  19884. then :
  19885. have_gcc_declaration_after_statement=yes
  19886. fi
  19887. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19889. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19890. CFLAGS="$save_CFLAGS"
  19891. if test x$have_gcc_declaration_after_statement = xyes; then
  19892. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19893. fi
  19894. }
  19895. CheckWarnAll()
  19896. {
  19897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19898. printf %s "checking for GCC -Wall option... " >&6; }
  19899. have_gcc_Wall=no
  19900. save_CFLAGS="$CFLAGS"
  19901. CFLAGS="$save_CFLAGS -Wall"
  19902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19903. /* end confdefs.h. */
  19904. int x = 0;
  19905. int
  19906. main (void)
  19907. {
  19908. ;
  19909. return 0;
  19910. }
  19911. _ACEOF
  19912. if ac_fn_c_try_compile "$LINENO"
  19913. then :
  19914. have_gcc_Wall=yes
  19915. fi
  19916. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19918. printf "%s\n" "$have_gcc_Wall" >&6; }
  19919. CFLAGS="$save_CFLAGS"
  19920. if test x$have_gcc_Wall = xyes; then
  19921. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19923. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19924. need_gcc_Wno_multichar=no
  19925. case "$host" in
  19926. *-*-haiku*)
  19927. need_gcc_Wno_multichar=yes
  19928. ;;
  19929. esac
  19930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  19931. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  19932. if test x$need_gcc_Wno_multichar = xyes; then
  19933. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  19934. fi
  19935. fi
  19936. }
  19937. CheckWayland()
  19938. {
  19939. # Check whether --enable-video-wayland was given.
  19940. if test ${enable_video_wayland+y}
  19941. then :
  19942. enableval=$enable_video_wayland;
  19943. else $as_nop
  19944. enable_video_wayland=yes
  19945. fi
  19946. # Check whether --enable-video-wayland-qt-touch was given.
  19947. if test ${enable_video_wayland_qt_touch+y}
  19948. then :
  19949. enableval=$enable_video_wayland_qt_touch;
  19950. else $as_nop
  19951. enable_video_wayland_qt_touch=yes
  19952. fi
  19953. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  19954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  19955. printf %s "checking for Wayland support... " >&6; }
  19956. video_wayland=no
  19957. if test x$video_opengl_egl = xyes && \
  19958. test x$video_opengles_v2 = xyes; then
  19959. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  19960. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  19961. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  19962. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  19963. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  19964. then :
  19965. WAYLAND_SCANNER_CODE_MODE=private-code
  19966. else $as_nop
  19967. WAYLAND_SCANNER_CODE_MODE=code
  19968. fi
  19969. video_wayland=yes
  19970. fi
  19971. fi
  19972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  19973. printf "%s\n" "$video_wayland" >&6; }
  19974. if test x$video_wayland = xyes; then
  19975. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  19976. if test x$enable_video_wayland_qt_touch = xyes; then
  19977. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  19978. fi
  19979. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  19980. SOURCES="$SOURCES $WAYLAND_SOURCES"
  19981. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  19982. # Check whether --enable-wayland-shared was given.
  19983. if test ${enable_wayland_shared+y}
  19984. then :
  19985. enableval=$enable_wayland_shared;
  19986. else $as_nop
  19987. enable_wayland_shared=maybe
  19988. fi
  19989. case "$host" in
  19990. *)
  19991. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19992. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19993. if test x$wayland_egl_lib = x; then
  19994. # This works in Ubuntu 13.10, maybe others
  19995. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19996. fi
  19997. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19998. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19999. ;;
  20000. esac
  20001. if test x$enable_wayland_shared = xmaybe; then
  20002. enable_wayland_shared=yes
  20003. fi
  20004. if test x$have_loadso != xyes && \
  20005. test x$enable_wayland_shared = xyes; then
  20006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20007. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20008. enable_wayland_shared=no
  20009. fi
  20010. if test x$have_loadso = xyes && \
  20011. test x$enable_wayland_shared = xyes && \
  20012. test x$wayland_client_lib != x && \
  20013. test x$wayland_egl_lib != x && \
  20014. test x$wayland_cursor_lib != x && \
  20015. test x$xkbcommon_lib != x; then
  20016. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20017. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20018. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20019. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20020. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20021. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20022. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20023. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20024. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20025. else
  20026. enable_wayland_shared=no
  20027. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20028. SUMMARY_video="${SUMMARY_video} wayland"
  20029. fi
  20030. have_video=yes
  20031. # Check whether --enable-libdecor was given.
  20032. if test ${enable_libdecor+y}
  20033. then :
  20034. enableval=$enable_libdecor;
  20035. else $as_nop
  20036. enable_libdecor=yes
  20037. fi
  20038. if test x$enable_libdecor = xyes; then
  20039. pkg_failed=no
  20040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20041. printf %s "checking for libdecor-0... " >&6; }
  20042. if test -n "$DECOR_CFLAGS"; then
  20043. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20044. elif test -n "$PKG_CONFIG"; then
  20045. if test -n "$PKG_CONFIG" && \
  20046. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20047. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20048. ac_status=$?
  20049. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20050. test $ac_status = 0; }; then
  20051. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20052. test "x$?" != "x0" && pkg_failed=yes
  20053. else
  20054. pkg_failed=yes
  20055. fi
  20056. else
  20057. pkg_failed=untried
  20058. fi
  20059. if test -n "$DECOR_LIBS"; then
  20060. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20061. elif test -n "$PKG_CONFIG"; then
  20062. if test -n "$PKG_CONFIG" && \
  20063. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20064. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20065. ac_status=$?
  20066. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20067. test $ac_status = 0; }; then
  20068. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20069. test "x$?" != "x0" && pkg_failed=yes
  20070. else
  20071. pkg_failed=yes
  20072. fi
  20073. else
  20074. pkg_failed=untried
  20075. fi
  20076. if test $pkg_failed = yes; then
  20077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20078. printf "%s\n" "no" >&6; }
  20079. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20080. _pkg_short_errors_supported=yes
  20081. else
  20082. _pkg_short_errors_supported=no
  20083. fi
  20084. if test $_pkg_short_errors_supported = yes; then
  20085. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20086. else
  20087. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20088. fi
  20089. # Put the nasty error message in config.log where it belongs
  20090. echo "$DECOR_PKG_ERRORS" >&5
  20091. video_libdecor=no
  20092. elif test $pkg_failed = untried; then
  20093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20094. printf "%s\n" "no" >&6; }
  20095. video_libdecor=no
  20096. else
  20097. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20098. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20100. printf "%s\n" "yes" >&6; }
  20101. video_libdecor=yes
  20102. fi
  20103. if test x$video_libdecor = xyes; then
  20104. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20105. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20106. # Check whether --enable-libdecor-shared was given.
  20107. if test ${enable_libdecor_shared+y}
  20108. then :
  20109. enableval=$enable_libdecor_shared;
  20110. else $as_nop
  20111. enable_libdecor_shared=yes
  20112. fi
  20113. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20114. if test x$enable_wayland_shared != xyes; then
  20115. enable_libdecor_shared=no
  20116. fi
  20117. if test x$have_loadso != xyes && \
  20118. test x$enable_libdecor_shared = xyes; then
  20119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20120. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20121. fi
  20122. if test x$have_loadso = xyes && \
  20123. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20124. echo "-- dynamic libdecor -> $decor_lib"
  20125. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20126. else
  20127. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20128. fi
  20129. fi
  20130. fi
  20131. fi
  20132. fi
  20133. }
  20134. CheckNativeClient()
  20135. {
  20136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20137. /* end confdefs.h. */
  20138. #if !defined(__native_client__)
  20139. #error "NO NACL"
  20140. #endif
  20141. int
  20142. main (void)
  20143. {
  20144. ;
  20145. return 0;
  20146. }
  20147. _ACEOF
  20148. if ac_fn_c_try_compile "$LINENO"
  20149. then :
  20150. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20151. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20152. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20153. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20154. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20155. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20156. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20157. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20158. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20159. SUMMARY_audio="${SUMMARY_audio} nacl"
  20160. have_audio=yes
  20161. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20162. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20163. have_video=yes
  20164. fi
  20165. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20166. }
  20167. CheckRPI()
  20168. {
  20169. # Check whether --enable-video-rpi was given.
  20170. if test ${enable_video_rpi+y}
  20171. then :
  20172. enableval=$enable_video_rpi;
  20173. else $as_nop
  20174. enable_video_rpi=yes
  20175. fi
  20176. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20177. pkg_failed=no
  20178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20179. printf %s "checking for bcm_host brcmegl... " >&6; }
  20180. if test -n "$RPI_CFLAGS"; then
  20181. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20182. elif test -n "$PKG_CONFIG"; then
  20183. if test -n "$PKG_CONFIG" && \
  20184. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20185. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20186. ac_status=$?
  20187. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20188. test $ac_status = 0; }; then
  20189. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20190. test "x$?" != "x0" && pkg_failed=yes
  20191. else
  20192. pkg_failed=yes
  20193. fi
  20194. else
  20195. pkg_failed=untried
  20196. fi
  20197. if test -n "$RPI_LIBS"; then
  20198. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20199. elif test -n "$PKG_CONFIG"; then
  20200. if test -n "$PKG_CONFIG" && \
  20201. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20202. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20203. ac_status=$?
  20204. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20205. test $ac_status = 0; }; then
  20206. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  20207. test "x$?" != "x0" && pkg_failed=yes
  20208. else
  20209. pkg_failed=yes
  20210. fi
  20211. else
  20212. pkg_failed=untried
  20213. fi
  20214. if test $pkg_failed = yes; then
  20215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20216. printf "%s\n" "no" >&6; }
  20217. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20218. _pkg_short_errors_supported=yes
  20219. else
  20220. _pkg_short_errors_supported=no
  20221. fi
  20222. if test $_pkg_short_errors_supported = yes; then
  20223. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20224. else
  20225. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20226. fi
  20227. # Put the nasty error message in config.log where it belongs
  20228. echo "$RPI_PKG_ERRORS" >&5
  20229. video_rpi=no
  20230. elif test $pkg_failed = untried; then
  20231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20232. printf "%s\n" "no" >&6; }
  20233. video_rpi=no
  20234. else
  20235. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20236. RPI_LIBS=$pkg_cv_RPI_LIBS
  20237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20238. printf "%s\n" "yes" >&6; }
  20239. video_rpi=yes
  20240. fi
  20241. if test x$video_rpi = xno; then
  20242. if test x$ARCH = xnetbsd; then
  20243. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20244. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20245. else
  20246. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20247. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20248. fi
  20249. fi
  20250. # Save the original compiler flags and libraries
  20251. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20252. # Add the Raspberry Pi compiler flags and libraries
  20253. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20255. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20256. have_video_rpi=no
  20257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20258. /* end confdefs.h. */
  20259. #include <bcm_host.h>
  20260. #include <EGL/eglplatform.h>
  20261. int
  20262. main (void)
  20263. {
  20264. EGL_DISPMANX_WINDOW_T window;
  20265. bcm_host_init();
  20266. ;
  20267. return 0;
  20268. }
  20269. _ACEOF
  20270. if ac_fn_c_try_link "$LINENO"
  20271. then :
  20272. have_video_rpi=yes
  20273. fi
  20274. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20275. conftest$ac_exeext conftest.$ac_ext
  20276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20277. printf "%s\n" "$have_video_rpi" >&6; }
  20278. # Restore the compiler flags and libraries
  20279. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20280. if test x$have_video_rpi = xyes; then
  20281. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20282. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20283. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20284. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20285. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20286. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20287. SUMMARY_video="${SUMMARY_video} rpi"
  20288. have_video=yes
  20289. fi
  20290. fi
  20291. }
  20292. CheckX11()
  20293. {
  20294. # Check whether --enable-video-x11 was given.
  20295. if test ${enable_video_x11+y}
  20296. then :
  20297. enableval=$enable_video_x11;
  20298. else $as_nop
  20299. enable_video_x11=yes
  20300. fi
  20301. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20302. case "$host" in
  20303. *-*-darwin*)
  20304. # This isn't necessary for X11, but fixes GLX detection
  20305. if test "x$x_includes" = xNONE && \
  20306. test "x$x_libraries" = xNONE && \
  20307. test -d /opt/X11/include && \
  20308. test -d /opt/X11/lib; then
  20309. x_includes="/opt/X11/include"
  20310. x_libraries="/opt/X11/lib"
  20311. fi
  20312. ;;
  20313. esac
  20314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20315. printf %s "checking for X... " >&6; }
  20316. # Check whether --with-x was given.
  20317. if test ${with_x+y}
  20318. then :
  20319. withval=$with_x;
  20320. fi
  20321. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20322. if test "x$with_x" = xno; then
  20323. # The user explicitly disabled X.
  20324. have_x=disabled
  20325. else
  20326. case $x_includes,$x_libraries in #(
  20327. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20328. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20329. then :
  20330. printf %s "(cached) " >&6
  20331. else $as_nop
  20332. # One or both of the vars are not set, and there is no cached value.
  20333. ac_x_includes=no
  20334. ac_x_libraries=no
  20335. # Do we need to do anything special at all?
  20336. ac_save_LIBS=$LIBS
  20337. LIBS="-lX11 $LIBS"
  20338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20339. /* end confdefs.h. */
  20340. #include <X11/Xlib.h>
  20341. int
  20342. main (void)
  20343. {
  20344. XrmInitialize ()
  20345. ;
  20346. return 0;
  20347. }
  20348. _ACEOF
  20349. if ac_fn_c_try_link "$LINENO"
  20350. then :
  20351. # We can compile and link X programs with no special options.
  20352. ac_x_includes=
  20353. ac_x_libraries=
  20354. fi
  20355. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20356. conftest$ac_exeext conftest.$ac_ext
  20357. LIBS="$ac_save_LIBS"
  20358. # If that didn't work, only try xmkmf and file system searches
  20359. # for native compilation.
  20360. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20361. then :
  20362. rm -f -r conftest.dir
  20363. if mkdir conftest.dir; then
  20364. cd conftest.dir
  20365. cat >Imakefile <<'_ACEOF'
  20366. incroot:
  20367. @echo incroot='${INCROOT}'
  20368. usrlibdir:
  20369. @echo usrlibdir='${USRLIBDIR}'
  20370. libdir:
  20371. @echo libdir='${LIBDIR}'
  20372. _ACEOF
  20373. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20374. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20375. for ac_var in incroot usrlibdir libdir; do
  20376. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20377. done
  20378. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20379. for ac_extension in a so sl dylib la dll; do
  20380. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20381. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20382. ac_im_usrlibdir=$ac_im_libdir; break
  20383. fi
  20384. done
  20385. # Screen out bogus values from the imake configuration. They are
  20386. # bogus both because they are the default anyway, and because
  20387. # using them would break gcc on systems where it needs fixed includes.
  20388. case $ac_im_incroot in
  20389. /usr/include) ac_x_includes= ;;
  20390. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20391. esac
  20392. case $ac_im_usrlibdir in
  20393. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20394. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20395. esac
  20396. fi
  20397. cd ..
  20398. rm -f -r conftest.dir
  20399. fi
  20400. # Standard set of common directories for X headers.
  20401. # Check X11 before X11Rn because it is often a symlink to the current release.
  20402. ac_x_header_dirs='
  20403. /usr/X11/include
  20404. /usr/X11R7/include
  20405. /usr/X11R6/include
  20406. /usr/X11R5/include
  20407. /usr/X11R4/include
  20408. /usr/include/X11
  20409. /usr/include/X11R7
  20410. /usr/include/X11R6
  20411. /usr/include/X11R5
  20412. /usr/include/X11R4
  20413. /usr/local/X11/include
  20414. /usr/local/X11R7/include
  20415. /usr/local/X11R6/include
  20416. /usr/local/X11R5/include
  20417. /usr/local/X11R4/include
  20418. /usr/local/include/X11
  20419. /usr/local/include/X11R7
  20420. /usr/local/include/X11R6
  20421. /usr/local/include/X11R5
  20422. /usr/local/include/X11R4
  20423. /opt/X11/include
  20424. /usr/X386/include
  20425. /usr/x386/include
  20426. /usr/XFree86/include/X11
  20427. /usr/include
  20428. /usr/local/include
  20429. /usr/unsupported/include
  20430. /usr/athena/include
  20431. /usr/local/x11r5/include
  20432. /usr/lpp/Xamples/include
  20433. /usr/openwin/include
  20434. /usr/openwin/share/include'
  20435. if test "$ac_x_includes" = no; then
  20436. # Guess where to find include files, by looking for Xlib.h.
  20437. # First, try using that file with no special directory specified.
  20438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20439. /* end confdefs.h. */
  20440. #include <X11/Xlib.h>
  20441. _ACEOF
  20442. if ac_fn_c_try_cpp "$LINENO"
  20443. then :
  20444. # We can compile using X headers with no special include directory.
  20445. ac_x_includes=
  20446. else $as_nop
  20447. for ac_dir in $ac_x_header_dirs; do
  20448. if test -r "$ac_dir/X11/Xlib.h"; then
  20449. ac_x_includes=$ac_dir
  20450. break
  20451. fi
  20452. done
  20453. fi
  20454. rm -f conftest.err conftest.i conftest.$ac_ext
  20455. fi # $ac_x_includes = no
  20456. if test "$ac_x_libraries" = no; then
  20457. # Check for the libraries.
  20458. # See if we find them without any special options.
  20459. # Don't add to $LIBS permanently.
  20460. ac_save_LIBS=$LIBS
  20461. LIBS="-lX11 $LIBS"
  20462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20463. /* end confdefs.h. */
  20464. #include <X11/Xlib.h>
  20465. int
  20466. main (void)
  20467. {
  20468. XrmInitialize ()
  20469. ;
  20470. return 0;
  20471. }
  20472. _ACEOF
  20473. if ac_fn_c_try_link "$LINENO"
  20474. then :
  20475. LIBS=$ac_save_LIBS
  20476. # We can link X programs with no special library path.
  20477. ac_x_libraries=
  20478. else $as_nop
  20479. LIBS=$ac_save_LIBS
  20480. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20481. do
  20482. # Don't even attempt the hair of trying to link an X program!
  20483. for ac_extension in a so sl dylib la dll; do
  20484. if test -r "$ac_dir/libX11.$ac_extension"; then
  20485. ac_x_libraries=$ac_dir
  20486. break 2
  20487. fi
  20488. done
  20489. done
  20490. fi
  20491. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20492. conftest$ac_exeext conftest.$ac_ext
  20493. fi # $ac_x_libraries = no
  20494. fi
  20495. # Record the results.
  20496. case $ac_x_includes,$ac_x_libraries in #(
  20497. no,* | *,no | *\'*) :
  20498. # Didn't find X, or a directory has "'" in its name.
  20499. ac_cv_have_x="have_x=no" ;; #(
  20500. *) :
  20501. # Record where we found X for the cache.
  20502. ac_cv_have_x="have_x=yes\
  20503. ac_x_includes='$ac_x_includes'\
  20504. ac_x_libraries='$ac_x_libraries'" ;;
  20505. esac
  20506. fi
  20507. ;; #(
  20508. *) have_x=yes;;
  20509. esac
  20510. eval "$ac_cv_have_x"
  20511. fi # $with_x != no
  20512. if test "$have_x" != yes; then
  20513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20514. printf "%s\n" "$have_x" >&6; }
  20515. no_x=yes
  20516. else
  20517. # If each of the values was on the command line, it overrides each guess.
  20518. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20519. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20520. # Update the cache value to reflect the command line values.
  20521. ac_cv_have_x="have_x=yes\
  20522. ac_x_includes='$x_includes'\
  20523. ac_x_libraries='$x_libraries'"
  20524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20525. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20526. fi
  20527. if test "$no_x" = yes; then
  20528. # Not all programs may use this symbol, but it does not hurt to define it.
  20529. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20530. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20531. else
  20532. if test -n "$x_includes"; then
  20533. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20534. fi
  20535. # It would also be nice to do this for all -L options, not just this one.
  20536. if test -n "$x_libraries"; then
  20537. X_LIBS="$X_LIBS -L$x_libraries"
  20538. # For Solaris; some versions of Sun CC require a space after -R and
  20539. # others require no space. Words are not sufficient . . . .
  20540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20541. printf %s "checking whether -R must be followed by a space... " >&6; }
  20542. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20543. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20544. ac_c_werror_flag=yes
  20545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20546. /* end confdefs.h. */
  20547. int
  20548. main (void)
  20549. {
  20550. ;
  20551. return 0;
  20552. }
  20553. _ACEOF
  20554. if ac_fn_c_try_link "$LINENO"
  20555. then :
  20556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20557. printf "%s\n" "no" >&6; }
  20558. X_LIBS="$X_LIBS -R$x_libraries"
  20559. else $as_nop
  20560. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20562. /* end confdefs.h. */
  20563. int
  20564. main (void)
  20565. {
  20566. ;
  20567. return 0;
  20568. }
  20569. _ACEOF
  20570. if ac_fn_c_try_link "$LINENO"
  20571. then :
  20572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20573. printf "%s\n" "yes" >&6; }
  20574. X_LIBS="$X_LIBS -R $x_libraries"
  20575. else $as_nop
  20576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20577. printf "%s\n" "neither works" >&6; }
  20578. fi
  20579. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20580. conftest$ac_exeext conftest.$ac_ext
  20581. fi
  20582. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20583. conftest$ac_exeext conftest.$ac_ext
  20584. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20585. LIBS=$ac_xsave_LIBS
  20586. fi
  20587. # Check for system-dependent libraries X programs must link with.
  20588. # Do this before checking for the system-independent R6 libraries
  20589. # (-lICE), since we may need -lsocket or whatever for X linking.
  20590. if test "$ISC" = yes; then
  20591. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20592. else
  20593. # Martyn Johnson says this is needed for Ultrix, if the X
  20594. # libraries were built with DECnet support. And Karl Berry says
  20595. # the Alpha needs dnet_stub (dnet does not exist).
  20596. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20598. /* end confdefs.h. */
  20599. /* Override any GCC internal prototype to avoid an error.
  20600. Use char because int might match the return type of a GCC
  20601. builtin and then its argument prototype would still apply. */
  20602. char XOpenDisplay ();
  20603. int
  20604. main (void)
  20605. {
  20606. return XOpenDisplay ();
  20607. ;
  20608. return 0;
  20609. }
  20610. _ACEOF
  20611. if ac_fn_c_try_link "$LINENO"
  20612. then :
  20613. else $as_nop
  20614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20615. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20616. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20617. then :
  20618. printf %s "(cached) " >&6
  20619. else $as_nop
  20620. ac_check_lib_save_LIBS=$LIBS
  20621. LIBS="-ldnet $LIBS"
  20622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20623. /* end confdefs.h. */
  20624. /* Override any GCC internal prototype to avoid an error.
  20625. Use char because int might match the return type of a GCC
  20626. builtin and then its argument prototype would still apply. */
  20627. char dnet_ntoa ();
  20628. int
  20629. main (void)
  20630. {
  20631. return dnet_ntoa ();
  20632. ;
  20633. return 0;
  20634. }
  20635. _ACEOF
  20636. if ac_fn_c_try_link "$LINENO"
  20637. then :
  20638. ac_cv_lib_dnet_dnet_ntoa=yes
  20639. else $as_nop
  20640. ac_cv_lib_dnet_dnet_ntoa=no
  20641. fi
  20642. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20643. conftest$ac_exeext conftest.$ac_ext
  20644. LIBS=$ac_check_lib_save_LIBS
  20645. fi
  20646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20647. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20648. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20649. then :
  20650. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20651. fi
  20652. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20654. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20655. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20656. then :
  20657. printf %s "(cached) " >&6
  20658. else $as_nop
  20659. ac_check_lib_save_LIBS=$LIBS
  20660. LIBS="-ldnet_stub $LIBS"
  20661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20662. /* end confdefs.h. */
  20663. /* Override any GCC internal prototype to avoid an error.
  20664. Use char because int might match the return type of a GCC
  20665. builtin and then its argument prototype would still apply. */
  20666. char dnet_ntoa ();
  20667. int
  20668. main (void)
  20669. {
  20670. return dnet_ntoa ();
  20671. ;
  20672. return 0;
  20673. }
  20674. _ACEOF
  20675. if ac_fn_c_try_link "$LINENO"
  20676. then :
  20677. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20678. else $as_nop
  20679. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20680. fi
  20681. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20682. conftest$ac_exeext conftest.$ac_ext
  20683. LIBS=$ac_check_lib_save_LIBS
  20684. fi
  20685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20686. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20687. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20688. then :
  20689. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20690. fi
  20691. fi
  20692. fi
  20693. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20694. conftest$ac_exeext conftest.$ac_ext
  20695. LIBS="$ac_xsave_LIBS"
  20696. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20697. # to get the SysV transport functions.
  20698. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20699. # needs -lnsl.
  20700. # The nsl library prevents programs from opening the X display
  20701. # on Irix 5.2, according to T.E. Dickey.
  20702. # The functions gethostbyname, getservbyname, and inet_addr are
  20703. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20704. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20705. if test "x$ac_cv_func_gethostbyname" = xyes
  20706. then :
  20707. fi
  20708. if test $ac_cv_func_gethostbyname = no; then
  20709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20710. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20711. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20712. then :
  20713. printf %s "(cached) " >&6
  20714. else $as_nop
  20715. ac_check_lib_save_LIBS=$LIBS
  20716. LIBS="-lnsl $LIBS"
  20717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20718. /* end confdefs.h. */
  20719. /* Override any GCC internal prototype to avoid an error.
  20720. Use char because int might match the return type of a GCC
  20721. builtin and then its argument prototype would still apply. */
  20722. char gethostbyname ();
  20723. int
  20724. main (void)
  20725. {
  20726. return gethostbyname ();
  20727. ;
  20728. return 0;
  20729. }
  20730. _ACEOF
  20731. if ac_fn_c_try_link "$LINENO"
  20732. then :
  20733. ac_cv_lib_nsl_gethostbyname=yes
  20734. else $as_nop
  20735. ac_cv_lib_nsl_gethostbyname=no
  20736. fi
  20737. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20738. conftest$ac_exeext conftest.$ac_ext
  20739. LIBS=$ac_check_lib_save_LIBS
  20740. fi
  20741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20742. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20743. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  20744. then :
  20745. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20746. fi
  20747. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20749. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  20750. if test ${ac_cv_lib_bsd_gethostbyname+y}
  20751. then :
  20752. printf %s "(cached) " >&6
  20753. else $as_nop
  20754. ac_check_lib_save_LIBS=$LIBS
  20755. LIBS="-lbsd $LIBS"
  20756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20757. /* end confdefs.h. */
  20758. /* Override any GCC internal prototype to avoid an error.
  20759. Use char because int might match the return type of a GCC
  20760. builtin and then its argument prototype would still apply. */
  20761. char gethostbyname ();
  20762. int
  20763. main (void)
  20764. {
  20765. return gethostbyname ();
  20766. ;
  20767. return 0;
  20768. }
  20769. _ACEOF
  20770. if ac_fn_c_try_link "$LINENO"
  20771. then :
  20772. ac_cv_lib_bsd_gethostbyname=yes
  20773. else $as_nop
  20774. ac_cv_lib_bsd_gethostbyname=no
  20775. fi
  20776. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20777. conftest$ac_exeext conftest.$ac_ext
  20778. LIBS=$ac_check_lib_save_LIBS
  20779. fi
  20780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20781. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20782. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20783. then :
  20784. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20785. fi
  20786. fi
  20787. fi
  20788. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20789. # socket/setsockopt and other routines are undefined under SCO ODT
  20790. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20791. # on later versions), says Simon Leinen: it contains gethostby*
  20792. # variants that don't use the name server (or something). -lsocket
  20793. # must be given before -lnsl if both are needed. We assume that
  20794. # if connect needs -lnsl, so does gethostbyname.
  20795. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20796. if test "x$ac_cv_func_connect" = xyes
  20797. then :
  20798. fi
  20799. if test $ac_cv_func_connect = no; then
  20800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20801. printf %s "checking for connect in -lsocket... " >&6; }
  20802. if test ${ac_cv_lib_socket_connect+y}
  20803. then :
  20804. printf %s "(cached) " >&6
  20805. else $as_nop
  20806. ac_check_lib_save_LIBS=$LIBS
  20807. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20809. /* end confdefs.h. */
  20810. /* Override any GCC internal prototype to avoid an error.
  20811. Use char because int might match the return type of a GCC
  20812. builtin and then its argument prototype would still apply. */
  20813. char connect ();
  20814. int
  20815. main (void)
  20816. {
  20817. return connect ();
  20818. ;
  20819. return 0;
  20820. }
  20821. _ACEOF
  20822. if ac_fn_c_try_link "$LINENO"
  20823. then :
  20824. ac_cv_lib_socket_connect=yes
  20825. else $as_nop
  20826. ac_cv_lib_socket_connect=no
  20827. fi
  20828. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20829. conftest$ac_exeext conftest.$ac_ext
  20830. LIBS=$ac_check_lib_save_LIBS
  20831. fi
  20832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20833. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20834. if test "x$ac_cv_lib_socket_connect" = xyes
  20835. then :
  20836. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20837. fi
  20838. fi
  20839. # Guillermo Gomez says -lposix is necessary on A/UX.
  20840. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20841. if test "x$ac_cv_func_remove" = xyes
  20842. then :
  20843. fi
  20844. if test $ac_cv_func_remove = no; then
  20845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20846. printf %s "checking for remove in -lposix... " >&6; }
  20847. if test ${ac_cv_lib_posix_remove+y}
  20848. then :
  20849. printf %s "(cached) " >&6
  20850. else $as_nop
  20851. ac_check_lib_save_LIBS=$LIBS
  20852. LIBS="-lposix $LIBS"
  20853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20854. /* end confdefs.h. */
  20855. /* Override any GCC internal prototype to avoid an error.
  20856. Use char because int might match the return type of a GCC
  20857. builtin and then its argument prototype would still apply. */
  20858. char remove ();
  20859. int
  20860. main (void)
  20861. {
  20862. return remove ();
  20863. ;
  20864. return 0;
  20865. }
  20866. _ACEOF
  20867. if ac_fn_c_try_link "$LINENO"
  20868. then :
  20869. ac_cv_lib_posix_remove=yes
  20870. else $as_nop
  20871. ac_cv_lib_posix_remove=no
  20872. fi
  20873. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20874. conftest$ac_exeext conftest.$ac_ext
  20875. LIBS=$ac_check_lib_save_LIBS
  20876. fi
  20877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20878. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20879. if test "x$ac_cv_lib_posix_remove" = xyes
  20880. then :
  20881. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20882. fi
  20883. fi
  20884. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20885. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20886. if test "x$ac_cv_func_shmat" = xyes
  20887. then :
  20888. fi
  20889. if test $ac_cv_func_shmat = no; then
  20890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20891. printf %s "checking for shmat in -lipc... " >&6; }
  20892. if test ${ac_cv_lib_ipc_shmat+y}
  20893. then :
  20894. printf %s "(cached) " >&6
  20895. else $as_nop
  20896. ac_check_lib_save_LIBS=$LIBS
  20897. LIBS="-lipc $LIBS"
  20898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20899. /* end confdefs.h. */
  20900. /* Override any GCC internal prototype to avoid an error.
  20901. Use char because int might match the return type of a GCC
  20902. builtin and then its argument prototype would still apply. */
  20903. char shmat ();
  20904. int
  20905. main (void)
  20906. {
  20907. return shmat ();
  20908. ;
  20909. return 0;
  20910. }
  20911. _ACEOF
  20912. if ac_fn_c_try_link "$LINENO"
  20913. then :
  20914. ac_cv_lib_ipc_shmat=yes
  20915. else $as_nop
  20916. ac_cv_lib_ipc_shmat=no
  20917. fi
  20918. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20919. conftest$ac_exeext conftest.$ac_ext
  20920. LIBS=$ac_check_lib_save_LIBS
  20921. fi
  20922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20923. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  20924. if test "x$ac_cv_lib_ipc_shmat" = xyes
  20925. then :
  20926. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20927. fi
  20928. fi
  20929. fi
  20930. # Check for libraries that X11R6 Xt/Xaw programs need.
  20931. ac_save_LDFLAGS=$LDFLAGS
  20932. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  20933. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  20934. # check for ICE first), but we must link in the order -lSM -lICE or
  20935. # we get undefined symbols. So assume we have SM if we have ICE.
  20936. # These have to be linked with before -lX11, unlike the other
  20937. # libraries we check for below, so use a different variable.
  20938. # John Interrante, Karl Berry
  20939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  20940. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  20941. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  20942. then :
  20943. printf %s "(cached) " >&6
  20944. else $as_nop
  20945. ac_check_lib_save_LIBS=$LIBS
  20946. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  20947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20948. /* end confdefs.h. */
  20949. /* Override any GCC internal prototype to avoid an error.
  20950. Use char because int might match the return type of a GCC
  20951. builtin and then its argument prototype would still apply. */
  20952. char IceConnectionNumber ();
  20953. int
  20954. main (void)
  20955. {
  20956. return IceConnectionNumber ();
  20957. ;
  20958. return 0;
  20959. }
  20960. _ACEOF
  20961. if ac_fn_c_try_link "$LINENO"
  20962. then :
  20963. ac_cv_lib_ICE_IceConnectionNumber=yes
  20964. else $as_nop
  20965. ac_cv_lib_ICE_IceConnectionNumber=no
  20966. fi
  20967. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20968. conftest$ac_exeext conftest.$ac_ext
  20969. LIBS=$ac_check_lib_save_LIBS
  20970. fi
  20971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  20972. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  20973. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  20974. then :
  20975. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  20976. fi
  20977. LDFLAGS=$ac_save_LDFLAGS
  20978. fi
  20979. if test x$have_x = xyes; then
  20980. # Check whether --enable-x11-shared was given.
  20981. if test ${enable_x11_shared+y}
  20982. then :
  20983. enableval=$enable_x11_shared;
  20984. else $as_nop
  20985. enable_x11_shared=maybe
  20986. fi
  20987. case "$host" in
  20988. *-*-darwin*)
  20989. # Apple now puts this in /opt/X11
  20990. x11_lib='/opt/X11/lib/libX11.6.dylib'
  20991. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  20992. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  20993. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  20994. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  20995. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  20996. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  20997. xss_lib='/opt/X11/lib/libXss.1.dylib'
  20998. ;;
  20999. *-*-openbsd*)
  21000. x11_lib='libX11.so'
  21001. x11ext_lib='libXext.so'
  21002. xcursor_lib='libXcursor.so'
  21003. xinput_lib='libXi.so'
  21004. xfixes_lib='libXfixes.so'
  21005. xrandr_lib='libXrandr.so'
  21006. xrender_lib='libXrender.so'
  21007. xss_lib='libXss.so'
  21008. ;;
  21009. *)
  21010. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21011. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21012. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21013. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21014. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21015. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21016. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21017. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21018. ;;
  21019. esac
  21020. if test x$ac_cv_func_shmat != xyes; then
  21021. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21022. fi
  21023. CFLAGS="$CFLAGS $X_CFLAGS"
  21024. LDFLAGS="$LDFLAGS $X_LIBS"
  21025. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21026. #include <X11/Xproto.h>
  21027. "
  21028. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21029. then :
  21030. have_xext_h_hdr=yes
  21031. else $as_nop
  21032. have_xext_h_hdr=no
  21033. fi
  21034. if test x$have_xext_h_hdr != xyes; then
  21035. as_fn_error $? "
  21036. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21037. " "$LINENO" 5
  21038. fi
  21039. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21040. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21041. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21042. # Needed so SDL applications can include SDL_syswm.h
  21043. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21044. if test x$enable_x11_shared = xmaybe; then
  21045. enable_x11_shared=yes
  21046. fi
  21047. if test x$have_loadso != xyes && \
  21048. test x$enable_x11_shared = xyes; then
  21049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21050. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21051. enable_x11_shared=no
  21052. fi
  21053. if test x$have_loadso = xyes && \
  21054. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21055. echo "-- dynamic libX11 -> $x11_lib"
  21056. echo "-- dynamic libX11ext -> $x11ext_lib"
  21057. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21058. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21059. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21060. else
  21061. enable_x11_shared=no
  21062. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21063. SUMMARY_video="${SUMMARY_video} x11"
  21064. fi
  21065. have_video=yes
  21066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21067. printf %s "checking for XGenericEvent... " >&6; }
  21068. have_XGenericEvent=no
  21069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21070. /* end confdefs.h. */
  21071. #include <X11/Xlib.h>
  21072. int
  21073. main (void)
  21074. {
  21075. Display *display;
  21076. XEvent event;
  21077. XGenericEventCookie *cookie = &event.xcookie;
  21078. XNextEvent(display, &event);
  21079. XGetEventData(display, cookie);
  21080. XFreeEventData(display, cookie);
  21081. ;
  21082. return 0;
  21083. }
  21084. _ACEOF
  21085. if ac_fn_c_try_compile "$LINENO"
  21086. then :
  21087. have_XGenericEvent=yes
  21088. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21089. fi
  21090. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21092. printf "%s\n" "$have_XGenericEvent" >&6; }
  21093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21094. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21095. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21096. then :
  21097. printf %s "(cached) " >&6
  21098. else $as_nop
  21099. ac_check_lib_save_LIBS=$LIBS
  21100. LIBS="-lX11 $LIBS"
  21101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21102. /* end confdefs.h. */
  21103. /* Override any GCC internal prototype to avoid an error.
  21104. Use char because int might match the return type of a GCC
  21105. builtin and then its argument prototype would still apply. */
  21106. char XkbKeycodeToKeysym ();
  21107. int
  21108. main (void)
  21109. {
  21110. return XkbKeycodeToKeysym ();
  21111. ;
  21112. return 0;
  21113. }
  21114. _ACEOF
  21115. if ac_fn_c_try_link "$LINENO"
  21116. then :
  21117. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21118. else $as_nop
  21119. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21120. fi
  21121. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21122. conftest$ac_exeext conftest.$ac_ext
  21123. LIBS=$ac_check_lib_save_LIBS
  21124. fi
  21125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21126. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21127. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21128. then :
  21129. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21130. fi
  21131. # Check whether --enable-video-x11-xcursor was given.
  21132. if test ${enable_video_x11_xcursor+y}
  21133. then :
  21134. enableval=$enable_video_x11_xcursor;
  21135. else $as_nop
  21136. enable_video_x11_xcursor=yes
  21137. fi
  21138. if test x$enable_video_x11_xcursor = xyes; then
  21139. definitely_enable_video_x11_xcursor=no
  21140. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21141. "
  21142. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21143. then :
  21144. have_xcursor_h_hdr=yes
  21145. else $as_nop
  21146. have_xcursor_h_hdr=no
  21147. fi
  21148. if test x$have_xcursor_h_hdr = xyes; then
  21149. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21150. echo "-- dynamic libXcursor -> $xcursor_lib"
  21151. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21152. definitely_enable_video_x11_xcursor=yes
  21153. else
  21154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21155. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21156. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21157. then :
  21158. printf %s "(cached) " >&6
  21159. else $as_nop
  21160. ac_check_lib_save_LIBS=$LIBS
  21161. LIBS="-lXcursor $LIBS"
  21162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21163. /* end confdefs.h. */
  21164. /* Override any GCC internal prototype to avoid an error.
  21165. Use char because int might match the return type of a GCC
  21166. builtin and then its argument prototype would still apply. */
  21167. char XcursorImageCreate ();
  21168. int
  21169. main (void)
  21170. {
  21171. return XcursorImageCreate ();
  21172. ;
  21173. return 0;
  21174. }
  21175. _ACEOF
  21176. if ac_fn_c_try_link "$LINENO"
  21177. then :
  21178. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21179. else $as_nop
  21180. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21181. fi
  21182. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21183. conftest$ac_exeext conftest.$ac_ext
  21184. LIBS=$ac_check_lib_save_LIBS
  21185. fi
  21186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21187. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21188. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21189. then :
  21190. have_xcursor_lib=yes
  21191. fi
  21192. if test x$have_xcursor_lib = xyes ; then
  21193. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21194. definitely_enable_video_x11_xcursor=yes
  21195. fi
  21196. fi
  21197. fi
  21198. fi
  21199. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21200. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21201. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21202. fi
  21203. # Check whether --enable-video-x11-xdbe was given.
  21204. if test ${enable_video_x11_xdbe+y}
  21205. then :
  21206. enableval=$enable_video_x11_xdbe;
  21207. else $as_nop
  21208. enable_video_x11_xdbe=yes
  21209. fi
  21210. if test x$enable_video_x11_xdbe = xyes; then
  21211. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21212. "
  21213. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21214. then :
  21215. have_dbe_h_hdr=yes
  21216. else $as_nop
  21217. have_dbe_h_hdr=no
  21218. fi
  21219. if test x$have_dbe_h_hdr = xyes; then
  21220. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21221. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21222. fi
  21223. fi
  21224. # Check whether --enable-video-x11-xinput was given.
  21225. if test ${enable_video_x11_xinput+y}
  21226. then :
  21227. enableval=$enable_video_x11_xinput;
  21228. else $as_nop
  21229. enable_video_x11_xinput=yes
  21230. fi
  21231. if test x$enable_video_x11_xinput = xyes; then
  21232. definitely_enable_video_x11_xinput=no
  21233. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21234. "
  21235. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21236. then :
  21237. have_xinput_h_hdr=yes
  21238. else $as_nop
  21239. have_xinput_h_hdr=no
  21240. fi
  21241. if test x$have_xinput_h_hdr = xyes; then
  21242. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21243. echo "-- dynamic libXi -> $xinput_lib"
  21244. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21245. definitely_enable_video_x11_xinput=yes
  21246. else
  21247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21248. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21249. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21250. then :
  21251. printf %s "(cached) " >&6
  21252. else $as_nop
  21253. ac_check_lib_save_LIBS=$LIBS
  21254. LIBS="-lXi $LIBS"
  21255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21256. /* end confdefs.h. */
  21257. /* Override any GCC internal prototype to avoid an error.
  21258. Use char because int might match the return type of a GCC
  21259. builtin and then its argument prototype would still apply. */
  21260. char XOpenDevice ();
  21261. int
  21262. main (void)
  21263. {
  21264. return XOpenDevice ();
  21265. ;
  21266. return 0;
  21267. }
  21268. _ACEOF
  21269. if ac_fn_c_try_link "$LINENO"
  21270. then :
  21271. ac_cv_lib_Xi_XOpenDevice=yes
  21272. else $as_nop
  21273. ac_cv_lib_Xi_XOpenDevice=no
  21274. fi
  21275. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21276. conftest$ac_exeext conftest.$ac_ext
  21277. LIBS=$ac_check_lib_save_LIBS
  21278. fi
  21279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21280. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21281. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21282. then :
  21283. have_xinput_lib=yes
  21284. fi
  21285. if test x$have_xinput_lib = xyes ; then
  21286. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21287. definitely_enable_video_x11_xinput=yes
  21288. fi
  21289. fi
  21290. fi
  21291. fi
  21292. if test x$definitely_enable_video_x11_xinput = xyes; then
  21293. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21294. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21296. printf %s "checking for xinput2 multitouch... " >&6; }
  21297. have_xinput2_multitouch=no
  21298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21299. /* end confdefs.h. */
  21300. #include <X11/Xlib.h>
  21301. #include <X11/Xproto.h>
  21302. #include <X11/extensions/XInput2.h>
  21303. int
  21304. main (void)
  21305. {
  21306. int event_type = XI_TouchBegin;
  21307. XITouchClassInfo *t;
  21308. ;
  21309. return 0;
  21310. }
  21311. _ACEOF
  21312. if ac_fn_c_try_compile "$LINENO"
  21313. then :
  21314. have_xinput2_multitouch=yes
  21315. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21316. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21317. fi
  21318. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21320. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21321. fi
  21322. # Check whether --enable-video-x11-xfixes was given.
  21323. if test ${enable_video_x11_xfixes+y}
  21324. then :
  21325. enableval=$enable_video_x11_xfixes;
  21326. else $as_nop
  21327. enable_video_x11_xfixes=yes
  21328. fi
  21329. if test x$enable_video_x11_xfixes = xyes; then
  21330. definitely_enable_video_x11_xfixes=no
  21331. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21333. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21335. /* end confdefs.h. */
  21336. #include <X11/Xlib.h>
  21337. #include <X11/Xproto.h>
  21338. #include <X11/extensions/XInput2.h>
  21339. #include <X11/extensions/Xfixes.h>
  21340. int
  21341. main (void)
  21342. {
  21343. BarrierEventID b;
  21344. ;
  21345. return 0;
  21346. }
  21347. _ACEOF
  21348. if ac_fn_c_try_compile "$LINENO"
  21349. then :
  21350. have_xfixes_h_hdr=yes
  21351. else $as_nop
  21352. have_xfixes_h_hdr=no
  21353. fi
  21354. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21356. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21357. if test x$have_xfixes_h_hdr = xyes; then
  21358. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21359. echo "-- dynamic libXfixes -> $xfixes_lib"
  21360. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21361. definitely_enable_video_x11_xfixes=yes
  21362. else
  21363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21364. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21365. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21366. then :
  21367. printf %s "(cached) " >&6
  21368. else $as_nop
  21369. ac_check_lib_save_LIBS=$LIBS
  21370. LIBS="-lXfixes $LIBS"
  21371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21372. /* end confdefs.h. */
  21373. /* Override any GCC internal prototype to avoid an error.
  21374. Use char because int might match the return type of a GCC
  21375. builtin and then its argument prototype would still apply. */
  21376. char XFixesCreatePointerBarrier ();
  21377. int
  21378. main (void)
  21379. {
  21380. return XFixesCreatePointerBarrier ();
  21381. ;
  21382. return 0;
  21383. }
  21384. _ACEOF
  21385. if ac_fn_c_try_link "$LINENO"
  21386. then :
  21387. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21388. else $as_nop
  21389. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21390. fi
  21391. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21392. conftest$ac_exeext conftest.$ac_ext
  21393. LIBS=$ac_check_lib_save_LIBS
  21394. fi
  21395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21396. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21397. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21398. then :
  21399. have_xfixes_lib=yes
  21400. fi
  21401. if test x$have_xfixes_lib = xyes ; then
  21402. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21403. definitely_enable_video_x11_xfixes=yes
  21404. fi
  21405. fi
  21406. fi
  21407. fi
  21408. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21409. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21410. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21411. fi
  21412. # Check whether --enable-video-x11-xrandr was given.
  21413. if test ${enable_video_x11_xrandr+y}
  21414. then :
  21415. enableval=$enable_video_x11_xrandr;
  21416. else $as_nop
  21417. enable_video_x11_xrandr=yes
  21418. fi
  21419. if test x$enable_video_x11_xrandr = xyes; then
  21420. definitely_enable_video_x11_xrandr=no
  21421. have_xrandr_h_hdr=no
  21422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21423. /* end confdefs.h. */
  21424. #include <X11/Xlib.h>
  21425. #include <X11/extensions/Xrandr.h>
  21426. int
  21427. main (void)
  21428. {
  21429. XRRScreenResources *res = NULL;
  21430. ;
  21431. return 0;
  21432. }
  21433. _ACEOF
  21434. if ac_fn_c_try_compile "$LINENO"
  21435. then :
  21436. have_xrandr_h_hdr=yes
  21437. fi
  21438. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21439. if test x$have_xrandr_h_hdr = xyes; then
  21440. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21441. echo "-- dynamic libXrandr -> $xrandr_lib"
  21442. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21443. definitely_enable_video_x11_xrandr=yes
  21444. else
  21445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21446. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21447. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21448. then :
  21449. printf %s "(cached) " >&6
  21450. else $as_nop
  21451. ac_check_lib_save_LIBS=$LIBS
  21452. LIBS="-lXrandr $LIBS"
  21453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21454. /* end confdefs.h. */
  21455. /* Override any GCC internal prototype to avoid an error.
  21456. Use char because int might match the return type of a GCC
  21457. builtin and then its argument prototype would still apply. */
  21458. char XRRQueryExtension ();
  21459. int
  21460. main (void)
  21461. {
  21462. return XRRQueryExtension ();
  21463. ;
  21464. return 0;
  21465. }
  21466. _ACEOF
  21467. if ac_fn_c_try_link "$LINENO"
  21468. then :
  21469. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21470. else $as_nop
  21471. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21472. fi
  21473. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21474. conftest$ac_exeext conftest.$ac_ext
  21475. LIBS=$ac_check_lib_save_LIBS
  21476. fi
  21477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21478. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21479. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21480. then :
  21481. have_xrandr_lib=yes
  21482. fi
  21483. if test x$have_xrandr_lib = xyes ; then
  21484. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21485. definitely_enable_video_x11_xrandr=yes
  21486. fi
  21487. fi
  21488. fi
  21489. fi
  21490. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21491. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21492. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21493. fi
  21494. # Check whether --enable-video-x11-scrnsaver was given.
  21495. if test ${enable_video_x11_scrnsaver+y}
  21496. then :
  21497. enableval=$enable_video_x11_scrnsaver;
  21498. else $as_nop
  21499. enable_video_x11_scrnsaver=yes
  21500. fi
  21501. if test x$enable_video_x11_scrnsaver = xyes; then
  21502. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21503. "
  21504. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21505. then :
  21506. have_scrnsaver_h_hdr=yes
  21507. else $as_nop
  21508. have_scrnsaver_h_hdr=no
  21509. fi
  21510. if test x$have_scrnsaver_h_hdr = xyes; then
  21511. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21512. echo "-- dynamic libXss -> $xss_lib"
  21513. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21514. definitely_enable_video_x11_scrnsaver=yes
  21515. else
  21516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21517. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21518. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21519. then :
  21520. printf %s "(cached) " >&6
  21521. else $as_nop
  21522. ac_check_lib_save_LIBS=$LIBS
  21523. LIBS="-lXss $LIBS"
  21524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21525. /* end confdefs.h. */
  21526. /* Override any GCC internal prototype to avoid an error.
  21527. Use char because int might match the return type of a GCC
  21528. builtin and then its argument prototype would still apply. */
  21529. char XScreenSaverSuspend ();
  21530. int
  21531. main (void)
  21532. {
  21533. return XScreenSaverSuspend ();
  21534. ;
  21535. return 0;
  21536. }
  21537. _ACEOF
  21538. if ac_fn_c_try_link "$LINENO"
  21539. then :
  21540. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21541. else $as_nop
  21542. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21543. fi
  21544. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21545. conftest$ac_exeext conftest.$ac_ext
  21546. LIBS=$ac_check_lib_save_LIBS
  21547. fi
  21548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21549. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21550. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21551. then :
  21552. have_xss_lib=yes
  21553. fi
  21554. if test x$have_xss_lib = xyes ; then
  21555. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21556. definitely_enable_video_x11_scrnsaver=yes
  21557. fi
  21558. fi
  21559. fi
  21560. fi
  21561. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21562. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21563. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21564. fi
  21565. # Check whether --enable-video-x11-xshape was given.
  21566. if test ${enable_video_x11_xshape+y}
  21567. then :
  21568. enableval=$enable_video_x11_xshape;
  21569. else $as_nop
  21570. enable_video_x11_xshape=yes
  21571. fi
  21572. if test x$enable_video_x11_xshape = xyes; then
  21573. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21574. "
  21575. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21576. then :
  21577. have_shape_h_hdr=yes
  21578. else $as_nop
  21579. have_shape_h_hdr=no
  21580. fi
  21581. if test x$have_shape_h_hdr = xyes; then
  21582. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21583. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21584. fi
  21585. fi
  21586. fi
  21587. fi
  21588. if test x$have_x != xyes; then
  21589. # Prevent Mesa from including X11 headers
  21590. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21591. fi
  21592. }
  21593. CheckVivanteVideo()
  21594. {
  21595. # Check whether --enable-video-vivante was given.
  21596. if test ${enable_video_vivante+y}
  21597. then :
  21598. enableval=$enable_video_vivante;
  21599. else $as_nop
  21600. enable_video_vivante=yes
  21601. fi
  21602. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21604. printf %s "checking for Vivante VDK API... " >&6; }
  21605. have_vivante_vdk=no
  21606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21607. /* end confdefs.h. */
  21608. #define LINUX
  21609. #define EGL_API_FB
  21610. #include <gc_vdk.h>
  21611. int
  21612. main (void)
  21613. {
  21614. ;
  21615. return 0;
  21616. }
  21617. _ACEOF
  21618. if ac_fn_c_try_compile "$LINENO"
  21619. then :
  21620. have_vivante_vdk=yes
  21621. fi
  21622. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21624. printf "%s\n" "$have_vivante_vdk" >&6; }
  21625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21626. printf %s "checking for Vivante FB API... " >&6; }
  21627. have_vivante_egl=no
  21628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21629. /* end confdefs.h. */
  21630. #define LINUX
  21631. #define EGL_API_FB
  21632. #include <EGL/eglvivante.h>
  21633. int
  21634. main (void)
  21635. {
  21636. ;
  21637. return 0;
  21638. }
  21639. _ACEOF
  21640. if ac_fn_c_try_compile "$LINENO"
  21641. then :
  21642. have_vivante_egl=yes
  21643. fi
  21644. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21646. printf "%s\n" "$have_vivante_egl" >&6; }
  21647. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21648. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21649. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21650. if test x$have_vivante_vdk = xyes; then
  21651. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21652. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21653. fi
  21654. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21655. SUMMARY_video="${SUMMARY_video} vivante"
  21656. have_video=yes
  21657. fi
  21658. fi
  21659. }
  21660. CheckHaikuVideo()
  21661. {
  21662. if test x$enable_video = xyes; then
  21663. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21664. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21665. have_video=yes
  21666. SUMMARY_video="${SUMMARY_video} haiku"
  21667. fi
  21668. }
  21669. CheckCOCOA()
  21670. {
  21671. # Check whether --enable-video-cocoa was given.
  21672. if test ${enable_video_cocoa+y}
  21673. then :
  21674. enableval=$enable_video_cocoa;
  21675. else $as_nop
  21676. enable_video_cocoa=yes
  21677. fi
  21678. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21679. save_CFLAGS="$CFLAGS"
  21680. CFLAGS="$CFLAGS -x objective-c"
  21681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21682. printf %s "checking for Cocoa framework... " >&6; }
  21683. have_cocoa=no
  21684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21685. /* end confdefs.h. */
  21686. #import <Cocoa/Cocoa.h>
  21687. int
  21688. main (void)
  21689. {
  21690. ;
  21691. return 0;
  21692. }
  21693. _ACEOF
  21694. if ac_fn_c_try_compile "$LINENO"
  21695. then :
  21696. have_cocoa=yes
  21697. fi
  21698. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21700. printf "%s\n" "$have_cocoa" >&6; }
  21701. CFLAGS="$save_CFLAGS"
  21702. if test x$have_cocoa = xyes; then
  21703. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21704. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21705. SUMMARY_video="${SUMMARY_video} cocoa"
  21706. have_video=yes
  21707. fi
  21708. fi
  21709. }
  21710. CheckMETAL()
  21711. {
  21712. # Check whether --enable-video-metal was given.
  21713. if test ${enable_video_metal+y}
  21714. then :
  21715. enableval=$enable_video_metal;
  21716. else $as_nop
  21717. enable_video_metal=yes
  21718. fi
  21719. # Check whether --enable-render-metal was given.
  21720. if test ${enable_render_metal+y}
  21721. then :
  21722. enableval=$enable_render_metal;
  21723. else $as_nop
  21724. enable_render_metal=yes
  21725. fi
  21726. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  21727. save_CFLAGS="$CFLAGS"
  21728. CFLAGS="$CFLAGS -x objective-c"
  21729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  21730. printf %s "checking for Metal framework... " >&6; }
  21731. have_metal=no
  21732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21733. /* end confdefs.h. */
  21734. #import <Cocoa/Cocoa.h>
  21735. #import <Metal/Metal.h>
  21736. #import <QuartzCore/CAMetalLayer.h>
  21737. #if TARGET_CPU_X86
  21738. #error Metal doesn't work on this configuration
  21739. #endif
  21740. int
  21741. main (void)
  21742. {
  21743. ;
  21744. return 0;
  21745. }
  21746. _ACEOF
  21747. if ac_fn_c_try_compile "$LINENO"
  21748. then :
  21749. have_metal=yes
  21750. fi
  21751. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21752. CFLAGS="$save_CFLAGS"
  21753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  21754. printf "%s\n" "$have_metal" >&6; }
  21755. if test x$have_metal = xyes; then
  21756. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  21757. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21758. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  21759. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  21760. fi
  21761. SUMMARY_video="${SUMMARY_video} metal"
  21762. else
  21763. enable_video_metal=no
  21764. enable_render_metal=no
  21765. fi
  21766. fi
  21767. }
  21768. CheckDirectFB()
  21769. {
  21770. # Check whether --enable-video-directfb was given.
  21771. if test ${enable_video_directfb+y}
  21772. then :
  21773. enableval=$enable_video_directfb;
  21774. else $as_nop
  21775. enable_video_directfb=no
  21776. fi
  21777. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  21778. pkg_failed=no
  21779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  21780. printf %s "checking for directfb >= 1.0.0... " >&6; }
  21781. if test -n "$DIRECTFB_CFLAGS"; then
  21782. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  21783. elif test -n "$PKG_CONFIG"; then
  21784. if test -n "$PKG_CONFIG" && \
  21785. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21786. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21787. ac_status=$?
  21788. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21789. test $ac_status = 0; }; then
  21790. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  21791. test "x$?" != "x0" && pkg_failed=yes
  21792. else
  21793. pkg_failed=yes
  21794. fi
  21795. else
  21796. pkg_failed=untried
  21797. fi
  21798. if test -n "$DIRECTFB_LIBS"; then
  21799. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  21800. elif test -n "$PKG_CONFIG"; then
  21801. if test -n "$PKG_CONFIG" && \
  21802. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21803. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21804. ac_status=$?
  21805. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21806. test $ac_status = 0; }; then
  21807. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  21808. test "x$?" != "x0" && pkg_failed=yes
  21809. else
  21810. pkg_failed=yes
  21811. fi
  21812. else
  21813. pkg_failed=untried
  21814. fi
  21815. if test $pkg_failed = yes; then
  21816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21817. printf "%s\n" "no" >&6; }
  21818. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21819. _pkg_short_errors_supported=yes
  21820. else
  21821. _pkg_short_errors_supported=no
  21822. fi
  21823. if test $_pkg_short_errors_supported = yes; then
  21824. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21825. else
  21826. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21827. fi
  21828. # Put the nasty error message in config.log where it belongs
  21829. echo "$DIRECTFB_PKG_ERRORS" >&5
  21830. video_directfb=no
  21831. elif test $pkg_failed = untried; then
  21832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21833. printf "%s\n" "no" >&6; }
  21834. video_directfb=no
  21835. else
  21836. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  21837. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  21838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21839. printf "%s\n" "yes" >&6; }
  21840. video_directfb=yes
  21841. fi
  21842. if test x$video_directfb = xyes; then
  21843. # SuSE 11.1 installs directfb-config without directfb-devel
  21844. save_CPPFLAGS="$CPPFLAGS"
  21845. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  21846. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  21847. if test "x$ac_cv_header_directfb_h" = xyes
  21848. then :
  21849. have_directfb_hdr=yes
  21850. else $as_nop
  21851. have_directfb_hdr=no
  21852. fi
  21853. CPPFLAGS="$save_CPPFLAGS"
  21854. video_directfb=$have_directfb_hdr
  21855. fi
  21856. if test x$video_directfb = xyes; then
  21857. # Check whether --enable-directfb-shared was given.
  21858. if test ${enable_directfb_shared+y}
  21859. then :
  21860. enableval=$enable_directfb_shared;
  21861. else $as_nop
  21862. enable_directfb_shared=yes
  21863. fi
  21864. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  21865. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  21866. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  21867. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  21868. directfb_shared=no
  21869. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  21870. if test x$have_loadso != xyes && \
  21871. test x$enable_directfb_shared = xyes; then
  21872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  21873. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  21874. fi
  21875. if test x$have_loadso = xyes && \
  21876. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  21877. directfb_shared=yes
  21878. echo "-- dynamic libdirectfb -> $directfb_lib"
  21879. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  21880. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  21881. else
  21882. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  21883. SUMMARY_video="${SUMMARY_video} directfb"
  21884. fi
  21885. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  21886. have_video=yes
  21887. fi
  21888. fi
  21889. }
  21890. CheckKMSDRM()
  21891. {
  21892. # Check whether --enable-video-kmsdrm was given.
  21893. if test ${enable_video_kmsdrm+y}
  21894. then :
  21895. enableval=$enable_video_kmsdrm;
  21896. else $as_nop
  21897. enable_video_kmsdrm=yes
  21898. fi
  21899. if test x$enable_video = xyes && \
  21900. test x$enable_video_kmsdrm = xyes && \
  21901. test x$video_opengl_egl = xyes; then
  21902. video_kmsdrm=no
  21903. pkg_failed=no
  21904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21905. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  21906. if test -n "$LIBDRM_CFLAGS"; then
  21907. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21908. elif test -n "$PKG_CONFIG"; then
  21909. if test -n "$PKG_CONFIG" && \
  21910. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21911. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21912. ac_status=$?
  21913. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21914. test $ac_status = 0; }; then
  21915. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  21916. test "x$?" != "x0" && pkg_failed=yes
  21917. else
  21918. pkg_failed=yes
  21919. fi
  21920. else
  21921. pkg_failed=untried
  21922. fi
  21923. if test -n "$LIBDRM_LIBS"; then
  21924. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  21925. elif test -n "$PKG_CONFIG"; then
  21926. if test -n "$PKG_CONFIG" && \
  21927. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21928. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21929. ac_status=$?
  21930. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21931. test $ac_status = 0; }; then
  21932. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  21933. test "x$?" != "x0" && pkg_failed=yes
  21934. else
  21935. pkg_failed=yes
  21936. fi
  21937. else
  21938. pkg_failed=untried
  21939. fi
  21940. if test $pkg_failed = yes; then
  21941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21942. printf "%s\n" "no" >&6; }
  21943. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21944. _pkg_short_errors_supported=yes
  21945. else
  21946. _pkg_short_errors_supported=no
  21947. fi
  21948. if test $_pkg_short_errors_supported = yes; then
  21949. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21950. else
  21951. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21952. fi
  21953. # Put the nasty error message in config.log where it belongs
  21954. echo "$LIBDRM_PKG_ERRORS" >&5
  21955. libdrm_avail=no
  21956. elif test $pkg_failed = untried; then
  21957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21958. printf "%s\n" "no" >&6; }
  21959. libdrm_avail=no
  21960. else
  21961. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  21962. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  21963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21964. printf "%s\n" "yes" >&6; }
  21965. libdrm_avail=yes
  21966. fi
  21967. pkg_failed=no
  21968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  21969. printf %s "checking for gbm >= 11.1.0... " >&6; }
  21970. if test -n "$LIBGBM_CFLAGS"; then
  21971. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  21972. elif test -n "$PKG_CONFIG"; then
  21973. if test -n "$PKG_CONFIG" && \
  21974. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21975. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21976. ac_status=$?
  21977. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21978. test $ac_status = 0; }; then
  21979. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  21980. test "x$?" != "x0" && pkg_failed=yes
  21981. else
  21982. pkg_failed=yes
  21983. fi
  21984. else
  21985. pkg_failed=untried
  21986. fi
  21987. if test -n "$LIBGBM_LIBS"; then
  21988. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  21989. elif test -n "$PKG_CONFIG"; then
  21990. if test -n "$PKG_CONFIG" && \
  21991. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21992. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21993. ac_status=$?
  21994. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21995. test $ac_status = 0; }; then
  21996. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  21997. test "x$?" != "x0" && pkg_failed=yes
  21998. else
  21999. pkg_failed=yes
  22000. fi
  22001. else
  22002. pkg_failed=untried
  22003. fi
  22004. if test $pkg_failed = yes; then
  22005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22006. printf "%s\n" "no" >&6; }
  22007. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22008. _pkg_short_errors_supported=yes
  22009. else
  22010. _pkg_short_errors_supported=no
  22011. fi
  22012. if test $_pkg_short_errors_supported = yes; then
  22013. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22014. else
  22015. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22016. fi
  22017. # Put the nasty error message in config.log where it belongs
  22018. echo "$LIBGBM_PKG_ERRORS" >&5
  22019. libgbm_avail=no
  22020. elif test $pkg_failed = untried; then
  22021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22022. printf "%s\n" "no" >&6; }
  22023. libgbm_avail=no
  22024. else
  22025. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22026. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22028. printf "%s\n" "yes" >&6; }
  22029. libgbm_avail=yes
  22030. fi
  22031. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22032. video_kmsdrm=yes
  22033. fi
  22034. if test x$video_kmsdrm = xyes; then
  22035. # Check whether --enable-kmsdrm-shared was given.
  22036. if test ${enable_kmsdrm_shared+y}
  22037. then :
  22038. enableval=$enable_kmsdrm_shared;
  22039. else $as_nop
  22040. enable_kmsdrm_shared=yes
  22041. fi
  22042. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22043. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22044. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22046. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22047. kmsdrm_shared=no
  22048. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22049. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22050. if test x$have_loadso != xyes && \
  22051. test x$enable_kmsdrm_shared = xyes; then
  22052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22053. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22054. fi
  22055. if test x$have_loadso = xyes && \
  22056. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22057. kmsdrm_shared=yes
  22058. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22059. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22060. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22061. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22062. else
  22063. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22064. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22065. fi
  22066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22067. printf "%s\n" "$kmsdrm_shared" >&6; }
  22068. if test x$kmsdrm_shared = xyes; then
  22069. echo "-- dynamic libdrm -> $drm_lib"
  22070. echo "-- dynamic libgbm -> $gbm_lib"
  22071. fi
  22072. have_video=yes
  22073. fi
  22074. fi
  22075. }
  22076. CheckDummyVideo()
  22077. {
  22078. # Check whether --enable-video-dummy was given.
  22079. if test ${enable_video_dummy+y}
  22080. then :
  22081. enableval=$enable_video_dummy;
  22082. else $as_nop
  22083. enable_video_dummy=yes
  22084. fi
  22085. if test x$enable_video_dummy = xyes; then
  22086. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22087. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22088. have_video=yes
  22089. SUMMARY_video="${SUMMARY_video} dummy"
  22090. fi
  22091. }
  22092. CheckOffscreenVideo()
  22093. {
  22094. # Check whether --enable-video-offscreen was given.
  22095. if test ${enable_video_offscreen+y}
  22096. then :
  22097. enableval=$enable_video_offscreen;
  22098. else $as_nop
  22099. enable_video_offscreen=yes
  22100. fi
  22101. if test x$enable_video_offscreen = xyes; then
  22102. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22103. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22104. have_video=yes
  22105. SUMMARY_video="${SUMMARY_video} offscreen"
  22106. fi
  22107. }
  22108. CheckQNXVideo()
  22109. {
  22110. if test x$enable_video = xyes; then
  22111. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22112. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22113. have_video=yes
  22114. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22115. SUMMARY_video="${SUMMARY_video} qnx"
  22116. fi
  22117. }
  22118. CheckQNXAudio()
  22119. {
  22120. if test x$enable_audio = xyes; then
  22121. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22122. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22123. have_audio=yes
  22124. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22125. SUMMARY_audio="${SUMMARY_audio} qsa"
  22126. fi
  22127. }
  22128. # Check whether --enable-video-opengl was given.
  22129. if test ${enable_video_opengl+y}
  22130. then :
  22131. enableval=$enable_video_opengl;
  22132. else $as_nop
  22133. enable_video_opengl=yes
  22134. fi
  22135. CheckGLX()
  22136. {
  22137. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22139. printf %s "checking for GLX support... " >&6; }
  22140. video_opengl_glx=no
  22141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22142. /* end confdefs.h. */
  22143. #include <GL/glx.h>
  22144. int
  22145. main (void)
  22146. {
  22147. ;
  22148. return 0;
  22149. }
  22150. _ACEOF
  22151. if ac_fn_c_try_compile "$LINENO"
  22152. then :
  22153. video_opengl_glx=yes
  22154. fi
  22155. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22157. printf "%s\n" "$video_opengl_glx" >&6; }
  22158. if test x$video_opengl_glx = xyes; then
  22159. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22160. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22161. fi
  22162. fi
  22163. }
  22164. # Check whether --enable-video-opengles was given.
  22165. if test ${enable_video_opengles+y}
  22166. then :
  22167. enableval=$enable_video_opengles;
  22168. else $as_nop
  22169. enable_video_opengles=yes
  22170. fi
  22171. # Check whether --enable-video-opengles1 was given.
  22172. if test ${enable_video_opengles1+y}
  22173. then :
  22174. enableval=$enable_video_opengles1;
  22175. else $as_nop
  22176. enable_video_opengles1=yes
  22177. fi
  22178. # Check whether --enable-video-opengles2 was given.
  22179. if test ${enable_video_opengles2+y}
  22180. then :
  22181. enableval=$enable_video_opengles2;
  22182. else $as_nop
  22183. enable_video_opengles2=yes
  22184. fi
  22185. CheckEGL()
  22186. {
  22187. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22189. printf %s "checking for EGL support... " >&6; }
  22190. video_opengl_egl=no
  22191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22192. /* end confdefs.h. */
  22193. #define LINUX
  22194. #define EGL_API_FB
  22195. #define MESA_EGL_NO_X11_HEADERS
  22196. #define EGL_NO_X11
  22197. #include <EGL/egl.h>
  22198. #include <EGL/eglext.h>
  22199. int
  22200. main (void)
  22201. {
  22202. ;
  22203. return 0;
  22204. }
  22205. _ACEOF
  22206. if ac_fn_c_try_compile "$LINENO"
  22207. then :
  22208. video_opengl_egl=yes
  22209. fi
  22210. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22212. printf "%s\n" "$video_opengl_egl" >&6; }
  22213. if test x$video_opengl_egl = xyes; then
  22214. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22215. fi
  22216. fi
  22217. }
  22218. CheckOpenGL()
  22219. {
  22220. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22222. printf %s "checking for OpenGL headers... " >&6; }
  22223. video_opengl=no
  22224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22225. /* end confdefs.h. */
  22226. #include <GL/gl.h>
  22227. #include <GL/glext.h>
  22228. int
  22229. main (void)
  22230. {
  22231. ;
  22232. return 0;
  22233. }
  22234. _ACEOF
  22235. if ac_fn_c_try_compile "$LINENO"
  22236. then :
  22237. video_opengl=yes
  22238. fi
  22239. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22241. printf "%s\n" "$video_opengl" >&6; }
  22242. if test x$video_opengl = xyes; then
  22243. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22244. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22245. SUMMARY_video="${SUMMARY_video} opengl"
  22246. fi
  22247. fi
  22248. }
  22249. CheckOpenGLES()
  22250. {
  22251. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22252. if test x$enable_video_opengles1 = xyes; then
  22253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22254. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22255. video_opengles_v1=no
  22256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22257. /* end confdefs.h. */
  22258. #include <GLES/gl.h>
  22259. #include <GLES/glext.h>
  22260. int
  22261. main (void)
  22262. {
  22263. ;
  22264. return 0;
  22265. }
  22266. _ACEOF
  22267. if ac_fn_c_try_compile "$LINENO"
  22268. then :
  22269. video_opengles_v1=yes
  22270. fi
  22271. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22273. printf "%s\n" "$video_opengles_v1" >&6; }
  22274. if test x$video_opengles_v1 = xyes; then
  22275. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22276. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22277. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22278. fi
  22279. fi
  22280. if test x$enable_video_opengles2 = xyes; then
  22281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22282. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22283. video_opengles_v2=no
  22284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22285. /* end confdefs.h. */
  22286. #include <GLES2/gl2.h>
  22287. #include <GLES2/gl2ext.h>
  22288. int
  22289. main (void)
  22290. {
  22291. ;
  22292. return 0;
  22293. }
  22294. _ACEOF
  22295. if ac_fn_c_try_compile "$LINENO"
  22296. then :
  22297. video_opengles_v2=yes
  22298. fi
  22299. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22301. printf "%s\n" "$video_opengles_v2" >&6; }
  22302. if test x$video_opengles_v2 = xyes; then
  22303. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22304. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22305. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22306. fi
  22307. fi
  22308. fi
  22309. }
  22310. CheckWINDOWSGL()
  22311. {
  22312. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22313. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22314. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22315. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22316. SUMMARY_video="${SUMMARY_video} opengl"
  22317. fi
  22318. }
  22319. CheckWINDOWSGLES()
  22320. {
  22321. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22323. printf %s "checking for EGL support... " >&6; }
  22324. video_opengl_egl=no
  22325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22326. /* end confdefs.h. */
  22327. #include <EGL/egl.h>
  22328. int
  22329. main (void)
  22330. {
  22331. ;
  22332. return 0;
  22333. }
  22334. _ACEOF
  22335. if ac_fn_c_try_compile "$LINENO"
  22336. then :
  22337. video_opengl_egl=yes
  22338. fi
  22339. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22341. printf "%s\n" "$video_opengl_egl" >&6; }
  22342. if test x$video_opengl_egl = xyes; then
  22343. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22344. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22345. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22346. fi
  22347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22348. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22349. video_opengles_v2=no
  22350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22351. /* end confdefs.h. */
  22352. #include <GLES2/gl2.h>
  22353. #include <GLES2/gl2ext.h>
  22354. int
  22355. main (void)
  22356. {
  22357. ;
  22358. return 0;
  22359. }
  22360. _ACEOF
  22361. if ac_fn_c_try_compile "$LINENO"
  22362. then :
  22363. video_opengles_v2=yes
  22364. fi
  22365. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22367. printf "%s\n" "$video_opengles_v2" >&6; }
  22368. if test x$video_opengles_v2 = xyes; then
  22369. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22370. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22371. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22372. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22373. fi
  22374. fi
  22375. }
  22376. CheckHaikuGL()
  22377. {
  22378. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22379. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22380. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22381. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22382. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22383. SUMMARY_video="${SUMMARY_video} opengl"
  22384. fi
  22385. }
  22386. CheckMacGL()
  22387. {
  22388. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22389. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22390. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22391. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22392. SUMMARY_video="${SUMMARY_video} opengl"
  22393. fi
  22394. }
  22395. CheckMacGLES()
  22396. {
  22397. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22398. video_opengl_egl=yes
  22399. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22400. video_opengles_v2=yes
  22401. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22402. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22403. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22404. fi
  22405. }
  22406. CheckEmscriptenGLES()
  22407. {
  22408. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22410. printf %s "checking for EGL support... " >&6; }
  22411. video_opengl_egl=no
  22412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22413. /* end confdefs.h. */
  22414. #include <EGL/egl.h>
  22415. int
  22416. main (void)
  22417. {
  22418. ;
  22419. return 0;
  22420. }
  22421. _ACEOF
  22422. if ac_fn_c_try_compile "$LINENO"
  22423. then :
  22424. video_opengl_egl=yes
  22425. fi
  22426. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22428. printf "%s\n" "$video_opengl_egl" >&6; }
  22429. if test x$video_opengl_egl = xyes; then
  22430. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22431. fi
  22432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22433. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22434. video_opengles_v2=no
  22435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22436. /* end confdefs.h. */
  22437. #include <GLES2/gl2.h>
  22438. #include <GLES2/gl2ext.h>
  22439. int
  22440. main (void)
  22441. {
  22442. ;
  22443. return 0;
  22444. }
  22445. _ACEOF
  22446. if ac_fn_c_try_compile "$LINENO"
  22447. then :
  22448. video_opengles_v2=yes
  22449. fi
  22450. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22452. printf "%s\n" "$video_opengles_v2" >&6; }
  22453. if test x$video_opengles_v2 = xyes; then
  22454. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22455. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22456. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22457. fi
  22458. fi
  22459. }
  22460. # Check whether --enable-video-vulkan was given.
  22461. if test ${enable_video_vulkan+y}
  22462. then :
  22463. enableval=$enable_video_vulkan;
  22464. else $as_nop
  22465. enable_video_vulkan=yes
  22466. fi
  22467. CheckVulkan()
  22468. {
  22469. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22470. case "$host" in
  22471. *-*-android*)
  22472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22473. /* end confdefs.h. */
  22474. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22475. #error Vulkan doesn't work on this configuration
  22476. #endif
  22477. int
  22478. main (void)
  22479. {
  22480. ;
  22481. return 0;
  22482. }
  22483. _ACEOF
  22484. if ac_fn_c_try_compile "$LINENO"
  22485. then :
  22486. else $as_nop
  22487. enable_video_vulkan=no
  22488. fi
  22489. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22490. ;;
  22491. *-*-darwin*)
  22492. save_CFLAGS="$CFLAGS"
  22493. CFLAGS="$CFLAGS -x objective-c"
  22494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22495. /* end confdefs.h. */
  22496. #include <Cocoa/Cocoa.h>
  22497. #include <Metal/Metal.h>
  22498. #include <QuartzCore/CAMetalLayer.h>
  22499. #if TARGET_CPU_X86
  22500. #error Vulkan doesn't work on this configuration
  22501. #endif
  22502. int
  22503. main (void)
  22504. {
  22505. ;
  22506. return 0;
  22507. }
  22508. _ACEOF
  22509. if ac_fn_c_try_compile "$LINENO"
  22510. then :
  22511. else $as_nop
  22512. enable_video_vulkan=no
  22513. fi
  22514. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22515. CFLAGS="$save_CFLAGS"
  22516. ;;
  22517. *)
  22518. ;;
  22519. esac
  22520. if test x$enable_video_vulkan = xno; then
  22521. # For reasons I am totally unable to see, I get an undefined macro error if
  22522. # I put this in the AC_TRY_COMPILE.
  22523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22524. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22525. fi
  22526. fi
  22527. if test x$have_loadso != xyes; then
  22528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22529. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22530. enable_video_vulkan=no
  22531. fi
  22532. if test x$enable_video_vulkan = xyes; then
  22533. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22534. SUMMARY_video="${SUMMARY_video} vulkan"
  22535. fi
  22536. }
  22537. CheckInputEvents()
  22538. {
  22539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22540. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22541. use_input_events=no
  22542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22543. /* end confdefs.h. */
  22544. #include <linux/input.h>
  22545. int
  22546. main (void)
  22547. {
  22548. #ifndef EVIOCGNAME
  22549. #error EVIOCGNAME() ioctl not available
  22550. #endif
  22551. ;
  22552. return 0;
  22553. }
  22554. _ACEOF
  22555. if ac_fn_c_try_compile "$LINENO"
  22556. then :
  22557. use_input_events=yes
  22558. fi
  22559. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22561. printf "%s\n" "$use_input_events" >&6; }
  22562. if test x$use_input_events = xyes; then
  22563. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22564. SUMMARY_input="${SUMMARY_input} linuxev"
  22565. fi
  22566. }
  22567. CheckInputKD()
  22568. {
  22569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22570. printf %s "checking for Linux kd.h... " >&6; }
  22571. use_input_kd=no
  22572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22573. /* end confdefs.h. */
  22574. #include <linux/kd.h>
  22575. #include <linux/keyboard.h>
  22576. #include <sys/ioctl.h>
  22577. int
  22578. main (void)
  22579. {
  22580. struct kbentry kbe;
  22581. kbe.kb_table = KG_CTRL;
  22582. ioctl(0, KDGKBENT, &kbe);
  22583. ;
  22584. return 0;
  22585. }
  22586. _ACEOF
  22587. if ac_fn_c_try_compile "$LINENO"
  22588. then :
  22589. use_input_kd=yes
  22590. fi
  22591. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22593. printf "%s\n" "$use_input_kd" >&6; }
  22594. if test x$use_input_kd = xyes; then
  22595. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22596. SUMMARY_input="${SUMMARY_input} linuxkd"
  22597. fi
  22598. }
  22599. CheckInputKBIO()
  22600. {
  22601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22602. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22603. use_input_kbio=no
  22604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22605. /* end confdefs.h. */
  22606. #include <sys/kbio.h>
  22607. #include <sys/ioctl.h>
  22608. int
  22609. main (void)
  22610. {
  22611. accentmap_t accTable;
  22612. ioctl(0, KDENABIO, 1);
  22613. ;
  22614. return 0;
  22615. }
  22616. _ACEOF
  22617. if ac_fn_c_try_compile "$LINENO"
  22618. then :
  22619. use_input_kbio=yes
  22620. fi
  22621. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22623. printf "%s\n" "$use_input_kbio" >&6; }
  22624. if test x$use_input_kbio = xyes; then
  22625. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22626. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22627. fi
  22628. }
  22629. CheckInputWSCONS()
  22630. {
  22631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22632. printf %s "checking for OpenBSD wscons... " >&6; }
  22633. use_input_wscons=no
  22634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22635. /* end confdefs.h. */
  22636. #include <sys/time.h>
  22637. #include <dev/wscons/wsconsio.h>
  22638. #include <dev/wscons/wsksymdef.h>
  22639. #include <dev/wscons/wsksymvar.h>
  22640. #include <sys/ioctl.h>
  22641. int
  22642. main (void)
  22643. {
  22644. struct wskbd_map_data data;
  22645. ioctl(0, WSKBDIO_GETMAP, &data);
  22646. ;
  22647. return 0;
  22648. }
  22649. _ACEOF
  22650. if ac_fn_c_try_compile "$LINENO"
  22651. then :
  22652. use_input_wscons=yes
  22653. fi
  22654. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  22656. printf "%s\n" "$use_input_wscons" >&6; }
  22657. if test x$use_input_wscons = xyes; then
  22658. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  22659. SUMMARY_input="${SUMMARY_input} wscons"
  22660. fi
  22661. }
  22662. CheckLibUDev()
  22663. {
  22664. # Check whether --enable-libudev was given.
  22665. if test ${enable_libudev+y}
  22666. then :
  22667. enableval=$enable_libudev;
  22668. else $as_nop
  22669. enable_libudev=yes
  22670. fi
  22671. if test x$enable_libudev = xyes; then
  22672. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  22673. if test "x$ac_cv_header_libudev_h" = xyes
  22674. then :
  22675. have_libudev_h_hdr=yes
  22676. else $as_nop
  22677. have_libudev_h_hdr=no
  22678. fi
  22679. if test x$have_libudev_h_hdr = xyes; then
  22680. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  22681. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22682. if test x$udev_lib != x; then
  22683. echo "-- dynamic udev -> $udev_lib"
  22684. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  22685. fi
  22686. fi
  22687. fi
  22688. }
  22689. CheckDBus()
  22690. {
  22691. # Check whether --enable-dbus was given.
  22692. if test ${enable_dbus+y}
  22693. then :
  22694. enableval=$enable_dbus;
  22695. else $as_nop
  22696. enable_dbus=yes
  22697. fi
  22698. if test x$enable_dbus = xyes; then
  22699. pkg_failed=no
  22700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  22701. printf %s "checking for dbus-1... " >&6; }
  22702. if test -n "$DBUS_CFLAGS"; then
  22703. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  22704. elif test -n "$PKG_CONFIG"; then
  22705. if test -n "$PKG_CONFIG" && \
  22706. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22707. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22708. ac_status=$?
  22709. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22710. test $ac_status = 0; }; then
  22711. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  22712. test "x$?" != "x0" && pkg_failed=yes
  22713. else
  22714. pkg_failed=yes
  22715. fi
  22716. else
  22717. pkg_failed=untried
  22718. fi
  22719. if test -n "$DBUS_LIBS"; then
  22720. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  22721. elif test -n "$PKG_CONFIG"; then
  22722. if test -n "$PKG_CONFIG" && \
  22723. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22724. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22725. ac_status=$?
  22726. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22727. test $ac_status = 0; }; then
  22728. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  22729. test "x$?" != "x0" && pkg_failed=yes
  22730. else
  22731. pkg_failed=yes
  22732. fi
  22733. else
  22734. pkg_failed=untried
  22735. fi
  22736. if test $pkg_failed = yes; then
  22737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22738. printf "%s\n" "no" >&6; }
  22739. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22740. _pkg_short_errors_supported=yes
  22741. else
  22742. _pkg_short_errors_supported=no
  22743. fi
  22744. if test $_pkg_short_errors_supported = yes; then
  22745. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  22746. else
  22747. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  22748. fi
  22749. # Put the nasty error message in config.log where it belongs
  22750. echo "$DBUS_PKG_ERRORS" >&5
  22751. have_dbus=no
  22752. elif test $pkg_failed = untried; then
  22753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22754. printf "%s\n" "no" >&6; }
  22755. have_dbus=no
  22756. else
  22757. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  22758. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  22759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22760. printf "%s\n" "yes" >&6; }
  22761. have_dbus=yes
  22762. fi
  22763. save_CPPFLAGS="$CPPFLAGS"
  22764. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  22765. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  22766. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  22767. then :
  22768. have_dbus_dbus_h_hdr=yes
  22769. else $as_nop
  22770. have_dbus_dbus_h_hdr=no
  22771. fi
  22772. CPPFLAGS="$save_CPPFLAGS"
  22773. if test x$have_dbus_dbus_h_hdr = xyes; then
  22774. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  22775. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  22776. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  22777. fi
  22778. fi
  22779. }
  22780. CheckIME()
  22781. {
  22782. # Check whether --enable-ime was given.
  22783. if test ${enable_ime+y}
  22784. then :
  22785. enableval=$enable_ime;
  22786. else $as_nop
  22787. enable_ime=yes
  22788. fi
  22789. if test x$enable_ime = xyes; then
  22790. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  22791. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  22792. fi
  22793. }
  22794. CheckInotify()
  22795. {
  22796. save_LIBS="$LIBS"
  22797. case "$host" in
  22798. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  22799. ;;
  22800. esac
  22801. for ac_header in sys/inotify.h
  22802. do :
  22803. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  22804. if test "x$ac_cv_header_sys_inotify_h" = xyes
  22805. then :
  22806. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  22807. have_inotify_inotify_h_hdr=yes
  22808. fi
  22809. done
  22810. for ac_func in inotify_init
  22811. do :
  22812. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  22813. if test "x$ac_cv_func_inotify_init" = xyes
  22814. then :
  22815. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  22816. have_inotify=yes
  22817. fi
  22818. done
  22819. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  22820. if test "x$ac_cv_func_inotify_init1" = xyes
  22821. then :
  22822. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  22823. fi
  22824. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  22825. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  22826. case "$host" in
  22827. *-*-freebsd*|*-*-dragonfly*)
  22828. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  22829. ;;
  22830. esac
  22831. fi
  22832. LIBS="$save_LIBS"
  22833. }
  22834. CheckIBus()
  22835. {
  22836. # Check whether --enable-ibus was given.
  22837. if test ${enable_ibus+y}
  22838. then :
  22839. enableval=$enable_ibus;
  22840. else $as_nop
  22841. enable_ibus=yes
  22842. fi
  22843. if test x$enable_ibus = xyes; then
  22844. pkg_failed=no
  22845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22846. printf %s "checking for ibus-1.0... " >&6; }
  22847. if test -n "$IBUS_CFLAGS"; then
  22848. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  22849. elif test -n "$PKG_CONFIG"; then
  22850. if test -n "$PKG_CONFIG" && \
  22851. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22852. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22853. ac_status=$?
  22854. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22855. test $ac_status = 0; }; then
  22856. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  22857. test "x$?" != "x0" && pkg_failed=yes
  22858. else
  22859. pkg_failed=yes
  22860. fi
  22861. else
  22862. pkg_failed=untried
  22863. fi
  22864. if test -n "$IBUS_LIBS"; then
  22865. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  22866. elif test -n "$PKG_CONFIG"; then
  22867. if test -n "$PKG_CONFIG" && \
  22868. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22869. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22870. ac_status=$?
  22871. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22872. test $ac_status = 0; }; then
  22873. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  22874. test "x$?" != "x0" && pkg_failed=yes
  22875. else
  22876. pkg_failed=yes
  22877. fi
  22878. else
  22879. pkg_failed=untried
  22880. fi
  22881. if test $pkg_failed = yes; then
  22882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22883. printf "%s\n" "no" >&6; }
  22884. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22885. _pkg_short_errors_supported=yes
  22886. else
  22887. _pkg_short_errors_supported=no
  22888. fi
  22889. if test $_pkg_short_errors_supported = yes; then
  22890. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22891. else
  22892. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22893. fi
  22894. # Put the nasty error message in config.log where it belongs
  22895. echo "$IBUS_PKG_ERRORS" >&5
  22896. have_ibus=no
  22897. elif test $pkg_failed = untried; then
  22898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22899. printf "%s\n" "no" >&6; }
  22900. have_ibus=no
  22901. else
  22902. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  22903. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  22904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22905. printf "%s\n" "yes" >&6; }
  22906. have_ibus=yes
  22907. fi
  22908. save_CPPFLAGS="$CPPFLAGS"
  22909. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  22910. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  22911. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  22912. then :
  22913. have_ibus_ibus_h_hdr=yes
  22914. else $as_nop
  22915. have_ibus_ibus_h_hdr=no
  22916. fi
  22917. CPPFLAGS="$save_CPPFLAGS"
  22918. if test x$have_ibus_ibus_h_hdr = xyes; then
  22919. if test x$enable_ime != xyes; then
  22920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  22921. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  22922. have_ibus_ibus_h_hdr=no
  22923. elif test x$enable_dbus != xyes; then
  22924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  22925. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  22926. have_ibus_ibus_h_hdr=no
  22927. elif test x$have_inotify_inotify_h_hdr != xyes; then
  22928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  22929. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  22930. have_ibus_ibus_h_hdr=no
  22931. else
  22932. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  22933. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  22934. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  22935. fi
  22936. fi
  22937. fi
  22938. }
  22939. CheckFcitx()
  22940. {
  22941. # Check whether --enable-fcitx was given.
  22942. if test ${enable_fcitx+y}
  22943. then :
  22944. enableval=$enable_fcitx;
  22945. else $as_nop
  22946. enable_fcitx=yes
  22947. fi
  22948. if test x$enable_fcitx = xyes; then
  22949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  22950. printf %s "checking for fcitx support... " >&6; }
  22951. have_fcitx=no
  22952. if test x$enable_ime != xyes; then
  22953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  22954. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  22955. elif test x$have_dbus_dbus_h_hdr != xyes; then
  22956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  22957. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  22958. else
  22959. have_fcitx=yes
  22960. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  22961. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  22962. fi
  22963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  22964. printf "%s\n" "$have_fcitx" >&6; }
  22965. fi
  22966. }
  22967. CheckJoystickMFI()
  22968. {
  22969. # Check whether --enable-joystick-mfi was given.
  22970. if test ${enable_joystick_mfi+y}
  22971. then :
  22972. enableval=$enable_joystick_mfi;
  22973. else $as_nop
  22974. enable_joystick_mfi=yes
  22975. fi
  22976. if test x$enable_joystick_mfi = xyes; then
  22977. save_CFLAGS="$CFLAGS"
  22978. save_LDFLAGS="$LDFLAGS"
  22979. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  22980. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  22982. printf %s "checking for GameController framework... " >&6; }
  22983. enable_joystick_mfi=no
  22984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22985. /* end confdefs.h. */
  22986. #include <AvailabilityMacros.h>
  22987. #include <TargetConditionals.h>
  22988. #import <GameController/GameController.h>
  22989. int
  22990. main (void)
  22991. {
  22992. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  22993. #error GameController framework doesn't work on this configuration
  22994. #endif
  22995. #if TARGET_CPU_X86
  22996. #error GameController framework doesn't work on this configuration
  22997. #endif
  22998. ;
  22999. return 0;
  23000. }
  23001. _ACEOF
  23002. if ac_fn_c_try_link "$LINENO"
  23003. then :
  23004. enable_joystick_mfi=yes
  23005. fi
  23006. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23007. conftest$ac_exeext conftest.$ac_ext
  23008. CFLAGS="$save_CFLAGS"
  23009. LDFLAGS="$save_LDFLAGS"
  23010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23011. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23012. if test x$enable_joystick_mfi = xyes; then
  23013. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23014. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23015. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23016. fi
  23017. fi
  23018. }
  23019. CheckPTHREAD()
  23020. {
  23021. case "$host" in
  23022. *-*-emscripten*)
  23023. enable_pthreads_default=no
  23024. ;;
  23025. *)
  23026. enable_pthreads_default=yes
  23027. ;;
  23028. esac
  23029. # Check whether --enable-pthreads was given.
  23030. if test ${enable_pthreads+y}
  23031. then :
  23032. enableval=$enable_pthreads;
  23033. else $as_nop
  23034. enable_pthreads=maybe
  23035. fi
  23036. # Check whether --enable-pthread-sem was given.
  23037. if test ${enable_pthread_sem+y}
  23038. then :
  23039. enableval=$enable_pthread_sem;
  23040. else $as_nop
  23041. enable_pthread_sem=maybe
  23042. fi
  23043. if test x$enable_pthreads = xmaybe; then
  23044. enable_pthreads=$enable_pthreads_default
  23045. fi
  23046. if test x$enable_pthread_sem = xmaybe; then
  23047. enable_pthread_sem=$enable_pthreads
  23048. fi
  23049. case "$host" in
  23050. *-*-android*)
  23051. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23052. pthread_lib=""
  23053. ;;
  23054. *-*-linux*|*-*-uclinux*)
  23055. pthread_cflags="-D_REENTRANT"
  23056. pthread_lib="-lpthread"
  23057. ;;
  23058. *-*-bsdi*)
  23059. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23060. pthread_lib=""
  23061. ;;
  23062. *-*-darwin*)
  23063. pthread_cflags="-D_THREAD_SAFE"
  23064. # causes Carbon.p complaints?
  23065. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23066. ;;
  23067. *-*-freebsd*|*-*-dragonfly*)
  23068. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23069. pthread_lib="-pthread"
  23070. ;;
  23071. *-*-netbsd*)
  23072. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23073. pthread_lib="-lpthread"
  23074. ;;
  23075. *-*-openbsd*)
  23076. pthread_cflags="-D_REENTRANT"
  23077. pthread_lib="-pthread"
  23078. ;;
  23079. *-*-solaris2.9)
  23080. # From Solaris 9+, posix4's preferred name is rt.
  23081. pthread_cflags="-D_REENTRANT"
  23082. pthread_lib="-lpthread -lrt"
  23083. ;;
  23084. *-*-solaris2.10)
  23085. # Solaris 10+ merged pthread into libc.
  23086. pthread_cflags="-D_REENTRANT"
  23087. pthread_lib="-lrt"
  23088. ;;
  23089. *-*-solaris*)
  23090. # Solaris 11+ merged rt into libc.
  23091. pthread_cflags="-D_REENTRANT"
  23092. pthread_lib=""
  23093. ;;
  23094. *-*-sysv5*)
  23095. pthread_cflags="-D_REENTRANT -Kthread"
  23096. pthread_lib=""
  23097. ;;
  23098. *-*-aix*)
  23099. pthread_cflags="-D_REENTRANT -mthreads"
  23100. pthread_lib="-lpthread"
  23101. ;;
  23102. *-*-hpux11*)
  23103. pthread_cflags="-D_REENTRANT"
  23104. pthread_lib="-L/usr/lib -lpthread"
  23105. ;;
  23106. *-*-haiku*)
  23107. pthread_cflags="-D_REENTRANT"
  23108. pthread_lib=""
  23109. ;;
  23110. *-*-nto*)
  23111. pthread_cflags="-D_REENTRANT"
  23112. pthread_lib=""
  23113. ;;
  23114. *-*-emscripten*)
  23115. pthread_cflags="-D_REENTRANT -pthread"
  23116. pthread_lib="-pthread"
  23117. ;;
  23118. *)
  23119. pthread_cflags="-D_REENTRANT"
  23120. pthread_lib="-lpthread"
  23121. ;;
  23122. esac
  23123. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23124. # Save the original compiler flags and libraries
  23125. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23126. # Add the pthread compiler flags and libraries
  23127. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23128. # Check to see if we have pthread support on this system
  23129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23130. printf %s "checking for pthreads... " >&6; }
  23131. use_pthreads=no
  23132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23133. /* end confdefs.h. */
  23134. #include <pthread.h>
  23135. int
  23136. main (void)
  23137. {
  23138. pthread_attr_t type;
  23139. pthread_attr_init(&type);
  23140. ;
  23141. return 0;
  23142. }
  23143. _ACEOF
  23144. if ac_fn_c_try_link "$LINENO"
  23145. then :
  23146. use_pthreads=yes
  23147. fi
  23148. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23149. conftest$ac_exeext conftest.$ac_ext
  23150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23151. printf "%s\n" "$use_pthreads" >&6; }
  23152. # Restore the compiler flags and libraries
  23153. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23154. # Do futher testing if we have pthread support...
  23155. if test x$use_pthreads = xyes; then
  23156. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23157. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23158. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23159. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23160. # Save the original compiler flags and libraries
  23161. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23162. # Add the pthread compiler flags and libraries
  23163. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23164. # Check to see if recursive mutexes are available
  23165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23166. printf %s "checking for recursive mutexes... " >&6; }
  23167. has_recursive_mutexes=no
  23168. if test x$has_recursive_mutexes = xno; then
  23169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23170. /* end confdefs.h. */
  23171. #define _GNU_SOURCE 1
  23172. #include <pthread.h>
  23173. int
  23174. main (void)
  23175. {
  23176. pthread_mutexattr_t attr;
  23177. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23178. ;
  23179. return 0;
  23180. }
  23181. _ACEOF
  23182. if ac_fn_c_try_link "$LINENO"
  23183. then :
  23184. has_recursive_mutexes=yes
  23185. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23186. fi
  23187. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23188. conftest$ac_exeext conftest.$ac_ext
  23189. fi
  23190. if test x$has_recursive_mutexes = xno; then
  23191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23192. /* end confdefs.h. */
  23193. #define _GNU_SOURCE 1
  23194. #include <pthread.h>
  23195. int
  23196. main (void)
  23197. {
  23198. pthread_mutexattr_t attr;
  23199. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23200. ;
  23201. return 0;
  23202. }
  23203. _ACEOF
  23204. if ac_fn_c_try_link "$LINENO"
  23205. then :
  23206. has_recursive_mutexes=yes
  23207. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23208. fi
  23209. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23210. conftest$ac_exeext conftest.$ac_ext
  23211. fi
  23212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23213. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23214. # Check to see if pthread semaphore support is missing
  23215. if test x$enable_pthread_sem = xyes; then
  23216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23217. printf %s "checking for pthread semaphores... " >&6; }
  23218. have_pthread_sem=no
  23219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23220. /* end confdefs.h. */
  23221. #include <pthread.h>
  23222. #include <semaphore.h>
  23223. int
  23224. main (void)
  23225. {
  23226. ;
  23227. return 0;
  23228. }
  23229. _ACEOF
  23230. if ac_fn_c_try_compile "$LINENO"
  23231. then :
  23232. have_pthread_sem=yes
  23233. fi
  23234. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23236. printf "%s\n" "$have_pthread_sem" >&6; }
  23237. fi
  23238. if test x$have_pthread_sem = xyes; then
  23239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23240. printf %s "checking for sem_timedwait... " >&6; }
  23241. have_sem_timedwait=no
  23242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23243. /* end confdefs.h. */
  23244. #include <pthread.h>
  23245. #include <semaphore.h>
  23246. int
  23247. main (void)
  23248. {
  23249. sem_timedwait(NULL, NULL);
  23250. ;
  23251. return 0;
  23252. }
  23253. _ACEOF
  23254. if ac_fn_c_try_link "$LINENO"
  23255. then :
  23256. have_sem_timedwait=yes
  23257. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23258. fi
  23259. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23260. conftest$ac_exeext conftest.$ac_ext
  23261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23262. printf "%s\n" "$have_sem_timedwait" >&6; }
  23263. fi
  23264. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23265. "
  23266. if test "x$ac_cv_header_pthread_np_h" = xyes
  23267. then :
  23268. have_pthread_np_h=yes
  23269. else $as_nop
  23270. have_pthread_np_h=no
  23271. fi
  23272. if test x$have_pthread_np_h = xyes; then
  23273. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23274. fi
  23275. # Check to see if pthread naming is available
  23276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23277. printf %s "checking for pthread_setname_np... " >&6; }
  23278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23279. /* end confdefs.h. */
  23280. /* Override any GCC internal prototype to avoid an error.
  23281. Use char because int might match the return type of a GCC
  23282. builtin and then its argument prototype would still apply. */
  23283. char pthread_setname_np ();
  23284. int
  23285. main (void)
  23286. {
  23287. return pthread_setname_np ();
  23288. ;
  23289. return 0;
  23290. }
  23291. _ACEOF
  23292. if ac_fn_c_try_link "$LINENO"
  23293. then :
  23294. has_pthread_setname_np=yes
  23295. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23296. else $as_nop
  23297. has_pthread_setname_np=no
  23298. fi
  23299. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23300. conftest$ac_exeext conftest.$ac_ext
  23301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23302. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23304. printf %s "checking for pthread_set_name_np... " >&6; }
  23305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23306. /* end confdefs.h. */
  23307. /* Override any GCC internal prototype to avoid an error.
  23308. Use char because int might match the return type of a GCC
  23309. builtin and then its argument prototype would still apply. */
  23310. char pthread_set_name_np ();
  23311. int
  23312. main (void)
  23313. {
  23314. return pthread_set_name_np ();
  23315. ;
  23316. return 0;
  23317. }
  23318. _ACEOF
  23319. if ac_fn_c_try_link "$LINENO"
  23320. then :
  23321. has_pthread_set_name_np=yes
  23322. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23323. else $as_nop
  23324. has_pthread_set_name_np=no
  23325. fi
  23326. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23327. conftest$ac_exeext conftest.$ac_ext
  23328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23329. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23330. # Restore the compiler flags and libraries
  23331. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23332. # Basic thread creation functions
  23333. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23334. # Semaphores
  23335. # We can fake these with mutexes and condition variables if necessary
  23336. if test x$have_pthread_sem = xyes; then
  23337. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23338. else
  23339. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23340. fi
  23341. # Mutexes
  23342. # We can fake these with semaphores if necessary
  23343. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23344. # Condition variables
  23345. # We can fake these with semaphores and mutexes if necessary
  23346. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23347. # Thread local storage
  23348. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23349. have_threads=yes
  23350. fi
  23351. fi
  23352. }
  23353. CheckWINDOWS()
  23354. {
  23355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23356. printf %s "checking Windows compiler... " >&6; }
  23357. have_win32_gcc=no
  23358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23359. /* end confdefs.h. */
  23360. #include <windows.h>
  23361. int
  23362. main (void)
  23363. {
  23364. ;
  23365. return 0;
  23366. }
  23367. _ACEOF
  23368. if ac_fn_c_try_compile "$LINENO"
  23369. then :
  23370. have_win32_gcc=yes
  23371. fi
  23372. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23374. printf "%s\n" "$have_win32_gcc" >&6; }
  23375. if test x$have_win32_gcc != xyes; then
  23376. as_fn_error $? "
  23377. *** Your compiler ($CC) does not produce Windows executables!
  23378. " "$LINENO" 5
  23379. fi
  23380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23381. printf %s "checking Windows CE... " >&6; }
  23382. have_wince=no
  23383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23384. /* end confdefs.h. */
  23385. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23386. #error This is not Windows CE
  23387. #endif
  23388. int
  23389. main (void)
  23390. {
  23391. ;
  23392. return 0;
  23393. }
  23394. _ACEOF
  23395. if ac_fn_c_try_compile "$LINENO"
  23396. then :
  23397. have_wince=yes
  23398. as_fn_error $? "
  23399. *** Sorry, Windows CE is no longer supported.
  23400. " "$LINENO" 5
  23401. fi
  23402. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23404. printf "%s\n" "$have_wince" >&6; }
  23405. # This fixes Windows stack alignment with newer GCC
  23406. CheckStackBoundary
  23407. # headers needed elsewhere
  23408. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23409. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23410. then :
  23411. have_tpcshrd_h=yes
  23412. fi
  23413. if test x$have_tpcshrd_h = xyes; then
  23414. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23415. fi
  23416. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23417. if test "x$ac_cv_header_roapi_h" = xyes
  23418. then :
  23419. have_roapi_h=yes
  23420. fi
  23421. if test x$have_roapi_h = xyes; then
  23422. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23423. fi
  23424. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23425. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23426. then :
  23427. have_shellscalingapi_h=yes
  23428. fi
  23429. if test x$shellscalingapi_h = xyes; then
  23430. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23431. fi
  23432. }
  23433. CheckOS2()
  23434. {
  23435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23436. printf %s "checking OS/2 compiler... " >&6; }
  23437. have_os2_gcc=no
  23438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23439. /* end confdefs.h. */
  23440. #include <os2.h>
  23441. int
  23442. main (void)
  23443. {
  23444. ;
  23445. return 0;
  23446. }
  23447. _ACEOF
  23448. if ac_fn_c_try_compile "$LINENO"
  23449. then :
  23450. have_os2_gcc=yes
  23451. fi
  23452. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23454. printf "%s\n" "$have_os2_gcc" >&6; }
  23455. if test x$have_os2_gcc != xyes; then
  23456. as_fn_error $? "
  23457. *** Your compiler ($CC) does not produce OS/2 executables!
  23458. " "$LINENO" 5
  23459. fi
  23460. }
  23461. CheckDIRECTX()
  23462. {
  23463. # Check whether --enable-directx was given.
  23464. if test ${enable_directx+y}
  23465. then :
  23466. enableval=$enable_directx;
  23467. else $as_nop
  23468. enable_directx=yes
  23469. fi
  23470. if test x$enable_directx = xyes; then
  23471. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23472. if test "x$ac_cv_header_d3d9_h" = xyes
  23473. then :
  23474. have_d3d=yes
  23475. fi
  23476. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23477. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23478. then :
  23479. have_d3d11=yes
  23480. fi
  23481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  23482. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  23483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23484. /* end confdefs.h. */
  23485. #include <winsdkver.h>
  23486. #include <sdkddkver.h>
  23487. #include <d3d12.h>
  23488. ID3D12Device1 *device;
  23489. #if WDK_NTDDI_VERSION <= 0x0A000008
  23490. asdf
  23491. #endif
  23492. int
  23493. main (void)
  23494. {
  23495. ;
  23496. return 0;
  23497. }
  23498. _ACEOF
  23499. if ac_fn_c_try_compile "$LINENO"
  23500. then :
  23501. have_d3d12=yes
  23502. else $as_nop
  23503. have_d3d12=no
  23504. fi
  23505. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23507. printf "%s\n" "$have_d3d12" >&6; }
  23508. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23509. if test "x$ac_cv_header_ddraw_h" = xyes
  23510. then :
  23511. have_ddraw=yes
  23512. fi
  23513. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23514. if test "x$ac_cv_header_dsound_h" = xyes
  23515. then :
  23516. have_dsound=yes
  23517. fi
  23518. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23519. if test "x$ac_cv_header_dinput_h" = xyes
  23520. then :
  23521. have_dinput=yes
  23522. fi
  23523. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23524. if test "x$ac_cv_header_dxgi_h" = xyes
  23525. then :
  23526. have_dxgi=yes
  23527. fi
  23528. if test x$have_ddraw = xyes; then
  23529. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23530. fi
  23531. if test x$have_dinput = xyes; then
  23532. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23533. fi
  23534. if test x$have_dsound = xyes; then
  23535. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23536. fi
  23537. if test x$have_dxgi = xyes; then
  23538. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23539. fi
  23540. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23541. # FIXME: ...so force it off for now.
  23542. case "$host" in
  23543. *-*-cygwin*)
  23544. have_dinput=false
  23545. ;;
  23546. esac
  23547. fi
  23548. # Check whether --enable-xinput was given.
  23549. if test ${enable_xinput+y}
  23550. then :
  23551. enableval=$enable_xinput;
  23552. else $as_nop
  23553. enable_xinput=yes
  23554. fi
  23555. if test x$enable_xinput = xyes; then
  23556. have_xinput_gamepadex=no
  23557. have_xinput_stateex=no
  23558. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23559. if test "x$ac_cv_header_xinput_h" = xyes
  23560. then :
  23561. have_xinput=yes
  23562. fi
  23563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  23564. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  23565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23566. /* end confdefs.h. */
  23567. #include <windows.h>
  23568. #include <xinput.h>
  23569. XINPUT_GAMEPAD_EX x1;
  23570. int
  23571. main (void)
  23572. {
  23573. ;
  23574. return 0;
  23575. }
  23576. _ACEOF
  23577. if ac_fn_c_try_compile "$LINENO"
  23578. then :
  23579. have_xinput_gamepadex=yes
  23580. fi
  23581. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  23583. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  23584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  23585. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  23586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23587. /* end confdefs.h. */
  23588. #include <windows.h>
  23589. #include <xinput.h>
  23590. XINPUT_STATE_EX s1;
  23591. int
  23592. main (void)
  23593. {
  23594. ;
  23595. return 0;
  23596. }
  23597. _ACEOF
  23598. if ac_fn_c_try_compile "$LINENO"
  23599. then :
  23600. have_xinput_stateex=yes
  23601. fi
  23602. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  23604. printf "%s\n" "$have_xinput_stateex" >&6; }
  23605. if test x$have_xinput = xyes; then
  23606. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23607. fi
  23608. if test x$have_xinput_gamepadex = xyes; then
  23609. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  23610. fi
  23611. if test x$have_xinput_stateex = xyes; then
  23612. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  23613. fi
  23614. fi
  23615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23616. printf %s "checking for windows.gaming.input.h... " >&6; }
  23617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23618. /* end confdefs.h. */
  23619. #define COBJMACROS
  23620. #include <windows.gaming.input.h>
  23621. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23622. int
  23623. main (void)
  23624. {
  23625. ;
  23626. return 0;
  23627. }
  23628. _ACEOF
  23629. if ac_fn_c_try_compile "$LINENO"
  23630. then :
  23631. have_wgi=yes
  23632. else $as_nop
  23633. have_wgi=no
  23634. fi
  23635. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23637. printf "%s\n" "$have_wgi" >&6; }
  23638. if test x$have_wgi = xyes; then
  23639. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23640. fi
  23641. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23642. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23643. then :
  23644. have_wasapi=yes
  23645. fi
  23646. if test x$have_wasapi = xyes; then
  23647. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23648. fi
  23649. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23650. if test "x$ac_cv_header_audioclient_h" = xyes
  23651. then :
  23652. else $as_nop
  23653. have_wasapi=no
  23654. fi
  23655. if test x$have_wasapi = xyes; then
  23656. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23657. fi
  23658. # Check whether --enable-wasapi was given.
  23659. if test ${enable_wasapi+y}
  23660. then :
  23661. enableval=$enable_wasapi;
  23662. else $as_nop
  23663. enable_wasapi=yes
  23664. fi
  23665. }
  23666. CheckDLOPEN()
  23667. {
  23668. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23669. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23670. if test "x$ac_cv_header_dlfcn_h" = xyes
  23671. then :
  23672. have_dlfcn_h=yes
  23673. else $as_nop
  23674. have_dlfcn_h=no
  23675. fi
  23676. have_dlopen=no
  23677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23678. printf %s "checking for dlopen in -lc... " >&6; }
  23679. if test ${ac_cv_lib_c_dlopen+y}
  23680. then :
  23681. printf %s "(cached) " >&6
  23682. else $as_nop
  23683. ac_check_lib_save_LIBS=$LIBS
  23684. LIBS="-lc $LIBS"
  23685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23686. /* end confdefs.h. */
  23687. /* Override any GCC internal prototype to avoid an error.
  23688. Use char because int might match the return type of a GCC
  23689. builtin and then its argument prototype would still apply. */
  23690. char dlopen ();
  23691. int
  23692. main (void)
  23693. {
  23694. return dlopen ();
  23695. ;
  23696. return 0;
  23697. }
  23698. _ACEOF
  23699. if ac_fn_c_try_link "$LINENO"
  23700. then :
  23701. ac_cv_lib_c_dlopen=yes
  23702. else $as_nop
  23703. ac_cv_lib_c_dlopen=no
  23704. fi
  23705. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23706. conftest$ac_exeext conftest.$ac_ext
  23707. LIBS=$ac_check_lib_save_LIBS
  23708. fi
  23709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  23710. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  23711. if test "x$ac_cv_lib_c_dlopen" = xyes
  23712. then :
  23713. have_dlopen=yes
  23714. else $as_nop
  23715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  23716. printf %s "checking for dlopen in -ldl... " >&6; }
  23717. if test ${ac_cv_lib_dl_dlopen+y}
  23718. then :
  23719. printf %s "(cached) " >&6
  23720. else $as_nop
  23721. ac_check_lib_save_LIBS=$LIBS
  23722. LIBS="-ldl $LIBS"
  23723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23724. /* end confdefs.h. */
  23725. /* Override any GCC internal prototype to avoid an error.
  23726. Use char because int might match the return type of a GCC
  23727. builtin and then its argument prototype would still apply. */
  23728. char dlopen ();
  23729. int
  23730. main (void)
  23731. {
  23732. return dlopen ();
  23733. ;
  23734. return 0;
  23735. }
  23736. _ACEOF
  23737. if ac_fn_c_try_link "$LINENO"
  23738. then :
  23739. ac_cv_lib_dl_dlopen=yes
  23740. else $as_nop
  23741. ac_cv_lib_dl_dlopen=no
  23742. fi
  23743. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23744. conftest$ac_exeext conftest.$ac_ext
  23745. LIBS=$ac_check_lib_save_LIBS
  23746. fi
  23747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  23748. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  23749. if test "x$ac_cv_lib_dl_dlopen" = xyes
  23750. then :
  23751. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  23752. fi
  23753. fi
  23754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  23755. printf %s "checking for dlopen... " >&6; }
  23756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  23757. printf "%s\n" "$have_dlopen" >&6; }
  23758. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  23759. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  23760. if test x$enable_loadso = xyes; then
  23761. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  23762. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  23763. have_loadso=yes
  23764. fi
  23765. fi
  23766. }
  23767. CheckO_CLOEXEC()
  23768. {
  23769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  23770. printf %s "checking for O_CLOEXEC... " >&6; }
  23771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23772. /* end confdefs.h. */
  23773. #include <fcntl.h>
  23774. int flag = O_CLOEXEC;
  23775. int
  23776. main (void)
  23777. {
  23778. ;
  23779. return 0;
  23780. }
  23781. _ACEOF
  23782. if ac_fn_c_try_compile "$LINENO"
  23783. then :
  23784. have_o_cloexec=yes
  23785. else $as_nop
  23786. have_o_cloexec=no
  23787. fi
  23788. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  23790. printf "%s\n" "$have_o_cloexec" >&6; }
  23791. if test $have_o_cloexec = yes; then
  23792. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  23793. fi
  23794. }
  23795. CheckUSBHID()
  23796. {
  23797. case "$host" in
  23798. *-*-*bsd*|*-*-dragonfly*)
  23799. if test x$enable_joystick = xyes; then
  23800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  23801. printf %s "checking for hid_init in -lusbhid... " >&6; }
  23802. if test ${ac_cv_lib_usbhid_hid_init+y}
  23803. then :
  23804. printf %s "(cached) " >&6
  23805. else $as_nop
  23806. ac_check_lib_save_LIBS=$LIBS
  23807. LIBS="-lusbhid $LIBS"
  23808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23809. /* end confdefs.h. */
  23810. /* Override any GCC internal prototype to avoid an error.
  23811. Use char because int might match the return type of a GCC
  23812. builtin and then its argument prototype would still apply. */
  23813. char hid_init ();
  23814. int
  23815. main (void)
  23816. {
  23817. return hid_init ();
  23818. ;
  23819. return 0;
  23820. }
  23821. _ACEOF
  23822. if ac_fn_c_try_link "$LINENO"
  23823. then :
  23824. ac_cv_lib_usbhid_hid_init=yes
  23825. else $as_nop
  23826. ac_cv_lib_usbhid_hid_init=no
  23827. fi
  23828. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23829. conftest$ac_exeext conftest.$ac_ext
  23830. LIBS=$ac_check_lib_save_LIBS
  23831. fi
  23832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  23833. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  23834. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  23835. then :
  23836. have_libusbhid=yes
  23837. fi
  23838. if test x$have_libusbhid = xyes; then
  23839. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  23840. if test "x$ac_cv_header_usbhid_h" = xyes
  23841. then :
  23842. USB_CFLAGS="-DHAVE_USBHID_H"
  23843. fi
  23844. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  23845. if test "x$ac_cv_header_libusbhid_h" = xyes
  23846. then :
  23847. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  23848. fi
  23849. USB_LIBS="$USB_LIBS -lusbhid"
  23850. else
  23851. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  23852. if test "x$ac_cv_header_usb_h" = xyes
  23853. then :
  23854. USB_CFLAGS="-DHAVE_USB_H"
  23855. fi
  23856. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23857. if test "x$ac_cv_header_libusb_h" = xyes
  23858. then :
  23859. USB_CFLAGS="-DHAVE_LIBUSB_H"
  23860. fi
  23861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  23862. printf %s "checking for hid_init in -lusb... " >&6; }
  23863. if test ${ac_cv_lib_usb_hid_init+y}
  23864. then :
  23865. printf %s "(cached) " >&6
  23866. else $as_nop
  23867. ac_check_lib_save_LIBS=$LIBS
  23868. LIBS="-lusb $LIBS"
  23869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23870. /* end confdefs.h. */
  23871. /* Override any GCC internal prototype to avoid an error.
  23872. Use char because int might match the return type of a GCC
  23873. builtin and then its argument prototype would still apply. */
  23874. char hid_init ();
  23875. int
  23876. main (void)
  23877. {
  23878. return hid_init ();
  23879. ;
  23880. return 0;
  23881. }
  23882. _ACEOF
  23883. if ac_fn_c_try_link "$LINENO"
  23884. then :
  23885. ac_cv_lib_usb_hid_init=yes
  23886. else $as_nop
  23887. ac_cv_lib_usb_hid_init=no
  23888. fi
  23889. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23890. conftest$ac_exeext conftest.$ac_ext
  23891. LIBS=$ac_check_lib_save_LIBS
  23892. fi
  23893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  23894. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  23895. if test "x$ac_cv_lib_usb_hid_init" = xyes
  23896. then :
  23897. USB_LIBS="$USB_LIBS -lusb"
  23898. fi
  23899. fi
  23900. save_CFLAGS="$CFLAGS"
  23901. CFLAGS="$CFLAGS $USB_CFLAGS"
  23902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  23903. printf %s "checking for usbhid... " >&6; }
  23904. have_usbhid=no
  23905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23906. /* end confdefs.h. */
  23907. #include <sys/types.h>
  23908. #if defined(HAVE_USB_H)
  23909. #include <usb.h>
  23910. #endif
  23911. #ifdef __DragonFly__
  23912. # include <bus/u4b/usb.h>
  23913. # include <bus/u4b/usbhid.h>
  23914. #else
  23915. # include <dev/usb/usb.h>
  23916. # include <dev/usb/usbhid.h>
  23917. #endif
  23918. #if defined(HAVE_USBHID_H)
  23919. #include <usbhid.h>
  23920. #elif defined(HAVE_LIBUSB_H)
  23921. #include <libusb.h>
  23922. #elif defined(HAVE_LIBUSBHID_H)
  23923. #include <libusbhid.h>
  23924. #endif
  23925. int
  23926. main (void)
  23927. {
  23928. struct report_desc *repdesc;
  23929. struct usb_ctl_report *repbuf;
  23930. hid_kind_t hidkind;
  23931. ;
  23932. return 0;
  23933. }
  23934. _ACEOF
  23935. if ac_fn_c_try_compile "$LINENO"
  23936. then :
  23937. have_usbhid=yes
  23938. fi
  23939. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  23941. printf "%s\n" "$have_usbhid" >&6; }
  23942. if test x$have_usbhid = xyes; then
  23943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  23944. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  23945. have_usbhid_ucr_data=no
  23946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23947. /* end confdefs.h. */
  23948. #include <sys/types.h>
  23949. #if defined(HAVE_USB_H)
  23950. #include <usb.h>
  23951. #endif
  23952. #ifdef __DragonFly__
  23953. # include <bus/u4b/usb.h>
  23954. # include <bus/u4b/usbhid.h>
  23955. #else
  23956. # include <dev/usb/usb.h>
  23957. # include <dev/usb/usbhid.h>
  23958. #endif
  23959. #if defined(HAVE_USBHID_H)
  23960. #include <usbhid.h>
  23961. #elif defined(HAVE_LIBUSB_H)
  23962. #include <libusb.h>
  23963. #elif defined(HAVE_LIBUSBHID_H)
  23964. #include <libusbhid.h>
  23965. #endif
  23966. int
  23967. main (void)
  23968. {
  23969. struct usb_ctl_report buf;
  23970. if (buf.ucr_data) { }
  23971. ;
  23972. return 0;
  23973. }
  23974. _ACEOF
  23975. if ac_fn_c_try_compile "$LINENO"
  23976. then :
  23977. have_usbhid_ucr_data=yes
  23978. fi
  23979. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23980. if test x$have_usbhid_ucr_data = xyes; then
  23981. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  23982. fi
  23983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  23984. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  23985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  23986. printf %s "checking for new usbhid API... " >&6; }
  23987. have_usbhid_new=no
  23988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23989. /* end confdefs.h. */
  23990. #include <sys/types.h>
  23991. #if defined(HAVE_USB_H)
  23992. #include <usb.h>
  23993. #endif
  23994. #ifdef __DragonFly__
  23995. #include <bus/u4b/usb.h>
  23996. #include <bus/u4b/usbhid.h>
  23997. #else
  23998. #include <dev/usb/usb.h>
  23999. #include <dev/usb/usbhid.h>
  24000. #endif
  24001. #if defined(HAVE_USBHID_H)
  24002. #include <usbhid.h>
  24003. #elif defined(HAVE_LIBUSB_H)
  24004. #include <libusb.h>
  24005. #elif defined(HAVE_LIBUSBHID_H)
  24006. #include <libusbhid.h>
  24007. #endif
  24008. int
  24009. main (void)
  24010. {
  24011. report_desc_t d;
  24012. hid_start_parse(d, 1, 1);
  24013. ;
  24014. return 0;
  24015. }
  24016. _ACEOF
  24017. if ac_fn_c_try_compile "$LINENO"
  24018. then :
  24019. have_usbhid_new=yes
  24020. fi
  24021. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24022. if test x$have_usbhid_new = xyes; then
  24023. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24024. fi
  24025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24026. printf "%s\n" "$have_usbhid_new" >&6; }
  24027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24028. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24029. have_machine_joystick=no
  24030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24031. /* end confdefs.h. */
  24032. #include <machine/joystick.h>
  24033. int
  24034. main (void)
  24035. {
  24036. struct joystick t;
  24037. ;
  24038. return 0;
  24039. }
  24040. _ACEOF
  24041. if ac_fn_c_try_compile "$LINENO"
  24042. then :
  24043. have_machine_joystick=yes
  24044. fi
  24045. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24046. if test x$have_machine_joystick = xyes; then
  24047. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24048. fi
  24049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24050. printf "%s\n" "$have_machine_joystick" >&6; }
  24051. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24052. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24053. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24054. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24055. have_joystick=yes
  24056. fi
  24057. CFLAGS="$save_CFLAGS"
  24058. fi
  24059. ;;
  24060. esac
  24061. }
  24062. CheckHIDAPI()
  24063. {
  24064. # Check whether --enable-hidapi-joystick was given.
  24065. if test ${enable_hidapi_joystick+y}
  24066. then :
  24067. enableval=$enable_hidapi_joystick;
  24068. else $as_nop
  24069. enable_hidapi_joystick=yes
  24070. fi
  24071. # Check whether --enable-hidapi-libusb was given.
  24072. if test ${enable_hidapi_libusb+y}
  24073. then :
  24074. enableval=$enable_hidapi_libusb;
  24075. else $as_nop
  24076. enable_hidapi_libusb=maybe
  24077. fi
  24078. if test x$enable_hidapi = xyes; then
  24079. case "$host" in
  24080. # libusb does not support iOS
  24081. *-ios-* )
  24082. enable_hidapi_libusb=no
  24083. ;;
  24084. # On the other hand, *BSD specifically uses libusb only
  24085. *-*-*bsd* )
  24086. enable_hidapi_libusb=yes
  24087. require_hidapi_libusb=yes
  24088. ;;
  24089. *-*-os2* )
  24090. enable_hidapi_libusb=yes
  24091. ;;
  24092. esac
  24093. hidapi_support=yes
  24094. if test x$enable_hidapi_libusb = xyes; then
  24095. pkg_failed=no
  24096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24097. printf %s "checking for libusb-1.0... " >&6; }
  24098. if test -n "$LIBUSB_CFLAGS"; then
  24099. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24100. elif test -n "$PKG_CONFIG"; then
  24101. if test -n "$PKG_CONFIG" && \
  24102. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24103. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24104. ac_status=$?
  24105. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24106. test $ac_status = 0; }; then
  24107. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24108. test "x$?" != "x0" && pkg_failed=yes
  24109. else
  24110. pkg_failed=yes
  24111. fi
  24112. else
  24113. pkg_failed=untried
  24114. fi
  24115. if test -n "$LIBUSB_LIBS"; then
  24116. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24117. elif test -n "$PKG_CONFIG"; then
  24118. if test -n "$PKG_CONFIG" && \
  24119. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24120. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24121. ac_status=$?
  24122. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24123. test $ac_status = 0; }; then
  24124. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24125. test "x$?" != "x0" && pkg_failed=yes
  24126. else
  24127. pkg_failed=yes
  24128. fi
  24129. else
  24130. pkg_failed=untried
  24131. fi
  24132. if test $pkg_failed = yes; then
  24133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24134. printf "%s\n" "no" >&6; }
  24135. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24136. _pkg_short_errors_supported=yes
  24137. else
  24138. _pkg_short_errors_supported=no
  24139. fi
  24140. if test $_pkg_short_errors_supported = yes; then
  24141. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24142. else
  24143. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24144. fi
  24145. # Put the nasty error message in config.log where it belongs
  24146. echo "$LIBUSB_PKG_ERRORS" >&5
  24147. have_libusb=no
  24148. elif test $pkg_failed = untried; then
  24149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24150. printf "%s\n" "no" >&6; }
  24151. have_libusb=no
  24152. else
  24153. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24154. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24156. printf "%s\n" "yes" >&6; }
  24157. have_libusb=yes
  24158. fi
  24159. save_CPPFLAGS="$CPPFLAGS"
  24160. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24161. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24162. if test "x$ac_cv_header_libusb_h" = xyes
  24163. then :
  24164. have_libusb_h=yes
  24165. else $as_nop
  24166. have_libusb_h=no
  24167. fi
  24168. CPPFLAGS="$save_CPPFLAGS"
  24169. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24170. hidapi_support=no
  24171. fi
  24172. fi
  24173. if test x$hidapi_support = xyes; then
  24174. if test x$have_libusb_h = xyes; then
  24175. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24176. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24177. if test x$require_hidapi_libusb = xyes; then
  24178. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24179. else
  24180. if test x$have_loadso != xyes; then
  24181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24182. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24183. fi
  24184. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24185. libusb_lib=""
  24186. case "$host" in
  24187. *-*-darwin* )
  24188. libusb_lib="libusb-1.0.0.dylib"
  24189. ;;
  24190. *-*-cygwin* | *-*-mingw* )
  24191. libusb_lib="libusb-1.0.dll"
  24192. ;;
  24193. *-*-os2* )
  24194. libusb_lib="usb100.dll"
  24195. ;;
  24196. esac
  24197. if test x$libusb_lib = x; then
  24198. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24199. fi
  24200. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24201. fi
  24202. fi
  24203. fi
  24204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24205. printf %s "checking for hidapi joystick support... " >&6; }
  24206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24207. printf "%s\n" "$hidapi_support" >&6; }
  24208. fi
  24209. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24210. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24211. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24212. fi
  24213. }
  24214. CheckClockGettime()
  24215. {
  24216. # Check whether --enable-clock_gettime was given.
  24217. if test ${enable_clock_gettime+y}
  24218. then :
  24219. enableval=$enable_clock_gettime;
  24220. else $as_nop
  24221. enable_clock_gettime=yes
  24222. fi
  24223. if test x$enable_clock_gettime = xyes; then
  24224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24225. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24226. if test ${ac_cv_lib_rt_clock_gettime+y}
  24227. then :
  24228. printf %s "(cached) " >&6
  24229. else $as_nop
  24230. ac_check_lib_save_LIBS=$LIBS
  24231. LIBS="-lrt $LIBS"
  24232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24233. /* end confdefs.h. */
  24234. /* Override any GCC internal prototype to avoid an error.
  24235. Use char because int might match the return type of a GCC
  24236. builtin and then its argument prototype would still apply. */
  24237. char clock_gettime ();
  24238. int
  24239. main (void)
  24240. {
  24241. return clock_gettime ();
  24242. ;
  24243. return 0;
  24244. }
  24245. _ACEOF
  24246. if ac_fn_c_try_link "$LINENO"
  24247. then :
  24248. ac_cv_lib_rt_clock_gettime=yes
  24249. else $as_nop
  24250. ac_cv_lib_rt_clock_gettime=no
  24251. fi
  24252. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24253. conftest$ac_exeext conftest.$ac_ext
  24254. LIBS=$ac_check_lib_save_LIBS
  24255. fi
  24256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24257. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24258. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24259. then :
  24260. have_clock_gettime=yes
  24261. fi
  24262. if test x$have_clock_gettime = xyes; then
  24263. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24264. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24265. else
  24266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24267. printf %s "checking for clock_gettime in -lc... " >&6; }
  24268. if test ${ac_cv_lib_c_clock_gettime+y}
  24269. then :
  24270. printf %s "(cached) " >&6
  24271. else $as_nop
  24272. ac_check_lib_save_LIBS=$LIBS
  24273. LIBS="-lc $LIBS"
  24274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24275. /* end confdefs.h. */
  24276. /* Override any GCC internal prototype to avoid an error.
  24277. Use char because int might match the return type of a GCC
  24278. builtin and then its argument prototype would still apply. */
  24279. char clock_gettime ();
  24280. int
  24281. main (void)
  24282. {
  24283. return clock_gettime ();
  24284. ;
  24285. return 0;
  24286. }
  24287. _ACEOF
  24288. if ac_fn_c_try_link "$LINENO"
  24289. then :
  24290. ac_cv_lib_c_clock_gettime=yes
  24291. else $as_nop
  24292. ac_cv_lib_c_clock_gettime=no
  24293. fi
  24294. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24295. conftest$ac_exeext conftest.$ac_ext
  24296. LIBS=$ac_check_lib_save_LIBS
  24297. fi
  24298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24299. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24300. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24301. then :
  24302. have_clock_gettime=yes
  24303. fi
  24304. if test x$have_clock_gettime = xyes; then
  24305. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24306. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  24307. fi
  24308. fi
  24309. fi
  24310. }
  24311. CheckLinuxVersion()
  24312. {
  24313. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24314. if test "x$ac_cv_header_linux_version_h" = xyes
  24315. then :
  24316. have_linux_version_h=yes
  24317. fi
  24318. if test x$have_linux_version_h = xyes; then
  24319. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24320. fi
  24321. }
  24322. CheckRPATH()
  24323. {
  24324. # Check whether --enable-rpath was given.
  24325. if test ${enable_rpath+y}
  24326. then :
  24327. enableval=$enable_rpath;
  24328. else $as_nop
  24329. enable_rpath=yes
  24330. fi
  24331. }
  24332. CheckEventSignals()
  24333. {
  24334. # Check whether --enable-backgrounding-signal was given.
  24335. if test ${enable_backgrounding_signal+y}
  24336. then :
  24337. enableval=$enable_backgrounding_signal;
  24338. else $as_nop
  24339. enable_backgrounding_signal=no
  24340. fi
  24341. if test x$enable_backgrounding_signal != xno; then
  24342. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24343. fi
  24344. # Check whether --enable-foregrounding-signal was given.
  24345. if test ${enable_foregrounding_signal+y}
  24346. then :
  24347. enableval=$enable_foregrounding_signal;
  24348. else $as_nop
  24349. enable_foregrounding_signal=no
  24350. fi
  24351. if test x$enable_foregrounding_signal != xno; then
  24352. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24353. fi
  24354. }
  24355. CheckVirtualJoystick()
  24356. {
  24357. # Check whether --enable-joystick-virtual was given.
  24358. if test ${enable_joystick_virtual+y}
  24359. then :
  24360. enableval=$enable_joystick_virtual;
  24361. else $as_nop
  24362. enable_joystick_virtual=yes
  24363. fi
  24364. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24365. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24366. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24367. have_joystick_virtual=yes
  24368. fi
  24369. }
  24370. CheckWarnAll
  24371. CheckNoStrictAliasing
  24372. CheckEventSignals
  24373. have_locale=no
  24374. case "$host" in
  24375. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24376. case "$host" in
  24377. *-*-android*)
  24378. # Android
  24379. ARCH=android
  24380. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24381. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24382. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24383. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24384. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24385. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24386. if test x$enable_video = xyes; then
  24387. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24388. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24389. SUMMARY_video="${SUMMARY_video} android"
  24390. have_video=yes
  24391. fi
  24392. ;;
  24393. *-*-linux*) ARCH=linux ;;
  24394. *-*-uclinux*) ARCH=linux ;;
  24395. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24396. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24397. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24398. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24399. *-*-bsdi*) ARCH=bsdi ;;
  24400. *-*-freebsd*) ARCH=freebsd ;;
  24401. *-*-dragonfly*) ARCH=freebsd ;;
  24402. *-*-netbsd*) ARCH=netbsd ;;
  24403. *-*-openbsd*) ARCH=openbsd ;;
  24404. *-*-sysv5*) ARCH=sysv5 ;;
  24405. *-*-solaris*) ARCH=solaris ;;
  24406. *-*-hpux*) ARCH=hpux ;;
  24407. *-*-aix*) ARCH=aix ;;
  24408. *-*-minix*) ARCH=minix ;;
  24409. *-*-nto*) ARCH=nto
  24410. CheckQNXVideo
  24411. ;;
  24412. esac
  24413. CheckVisibilityHidden
  24414. CheckDeclarationAfterStatement
  24415. CheckDummyVideo
  24416. CheckOffscreenVideo
  24417. CheckDiskAudio
  24418. CheckDummyAudio
  24419. CheckDLOPEN
  24420. CheckARM
  24421. CheckNEON
  24422. CheckO_CLOEXEC
  24423. CheckOSS
  24424. CheckALSA
  24425. CheckPipewire
  24426. CheckPulseAudio
  24427. CheckJACK
  24428. CheckARTSC
  24429. CheckESD
  24430. CheckNAS
  24431. CheckSNDIO
  24432. CheckFusionSound
  24433. CheckLibSampleRate
  24434. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24435. CheckRPI
  24436. CheckX11
  24437. CheckDirectFB
  24438. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24439. CheckEGL
  24440. CheckKMSDRM
  24441. CheckGLX
  24442. CheckOpenGL
  24443. CheckOpenGLES
  24444. CheckVulkan
  24445. CheckWayland
  24446. CheckInputEvents
  24447. CheckLibUDev
  24448. CheckDBus
  24449. CheckIME
  24450. CheckInotify
  24451. CheckIBus
  24452. CheckFcitx
  24453. case $ARCH in
  24454. linux)
  24455. CheckInputKD
  24456. ;;
  24457. freebsd)
  24458. CheckInputKBIO
  24459. ;;
  24460. openbsd|netbsd)
  24461. CheckInputWSCONS
  24462. ;;
  24463. esac
  24464. CheckUSBHID
  24465. CheckHIDAPI
  24466. CheckPTHREAD
  24467. CheckClockGettime
  24468. CheckLinuxVersion
  24469. CheckRPATH
  24470. CheckVivanteVideo
  24471. # Set up files for the misc library
  24472. if test x$enable_misc = xyes; then
  24473. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24474. have_misc=yes
  24475. fi
  24476. # Set up files for the locale library
  24477. if test x$enable_locale = xyes; then
  24478. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24479. have_locale=yes
  24480. fi
  24481. # Set up files for the audio library
  24482. if test x$enable_audio = xyes; then
  24483. case $ARCH in
  24484. sysv5|solaris|hpux)
  24485. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24486. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24487. SUMMARY_audio="${SUMMARY_audio} sun"
  24488. have_audio=yes
  24489. ;;
  24490. netbsd) # Don't use this on OpenBSD, it's busted.
  24491. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24492. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24493. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24494. have_audio=yes
  24495. ;;
  24496. aix)
  24497. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24498. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24499. SUMMARY_audio="${SUMMARY_audio} paudio"
  24500. have_audio=yes
  24501. ;;
  24502. android)
  24503. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24504. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24505. SUMMARY_audio="${SUMMARY_audio} android"
  24506. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24507. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24508. SUMMARY_audio="${SUMMARY_audio} openslES"
  24509. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24510. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24511. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24512. have_audio=yes
  24513. ;;
  24514. nto)
  24515. CheckQNXAudio
  24516. ;;
  24517. esac
  24518. fi
  24519. # Set up files for the joystick library
  24520. if test x$enable_joystick = xyes; then
  24521. case $ARCH in
  24522. linux)
  24523. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24524. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24525. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24526. have_joystick=yes
  24527. ;;
  24528. freebsd)
  24529. if test x$use_input_events = xyes; then
  24530. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24531. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24532. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24533. have_joystick=yes
  24534. fi
  24535. ;;
  24536. android)
  24537. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24538. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24539. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24540. have_joystick=yes
  24541. ;;
  24542. esac
  24543. fi
  24544. # Set up files for the haptic library
  24545. if test x$enable_haptic = xyes; then
  24546. case $ARCH in
  24547. linux|freebsd)
  24548. if test x$use_input_events = xyes; then
  24549. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24550. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24551. have_haptic=yes
  24552. fi
  24553. ;;
  24554. android)
  24555. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24556. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24557. have_haptic=yes
  24558. ;;
  24559. esac
  24560. fi
  24561. # Set up files for the sensor library
  24562. if test x$enable_sensor = xyes; then
  24563. case $ARCH in
  24564. android)
  24565. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24566. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24567. have_sensor=yes
  24568. ;;
  24569. esac
  24570. fi
  24571. # Set up files for the power library
  24572. if test x$enable_power = xyes; then
  24573. case $ARCH in
  24574. linux)
  24575. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24576. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24577. have_power=yes
  24578. ;;
  24579. android)
  24580. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24581. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24582. have_power=yes
  24583. ;;
  24584. esac
  24585. fi
  24586. # Set up files for the filesystem library
  24587. if test x$enable_filesystem = xyes; then
  24588. case $ARCH in
  24589. android)
  24590. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24591. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24592. have_filesystem=yes
  24593. ;;
  24594. *)
  24595. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24596. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24597. have_filesystem=yes
  24598. ;;
  24599. esac
  24600. fi
  24601. # Set up files for the timer library
  24602. if test x$enable_timers = xyes; then
  24603. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24604. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24605. have_timers=yes
  24606. fi
  24607. # Set up files for udev hotplugging support
  24608. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24609. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24610. fi
  24611. # Set up files for evdev input
  24612. if test x$use_input_events = xyes; then
  24613. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24614. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24615. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24616. fi
  24617. # Set up files for wscons input
  24618. if test x$use_input_wscons = xyes; then
  24619. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24620. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24621. fi
  24622. # Set up other core UNIX files
  24623. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24624. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24625. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24626. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24627. ;;
  24628. *-*-cygwin* | *-*-mingw*)
  24629. ARCH=win32
  24630. if test "$build" != "$host"; then # cross-compiling
  24631. # Default cross-compile location
  24632. ac_default_prefix=/usr/local/cross-tools/$host
  24633. else
  24634. # Look for the location of the tools and install there
  24635. if test "$BUILD_PREFIX" != ""; then
  24636. ac_default_prefix=$BUILD_PREFIX
  24637. fi
  24638. fi
  24639. if test x$enable_loadso = xyes; then
  24640. have_loadso=yes
  24641. fi
  24642. CheckGDwarf4
  24643. CheckDeclarationAfterStatement
  24644. CheckDummyVideo
  24645. CheckOffscreenVideo
  24646. CheckDiskAudio
  24647. CheckDummyAudio
  24648. CheckWINDOWS
  24649. CheckWINDOWSGL
  24650. CheckWINDOWSGLES
  24651. CheckVulkan
  24652. CheckDIRECTX
  24653. CheckHIDAPI
  24654. # Set up the core platform files
  24655. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24656. # Set up files for the misc library
  24657. if test x$enable_misc = xyes; then
  24658. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24659. have_misc=yes
  24660. fi
  24661. # Use the Windows locale APIs.
  24662. if test x$enable_locale = xyes; then
  24663. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24664. have_locale=yes
  24665. fi
  24666. # Set up files for the video library
  24667. if test x$enable_video = xyes; then
  24668. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24669. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24670. have_video=yes
  24671. # Check whether --enable-render-d3d was given.
  24672. if test ${enable_render_d3d+y}
  24673. then :
  24674. enableval=$enable_render_d3d;
  24675. else $as_nop
  24676. enable_render_d3d=yes
  24677. fi
  24678. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24679. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24680. SUMMARY_video="${SUMMARY_video} d3d9"
  24681. fi
  24682. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24683. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24684. SUMMARY_video="${SUMMARY_video} d3d11"
  24685. fi
  24686. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24687. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24688. SUMMARY_video="${SUMMARY_video} d3d12"
  24689. fi
  24690. fi
  24691. # Set up files for the audio library
  24692. if test x$enable_audio = xyes; then
  24693. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  24694. SUMMARY_audio="${SUMMARY_audio} winmm"
  24695. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  24696. if test x$have_dsound = xyes; then
  24697. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  24698. SUMMARY_audio="${SUMMARY_audio} directsound"
  24699. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  24700. fi
  24701. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  24702. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  24703. SUMMARY_audio="${SUMMARY_audio} wasapi"
  24704. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  24705. fi
  24706. have_audio=yes
  24707. fi
  24708. # Set up files for the joystick library
  24709. if test x$enable_joystick = xyes; then
  24710. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  24711. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  24712. if test x$have_xinput = xyes; then
  24713. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  24714. fi
  24715. if test x$have_wgi = xyes; then
  24716. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  24717. fi
  24718. if test x$have_dinput = xyes; then
  24719. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  24720. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  24721. fi
  24722. fi
  24723. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  24724. have_joystick=yes
  24725. fi
  24726. if test x$enable_haptic = xyes; then
  24727. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  24728. if test x$have_xinput = xyes; then
  24729. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  24730. fi
  24731. if test x$have_dinput = xyes; then
  24732. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  24733. fi
  24734. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  24735. have_haptic=yes
  24736. fi
  24737. fi
  24738. # Set up files for the sensor library
  24739. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  24740. if test "x$ac_cv_header_sensorsapi_h" = xyes
  24741. then :
  24742. have_winsensors=yes
  24743. else $as_nop
  24744. have_winsensors=no
  24745. fi
  24746. if test x$have_winsensors = xyes; then
  24747. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  24748. fi
  24749. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  24750. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  24751. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  24752. have_sensor=yes
  24753. fi
  24754. # Set up files for the power library
  24755. if test x$enable_power = xyes; then
  24756. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  24757. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  24758. have_power=yes
  24759. fi
  24760. # Set up files for the filesystem library
  24761. if test x$enable_filesystem = xyes; then
  24762. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  24763. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  24764. have_filesystem=yes
  24765. fi
  24766. # Set up files for the thread library
  24767. if test x$enable_threads = xyes; then
  24768. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  24769. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  24770. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  24771. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  24772. have_threads=yes
  24773. fi
  24774. # Set up files for the timer library
  24775. if test x$enable_timers = xyes; then
  24776. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  24777. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  24778. have_timers=yes
  24779. fi
  24780. # Set up files for the shared object loading library
  24781. if test x$enable_loadso = xyes; then
  24782. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  24783. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  24784. fi
  24785. # Set up the system libraries we need
  24786. if test -f /lib/w32api/libuuid.a; then
  24787. LIBUUID=/lib/w32api/libuuid.a
  24788. else
  24789. LIBUUID=-luuid
  24790. fi
  24791. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  24792. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  24793. # The Windows platform requires special setup
  24794. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  24795. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  24796. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  24797. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  24798. # Check to see if this is a mingw or cygwin build
  24799. have_mingw32=
  24800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  24801. printf %s "checking for main in -lmingw32... " >&6; }
  24802. if test ${ac_cv_lib_mingw32_main+y}
  24803. then :
  24804. printf %s "(cached) " >&6
  24805. else $as_nop
  24806. ac_check_lib_save_LIBS=$LIBS
  24807. LIBS="-lmingw32 $LIBS"
  24808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24809. /* end confdefs.h. */
  24810. int
  24811. main (void)
  24812. {
  24813. return main ();
  24814. ;
  24815. return 0;
  24816. }
  24817. _ACEOF
  24818. if ac_fn_c_try_link "$LINENO"
  24819. then :
  24820. ac_cv_lib_mingw32_main=yes
  24821. else $as_nop
  24822. ac_cv_lib_mingw32_main=no
  24823. fi
  24824. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24825. conftest$ac_exeext conftest.$ac_ext
  24826. LIBS=$ac_check_lib_save_LIBS
  24827. fi
  24828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  24829. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  24830. if test "x$ac_cv_lib_mingw32_main" = xyes
  24831. then :
  24832. have_mingw32=yes
  24833. fi
  24834. if test x$have_mingw32 = xyes; then
  24835. SDL_LIBS="-lmingw32 $SDL_LIBS"
  24836. else
  24837. SDL_LIBS="-lcygwin $SDL_LIBS"
  24838. fi
  24839. ;;
  24840. *-*-beos*)
  24841. as_fn_error $? "
  24842. *** BeOS support has been removed as of SDL 2.0.2.
  24843. " "$LINENO" 5
  24844. ;;
  24845. *-*-haiku*)
  24846. ARCH=haiku
  24847. ac_default_prefix=/boot/system
  24848. CheckDummyVideo
  24849. CheckOffscreenVideo
  24850. CheckDiskAudio
  24851. CheckDummyAudio
  24852. CheckDLOPEN
  24853. CheckO_CLOEXEC
  24854. CheckHaikuVideo
  24855. CheckHaikuGL
  24856. CheckPTHREAD
  24857. # Set up files for the audio library
  24858. if test x$enable_audio = xyes; then
  24859. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  24860. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  24861. SUMMARY_audio="${SUMMARY_audio} haiku"
  24862. have_audio=yes
  24863. fi
  24864. # Set up files for the joystick library
  24865. if test x$enable_joystick = xyes; then
  24866. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  24867. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  24868. have_joystick=yes
  24869. fi
  24870. # Set up files for the timer library
  24871. if test x$enable_timers = xyes; then
  24872. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  24873. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  24874. have_timers=yes
  24875. fi
  24876. # Set up files for the system power library
  24877. if test x$enable_power = xyes; then
  24878. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  24879. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  24880. have_power=yes
  24881. fi
  24882. # Set up files for the system filesystem library
  24883. if test x$enable_filesystem = xyes; then
  24884. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  24885. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  24886. have_filesystem=yes
  24887. fi
  24888. # Set up files for the misc library
  24889. if test x$enable_misc = xyes; then
  24890. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  24891. have_misc=yes
  24892. fi
  24893. # Set up files for the locale library
  24894. if test x$enable_locale = xyes; then
  24895. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  24896. have_locale=yes
  24897. fi
  24898. # The Haiku platform requires special setup.
  24899. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  24900. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  24901. ;;
  24902. *-ios-*)
  24903. ARCH=ios
  24904. CheckVisibilityHidden
  24905. CheckDeclarationAfterStatement
  24906. CheckDummyVideo
  24907. CheckOffscreenVideo
  24908. CheckDiskAudio
  24909. CheckDummyAudio
  24910. CheckDLOPEN
  24911. CheckO_CLOEXEC
  24912. CheckMETAL
  24913. CheckVulkan
  24914. CheckPTHREAD
  24915. # Set up files for the misc library
  24916. if test x$enable_misc = xyes; then
  24917. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  24918. have_misc=yes
  24919. fi
  24920. # Set up files for the locale library
  24921. if test x$enable_locale = xyes; then
  24922. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24923. have_locale=yes
  24924. fi
  24925. # Set up files for the audio library
  24926. if test x$enable_audio = xyes; then
  24927. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24928. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24929. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24930. have_audio=yes
  24931. fi
  24932. # Set up files for the joystick library
  24933. if test x$enable_joystick = xyes; then
  24934. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  24935. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24936. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24937. have_joystick=yes
  24938. else
  24939. # Need this code for accelerometer as joystick support
  24940. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24941. fi
  24942. # Set up files for the haptic library
  24943. #if test x$enable_haptic = xyes; then
  24944. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24945. # have_haptic=yes
  24946. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24947. #fi
  24948. # Set up files for the sensor library
  24949. if test x$enable_sensor = xyes; then
  24950. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  24951. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  24952. have_sensor=yes
  24953. fi
  24954. # Set up files for the power library
  24955. if test x$enable_power = xyes; then
  24956. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  24957. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  24958. have_power=yes
  24959. fi
  24960. # Set up files for the filesystem library
  24961. if test x$enable_filesystem = xyes; then
  24962. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24963. have_filesystem=yes
  24964. fi
  24965. # Set up additional files for the file library
  24966. if test x$enable_file = xyes; then
  24967. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24968. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24969. fi
  24970. # Set up files for the timer library
  24971. if test x$enable_timers = xyes; then
  24972. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24973. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24974. have_timers=yes
  24975. fi
  24976. # Set up other core UNIX files
  24977. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24978. # The iOS platform requires special setup.
  24979. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  24980. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  24981. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  24982. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  24983. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  24984. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  24985. SUMMARY_video="${SUMMARY_video} uikit"
  24986. have_video=yes
  24987. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  24988. if test x$enable_system_iconv = xyes; then
  24989. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  24990. fi
  24991. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  24992. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  24993. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  24994. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  24995. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  24996. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  24997. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  24998. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  24999. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25000. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25001. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25002. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25003. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25004. fi
  25005. ;;
  25006. *-*-darwin* )
  25007. # This could be either full "Mac OS X", or plain "Darwin" which is
  25008. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25009. # Next line is broken, and a few files below require Mac OS X (full)
  25010. ARCH=macosx
  25011. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25012. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25013. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25014. CheckObjectiveCARC
  25015. CheckVisibilityHidden
  25016. CheckDeclarationAfterStatement
  25017. CheckDummyVideo
  25018. CheckOffscreenVideo
  25019. CheckDiskAudio
  25020. CheckDummyAudio
  25021. CheckDLOPEN
  25022. CheckO_CLOEXEC
  25023. CheckCOCOA
  25024. CheckMETAL
  25025. CheckX11
  25026. CheckMacGL
  25027. CheckMacGLES
  25028. CheckGLX
  25029. CheckOpenGL
  25030. CheckVulkan
  25031. CheckPTHREAD
  25032. CheckHIDAPI
  25033. # Set up files for the misc library
  25034. if test x$enable_misc = xyes; then
  25035. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25036. have_misc=yes
  25037. fi
  25038. # Set up files for the locale library
  25039. if test x$enable_locale = xyes; then
  25040. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25041. have_locale=yes
  25042. fi
  25043. # Set up files for the audio library
  25044. if test x$enable_audio = xyes; then
  25045. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25046. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25047. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25048. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25049. have_audio=yes
  25050. fi
  25051. # Set up files for the joystick library
  25052. if test x$enable_joystick = xyes; then
  25053. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25054. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25055. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25056. CheckJoystickMFI
  25057. have_joystick=yes
  25058. fi
  25059. # Set up files for the haptic library
  25060. if test x$enable_haptic = xyes; then
  25061. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25062. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25063. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25064. have_haptic=yes
  25065. fi
  25066. # Set up files for the power library
  25067. if test x$enable_power = xyes; then
  25068. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25069. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25070. have_power=yes
  25071. fi
  25072. # Set up files for the filesystem library
  25073. if test x$enable_filesystem = xyes; then
  25074. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25075. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25076. have_filesystem=yes
  25077. fi
  25078. # Set up files for the timer library
  25079. if test x$enable_timers = xyes; then
  25080. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25081. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25082. have_timers=yes
  25083. fi
  25084. # Set up additional files for the file library
  25085. if test x$enable_file = xyes; then
  25086. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25087. fi
  25088. # Set up other core UNIX files
  25089. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25090. # The Mac OS X platform requires special setup.
  25091. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25092. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25093. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25094. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25095. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25096. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25097. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25098. fi
  25099. ;;
  25100. *-nacl|*-pnacl)
  25101. ARCH=nacl
  25102. CheckNativeClient
  25103. CheckDummyAudio
  25104. CheckDummyVideo
  25105. CheckOffscreenVideo
  25106. CheckInputEvents
  25107. CheckPTHREAD
  25108. CheckO_CLOEXEC
  25109. # Set up files for the timer library
  25110. if test x$enable_timers = xyes; then
  25111. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25112. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25113. have_timers=yes
  25114. fi
  25115. if test x$enable_filesystem = xyes; then
  25116. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25117. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25118. have_filesystem=yes
  25119. fi
  25120. ;;
  25121. *-*-emscripten* )
  25122. if test x$enable_video = xyes; then
  25123. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25124. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25125. have_video=yes
  25126. SUMMARY_video="${SUMMARY_video} emscripten"
  25127. fi
  25128. if test x$enable_audio = xyes; then
  25129. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25130. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25131. have_audio=yes
  25132. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25133. fi
  25134. CheckVisibilityHidden
  25135. CheckDeclarationAfterStatement
  25136. CheckDummyVideo
  25137. CheckOffscreenVideo
  25138. CheckDiskAudio
  25139. CheckDummyAudio
  25140. CheckPTHREAD
  25141. CheckDLOPEN
  25142. CheckClockGettime
  25143. CheckEmscriptenGLES
  25144. # Set up files for the misc library
  25145. if test x$enable_misc = xyes; then
  25146. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25147. have_misc=yes
  25148. fi
  25149. # Set up files for the power library
  25150. if test x$enable_power = xyes; then
  25151. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25152. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25153. have_power=yes
  25154. fi
  25155. # Set up files for the joystick library
  25156. if test x$enable_joystick = xyes; then
  25157. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25158. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25159. have_joystick=yes
  25160. fi
  25161. # Set up files for the filesystem library
  25162. if test x$enable_filesystem = xyes; then
  25163. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25164. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25165. have_filesystem=yes
  25166. fi
  25167. # Set up files for the timer library
  25168. if test x$enable_timers = xyes; then
  25169. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25170. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25171. have_timers=yes
  25172. fi
  25173. # Set up files for the locale library
  25174. if test x$enable_locale = xyes; then
  25175. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25176. have_locale=yes
  25177. fi
  25178. ;;
  25179. *-*-riscos*)
  25180. ARCH=riscos
  25181. CheckVisibilityHidden
  25182. CheckDeclarationAfterStatement
  25183. CheckDummyVideo
  25184. CheckOffscreenVideo
  25185. CheckDiskAudio
  25186. CheckDummyAudio
  25187. CheckDLOPEN
  25188. CheckO_CLOEXEC
  25189. CheckOSS
  25190. CheckPTHREAD
  25191. CheckClockGettime
  25192. # Set up files for the misc library
  25193. if test x$enable_misc = xyes; then
  25194. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25195. have_misc=yes
  25196. fi
  25197. # Set up files for the video library
  25198. if test x$enable_video = xyes; then
  25199. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25200. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25201. have_video=yes
  25202. SUMMARY_video="${SUMMARY_video} riscos"
  25203. fi
  25204. # Set up files for the filesystem library
  25205. if test x$enable_filesystem = xyes; then
  25206. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25207. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25208. have_filesystem=yes
  25209. fi
  25210. # Set up files for the timer library
  25211. if test x$enable_timers = xyes; then
  25212. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25213. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25214. have_timers=yes
  25215. fi
  25216. ;;
  25217. *-*-os2*)
  25218. ARCH=os2
  25219. if test "$build" != "$host"; then # cross-compiling
  25220. # Default cross-compile location
  25221. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25222. else
  25223. # Look for the location of the tools and install there
  25224. if test "$BUILD_PREFIX" != ""; then
  25225. ac_default_prefix=$BUILD_PREFIX
  25226. fi
  25227. fi
  25228. enable_static=no # disable static builds
  25229. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25230. CheckOS2
  25231. CheckDeclarationAfterStatement
  25232. CheckDummyVideo
  25233. CheckDiskAudio
  25234. CheckDummyAudio
  25235. CheckHIDAPI
  25236. # Set up the core platform files
  25237. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25238. if test x$enable_system_iconv = xyes; then
  25239. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25240. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25241. fi
  25242. fi
  25243. # Use the Unix locale APIs.
  25244. if test x$enable_locale = xyes; then
  25245. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25246. have_locale=yes
  25247. fi
  25248. # Set up files for the video library
  25249. if test x$enable_video = xyes; then
  25250. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25251. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25252. have_video=yes
  25253. SUMMARY_video="${SUMMARY_video} os/2"
  25254. fi
  25255. # Set up files for the audio library
  25256. if test x$enable_audio = xyes; then
  25257. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25258. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25259. have_audio=yes
  25260. SUMMARY_audio="${SUMMARY_audio} os/2"
  25261. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25262. fi
  25263. # Set up files for the thread library
  25264. if test x$enable_threads = xyes; then
  25265. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25266. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25267. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25268. have_threads=yes
  25269. fi
  25270. # Set up files for the timer library
  25271. if test x$enable_timers = xyes; then
  25272. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25273. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25274. have_timers=yes
  25275. fi
  25276. # Set up files for the shared object loading library
  25277. if test x$enable_loadso = xyes; then
  25278. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25279. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25280. have_loadso=yes
  25281. fi
  25282. # Set up files for the filesystem library
  25283. if test x$enable_filesystem = xyes; then
  25284. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25285. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25286. have_filesystem=yes
  25287. fi
  25288. # Set up files for the joystick library
  25289. if test x$enable_joystick = xyes; then
  25290. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25291. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25292. have_joystick=yes
  25293. fi
  25294. ;;
  25295. *)
  25296. as_fn_error $? "
  25297. *** Unsupported host: Please add to configure.ac
  25298. " "$LINENO" 5
  25299. ;;
  25300. esac
  25301. CheckVirtualJoystick
  25302. # Check whether to install sdl2-config
  25303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25304. printf %s "checking whether to install sdl2-config... " >&6; }
  25305. # Check whether --enable-sdl2-config was given.
  25306. if test ${enable_sdl2_config+y}
  25307. then :
  25308. enableval=$enable_sdl2_config; case "${enableval}" in
  25309. yes) enable_sdl2_config="TRUE" ;;
  25310. no) enable_sdl2_config="FALSE" ;;
  25311. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25312. esac
  25313. else $as_nop
  25314. enable_sdl2_config="TRUE"
  25315. fi
  25316. if test "$enable_sdl2_config" = "TRUE"; then
  25317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25318. printf "%s\n" "yes" >&6; }
  25319. else
  25320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25321. printf "%s\n" "no" >&6; }
  25322. fi
  25323. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25324. # Verify that we have all the platform specific files we need
  25325. if test x$have_audio != xyes; then
  25326. if test x$enable_audio = xyes; then
  25327. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25328. fi
  25329. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25330. fi
  25331. if test x$have_video != xyes; then
  25332. if test x$enable_video = xyes; then
  25333. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25334. fi
  25335. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25336. fi
  25337. if test x$have_misc != xyes; then
  25338. if test x$enable_misc = xyes; then
  25339. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25340. fi
  25341. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25342. fi
  25343. if test x$have_locale != xyes; then
  25344. if test x$enable_locale = xyes; then
  25345. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25346. fi
  25347. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25348. fi
  25349. if test x$have_joystick != xyes; then
  25350. if test x$enable_joystick = xyes; then
  25351. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25352. fi
  25353. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25354. fi
  25355. if test x$have_haptic != xyes; then
  25356. if test x$enable_haptic = xyes; then
  25357. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25358. fi
  25359. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25360. fi
  25361. if test x$have_sensor != xyes; then
  25362. if test x$enable_sensor = xyes; then
  25363. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25364. fi
  25365. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25366. fi
  25367. if test x$have_threads != xyes; then
  25368. if test x$enable_threads = xyes; then
  25369. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25370. fi
  25371. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25372. fi
  25373. if test x$have_timers != xyes; then
  25374. if test x$enable_timers = xyes; then
  25375. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25376. fi
  25377. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25378. fi
  25379. if test x$have_filesystem != xyes; then
  25380. if test x$enable_filesystem = xyes; then
  25381. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25382. fi
  25383. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25384. fi
  25385. if test x$have_loadso != xyes; then
  25386. if test x$enable_loadso = xyes; then
  25387. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25388. fi
  25389. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25390. fi
  25391. if test x$SDLMAIN_SOURCES = x; then
  25392. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25393. fi
  25394. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25395. if test x$video_wayland = xyes; then
  25396. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25397. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25398. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25399. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25400. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25401. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25402. echo ;\
  25403. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25404. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25405. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25406. echo ;\
  25407. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25408. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25409. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25410. echo ;\
  25411. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25412. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25413. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25414. done ;\
  25415. echo ;\
  25416. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25417. fi
  25418. OBJECTS=`echo $SOURCES`
  25419. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25420. for EXT in asm cc m c S; do
  25421. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25422. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25423. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25424. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25425. done
  25426. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25427. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25428. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25429. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25430. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25431. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25432. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25433. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25434. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25435. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25436. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25437. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25438. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25439. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25440. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25441. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25442. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25443. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25444. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25445. # Set runtime shared library paths as needed
  25446. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25447. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25448. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25450. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25451. have_enable_new_dtags=no
  25452. save_LDFLAGS="$LDFLAGS"
  25453. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25455. /* end confdefs.h. */
  25456. int
  25457. main (void)
  25458. {
  25459. ;
  25460. return 0;
  25461. }
  25462. _ACEOF
  25463. if ac_fn_c_try_link "$LINENO"
  25464. then :
  25465. have_enable_new_dtags=yes
  25466. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25467. fi
  25468. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25469. conftest$ac_exeext conftest.$ac_ext
  25470. LDFLAGS="$save_LDFLAGS"
  25471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25472. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25473. fi
  25474. if test $ARCH = solaris; then
  25475. SDL_RLD_FLAGS="-R\${libdir}"
  25476. fi
  25477. else
  25478. SDL_RLD_FLAGS=""
  25479. fi
  25480. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25481. pkg_cmakedir='$libdir/cmake/SDL2'
  25482. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25483. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25484. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25485. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25486. _lcl_receval="$_lcl_from"
  25487. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25488. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25489. _lcl_receval_old=''
  25490. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25491. _lcl_receval_old="$_lcl_receval"
  25492. eval _lcl_receval="\"$_lcl_receval\""
  25493. done
  25494. echo "$_lcl_receval")`
  25495. _lcl_receval="$_lcl_to"
  25496. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25497. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25498. _lcl_receval_old=''
  25499. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25500. _lcl_receval_old="$_lcl_receval"
  25501. eval _lcl_receval="\"$_lcl_receval\""
  25502. done
  25503. echo "$_lcl_receval")`
  25504. _lcl_notation="$_lcl_from$_lcl_to"
  25505. case ":$_lcl_from:" in
  25506. # change empty paths to '.'
  25507. ::) _lcl_from='.' ;;
  25508. # strip trailing slashes
  25509. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25510. :*:) ;;
  25511. esac
  25512. # squeeze repeated slashes
  25513. case '/' in
  25514. # if the path contains any backslashes, turn slashes into backslashes
  25515. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25516. # if the path contains slashes, also turn backslashes into slashes
  25517. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25518. esac
  25519. case ":$_lcl_to:" in
  25520. # change empty paths to '.'
  25521. ::) _lcl_to='.' ;;
  25522. # strip trailing slashes
  25523. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25524. :*:) ;;
  25525. esac
  25526. # squeeze repeated slashes
  25527. case '/' in
  25528. # if the path contains any backslashes, turn slashes into backslashes
  25529. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25530. # if the path contains slashes, also turn backslashes into slashes
  25531. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25532. esac
  25533. _lcl_common_prefix=''
  25534. _lcl_second_prefix_match=''
  25535. while test "$_lcl_second_prefix_match" != 0; do
  25536. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25537. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25538. if test "$_lcl_second_prefix_match" != 0; then
  25539. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25540. _lcl_common_prefix="$_lcl_first_prefix"
  25541. else
  25542. _lcl_second_prefix_match=0
  25543. fi
  25544. fi
  25545. done
  25546. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25547. _lcl_first_rel=''
  25548. _lcl_tmp='xxx'
  25549. while test "$_lcl_tmp" != ''; do
  25550. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25551. if test "$_lcl_first_suffix" != ''; then
  25552. _lcl_first_suffix="$_lcl_tmp"
  25553. _lcl_first_rel="../$_lcl_first_rel"
  25554. fi
  25555. done
  25556. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25557. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25558. case ":$_lcl_result_tmp:" in
  25559. # change empty paths to '.'
  25560. ::) _lcl_result_tmp='.' ;;
  25561. # strip trailing slashes
  25562. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25563. :*:) ;;
  25564. esac
  25565. # squeeze repeated slashes
  25566. case "$_lcl_notation" in
  25567. # if the path contains any backslashes, turn slashes into backslashes
  25568. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25569. # if the path contains slashes, also turn backslashes into slashes
  25570. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25571. esac
  25572. eval $_lcl_result_var='$_lcl_result_tmp'
  25573. done
  25574. if test x$enable_shared = xyes; then
  25575. PKGCONFIG_LIBS_PRIV="
  25576. Libs.private:"
  25577. ENABLE_SHARED_TRUE=
  25578. ENABLE_SHARED_FALSE="#"
  25579. else
  25580. PKGCONFIG_LIBS_PRIV=
  25581. ENABLE_SHARED_TRUE="#"
  25582. ENABLE_SHARED_FALSE=
  25583. fi
  25584. if test x$enable_static = xyes; then
  25585. ENABLE_STATIC_TRUE=
  25586. ENABLE_STATIC_FALSE="#"
  25587. else
  25588. ENABLE_STATIC_TRUE="#"
  25589. ENABLE_STATIC_FALSE=
  25590. fi
  25591. cat >Makefile.rules <<__EOF__
  25592. # Build rules for objects
  25593. -include \$(OBJECTS:.lo=.d)
  25594. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25595. $srcdir/src/SDL.c: update-revision
  25596. $DEPENDS
  25597. $VERSION_DEPENDS
  25598. $SDLMAIN_DEPENDS
  25599. $SDLTEST_DEPENDS
  25600. $WAYLAND_PROTOCOLS_DEPENDS
  25601. __EOF__
  25602. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25603. ac_config_commands="$ac_config_commands sdl2_config"
  25604. SUMMARY="SDL2 Configure Summary:\n"
  25605. if test x$enable_shared = xyes; then
  25606. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25607. fi
  25608. if test x$enable_static = xyes; then
  25609. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25610. fi
  25611. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25612. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25613. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25614. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25615. if test x$have_x = xyes; then
  25616. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25617. fi
  25618. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25619. if test x$have_joystick_virtual = xyes; then
  25620. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25621. else
  25622. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25623. fi
  25624. if test x$have_samplerate_h_hdr = xyes; then
  25625. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25626. else
  25627. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25628. fi
  25629. if test x$have_libudev_h_hdr = xyes; then
  25630. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25631. else
  25632. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25633. fi
  25634. if test x$have_dbus_dbus_h_hdr = xyes; then
  25635. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25636. else
  25637. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25638. fi
  25639. if test x$enable_ime = xyes; then
  25640. SUMMARY="${SUMMARY}Using ime : YES\n"
  25641. else
  25642. SUMMARY="${SUMMARY}Using ime : NO\n"
  25643. fi
  25644. if test x$have_ibus_ibus_h_hdr = xyes; then
  25645. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25646. else
  25647. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25648. fi
  25649. if test x$have_fcitx = xyes; then
  25650. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25651. else
  25652. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25653. fi
  25654. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25655. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25656. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25657. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25658. SUMMARY="${SUMMARY}configure script with:\n"
  25659. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25660. fi
  25661. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25662. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25663. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25664. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25665. SUMMARY="${SUMMARY}configure script with:\n"
  25666. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25667. fi
  25668. ac_config_commands="$ac_config_commands summary"
  25669. cat >confcache <<\_ACEOF
  25670. # This file is a shell script that caches the results of configure
  25671. # tests run on this system so they can be shared between configure
  25672. # scripts and configure runs, see configure's option --config-cache.
  25673. # It is not useful on other systems. If it contains results you don't
  25674. # want to keep, you may remove or edit it.
  25675. #
  25676. # config.status only pays attention to the cache file if you give it
  25677. # the --recheck option to rerun configure.
  25678. #
  25679. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25680. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25681. # following values.
  25682. _ACEOF
  25683. # The following way of writing the cache mishandles newlines in values,
  25684. # but we know of no workaround that is simple, portable, and efficient.
  25685. # So, we kill variables containing newlines.
  25686. # Ultrix sh set writes to stderr and can't be redirected directly,
  25687. # and sets the high bit in the cache file unless we assign to the vars.
  25688. (
  25689. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25690. eval ac_val=\$$ac_var
  25691. case $ac_val in #(
  25692. *${as_nl}*)
  25693. case $ac_var in #(
  25694. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25695. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25696. esac
  25697. case $ac_var in #(
  25698. _ | IFS | as_nl) ;; #(
  25699. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25700. *) { eval $ac_var=; unset $ac_var;} ;;
  25701. esac ;;
  25702. esac
  25703. done
  25704. (set) 2>&1 |
  25705. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25706. *${as_nl}ac_space=\ *)
  25707. # `set' does not quote correctly, so add quotes: double-quote
  25708. # substitution turns \\\\ into \\, and sed turns \\ into \.
  25709. sed -n \
  25710. "s/'/'\\\\''/g;
  25711. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25712. ;; #(
  25713. *)
  25714. # `set' quotes correctly as required by POSIX, so do not add quotes.
  25715. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25716. ;;
  25717. esac |
  25718. sort
  25719. ) |
  25720. sed '
  25721. /^ac_cv_env_/b end
  25722. t clear
  25723. :clear
  25724. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  25725. t end
  25726. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25727. :end' >>confcache
  25728. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25729. if test -w "$cache_file"; then
  25730. if test "x$cache_file" != "x/dev/null"; then
  25731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25732. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  25733. if test ! -f "$cache_file" || test -h "$cache_file"; then
  25734. cat confcache >"$cache_file"
  25735. else
  25736. case $cache_file in #(
  25737. */* | ?:*)
  25738. mv -f confcache "$cache_file"$$ &&
  25739. mv -f "$cache_file"$$ "$cache_file" ;; #(
  25740. *)
  25741. mv -f confcache "$cache_file" ;;
  25742. esac
  25743. fi
  25744. fi
  25745. else
  25746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  25747. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  25748. fi
  25749. fi
  25750. rm -f confcache
  25751. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25752. # Let make expand exec_prefix.
  25753. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25754. DEFS=-DHAVE_CONFIG_H
  25755. ac_libobjs=
  25756. ac_ltlibobjs=
  25757. U=
  25758. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25759. # 1. Remove the extension, and $U if already installed.
  25760. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25761. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  25762. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25763. # will be set to the directory where LIBOBJS objects are built.
  25764. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25765. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  25766. done
  25767. LIBOBJS=$ac_libobjs
  25768. LTLIBOBJS=$ac_ltlibobjs
  25769. : "${CONFIG_STATUS=./config.status}"
  25770. ac_write_fail=0
  25771. ac_clean_files_save=$ac_clean_files
  25772. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  25774. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  25775. as_write_fail=0
  25776. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  25777. #! $SHELL
  25778. # Generated by $as_me.
  25779. # Run this file to recreate the current configuration.
  25780. # Compiler output produced by configure, useful for debugging
  25781. # configure, is in config.log if it exists.
  25782. debug=false
  25783. ac_cs_recheck=false
  25784. ac_cs_silent=false
  25785. SHELL=\${CONFIG_SHELL-$SHELL}
  25786. export SHELL
  25787. _ASEOF
  25788. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  25789. ## -------------------- ##
  25790. ## M4sh Initialization. ##
  25791. ## -------------------- ##
  25792. # Be more Bourne compatible
  25793. DUALCASE=1; export DUALCASE # for MKS sh
  25794. as_nop=:
  25795. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  25796. then :
  25797. emulate sh
  25798. NULLCMD=:
  25799. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25800. # is contrary to our usage. Disable this feature.
  25801. alias -g '${1+"$@"}'='"$@"'
  25802. setopt NO_GLOB_SUBST
  25803. else $as_nop
  25804. case `(set -o) 2>/dev/null` in #(
  25805. *posix*) :
  25806. set -o posix ;; #(
  25807. *) :
  25808. ;;
  25809. esac
  25810. fi
  25811. # Reset variables that may have inherited troublesome values from
  25812. # the environment.
  25813. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  25814. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  25815. # side effect of setting IFS to empty, thus disabling word splitting.)
  25816. # Quoting is to prevent editors from complaining about space-tab.
  25817. as_nl='
  25818. '
  25819. export as_nl
  25820. IFS=" "" $as_nl"
  25821. PS1='$ '
  25822. PS2='> '
  25823. PS4='+ '
  25824. # Ensure predictable behavior from utilities with locale-dependent output.
  25825. LC_ALL=C
  25826. export LC_ALL
  25827. LANGUAGE=C
  25828. export LANGUAGE
  25829. # We cannot yet rely on "unset" to work, but we need these variables
  25830. # to be unset--not just set to an empty or harmless value--now, to
  25831. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  25832. # also avoids known problems related to "unset" and subshell syntax
  25833. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  25834. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  25835. do eval test \${$as_var+y} \
  25836. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  25837. done
  25838. # Ensure that fds 0, 1, and 2 are open.
  25839. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  25840. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  25841. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  25842. # The user is always right.
  25843. if ${PATH_SEPARATOR+false} :; then
  25844. PATH_SEPARATOR=:
  25845. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  25846. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  25847. PATH_SEPARATOR=';'
  25848. }
  25849. fi
  25850. # Find who we are. Look in the path if we contain no directory separator.
  25851. as_myself=
  25852. case $0 in #((
  25853. *[\\/]* ) as_myself=$0 ;;
  25854. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25855. for as_dir in $PATH
  25856. do
  25857. IFS=$as_save_IFS
  25858. case $as_dir in #(((
  25859. '') as_dir=./ ;;
  25860. */) ;;
  25861. *) as_dir=$as_dir/ ;;
  25862. esac
  25863. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  25864. done
  25865. IFS=$as_save_IFS
  25866. ;;
  25867. esac
  25868. # We did not find ourselves, most probably we were run as `sh COMMAND'
  25869. # in which case we are not to be found in the path.
  25870. if test "x$as_myself" = x; then
  25871. as_myself=$0
  25872. fi
  25873. if test ! -f "$as_myself"; then
  25874. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  25875. exit 1
  25876. fi
  25877. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  25878. # ----------------------------------------
  25879. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  25880. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  25881. # script with STATUS, using 1 if that was 0.
  25882. as_fn_error ()
  25883. {
  25884. as_status=$1; test $as_status -eq 0 && as_status=1
  25885. if test "$4"; then
  25886. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  25887. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  25888. fi
  25889. printf "%s\n" "$as_me: error: $2" >&2
  25890. as_fn_exit $as_status
  25891. } # as_fn_error
  25892. # as_fn_set_status STATUS
  25893. # -----------------------
  25894. # Set $? to STATUS, without forking.
  25895. as_fn_set_status ()
  25896. {
  25897. return $1
  25898. } # as_fn_set_status
  25899. # as_fn_exit STATUS
  25900. # -----------------
  25901. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  25902. as_fn_exit ()
  25903. {
  25904. set +e
  25905. as_fn_set_status $1
  25906. exit $1
  25907. } # as_fn_exit
  25908. # as_fn_unset VAR
  25909. # ---------------
  25910. # Portably unset VAR.
  25911. as_fn_unset ()
  25912. {
  25913. { eval $1=; unset $1;}
  25914. }
  25915. as_unset=as_fn_unset
  25916. # as_fn_append VAR VALUE
  25917. # ----------------------
  25918. # Append the text in VALUE to the end of the definition contained in VAR. Take
  25919. # advantage of any shell optimizations that allow amortized linear growth over
  25920. # repeated appends, instead of the typical quadratic growth present in naive
  25921. # implementations.
  25922. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  25923. then :
  25924. eval 'as_fn_append ()
  25925. {
  25926. eval $1+=\$2
  25927. }'
  25928. else $as_nop
  25929. as_fn_append ()
  25930. {
  25931. eval $1=\$$1\$2
  25932. }
  25933. fi # as_fn_append
  25934. # as_fn_arith ARG...
  25935. # ------------------
  25936. # Perform arithmetic evaluation on the ARGs, and store the result in the
  25937. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  25938. # must be portable across $(()) and expr.
  25939. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  25940. then :
  25941. eval 'as_fn_arith ()
  25942. {
  25943. as_val=$(( $* ))
  25944. }'
  25945. else $as_nop
  25946. as_fn_arith ()
  25947. {
  25948. as_val=`expr "$@" || test $? -eq 1`
  25949. }
  25950. fi # as_fn_arith
  25951. if expr a : '\(a\)' >/dev/null 2>&1 &&
  25952. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  25953. as_expr=expr
  25954. else
  25955. as_expr=false
  25956. fi
  25957. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  25958. as_basename=basename
  25959. else
  25960. as_basename=false
  25961. fi
  25962. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  25963. as_dirname=dirname
  25964. else
  25965. as_dirname=false
  25966. fi
  25967. as_me=`$as_basename -- "$0" ||
  25968. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  25969. X"$0" : 'X\(//\)$' \| \
  25970. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  25971. printf "%s\n" X/"$0" |
  25972. sed '/^.*\/\([^/][^/]*\)\/*$/{
  25973. s//\1/
  25974. q
  25975. }
  25976. /^X\/\(\/\/\)$/{
  25977. s//\1/
  25978. q
  25979. }
  25980. /^X\/\(\/\).*/{
  25981. s//\1/
  25982. q
  25983. }
  25984. s/.*/./; q'`
  25985. # Avoid depending upon Character Ranges.
  25986. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  25987. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  25988. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  25989. as_cr_digits='0123456789'
  25990. as_cr_alnum=$as_cr_Letters$as_cr_digits
  25991. # Determine whether it's possible to make 'echo' print without a newline.
  25992. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  25993. # for compatibility with existing Makefiles.
  25994. ECHO_C= ECHO_N= ECHO_T=
  25995. case `echo -n x` in #(((((
  25996. -n*)
  25997. case `echo 'xy\c'` in
  25998. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  25999. xy) ECHO_C='\c';;
  26000. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26001. ECHO_T=' ';;
  26002. esac;;
  26003. *)
  26004. ECHO_N='-n';;
  26005. esac
  26006. # For backward compatibility with old third-party macros, we provide
  26007. # the shell variables $as_echo and $as_echo_n. New code should use
  26008. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26009. as_echo='printf %s\n'
  26010. as_echo_n='printf %s'
  26011. rm -f conf$$ conf$$.exe conf$$.file
  26012. if test -d conf$$.dir; then
  26013. rm -f conf$$.dir/conf$$.file
  26014. else
  26015. rm -f conf$$.dir
  26016. mkdir conf$$.dir 2>/dev/null
  26017. fi
  26018. if (echo >conf$$.file) 2>/dev/null; then
  26019. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26020. as_ln_s='ln -s'
  26021. # ... but there are two gotchas:
  26022. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26023. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26024. # In both cases, we have to default to `cp -pR'.
  26025. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26026. as_ln_s='cp -pR'
  26027. elif ln conf$$.file conf$$ 2>/dev/null; then
  26028. as_ln_s=ln
  26029. else
  26030. as_ln_s='cp -pR'
  26031. fi
  26032. else
  26033. as_ln_s='cp -pR'
  26034. fi
  26035. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26036. rmdir conf$$.dir 2>/dev/null
  26037. # as_fn_mkdir_p
  26038. # -------------
  26039. # Create "$as_dir" as a directory, including parents if necessary.
  26040. as_fn_mkdir_p ()
  26041. {
  26042. case $as_dir in #(
  26043. -*) as_dir=./$as_dir;;
  26044. esac
  26045. test -d "$as_dir" || eval $as_mkdir_p || {
  26046. as_dirs=
  26047. while :; do
  26048. case $as_dir in #(
  26049. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26050. *) as_qdir=$as_dir;;
  26051. esac
  26052. as_dirs="'$as_qdir' $as_dirs"
  26053. as_dir=`$as_dirname -- "$as_dir" ||
  26054. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26055. X"$as_dir" : 'X\(//\)[^/]' \| \
  26056. X"$as_dir" : 'X\(//\)$' \| \
  26057. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26058. printf "%s\n" X"$as_dir" |
  26059. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26060. s//\1/
  26061. q
  26062. }
  26063. /^X\(\/\/\)[^/].*/{
  26064. s//\1/
  26065. q
  26066. }
  26067. /^X\(\/\/\)$/{
  26068. s//\1/
  26069. q
  26070. }
  26071. /^X\(\/\).*/{
  26072. s//\1/
  26073. q
  26074. }
  26075. s/.*/./; q'`
  26076. test -d "$as_dir" && break
  26077. done
  26078. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26079. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26080. } # as_fn_mkdir_p
  26081. if mkdir -p . 2>/dev/null; then
  26082. as_mkdir_p='mkdir -p "$as_dir"'
  26083. else
  26084. test -d ./-p && rmdir ./-p
  26085. as_mkdir_p=false
  26086. fi
  26087. # as_fn_executable_p FILE
  26088. # -----------------------
  26089. # Test if FILE is an executable regular file.
  26090. as_fn_executable_p ()
  26091. {
  26092. test -f "$1" && test -x "$1"
  26093. } # as_fn_executable_p
  26094. as_test_x='test -x'
  26095. as_executable_p=as_fn_executable_p
  26096. # Sed expression to map a string onto a valid CPP name.
  26097. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26098. # Sed expression to map a string onto a valid variable name.
  26099. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26100. exec 6>&1
  26101. ## ----------------------------------- ##
  26102. ## Main body of $CONFIG_STATUS script. ##
  26103. ## ----------------------------------- ##
  26104. _ASEOF
  26105. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26106. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26107. # Save the log message, to keep $0 and so on meaningful, and to
  26108. # report actual input values of CONFIG_FILES etc. instead of their
  26109. # values after options handling.
  26110. ac_log="
  26111. This file was extended by $as_me, which was
  26112. generated by GNU Autoconf 2.71. Invocation command line was
  26113. CONFIG_FILES = $CONFIG_FILES
  26114. CONFIG_HEADERS = $CONFIG_HEADERS
  26115. CONFIG_LINKS = $CONFIG_LINKS
  26116. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26117. $ $0 $@
  26118. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26119. "
  26120. _ACEOF
  26121. case $ac_config_files in *"
  26122. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26123. esac
  26124. case $ac_config_headers in *"
  26125. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26126. esac
  26127. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26128. # Files that config.status was made for.
  26129. config_files="$ac_config_files"
  26130. config_headers="$ac_config_headers"
  26131. config_commands="$ac_config_commands"
  26132. _ACEOF
  26133. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26134. ac_cs_usage="\
  26135. \`$as_me' instantiates files and other configuration actions
  26136. from templates according to the current configuration. Unless the files
  26137. and actions are specified as TAGs, all are instantiated by default.
  26138. Usage: $0 [OPTION]... [TAG]...
  26139. -h, --help print this help, then exit
  26140. -V, --version print version number and configuration settings, then exit
  26141. --config print configuration, then exit
  26142. -q, --quiet, --silent
  26143. do not print progress messages
  26144. -d, --debug don't remove temporary files
  26145. --recheck update $as_me by reconfiguring in the same conditions
  26146. --file=FILE[:TEMPLATE]
  26147. instantiate the configuration file FILE
  26148. --header=FILE[:TEMPLATE]
  26149. instantiate the configuration header FILE
  26150. Configuration files:
  26151. $config_files
  26152. Configuration headers:
  26153. $config_headers
  26154. Configuration commands:
  26155. $config_commands
  26156. Report bugs to the package provider."
  26157. _ACEOF
  26158. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26159. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26160. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26161. ac_cs_config='$ac_cs_config_escaped'
  26162. ac_cs_version="\\
  26163. config.status
  26164. configured by $0, generated by GNU Autoconf 2.71,
  26165. with options \\"\$ac_cs_config\\"
  26166. Copyright (C) 2021 Free Software Foundation, Inc.
  26167. This config.status script is free software; the Free Software Foundation
  26168. gives unlimited permission to copy, distribute and modify it."
  26169. ac_pwd='$ac_pwd'
  26170. srcdir='$srcdir'
  26171. INSTALL='$INSTALL'
  26172. AWK='$AWK'
  26173. test -n "\$AWK" || AWK=awk
  26174. _ACEOF
  26175. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26176. # The default lists apply if the user does not specify any file.
  26177. ac_need_defaults=:
  26178. while test $# != 0
  26179. do
  26180. case $1 in
  26181. --*=?*)
  26182. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26183. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26184. ac_shift=:
  26185. ;;
  26186. --*=)
  26187. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26188. ac_optarg=
  26189. ac_shift=:
  26190. ;;
  26191. *)
  26192. ac_option=$1
  26193. ac_optarg=$2
  26194. ac_shift=shift
  26195. ;;
  26196. esac
  26197. case $ac_option in
  26198. # Handling of the options.
  26199. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26200. ac_cs_recheck=: ;;
  26201. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26202. printf "%s\n" "$ac_cs_version"; exit ;;
  26203. --config | --confi | --conf | --con | --co | --c )
  26204. printf "%s\n" "$ac_cs_config"; exit ;;
  26205. --debug | --debu | --deb | --de | --d | -d )
  26206. debug=: ;;
  26207. --file | --fil | --fi | --f )
  26208. $ac_shift
  26209. case $ac_optarg in
  26210. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26211. '') as_fn_error $? "missing file argument" ;;
  26212. esac
  26213. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26214. ac_need_defaults=false;;
  26215. --header | --heade | --head | --hea )
  26216. $ac_shift
  26217. case $ac_optarg in
  26218. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26219. esac
  26220. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26221. ac_need_defaults=false;;
  26222. --he | --h)
  26223. # Conflict between --help and --header
  26224. as_fn_error $? "ambiguous option: \`$1'
  26225. Try \`$0 --help' for more information.";;
  26226. --help | --hel | -h )
  26227. printf "%s\n" "$ac_cs_usage"; exit ;;
  26228. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26229. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26230. ac_cs_silent=: ;;
  26231. # This is an error.
  26232. -*) as_fn_error $? "unrecognized option: \`$1'
  26233. Try \`$0 --help' for more information." ;;
  26234. *) as_fn_append ac_config_targets " $1"
  26235. ac_need_defaults=false ;;
  26236. esac
  26237. shift
  26238. done
  26239. ac_configure_extra_args=
  26240. if $ac_cs_silent; then
  26241. exec 6>/dev/null
  26242. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26243. fi
  26244. _ACEOF
  26245. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26246. if \$ac_cs_recheck; then
  26247. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26248. shift
  26249. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26250. CONFIG_SHELL='$SHELL'
  26251. export CONFIG_SHELL
  26252. exec "\$@"
  26253. fi
  26254. _ACEOF
  26255. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26256. exec 5>>config.log
  26257. {
  26258. echo
  26259. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26260. ## Running $as_me. ##
  26261. _ASBOX
  26262. printf "%s\n" "$ac_log"
  26263. } >&5
  26264. _ACEOF
  26265. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26266. #
  26267. # INIT-COMMANDS
  26268. #
  26269. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26270. # if CDPATH is set.
  26271. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26272. sed_quote_subst='$sed_quote_subst'
  26273. double_quote_subst='$double_quote_subst'
  26274. delay_variable_subst='$delay_variable_subst'
  26275. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26276. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26277. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26278. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26279. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26280. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26281. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26282. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26283. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26284. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26285. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26286. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26287. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26288. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26289. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26290. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26291. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26292. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26293. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26294. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26295. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26296. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26297. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26298. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26299. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26300. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26301. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26302. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26303. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26304. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26305. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26306. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26307. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26308. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26309. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26310. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26311. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26312. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26313. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26314. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26315. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26316. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26317. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26318. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26319. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26320. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26321. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26322. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26323. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26324. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26325. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26326. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26327. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26328. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26329. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26330. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26331. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26332. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26333. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26334. 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"`'
  26335. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26336. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26337. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26338. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26339. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26340. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26341. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26342. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26343. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26344. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26345. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26346. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26347. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26348. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26349. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26350. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26351. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26352. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26353. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26354. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26355. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26356. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26357. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26358. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26359. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26360. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26361. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26362. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26363. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26364. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26365. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26366. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26367. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26368. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26369. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26370. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26371. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26372. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26373. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26374. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26375. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26376. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26377. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26378. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26379. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26380. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26381. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26382. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26383. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26384. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26385. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26386. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26387. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26388. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26389. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26390. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26391. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26392. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26393. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26394. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26395. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26396. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26397. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26398. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26399. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26400. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26401. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26402. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26403. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26404. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26405. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26406. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26407. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26408. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26409. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26410. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26411. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26412. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26413. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26414. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26415. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26416. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26417. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26418. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26419. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26420. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26421. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26422. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26423. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26424. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26425. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26426. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26427. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26428. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26429. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26430. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26431. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26432. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26433. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26434. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26435. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26436. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26437. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26438. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26439. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26440. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26441. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26442. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26443. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26444. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26445. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26446. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26447. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26448. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26449. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26450. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26451. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26452. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26453. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26454. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26455. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26456. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26457. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26458. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26459. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26460. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26461. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26462. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26463. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26464. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26465. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26466. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26467. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26468. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26469. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26470. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26471. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26472. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26473. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26474. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26475. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26476. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26477. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26478. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26479. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26480. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26481. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26482. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26483. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26484. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26485. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26486. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26487. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26488. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26489. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26490. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26491. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26492. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26493. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26494. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26495. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26496. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26497. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26498. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26499. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26500. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26501. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26502. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26503. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26504. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26505. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26506. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26507. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26508. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26509. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26510. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26511. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26512. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26513. LTCC='$LTCC'
  26514. LTCFLAGS='$LTCFLAGS'
  26515. compiler='$compiler_DEFAULT'
  26516. # A function that is used when there is no print builtin or printf.
  26517. func_fallback_echo ()
  26518. {
  26519. eval 'cat <<_LTECHO_EOF
  26520. \$1
  26521. _LTECHO_EOF'
  26522. }
  26523. # Quote evaled strings.
  26524. for var in AS \
  26525. DLLTOOL \
  26526. OBJDUMP \
  26527. SHELL \
  26528. ECHO \
  26529. PATH_SEPARATOR \
  26530. SED \
  26531. GREP \
  26532. EGREP \
  26533. FGREP \
  26534. LD \
  26535. NM \
  26536. LN_S \
  26537. lt_SP2NL \
  26538. lt_NL2SP \
  26539. reload_flag \
  26540. deplibs_check_method \
  26541. file_magic_cmd \
  26542. file_magic_glob \
  26543. want_nocaseglob \
  26544. sharedlib_from_linklib_cmd \
  26545. AR \
  26546. AR_FLAGS \
  26547. archiver_list_spec \
  26548. STRIP \
  26549. RANLIB \
  26550. CC \
  26551. CFLAGS \
  26552. compiler \
  26553. lt_cv_sys_global_symbol_pipe \
  26554. lt_cv_sys_global_symbol_to_cdecl \
  26555. lt_cv_sys_global_symbol_to_import \
  26556. lt_cv_sys_global_symbol_to_c_name_address \
  26557. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26558. lt_cv_nm_interface \
  26559. nm_file_list_spec \
  26560. lt_cv_truncate_bin \
  26561. lt_prog_compiler_no_builtin_flag \
  26562. lt_prog_compiler_pic \
  26563. lt_prog_compiler_wl \
  26564. lt_prog_compiler_static \
  26565. lt_cv_prog_compiler_c_o \
  26566. need_locks \
  26567. MANIFEST_TOOL \
  26568. DSYMUTIL \
  26569. NMEDIT \
  26570. LIPO \
  26571. OTOOL \
  26572. OTOOL64 \
  26573. shrext_cmds \
  26574. export_dynamic_flag_spec \
  26575. whole_archive_flag_spec \
  26576. compiler_needs_object \
  26577. with_gnu_ld \
  26578. allow_undefined_flag \
  26579. no_undefined_flag \
  26580. hardcode_libdir_flag_spec \
  26581. hardcode_libdir_separator \
  26582. exclude_expsyms \
  26583. include_expsyms \
  26584. file_list_spec \
  26585. variables_saved_for_relink \
  26586. libname_spec \
  26587. library_names_spec \
  26588. soname_spec \
  26589. install_override_mode \
  26590. finish_eval \
  26591. old_striplib \
  26592. striplib \
  26593. compiler_lib_search_dirs \
  26594. predep_objects \
  26595. postdep_objects \
  26596. predeps \
  26597. postdeps \
  26598. compiler_lib_search_path \
  26599. LD_RC \
  26600. LD_CXX \
  26601. reload_flag_RC \
  26602. reload_flag_CXX \
  26603. compiler_RC \
  26604. compiler_CXX \
  26605. lt_prog_compiler_no_builtin_flag_RC \
  26606. lt_prog_compiler_no_builtin_flag_CXX \
  26607. lt_prog_compiler_pic_RC \
  26608. lt_prog_compiler_pic_CXX \
  26609. lt_prog_compiler_wl_RC \
  26610. lt_prog_compiler_wl_CXX \
  26611. lt_prog_compiler_static_RC \
  26612. lt_prog_compiler_static_CXX \
  26613. lt_cv_prog_compiler_c_o_RC \
  26614. lt_cv_prog_compiler_c_o_CXX \
  26615. export_dynamic_flag_spec_RC \
  26616. export_dynamic_flag_spec_CXX \
  26617. whole_archive_flag_spec_RC \
  26618. whole_archive_flag_spec_CXX \
  26619. compiler_needs_object_RC \
  26620. compiler_needs_object_CXX \
  26621. with_gnu_ld_RC \
  26622. with_gnu_ld_CXX \
  26623. allow_undefined_flag_RC \
  26624. allow_undefined_flag_CXX \
  26625. no_undefined_flag_RC \
  26626. no_undefined_flag_CXX \
  26627. hardcode_libdir_flag_spec_RC \
  26628. hardcode_libdir_flag_spec_CXX \
  26629. hardcode_libdir_separator_RC \
  26630. hardcode_libdir_separator_CXX \
  26631. exclude_expsyms_RC \
  26632. exclude_expsyms_CXX \
  26633. include_expsyms_RC \
  26634. include_expsyms_CXX \
  26635. file_list_spec_RC \
  26636. file_list_spec_CXX \
  26637. compiler_lib_search_dirs_RC \
  26638. compiler_lib_search_dirs_CXX \
  26639. predep_objects_RC \
  26640. predep_objects_CXX \
  26641. postdep_objects_RC \
  26642. postdep_objects_CXX \
  26643. predeps_RC \
  26644. predeps_CXX \
  26645. postdeps_RC \
  26646. postdeps_CXX \
  26647. compiler_lib_search_path_RC \
  26648. compiler_lib_search_path_CXX; do
  26649. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26650. *[\\\\\\\`\\"\\\$]*)
  26651. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26652. ;;
  26653. *)
  26654. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26655. ;;
  26656. esac
  26657. done
  26658. # Double-quote double-evaled strings.
  26659. for var in reload_cmds \
  26660. old_postinstall_cmds \
  26661. old_postuninstall_cmds \
  26662. old_archive_cmds \
  26663. extract_expsyms_cmds \
  26664. old_archive_from_new_cmds \
  26665. old_archive_from_expsyms_cmds \
  26666. archive_cmds \
  26667. archive_expsym_cmds \
  26668. module_cmds \
  26669. module_expsym_cmds \
  26670. export_symbols_cmds \
  26671. prelink_cmds \
  26672. postlink_cmds \
  26673. postinstall_cmds \
  26674. postuninstall_cmds \
  26675. finish_cmds \
  26676. sys_lib_search_path_spec \
  26677. configure_time_dlsearch_path \
  26678. configure_time_lt_sys_library_path \
  26679. reload_cmds_RC \
  26680. reload_cmds_CXX \
  26681. old_archive_cmds_RC \
  26682. old_archive_cmds_CXX \
  26683. old_archive_from_new_cmds_RC \
  26684. old_archive_from_new_cmds_CXX \
  26685. old_archive_from_expsyms_cmds_RC \
  26686. old_archive_from_expsyms_cmds_CXX \
  26687. archive_cmds_RC \
  26688. archive_cmds_CXX \
  26689. archive_expsym_cmds_RC \
  26690. archive_expsym_cmds_CXX \
  26691. module_cmds_RC \
  26692. module_cmds_CXX \
  26693. module_expsym_cmds_RC \
  26694. module_expsym_cmds_CXX \
  26695. export_symbols_cmds_RC \
  26696. export_symbols_cmds_CXX \
  26697. prelink_cmds_RC \
  26698. prelink_cmds_CXX \
  26699. postlink_cmds_RC \
  26700. postlink_cmds_CXX; do
  26701. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26702. *[\\\\\\\`\\"\\\$]*)
  26703. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26704. ;;
  26705. *)
  26706. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26707. ;;
  26708. esac
  26709. done
  26710. ac_aux_dir='$ac_aux_dir'
  26711. # See if we are running on zsh, and set the options that allow our
  26712. # commands through without removal of \ escapes INIT.
  26713. if test -n "\${ZSH_VERSION+set}"; then
  26714. setopt NO_GLOB_SUBST
  26715. fi
  26716. PACKAGE='$PACKAGE'
  26717. VERSION='$VERSION'
  26718. RM='$RM'
  26719. ofile='$ofile'
  26720. SUMMARY="$SUMMARY"
  26721. _ACEOF
  26722. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26723. # Handling of arguments.
  26724. for ac_config_target in $ac_config_targets
  26725. do
  26726. case $ac_config_target in
  26727. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  26728. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26729. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  26730. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  26731. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  26732. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  26733. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  26734. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  26735. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  26736. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  26737. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  26738. esac
  26739. done
  26740. # If the user did not use the arguments to specify the items to instantiate,
  26741. # then the envvar interface is used. Set only those that are not.
  26742. # We use the long form for the default assignment because of an extremely
  26743. # bizarre bug on SunOS 4.1.3.
  26744. if $ac_need_defaults; then
  26745. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  26746. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  26747. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  26748. fi
  26749. # Have a temporary directory for convenience. Make it in the build tree
  26750. # simply because there is no reason against having it here, and in addition,
  26751. # creating and moving files from /tmp can sometimes cause problems.
  26752. # Hook for its removal unless debugging.
  26753. # Note that there is a small window in which the directory will not be cleaned:
  26754. # after its creation but before its name has been assigned to `$tmp'.
  26755. $debug ||
  26756. {
  26757. tmp= ac_tmp=
  26758. trap 'exit_status=$?
  26759. : "${ac_tmp:=$tmp}"
  26760. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  26761. ' 0
  26762. trap 'as_fn_exit 1' 1 2 13 15
  26763. }
  26764. # Create a (secure) tmp directory for tmp files.
  26765. {
  26766. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26767. test -d "$tmp"
  26768. } ||
  26769. {
  26770. tmp=./conf$$-$RANDOM
  26771. (umask 077 && mkdir "$tmp")
  26772. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  26773. ac_tmp=$tmp
  26774. # Set up the scripts for CONFIG_FILES section.
  26775. # No need to generate them if there are no CONFIG_FILES.
  26776. # This happens for instance with `./config.status config.h'.
  26777. if test -n "$CONFIG_FILES"; then
  26778. ac_cr=`echo X | tr X '\015'`
  26779. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  26780. # But we know of no other shell where ac_cr would be empty at this
  26781. # point, so we can use a bashism as a fallback.
  26782. if test "x$ac_cr" = x; then
  26783. eval ac_cr=\$\'\\r\'
  26784. fi
  26785. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26786. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26787. ac_cs_awk_cr='\\r'
  26788. else
  26789. ac_cs_awk_cr=$ac_cr
  26790. fi
  26791. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  26792. _ACEOF
  26793. {
  26794. echo "cat >conf$$subs.awk <<_ACEOF" &&
  26795. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26796. echo "_ACEOF"
  26797. } >conf$$subs.sh ||
  26798. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26799. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  26800. ac_delim='%!_!# '
  26801. for ac_last_try in false false false false false :; do
  26802. . ./conf$$subs.sh ||
  26803. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26804. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26805. if test $ac_delim_n = $ac_delim_num; then
  26806. break
  26807. elif $ac_last_try; then
  26808. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26809. else
  26810. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26811. fi
  26812. done
  26813. rm -f conf$$subs.sh
  26814. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26815. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  26816. _ACEOF
  26817. sed -n '
  26818. h
  26819. s/^/S["/; s/!.*/"]=/
  26820. p
  26821. g
  26822. s/^[^!]*!//
  26823. :repl
  26824. t repl
  26825. s/'"$ac_delim"'$//
  26826. t delim
  26827. :nl
  26828. h
  26829. s/\(.\{148\}\)..*/\1/
  26830. t more1
  26831. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  26832. p
  26833. n
  26834. b repl
  26835. :more1
  26836. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26837. p
  26838. g
  26839. s/.\{148\}//
  26840. t nl
  26841. :delim
  26842. h
  26843. s/\(.\{148\}\)..*/\1/
  26844. t more2
  26845. s/["\\]/\\&/g; s/^/"/; s/$/"/
  26846. p
  26847. b
  26848. :more2
  26849. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26850. p
  26851. g
  26852. s/.\{148\}//
  26853. t delim
  26854. ' <conf$$subs.awk | sed '
  26855. /^[^""]/{
  26856. N
  26857. s/\n//
  26858. }
  26859. ' >>$CONFIG_STATUS || ac_write_fail=1
  26860. rm -f conf$$subs.awk
  26861. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26862. _ACAWK
  26863. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  26864. for (key in S) S_is_set[key] = 1
  26865. FS = ""
  26866. }
  26867. {
  26868. line = $ 0
  26869. nfields = split(line, field, "@")
  26870. substed = 0
  26871. len = length(field[1])
  26872. for (i = 2; i < nfields; i++) {
  26873. key = field[i]
  26874. keylen = length(key)
  26875. if (S_is_set[key]) {
  26876. value = S[key]
  26877. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  26878. len += length(value) + length(field[++i])
  26879. substed = 1
  26880. } else
  26881. len += 1 + keylen
  26882. }
  26883. print line
  26884. }
  26885. _ACAWK
  26886. _ACEOF
  26887. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26888. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  26889. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  26890. else
  26891. cat
  26892. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  26893. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  26894. _ACEOF
  26895. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  26896. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  26897. # trailing colons and then remove the whole line if VPATH becomes empty
  26898. # (actually we leave an empty line to preserve line numbers).
  26899. if test "x$srcdir" = x.; then
  26900. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  26901. h
  26902. s///
  26903. s/^/:/
  26904. s/[ ]*$/:/
  26905. s/:\$(srcdir):/:/g
  26906. s/:\${srcdir}:/:/g
  26907. s/:@srcdir@:/:/g
  26908. s/^:*//
  26909. s/:*$//
  26910. x
  26911. s/\(=[ ]*\).*/\1/
  26912. G
  26913. s/\n//
  26914. s/^[^=]*=[ ]*$//
  26915. }'
  26916. fi
  26917. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26918. fi # test -n "$CONFIG_FILES"
  26919. # Set up the scripts for CONFIG_HEADERS section.
  26920. # No need to generate them if there are no CONFIG_HEADERS.
  26921. # This happens for instance with `./config.status Makefile'.
  26922. if test -n "$CONFIG_HEADERS"; then
  26923. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  26924. BEGIN {
  26925. _ACEOF
  26926. # Transform confdefs.h into an awk script `defines.awk', embedded as
  26927. # here-document in config.status, that substitutes the proper values into
  26928. # config.h.in to produce config.h.
  26929. # Create a delimiter string that does not exist in confdefs.h, to ease
  26930. # handling of long lines.
  26931. ac_delim='%!_!# '
  26932. for ac_last_try in false false :; do
  26933. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  26934. if test -z "$ac_tt"; then
  26935. break
  26936. elif $ac_last_try; then
  26937. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  26938. else
  26939. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26940. fi
  26941. done
  26942. # For the awk script, D is an array of macro values keyed by name,
  26943. # likewise P contains macro parameters if any. Preserve backslash
  26944. # newline sequences.
  26945. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  26946. sed -n '
  26947. s/.\{148\}/&'"$ac_delim"'/g
  26948. t rset
  26949. :rset
  26950. s/^[ ]*#[ ]*define[ ][ ]*/ /
  26951. t def
  26952. d
  26953. :def
  26954. s/\\$//
  26955. t bsnl
  26956. s/["\\]/\\&/g
  26957. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26958. D["\1"]=" \3"/p
  26959. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  26960. d
  26961. :bsnl
  26962. s/["\\]/\\&/g
  26963. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26964. D["\1"]=" \3\\\\\\n"\\/p
  26965. t cont
  26966. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  26967. t cont
  26968. d
  26969. :cont
  26970. n
  26971. s/.\{148\}/&'"$ac_delim"'/g
  26972. t clear
  26973. :clear
  26974. s/\\$//
  26975. t bsnlc
  26976. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  26977. d
  26978. :bsnlc
  26979. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  26980. b cont
  26981. ' <confdefs.h | sed '
  26982. s/'"$ac_delim"'/"\\\
  26983. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  26984. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26985. for (key in D) D_is_set[key] = 1
  26986. FS = ""
  26987. }
  26988. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  26989. line = \$ 0
  26990. split(line, arg, " ")
  26991. if (arg[1] == "#") {
  26992. defundef = arg[2]
  26993. mac1 = arg[3]
  26994. } else {
  26995. defundef = substr(arg[1], 2)
  26996. mac1 = arg[2]
  26997. }
  26998. split(mac1, mac2, "(") #)
  26999. macro = mac2[1]
  27000. prefix = substr(line, 1, index(line, defundef) - 1)
  27001. if (D_is_set[macro]) {
  27002. # Preserve the white space surrounding the "#".
  27003. print prefix "define", macro P[macro] D[macro]
  27004. next
  27005. } else {
  27006. # Replace #undef with comments. This is necessary, for example,
  27007. # in the case of _POSIX_SOURCE, which is predefined and required
  27008. # on some systems where configure will not decide to define it.
  27009. if (defundef == "undef") {
  27010. print "/*", prefix defundef, macro, "*/"
  27011. next
  27012. }
  27013. }
  27014. }
  27015. { print }
  27016. _ACAWK
  27017. _ACEOF
  27018. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27019. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27020. fi # test -n "$CONFIG_HEADERS"
  27021. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27022. shift
  27023. for ac_tag
  27024. do
  27025. case $ac_tag in
  27026. :[FHLC]) ac_mode=$ac_tag; continue;;
  27027. esac
  27028. case $ac_mode$ac_tag in
  27029. :[FHL]*:*);;
  27030. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27031. :[FH]-) ac_tag=-:-;;
  27032. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27033. esac
  27034. ac_save_IFS=$IFS
  27035. IFS=:
  27036. set x $ac_tag
  27037. IFS=$ac_save_IFS
  27038. shift
  27039. ac_file=$1
  27040. shift
  27041. case $ac_mode in
  27042. :L) ac_source=$1;;
  27043. :[FH])
  27044. ac_file_inputs=
  27045. for ac_f
  27046. do
  27047. case $ac_f in
  27048. -) ac_f="$ac_tmp/stdin";;
  27049. *) # Look for the file first in the build tree, then in the source tree
  27050. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27051. # because $ac_f cannot contain `:'.
  27052. test -f "$ac_f" ||
  27053. case $ac_f in
  27054. [\\/$]*) false;;
  27055. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27056. esac ||
  27057. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27058. esac
  27059. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27060. as_fn_append ac_file_inputs " '$ac_f'"
  27061. done
  27062. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27063. # use $as_me), people would be surprised to read:
  27064. # /* config.h. Generated by config.status. */
  27065. configure_input='Generated from '`
  27066. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27067. `' by configure.'
  27068. if test x"$ac_file" != x-; then
  27069. configure_input="$ac_file. $configure_input"
  27070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27071. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27072. fi
  27073. # Neutralize special characters interpreted by sed in replacement strings.
  27074. case $configure_input in #(
  27075. *\&* | *\|* | *\\* )
  27076. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27077. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27078. *) ac_sed_conf_input=$configure_input;;
  27079. esac
  27080. case $ac_tag in
  27081. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27082. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27083. esac
  27084. ;;
  27085. esac
  27086. ac_dir=`$as_dirname -- "$ac_file" ||
  27087. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27088. X"$ac_file" : 'X\(//\)[^/]' \| \
  27089. X"$ac_file" : 'X\(//\)$' \| \
  27090. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27091. printf "%s\n" X"$ac_file" |
  27092. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27093. s//\1/
  27094. q
  27095. }
  27096. /^X\(\/\/\)[^/].*/{
  27097. s//\1/
  27098. q
  27099. }
  27100. /^X\(\/\/\)$/{
  27101. s//\1/
  27102. q
  27103. }
  27104. /^X\(\/\).*/{
  27105. s//\1/
  27106. q
  27107. }
  27108. s/.*/./; q'`
  27109. as_dir="$ac_dir"; as_fn_mkdir_p
  27110. ac_builddir=.
  27111. case "$ac_dir" in
  27112. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27113. *)
  27114. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27115. # A ".." for each directory in $ac_dir_suffix.
  27116. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27117. case $ac_top_builddir_sub in
  27118. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27119. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27120. esac ;;
  27121. esac
  27122. ac_abs_top_builddir=$ac_pwd
  27123. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27124. # for backward compatibility:
  27125. ac_top_builddir=$ac_top_build_prefix
  27126. case $srcdir in
  27127. .) # We are building in place.
  27128. ac_srcdir=.
  27129. ac_top_srcdir=$ac_top_builddir_sub
  27130. ac_abs_top_srcdir=$ac_pwd ;;
  27131. [\\/]* | ?:[\\/]* ) # Absolute name.
  27132. ac_srcdir=$srcdir$ac_dir_suffix;
  27133. ac_top_srcdir=$srcdir
  27134. ac_abs_top_srcdir=$srcdir ;;
  27135. *) # Relative name.
  27136. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27137. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27138. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27139. esac
  27140. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27141. case $ac_mode in
  27142. :F)
  27143. #
  27144. # CONFIG_FILE
  27145. #
  27146. case $INSTALL in
  27147. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27148. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27149. esac
  27150. _ACEOF
  27151. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27152. # If the template does not know about datarootdir, expand it.
  27153. # FIXME: This hack should be removed a few years after 2.60.
  27154. ac_datarootdir_hack=; ac_datarootdir_seen=
  27155. ac_sed_dataroot='
  27156. /datarootdir/ {
  27157. p
  27158. q
  27159. }
  27160. /@datadir@/p
  27161. /@docdir@/p
  27162. /@infodir@/p
  27163. /@localedir@/p
  27164. /@mandir@/p'
  27165. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27166. *datarootdir*) ac_datarootdir_seen=yes;;
  27167. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27169. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27170. _ACEOF
  27171. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27172. ac_datarootdir_hack='
  27173. s&@datadir@&$datadir&g
  27174. s&@docdir@&$docdir&g
  27175. s&@infodir@&$infodir&g
  27176. s&@localedir@&$localedir&g
  27177. s&@mandir@&$mandir&g
  27178. s&\\\${datarootdir}&$datarootdir&g' ;;
  27179. esac
  27180. _ACEOF
  27181. # Neutralize VPATH when `$srcdir' = `.'.
  27182. # Shell code in configure.ac might set extrasub.
  27183. # FIXME: do we really want to maintain this feature?
  27184. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27185. ac_sed_extra="$ac_vpsub
  27186. $extrasub
  27187. _ACEOF
  27188. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27189. :t
  27190. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27191. s|@configure_input@|$ac_sed_conf_input|;t t
  27192. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27193. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27194. s&@srcdir@&$ac_srcdir&;t t
  27195. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27196. s&@top_srcdir@&$ac_top_srcdir&;t t
  27197. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27198. s&@builddir@&$ac_builddir&;t t
  27199. s&@abs_builddir@&$ac_abs_builddir&;t t
  27200. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27201. s&@INSTALL@&$ac_INSTALL&;t t
  27202. $ac_datarootdir_hack
  27203. "
  27204. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27205. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27206. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27207. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27208. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27209. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27211. which seems to be undefined. Please make sure it is defined" >&5
  27212. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27213. which seems to be undefined. Please make sure it is defined" >&2;}
  27214. rm -f "$ac_tmp/stdin"
  27215. case $ac_file in
  27216. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27217. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27218. esac \
  27219. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27220. ;;
  27221. :H)
  27222. #
  27223. # CONFIG_HEADER
  27224. #
  27225. if test x"$ac_file" != x-; then
  27226. {
  27227. printf "%s\n" "/* $configure_input */" >&1 \
  27228. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27229. } >"$ac_tmp/config.h" \
  27230. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27231. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27233. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27234. else
  27235. rm -f "$ac_file"
  27236. mv "$ac_tmp/config.h" "$ac_file" \
  27237. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27238. fi
  27239. else
  27240. printf "%s\n" "/* $configure_input */" >&1 \
  27241. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27242. || as_fn_error $? "could not create -" "$LINENO" 5
  27243. fi
  27244. ;;
  27245. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27246. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27247. ;;
  27248. esac
  27249. case $ac_file$ac_mode in
  27250. "libtool":C)
  27251. # See if we are running on zsh, and set the options that allow our
  27252. # commands through without removal of \ escapes.
  27253. if test -n "${ZSH_VERSION+set}"; then
  27254. setopt NO_GLOB_SUBST
  27255. fi
  27256. cfgfile=${ofile}T
  27257. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27258. $RM "$cfgfile"
  27259. cat <<_LT_EOF >> "$cfgfile"
  27260. #! $SHELL
  27261. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27262. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27263. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27264. # Provide generalized library-building support services.
  27265. # Written by Gordon Matzigkeit, 1996
  27266. # Copyright (C) 2014 Free Software Foundation, Inc.
  27267. # This is free software; see the source for copying conditions. There is NO
  27268. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27269. # GNU Libtool is free software; you can redistribute it and/or modify
  27270. # it under the terms of the GNU General Public License as published by
  27271. # the Free Software Foundation; either version 2 of of the License, or
  27272. # (at your option) any later version.
  27273. #
  27274. # As a special exception to the GNU General Public License, if you
  27275. # distribute this file as part of a program or library that is built
  27276. # using GNU Libtool, you may include this file under the same
  27277. # distribution terms that you use for the rest of that program.
  27278. #
  27279. # GNU Libtool is distributed in the hope that it will be useful, but
  27280. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27281. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27282. # GNU General Public License for more details.
  27283. #
  27284. # You should have received a copy of the GNU General Public License
  27285. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27286. # The names of the tagged configurations supported by this script.
  27287. available_tags='RC CXX '
  27288. # Configured defaults for sys_lib_dlsearch_path munging.
  27289. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27290. # ### BEGIN LIBTOOL CONFIG
  27291. # Which release of libtool.m4 was used?
  27292. macro_version=$macro_version
  27293. macro_revision=$macro_revision
  27294. # Assembler program.
  27295. AS=$lt_AS
  27296. # DLL creation program.
  27297. DLLTOOL=$lt_DLLTOOL
  27298. # Object dumper program.
  27299. OBJDUMP=$lt_OBJDUMP
  27300. # Whether or not to build shared libraries.
  27301. build_libtool_libs=$enable_shared
  27302. # Whether or not to build static libraries.
  27303. build_old_libs=$enable_static
  27304. # What type of objects to build.
  27305. pic_mode=$pic_mode
  27306. # Whether or not to optimize for fast installation.
  27307. fast_install=$enable_fast_install
  27308. # Shared archive member basename,for filename based shared library versioning on AIX.
  27309. shared_archive_member_spec=$shared_archive_member_spec
  27310. # Shell to use when invoking shell scripts.
  27311. SHELL=$lt_SHELL
  27312. # An echo program that protects backslashes.
  27313. ECHO=$lt_ECHO
  27314. # The PATH separator for the build system.
  27315. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27316. # The host system.
  27317. host_alias=$host_alias
  27318. host=$host
  27319. host_os=$host_os
  27320. # The build system.
  27321. build_alias=$build_alias
  27322. build=$build
  27323. build_os=$build_os
  27324. # A sed program that does not truncate output.
  27325. SED=$lt_SED
  27326. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27327. Xsed="\$SED -e 1s/^X//"
  27328. # A grep program that handles long lines.
  27329. GREP=$lt_GREP
  27330. # An ERE matcher.
  27331. EGREP=$lt_EGREP
  27332. # A literal string matcher.
  27333. FGREP=$lt_FGREP
  27334. # A BSD- or MS-compatible name lister.
  27335. NM=$lt_NM
  27336. # Whether we need soft or hard links.
  27337. LN_S=$lt_LN_S
  27338. # What is the maximum length of a command?
  27339. max_cmd_len=$max_cmd_len
  27340. # Object file suffix (normally "o").
  27341. objext=$ac_objext
  27342. # Executable file suffix (normally "").
  27343. exeext=$exeext
  27344. # whether the shell understands "unset".
  27345. lt_unset=$lt_unset
  27346. # turn spaces into newlines.
  27347. SP2NL=$lt_lt_SP2NL
  27348. # turn newlines into spaces.
  27349. NL2SP=$lt_lt_NL2SP
  27350. # convert \$build file names to \$host format.
  27351. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27352. # convert \$build files to toolchain format.
  27353. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27354. # Method to check whether dependent libraries are shared objects.
  27355. deplibs_check_method=$lt_deplibs_check_method
  27356. # Command to use when deplibs_check_method = "file_magic".
  27357. file_magic_cmd=$lt_file_magic_cmd
  27358. # How to find potential files when deplibs_check_method = "file_magic".
  27359. file_magic_glob=$lt_file_magic_glob
  27360. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27361. want_nocaseglob=$lt_want_nocaseglob
  27362. # Command to associate shared and link libraries.
  27363. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27364. # The archiver.
  27365. AR=$lt_AR
  27366. # Flags to create an archive.
  27367. AR_FLAGS=$lt_AR_FLAGS
  27368. # How to feed a file listing to the archiver.
  27369. archiver_list_spec=$lt_archiver_list_spec
  27370. # A symbol stripping program.
  27371. STRIP=$lt_STRIP
  27372. # Commands used to install an old-style archive.
  27373. RANLIB=$lt_RANLIB
  27374. old_postinstall_cmds=$lt_old_postinstall_cmds
  27375. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27376. # Whether to use a lock for old archive extraction.
  27377. lock_old_archive_extraction=$lock_old_archive_extraction
  27378. # A C compiler.
  27379. LTCC=$lt_CC
  27380. # LTCC compiler flags.
  27381. LTCFLAGS=$lt_CFLAGS
  27382. # Take the output of nm and produce a listing of raw symbols and C names.
  27383. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27384. # Transform the output of nm in a proper C declaration.
  27385. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27386. # Transform the output of nm into a list of symbols to manually relocate.
  27387. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27388. # Transform the output of nm in a C name address pair.
  27389. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27390. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27391. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27392. # The name lister interface.
  27393. nm_interface=$lt_lt_cv_nm_interface
  27394. # Specify filename containing input files for \$NM.
  27395. nm_file_list_spec=$lt_nm_file_list_spec
  27396. # The root where to search for dependent libraries,and where our libraries should be installed.
  27397. lt_sysroot=$lt_sysroot
  27398. # Command to truncate a binary pipe.
  27399. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27400. # The name of the directory that contains temporary libtool files.
  27401. objdir=$objdir
  27402. # Used to examine libraries when file_magic_cmd begins with "file".
  27403. MAGIC_CMD=$MAGIC_CMD
  27404. # Must we lock files when doing compilation?
  27405. need_locks=$lt_need_locks
  27406. # Manifest tool.
  27407. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27408. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27409. DSYMUTIL=$lt_DSYMUTIL
  27410. # Tool to change global to local symbols on Mac OS X.
  27411. NMEDIT=$lt_NMEDIT
  27412. # Tool to manipulate fat objects and archives on Mac OS X.
  27413. LIPO=$lt_LIPO
  27414. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27415. OTOOL=$lt_OTOOL
  27416. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27417. OTOOL64=$lt_OTOOL64
  27418. # Old archive suffix (normally "a").
  27419. libext=$libext
  27420. # Shared library suffix (normally ".so").
  27421. shrext_cmds=$lt_shrext_cmds
  27422. # The commands to extract the exported symbol list from a shared archive.
  27423. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27424. # Variables whose values should be saved in libtool wrapper scripts and
  27425. # restored at link time.
  27426. variables_saved_for_relink=$lt_variables_saved_for_relink
  27427. # Do we need the "lib" prefix for modules?
  27428. need_lib_prefix=$need_lib_prefix
  27429. # Do we need a version for libraries?
  27430. need_version=$need_version
  27431. # Library versioning type.
  27432. version_type=$version_type
  27433. # Shared library runtime path variable.
  27434. runpath_var=$runpath_var
  27435. # Shared library path variable.
  27436. shlibpath_var=$shlibpath_var
  27437. # Is shlibpath searched before the hard-coded library search path?
  27438. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27439. # Format of library name prefix.
  27440. libname_spec=$lt_libname_spec
  27441. # List of archive names. First name is the real one, the rest are links.
  27442. # The last name is the one that the linker finds with -lNAME
  27443. library_names_spec=$lt_library_names_spec
  27444. # The coded name of the library, if different from the real name.
  27445. soname_spec=$lt_soname_spec
  27446. # Permission mode override for installation of shared libraries.
  27447. install_override_mode=$lt_install_override_mode
  27448. # Command to use after installation of a shared archive.
  27449. postinstall_cmds=$lt_postinstall_cmds
  27450. # Command to use after uninstallation of a shared archive.
  27451. postuninstall_cmds=$lt_postuninstall_cmds
  27452. # Commands used to finish a libtool library installation in a directory.
  27453. finish_cmds=$lt_finish_cmds
  27454. # As "finish_cmds", except a single script fragment to be evaled but
  27455. # not shown.
  27456. finish_eval=$lt_finish_eval
  27457. # Whether we should hardcode library paths into libraries.
  27458. hardcode_into_libs=$hardcode_into_libs
  27459. # Compile-time system search path for libraries.
  27460. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27461. # Detected run-time system search path for libraries.
  27462. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27463. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27464. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27465. # Whether dlopen is supported.
  27466. dlopen_support=$enable_dlopen
  27467. # Whether dlopen of programs is supported.
  27468. dlopen_self=$enable_dlopen_self
  27469. # Whether dlopen of statically linked programs is supported.
  27470. dlopen_self_static=$enable_dlopen_self_static
  27471. # Commands to strip libraries.
  27472. old_striplib=$lt_old_striplib
  27473. striplib=$lt_striplib
  27474. # The linker used to build libraries.
  27475. LD=$lt_LD
  27476. # How to create reloadable object files.
  27477. reload_flag=$lt_reload_flag
  27478. reload_cmds=$lt_reload_cmds
  27479. # Commands used to build an old-style archive.
  27480. old_archive_cmds=$lt_old_archive_cmds
  27481. # A language specific compiler.
  27482. CC=$lt_compiler
  27483. # Is the compiler the GNU compiler?
  27484. with_gcc=$GCC
  27485. # Compiler flag to turn off builtin functions.
  27486. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27487. # Additional compiler flags for building library objects.
  27488. pic_flag=$lt_lt_prog_compiler_pic
  27489. # How to pass a linker flag through the compiler.
  27490. wl=$lt_lt_prog_compiler_wl
  27491. # Compiler flag to prevent dynamic linking.
  27492. link_static_flag=$lt_lt_prog_compiler_static
  27493. # Does compiler simultaneously support -c and -o options?
  27494. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27495. # Whether or not to add -lc for building shared libraries.
  27496. build_libtool_need_lc=$archive_cmds_need_lc
  27497. # Whether or not to disallow shared libs when runtime libs are static.
  27498. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27499. # Compiler flag to allow reflexive dlopens.
  27500. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27501. # Compiler flag to generate shared objects directly from archives.
  27502. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27503. # Whether the compiler copes with passing no objects directly.
  27504. compiler_needs_object=$lt_compiler_needs_object
  27505. # Create an old-style archive from a shared archive.
  27506. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27507. # Create a temporary old-style archive to link instead of a shared archive.
  27508. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27509. # Commands used to build a shared archive.
  27510. archive_cmds=$lt_archive_cmds
  27511. archive_expsym_cmds=$lt_archive_expsym_cmds
  27512. # Commands used to build a loadable module if different from building
  27513. # a shared archive.
  27514. module_cmds=$lt_module_cmds
  27515. module_expsym_cmds=$lt_module_expsym_cmds
  27516. # Whether we are building with GNU ld or not.
  27517. with_gnu_ld=$lt_with_gnu_ld
  27518. # Flag that allows shared libraries with undefined symbols to be built.
  27519. allow_undefined_flag=$lt_allow_undefined_flag
  27520. # Flag that enforces no undefined symbols.
  27521. no_undefined_flag=$lt_no_undefined_flag
  27522. # Flag to hardcode \$libdir into a binary during linking.
  27523. # This must work even if \$libdir does not exist
  27524. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27525. # Whether we need a single "-rpath" flag with a separated argument.
  27526. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27527. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27528. # DIR into the resulting binary.
  27529. hardcode_direct=$hardcode_direct
  27530. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27531. # DIR into the resulting binary and the resulting library dependency is
  27532. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27533. # library is relocated.
  27534. hardcode_direct_absolute=$hardcode_direct_absolute
  27535. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27536. # into the resulting binary.
  27537. hardcode_minus_L=$hardcode_minus_L
  27538. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27539. # into the resulting binary.
  27540. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27541. # Set to "yes" if building a shared library automatically hardcodes DIR
  27542. # into the library and all subsequent libraries and executables linked
  27543. # against it.
  27544. hardcode_automatic=$hardcode_automatic
  27545. # Set to yes if linker adds runtime paths of dependent libraries
  27546. # to runtime path list.
  27547. inherit_rpath=$inherit_rpath
  27548. # Whether libtool must link a program against all its dependency libraries.
  27549. link_all_deplibs=$link_all_deplibs
  27550. # Set to "yes" if exported symbols are required.
  27551. always_export_symbols=$always_export_symbols
  27552. # The commands to list exported symbols.
  27553. export_symbols_cmds=$lt_export_symbols_cmds
  27554. # Symbols that should not be listed in the preloaded symbols.
  27555. exclude_expsyms=$lt_exclude_expsyms
  27556. # Symbols that must always be exported.
  27557. include_expsyms=$lt_include_expsyms
  27558. # Commands necessary for linking programs (against libraries) with templates.
  27559. prelink_cmds=$lt_prelink_cmds
  27560. # Commands necessary for finishing linking programs.
  27561. postlink_cmds=$lt_postlink_cmds
  27562. # Specify filename containing input files.
  27563. file_list_spec=$lt_file_list_spec
  27564. # How to hardcode a shared library path into an executable.
  27565. hardcode_action=$hardcode_action
  27566. # The directories searched by this compiler when creating a shared library.
  27567. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27568. # Dependencies to place before and after the objects being linked to
  27569. # create a shared library.
  27570. predep_objects=$lt_predep_objects
  27571. postdep_objects=$lt_postdep_objects
  27572. predeps=$lt_predeps
  27573. postdeps=$lt_postdeps
  27574. # The library search path used internally by the compiler when linking
  27575. # a shared library.
  27576. compiler_lib_search_path=$lt_compiler_lib_search_path
  27577. # ### END LIBTOOL CONFIG
  27578. _LT_EOF
  27579. cat <<'_LT_EOF' >> "$cfgfile"
  27580. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27581. # func_munge_path_list VARIABLE PATH
  27582. # -----------------------------------
  27583. # VARIABLE is name of variable containing _space_ separated list of
  27584. # directories to be munged by the contents of PATH, which is string
  27585. # having a format:
  27586. # "DIR[:DIR]:"
  27587. # string "DIR[ DIR]" will be prepended to VARIABLE
  27588. # ":DIR[:DIR]"
  27589. # string "DIR[ DIR]" will be appended to VARIABLE
  27590. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27591. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27592. # "DIRA[ DIRA]" will be appended to VARIABLE
  27593. # "DIR[:DIR]"
  27594. # VARIABLE will be replaced by "DIR[ DIR]"
  27595. func_munge_path_list ()
  27596. {
  27597. case x$2 in
  27598. x)
  27599. ;;
  27600. *:)
  27601. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27602. ;;
  27603. x:*)
  27604. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27605. ;;
  27606. *::*)
  27607. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27608. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27609. ;;
  27610. *)
  27611. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27612. ;;
  27613. esac
  27614. }
  27615. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27616. func_cc_basename ()
  27617. {
  27618. for cc_temp in $*""; do
  27619. case $cc_temp in
  27620. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27621. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27622. \-*) ;;
  27623. *) break;;
  27624. esac
  27625. done
  27626. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27627. }
  27628. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27629. _LT_EOF
  27630. case $host_os in
  27631. aix3*)
  27632. cat <<\_LT_EOF >> "$cfgfile"
  27633. # AIX sometimes has problems with the GCC collect2 program. For some
  27634. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27635. # vanish in a puff of smoke.
  27636. if test set != "${COLLECT_NAMES+set}"; then
  27637. COLLECT_NAMES=
  27638. export COLLECT_NAMES
  27639. fi
  27640. _LT_EOF
  27641. ;;
  27642. esac
  27643. ltmain=$ac_aux_dir/ltmain.sh
  27644. # We use sed instead of cat because bash on DJGPP gets confused if
  27645. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27646. # text mode, it properly converts lines to CR/LF. This bash problem
  27647. # is reportedly fixed, but why not run on old versions too?
  27648. sed '$q' "$ltmain" >> "$cfgfile" \
  27649. || (rm -f "$cfgfile"; exit 1)
  27650. mv -f "$cfgfile" "$ofile" ||
  27651. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27652. chmod +x "$ofile"
  27653. cat <<_LT_EOF >> "$ofile"
  27654. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27655. # The linker used to build libraries.
  27656. LD=$lt_LD_RC
  27657. # How to create reloadable object files.
  27658. reload_flag=$lt_reload_flag_RC
  27659. reload_cmds=$lt_reload_cmds_RC
  27660. # Commands used to build an old-style archive.
  27661. old_archive_cmds=$lt_old_archive_cmds_RC
  27662. # A language specific compiler.
  27663. CC=$lt_compiler_RC
  27664. # Is the compiler the GNU compiler?
  27665. with_gcc=$GCC_RC
  27666. # Compiler flag to turn off builtin functions.
  27667. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27668. # Additional compiler flags for building library objects.
  27669. pic_flag=$lt_lt_prog_compiler_pic_RC
  27670. # How to pass a linker flag through the compiler.
  27671. wl=$lt_lt_prog_compiler_wl_RC
  27672. # Compiler flag to prevent dynamic linking.
  27673. link_static_flag=$lt_lt_prog_compiler_static_RC
  27674. # Does compiler simultaneously support -c and -o options?
  27675. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27676. # Whether or not to add -lc for building shared libraries.
  27677. build_libtool_need_lc=$archive_cmds_need_lc_RC
  27678. # Whether or not to disallow shared libs when runtime libs are static.
  27679. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  27680. # Compiler flag to allow reflexive dlopens.
  27681. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  27682. # Compiler flag to generate shared objects directly from archives.
  27683. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  27684. # Whether the compiler copes with passing no objects directly.
  27685. compiler_needs_object=$lt_compiler_needs_object_RC
  27686. # Create an old-style archive from a shared archive.
  27687. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  27688. # Create a temporary old-style archive to link instead of a shared archive.
  27689. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  27690. # Commands used to build a shared archive.
  27691. archive_cmds=$lt_archive_cmds_RC
  27692. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  27693. # Commands used to build a loadable module if different from building
  27694. # a shared archive.
  27695. module_cmds=$lt_module_cmds_RC
  27696. module_expsym_cmds=$lt_module_expsym_cmds_RC
  27697. # Whether we are building with GNU ld or not.
  27698. with_gnu_ld=$lt_with_gnu_ld_RC
  27699. # Flag that allows shared libraries with undefined symbols to be built.
  27700. allow_undefined_flag=$lt_allow_undefined_flag_RC
  27701. # Flag that enforces no undefined symbols.
  27702. no_undefined_flag=$lt_no_undefined_flag_RC
  27703. # Flag to hardcode \$libdir into a binary during linking.
  27704. # This must work even if \$libdir does not exist
  27705. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  27706. # Whether we need a single "-rpath" flag with a separated argument.
  27707. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  27708. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27709. # DIR into the resulting binary.
  27710. hardcode_direct=$hardcode_direct_RC
  27711. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27712. # DIR into the resulting binary and the resulting library dependency is
  27713. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27714. # library is relocated.
  27715. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  27716. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27717. # into the resulting binary.
  27718. hardcode_minus_L=$hardcode_minus_L_RC
  27719. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27720. # into the resulting binary.
  27721. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  27722. # Set to "yes" if building a shared library automatically hardcodes DIR
  27723. # into the library and all subsequent libraries and executables linked
  27724. # against it.
  27725. hardcode_automatic=$hardcode_automatic_RC
  27726. # Set to yes if linker adds runtime paths of dependent libraries
  27727. # to runtime path list.
  27728. inherit_rpath=$inherit_rpath_RC
  27729. # Whether libtool must link a program against all its dependency libraries.
  27730. link_all_deplibs=$link_all_deplibs_RC
  27731. # Set to "yes" if exported symbols are required.
  27732. always_export_symbols=$always_export_symbols_RC
  27733. # The commands to list exported symbols.
  27734. export_symbols_cmds=$lt_export_symbols_cmds_RC
  27735. # Symbols that should not be listed in the preloaded symbols.
  27736. exclude_expsyms=$lt_exclude_expsyms_RC
  27737. # Symbols that must always be exported.
  27738. include_expsyms=$lt_include_expsyms_RC
  27739. # Commands necessary for linking programs (against libraries) with templates.
  27740. prelink_cmds=$lt_prelink_cmds_RC
  27741. # Commands necessary for finishing linking programs.
  27742. postlink_cmds=$lt_postlink_cmds_RC
  27743. # Specify filename containing input files.
  27744. file_list_spec=$lt_file_list_spec_RC
  27745. # How to hardcode a shared library path into an executable.
  27746. hardcode_action=$hardcode_action_RC
  27747. # The directories searched by this compiler when creating a shared library.
  27748. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  27749. # Dependencies to place before and after the objects being linked to
  27750. # create a shared library.
  27751. predep_objects=$lt_predep_objects_RC
  27752. postdep_objects=$lt_postdep_objects_RC
  27753. predeps=$lt_predeps_RC
  27754. postdeps=$lt_postdeps_RC
  27755. # The library search path used internally by the compiler when linking
  27756. # a shared library.
  27757. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  27758. # ### END LIBTOOL TAG CONFIG: RC
  27759. _LT_EOF
  27760. cat <<_LT_EOF >> "$ofile"
  27761. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  27762. # The linker used to build libraries.
  27763. LD=$lt_LD_CXX
  27764. # How to create reloadable object files.
  27765. reload_flag=$lt_reload_flag_CXX
  27766. reload_cmds=$lt_reload_cmds_CXX
  27767. # Commands used to build an old-style archive.
  27768. old_archive_cmds=$lt_old_archive_cmds_CXX
  27769. # A language specific compiler.
  27770. CC=$lt_compiler_CXX
  27771. # Is the compiler the GNU compiler?
  27772. with_gcc=$GCC_CXX
  27773. # Compiler flag to turn off builtin functions.
  27774. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  27775. # Additional compiler flags for building library objects.
  27776. pic_flag=$lt_lt_prog_compiler_pic_CXX
  27777. # How to pass a linker flag through the compiler.
  27778. wl=$lt_lt_prog_compiler_wl_CXX
  27779. # Compiler flag to prevent dynamic linking.
  27780. link_static_flag=$lt_lt_prog_compiler_static_CXX
  27781. # Does compiler simultaneously support -c and -o options?
  27782. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  27783. # Whether or not to add -lc for building shared libraries.
  27784. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  27785. # Whether or not to disallow shared libs when runtime libs are static.
  27786. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  27787. # Compiler flag to allow reflexive dlopens.
  27788. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  27789. # Compiler flag to generate shared objects directly from archives.
  27790. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  27791. # Whether the compiler copes with passing no objects directly.
  27792. compiler_needs_object=$lt_compiler_needs_object_CXX
  27793. # Create an old-style archive from a shared archive.
  27794. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  27795. # Create a temporary old-style archive to link instead of a shared archive.
  27796. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  27797. # Commands used to build a shared archive.
  27798. archive_cmds=$lt_archive_cmds_CXX
  27799. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  27800. # Commands used to build a loadable module if different from building
  27801. # a shared archive.
  27802. module_cmds=$lt_module_cmds_CXX
  27803. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  27804. # Whether we are building with GNU ld or not.
  27805. with_gnu_ld=$lt_with_gnu_ld_CXX
  27806. # Flag that allows shared libraries with undefined symbols to be built.
  27807. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  27808. # Flag that enforces no undefined symbols.
  27809. no_undefined_flag=$lt_no_undefined_flag_CXX
  27810. # Flag to hardcode \$libdir into a binary during linking.
  27811. # This must work even if \$libdir does not exist
  27812. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  27813. # Whether we need a single "-rpath" flag with a separated argument.
  27814. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  27815. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27816. # DIR into the resulting binary.
  27817. hardcode_direct=$hardcode_direct_CXX
  27818. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27819. # DIR into the resulting binary and the resulting library dependency is
  27820. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27821. # library is relocated.
  27822. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  27823. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27824. # into the resulting binary.
  27825. hardcode_minus_L=$hardcode_minus_L_CXX
  27826. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27827. # into the resulting binary.
  27828. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  27829. # Set to "yes" if building a shared library automatically hardcodes DIR
  27830. # into the library and all subsequent libraries and executables linked
  27831. # against it.
  27832. hardcode_automatic=$hardcode_automatic_CXX
  27833. # Set to yes if linker adds runtime paths of dependent libraries
  27834. # to runtime path list.
  27835. inherit_rpath=$inherit_rpath_CXX
  27836. # Whether libtool must link a program against all its dependency libraries.
  27837. link_all_deplibs=$link_all_deplibs_CXX
  27838. # Set to "yes" if exported symbols are required.
  27839. always_export_symbols=$always_export_symbols_CXX
  27840. # The commands to list exported symbols.
  27841. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  27842. # Symbols that should not be listed in the preloaded symbols.
  27843. exclude_expsyms=$lt_exclude_expsyms_CXX
  27844. # Symbols that must always be exported.
  27845. include_expsyms=$lt_include_expsyms_CXX
  27846. # Commands necessary for linking programs (against libraries) with templates.
  27847. prelink_cmds=$lt_prelink_cmds_CXX
  27848. # Commands necessary for finishing linking programs.
  27849. postlink_cmds=$lt_postlink_cmds_CXX
  27850. # Specify filename containing input files.
  27851. file_list_spec=$lt_file_list_spec_CXX
  27852. # How to hardcode a shared library path into an executable.
  27853. hardcode_action=$hardcode_action_CXX
  27854. # The directories searched by this compiler when creating a shared library.
  27855. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  27856. # Dependencies to place before and after the objects being linked to
  27857. # create a shared library.
  27858. predep_objects=$lt_predep_objects_CXX
  27859. postdep_objects=$lt_postdep_objects_CXX
  27860. predeps=$lt_predeps_CXX
  27861. postdeps=$lt_postdeps_CXX
  27862. # The library search path used internally by the compiler when linking
  27863. # a shared library.
  27864. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  27865. # ### END LIBTOOL TAG CONFIG: CXX
  27866. _LT_EOF
  27867. ;;
  27868. "sdl2_config":C) chmod a+x sdl2-config ;;
  27869. "summary":C) printf "$SUMMARY" ;;
  27870. esac
  27871. done # for ac_tag
  27872. as_fn_exit 0
  27873. _ACEOF
  27874. ac_clean_files=$ac_clean_files_save
  27875. test $ac_write_fail = 0 ||
  27876. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  27877. # configure is writing to config.log, and then calls config.status.
  27878. # config.status does its own redirection, appending to config.log.
  27879. # Unfortunately, on DOS this fails, as config.log is still kept open
  27880. # by configure, so config.status won't be able to write to it; its
  27881. # output is simply discarded. So we exec the FD to /dev/null,
  27882. # effectively closing config.log, so it can be properly (re)opened and
  27883. # appended to by config.status. When coming back to configure, we
  27884. # need to make the FD available again.
  27885. if test "$no_create" != yes; then
  27886. ac_cs_success=:
  27887. ac_config_status_args=
  27888. test "$silent" = yes &&
  27889. ac_config_status_args="$ac_config_status_args --quiet"
  27890. exec 5>/dev/null
  27891. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  27892. exec 5>>config.log
  27893. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  27894. # would make configure fail if this is the last instruction.
  27895. $ac_cs_success || as_fn_exit 1
  27896. fi
  27897. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  27898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  27899. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  27900. fi