configure 957 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638
  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. SDL_VENDOR_INFO
  627. INSTALL_SDL2_CONFIG
  628. LIBUSB_LIBS
  629. LIBUSB_CFLAGS
  630. IBUS_LIBS
  631. IBUS_CFLAGS
  632. DBUS_LIBS
  633. DBUS_CFLAGS
  634. LIBGBM_LIBS
  635. LIBGBM_CFLAGS
  636. LIBDRM_LIBS
  637. LIBDRM_CFLAGS
  638. DIRECTFB_LIBS
  639. DIRECTFB_CFLAGS
  640. X_EXTRA_LIBS
  641. X_LIBS
  642. X_PRE_LIBS
  643. X_CFLAGS
  644. XMKMF
  645. RPI_LIBS
  646. RPI_CFLAGS
  647. DECOR_LIBS
  648. DECOR_CFLAGS
  649. FUSIONSOUND_LIBS
  650. FUSIONSOUND_CFLAGS
  651. SNDIO_LIBS
  652. SNDIO_CFLAGS
  653. ARTSCONFIG
  654. PULSEAUDIO_LIBS
  655. PULSEAUDIO_CFLAGS
  656. PIPEWIRE_LIBS
  657. PIPEWIRE_CFLAGS
  658. ESD_CONFIG
  659. ESD_LIBS
  660. ESD_CFLAGS
  661. JACK_LIBS
  662. JACK_CFLAGS
  663. ALSA_LIBS
  664. ALSA_CFLAGS
  665. ALLOCA
  666. CPP
  667. LIBTOOLLINKERTAG
  668. LINKER
  669. SORT
  670. PKG_CONFIG_LIBDIR
  671. PKG_CONFIG_PATH
  672. PKG_CONFIG
  673. SET_MAKE
  674. INSTALL_DATA
  675. INSTALL_SCRIPT
  676. INSTALL_PROGRAM
  677. CXXCPP
  678. ac_ct_CXX
  679. CXXFLAGS
  680. CXX
  681. LT_AGE
  682. LT_REVISION
  683. LT_CURRENT
  684. LT_RELEASE
  685. RC
  686. LT_SYS_LIBRARY_PATH
  687. OTOOL64
  688. OTOOL
  689. LIPO
  690. NMEDIT
  691. DSYMUTIL
  692. MANIFEST_TOOL
  693. AWK
  694. RANLIB
  695. STRIP
  696. ac_ct_AR
  697. AR
  698. LN_S
  699. NM
  700. ac_ct_DUMPBIN
  701. DUMPBIN
  702. LD
  703. FGREP
  704. EGREP
  705. GREP
  706. SED
  707. OBJEXT
  708. EXEEXT
  709. ac_ct_CC
  710. CPPFLAGS
  711. LDFLAGS
  712. CFLAGS
  713. CC
  714. host_os
  715. host_vendor
  716. host_cpu
  717. host
  718. build_os
  719. build_vendor
  720. build_cpu
  721. build
  722. LIBTOOL
  723. OBJDUMP
  724. DLLTOOL
  725. AS
  726. SDL_VERSION
  727. SDL_BINARY_AGE
  728. SDL_INTERFACE_AGE
  729. SDL_MICRO_VERSION
  730. SDL_MINOR_VERSION
  731. SDL_MAJOR_VERSION
  732. target_alias
  733. host_alias
  734. build_alias
  735. LIBS
  736. ECHO_T
  737. ECHO_N
  738. ECHO_C
  739. DEFS
  740. mandir
  741. localedir
  742. libdir
  743. psdir
  744. pdfdir
  745. dvidir
  746. htmldir
  747. infodir
  748. docdir
  749. oldincludedir
  750. includedir
  751. runstatedir
  752. localstatedir
  753. sharedstatedir
  754. sysconfdir
  755. datadir
  756. datarootdir
  757. libexecdir
  758. sbindir
  759. bindir
  760. program_transform_name
  761. prefix
  762. exec_prefix
  763. PACKAGE_URL
  764. PACKAGE_BUGREPORT
  765. PACKAGE_STRING
  766. PACKAGE_VERSION
  767. PACKAGE_TARNAME
  768. PACKAGE_NAME
  769. PATH_SEPARATOR
  770. SHELL'
  771. ac_subst_files=''
  772. ac_user_opts='
  773. enable_option_checking
  774. enable_shared
  775. enable_static
  776. with_pic
  777. enable_fast_install
  778. with_aix_soname
  779. with_gnu_ld
  780. with_sysroot
  781. enable_libtool_lock
  782. enable_largefile
  783. enable_assertions
  784. enable_dependency_tracking
  785. enable_libc
  786. enable_system_iconv
  787. enable_gcc_atomics
  788. enable_atomic
  789. enable_audio
  790. enable_video
  791. enable_render
  792. enable_events
  793. enable_joystick
  794. enable_haptic
  795. enable_hidapi
  796. enable_sensor
  797. enable_power
  798. enable_filesystem
  799. enable_timers
  800. enable_file
  801. enable_misc
  802. enable_locale
  803. enable_loadso
  804. enable_cpuinfo
  805. enable_assembly
  806. enable_ssemath
  807. enable_mmx
  808. enable_3dnow
  809. enable_sse
  810. enable_sse2
  811. enable_sse3
  812. enable_altivec
  813. enable_lsx
  814. enable_lasx
  815. enable_oss
  816. enable_alsa
  817. with_alsa_prefix
  818. with_alsa_inc_prefix
  819. enable_alsatest
  820. enable_alsa_shared
  821. enable_jack
  822. enable_jack_shared
  823. enable_esd
  824. with_esd_prefix
  825. with_esd_exec_prefix
  826. enable_esdtest
  827. enable_esd_shared
  828. enable_pipewire
  829. enable_pipewire_shared
  830. enable_pulseaudio
  831. enable_pulseaudio_shared
  832. enable_arts
  833. enable_arts_shared
  834. enable_nas
  835. enable_nas_shared
  836. enable_sndio
  837. enable_sndio_shared
  838. enable_fusionsound
  839. enable_fusionsound_shared
  840. enable_diskaudio
  841. enable_dummyaudio
  842. enable_libsamplerate
  843. enable_libsamplerate_shared
  844. enable_arm_simd
  845. enable_arm_neon
  846. enable_werror
  847. enable_video_wayland
  848. enable_video_wayland_qt_touch
  849. enable_wayland_shared
  850. enable_libdecor
  851. enable_libdecor_shared
  852. enable_video_rpi
  853. enable_video_x11
  854. with_x
  855. enable_x11_shared
  856. enable_video_x11_xcursor
  857. enable_video_x11_xdbe
  858. enable_video_x11_xinput
  859. enable_video_x11_xfixes
  860. enable_video_x11_xrandr
  861. enable_video_x11_scrnsaver
  862. enable_video_x11_xshape
  863. enable_video_vivante
  864. enable_video_cocoa
  865. enable_video_metal
  866. enable_render_metal
  867. enable_video_directfb
  868. enable_directfb_shared
  869. enable_video_kmsdrm
  870. enable_kmsdrm_shared
  871. enable_video_dummy
  872. enable_video_offscreen
  873. enable_video_opengl
  874. enable_video_opengles
  875. enable_video_opengles1
  876. enable_video_opengles2
  877. enable_video_vulkan
  878. enable_libudev
  879. enable_dbus
  880. enable_ime
  881. enable_ibus
  882. enable_fcitx
  883. enable_joystick_mfi
  884. enable_pthreads
  885. enable_pthread_sem
  886. enable_directx
  887. enable_xinput
  888. enable_wasapi
  889. enable_hidapi_joystick
  890. enable_hidapi_libusb
  891. enable_clock_gettime
  892. enable_rpath
  893. enable_backgrounding_signal
  894. enable_foregrounding_signal
  895. enable_joystick_virtual
  896. enable_render_d3d
  897. enable_sdl2_config
  898. enable_vendor_info
  899. '
  900. ac_precious_vars='build_alias
  901. host_alias
  902. target_alias
  903. CC
  904. CFLAGS
  905. LDFLAGS
  906. LIBS
  907. CPPFLAGS
  908. LT_SYS_LIBRARY_PATH
  909. CXX
  910. CXXFLAGS
  911. CCC
  912. CXXCPP
  913. PKG_CONFIG
  914. PKG_CONFIG_PATH
  915. PKG_CONFIG_LIBDIR
  916. CPP
  917. JACK_CFLAGS
  918. JACK_LIBS
  919. ESD_CFLAGS
  920. ESD_LIBS
  921. PIPEWIRE_CFLAGS
  922. PIPEWIRE_LIBS
  923. PULSEAUDIO_CFLAGS
  924. PULSEAUDIO_LIBS
  925. SNDIO_CFLAGS
  926. SNDIO_LIBS
  927. FUSIONSOUND_CFLAGS
  928. FUSIONSOUND_LIBS
  929. DECOR_CFLAGS
  930. DECOR_LIBS
  931. RPI_CFLAGS
  932. RPI_LIBS
  933. XMKMF
  934. DIRECTFB_CFLAGS
  935. DIRECTFB_LIBS
  936. LIBDRM_CFLAGS
  937. LIBDRM_LIBS
  938. LIBGBM_CFLAGS
  939. LIBGBM_LIBS
  940. DBUS_CFLAGS
  941. DBUS_LIBS
  942. IBUS_CFLAGS
  943. IBUS_LIBS
  944. LIBUSB_CFLAGS
  945. LIBUSB_LIBS'
  946. # Initialize some variables set by options.
  947. ac_init_help=
  948. ac_init_version=false
  949. ac_unrecognized_opts=
  950. ac_unrecognized_sep=
  951. # The variables have the same names as the options, with
  952. # dashes changed to underlines.
  953. cache_file=/dev/null
  954. exec_prefix=NONE
  955. no_create=
  956. no_recursion=
  957. prefix=NONE
  958. program_prefix=NONE
  959. program_suffix=NONE
  960. program_transform_name=s,x,x,
  961. silent=
  962. site=
  963. srcdir=
  964. verbose=
  965. x_includes=NONE
  966. x_libraries=NONE
  967. # Installation directory options.
  968. # These are left unexpanded so users can "make install exec_prefix=/foo"
  969. # and all the variables that are supposed to be based on exec_prefix
  970. # by default will actually change.
  971. # Use braces instead of parens because sh, perl, etc. also accept them.
  972. # (The list follows the same order as the GNU Coding Standards.)
  973. bindir='${exec_prefix}/bin'
  974. sbindir='${exec_prefix}/sbin'
  975. libexecdir='${exec_prefix}/libexec'
  976. datarootdir='${prefix}/share'
  977. datadir='${datarootdir}'
  978. sysconfdir='${prefix}/etc'
  979. sharedstatedir='${prefix}/com'
  980. localstatedir='${prefix}/var'
  981. runstatedir='${localstatedir}/run'
  982. includedir='${prefix}/include'
  983. oldincludedir='/usr/include'
  984. docdir='${datarootdir}/doc/${PACKAGE}'
  985. infodir='${datarootdir}/info'
  986. htmldir='${docdir}'
  987. dvidir='${docdir}'
  988. pdfdir='${docdir}'
  989. psdir='${docdir}'
  990. libdir='${exec_prefix}/lib'
  991. localedir='${datarootdir}/locale'
  992. mandir='${datarootdir}/man'
  993. ac_prev=
  994. ac_dashdash=
  995. for ac_option
  996. do
  997. # If the previous option needs an argument, assign it.
  998. if test -n "$ac_prev"; then
  999. eval $ac_prev=\$ac_option
  1000. ac_prev=
  1001. continue
  1002. fi
  1003. case $ac_option in
  1004. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1005. *=) ac_optarg= ;;
  1006. *) ac_optarg=yes ;;
  1007. esac
  1008. case $ac_dashdash$ac_option in
  1009. --)
  1010. ac_dashdash=yes ;;
  1011. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1012. ac_prev=bindir ;;
  1013. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1014. bindir=$ac_optarg ;;
  1015. -build | --build | --buil | --bui | --bu)
  1016. ac_prev=build_alias ;;
  1017. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1018. build_alias=$ac_optarg ;;
  1019. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1020. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1021. ac_prev=cache_file ;;
  1022. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1023. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1024. cache_file=$ac_optarg ;;
  1025. --config-cache | -C)
  1026. cache_file=config.cache ;;
  1027. -datadir | --datadir | --datadi | --datad)
  1028. ac_prev=datadir ;;
  1029. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1030. datadir=$ac_optarg ;;
  1031. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1032. | --dataroo | --dataro | --datar)
  1033. ac_prev=datarootdir ;;
  1034. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1035. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1036. datarootdir=$ac_optarg ;;
  1037. -disable-* | --disable-*)
  1038. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1039. # Reject names that are not valid shell variable names.
  1040. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1041. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1042. ac_useropt_orig=$ac_useropt
  1043. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1044. case $ac_user_opts in
  1045. *"
  1046. "enable_$ac_useropt"
  1047. "*) ;;
  1048. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1049. ac_unrecognized_sep=', ';;
  1050. esac
  1051. eval enable_$ac_useropt=no ;;
  1052. -docdir | --docdir | --docdi | --doc | --do)
  1053. ac_prev=docdir ;;
  1054. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1055. docdir=$ac_optarg ;;
  1056. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1057. ac_prev=dvidir ;;
  1058. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1059. dvidir=$ac_optarg ;;
  1060. -enable-* | --enable-*)
  1061. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1062. # Reject names that are not valid shell variable names.
  1063. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1064. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1065. ac_useropt_orig=$ac_useropt
  1066. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1067. case $ac_user_opts in
  1068. *"
  1069. "enable_$ac_useropt"
  1070. "*) ;;
  1071. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1072. ac_unrecognized_sep=', ';;
  1073. esac
  1074. eval enable_$ac_useropt=\$ac_optarg ;;
  1075. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1076. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1077. | --exec | --exe | --ex)
  1078. ac_prev=exec_prefix ;;
  1079. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1080. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1081. | --exec=* | --exe=* | --ex=*)
  1082. exec_prefix=$ac_optarg ;;
  1083. -gas | --gas | --ga | --g)
  1084. # Obsolete; use --with-gas.
  1085. with_gas=yes ;;
  1086. -help | --help | --hel | --he | -h)
  1087. ac_init_help=long ;;
  1088. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1089. ac_init_help=recursive ;;
  1090. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1091. ac_init_help=short ;;
  1092. -host | --host | --hos | --ho)
  1093. ac_prev=host_alias ;;
  1094. -host=* | --host=* | --hos=* | --ho=*)
  1095. host_alias=$ac_optarg ;;
  1096. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1097. ac_prev=htmldir ;;
  1098. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1099. | --ht=*)
  1100. htmldir=$ac_optarg ;;
  1101. -includedir | --includedir | --includedi | --included | --include \
  1102. | --includ | --inclu | --incl | --inc)
  1103. ac_prev=includedir ;;
  1104. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1105. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1106. includedir=$ac_optarg ;;
  1107. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1108. ac_prev=infodir ;;
  1109. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1110. infodir=$ac_optarg ;;
  1111. -libdir | --libdir | --libdi | --libd)
  1112. ac_prev=libdir ;;
  1113. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1114. libdir=$ac_optarg ;;
  1115. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1116. | --libexe | --libex | --libe)
  1117. ac_prev=libexecdir ;;
  1118. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1119. | --libexe=* | --libex=* | --libe=*)
  1120. libexecdir=$ac_optarg ;;
  1121. -localedir | --localedir | --localedi | --localed | --locale)
  1122. ac_prev=localedir ;;
  1123. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1124. localedir=$ac_optarg ;;
  1125. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1126. | --localstate | --localstat | --localsta | --localst | --locals)
  1127. ac_prev=localstatedir ;;
  1128. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1129. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1130. localstatedir=$ac_optarg ;;
  1131. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1132. ac_prev=mandir ;;
  1133. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1134. mandir=$ac_optarg ;;
  1135. -nfp | --nfp | --nf)
  1136. # Obsolete; use --without-fp.
  1137. with_fp=no ;;
  1138. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1139. | --no-cr | --no-c | -n)
  1140. no_create=yes ;;
  1141. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1142. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1143. no_recursion=yes ;;
  1144. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1145. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1146. | --oldin | --oldi | --old | --ol | --o)
  1147. ac_prev=oldincludedir ;;
  1148. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1149. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1150. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1151. oldincludedir=$ac_optarg ;;
  1152. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1153. ac_prev=prefix ;;
  1154. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1155. prefix=$ac_optarg ;;
  1156. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1157. | --program-pre | --program-pr | --program-p)
  1158. ac_prev=program_prefix ;;
  1159. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1160. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1161. program_prefix=$ac_optarg ;;
  1162. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1163. | --program-suf | --program-su | --program-s)
  1164. ac_prev=program_suffix ;;
  1165. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1166. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1167. program_suffix=$ac_optarg ;;
  1168. -program-transform-name | --program-transform-name \
  1169. | --program-transform-nam | --program-transform-na \
  1170. | --program-transform-n | --program-transform- \
  1171. | --program-transform | --program-transfor \
  1172. | --program-transfo | --program-transf \
  1173. | --program-trans | --program-tran \
  1174. | --progr-tra | --program-tr | --program-t)
  1175. ac_prev=program_transform_name ;;
  1176. -program-transform-name=* | --program-transform-name=* \
  1177. | --program-transform-nam=* | --program-transform-na=* \
  1178. | --program-transform-n=* | --program-transform-=* \
  1179. | --program-transform=* | --program-transfor=* \
  1180. | --program-transfo=* | --program-transf=* \
  1181. | --program-trans=* | --program-tran=* \
  1182. | --progr-tra=* | --program-tr=* | --program-t=*)
  1183. program_transform_name=$ac_optarg ;;
  1184. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1185. ac_prev=pdfdir ;;
  1186. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1187. pdfdir=$ac_optarg ;;
  1188. -psdir | --psdir | --psdi | --psd | --ps)
  1189. ac_prev=psdir ;;
  1190. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1191. psdir=$ac_optarg ;;
  1192. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1193. | -silent | --silent | --silen | --sile | --sil)
  1194. silent=yes ;;
  1195. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1196. | --runstate | --runstat | --runsta | --runst | --runs \
  1197. | --run | --ru | --r)
  1198. ac_prev=runstatedir ;;
  1199. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1200. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1201. | --run=* | --ru=* | --r=*)
  1202. runstatedir=$ac_optarg ;;
  1203. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1204. ac_prev=sbindir ;;
  1205. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1206. | --sbi=* | --sb=*)
  1207. sbindir=$ac_optarg ;;
  1208. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1209. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1210. | --sharedst | --shareds | --shared | --share | --shar \
  1211. | --sha | --sh)
  1212. ac_prev=sharedstatedir ;;
  1213. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1214. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1215. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1216. | --sha=* | --sh=*)
  1217. sharedstatedir=$ac_optarg ;;
  1218. -site | --site | --sit)
  1219. ac_prev=site ;;
  1220. -site=* | --site=* | --sit=*)
  1221. site=$ac_optarg ;;
  1222. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1223. ac_prev=srcdir ;;
  1224. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1225. srcdir=$ac_optarg ;;
  1226. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1227. | --syscon | --sysco | --sysc | --sys | --sy)
  1228. ac_prev=sysconfdir ;;
  1229. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1230. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1231. sysconfdir=$ac_optarg ;;
  1232. -target | --target | --targe | --targ | --tar | --ta | --t)
  1233. ac_prev=target_alias ;;
  1234. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1235. target_alias=$ac_optarg ;;
  1236. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1237. verbose=yes ;;
  1238. -version | --version | --versio | --versi | --vers | -V)
  1239. ac_init_version=: ;;
  1240. -with-* | --with-*)
  1241. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1242. # Reject names that are not valid shell variable names.
  1243. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1244. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1245. ac_useropt_orig=$ac_useropt
  1246. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1247. case $ac_user_opts in
  1248. *"
  1249. "with_$ac_useropt"
  1250. "*) ;;
  1251. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1252. ac_unrecognized_sep=', ';;
  1253. esac
  1254. eval with_$ac_useropt=\$ac_optarg ;;
  1255. -without-* | --without-*)
  1256. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1257. # Reject names that are not valid shell variable names.
  1258. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1259. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1260. ac_useropt_orig=$ac_useropt
  1261. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1262. case $ac_user_opts in
  1263. *"
  1264. "with_$ac_useropt"
  1265. "*) ;;
  1266. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1267. ac_unrecognized_sep=', ';;
  1268. esac
  1269. eval with_$ac_useropt=no ;;
  1270. --x)
  1271. # Obsolete; use --with-x.
  1272. with_x=yes ;;
  1273. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1274. | --x-incl | --x-inc | --x-in | --x-i)
  1275. ac_prev=x_includes ;;
  1276. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1277. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1278. x_includes=$ac_optarg ;;
  1279. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1280. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1281. ac_prev=x_libraries ;;
  1282. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1283. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1284. x_libraries=$ac_optarg ;;
  1285. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1286. Try \`$0 --help' for more information"
  1287. ;;
  1288. *=*)
  1289. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1290. # Reject names that are not valid shell variable names.
  1291. case $ac_envvar in #(
  1292. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1293. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1294. esac
  1295. eval $ac_envvar=\$ac_optarg
  1296. export $ac_envvar ;;
  1297. *)
  1298. # FIXME: should be removed in autoconf 3.0.
  1299. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1300. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1301. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1302. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1303. ;;
  1304. esac
  1305. done
  1306. if test -n "$ac_prev"; then
  1307. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1308. as_fn_error $? "missing argument to $ac_option"
  1309. fi
  1310. if test -n "$ac_unrecognized_opts"; then
  1311. case $enable_option_checking in
  1312. no) ;;
  1313. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1314. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1315. esac
  1316. fi
  1317. # Check all directory arguments for consistency.
  1318. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1319. datadir sysconfdir sharedstatedir localstatedir includedir \
  1320. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1321. libdir localedir mandir runstatedir
  1322. do
  1323. eval ac_val=\$$ac_var
  1324. # Remove trailing slashes.
  1325. case $ac_val in
  1326. */ )
  1327. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1328. eval $ac_var=\$ac_val;;
  1329. esac
  1330. # Be sure to have absolute directory names.
  1331. case $ac_val in
  1332. [\\/$]* | ?:[\\/]* ) continue;;
  1333. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1334. esac
  1335. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1336. done
  1337. # There might be people who depend on the old broken behavior: `$host'
  1338. # used to hold the argument of --host etc.
  1339. # FIXME: To remove some day.
  1340. build=$build_alias
  1341. host=$host_alias
  1342. target=$target_alias
  1343. # FIXME: To remove some day.
  1344. if test "x$host_alias" != x; then
  1345. if test "x$build_alias" = x; then
  1346. cross_compiling=maybe
  1347. elif test "x$build_alias" != "x$host_alias"; then
  1348. cross_compiling=yes
  1349. fi
  1350. fi
  1351. ac_tool_prefix=
  1352. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1353. test "$silent" = yes && exec 6>/dev/null
  1354. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1355. ac_ls_di=`ls -di .` &&
  1356. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1357. as_fn_error $? "working directory cannot be determined"
  1358. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1359. as_fn_error $? "pwd does not report name of working directory"
  1360. # Find the source files, if location was not specified.
  1361. if test -z "$srcdir"; then
  1362. ac_srcdir_defaulted=yes
  1363. # Try the directory containing this script, then the parent directory.
  1364. ac_confdir=`$as_dirname -- "$as_myself" ||
  1365. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1366. X"$as_myself" : 'X\(//\)[^/]' \| \
  1367. X"$as_myself" : 'X\(//\)$' \| \
  1368. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1369. printf "%s\n" X"$as_myself" |
  1370. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1371. s//\1/
  1372. q
  1373. }
  1374. /^X\(\/\/\)[^/].*/{
  1375. s//\1/
  1376. q
  1377. }
  1378. /^X\(\/\/\)$/{
  1379. s//\1/
  1380. q
  1381. }
  1382. /^X\(\/\).*/{
  1383. s//\1/
  1384. q
  1385. }
  1386. s/.*/./; q'`
  1387. srcdir=$ac_confdir
  1388. if test ! -r "$srcdir/$ac_unique_file"; then
  1389. srcdir=..
  1390. fi
  1391. else
  1392. ac_srcdir_defaulted=no
  1393. fi
  1394. if test ! -r "$srcdir/$ac_unique_file"; then
  1395. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1396. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1397. fi
  1398. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1399. ac_abs_confdir=`(
  1400. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1401. pwd)`
  1402. # When building in place, set srcdir=.
  1403. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1404. srcdir=.
  1405. fi
  1406. # Remove unnecessary trailing slashes from srcdir.
  1407. # Double slashes in file names in object file debugging info
  1408. # mess up M-x gdb in Emacs.
  1409. case $srcdir in
  1410. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1411. esac
  1412. for ac_var in $ac_precious_vars; do
  1413. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1414. eval ac_env_${ac_var}_value=\$${ac_var}
  1415. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1416. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1417. done
  1418. #
  1419. # Report the --help message.
  1420. #
  1421. if test "$ac_init_help" = "long"; then
  1422. # Omit some internal or obsolete options to make the list less imposing.
  1423. # This message is too long to be a string in the A/UX 3.1 sh.
  1424. cat <<_ACEOF
  1425. \`configure' configures this package to adapt to many kinds of systems.
  1426. Usage: $0 [OPTION]... [VAR=VALUE]...
  1427. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1428. VAR=VALUE. See below for descriptions of some of the useful variables.
  1429. Defaults for the options are specified in brackets.
  1430. Configuration:
  1431. -h, --help display this help and exit
  1432. --help=short display options specific to this package
  1433. --help=recursive display the short help of all the included packages
  1434. -V, --version display version information and exit
  1435. -q, --quiet, --silent do not print \`checking ...' messages
  1436. --cache-file=FILE cache test results in FILE [disabled]
  1437. -C, --config-cache alias for \`--cache-file=config.cache'
  1438. -n, --no-create do not create output files
  1439. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1440. Installation directories:
  1441. --prefix=PREFIX install architecture-independent files in PREFIX
  1442. [$ac_default_prefix]
  1443. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1444. [PREFIX]
  1445. By default, \`make install' will install all the files in
  1446. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1447. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1448. for instance \`--prefix=\$HOME'.
  1449. For better control, use the options below.
  1450. Fine tuning of the installation directories:
  1451. --bindir=DIR user executables [EPREFIX/bin]
  1452. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1453. --libexecdir=DIR program executables [EPREFIX/libexec]
  1454. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1455. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1456. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1457. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1458. --libdir=DIR object code libraries [EPREFIX/lib]
  1459. --includedir=DIR C header files [PREFIX/include]
  1460. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1461. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1462. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1463. --infodir=DIR info documentation [DATAROOTDIR/info]
  1464. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1465. --mandir=DIR man documentation [DATAROOTDIR/man]
  1466. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1467. --htmldir=DIR html documentation [DOCDIR]
  1468. --dvidir=DIR dvi documentation [DOCDIR]
  1469. --pdfdir=DIR pdf documentation [DOCDIR]
  1470. --psdir=DIR ps documentation [DOCDIR]
  1471. _ACEOF
  1472. cat <<\_ACEOF
  1473. X features:
  1474. --x-includes=DIR X include files are in DIR
  1475. --x-libraries=DIR X library files are in DIR
  1476. System types:
  1477. --build=BUILD configure for building on BUILD [guessed]
  1478. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1479. _ACEOF
  1480. fi
  1481. if test -n "$ac_init_help"; then
  1482. cat <<\_ACEOF
  1483. Optional Features:
  1484. --disable-option-checking ignore unrecognized --enable/--with options
  1485. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1486. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1487. --enable-shared[=PKGS] build shared libraries [default=yes]
  1488. --enable-static[=PKGS] build static libraries [default=yes]
  1489. --enable-fast-install[=PKGS]
  1490. optimize for fast installation [default=yes]
  1491. --disable-libtool-lock avoid locking (might break parallel builds)
  1492. --disable-largefile omit support for large files
  1493. --enable-assertions Enable internal sanity checks
  1494. (auto/disabled/release/enabled/paranoid)
  1495. [default=auto]
  1496. --enable-dependency-tracking
  1497. Use gcc -MMD -MT dependency tracking [default=yes]
  1498. --enable-libc Use the system C library [default=yes]
  1499. --enable-system-iconv Use iconv() from system-installed libraries
  1500. [default=yes]
  1501. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1502. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1503. --enable-audio Enable the audio subsystem [default=yes]
  1504. --enable-video Enable the video subsystem [default=yes]
  1505. --enable-render Enable the render subsystem [default=yes]
  1506. --enable-events Enable the events subsystem [default=yes]
  1507. --enable-joystick Enable the joystick subsystem [default=yes]
  1508. --enable-haptic Enable the haptic (force feedback) subsystem
  1509. [default=yes]
  1510. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1511. --enable-sensor Enable the sensor subsystem [default=yes]
  1512. --enable-power Enable the power subsystem [default=yes]
  1513. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1514. --enable-timers Enable the timer subsystem [default=yes]
  1515. --enable-file Enable the file subsystem [default=yes]
  1516. --enable-misc Enable the misc subsystem [default=yes]
  1517. --enable-locale Enable the locale subsystem [default=yes]
  1518. --enable-loadso Enable the shared object loading subsystem
  1519. [default=yes]
  1520. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1521. --enable-assembly Enable assembly routines [default=yes]
  1522. --enable-ssemath Allow GCC to use SSE floating point math
  1523. [default=maybe]
  1524. --enable-mmx use MMX assembly routines [default=yes]
  1525. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1526. --enable-sse use SSE assembly routines [default=yes]
  1527. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1528. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1529. --enable-altivec use Altivec assembly routines [default=yes]
  1530. --enable-lsx use LSX assembly routines [default=yes]
  1531. --enable-lasx use LASX assembly routines [default=yes]
  1532. --enable-oss support the OSS audio API [default=maybe]
  1533. --enable-alsa support the ALSA audio API [default=yes]
  1534. --disable-alsatest Do not try to compile and run a test Alsa program
  1535. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1536. --enable-jack use JACK audio [default=yes]
  1537. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1538. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1539. --disable-esdtest Do not try to compile and run a test ESD program
  1540. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1541. --enable-pipewire use Pipewire audio [default=yes]
  1542. --enable-pipewire-shared
  1543. dynamically load Pipewire support [default=yes]
  1544. --enable-pulseaudio use PulseAudio [default=yes]
  1545. --enable-pulseaudio-shared
  1546. dynamically load PulseAudio support [default=yes]
  1547. --enable-arts support the Analog Real Time Synthesizer
  1548. [default=yes]
  1549. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1550. --enable-nas support the NAS audio API [default=yes]
  1551. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1552. --enable-sndio support the sndio audio API [default=yes]
  1553. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1554. --enable-fusionsound use FusionSound audio driver [default=no]
  1555. --enable-fusionsound-shared
  1556. dynamically load fusionsound audio support
  1557. [default=yes]
  1558. --enable-diskaudio support the disk writer audio driver [default=yes]
  1559. --enable-dummyaudio support the dummy audio driver [default=yes]
  1560. --enable-libsamplerate use libsamplerate for audio rate conversion
  1561. [default=yes]
  1562. --enable-libsamplerate-shared
  1563. dynamically load libsamplerate [default=yes]
  1564. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1565. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1566. --enable-werror treat warnings as errors [default=no]
  1567. --enable-video-wayland use Wayland video driver [default=yes]
  1568. --enable-video-wayland-qt-touch
  1569. QtWayland server support for Wayland video driver
  1570. [default=yes]
  1571. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1572. --enable-libdecor use libdecor for Wayland client-side decorations
  1573. [default=yes]
  1574. --enable-libdecor-shared
  1575. dynamically load libdecor [default=yes]
  1576. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1577. --enable-video-x11 use X11 video driver [default=maybe]
  1578. --enable-x11-shared dynamically load X11 support [default=maybe]
  1579. --enable-video-x11-xcursor
  1580. enable X11 Xcursor support [default=yes]
  1581. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1582. --enable-video-x11-xinput
  1583. enable X11 XInput extension for manymouse, tablets,
  1584. etc [default=yes]
  1585. --enable-video-x11-xfixes
  1586. enable X11 Xfixes support [default=yes]
  1587. --enable-video-x11-xrandr
  1588. enable X11 Xrandr extension for fullscreen
  1589. [default=yes]
  1590. --enable-video-x11-scrnsaver
  1591. enable X11 screensaver extension [default=yes]
  1592. --enable-video-x11-xshape
  1593. enable X11 XShape support [default=yes]
  1594. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1595. --enable-video-cocoa use Cocoa video driver [default=yes]
  1596. --enable-video-metal include Metal support [default=yes]
  1597. --enable-render-metal enable the Metal render driver [default=yes]
  1598. --enable-video-directfb use DirectFB video driver [default=no]
  1599. --enable-directfb-shared
  1600. dynamically load directfb support [default=yes]
  1601. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1602. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1603. --enable-video-dummy use dummy video driver [default=yes]
  1604. --enable-video-offscreen
  1605. use offscreen video driver [default=yes]
  1606. --enable-video-opengl include OpenGL support [default=yes]
  1607. --enable-video-opengles include OpenGL ES support [default=yes]
  1608. --enable-video-opengles1
  1609. include OpenGL ES 1.1 support [default=yes]
  1610. --enable-video-opengles2
  1611. include OpenGL ES 2.0 support [default=yes]
  1612. --enable-video-vulkan include Vulkan support [default=yes]
  1613. --enable-libudev enable libudev support [default=yes]
  1614. --enable-dbus enable D-Bus support [default=yes]
  1615. --enable-ime enable IME support [default=yes]
  1616. --enable-ibus enable IBus support [default=yes]
  1617. --enable-fcitx enable fcitx support [default=yes]
  1618. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1619. --enable-pthreads use POSIX threads for multi-threading
  1620. [default=maybe]
  1621. --enable-pthread-sem use pthread semaphores [default=maybe]
  1622. --enable-directx use DirectX for Windows audio/video [default=yes]
  1623. --enable-xinput use Xinput for Windows [default=yes]
  1624. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1625. --enable-hidapi-joystick
  1626. use HIDAPI for low level joystick drivers
  1627. [default=yes]
  1628. --enable-hidapi-libusb use libusb for low level joystick drivers
  1629. [default=maybe]
  1630. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1631. UNIX [default=yes]
  1632. --enable-rpath use an rpath when linking SDL [default=yes]
  1633. --enable-backgrounding-signal
  1634. number to use for magic backgrounding signal or 'no'
  1635. [default=no]
  1636. --enable-foregrounding-signal
  1637. number to use for magic foregrounding signal or 'no'
  1638. [default=no]
  1639. --enable-joystick-virtual
  1640. enable virtual joystick APIs [default=yes]
  1641. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1642. --enable-sdl2-config Install sdl2-config [default=yes]
  1643. --enable-vendor-info=STRING
  1644. Add vendor info to SDL_REVISION
  1645. Optional Packages:
  1646. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1647. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1648. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1649. both]
  1650. --with-aix-soname=aix|svr4|both
  1651. shared library versioning (aka "SONAME") variant to
  1652. provide on AIX, [default=aix].
  1653. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1654. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1655. compiler's sysroot if not specified).
  1656. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1657. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1658. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1659. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1660. --with-x use the X Window System
  1661. Some influential environment variables:
  1662. CC C compiler command
  1663. CFLAGS C compiler flags
  1664. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1665. nonstandard directory <lib dir>
  1666. LIBS libraries to pass to the linker, e.g. -l<library>
  1667. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1668. you have headers in a nonstandard directory <include dir>
  1669. LT_SYS_LIBRARY_PATH
  1670. User-defined run-time library search path.
  1671. CXX C++ compiler command
  1672. CXXFLAGS C++ compiler flags
  1673. CXXCPP C++ preprocessor
  1674. PKG_CONFIG path to pkg-config utility
  1675. PKG_CONFIG_PATH
  1676. directories to add to pkg-config's search path
  1677. PKG_CONFIG_LIBDIR
  1678. path overriding pkg-config's built-in search path
  1679. CPP C preprocessor
  1680. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1681. JACK_LIBS linker flags for JACK, overriding pkg-config
  1682. ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
  1683. ESD_LIBS linker flags for ESD, overriding pkg-config
  1684. PIPEWIRE_CFLAGS
  1685. C compiler flags for PIPEWIRE, overriding pkg-config
  1686. PIPEWIRE_LIBS
  1687. linker flags for PIPEWIRE, overriding pkg-config
  1688. PULSEAUDIO_CFLAGS
  1689. C compiler flags for PULSEAUDIO, overriding pkg-config
  1690. PULSEAUDIO_LIBS
  1691. linker flags for PULSEAUDIO, overriding pkg-config
  1692. SNDIO_CFLAGS
  1693. C compiler flags for SNDIO, overriding pkg-config
  1694. SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
  1695. FUSIONSOUND_CFLAGS
  1696. C compiler flags for FUSIONSOUND, overriding pkg-config
  1697. FUSIONSOUND_LIBS
  1698. linker flags for FUSIONSOUND, overriding pkg-config
  1699. DECOR_CFLAGS
  1700. C compiler flags for DECOR, overriding pkg-config
  1701. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1702. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1703. RPI_LIBS linker flags for RPI, overriding pkg-config
  1704. XMKMF Path to xmkmf, Makefile generator for X Window System
  1705. DIRECTFB_CFLAGS
  1706. C compiler flags for DIRECTFB, overriding pkg-config
  1707. DIRECTFB_LIBS
  1708. linker flags for DIRECTFB, overriding pkg-config
  1709. LIBDRM_CFLAGS
  1710. C compiler flags for LIBDRM, overriding pkg-config
  1711. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1712. LIBGBM_CFLAGS
  1713. C compiler flags for LIBGBM, overriding pkg-config
  1714. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1715. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1716. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1717. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1718. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1719. LIBUSB_CFLAGS
  1720. C compiler flags for LIBUSB, overriding pkg-config
  1721. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1722. Use these variables to override the choices made by `configure' or to help
  1723. it to find libraries and programs with nonstandard names/locations.
  1724. Report bugs to the package provider.
  1725. _ACEOF
  1726. ac_status=$?
  1727. fi
  1728. if test "$ac_init_help" = "recursive"; then
  1729. # If there are subdirs, report their specific --help.
  1730. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1731. test -d "$ac_dir" ||
  1732. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1733. continue
  1734. ac_builddir=.
  1735. case "$ac_dir" in
  1736. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1737. *)
  1738. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1739. # A ".." for each directory in $ac_dir_suffix.
  1740. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1741. case $ac_top_builddir_sub in
  1742. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1743. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1744. esac ;;
  1745. esac
  1746. ac_abs_top_builddir=$ac_pwd
  1747. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1748. # for backward compatibility:
  1749. ac_top_builddir=$ac_top_build_prefix
  1750. case $srcdir in
  1751. .) # We are building in place.
  1752. ac_srcdir=.
  1753. ac_top_srcdir=$ac_top_builddir_sub
  1754. ac_abs_top_srcdir=$ac_pwd ;;
  1755. [\\/]* | ?:[\\/]* ) # Absolute name.
  1756. ac_srcdir=$srcdir$ac_dir_suffix;
  1757. ac_top_srcdir=$srcdir
  1758. ac_abs_top_srcdir=$srcdir ;;
  1759. *) # Relative name.
  1760. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1761. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1762. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1763. esac
  1764. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1765. cd "$ac_dir" || { ac_status=$?; continue; }
  1766. # Check for configure.gnu first; this name is used for a wrapper for
  1767. # Metaconfig's "Configure" on case-insensitive file systems.
  1768. if test -f "$ac_srcdir/configure.gnu"; then
  1769. echo &&
  1770. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1771. elif test -f "$ac_srcdir/configure"; then
  1772. echo &&
  1773. $SHELL "$ac_srcdir/configure" --help=recursive
  1774. else
  1775. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1776. fi || ac_status=$?
  1777. cd "$ac_pwd" || { ac_status=$?; break; }
  1778. done
  1779. fi
  1780. test -n "$ac_init_help" && exit $ac_status
  1781. if $ac_init_version; then
  1782. cat <<\_ACEOF
  1783. configure
  1784. generated by GNU Autoconf 2.71
  1785. Copyright (C) 2021 Free Software Foundation, Inc.
  1786. This configure script is free software; the Free Software Foundation
  1787. gives unlimited permission to copy, distribute and modify it.
  1788. _ACEOF
  1789. exit
  1790. fi
  1791. ## ------------------------ ##
  1792. ## Autoconf initialization. ##
  1793. ## ------------------------ ##
  1794. # ac_fn_c_try_compile LINENO
  1795. # --------------------------
  1796. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1797. ac_fn_c_try_compile ()
  1798. {
  1799. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1800. rm -f conftest.$ac_objext conftest.beam
  1801. if { { ac_try="$ac_compile"
  1802. case "(($ac_try" in
  1803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1804. *) ac_try_echo=$ac_try;;
  1805. esac
  1806. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1807. printf "%s\n" "$ac_try_echo"; } >&5
  1808. (eval "$ac_compile") 2>conftest.err
  1809. ac_status=$?
  1810. if test -s conftest.err; then
  1811. grep -v '^ *+' conftest.err >conftest.er1
  1812. cat conftest.er1 >&5
  1813. mv -f conftest.er1 conftest.err
  1814. fi
  1815. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1816. test $ac_status = 0; } && {
  1817. test -z "$ac_c_werror_flag" ||
  1818. test ! -s conftest.err
  1819. } && test -s conftest.$ac_objext
  1820. then :
  1821. ac_retval=0
  1822. else $as_nop
  1823. printf "%s\n" "$as_me: failed program was:" >&5
  1824. sed 's/^/| /' conftest.$ac_ext >&5
  1825. ac_retval=1
  1826. fi
  1827. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1828. as_fn_set_status $ac_retval
  1829. } # ac_fn_c_try_compile
  1830. # ac_fn_c_try_link LINENO
  1831. # -----------------------
  1832. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1833. ac_fn_c_try_link ()
  1834. {
  1835. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1836. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1837. if { { ac_try="$ac_link"
  1838. case "(($ac_try" in
  1839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1840. *) ac_try_echo=$ac_try;;
  1841. esac
  1842. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1843. printf "%s\n" "$ac_try_echo"; } >&5
  1844. (eval "$ac_link") 2>conftest.err
  1845. ac_status=$?
  1846. if test -s conftest.err; then
  1847. grep -v '^ *+' conftest.err >conftest.er1
  1848. cat conftest.er1 >&5
  1849. mv -f conftest.er1 conftest.err
  1850. fi
  1851. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1852. test $ac_status = 0; } && {
  1853. test -z "$ac_c_werror_flag" ||
  1854. test ! -s conftest.err
  1855. } && test -s conftest$ac_exeext && {
  1856. test "$cross_compiling" = yes ||
  1857. test -x conftest$ac_exeext
  1858. }
  1859. then :
  1860. ac_retval=0
  1861. else $as_nop
  1862. printf "%s\n" "$as_me: failed program was:" >&5
  1863. sed 's/^/| /' conftest.$ac_ext >&5
  1864. ac_retval=1
  1865. fi
  1866. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1867. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1868. # interfere with the next link command; also delete a directory that is
  1869. # left behind by Apple's compiler. We do this before executing the actions.
  1870. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1871. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1872. as_fn_set_status $ac_retval
  1873. } # ac_fn_c_try_link
  1874. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1875. # -------------------------------------------------------
  1876. # Tests whether HEADER exists and can be compiled using the include files in
  1877. # INCLUDES, setting the cache variable VAR accordingly.
  1878. ac_fn_c_check_header_compile ()
  1879. {
  1880. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1882. printf %s "checking for $2... " >&6; }
  1883. if eval test \${$3+y}
  1884. then :
  1885. printf %s "(cached) " >&6
  1886. else $as_nop
  1887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1888. /* end confdefs.h. */
  1889. $4
  1890. #include <$2>
  1891. _ACEOF
  1892. if ac_fn_c_try_compile "$LINENO"
  1893. then :
  1894. eval "$3=yes"
  1895. else $as_nop
  1896. eval "$3=no"
  1897. fi
  1898. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1899. fi
  1900. eval ac_res=\$$3
  1901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1902. printf "%s\n" "$ac_res" >&6; }
  1903. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1904. } # ac_fn_c_check_header_compile
  1905. # ac_fn_c_check_func LINENO FUNC VAR
  1906. # ----------------------------------
  1907. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1908. ac_fn_c_check_func ()
  1909. {
  1910. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1912. printf %s "checking for $2... " >&6; }
  1913. if eval test \${$3+y}
  1914. then :
  1915. printf %s "(cached) " >&6
  1916. else $as_nop
  1917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1918. /* end confdefs.h. */
  1919. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1920. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1921. #define $2 innocuous_$2
  1922. /* System header to define __stub macros and hopefully few prototypes,
  1923. which can conflict with char $2 (); below. */
  1924. #include <limits.h>
  1925. #undef $2
  1926. /* Override any GCC internal prototype to avoid an error.
  1927. Use char because int might match the return type of a GCC
  1928. builtin and then its argument prototype would still apply. */
  1929. #ifdef __cplusplus
  1930. extern "C"
  1931. #endif
  1932. char $2 ();
  1933. /* The GNU C library defines this for functions which it implements
  1934. to always fail with ENOSYS. Some functions are actually named
  1935. something starting with __ and the normal name is an alias. */
  1936. #if defined __stub_$2 || defined __stub___$2
  1937. choke me
  1938. #endif
  1939. int
  1940. main (void)
  1941. {
  1942. return $2 ();
  1943. ;
  1944. return 0;
  1945. }
  1946. _ACEOF
  1947. if ac_fn_c_try_link "$LINENO"
  1948. then :
  1949. eval "$3=yes"
  1950. else $as_nop
  1951. eval "$3=no"
  1952. fi
  1953. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1954. conftest$ac_exeext conftest.$ac_ext
  1955. fi
  1956. eval ac_res=\$$3
  1957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1958. printf "%s\n" "$ac_res" >&6; }
  1959. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1960. } # ac_fn_c_check_func
  1961. # ac_fn_cxx_try_compile LINENO
  1962. # ----------------------------
  1963. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1964. ac_fn_cxx_try_compile ()
  1965. {
  1966. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1967. rm -f conftest.$ac_objext conftest.beam
  1968. if { { ac_try="$ac_compile"
  1969. case "(($ac_try" in
  1970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1971. *) ac_try_echo=$ac_try;;
  1972. esac
  1973. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1974. printf "%s\n" "$ac_try_echo"; } >&5
  1975. (eval "$ac_compile") 2>conftest.err
  1976. ac_status=$?
  1977. if test -s conftest.err; then
  1978. grep -v '^ *+' conftest.err >conftest.er1
  1979. cat conftest.er1 >&5
  1980. mv -f conftest.er1 conftest.err
  1981. fi
  1982. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1983. test $ac_status = 0; } && {
  1984. test -z "$ac_cxx_werror_flag" ||
  1985. test ! -s conftest.err
  1986. } && test -s conftest.$ac_objext
  1987. then :
  1988. ac_retval=0
  1989. else $as_nop
  1990. printf "%s\n" "$as_me: failed program was:" >&5
  1991. sed 's/^/| /' conftest.$ac_ext >&5
  1992. ac_retval=1
  1993. fi
  1994. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1995. as_fn_set_status $ac_retval
  1996. } # ac_fn_cxx_try_compile
  1997. # ac_fn_cxx_try_cpp LINENO
  1998. # ------------------------
  1999. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2000. ac_fn_cxx_try_cpp ()
  2001. {
  2002. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2003. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2004. case "(($ac_try" in
  2005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2006. *) ac_try_echo=$ac_try;;
  2007. esac
  2008. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2009. printf "%s\n" "$ac_try_echo"; } >&5
  2010. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2011. ac_status=$?
  2012. if test -s conftest.err; then
  2013. grep -v '^ *+' conftest.err >conftest.er1
  2014. cat conftest.er1 >&5
  2015. mv -f conftest.er1 conftest.err
  2016. fi
  2017. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2018. test $ac_status = 0; } > conftest.i && {
  2019. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2020. test ! -s conftest.err
  2021. }
  2022. then :
  2023. ac_retval=0
  2024. else $as_nop
  2025. printf "%s\n" "$as_me: failed program was:" >&5
  2026. sed 's/^/| /' conftest.$ac_ext >&5
  2027. ac_retval=1
  2028. fi
  2029. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2030. as_fn_set_status $ac_retval
  2031. } # ac_fn_cxx_try_cpp
  2032. # ac_fn_cxx_try_link LINENO
  2033. # -------------------------
  2034. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2035. ac_fn_cxx_try_link ()
  2036. {
  2037. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2038. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2039. if { { ac_try="$ac_link"
  2040. case "(($ac_try" in
  2041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2042. *) ac_try_echo=$ac_try;;
  2043. esac
  2044. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2045. printf "%s\n" "$ac_try_echo"; } >&5
  2046. (eval "$ac_link") 2>conftest.err
  2047. ac_status=$?
  2048. if test -s conftest.err; then
  2049. grep -v '^ *+' conftest.err >conftest.er1
  2050. cat conftest.er1 >&5
  2051. mv -f conftest.er1 conftest.err
  2052. fi
  2053. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2054. test $ac_status = 0; } && {
  2055. test -z "$ac_cxx_werror_flag" ||
  2056. test ! -s conftest.err
  2057. } && test -s conftest$ac_exeext && {
  2058. test "$cross_compiling" = yes ||
  2059. test -x conftest$ac_exeext
  2060. }
  2061. then :
  2062. ac_retval=0
  2063. else $as_nop
  2064. printf "%s\n" "$as_me: failed program was:" >&5
  2065. sed 's/^/| /' conftest.$ac_ext >&5
  2066. ac_retval=1
  2067. fi
  2068. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2069. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2070. # interfere with the next link command; also delete a directory that is
  2071. # left behind by Apple's compiler. We do this before executing the actions.
  2072. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2073. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2074. as_fn_set_status $ac_retval
  2075. } # ac_fn_cxx_try_link
  2076. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2077. # -------------------------------------------
  2078. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2079. # variable VAR accordingly.
  2080. ac_fn_c_check_type ()
  2081. {
  2082. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2084. printf %s "checking for $2... " >&6; }
  2085. if eval test \${$3+y}
  2086. then :
  2087. printf %s "(cached) " >&6
  2088. else $as_nop
  2089. eval "$3=no"
  2090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2091. /* end confdefs.h. */
  2092. $4
  2093. int
  2094. main (void)
  2095. {
  2096. if (sizeof ($2))
  2097. return 0;
  2098. ;
  2099. return 0;
  2100. }
  2101. _ACEOF
  2102. if ac_fn_c_try_compile "$LINENO"
  2103. then :
  2104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2105. /* end confdefs.h. */
  2106. $4
  2107. int
  2108. main (void)
  2109. {
  2110. if (sizeof (($2)))
  2111. return 0;
  2112. ;
  2113. return 0;
  2114. }
  2115. _ACEOF
  2116. if ac_fn_c_try_compile "$LINENO"
  2117. then :
  2118. else $as_nop
  2119. eval "$3=yes"
  2120. fi
  2121. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2122. fi
  2123. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2124. fi
  2125. eval ac_res=\$$3
  2126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2127. printf "%s\n" "$ac_res" >&6; }
  2128. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2129. } # ac_fn_c_check_type
  2130. # ac_fn_c_try_cpp LINENO
  2131. # ----------------------
  2132. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2133. ac_fn_c_try_cpp ()
  2134. {
  2135. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2136. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2137. case "(($ac_try" in
  2138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2139. *) ac_try_echo=$ac_try;;
  2140. esac
  2141. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2142. printf "%s\n" "$ac_try_echo"; } >&5
  2143. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2144. ac_status=$?
  2145. if test -s conftest.err; then
  2146. grep -v '^ *+' conftest.err >conftest.er1
  2147. cat conftest.er1 >&5
  2148. mv -f conftest.er1 conftest.err
  2149. fi
  2150. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2151. test $ac_status = 0; } > conftest.i && {
  2152. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2153. test ! -s conftest.err
  2154. }
  2155. then :
  2156. ac_retval=0
  2157. else $as_nop
  2158. printf "%s\n" "$as_me: failed program was:" >&5
  2159. sed 's/^/| /' conftest.$ac_ext >&5
  2160. ac_retval=1
  2161. fi
  2162. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2163. as_fn_set_status $ac_retval
  2164. } # ac_fn_c_try_cpp
  2165. # ac_fn_c_try_run LINENO
  2166. # ----------------------
  2167. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2168. # executables *can* be run.
  2169. ac_fn_c_try_run ()
  2170. {
  2171. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2172. if { { ac_try="$ac_link"
  2173. case "(($ac_try" in
  2174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2175. *) ac_try_echo=$ac_try;;
  2176. esac
  2177. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2178. printf "%s\n" "$ac_try_echo"; } >&5
  2179. (eval "$ac_link") 2>&5
  2180. ac_status=$?
  2181. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2182. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2183. { { case "(($ac_try" in
  2184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2185. *) ac_try_echo=$ac_try;;
  2186. esac
  2187. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2188. printf "%s\n" "$ac_try_echo"; } >&5
  2189. (eval "$ac_try") 2>&5
  2190. ac_status=$?
  2191. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2192. test $ac_status = 0; }; }
  2193. then :
  2194. ac_retval=0
  2195. else $as_nop
  2196. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2197. printf "%s\n" "$as_me: failed program was:" >&5
  2198. sed 's/^/| /' conftest.$ac_ext >&5
  2199. ac_retval=$ac_status
  2200. fi
  2201. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2202. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2203. as_fn_set_status $ac_retval
  2204. } # ac_fn_c_try_run
  2205. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2206. # ----------------------------------------------------
  2207. # Tries to find if the field MEMBER exists in type AGGR, after including
  2208. # INCLUDES, setting cache variable VAR accordingly.
  2209. ac_fn_c_check_member ()
  2210. {
  2211. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2213. printf %s "checking for $2.$3... " >&6; }
  2214. if eval test \${$4+y}
  2215. then :
  2216. printf %s "(cached) " >&6
  2217. else $as_nop
  2218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2219. /* end confdefs.h. */
  2220. $5
  2221. int
  2222. main (void)
  2223. {
  2224. static $2 ac_aggr;
  2225. if (ac_aggr.$3)
  2226. return 0;
  2227. ;
  2228. return 0;
  2229. }
  2230. _ACEOF
  2231. if ac_fn_c_try_compile "$LINENO"
  2232. then :
  2233. eval "$4=yes"
  2234. else $as_nop
  2235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2236. /* end confdefs.h. */
  2237. $5
  2238. int
  2239. main (void)
  2240. {
  2241. static $2 ac_aggr;
  2242. if (sizeof ac_aggr.$3)
  2243. return 0;
  2244. ;
  2245. return 0;
  2246. }
  2247. _ACEOF
  2248. if ac_fn_c_try_compile "$LINENO"
  2249. then :
  2250. eval "$4=yes"
  2251. else $as_nop
  2252. eval "$4=no"
  2253. fi
  2254. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2255. fi
  2256. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2257. fi
  2258. eval ac_res=\$$4
  2259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2260. printf "%s\n" "$ac_res" >&6; }
  2261. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2262. } # ac_fn_c_check_member
  2263. ac_configure_args_raw=
  2264. for ac_arg
  2265. do
  2266. case $ac_arg in
  2267. *\'*)
  2268. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2269. esac
  2270. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2271. done
  2272. case $ac_configure_args_raw in
  2273. *$as_nl*)
  2274. ac_safe_unquote= ;;
  2275. *)
  2276. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2277. ac_unsafe_a="$ac_unsafe_z#~"
  2278. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2279. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2280. esac
  2281. cat >config.log <<_ACEOF
  2282. This file contains any messages produced by compilers while
  2283. running configure, to aid debugging if configure makes a mistake.
  2284. It was created by $as_me, which was
  2285. generated by GNU Autoconf 2.71. Invocation command line was
  2286. $ $0$ac_configure_args_raw
  2287. _ACEOF
  2288. exec 5>>config.log
  2289. {
  2290. cat <<_ASUNAME
  2291. ## --------- ##
  2292. ## Platform. ##
  2293. ## --------- ##
  2294. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2295. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2296. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2297. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2298. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2299. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2300. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2301. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2302. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2303. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2304. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2305. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2306. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2307. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2308. _ASUNAME
  2309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2310. for as_dir in $PATH
  2311. do
  2312. IFS=$as_save_IFS
  2313. case $as_dir in #(((
  2314. '') as_dir=./ ;;
  2315. */) ;;
  2316. *) as_dir=$as_dir/ ;;
  2317. esac
  2318. printf "%s\n" "PATH: $as_dir"
  2319. done
  2320. IFS=$as_save_IFS
  2321. } >&5
  2322. cat >&5 <<_ACEOF
  2323. ## ----------- ##
  2324. ## Core tests. ##
  2325. ## ----------- ##
  2326. _ACEOF
  2327. # Keep a trace of the command line.
  2328. # Strip out --no-create and --no-recursion so they do not pile up.
  2329. # Strip out --silent because we don't want to record it for future runs.
  2330. # Also quote any args containing shell meta-characters.
  2331. # Make two passes to allow for proper duplicate-argument suppression.
  2332. ac_configure_args=
  2333. ac_configure_args0=
  2334. ac_configure_args1=
  2335. ac_must_keep_next=false
  2336. for ac_pass in 1 2
  2337. do
  2338. for ac_arg
  2339. do
  2340. case $ac_arg in
  2341. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2342. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2343. | -silent | --silent | --silen | --sile | --sil)
  2344. continue ;;
  2345. *\'*)
  2346. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2347. esac
  2348. case $ac_pass in
  2349. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2350. 2)
  2351. as_fn_append ac_configure_args1 " '$ac_arg'"
  2352. if test $ac_must_keep_next = true; then
  2353. ac_must_keep_next=false # Got value, back to normal.
  2354. else
  2355. case $ac_arg in
  2356. *=* | --config-cache | -C | -disable-* | --disable-* \
  2357. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2358. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2359. | -with-* | --with-* | -without-* | --without-* | --x)
  2360. case "$ac_configure_args0 " in
  2361. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2362. esac
  2363. ;;
  2364. -* ) ac_must_keep_next=true ;;
  2365. esac
  2366. fi
  2367. as_fn_append ac_configure_args " '$ac_arg'"
  2368. ;;
  2369. esac
  2370. done
  2371. done
  2372. { ac_configure_args0=; unset ac_configure_args0;}
  2373. { ac_configure_args1=; unset ac_configure_args1;}
  2374. # When interrupted or exit'd, cleanup temporary files, and complete
  2375. # config.log. We remove comments because anyway the quotes in there
  2376. # would cause problems or look ugly.
  2377. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2378. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2379. trap 'exit_status=$?
  2380. # Sanitize IFS.
  2381. IFS=" "" $as_nl"
  2382. # Save into config.log some information that might help in debugging.
  2383. {
  2384. echo
  2385. printf "%s\n" "## ---------------- ##
  2386. ## Cache variables. ##
  2387. ## ---------------- ##"
  2388. echo
  2389. # The following way of writing the cache mishandles newlines in values,
  2390. (
  2391. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2392. eval ac_val=\$$ac_var
  2393. case $ac_val in #(
  2394. *${as_nl}*)
  2395. case $ac_var in #(
  2396. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2397. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2398. esac
  2399. case $ac_var in #(
  2400. _ | IFS | as_nl) ;; #(
  2401. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2402. *) { eval $ac_var=; unset $ac_var;} ;;
  2403. esac ;;
  2404. esac
  2405. done
  2406. (set) 2>&1 |
  2407. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2408. *${as_nl}ac_space=\ *)
  2409. sed -n \
  2410. "s/'\''/'\''\\\\'\'''\''/g;
  2411. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2412. ;; #(
  2413. *)
  2414. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2415. ;;
  2416. esac |
  2417. sort
  2418. )
  2419. echo
  2420. printf "%s\n" "## ----------------- ##
  2421. ## Output variables. ##
  2422. ## ----------------- ##"
  2423. echo
  2424. for ac_var in $ac_subst_vars
  2425. do
  2426. eval ac_val=\$$ac_var
  2427. case $ac_val in
  2428. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2429. esac
  2430. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2431. done | sort
  2432. echo
  2433. if test -n "$ac_subst_files"; then
  2434. printf "%s\n" "## ------------------- ##
  2435. ## File substitutions. ##
  2436. ## ------------------- ##"
  2437. echo
  2438. for ac_var in $ac_subst_files
  2439. do
  2440. eval ac_val=\$$ac_var
  2441. case $ac_val in
  2442. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2443. esac
  2444. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2445. done | sort
  2446. echo
  2447. fi
  2448. if test -s confdefs.h; then
  2449. printf "%s\n" "## ----------- ##
  2450. ## confdefs.h. ##
  2451. ## ----------- ##"
  2452. echo
  2453. cat confdefs.h
  2454. echo
  2455. fi
  2456. test "$ac_signal" != 0 &&
  2457. printf "%s\n" "$as_me: caught signal $ac_signal"
  2458. printf "%s\n" "$as_me: exit $exit_status"
  2459. } >&5
  2460. rm -f core *.core core.conftest.* &&
  2461. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2462. exit $exit_status
  2463. ' 0
  2464. for ac_signal in 1 2 13 15; do
  2465. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2466. done
  2467. ac_signal=0
  2468. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2469. rm -f -r conftest* confdefs.h
  2470. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2471. # Predefined preprocessor variables.
  2472. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2473. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2474. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2475. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2476. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2477. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2478. # Let the site file select an alternate cache file if it wants to.
  2479. # Prefer an explicitly selected file to automatically selected ones.
  2480. if test -n "$CONFIG_SITE"; then
  2481. ac_site_files="$CONFIG_SITE"
  2482. elif test "x$prefix" != xNONE; then
  2483. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2484. else
  2485. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2486. fi
  2487. for ac_site_file in $ac_site_files
  2488. do
  2489. case $ac_site_file in #(
  2490. */*) :
  2491. ;; #(
  2492. *) :
  2493. ac_site_file=./$ac_site_file ;;
  2494. esac
  2495. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2497. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2498. sed 's/^/| /' "$ac_site_file" >&5
  2499. . "$ac_site_file" \
  2500. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2501. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2502. as_fn_error $? "failed to load site script $ac_site_file
  2503. See \`config.log' for more details" "$LINENO" 5; }
  2504. fi
  2505. done
  2506. if test -r "$cache_file"; then
  2507. # Some versions of bash will fail to source /dev/null (special files
  2508. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2509. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2511. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2512. case $cache_file in
  2513. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2514. *) . "./$cache_file";;
  2515. esac
  2516. fi
  2517. else
  2518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2519. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2520. >$cache_file
  2521. fi
  2522. # Test code for whether the C compiler supports C89 (global declarations)
  2523. ac_c_conftest_c89_globals='
  2524. /* Does the compiler advertise C89 conformance?
  2525. Do not test the value of __STDC__, because some compilers set it to 0
  2526. while being otherwise adequately conformant. */
  2527. #if !defined __STDC__
  2528. # error "Compiler does not advertise C89 conformance"
  2529. #endif
  2530. #include <stddef.h>
  2531. #include <stdarg.h>
  2532. struct stat;
  2533. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2534. struct buf { int x; };
  2535. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2536. static char *e (p, i)
  2537. char **p;
  2538. int i;
  2539. {
  2540. return p[i];
  2541. }
  2542. static char *f (char * (*g) (char **, int), char **p, ...)
  2543. {
  2544. char *s;
  2545. va_list v;
  2546. va_start (v,p);
  2547. s = g (p, va_arg (v,int));
  2548. va_end (v);
  2549. return s;
  2550. }
  2551. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2552. function prototypes and stuff, but not \xHH hex character constants.
  2553. These do not provoke an error unfortunately, instead are silently treated
  2554. as an "x". The following induces an error, until -std is added to get
  2555. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2556. array size at least. It is necessary to write \x00 == 0 to get something
  2557. that is true only with -std. */
  2558. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2559. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2560. inside strings and character constants. */
  2561. #define FOO(x) '\''x'\''
  2562. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2563. int test (int i, double x);
  2564. struct s1 {int (*f) (int a);};
  2565. struct s2 {int (*f) (double a);};
  2566. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2567. int, int);'
  2568. # Test code for whether the C compiler supports C89 (body of main).
  2569. ac_c_conftest_c89_main='
  2570. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2571. '
  2572. # Test code for whether the C compiler supports C99 (global declarations)
  2573. ac_c_conftest_c99_globals='
  2574. // Does the compiler advertise C99 conformance?
  2575. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2576. # error "Compiler does not advertise C99 conformance"
  2577. #endif
  2578. #include <stdbool.h>
  2579. extern int puts (const char *);
  2580. extern int printf (const char *, ...);
  2581. extern int dprintf (int, const char *, ...);
  2582. extern void *malloc (size_t);
  2583. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2584. // dprintf is used instead of fprintf to avoid needing to declare
  2585. // FILE and stderr.
  2586. #define debug(...) dprintf (2, __VA_ARGS__)
  2587. #define showlist(...) puts (#__VA_ARGS__)
  2588. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2589. static void
  2590. test_varargs_macros (void)
  2591. {
  2592. int x = 1234;
  2593. int y = 5678;
  2594. debug ("Flag");
  2595. debug ("X = %d\n", x);
  2596. showlist (The first, second, and third items.);
  2597. report (x>y, "x is %d but y is %d", x, y);
  2598. }
  2599. // Check long long types.
  2600. #define BIG64 18446744073709551615ull
  2601. #define BIG32 4294967295ul
  2602. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2603. #if !BIG_OK
  2604. #error "your preprocessor is broken"
  2605. #endif
  2606. #if BIG_OK
  2607. #else
  2608. #error "your preprocessor is broken"
  2609. #endif
  2610. static long long int bignum = -9223372036854775807LL;
  2611. static unsigned long long int ubignum = BIG64;
  2612. struct incomplete_array
  2613. {
  2614. int datasize;
  2615. double data[];
  2616. };
  2617. struct named_init {
  2618. int number;
  2619. const wchar_t *name;
  2620. double average;
  2621. };
  2622. typedef const char *ccp;
  2623. static inline int
  2624. test_restrict (ccp restrict text)
  2625. {
  2626. // See if C++-style comments work.
  2627. // Iterate through items via the restricted pointer.
  2628. // Also check for declarations in for loops.
  2629. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2630. continue;
  2631. return 0;
  2632. }
  2633. // Check varargs and va_copy.
  2634. static bool
  2635. test_varargs (const char *format, ...)
  2636. {
  2637. va_list args;
  2638. va_start (args, format);
  2639. va_list args_copy;
  2640. va_copy (args_copy, args);
  2641. const char *str = "";
  2642. int number = 0;
  2643. float fnumber = 0;
  2644. while (*format)
  2645. {
  2646. switch (*format++)
  2647. {
  2648. case '\''s'\'': // string
  2649. str = va_arg (args_copy, const char *);
  2650. break;
  2651. case '\''d'\'': // int
  2652. number = va_arg (args_copy, int);
  2653. break;
  2654. case '\''f'\'': // float
  2655. fnumber = va_arg (args_copy, double);
  2656. break;
  2657. default:
  2658. break;
  2659. }
  2660. }
  2661. va_end (args_copy);
  2662. va_end (args);
  2663. return *str && number && fnumber;
  2664. }
  2665. '
  2666. # Test code for whether the C compiler supports C99 (body of main).
  2667. ac_c_conftest_c99_main='
  2668. // Check bool.
  2669. _Bool success = false;
  2670. success |= (argc != 0);
  2671. // Check restrict.
  2672. if (test_restrict ("String literal") == 0)
  2673. success = true;
  2674. char *restrict newvar = "Another string";
  2675. // Check varargs.
  2676. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2677. test_varargs_macros ();
  2678. // Check flexible array members.
  2679. struct incomplete_array *ia =
  2680. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2681. ia->datasize = 10;
  2682. for (int i = 0; i < ia->datasize; ++i)
  2683. ia->data[i] = i * 1.234;
  2684. // Check named initializers.
  2685. struct named_init ni = {
  2686. .number = 34,
  2687. .name = L"Test wide string",
  2688. .average = 543.34343,
  2689. };
  2690. ni.number = 58;
  2691. int dynamic_array[ni.number];
  2692. dynamic_array[0] = argv[0][0];
  2693. dynamic_array[ni.number - 1] = 543;
  2694. // work around unused variable warnings
  2695. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2696. || dynamic_array[ni.number - 1] != 543);
  2697. '
  2698. # Test code for whether the C compiler supports C11 (global declarations)
  2699. ac_c_conftest_c11_globals='
  2700. // Does the compiler advertise C11 conformance?
  2701. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2702. # error "Compiler does not advertise C11 conformance"
  2703. #endif
  2704. // Check _Alignas.
  2705. char _Alignas (double) aligned_as_double;
  2706. char _Alignas (0) no_special_alignment;
  2707. extern char aligned_as_int;
  2708. char _Alignas (0) _Alignas (int) aligned_as_int;
  2709. // Check _Alignof.
  2710. enum
  2711. {
  2712. int_alignment = _Alignof (int),
  2713. int_array_alignment = _Alignof (int[100]),
  2714. char_alignment = _Alignof (char)
  2715. };
  2716. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2717. // Check _Noreturn.
  2718. int _Noreturn does_not_return (void) { for (;;) continue; }
  2719. // Check _Static_assert.
  2720. struct test_static_assert
  2721. {
  2722. int x;
  2723. _Static_assert (sizeof (int) <= sizeof (long int),
  2724. "_Static_assert does not work in struct");
  2725. long int y;
  2726. };
  2727. // Check UTF-8 literals.
  2728. #define u8 syntax error!
  2729. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2730. // Check duplicate typedefs.
  2731. typedef long *long_ptr;
  2732. typedef long int *long_ptr;
  2733. typedef long_ptr long_ptr;
  2734. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2735. struct anonymous
  2736. {
  2737. union {
  2738. struct { int i; int j; };
  2739. struct { int k; long int l; } w;
  2740. };
  2741. int m;
  2742. } v1;
  2743. '
  2744. # Test code for whether the C compiler supports C11 (body of main).
  2745. ac_c_conftest_c11_main='
  2746. _Static_assert ((offsetof (struct anonymous, i)
  2747. == offsetof (struct anonymous, w.k)),
  2748. "Anonymous union alignment botch");
  2749. v1.i = 2;
  2750. v1.w.k = 5;
  2751. ok |= v1.i != 5;
  2752. '
  2753. # Test code for whether the C compiler supports C11 (complete).
  2754. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2755. ${ac_c_conftest_c99_globals}
  2756. ${ac_c_conftest_c11_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. ${ac_c_conftest_c11_main}
  2764. return ok;
  2765. }
  2766. "
  2767. # Test code for whether the C compiler supports C99 (complete).
  2768. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2769. ${ac_c_conftest_c99_globals}
  2770. int
  2771. main (int argc, char **argv)
  2772. {
  2773. int ok = 0;
  2774. ${ac_c_conftest_c89_main}
  2775. ${ac_c_conftest_c99_main}
  2776. return ok;
  2777. }
  2778. "
  2779. # Test code for whether the C compiler supports C89 (complete).
  2780. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2781. int
  2782. main (int argc, char **argv)
  2783. {
  2784. int ok = 0;
  2785. ${ac_c_conftest_c89_main}
  2786. return ok;
  2787. }
  2788. "
  2789. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2790. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2791. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2792. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2793. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2794. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2795. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2796. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2797. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2798. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2799. ac_cxx_conftest_cxx98_globals='
  2800. // Does the compiler advertise C++98 conformance?
  2801. #if !defined __cplusplus || __cplusplus < 199711L
  2802. # error "Compiler does not advertise C++98 conformance"
  2803. #endif
  2804. // These inclusions are to reject old compilers that
  2805. // lack the unsuffixed header files.
  2806. #include <cstdlib>
  2807. #include <exception>
  2808. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2809. extern void assert (int);
  2810. namespace std {
  2811. extern int strcmp (const char *, const char *);
  2812. }
  2813. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2814. using std::exception;
  2815. using std::strcmp;
  2816. namespace {
  2817. void test_exception_syntax()
  2818. {
  2819. try {
  2820. throw "test";
  2821. } catch (const char *s) {
  2822. // Extra parentheses suppress a warning when building autoconf itself,
  2823. // due to lint rules shared with more typical C programs.
  2824. assert (!(strcmp) (s, "test"));
  2825. }
  2826. }
  2827. template <typename T> struct test_template
  2828. {
  2829. T const val;
  2830. explicit test_template(T t) : val(t) {}
  2831. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2832. };
  2833. } // anonymous namespace
  2834. '
  2835. # Test code for whether the C++ compiler supports C++98 (body of main)
  2836. ac_cxx_conftest_cxx98_main='
  2837. assert (argc);
  2838. assert (! argv[0]);
  2839. {
  2840. test_exception_syntax ();
  2841. test_template<double> tt (2.0);
  2842. assert (tt.add (4) == 6.0);
  2843. assert (true && !false);
  2844. }
  2845. '
  2846. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2847. ac_cxx_conftest_cxx11_globals='
  2848. // Does the compiler advertise C++ 2011 conformance?
  2849. #if !defined __cplusplus || __cplusplus < 201103L
  2850. # error "Compiler does not advertise C++11 conformance"
  2851. #endif
  2852. namespace cxx11test
  2853. {
  2854. constexpr int get_val() { return 20; }
  2855. struct testinit
  2856. {
  2857. int i;
  2858. double d;
  2859. };
  2860. class delegate
  2861. {
  2862. public:
  2863. delegate(int n) : n(n) {}
  2864. delegate(): delegate(2354) {}
  2865. virtual int getval() { return this->n; };
  2866. protected:
  2867. int n;
  2868. };
  2869. class overridden : public delegate
  2870. {
  2871. public:
  2872. overridden(int n): delegate(n) {}
  2873. virtual int getval() override final { return this->n * 2; }
  2874. };
  2875. class nocopy
  2876. {
  2877. public:
  2878. nocopy(int i): i(i) {}
  2879. nocopy() = default;
  2880. nocopy(const nocopy&) = delete;
  2881. nocopy & operator=(const nocopy&) = delete;
  2882. private:
  2883. int i;
  2884. };
  2885. // for testing lambda expressions
  2886. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2887. {
  2888. return f(v);
  2889. }
  2890. // for testing variadic templates and trailing return types
  2891. template <typename V> auto sum(V first) -> V
  2892. {
  2893. return first;
  2894. }
  2895. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2896. {
  2897. return first + sum(rest...);
  2898. }
  2899. }
  2900. '
  2901. # Test code for whether the C++ compiler supports C++11 (body of main)
  2902. ac_cxx_conftest_cxx11_main='
  2903. {
  2904. // Test auto and decltype
  2905. auto a1 = 6538;
  2906. auto a2 = 48573953.4;
  2907. auto a3 = "String literal";
  2908. int total = 0;
  2909. for (auto i = a3; *i; ++i) { total += *i; }
  2910. decltype(a2) a4 = 34895.034;
  2911. }
  2912. {
  2913. // Test constexpr
  2914. short sa[cxx11test::get_val()] = { 0 };
  2915. }
  2916. {
  2917. // Test initializer lists
  2918. cxx11test::testinit il = { 4323, 435234.23544 };
  2919. }
  2920. {
  2921. // Test range-based for
  2922. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2923. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2924. for (auto &x : array) { x += 23; }
  2925. }
  2926. {
  2927. // Test lambda expressions
  2928. using cxx11test::eval;
  2929. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2930. double d = 2.0;
  2931. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2932. assert (d == 5.0);
  2933. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2934. assert (d == 5.0);
  2935. }
  2936. {
  2937. // Test use of variadic templates
  2938. using cxx11test::sum;
  2939. auto a = sum(1);
  2940. auto b = sum(1, 2);
  2941. auto c = sum(1.0, 2.0, 3.0);
  2942. }
  2943. {
  2944. // Test constructor delegation
  2945. cxx11test::delegate d1;
  2946. cxx11test::delegate d2();
  2947. cxx11test::delegate d3(45);
  2948. }
  2949. {
  2950. // Test override and final
  2951. cxx11test::overridden o1(55464);
  2952. }
  2953. {
  2954. // Test nullptr
  2955. char *c = nullptr;
  2956. }
  2957. {
  2958. // Test template brackets
  2959. test_template<::test_template<int>> v(test_template<int>(12));
  2960. }
  2961. {
  2962. // Unicode literals
  2963. char const *utf8 = u8"UTF-8 string \u2500";
  2964. char16_t const *utf16 = u"UTF-8 string \u2500";
  2965. char32_t const *utf32 = U"UTF-32 string \u2500";
  2966. }
  2967. '
  2968. # Test code for whether the C compiler supports C++11 (complete).
  2969. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2970. ${ac_cxx_conftest_cxx11_globals}
  2971. int
  2972. main (int argc, char **argv)
  2973. {
  2974. int ok = 0;
  2975. ${ac_cxx_conftest_cxx98_main}
  2976. ${ac_cxx_conftest_cxx11_main}
  2977. return ok;
  2978. }
  2979. "
  2980. # Test code for whether the C compiler supports C++98 (complete).
  2981. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2982. int
  2983. main (int argc, char **argv)
  2984. {
  2985. int ok = 0;
  2986. ${ac_cxx_conftest_cxx98_main}
  2987. return ok;
  2988. }
  2989. "
  2990. # Auxiliary files required by this configure script.
  2991. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2992. # Locations in which to look for auxiliary files.
  2993. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2994. # Search for a directory containing all of the required auxiliary files,
  2995. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2996. # If we don't find one directory that contains all the files we need,
  2997. # we report the set of missing files from the *first* directory in
  2998. # $ac_aux_dir_candidates and give up.
  2999. ac_missing_aux_files=""
  3000. ac_first_candidate=:
  3001. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  3002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3003. as_found=false
  3004. for as_dir in $ac_aux_dir_candidates
  3005. do
  3006. IFS=$as_save_IFS
  3007. case $as_dir in #(((
  3008. '') as_dir=./ ;;
  3009. */) ;;
  3010. *) as_dir=$as_dir/ ;;
  3011. esac
  3012. as_found=:
  3013. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  3014. ac_aux_dir_found=yes
  3015. ac_install_sh=
  3016. for ac_aux in $ac_aux_files
  3017. do
  3018. # As a special case, if "install-sh" is required, that requirement
  3019. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3020. # and $ac_install_sh is set appropriately for whichever one is found.
  3021. if test x"$ac_aux" = x"install-sh"
  3022. then
  3023. if test -f "${as_dir}install-sh"; then
  3024. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3025. ac_install_sh="${as_dir}install-sh -c"
  3026. elif test -f "${as_dir}install.sh"; then
  3027. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3028. ac_install_sh="${as_dir}install.sh -c"
  3029. elif test -f "${as_dir}shtool"; then
  3030. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3031. ac_install_sh="${as_dir}shtool install -c"
  3032. else
  3033. ac_aux_dir_found=no
  3034. if $ac_first_candidate; then
  3035. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3036. else
  3037. break
  3038. fi
  3039. fi
  3040. else
  3041. if test -f "${as_dir}${ac_aux}"; then
  3042. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3043. else
  3044. ac_aux_dir_found=no
  3045. if $ac_first_candidate; then
  3046. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3047. else
  3048. break
  3049. fi
  3050. fi
  3051. fi
  3052. done
  3053. if test "$ac_aux_dir_found" = yes; then
  3054. ac_aux_dir="$as_dir"
  3055. break
  3056. fi
  3057. ac_first_candidate=false
  3058. as_found=false
  3059. done
  3060. IFS=$as_save_IFS
  3061. if $as_found
  3062. then :
  3063. else $as_nop
  3064. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3065. fi
  3066. # These three variables are undocumented and unsupported,
  3067. # and are intended to be withdrawn in a future Autoconf release.
  3068. # They can cause serious problems if a builder's source tree is in a directory
  3069. # whose full name contains unusual characters.
  3070. if test -f "${ac_aux_dir}config.guess"; then
  3071. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3072. fi
  3073. if test -f "${ac_aux_dir}config.sub"; then
  3074. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3075. fi
  3076. if test -f "$ac_aux_dir/configure"; then
  3077. ac_configure="$SHELL ${ac_aux_dir}configure"
  3078. fi
  3079. # Check that the precious variables saved in the cache have kept the same
  3080. # value.
  3081. ac_cache_corrupted=false
  3082. for ac_var in $ac_precious_vars; do
  3083. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3084. eval ac_new_set=\$ac_env_${ac_var}_set
  3085. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3086. eval ac_new_val=\$ac_env_${ac_var}_value
  3087. case $ac_old_set,$ac_new_set in
  3088. set,)
  3089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3090. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3091. ac_cache_corrupted=: ;;
  3092. ,set)
  3093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3094. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3095. ac_cache_corrupted=: ;;
  3096. ,);;
  3097. *)
  3098. if test "x$ac_old_val" != "x$ac_new_val"; then
  3099. # differences in whitespace do not lead to failure.
  3100. ac_old_val_w=`echo x $ac_old_val`
  3101. ac_new_val_w=`echo x $ac_new_val`
  3102. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3104. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3105. ac_cache_corrupted=:
  3106. else
  3107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3108. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3109. eval $ac_var=\$ac_old_val
  3110. fi
  3111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3112. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3114. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3115. fi;;
  3116. esac
  3117. # Pass precious variables to config.status.
  3118. if test "$ac_new_set" = set; then
  3119. case $ac_new_val in
  3120. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3121. *) ac_arg=$ac_var=$ac_new_val ;;
  3122. esac
  3123. case " $ac_configure_args " in
  3124. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3125. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3126. esac
  3127. fi
  3128. done
  3129. if $ac_cache_corrupted; then
  3130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3131. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3133. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3134. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3135. and start over" "$LINENO" 5
  3136. fi
  3137. ## -------------------- ##
  3138. ## Main body of script. ##
  3139. ## -------------------- ##
  3140. ac_ext=c
  3141. ac_cpp='$CPP $CPPFLAGS'
  3142. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3143. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3144. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3145. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3146. orig_CFLAGS="$CFLAGS"
  3147. # See docs/release_checklist.md
  3148. SDL_MAJOR_VERSION=2
  3149. SDL_MINOR_VERSION=27
  3150. SDL_MICRO_VERSION=0
  3151. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3152. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3153. case "$SDL_MINOR_VERSION" in #(
  3154. *[02468]) :
  3155. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3156. *) :
  3157. SDL_INTERFACE_AGE=0 ;; #(
  3158. *) :
  3159. ;;
  3160. esac
  3161. # libtool versioning
  3162. case `pwd` in
  3163. *\ * | *\ *)
  3164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3165. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3166. esac
  3167. macro_version='2.4.6'
  3168. macro_revision='2.4.6'
  3169. ltmain=$ac_aux_dir/ltmain.sh
  3170. # Make sure we can run config.sub.
  3171. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3172. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3174. printf %s "checking build system type... " >&6; }
  3175. if test ${ac_cv_build+y}
  3176. then :
  3177. printf %s "(cached) " >&6
  3178. else $as_nop
  3179. ac_build_alias=$build_alias
  3180. test "x$ac_build_alias" = x &&
  3181. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3182. test "x$ac_build_alias" = x &&
  3183. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3184. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3185. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3186. fi
  3187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3188. printf "%s\n" "$ac_cv_build" >&6; }
  3189. case $ac_cv_build in
  3190. *-*-*) ;;
  3191. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3192. esac
  3193. build=$ac_cv_build
  3194. ac_save_IFS=$IFS; IFS='-'
  3195. set x $ac_cv_build
  3196. shift
  3197. build_cpu=$1
  3198. build_vendor=$2
  3199. shift; shift
  3200. # Remember, the first character of IFS is used to create $*,
  3201. # except with old shells:
  3202. build_os=$*
  3203. IFS=$ac_save_IFS
  3204. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3206. printf %s "checking host system type... " >&6; }
  3207. if test ${ac_cv_host+y}
  3208. then :
  3209. printf %s "(cached) " >&6
  3210. else $as_nop
  3211. if test "x$host_alias" = x; then
  3212. ac_cv_host=$ac_cv_build
  3213. else
  3214. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3215. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3216. fi
  3217. fi
  3218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3219. printf "%s\n" "$ac_cv_host" >&6; }
  3220. case $ac_cv_host in
  3221. *-*-*) ;;
  3222. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3223. esac
  3224. host=$ac_cv_host
  3225. ac_save_IFS=$IFS; IFS='-'
  3226. set x $ac_cv_host
  3227. shift
  3228. host_cpu=$1
  3229. host_vendor=$2
  3230. shift; shift
  3231. # Remember, the first character of IFS is used to create $*,
  3232. # except with old shells:
  3233. host_os=$*
  3234. IFS=$ac_save_IFS
  3235. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3236. # Backslashify metacharacters that are still active within
  3237. # double-quoted strings.
  3238. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3239. # Same as above, but do not quote variable references.
  3240. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3241. # Sed substitution to delay expansion of an escaped shell variable in a
  3242. # double_quote_subst'ed string.
  3243. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3244. # Sed substitution to delay expansion of an escaped single quote.
  3245. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3246. # Sed substitution to avoid accidental globbing in evaled expressions
  3247. no_glob_subst='s/\*/\\\*/g'
  3248. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3249. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3250. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3252. printf %s "checking how to print strings... " >&6; }
  3253. # Test print first, because it will be a builtin if present.
  3254. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3255. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3256. ECHO='print -r --'
  3257. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3258. ECHO='printf %s\n'
  3259. else
  3260. # Use this function as a fallback that always works.
  3261. func_fallback_echo ()
  3262. {
  3263. eval 'cat <<_LTECHO_EOF
  3264. $1
  3265. _LTECHO_EOF'
  3266. }
  3267. ECHO='func_fallback_echo'
  3268. fi
  3269. # func_echo_all arg...
  3270. # Invoke $ECHO with all args, space-separated.
  3271. func_echo_all ()
  3272. {
  3273. $ECHO ""
  3274. }
  3275. case $ECHO in
  3276. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3277. printf "%s\n" "printf" >&6; } ;;
  3278. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3279. printf "%s\n" "print -r" >&6; } ;;
  3280. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3281. printf "%s\n" "cat" >&6; } ;;
  3282. esac
  3283. ac_ext=c
  3284. ac_cpp='$CPP $CPPFLAGS'
  3285. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3286. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3287. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3288. if test -n "$ac_tool_prefix"; then
  3289. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3290. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3292. printf %s "checking for $ac_word... " >&6; }
  3293. if test ${ac_cv_prog_CC+y}
  3294. then :
  3295. printf %s "(cached) " >&6
  3296. else $as_nop
  3297. if test -n "$CC"; then
  3298. ac_cv_prog_CC="$CC" # Let the user override the test.
  3299. else
  3300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3301. for as_dir in $PATH
  3302. do
  3303. IFS=$as_save_IFS
  3304. case $as_dir in #(((
  3305. '') as_dir=./ ;;
  3306. */) ;;
  3307. *) as_dir=$as_dir/ ;;
  3308. esac
  3309. for ac_exec_ext in '' $ac_executable_extensions; do
  3310. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3311. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3312. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3313. break 2
  3314. fi
  3315. done
  3316. done
  3317. IFS=$as_save_IFS
  3318. fi
  3319. fi
  3320. CC=$ac_cv_prog_CC
  3321. if test -n "$CC"; then
  3322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3323. printf "%s\n" "$CC" >&6; }
  3324. else
  3325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3326. printf "%s\n" "no" >&6; }
  3327. fi
  3328. fi
  3329. if test -z "$ac_cv_prog_CC"; then
  3330. ac_ct_CC=$CC
  3331. # Extract the first word of "gcc", so it can be a program name with args.
  3332. set dummy gcc; ac_word=$2
  3333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3334. printf %s "checking for $ac_word... " >&6; }
  3335. if test ${ac_cv_prog_ac_ct_CC+y}
  3336. then :
  3337. printf %s "(cached) " >&6
  3338. else $as_nop
  3339. if test -n "$ac_ct_CC"; then
  3340. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3341. else
  3342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3343. for as_dir in $PATH
  3344. do
  3345. IFS=$as_save_IFS
  3346. case $as_dir in #(((
  3347. '') as_dir=./ ;;
  3348. */) ;;
  3349. *) as_dir=$as_dir/ ;;
  3350. esac
  3351. for ac_exec_ext in '' $ac_executable_extensions; do
  3352. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3353. ac_cv_prog_ac_ct_CC="gcc"
  3354. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3355. break 2
  3356. fi
  3357. done
  3358. done
  3359. IFS=$as_save_IFS
  3360. fi
  3361. fi
  3362. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3363. if test -n "$ac_ct_CC"; then
  3364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3365. printf "%s\n" "$ac_ct_CC" >&6; }
  3366. else
  3367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3368. printf "%s\n" "no" >&6; }
  3369. fi
  3370. if test "x$ac_ct_CC" = x; then
  3371. CC=""
  3372. else
  3373. case $cross_compiling:$ac_tool_warned in
  3374. yes:)
  3375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3376. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3377. ac_tool_warned=yes ;;
  3378. esac
  3379. CC=$ac_ct_CC
  3380. fi
  3381. else
  3382. CC="$ac_cv_prog_CC"
  3383. fi
  3384. if test -z "$CC"; then
  3385. if test -n "$ac_tool_prefix"; then
  3386. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3387. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3389. printf %s "checking for $ac_word... " >&6; }
  3390. if test ${ac_cv_prog_CC+y}
  3391. then :
  3392. printf %s "(cached) " >&6
  3393. else $as_nop
  3394. if test -n "$CC"; then
  3395. ac_cv_prog_CC="$CC" # Let the user override the test.
  3396. else
  3397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3398. for as_dir in $PATH
  3399. do
  3400. IFS=$as_save_IFS
  3401. case $as_dir in #(((
  3402. '') as_dir=./ ;;
  3403. */) ;;
  3404. *) as_dir=$as_dir/ ;;
  3405. esac
  3406. for ac_exec_ext in '' $ac_executable_extensions; do
  3407. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3408. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3409. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3410. break 2
  3411. fi
  3412. done
  3413. done
  3414. IFS=$as_save_IFS
  3415. fi
  3416. fi
  3417. CC=$ac_cv_prog_CC
  3418. if test -n "$CC"; then
  3419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3420. printf "%s\n" "$CC" >&6; }
  3421. else
  3422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3423. printf "%s\n" "no" >&6; }
  3424. fi
  3425. fi
  3426. fi
  3427. if test -z "$CC"; then
  3428. # Extract the first word of "cc", so it can be a program name with args.
  3429. set dummy cc; ac_word=$2
  3430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3431. printf %s "checking for $ac_word... " >&6; }
  3432. if test ${ac_cv_prog_CC+y}
  3433. then :
  3434. printf %s "(cached) " >&6
  3435. else $as_nop
  3436. if test -n "$CC"; then
  3437. ac_cv_prog_CC="$CC" # Let the user override the test.
  3438. else
  3439. ac_prog_rejected=no
  3440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3441. for as_dir in $PATH
  3442. do
  3443. IFS=$as_save_IFS
  3444. case $as_dir in #(((
  3445. '') as_dir=./ ;;
  3446. */) ;;
  3447. *) as_dir=$as_dir/ ;;
  3448. esac
  3449. for ac_exec_ext in '' $ac_executable_extensions; do
  3450. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3451. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3452. ac_prog_rejected=yes
  3453. continue
  3454. fi
  3455. ac_cv_prog_CC="cc"
  3456. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3457. break 2
  3458. fi
  3459. done
  3460. done
  3461. IFS=$as_save_IFS
  3462. if test $ac_prog_rejected = yes; then
  3463. # We found a bogon in the path, so make sure we never use it.
  3464. set dummy $ac_cv_prog_CC
  3465. shift
  3466. if test $# != 0; then
  3467. # We chose a different compiler from the bogus one.
  3468. # However, it has the same basename, so the bogon will be chosen
  3469. # first if we set CC to just the basename; use the full file name.
  3470. shift
  3471. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3472. fi
  3473. fi
  3474. fi
  3475. fi
  3476. CC=$ac_cv_prog_CC
  3477. if test -n "$CC"; then
  3478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3479. printf "%s\n" "$CC" >&6; }
  3480. else
  3481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3482. printf "%s\n" "no" >&6; }
  3483. fi
  3484. fi
  3485. if test -z "$CC"; then
  3486. if test -n "$ac_tool_prefix"; then
  3487. for ac_prog in cl.exe
  3488. do
  3489. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3490. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3492. printf %s "checking for $ac_word... " >&6; }
  3493. if test ${ac_cv_prog_CC+y}
  3494. then :
  3495. printf %s "(cached) " >&6
  3496. else $as_nop
  3497. if test -n "$CC"; then
  3498. ac_cv_prog_CC="$CC" # Let the user override the test.
  3499. else
  3500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3501. for as_dir in $PATH
  3502. do
  3503. IFS=$as_save_IFS
  3504. case $as_dir in #(((
  3505. '') as_dir=./ ;;
  3506. */) ;;
  3507. *) as_dir=$as_dir/ ;;
  3508. esac
  3509. for ac_exec_ext in '' $ac_executable_extensions; do
  3510. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3511. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3512. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3513. break 2
  3514. fi
  3515. done
  3516. done
  3517. IFS=$as_save_IFS
  3518. fi
  3519. fi
  3520. CC=$ac_cv_prog_CC
  3521. if test -n "$CC"; then
  3522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3523. printf "%s\n" "$CC" >&6; }
  3524. else
  3525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3526. printf "%s\n" "no" >&6; }
  3527. fi
  3528. test -n "$CC" && break
  3529. done
  3530. fi
  3531. if test -z "$CC"; then
  3532. ac_ct_CC=$CC
  3533. for ac_prog in cl.exe
  3534. do
  3535. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3536. set dummy $ac_prog; ac_word=$2
  3537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3538. printf %s "checking for $ac_word... " >&6; }
  3539. if test ${ac_cv_prog_ac_ct_CC+y}
  3540. then :
  3541. printf %s "(cached) " >&6
  3542. else $as_nop
  3543. if test -n "$ac_ct_CC"; then
  3544. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3545. else
  3546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3547. for as_dir in $PATH
  3548. do
  3549. IFS=$as_save_IFS
  3550. case $as_dir in #(((
  3551. '') as_dir=./ ;;
  3552. */) ;;
  3553. *) as_dir=$as_dir/ ;;
  3554. esac
  3555. for ac_exec_ext in '' $ac_executable_extensions; do
  3556. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3557. ac_cv_prog_ac_ct_CC="$ac_prog"
  3558. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3559. break 2
  3560. fi
  3561. done
  3562. done
  3563. IFS=$as_save_IFS
  3564. fi
  3565. fi
  3566. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3567. if test -n "$ac_ct_CC"; then
  3568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3569. printf "%s\n" "$ac_ct_CC" >&6; }
  3570. else
  3571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3572. printf "%s\n" "no" >&6; }
  3573. fi
  3574. test -n "$ac_ct_CC" && break
  3575. done
  3576. if test "x$ac_ct_CC" = x; then
  3577. CC=""
  3578. else
  3579. case $cross_compiling:$ac_tool_warned in
  3580. yes:)
  3581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3582. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3583. ac_tool_warned=yes ;;
  3584. esac
  3585. CC=$ac_ct_CC
  3586. fi
  3587. fi
  3588. fi
  3589. if test -z "$CC"; then
  3590. if test -n "$ac_tool_prefix"; then
  3591. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3592. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3594. printf %s "checking for $ac_word... " >&6; }
  3595. if test ${ac_cv_prog_CC+y}
  3596. then :
  3597. printf %s "(cached) " >&6
  3598. else $as_nop
  3599. if test -n "$CC"; then
  3600. ac_cv_prog_CC="$CC" # Let the user override the test.
  3601. else
  3602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3603. for as_dir in $PATH
  3604. do
  3605. IFS=$as_save_IFS
  3606. case $as_dir in #(((
  3607. '') as_dir=./ ;;
  3608. */) ;;
  3609. *) as_dir=$as_dir/ ;;
  3610. esac
  3611. for ac_exec_ext in '' $ac_executable_extensions; do
  3612. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3613. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3614. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3615. break 2
  3616. fi
  3617. done
  3618. done
  3619. IFS=$as_save_IFS
  3620. fi
  3621. fi
  3622. CC=$ac_cv_prog_CC
  3623. if test -n "$CC"; then
  3624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3625. printf "%s\n" "$CC" >&6; }
  3626. else
  3627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3628. printf "%s\n" "no" >&6; }
  3629. fi
  3630. fi
  3631. if test -z "$ac_cv_prog_CC"; then
  3632. ac_ct_CC=$CC
  3633. # Extract the first word of "clang", so it can be a program name with args.
  3634. set dummy clang; ac_word=$2
  3635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3636. printf %s "checking for $ac_word... " >&6; }
  3637. if test ${ac_cv_prog_ac_ct_CC+y}
  3638. then :
  3639. printf %s "(cached) " >&6
  3640. else $as_nop
  3641. if test -n "$ac_ct_CC"; then
  3642. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3643. else
  3644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3645. for as_dir in $PATH
  3646. do
  3647. IFS=$as_save_IFS
  3648. case $as_dir in #(((
  3649. '') as_dir=./ ;;
  3650. */) ;;
  3651. *) as_dir=$as_dir/ ;;
  3652. esac
  3653. for ac_exec_ext in '' $ac_executable_extensions; do
  3654. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3655. ac_cv_prog_ac_ct_CC="clang"
  3656. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3657. break 2
  3658. fi
  3659. done
  3660. done
  3661. IFS=$as_save_IFS
  3662. fi
  3663. fi
  3664. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3665. if test -n "$ac_ct_CC"; then
  3666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3667. printf "%s\n" "$ac_ct_CC" >&6; }
  3668. else
  3669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3670. printf "%s\n" "no" >&6; }
  3671. fi
  3672. if test "x$ac_ct_CC" = x; then
  3673. CC=""
  3674. else
  3675. case $cross_compiling:$ac_tool_warned in
  3676. yes:)
  3677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3678. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3679. ac_tool_warned=yes ;;
  3680. esac
  3681. CC=$ac_ct_CC
  3682. fi
  3683. else
  3684. CC="$ac_cv_prog_CC"
  3685. fi
  3686. fi
  3687. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3688. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3689. as_fn_error $? "no acceptable C compiler found in \$PATH
  3690. See \`config.log' for more details" "$LINENO" 5; }
  3691. # Provide some information about the compiler.
  3692. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3693. set X $ac_compile
  3694. ac_compiler=$2
  3695. for ac_option in --version -v -V -qversion -version; do
  3696. { { ac_try="$ac_compiler $ac_option >&5"
  3697. case "(($ac_try" in
  3698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3699. *) ac_try_echo=$ac_try;;
  3700. esac
  3701. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3702. printf "%s\n" "$ac_try_echo"; } >&5
  3703. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3704. ac_status=$?
  3705. if test -s conftest.err; then
  3706. sed '10a\
  3707. ... rest of stderr output deleted ...
  3708. 10q' conftest.err >conftest.er1
  3709. cat conftest.er1 >&5
  3710. fi
  3711. rm -f conftest.er1 conftest.err
  3712. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3713. test $ac_status = 0; }
  3714. done
  3715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3716. /* end confdefs.h. */
  3717. int
  3718. main (void)
  3719. {
  3720. ;
  3721. return 0;
  3722. }
  3723. _ACEOF
  3724. ac_clean_files_save=$ac_clean_files
  3725. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3726. # Try to create an executable without -o first, disregard a.out.
  3727. # It will help us diagnose broken compilers, and finding out an intuition
  3728. # of exeext.
  3729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3730. printf %s "checking whether the C compiler works... " >&6; }
  3731. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3732. # The possible output files:
  3733. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3734. ac_rmfiles=
  3735. for ac_file in $ac_files
  3736. do
  3737. case $ac_file in
  3738. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3739. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3740. esac
  3741. done
  3742. rm -f $ac_rmfiles
  3743. if { { ac_try="$ac_link_default"
  3744. case "(($ac_try" in
  3745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3746. *) ac_try_echo=$ac_try;;
  3747. esac
  3748. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3749. printf "%s\n" "$ac_try_echo"; } >&5
  3750. (eval "$ac_link_default") 2>&5
  3751. ac_status=$?
  3752. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3753. test $ac_status = 0; }
  3754. then :
  3755. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3756. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3757. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3758. # so that the user can short-circuit this test for compilers unknown to
  3759. # Autoconf.
  3760. for ac_file in $ac_files ''
  3761. do
  3762. test -f "$ac_file" || continue
  3763. case $ac_file in
  3764. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3765. ;;
  3766. [ab].out )
  3767. # We found the default executable, but exeext='' is most
  3768. # certainly right.
  3769. break;;
  3770. *.* )
  3771. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3772. then :; else
  3773. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3774. fi
  3775. # We set ac_cv_exeext here because the later test for it is not
  3776. # safe: cross compilers may not add the suffix if given an `-o'
  3777. # argument, so we may need to know it at that point already.
  3778. # Even if this section looks crufty: it has the advantage of
  3779. # actually working.
  3780. break;;
  3781. * )
  3782. break;;
  3783. esac
  3784. done
  3785. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3786. else $as_nop
  3787. ac_file=''
  3788. fi
  3789. if test -z "$ac_file"
  3790. then :
  3791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3792. printf "%s\n" "no" >&6; }
  3793. printf "%s\n" "$as_me: failed program was:" >&5
  3794. sed 's/^/| /' conftest.$ac_ext >&5
  3795. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3796. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3797. as_fn_error 77 "C compiler cannot create executables
  3798. See \`config.log' for more details" "$LINENO" 5; }
  3799. else $as_nop
  3800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3801. printf "%s\n" "yes" >&6; }
  3802. fi
  3803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3804. printf %s "checking for C compiler default output file name... " >&6; }
  3805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3806. printf "%s\n" "$ac_file" >&6; }
  3807. ac_exeext=$ac_cv_exeext
  3808. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3809. ac_clean_files=$ac_clean_files_save
  3810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3811. printf %s "checking for suffix of executables... " >&6; }
  3812. if { { ac_try="$ac_link"
  3813. case "(($ac_try" in
  3814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3815. *) ac_try_echo=$ac_try;;
  3816. esac
  3817. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3818. printf "%s\n" "$ac_try_echo"; } >&5
  3819. (eval "$ac_link") 2>&5
  3820. ac_status=$?
  3821. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3822. test $ac_status = 0; }
  3823. then :
  3824. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3825. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3826. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3827. # `rm'.
  3828. for ac_file in conftest.exe conftest conftest.*; do
  3829. test -f "$ac_file" || continue
  3830. case $ac_file in
  3831. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3832. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3833. break;;
  3834. * ) break;;
  3835. esac
  3836. done
  3837. else $as_nop
  3838. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3839. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3840. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3841. See \`config.log' for more details" "$LINENO" 5; }
  3842. fi
  3843. rm -f conftest conftest$ac_cv_exeext
  3844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3845. printf "%s\n" "$ac_cv_exeext" >&6; }
  3846. rm -f conftest.$ac_ext
  3847. EXEEXT=$ac_cv_exeext
  3848. ac_exeext=$EXEEXT
  3849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3850. /* end confdefs.h. */
  3851. #include <stdio.h>
  3852. int
  3853. main (void)
  3854. {
  3855. FILE *f = fopen ("conftest.out", "w");
  3856. return ferror (f) || fclose (f) != 0;
  3857. ;
  3858. return 0;
  3859. }
  3860. _ACEOF
  3861. ac_clean_files="$ac_clean_files conftest.out"
  3862. # Check that the compiler produces executables we can run. If not, either
  3863. # the compiler is broken, or we cross compile.
  3864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3865. printf %s "checking whether we are cross compiling... " >&6; }
  3866. if test "$cross_compiling" != yes; then
  3867. { { ac_try="$ac_link"
  3868. case "(($ac_try" in
  3869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3870. *) ac_try_echo=$ac_try;;
  3871. esac
  3872. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3873. printf "%s\n" "$ac_try_echo"; } >&5
  3874. (eval "$ac_link") 2>&5
  3875. ac_status=$?
  3876. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3877. test $ac_status = 0; }
  3878. if { ac_try='./conftest$ac_cv_exeext'
  3879. { { case "(($ac_try" in
  3880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3881. *) ac_try_echo=$ac_try;;
  3882. esac
  3883. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3884. printf "%s\n" "$ac_try_echo"; } >&5
  3885. (eval "$ac_try") 2>&5
  3886. ac_status=$?
  3887. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3888. test $ac_status = 0; }; }; then
  3889. cross_compiling=no
  3890. else
  3891. if test "$cross_compiling" = maybe; then
  3892. cross_compiling=yes
  3893. else
  3894. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3895. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3896. as_fn_error 77 "cannot run C compiled programs.
  3897. If you meant to cross compile, use \`--host'.
  3898. See \`config.log' for more details" "$LINENO" 5; }
  3899. fi
  3900. fi
  3901. fi
  3902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3903. printf "%s\n" "$cross_compiling" >&6; }
  3904. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3905. ac_clean_files=$ac_clean_files_save
  3906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3907. printf %s "checking for suffix of object files... " >&6; }
  3908. if test ${ac_cv_objext+y}
  3909. then :
  3910. printf %s "(cached) " >&6
  3911. else $as_nop
  3912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3913. /* end confdefs.h. */
  3914. int
  3915. main (void)
  3916. {
  3917. ;
  3918. return 0;
  3919. }
  3920. _ACEOF
  3921. rm -f conftest.o conftest.obj
  3922. if { { ac_try="$ac_compile"
  3923. case "(($ac_try" in
  3924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3925. *) ac_try_echo=$ac_try;;
  3926. esac
  3927. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3928. printf "%s\n" "$ac_try_echo"; } >&5
  3929. (eval "$ac_compile") 2>&5
  3930. ac_status=$?
  3931. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3932. test $ac_status = 0; }
  3933. then :
  3934. for ac_file in conftest.o conftest.obj conftest.*; do
  3935. test -f "$ac_file" || continue;
  3936. case $ac_file in
  3937. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3938. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3939. break;;
  3940. esac
  3941. done
  3942. else $as_nop
  3943. printf "%s\n" "$as_me: failed program was:" >&5
  3944. sed 's/^/| /' conftest.$ac_ext >&5
  3945. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3946. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3947. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3948. See \`config.log' for more details" "$LINENO" 5; }
  3949. fi
  3950. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3951. fi
  3952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3953. printf "%s\n" "$ac_cv_objext" >&6; }
  3954. OBJEXT=$ac_cv_objext
  3955. ac_objext=$OBJEXT
  3956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3957. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3958. if test ${ac_cv_c_compiler_gnu+y}
  3959. then :
  3960. printf %s "(cached) " >&6
  3961. else $as_nop
  3962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3963. /* end confdefs.h. */
  3964. int
  3965. main (void)
  3966. {
  3967. #ifndef __GNUC__
  3968. choke me
  3969. #endif
  3970. ;
  3971. return 0;
  3972. }
  3973. _ACEOF
  3974. if ac_fn_c_try_compile "$LINENO"
  3975. then :
  3976. ac_compiler_gnu=yes
  3977. else $as_nop
  3978. ac_compiler_gnu=no
  3979. fi
  3980. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3981. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3982. fi
  3983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3984. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3985. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3986. if test $ac_compiler_gnu = yes; then
  3987. GCC=yes
  3988. else
  3989. GCC=
  3990. fi
  3991. ac_test_CFLAGS=${CFLAGS+y}
  3992. ac_save_CFLAGS=$CFLAGS
  3993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3994. printf %s "checking whether $CC accepts -g... " >&6; }
  3995. if test ${ac_cv_prog_cc_g+y}
  3996. then :
  3997. printf %s "(cached) " >&6
  3998. else $as_nop
  3999. ac_save_c_werror_flag=$ac_c_werror_flag
  4000. ac_c_werror_flag=yes
  4001. ac_cv_prog_cc_g=no
  4002. CFLAGS="-g"
  4003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4004. /* end confdefs.h. */
  4005. int
  4006. main (void)
  4007. {
  4008. ;
  4009. return 0;
  4010. }
  4011. _ACEOF
  4012. if ac_fn_c_try_compile "$LINENO"
  4013. then :
  4014. ac_cv_prog_cc_g=yes
  4015. else $as_nop
  4016. CFLAGS=""
  4017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4018. /* end confdefs.h. */
  4019. int
  4020. main (void)
  4021. {
  4022. ;
  4023. return 0;
  4024. }
  4025. _ACEOF
  4026. if ac_fn_c_try_compile "$LINENO"
  4027. then :
  4028. else $as_nop
  4029. ac_c_werror_flag=$ac_save_c_werror_flag
  4030. CFLAGS="-g"
  4031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4032. /* end confdefs.h. */
  4033. int
  4034. main (void)
  4035. {
  4036. ;
  4037. return 0;
  4038. }
  4039. _ACEOF
  4040. if ac_fn_c_try_compile "$LINENO"
  4041. then :
  4042. ac_cv_prog_cc_g=yes
  4043. fi
  4044. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4045. fi
  4046. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4047. fi
  4048. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4049. ac_c_werror_flag=$ac_save_c_werror_flag
  4050. fi
  4051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4052. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4053. if test $ac_test_CFLAGS; then
  4054. CFLAGS=$ac_save_CFLAGS
  4055. elif test $ac_cv_prog_cc_g = yes; then
  4056. if test "$GCC" = yes; then
  4057. CFLAGS="-g -O2"
  4058. else
  4059. CFLAGS="-g"
  4060. fi
  4061. else
  4062. if test "$GCC" = yes; then
  4063. CFLAGS="-O2"
  4064. else
  4065. CFLAGS=
  4066. fi
  4067. fi
  4068. ac_prog_cc_stdc=no
  4069. if test x$ac_prog_cc_stdc = xno
  4070. then :
  4071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4072. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4073. if test ${ac_cv_prog_cc_c11+y}
  4074. then :
  4075. printf %s "(cached) " >&6
  4076. else $as_nop
  4077. ac_cv_prog_cc_c11=no
  4078. ac_save_CC=$CC
  4079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4080. /* end confdefs.h. */
  4081. $ac_c_conftest_c11_program
  4082. _ACEOF
  4083. for ac_arg in '' -std=gnu11
  4084. do
  4085. CC="$ac_save_CC $ac_arg"
  4086. if ac_fn_c_try_compile "$LINENO"
  4087. then :
  4088. ac_cv_prog_cc_c11=$ac_arg
  4089. fi
  4090. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4091. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4092. done
  4093. rm -f conftest.$ac_ext
  4094. CC=$ac_save_CC
  4095. fi
  4096. if test "x$ac_cv_prog_cc_c11" = xno
  4097. then :
  4098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4099. printf "%s\n" "unsupported" >&6; }
  4100. else $as_nop
  4101. if test "x$ac_cv_prog_cc_c11" = x
  4102. then :
  4103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4104. printf "%s\n" "none needed" >&6; }
  4105. else $as_nop
  4106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4107. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4108. CC="$CC $ac_cv_prog_cc_c11"
  4109. fi
  4110. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4111. ac_prog_cc_stdc=c11
  4112. fi
  4113. fi
  4114. if test x$ac_prog_cc_stdc = xno
  4115. then :
  4116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4117. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4118. if test ${ac_cv_prog_cc_c99+y}
  4119. then :
  4120. printf %s "(cached) " >&6
  4121. else $as_nop
  4122. ac_cv_prog_cc_c99=no
  4123. ac_save_CC=$CC
  4124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4125. /* end confdefs.h. */
  4126. $ac_c_conftest_c99_program
  4127. _ACEOF
  4128. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4129. do
  4130. CC="$ac_save_CC $ac_arg"
  4131. if ac_fn_c_try_compile "$LINENO"
  4132. then :
  4133. ac_cv_prog_cc_c99=$ac_arg
  4134. fi
  4135. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4136. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4137. done
  4138. rm -f conftest.$ac_ext
  4139. CC=$ac_save_CC
  4140. fi
  4141. if test "x$ac_cv_prog_cc_c99" = xno
  4142. then :
  4143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4144. printf "%s\n" "unsupported" >&6; }
  4145. else $as_nop
  4146. if test "x$ac_cv_prog_cc_c99" = x
  4147. then :
  4148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4149. printf "%s\n" "none needed" >&6; }
  4150. else $as_nop
  4151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4152. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4153. CC="$CC $ac_cv_prog_cc_c99"
  4154. fi
  4155. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4156. ac_prog_cc_stdc=c99
  4157. fi
  4158. fi
  4159. if test x$ac_prog_cc_stdc = xno
  4160. then :
  4161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4162. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4163. if test ${ac_cv_prog_cc_c89+y}
  4164. then :
  4165. printf %s "(cached) " >&6
  4166. else $as_nop
  4167. ac_cv_prog_cc_c89=no
  4168. ac_save_CC=$CC
  4169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4170. /* end confdefs.h. */
  4171. $ac_c_conftest_c89_program
  4172. _ACEOF
  4173. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4174. do
  4175. CC="$ac_save_CC $ac_arg"
  4176. if ac_fn_c_try_compile "$LINENO"
  4177. then :
  4178. ac_cv_prog_cc_c89=$ac_arg
  4179. fi
  4180. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4181. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4182. done
  4183. rm -f conftest.$ac_ext
  4184. CC=$ac_save_CC
  4185. fi
  4186. if test "x$ac_cv_prog_cc_c89" = xno
  4187. then :
  4188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4189. printf "%s\n" "unsupported" >&6; }
  4190. else $as_nop
  4191. if test "x$ac_cv_prog_cc_c89" = x
  4192. then :
  4193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4194. printf "%s\n" "none needed" >&6; }
  4195. else $as_nop
  4196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4197. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4198. CC="$CC $ac_cv_prog_cc_c89"
  4199. fi
  4200. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4201. ac_prog_cc_stdc=c89
  4202. fi
  4203. fi
  4204. ac_ext=c
  4205. ac_cpp='$CPP $CPPFLAGS'
  4206. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4207. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4208. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4210. printf %s "checking for a sed that does not truncate output... " >&6; }
  4211. if test ${ac_cv_path_SED+y}
  4212. then :
  4213. printf %s "(cached) " >&6
  4214. else $as_nop
  4215. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4216. for ac_i in 1 2 3 4 5 6 7; do
  4217. ac_script="$ac_script$as_nl$ac_script"
  4218. done
  4219. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4220. { ac_script=; unset ac_script;}
  4221. if test -z "$SED"; then
  4222. ac_path_SED_found=false
  4223. # Loop through the user's path and test for each of PROGNAME-LIST
  4224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4225. for as_dir in $PATH
  4226. do
  4227. IFS=$as_save_IFS
  4228. case $as_dir in #(((
  4229. '') as_dir=./ ;;
  4230. */) ;;
  4231. *) as_dir=$as_dir/ ;;
  4232. esac
  4233. for ac_prog in sed gsed
  4234. do
  4235. for ac_exec_ext in '' $ac_executable_extensions; do
  4236. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4237. as_fn_executable_p "$ac_path_SED" || continue
  4238. # Check for GNU ac_path_SED and select it if it is found.
  4239. # Check for GNU $ac_path_SED
  4240. case `"$ac_path_SED" --version 2>&1` in
  4241. *GNU*)
  4242. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4243. *)
  4244. ac_count=0
  4245. printf %s 0123456789 >"conftest.in"
  4246. while :
  4247. do
  4248. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4249. mv "conftest.tmp" "conftest.in"
  4250. cp "conftest.in" "conftest.nl"
  4251. printf "%s\n" '' >> "conftest.nl"
  4252. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4253. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4254. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4255. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4256. # Best one so far, save it but keep looking for a better one
  4257. ac_cv_path_SED="$ac_path_SED"
  4258. ac_path_SED_max=$ac_count
  4259. fi
  4260. # 10*(2^10) chars as input seems more than enough
  4261. test $ac_count -gt 10 && break
  4262. done
  4263. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4264. esac
  4265. $ac_path_SED_found && break 3
  4266. done
  4267. done
  4268. done
  4269. IFS=$as_save_IFS
  4270. if test -z "$ac_cv_path_SED"; then
  4271. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4272. fi
  4273. else
  4274. ac_cv_path_SED=$SED
  4275. fi
  4276. fi
  4277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4278. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4279. SED="$ac_cv_path_SED"
  4280. rm -f conftest.sed
  4281. test -z "$SED" && SED=sed
  4282. Xsed="$SED -e 1s/^X//"
  4283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4284. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4285. if test ${ac_cv_path_GREP+y}
  4286. then :
  4287. printf %s "(cached) " >&6
  4288. else $as_nop
  4289. if test -z "$GREP"; then
  4290. ac_path_GREP_found=false
  4291. # Loop through the user's path and test for each of PROGNAME-LIST
  4292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4293. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4294. do
  4295. IFS=$as_save_IFS
  4296. case $as_dir in #(((
  4297. '') as_dir=./ ;;
  4298. */) ;;
  4299. *) as_dir=$as_dir/ ;;
  4300. esac
  4301. for ac_prog in grep ggrep
  4302. do
  4303. for ac_exec_ext in '' $ac_executable_extensions; do
  4304. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4305. as_fn_executable_p "$ac_path_GREP" || continue
  4306. # Check for GNU ac_path_GREP and select it if it is found.
  4307. # Check for GNU $ac_path_GREP
  4308. case `"$ac_path_GREP" --version 2>&1` in
  4309. *GNU*)
  4310. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4311. *)
  4312. ac_count=0
  4313. printf %s 0123456789 >"conftest.in"
  4314. while :
  4315. do
  4316. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4317. mv "conftest.tmp" "conftest.in"
  4318. cp "conftest.in" "conftest.nl"
  4319. printf "%s\n" 'GREP' >> "conftest.nl"
  4320. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4321. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4322. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4323. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4324. # Best one so far, save it but keep looking for a better one
  4325. ac_cv_path_GREP="$ac_path_GREP"
  4326. ac_path_GREP_max=$ac_count
  4327. fi
  4328. # 10*(2^10) chars as input seems more than enough
  4329. test $ac_count -gt 10 && break
  4330. done
  4331. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4332. esac
  4333. $ac_path_GREP_found && break 3
  4334. done
  4335. done
  4336. done
  4337. IFS=$as_save_IFS
  4338. if test -z "$ac_cv_path_GREP"; then
  4339. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4340. fi
  4341. else
  4342. ac_cv_path_GREP=$GREP
  4343. fi
  4344. fi
  4345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4346. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4347. GREP="$ac_cv_path_GREP"
  4348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4349. printf %s "checking for egrep... " >&6; }
  4350. if test ${ac_cv_path_EGREP+y}
  4351. then :
  4352. printf %s "(cached) " >&6
  4353. else $as_nop
  4354. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4355. then ac_cv_path_EGREP="$GREP -E"
  4356. else
  4357. if test -z "$EGREP"; then
  4358. ac_path_EGREP_found=false
  4359. # Loop through the user's path and test for each of PROGNAME-LIST
  4360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4361. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4362. do
  4363. IFS=$as_save_IFS
  4364. case $as_dir in #(((
  4365. '') as_dir=./ ;;
  4366. */) ;;
  4367. *) as_dir=$as_dir/ ;;
  4368. esac
  4369. for ac_prog in egrep
  4370. do
  4371. for ac_exec_ext in '' $ac_executable_extensions; do
  4372. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4373. as_fn_executable_p "$ac_path_EGREP" || continue
  4374. # Check for GNU ac_path_EGREP and select it if it is found.
  4375. # Check for GNU $ac_path_EGREP
  4376. case `"$ac_path_EGREP" --version 2>&1` in
  4377. *GNU*)
  4378. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4379. *)
  4380. ac_count=0
  4381. printf %s 0123456789 >"conftest.in"
  4382. while :
  4383. do
  4384. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4385. mv "conftest.tmp" "conftest.in"
  4386. cp "conftest.in" "conftest.nl"
  4387. printf "%s\n" 'EGREP' >> "conftest.nl"
  4388. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4389. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4390. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4391. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4392. # Best one so far, save it but keep looking for a better one
  4393. ac_cv_path_EGREP="$ac_path_EGREP"
  4394. ac_path_EGREP_max=$ac_count
  4395. fi
  4396. # 10*(2^10) chars as input seems more than enough
  4397. test $ac_count -gt 10 && break
  4398. done
  4399. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4400. esac
  4401. $ac_path_EGREP_found && break 3
  4402. done
  4403. done
  4404. done
  4405. IFS=$as_save_IFS
  4406. if test -z "$ac_cv_path_EGREP"; then
  4407. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4408. fi
  4409. else
  4410. ac_cv_path_EGREP=$EGREP
  4411. fi
  4412. fi
  4413. fi
  4414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4415. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4416. EGREP="$ac_cv_path_EGREP"
  4417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4418. printf %s "checking for fgrep... " >&6; }
  4419. if test ${ac_cv_path_FGREP+y}
  4420. then :
  4421. printf %s "(cached) " >&6
  4422. else $as_nop
  4423. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4424. then ac_cv_path_FGREP="$GREP -F"
  4425. else
  4426. if test -z "$FGREP"; then
  4427. ac_path_FGREP_found=false
  4428. # Loop through the user's path and test for each of PROGNAME-LIST
  4429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4430. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4431. do
  4432. IFS=$as_save_IFS
  4433. case $as_dir in #(((
  4434. '') as_dir=./ ;;
  4435. */) ;;
  4436. *) as_dir=$as_dir/ ;;
  4437. esac
  4438. for ac_prog in fgrep
  4439. do
  4440. for ac_exec_ext in '' $ac_executable_extensions; do
  4441. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4442. as_fn_executable_p "$ac_path_FGREP" || continue
  4443. # Check for GNU ac_path_FGREP and select it if it is found.
  4444. # Check for GNU $ac_path_FGREP
  4445. case `"$ac_path_FGREP" --version 2>&1` in
  4446. *GNU*)
  4447. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4448. *)
  4449. ac_count=0
  4450. printf %s 0123456789 >"conftest.in"
  4451. while :
  4452. do
  4453. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4454. mv "conftest.tmp" "conftest.in"
  4455. cp "conftest.in" "conftest.nl"
  4456. printf "%s\n" 'FGREP' >> "conftest.nl"
  4457. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4458. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4459. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4460. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4461. # Best one so far, save it but keep looking for a better one
  4462. ac_cv_path_FGREP="$ac_path_FGREP"
  4463. ac_path_FGREP_max=$ac_count
  4464. fi
  4465. # 10*(2^10) chars as input seems more than enough
  4466. test $ac_count -gt 10 && break
  4467. done
  4468. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4469. esac
  4470. $ac_path_FGREP_found && break 3
  4471. done
  4472. done
  4473. done
  4474. IFS=$as_save_IFS
  4475. if test -z "$ac_cv_path_FGREP"; then
  4476. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4477. fi
  4478. else
  4479. ac_cv_path_FGREP=$FGREP
  4480. fi
  4481. fi
  4482. fi
  4483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4484. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4485. FGREP="$ac_cv_path_FGREP"
  4486. test -z "$GREP" && GREP=grep
  4487. # Check whether --with-gnu-ld was given.
  4488. if test ${with_gnu_ld+y}
  4489. then :
  4490. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4491. else $as_nop
  4492. with_gnu_ld=no
  4493. fi
  4494. ac_prog=ld
  4495. if test yes = "$GCC"; then
  4496. # Check if gcc -print-prog-name=ld gives a path.
  4497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4498. printf %s "checking for ld used by $CC... " >&6; }
  4499. case $host in
  4500. *-*-mingw*)
  4501. # gcc leaves a trailing carriage return, which upsets mingw
  4502. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4503. *)
  4504. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4505. esac
  4506. case $ac_prog in
  4507. # Accept absolute paths.
  4508. [\\/]* | ?:[\\/]*)
  4509. re_direlt='/[^/][^/]*/\.\./'
  4510. # Canonicalize the pathname of ld
  4511. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4512. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4513. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4514. done
  4515. test -z "$LD" && LD=$ac_prog
  4516. ;;
  4517. "")
  4518. # If it fails, then pretend we aren't using GCC.
  4519. ac_prog=ld
  4520. ;;
  4521. *)
  4522. # If it is relative, then search for the first ld in PATH.
  4523. with_gnu_ld=unknown
  4524. ;;
  4525. esac
  4526. elif test yes = "$with_gnu_ld"; then
  4527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4528. printf %s "checking for GNU ld... " >&6; }
  4529. else
  4530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4531. printf %s "checking for non-GNU ld... " >&6; }
  4532. fi
  4533. if test ${lt_cv_path_LD+y}
  4534. then :
  4535. printf %s "(cached) " >&6
  4536. else $as_nop
  4537. if test -z "$LD"; then
  4538. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4539. for ac_dir in $PATH; do
  4540. IFS=$lt_save_ifs
  4541. test -z "$ac_dir" && ac_dir=.
  4542. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4543. lt_cv_path_LD=$ac_dir/$ac_prog
  4544. # Check to see if the program is GNU ld. I'd rather use --version,
  4545. # but apparently some variants of GNU ld only accept -v.
  4546. # Break only if it was the GNU/non-GNU ld that we prefer.
  4547. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4548. *GNU* | *'with BFD'*)
  4549. test no != "$with_gnu_ld" && break
  4550. ;;
  4551. *)
  4552. test yes != "$with_gnu_ld" && break
  4553. ;;
  4554. esac
  4555. fi
  4556. done
  4557. IFS=$lt_save_ifs
  4558. else
  4559. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4560. fi
  4561. fi
  4562. LD=$lt_cv_path_LD
  4563. if test -n "$LD"; then
  4564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4565. printf "%s\n" "$LD" >&6; }
  4566. else
  4567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4568. printf "%s\n" "no" >&6; }
  4569. fi
  4570. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4572. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4573. if test ${lt_cv_prog_gnu_ld+y}
  4574. then :
  4575. printf %s "(cached) " >&6
  4576. else $as_nop
  4577. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4578. case `$LD -v 2>&1 </dev/null` in
  4579. *GNU* | *'with BFD'*)
  4580. lt_cv_prog_gnu_ld=yes
  4581. ;;
  4582. *)
  4583. lt_cv_prog_gnu_ld=no
  4584. ;;
  4585. esac
  4586. fi
  4587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4588. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4589. with_gnu_ld=$lt_cv_prog_gnu_ld
  4590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4591. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4592. if test ${lt_cv_path_NM+y}
  4593. then :
  4594. printf %s "(cached) " >&6
  4595. else $as_nop
  4596. if test -n "$NM"; then
  4597. # Let the user override the test.
  4598. lt_cv_path_NM=$NM
  4599. else
  4600. lt_nm_to_check=${ac_tool_prefix}nm
  4601. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4602. lt_nm_to_check="$lt_nm_to_check nm"
  4603. fi
  4604. for lt_tmp_nm in $lt_nm_to_check; do
  4605. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4606. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4607. IFS=$lt_save_ifs
  4608. test -z "$ac_dir" && ac_dir=.
  4609. tmp_nm=$ac_dir/$lt_tmp_nm
  4610. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4611. # Check to see if the nm accepts a BSD-compat flag.
  4612. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4613. # nm: unknown option "B" ignored
  4614. # Tru64's nm complains that /dev/null is an invalid object file
  4615. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4616. case $build_os in
  4617. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4618. *) lt_bad_file=/dev/null ;;
  4619. esac
  4620. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4621. *$lt_bad_file* | *'Invalid file or object type'*)
  4622. lt_cv_path_NM="$tmp_nm -B"
  4623. break 2
  4624. ;;
  4625. *)
  4626. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4627. */dev/null*)
  4628. lt_cv_path_NM="$tmp_nm -p"
  4629. break 2
  4630. ;;
  4631. *)
  4632. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4633. continue # so that we can try to find one that supports BSD flags
  4634. ;;
  4635. esac
  4636. ;;
  4637. esac
  4638. fi
  4639. done
  4640. IFS=$lt_save_ifs
  4641. done
  4642. : ${lt_cv_path_NM=no}
  4643. fi
  4644. fi
  4645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4646. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4647. if test no != "$lt_cv_path_NM"; then
  4648. NM=$lt_cv_path_NM
  4649. else
  4650. # Didn't find any BSD compatible name lister, look for dumpbin.
  4651. if test -n "$DUMPBIN"; then :
  4652. # Let the user override the test.
  4653. else
  4654. if test -n "$ac_tool_prefix"; then
  4655. for ac_prog in dumpbin "link -dump"
  4656. do
  4657. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4658. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4660. printf %s "checking for $ac_word... " >&6; }
  4661. if test ${ac_cv_prog_DUMPBIN+y}
  4662. then :
  4663. printf %s "(cached) " >&6
  4664. else $as_nop
  4665. if test -n "$DUMPBIN"; then
  4666. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4667. else
  4668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4669. for as_dir in $PATH
  4670. do
  4671. IFS=$as_save_IFS
  4672. case $as_dir in #(((
  4673. '') as_dir=./ ;;
  4674. */) ;;
  4675. *) as_dir=$as_dir/ ;;
  4676. esac
  4677. for ac_exec_ext in '' $ac_executable_extensions; do
  4678. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4679. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4680. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4681. break 2
  4682. fi
  4683. done
  4684. done
  4685. IFS=$as_save_IFS
  4686. fi
  4687. fi
  4688. DUMPBIN=$ac_cv_prog_DUMPBIN
  4689. if test -n "$DUMPBIN"; then
  4690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4691. printf "%s\n" "$DUMPBIN" >&6; }
  4692. else
  4693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4694. printf "%s\n" "no" >&6; }
  4695. fi
  4696. test -n "$DUMPBIN" && break
  4697. done
  4698. fi
  4699. if test -z "$DUMPBIN"; then
  4700. ac_ct_DUMPBIN=$DUMPBIN
  4701. for ac_prog in dumpbin "link -dump"
  4702. do
  4703. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4704. set dummy $ac_prog; ac_word=$2
  4705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4706. printf %s "checking for $ac_word... " >&6; }
  4707. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4708. then :
  4709. printf %s "(cached) " >&6
  4710. else $as_nop
  4711. if test -n "$ac_ct_DUMPBIN"; then
  4712. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4713. else
  4714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4715. for as_dir in $PATH
  4716. do
  4717. IFS=$as_save_IFS
  4718. case $as_dir in #(((
  4719. '') as_dir=./ ;;
  4720. */) ;;
  4721. *) as_dir=$as_dir/ ;;
  4722. esac
  4723. for ac_exec_ext in '' $ac_executable_extensions; do
  4724. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4725. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4726. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4727. break 2
  4728. fi
  4729. done
  4730. done
  4731. IFS=$as_save_IFS
  4732. fi
  4733. fi
  4734. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4735. if test -n "$ac_ct_DUMPBIN"; then
  4736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4737. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4738. else
  4739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4740. printf "%s\n" "no" >&6; }
  4741. fi
  4742. test -n "$ac_ct_DUMPBIN" && break
  4743. done
  4744. if test "x$ac_ct_DUMPBIN" = x; then
  4745. DUMPBIN=":"
  4746. else
  4747. case $cross_compiling:$ac_tool_warned in
  4748. yes:)
  4749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4750. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4751. ac_tool_warned=yes ;;
  4752. esac
  4753. DUMPBIN=$ac_ct_DUMPBIN
  4754. fi
  4755. fi
  4756. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4757. *COFF*)
  4758. DUMPBIN="$DUMPBIN -symbols -headers"
  4759. ;;
  4760. *)
  4761. DUMPBIN=:
  4762. ;;
  4763. esac
  4764. fi
  4765. if test : != "$DUMPBIN"; then
  4766. NM=$DUMPBIN
  4767. fi
  4768. fi
  4769. test -z "$NM" && NM=nm
  4770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4771. printf %s "checking the name lister ($NM) interface... " >&6; }
  4772. if test ${lt_cv_nm_interface+y}
  4773. then :
  4774. printf %s "(cached) " >&6
  4775. else $as_nop
  4776. lt_cv_nm_interface="BSD nm"
  4777. echo "int some_variable = 0;" > conftest.$ac_ext
  4778. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4779. (eval "$ac_compile" 2>conftest.err)
  4780. cat conftest.err >&5
  4781. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4782. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4783. cat conftest.err >&5
  4784. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4785. cat conftest.out >&5
  4786. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4787. lt_cv_nm_interface="MS dumpbin"
  4788. fi
  4789. rm -f conftest*
  4790. fi
  4791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4792. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4794. printf %s "checking whether ln -s works... " >&6; }
  4795. LN_S=$as_ln_s
  4796. if test "$LN_S" = "ln -s"; then
  4797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4798. printf "%s\n" "yes" >&6; }
  4799. else
  4800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4801. printf "%s\n" "no, using $LN_S" >&6; }
  4802. fi
  4803. # find the maximum length of command line arguments
  4804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4805. printf %s "checking the maximum length of command line arguments... " >&6; }
  4806. if test ${lt_cv_sys_max_cmd_len+y}
  4807. then :
  4808. printf %s "(cached) " >&6
  4809. else $as_nop
  4810. i=0
  4811. teststring=ABCD
  4812. case $build_os in
  4813. msdosdjgpp*)
  4814. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4815. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4816. # during glob expansion). Even if it were fixed, the result of this
  4817. # check would be larger than it should be.
  4818. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4819. ;;
  4820. gnu*)
  4821. # Under GNU Hurd, this test is not required because there is
  4822. # no limit to the length of command line arguments.
  4823. # Libtool will interpret -1 as no limit whatsoever
  4824. lt_cv_sys_max_cmd_len=-1;
  4825. ;;
  4826. cygwin* | mingw* | cegcc*)
  4827. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4828. # about 5 minutes as the teststring grows exponentially.
  4829. # Worse, since 9x/ME are not pre-emptively multitasking,
  4830. # you end up with a "frozen" computer, even though with patience
  4831. # the test eventually succeeds (with a max line length of 256k).
  4832. # Instead, let's just punt: use the minimum linelength reported by
  4833. # all of the supported platforms: 8192 (on NT/2K/XP).
  4834. lt_cv_sys_max_cmd_len=8192;
  4835. ;;
  4836. mint*)
  4837. # On MiNT this can take a long time and run out of memory.
  4838. lt_cv_sys_max_cmd_len=8192;
  4839. ;;
  4840. amigaos*)
  4841. # On AmigaOS with pdksh, this test takes hours, literally.
  4842. # So we just punt and use a minimum line length of 8192.
  4843. lt_cv_sys_max_cmd_len=8192;
  4844. ;;
  4845. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4846. # This has been around since 386BSD, at least. Likely further.
  4847. if test -x /sbin/sysctl; then
  4848. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4849. elif test -x /usr/sbin/sysctl; then
  4850. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4851. else
  4852. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4853. fi
  4854. # And add a safety zone
  4855. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4856. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4857. ;;
  4858. interix*)
  4859. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4860. lt_cv_sys_max_cmd_len=196608
  4861. ;;
  4862. os2*)
  4863. # The test takes a long time on OS/2.
  4864. lt_cv_sys_max_cmd_len=8192
  4865. ;;
  4866. osf*)
  4867. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4868. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4869. # nice to cause kernel panics so lets avoid the loop below.
  4870. # First set a reasonable default.
  4871. lt_cv_sys_max_cmd_len=16384
  4872. #
  4873. if test -x /sbin/sysconfig; then
  4874. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4875. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4876. esac
  4877. fi
  4878. ;;
  4879. sco3.2v5*)
  4880. lt_cv_sys_max_cmd_len=102400
  4881. ;;
  4882. sysv5* | sco5v6* | sysv4.2uw2*)
  4883. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4884. if test -n "$kargmax"; then
  4885. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4886. else
  4887. lt_cv_sys_max_cmd_len=32768
  4888. fi
  4889. ;;
  4890. *)
  4891. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4892. if test -n "$lt_cv_sys_max_cmd_len" && \
  4893. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4894. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4895. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4896. else
  4897. # Make teststring a little bigger before we do anything with it.
  4898. # a 1K string should be a reasonable start.
  4899. for i in 1 2 3 4 5 6 7 8; do
  4900. teststring=$teststring$teststring
  4901. done
  4902. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4903. # If test is not a shell built-in, we'll probably end up computing a
  4904. # maximum length that is only half of the actual maximum length, but
  4905. # we can't tell.
  4906. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4907. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4908. test 17 != "$i" # 1/2 MB should be enough
  4909. do
  4910. i=`expr $i + 1`
  4911. teststring=$teststring$teststring
  4912. done
  4913. # Only check the string length outside the loop.
  4914. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4915. teststring=
  4916. # Add a significant safety factor because C++ compilers can tack on
  4917. # massive amounts of additional arguments before passing them to the
  4918. # linker. It appears as though 1/2 is a usable value.
  4919. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4920. fi
  4921. ;;
  4922. esac
  4923. fi
  4924. if test -n "$lt_cv_sys_max_cmd_len"; then
  4925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4926. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4927. else
  4928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4929. printf "%s\n" "none" >&6; }
  4930. fi
  4931. max_cmd_len=$lt_cv_sys_max_cmd_len
  4932. : ${CP="cp -f"}
  4933. : ${MV="mv -f"}
  4934. : ${RM="rm -f"}
  4935. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4936. lt_unset=unset
  4937. else
  4938. lt_unset=false
  4939. fi
  4940. # test EBCDIC or ASCII
  4941. case `echo X|tr X '\101'` in
  4942. A) # ASCII based system
  4943. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4944. lt_SP2NL='tr \040 \012'
  4945. lt_NL2SP='tr \015\012 \040\040'
  4946. ;;
  4947. *) # EBCDIC based system
  4948. lt_SP2NL='tr \100 \n'
  4949. lt_NL2SP='tr \r\n \100\100'
  4950. ;;
  4951. esac
  4952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4953. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4954. if test ${lt_cv_to_host_file_cmd+y}
  4955. then :
  4956. printf %s "(cached) " >&6
  4957. else $as_nop
  4958. case $host in
  4959. *-*-mingw* )
  4960. case $build in
  4961. *-*-mingw* ) # actually msys
  4962. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4963. ;;
  4964. *-*-cygwin* )
  4965. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4966. ;;
  4967. * ) # otherwise, assume *nix
  4968. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4969. ;;
  4970. esac
  4971. ;;
  4972. *-*-cygwin* )
  4973. case $build in
  4974. *-*-mingw* ) # actually msys
  4975. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4976. ;;
  4977. *-*-cygwin* )
  4978. lt_cv_to_host_file_cmd=func_convert_file_noop
  4979. ;;
  4980. * ) # otherwise, assume *nix
  4981. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4982. ;;
  4983. esac
  4984. ;;
  4985. * ) # unhandled hosts (and "normal" native builds)
  4986. lt_cv_to_host_file_cmd=func_convert_file_noop
  4987. ;;
  4988. esac
  4989. fi
  4990. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4992. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4994. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4995. if test ${lt_cv_to_tool_file_cmd+y}
  4996. then :
  4997. printf %s "(cached) " >&6
  4998. else $as_nop
  4999. #assume ordinary cross tools, or native build.
  5000. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5001. case $host in
  5002. *-*-mingw* )
  5003. case $build in
  5004. *-*-mingw* ) # actually msys
  5005. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5006. ;;
  5007. esac
  5008. ;;
  5009. esac
  5010. fi
  5011. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5013. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5015. printf %s "checking for $LD option to reload object files... " >&6; }
  5016. if test ${lt_cv_ld_reload_flag+y}
  5017. then :
  5018. printf %s "(cached) " >&6
  5019. else $as_nop
  5020. lt_cv_ld_reload_flag='-r'
  5021. fi
  5022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5023. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5024. reload_flag=$lt_cv_ld_reload_flag
  5025. case $reload_flag in
  5026. "" | " "*) ;;
  5027. *) reload_flag=" $reload_flag" ;;
  5028. esac
  5029. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5030. case $host_os in
  5031. cygwin* | mingw* | pw32* | cegcc*)
  5032. if test yes != "$GCC"; then
  5033. reload_cmds=false
  5034. fi
  5035. ;;
  5036. darwin*)
  5037. if test yes = "$GCC"; then
  5038. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5039. else
  5040. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5041. fi
  5042. ;;
  5043. esac
  5044. if test -n "$ac_tool_prefix"; then
  5045. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5046. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5048. printf %s "checking for $ac_word... " >&6; }
  5049. if test ${ac_cv_prog_OBJDUMP+y}
  5050. then :
  5051. printf %s "(cached) " >&6
  5052. else $as_nop
  5053. if test -n "$OBJDUMP"; then
  5054. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5055. else
  5056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5057. for as_dir in $PATH
  5058. do
  5059. IFS=$as_save_IFS
  5060. case $as_dir in #(((
  5061. '') as_dir=./ ;;
  5062. */) ;;
  5063. *) as_dir=$as_dir/ ;;
  5064. esac
  5065. for ac_exec_ext in '' $ac_executable_extensions; do
  5066. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5067. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5068. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5069. break 2
  5070. fi
  5071. done
  5072. done
  5073. IFS=$as_save_IFS
  5074. fi
  5075. fi
  5076. OBJDUMP=$ac_cv_prog_OBJDUMP
  5077. if test -n "$OBJDUMP"; then
  5078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5079. printf "%s\n" "$OBJDUMP" >&6; }
  5080. else
  5081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5082. printf "%s\n" "no" >&6; }
  5083. fi
  5084. fi
  5085. if test -z "$ac_cv_prog_OBJDUMP"; then
  5086. ac_ct_OBJDUMP=$OBJDUMP
  5087. # Extract the first word of "objdump", so it can be a program name with args.
  5088. set dummy objdump; ac_word=$2
  5089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5090. printf %s "checking for $ac_word... " >&6; }
  5091. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5092. then :
  5093. printf %s "(cached) " >&6
  5094. else $as_nop
  5095. if test -n "$ac_ct_OBJDUMP"; then
  5096. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5097. else
  5098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5099. for as_dir in $PATH
  5100. do
  5101. IFS=$as_save_IFS
  5102. case $as_dir in #(((
  5103. '') as_dir=./ ;;
  5104. */) ;;
  5105. *) as_dir=$as_dir/ ;;
  5106. esac
  5107. for ac_exec_ext in '' $ac_executable_extensions; do
  5108. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5109. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5110. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5111. break 2
  5112. fi
  5113. done
  5114. done
  5115. IFS=$as_save_IFS
  5116. fi
  5117. fi
  5118. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5119. if test -n "$ac_ct_OBJDUMP"; then
  5120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5121. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5122. else
  5123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5124. printf "%s\n" "no" >&6; }
  5125. fi
  5126. if test "x$ac_ct_OBJDUMP" = x; then
  5127. OBJDUMP="false"
  5128. else
  5129. case $cross_compiling:$ac_tool_warned in
  5130. yes:)
  5131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5132. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5133. ac_tool_warned=yes ;;
  5134. esac
  5135. OBJDUMP=$ac_ct_OBJDUMP
  5136. fi
  5137. else
  5138. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5139. fi
  5140. test -z "$OBJDUMP" && OBJDUMP=objdump
  5141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5142. printf %s "checking how to recognize dependent libraries... " >&6; }
  5143. if test ${lt_cv_deplibs_check_method+y}
  5144. then :
  5145. printf %s "(cached) " >&6
  5146. else $as_nop
  5147. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5148. lt_cv_file_magic_test_file=
  5149. lt_cv_deplibs_check_method='unknown'
  5150. # Need to set the preceding variable on all platforms that support
  5151. # interlibrary dependencies.
  5152. # 'none' -- dependencies not supported.
  5153. # 'unknown' -- same as none, but documents that we really don't know.
  5154. # 'pass_all' -- all dependencies passed with no checks.
  5155. # 'test_compile' -- check by making test program.
  5156. # 'file_magic [[regex]]' -- check by looking for files in library path
  5157. # that responds to the $file_magic_cmd with a given extended regex.
  5158. # If you have 'file' or equivalent on your system and you're not sure
  5159. # whether 'pass_all' will *always* work, you probably want this one.
  5160. case $host_os in
  5161. aix[4-9]*)
  5162. lt_cv_deplibs_check_method=pass_all
  5163. ;;
  5164. beos*)
  5165. lt_cv_deplibs_check_method=pass_all
  5166. ;;
  5167. bsdi[45]*)
  5168. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5169. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5170. lt_cv_file_magic_test_file=/shlib/libc.so
  5171. ;;
  5172. cygwin*)
  5173. # func_win32_libid is a shell function defined in ltmain.sh
  5174. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5175. lt_cv_file_magic_cmd='func_win32_libid'
  5176. lt_cv_deplibs_check_method=pass_all # SDL customization
  5177. ;;
  5178. mingw* | pw32*)
  5179. # Base MSYS/MinGW do not provide the 'file' command needed by
  5180. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5181. # unless we find 'file', for example because we are cross-compiling.
  5182. if ( file / ) >/dev/null 2>&1; then
  5183. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5184. lt_cv_file_magic_cmd='func_win32_libid'
  5185. else
  5186. # Keep this pattern in sync with the one in func_win32_libid.
  5187. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5188. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5189. fi
  5190. lt_cv_deplibs_check_method=pass_all # SDL customization
  5191. ;;
  5192. cegcc*)
  5193. # use the weaker test based on 'objdump'. See mingw*.
  5194. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5195. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5196. ;;
  5197. darwin* | rhapsody*)
  5198. lt_cv_deplibs_check_method=pass_all
  5199. ;;
  5200. freebsd* | dragonfly* | midnightbsd*)
  5201. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5202. case $host_cpu in
  5203. i*86 )
  5204. # Not sure whether the presence of OpenBSD here was a mistake.
  5205. # Let's accept both of them until this is cleared up.
  5206. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5207. lt_cv_file_magic_cmd=/usr/bin/file
  5208. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5209. ;;
  5210. esac
  5211. else
  5212. lt_cv_deplibs_check_method=pass_all
  5213. fi
  5214. ;;
  5215. haiku*)
  5216. lt_cv_deplibs_check_method=pass_all
  5217. ;;
  5218. hpux10.20* | hpux11*)
  5219. lt_cv_file_magic_cmd=/usr/bin/file
  5220. case $host_cpu in
  5221. ia64*)
  5222. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5223. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5224. ;;
  5225. hppa*64*)
  5226. 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]'
  5227. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5228. ;;
  5229. *)
  5230. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5231. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5232. ;;
  5233. esac
  5234. ;;
  5235. interix[3-9]*)
  5236. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5237. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5238. ;;
  5239. irix5* | irix6* | nonstopux*)
  5240. case $LD in
  5241. *-32|*"-32 ") libmagic=32-bit;;
  5242. *-n32|*"-n32 ") libmagic=N32;;
  5243. *-64|*"-64 ") libmagic=64-bit;;
  5244. *) libmagic=never-match;;
  5245. esac
  5246. lt_cv_deplibs_check_method=pass_all
  5247. ;;
  5248. # This must be glibc/ELF.
  5249. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5250. lt_cv_deplibs_check_method=pass_all
  5251. ;;
  5252. netbsd*)
  5253. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5254. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5255. else
  5256. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5257. fi
  5258. ;;
  5259. newos6*)
  5260. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5261. lt_cv_file_magic_cmd=/usr/bin/file
  5262. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5263. ;;
  5264. *nto* | *qnx*)
  5265. lt_cv_deplibs_check_method=pass_all
  5266. ;;
  5267. openbsd* | bitrig*)
  5268. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5269. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5270. else
  5271. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5272. fi
  5273. ;;
  5274. osf3* | osf4* | osf5*)
  5275. lt_cv_deplibs_check_method=pass_all
  5276. ;;
  5277. rdos*)
  5278. lt_cv_deplibs_check_method=pass_all
  5279. ;;
  5280. solaris*)
  5281. lt_cv_deplibs_check_method=pass_all
  5282. ;;
  5283. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5284. lt_cv_deplibs_check_method=pass_all
  5285. ;;
  5286. sysv4 | sysv4.3*)
  5287. case $host_vendor in
  5288. motorola)
  5289. 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]'
  5290. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5291. ;;
  5292. ncr)
  5293. lt_cv_deplibs_check_method=pass_all
  5294. ;;
  5295. sequent)
  5296. lt_cv_file_magic_cmd='/bin/file'
  5297. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5298. ;;
  5299. sni)
  5300. lt_cv_file_magic_cmd='/bin/file'
  5301. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5302. lt_cv_file_magic_test_file=/lib/libc.so
  5303. ;;
  5304. siemens)
  5305. lt_cv_deplibs_check_method=pass_all
  5306. ;;
  5307. pc)
  5308. lt_cv_deplibs_check_method=pass_all
  5309. ;;
  5310. esac
  5311. ;;
  5312. tpf*)
  5313. lt_cv_deplibs_check_method=pass_all
  5314. ;;
  5315. os2*)
  5316. lt_cv_deplibs_check_method=pass_all
  5317. ;;
  5318. esac
  5319. fi
  5320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5321. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5322. file_magic_glob=
  5323. want_nocaseglob=no
  5324. if test "$build" = "$host"; then
  5325. case $host_os in
  5326. mingw* | pw32*)
  5327. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5328. want_nocaseglob=yes
  5329. else
  5330. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5331. fi
  5332. ;;
  5333. esac
  5334. fi
  5335. file_magic_cmd=$lt_cv_file_magic_cmd
  5336. deplibs_check_method=$lt_cv_deplibs_check_method
  5337. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5338. if test -n "$ac_tool_prefix"; then
  5339. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5340. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5342. printf %s "checking for $ac_word... " >&6; }
  5343. if test ${ac_cv_prog_DLLTOOL+y}
  5344. then :
  5345. printf %s "(cached) " >&6
  5346. else $as_nop
  5347. if test -n "$DLLTOOL"; then
  5348. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5349. else
  5350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5351. for as_dir in $PATH
  5352. do
  5353. IFS=$as_save_IFS
  5354. case $as_dir in #(((
  5355. '') as_dir=./ ;;
  5356. */) ;;
  5357. *) as_dir=$as_dir/ ;;
  5358. esac
  5359. for ac_exec_ext in '' $ac_executable_extensions; do
  5360. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5361. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5362. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5363. break 2
  5364. fi
  5365. done
  5366. done
  5367. IFS=$as_save_IFS
  5368. fi
  5369. fi
  5370. DLLTOOL=$ac_cv_prog_DLLTOOL
  5371. if test -n "$DLLTOOL"; then
  5372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5373. printf "%s\n" "$DLLTOOL" >&6; }
  5374. else
  5375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5376. printf "%s\n" "no" >&6; }
  5377. fi
  5378. fi
  5379. if test -z "$ac_cv_prog_DLLTOOL"; then
  5380. ac_ct_DLLTOOL=$DLLTOOL
  5381. # Extract the first word of "dlltool", so it can be a program name with args.
  5382. set dummy dlltool; ac_word=$2
  5383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5384. printf %s "checking for $ac_word... " >&6; }
  5385. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5386. then :
  5387. printf %s "(cached) " >&6
  5388. else $as_nop
  5389. if test -n "$ac_ct_DLLTOOL"; then
  5390. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5391. else
  5392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5393. for as_dir in $PATH
  5394. do
  5395. IFS=$as_save_IFS
  5396. case $as_dir in #(((
  5397. '') as_dir=./ ;;
  5398. */) ;;
  5399. *) as_dir=$as_dir/ ;;
  5400. esac
  5401. for ac_exec_ext in '' $ac_executable_extensions; do
  5402. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5403. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5404. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5405. break 2
  5406. fi
  5407. done
  5408. done
  5409. IFS=$as_save_IFS
  5410. fi
  5411. fi
  5412. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5413. if test -n "$ac_ct_DLLTOOL"; then
  5414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5415. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5416. else
  5417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5418. printf "%s\n" "no" >&6; }
  5419. fi
  5420. if test "x$ac_ct_DLLTOOL" = x; then
  5421. DLLTOOL="false"
  5422. else
  5423. case $cross_compiling:$ac_tool_warned in
  5424. yes:)
  5425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5426. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5427. ac_tool_warned=yes ;;
  5428. esac
  5429. DLLTOOL=$ac_ct_DLLTOOL
  5430. fi
  5431. else
  5432. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5433. fi
  5434. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5436. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5437. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5438. then :
  5439. printf %s "(cached) " >&6
  5440. else $as_nop
  5441. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5442. case $host_os in
  5443. cygwin* | mingw* | pw32* | cegcc*)
  5444. # two different shell functions defined in ltmain.sh;
  5445. # decide which one to use based on capabilities of $DLLTOOL
  5446. case `$DLLTOOL --help 2>&1` in
  5447. *--identify-strict*)
  5448. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5449. ;;
  5450. *)
  5451. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5452. ;;
  5453. esac
  5454. ;;
  5455. *)
  5456. # fallback: assume linklib IS sharedlib
  5457. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5458. ;;
  5459. esac
  5460. fi
  5461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5462. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5463. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5464. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5465. if test -n "$ac_tool_prefix"; then
  5466. for ac_prog in ar
  5467. do
  5468. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5469. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5471. printf %s "checking for $ac_word... " >&6; }
  5472. if test ${ac_cv_prog_AR+y}
  5473. then :
  5474. printf %s "(cached) " >&6
  5475. else $as_nop
  5476. if test -n "$AR"; then
  5477. ac_cv_prog_AR="$AR" # Let the user override the test.
  5478. else
  5479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5480. for as_dir in $PATH
  5481. do
  5482. IFS=$as_save_IFS
  5483. case $as_dir in #(((
  5484. '') as_dir=./ ;;
  5485. */) ;;
  5486. *) as_dir=$as_dir/ ;;
  5487. esac
  5488. for ac_exec_ext in '' $ac_executable_extensions; do
  5489. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5490. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5491. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5492. break 2
  5493. fi
  5494. done
  5495. done
  5496. IFS=$as_save_IFS
  5497. fi
  5498. fi
  5499. AR=$ac_cv_prog_AR
  5500. if test -n "$AR"; then
  5501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5502. printf "%s\n" "$AR" >&6; }
  5503. else
  5504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5505. printf "%s\n" "no" >&6; }
  5506. fi
  5507. test -n "$AR" && break
  5508. done
  5509. fi
  5510. if test -z "$AR"; then
  5511. ac_ct_AR=$AR
  5512. for ac_prog in ar
  5513. do
  5514. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5515. set dummy $ac_prog; ac_word=$2
  5516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5517. printf %s "checking for $ac_word... " >&6; }
  5518. if test ${ac_cv_prog_ac_ct_AR+y}
  5519. then :
  5520. printf %s "(cached) " >&6
  5521. else $as_nop
  5522. if test -n "$ac_ct_AR"; then
  5523. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5524. else
  5525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5526. for as_dir in $PATH
  5527. do
  5528. IFS=$as_save_IFS
  5529. case $as_dir in #(((
  5530. '') as_dir=./ ;;
  5531. */) ;;
  5532. *) as_dir=$as_dir/ ;;
  5533. esac
  5534. for ac_exec_ext in '' $ac_executable_extensions; do
  5535. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5536. ac_cv_prog_ac_ct_AR="$ac_prog"
  5537. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5538. break 2
  5539. fi
  5540. done
  5541. done
  5542. IFS=$as_save_IFS
  5543. fi
  5544. fi
  5545. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5546. if test -n "$ac_ct_AR"; then
  5547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5548. printf "%s\n" "$ac_ct_AR" >&6; }
  5549. else
  5550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5551. printf "%s\n" "no" >&6; }
  5552. fi
  5553. test -n "$ac_ct_AR" && break
  5554. done
  5555. if test "x$ac_ct_AR" = x; then
  5556. AR="false"
  5557. else
  5558. case $cross_compiling:$ac_tool_warned in
  5559. yes:)
  5560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5561. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5562. ac_tool_warned=yes ;;
  5563. esac
  5564. AR=$ac_ct_AR
  5565. fi
  5566. fi
  5567. : ${AR=ar}
  5568. : ${AR_FLAGS=cru}
  5569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5570. printf %s "checking for archiver @FILE support... " >&6; }
  5571. if test ${lt_cv_ar_at_file+y}
  5572. then :
  5573. printf %s "(cached) " >&6
  5574. else $as_nop
  5575. lt_cv_ar_at_file=no
  5576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5577. /* end confdefs.h. */
  5578. int
  5579. main (void)
  5580. {
  5581. ;
  5582. return 0;
  5583. }
  5584. _ACEOF
  5585. if ac_fn_c_try_compile "$LINENO"
  5586. then :
  5587. echo conftest.$ac_objext > conftest.lst
  5588. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5589. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5590. (eval $lt_ar_try) 2>&5
  5591. ac_status=$?
  5592. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5593. test $ac_status = 0; }
  5594. if test 0 -eq "$ac_status"; then
  5595. # Ensure the archiver fails upon bogus file names.
  5596. rm -f conftest.$ac_objext libconftest.a
  5597. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5598. (eval $lt_ar_try) 2>&5
  5599. ac_status=$?
  5600. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5601. test $ac_status = 0; }
  5602. if test 0 -ne "$ac_status"; then
  5603. lt_cv_ar_at_file=@
  5604. fi
  5605. fi
  5606. rm -f conftest.* libconftest.a
  5607. fi
  5608. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5609. fi
  5610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5611. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5612. if test no = "$lt_cv_ar_at_file"; then
  5613. archiver_list_spec=
  5614. else
  5615. archiver_list_spec=$lt_cv_ar_at_file
  5616. fi
  5617. if test -n "$ac_tool_prefix"; then
  5618. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5619. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5621. printf %s "checking for $ac_word... " >&6; }
  5622. if test ${ac_cv_prog_STRIP+y}
  5623. then :
  5624. printf %s "(cached) " >&6
  5625. else $as_nop
  5626. if test -n "$STRIP"; then
  5627. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5628. else
  5629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5630. for as_dir in $PATH
  5631. do
  5632. IFS=$as_save_IFS
  5633. case $as_dir in #(((
  5634. '') as_dir=./ ;;
  5635. */) ;;
  5636. *) as_dir=$as_dir/ ;;
  5637. esac
  5638. for ac_exec_ext in '' $ac_executable_extensions; do
  5639. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5640. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5641. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5642. break 2
  5643. fi
  5644. done
  5645. done
  5646. IFS=$as_save_IFS
  5647. fi
  5648. fi
  5649. STRIP=$ac_cv_prog_STRIP
  5650. if test -n "$STRIP"; then
  5651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5652. printf "%s\n" "$STRIP" >&6; }
  5653. else
  5654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5655. printf "%s\n" "no" >&6; }
  5656. fi
  5657. fi
  5658. if test -z "$ac_cv_prog_STRIP"; then
  5659. ac_ct_STRIP=$STRIP
  5660. # Extract the first word of "strip", so it can be a program name with args.
  5661. set dummy strip; ac_word=$2
  5662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5663. printf %s "checking for $ac_word... " >&6; }
  5664. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5665. then :
  5666. printf %s "(cached) " >&6
  5667. else $as_nop
  5668. if test -n "$ac_ct_STRIP"; then
  5669. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5670. else
  5671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5672. for as_dir in $PATH
  5673. do
  5674. IFS=$as_save_IFS
  5675. case $as_dir in #(((
  5676. '') as_dir=./ ;;
  5677. */) ;;
  5678. *) as_dir=$as_dir/ ;;
  5679. esac
  5680. for ac_exec_ext in '' $ac_executable_extensions; do
  5681. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5682. ac_cv_prog_ac_ct_STRIP="strip"
  5683. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5684. break 2
  5685. fi
  5686. done
  5687. done
  5688. IFS=$as_save_IFS
  5689. fi
  5690. fi
  5691. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5692. if test -n "$ac_ct_STRIP"; then
  5693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5694. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5695. else
  5696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5697. printf "%s\n" "no" >&6; }
  5698. fi
  5699. if test "x$ac_ct_STRIP" = x; then
  5700. STRIP=":"
  5701. else
  5702. case $cross_compiling:$ac_tool_warned in
  5703. yes:)
  5704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5705. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5706. ac_tool_warned=yes ;;
  5707. esac
  5708. STRIP=$ac_ct_STRIP
  5709. fi
  5710. else
  5711. STRIP="$ac_cv_prog_STRIP"
  5712. fi
  5713. test -z "$STRIP" && STRIP=:
  5714. if test -n "$ac_tool_prefix"; then
  5715. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5716. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5718. printf %s "checking for $ac_word... " >&6; }
  5719. if test ${ac_cv_prog_RANLIB+y}
  5720. then :
  5721. printf %s "(cached) " >&6
  5722. else $as_nop
  5723. if test -n "$RANLIB"; then
  5724. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5725. else
  5726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5727. for as_dir in $PATH
  5728. do
  5729. IFS=$as_save_IFS
  5730. case $as_dir in #(((
  5731. '') as_dir=./ ;;
  5732. */) ;;
  5733. *) as_dir=$as_dir/ ;;
  5734. esac
  5735. for ac_exec_ext in '' $ac_executable_extensions; do
  5736. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5737. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5738. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5739. break 2
  5740. fi
  5741. done
  5742. done
  5743. IFS=$as_save_IFS
  5744. fi
  5745. fi
  5746. RANLIB=$ac_cv_prog_RANLIB
  5747. if test -n "$RANLIB"; then
  5748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5749. printf "%s\n" "$RANLIB" >&6; }
  5750. else
  5751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5752. printf "%s\n" "no" >&6; }
  5753. fi
  5754. fi
  5755. if test -z "$ac_cv_prog_RANLIB"; then
  5756. ac_ct_RANLIB=$RANLIB
  5757. # Extract the first word of "ranlib", so it can be a program name with args.
  5758. set dummy ranlib; ac_word=$2
  5759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5760. printf %s "checking for $ac_word... " >&6; }
  5761. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5762. then :
  5763. printf %s "(cached) " >&6
  5764. else $as_nop
  5765. if test -n "$ac_ct_RANLIB"; then
  5766. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5767. else
  5768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5769. for as_dir in $PATH
  5770. do
  5771. IFS=$as_save_IFS
  5772. case $as_dir in #(((
  5773. '') as_dir=./ ;;
  5774. */) ;;
  5775. *) as_dir=$as_dir/ ;;
  5776. esac
  5777. for ac_exec_ext in '' $ac_executable_extensions; do
  5778. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5779. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5780. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5781. break 2
  5782. fi
  5783. done
  5784. done
  5785. IFS=$as_save_IFS
  5786. fi
  5787. fi
  5788. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5789. if test -n "$ac_ct_RANLIB"; then
  5790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5791. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5792. else
  5793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5794. printf "%s\n" "no" >&6; }
  5795. fi
  5796. if test "x$ac_ct_RANLIB" = x; then
  5797. RANLIB=":"
  5798. else
  5799. case $cross_compiling:$ac_tool_warned in
  5800. yes:)
  5801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5802. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5803. ac_tool_warned=yes ;;
  5804. esac
  5805. RANLIB=$ac_ct_RANLIB
  5806. fi
  5807. else
  5808. RANLIB="$ac_cv_prog_RANLIB"
  5809. fi
  5810. test -z "$RANLIB" && RANLIB=:
  5811. # Determine commands to create old-style static archives.
  5812. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5813. old_postinstall_cmds='chmod 644 $oldlib'
  5814. old_postuninstall_cmds=
  5815. if test -n "$RANLIB"; then
  5816. case $host_os in
  5817. bitrig* | openbsd*)
  5818. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5819. ;;
  5820. *)
  5821. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5822. ;;
  5823. esac
  5824. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5825. fi
  5826. case $host_os in
  5827. darwin*)
  5828. lock_old_archive_extraction=yes ;;
  5829. *)
  5830. lock_old_archive_extraction=no ;;
  5831. esac
  5832. for ac_prog in gawk mawk nawk awk
  5833. do
  5834. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5835. set dummy $ac_prog; ac_word=$2
  5836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5837. printf %s "checking for $ac_word... " >&6; }
  5838. if test ${ac_cv_prog_AWK+y}
  5839. then :
  5840. printf %s "(cached) " >&6
  5841. else $as_nop
  5842. if test -n "$AWK"; then
  5843. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5844. else
  5845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5846. for as_dir in $PATH
  5847. do
  5848. IFS=$as_save_IFS
  5849. case $as_dir in #(((
  5850. '') as_dir=./ ;;
  5851. */) ;;
  5852. *) as_dir=$as_dir/ ;;
  5853. esac
  5854. for ac_exec_ext in '' $ac_executable_extensions; do
  5855. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5856. ac_cv_prog_AWK="$ac_prog"
  5857. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5858. break 2
  5859. fi
  5860. done
  5861. done
  5862. IFS=$as_save_IFS
  5863. fi
  5864. fi
  5865. AWK=$ac_cv_prog_AWK
  5866. if test -n "$AWK"; then
  5867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5868. printf "%s\n" "$AWK" >&6; }
  5869. else
  5870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5871. printf "%s\n" "no" >&6; }
  5872. fi
  5873. test -n "$AWK" && break
  5874. done
  5875. # If no C compiler was specified, use CC.
  5876. LTCC=${LTCC-"$CC"}
  5877. # If no C compiler flags were specified, use CFLAGS.
  5878. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5879. # Allow CC to be a program name with arguments.
  5880. compiler=$CC
  5881. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5883. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5884. if test ${lt_cv_sys_global_symbol_pipe+y}
  5885. then :
  5886. printf %s "(cached) " >&6
  5887. else $as_nop
  5888. # These are sane defaults that work on at least a few old systems.
  5889. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5890. # Character class describing NM global symbol codes.
  5891. symcode='[BCDEGRST]'
  5892. # Regexp to match symbols that can be accessed directly from C.
  5893. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5894. # Define system-specific variables.
  5895. case $host_os in
  5896. aix*)
  5897. symcode='[BCDT]'
  5898. ;;
  5899. cygwin* | mingw* | pw32* | cegcc*)
  5900. symcode='[ABCDGISTW]'
  5901. ;;
  5902. hpux*)
  5903. if test ia64 = "$host_cpu"; then
  5904. symcode='[ABCDEGRST]'
  5905. fi
  5906. ;;
  5907. irix* | nonstopux*)
  5908. symcode='[BCDEGRST]'
  5909. ;;
  5910. osf*)
  5911. symcode='[BCDEGQRST]'
  5912. ;;
  5913. solaris*)
  5914. symcode='[BCDRT]'
  5915. ;;
  5916. sco3.2v5*)
  5917. symcode='[DT]'
  5918. ;;
  5919. sysv4.2uw2*)
  5920. symcode='[DT]'
  5921. ;;
  5922. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5923. symcode='[ABDT]'
  5924. ;;
  5925. sysv4)
  5926. symcode='[DFNSTU]'
  5927. ;;
  5928. esac
  5929. # If we're using GNU nm, then use its standard symbol codes.
  5930. case `$NM -V 2>&1` in
  5931. *GNU* | *'with BFD'*)
  5932. symcode='[ABCDGIRSTW]' ;;
  5933. esac
  5934. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5935. # Gets list of data symbols to import.
  5936. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5937. # Adjust the below global symbol transforms to fixup imported variables.
  5938. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5939. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5940. lt_c_name_lib_hook="\
  5941. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5942. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5943. else
  5944. # Disable hooks by default.
  5945. lt_cv_sys_global_symbol_to_import=
  5946. lt_cdecl_hook=
  5947. lt_c_name_hook=
  5948. lt_c_name_lib_hook=
  5949. fi
  5950. # Transform an extracted symbol line into a proper C declaration.
  5951. # Some systems (esp. on ia64) link data and code symbols differently,
  5952. # so use this general approach.
  5953. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5954. $lt_cdecl_hook\
  5955. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5956. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5957. # Transform an extracted symbol line into symbol name and symbol address
  5958. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5959. $lt_c_name_hook\
  5960. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5961. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5962. # Transform an extracted symbol line into symbol name with lib prefix and
  5963. # symbol address.
  5964. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5965. $lt_c_name_lib_hook\
  5966. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5967. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5968. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5969. # Handle CRLF in mingw tool chain
  5970. opt_cr=
  5971. case $build_os in
  5972. mingw*)
  5973. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5974. ;;
  5975. esac
  5976. # Try without a prefix underscore, then with it.
  5977. for ac_symprfx in "" "_"; do
  5978. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5979. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5980. # Write the raw and C identifiers.
  5981. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5982. # Fake it for dumpbin and say T for any non-static function,
  5983. # D for any global variable and I for any imported variable.
  5984. # Also find C++ and __fastcall symbols from MSVC++,
  5985. # which start with @ or ?.
  5986. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5987. " {last_section=section; section=\$ 3};"\
  5988. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5989. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5990. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5991. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5992. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5993. " \$ 0!~/External *\|/{next};"\
  5994. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5995. " {if(hide[section]) next};"\
  5996. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5997. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5998. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5999. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6000. " ' prfx=^$ac_symprfx"
  6001. else
  6002. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6003. fi
  6004. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6005. # Check to see that the pipe works correctly.
  6006. pipe_works=no
  6007. rm -f conftest*
  6008. cat > conftest.$ac_ext <<_LT_EOF
  6009. #ifdef __cplusplus
  6010. extern "C" {
  6011. #endif
  6012. char nm_test_var;
  6013. void nm_test_func(void);
  6014. void nm_test_func(void){}
  6015. #ifdef __cplusplus
  6016. }
  6017. #endif
  6018. int main(){nm_test_var='a';nm_test_func();return(0);}
  6019. _LT_EOF
  6020. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6021. (eval $ac_compile) 2>&5
  6022. ac_status=$?
  6023. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6024. test $ac_status = 0; }; then
  6025. # Now try to grab the symbols.
  6026. nlist=conftest.nm
  6027. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6028. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6029. ac_status=$?
  6030. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6031. test $ac_status = 0; } && test -s "$nlist"; then
  6032. # Try sorting and uniquifying the output.
  6033. if sort "$nlist" | uniq > "$nlist"T; then
  6034. mv -f "$nlist"T "$nlist"
  6035. else
  6036. rm -f "$nlist"T
  6037. fi
  6038. # Make sure that we snagged all the symbols we need.
  6039. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6040. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6041. cat <<_LT_EOF > conftest.$ac_ext
  6042. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6043. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6044. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6045. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6046. # define LT_DLSYM_CONST
  6047. #elif defined __osf__
  6048. /* This system does not cope well with relocations in const data. */
  6049. # define LT_DLSYM_CONST
  6050. #else
  6051. # define LT_DLSYM_CONST const
  6052. #endif
  6053. #ifdef __cplusplus
  6054. extern "C" {
  6055. #endif
  6056. _LT_EOF
  6057. # Now generate the symbol file.
  6058. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6059. cat <<_LT_EOF >> conftest.$ac_ext
  6060. /* The mapping between symbol names and symbols. */
  6061. LT_DLSYM_CONST struct {
  6062. const char *name;
  6063. void *address;
  6064. }
  6065. lt__PROGRAM__LTX_preloaded_symbols[] =
  6066. {
  6067. { "@PROGRAM@", (void *) 0 },
  6068. _LT_EOF
  6069. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6070. cat <<\_LT_EOF >> conftest.$ac_ext
  6071. {0, (void *) 0}
  6072. };
  6073. /* This works around a problem in FreeBSD linker */
  6074. #ifdef FREEBSD_WORKAROUND
  6075. static const void *lt_preloaded_setup() {
  6076. return lt__PROGRAM__LTX_preloaded_symbols;
  6077. }
  6078. #endif
  6079. #ifdef __cplusplus
  6080. }
  6081. #endif
  6082. _LT_EOF
  6083. # Now try linking the two files.
  6084. mv conftest.$ac_objext conftstm.$ac_objext
  6085. lt_globsym_save_LIBS=$LIBS
  6086. lt_globsym_save_CFLAGS=$CFLAGS
  6087. LIBS=conftstm.$ac_objext
  6088. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6089. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6090. (eval $ac_link) 2>&5
  6091. ac_status=$?
  6092. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6093. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6094. pipe_works=yes
  6095. fi
  6096. LIBS=$lt_globsym_save_LIBS
  6097. CFLAGS=$lt_globsym_save_CFLAGS
  6098. else
  6099. echo "cannot find nm_test_func in $nlist" >&5
  6100. fi
  6101. else
  6102. echo "cannot find nm_test_var in $nlist" >&5
  6103. fi
  6104. else
  6105. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6106. fi
  6107. else
  6108. echo "$progname: failed program was:" >&5
  6109. cat conftest.$ac_ext >&5
  6110. fi
  6111. rm -rf conftest* conftst*
  6112. # Do not use the global_symbol_pipe unless it works.
  6113. if test yes = "$pipe_works"; then
  6114. break
  6115. else
  6116. lt_cv_sys_global_symbol_pipe=
  6117. fi
  6118. done
  6119. fi
  6120. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6121. lt_cv_sys_global_symbol_to_cdecl=
  6122. fi
  6123. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6125. printf "%s\n" "failed" >&6; }
  6126. else
  6127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6128. printf "%s\n" "ok" >&6; }
  6129. fi
  6130. # Response file support.
  6131. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6132. nm_file_list_spec='@'
  6133. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6134. nm_file_list_spec='@'
  6135. fi
  6136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6137. printf %s "checking for sysroot... " >&6; }
  6138. # Check whether --with-sysroot was given.
  6139. if test ${with_sysroot+y}
  6140. then :
  6141. withval=$with_sysroot;
  6142. else $as_nop
  6143. with_sysroot=no
  6144. fi
  6145. lt_sysroot=
  6146. case $with_sysroot in #(
  6147. yes)
  6148. if test yes = "$GCC"; then
  6149. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6150. fi
  6151. ;; #(
  6152. /*)
  6153. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6154. ;; #(
  6155. no|'')
  6156. ;; #(
  6157. *)
  6158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6159. printf "%s\n" "$with_sysroot" >&6; }
  6160. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6161. ;;
  6162. esac
  6163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6164. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6166. printf %s "checking for a working dd... " >&6; }
  6167. if test ${ac_cv_path_lt_DD+y}
  6168. then :
  6169. printf %s "(cached) " >&6
  6170. else $as_nop
  6171. printf 0123456789abcdef0123456789abcdef >conftest.i
  6172. cat conftest.i conftest.i >conftest2.i
  6173. : ${lt_DD:=$DD}
  6174. if test -z "$lt_DD"; then
  6175. ac_path_lt_DD_found=false
  6176. # Loop through the user's path and test for each of PROGNAME-LIST
  6177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6178. for as_dir in $PATH
  6179. do
  6180. IFS=$as_save_IFS
  6181. case $as_dir in #(((
  6182. '') as_dir=./ ;;
  6183. */) ;;
  6184. *) as_dir=$as_dir/ ;;
  6185. esac
  6186. for ac_prog in dd
  6187. do
  6188. for ac_exec_ext in '' $ac_executable_extensions; do
  6189. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6190. as_fn_executable_p "$ac_path_lt_DD" || continue
  6191. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6192. cmp -s conftest.i conftest.out \
  6193. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6194. fi
  6195. $ac_path_lt_DD_found && break 3
  6196. done
  6197. done
  6198. done
  6199. IFS=$as_save_IFS
  6200. if test -z "$ac_cv_path_lt_DD"; then
  6201. :
  6202. fi
  6203. else
  6204. ac_cv_path_lt_DD=$lt_DD
  6205. fi
  6206. rm -f conftest.i conftest2.i conftest.out
  6207. fi
  6208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6209. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6211. printf %s "checking how to truncate binary pipes... " >&6; }
  6212. if test ${lt_cv_truncate_bin+y}
  6213. then :
  6214. printf %s "(cached) " >&6
  6215. else $as_nop
  6216. printf 0123456789abcdef0123456789abcdef >conftest.i
  6217. cat conftest.i conftest.i >conftest2.i
  6218. lt_cv_truncate_bin=
  6219. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6220. cmp -s conftest.i conftest.out \
  6221. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6222. fi
  6223. rm -f conftest.i conftest2.i conftest.out
  6224. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6225. fi
  6226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6227. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6228. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6229. func_cc_basename ()
  6230. {
  6231. for cc_temp in $*""; do
  6232. case $cc_temp in
  6233. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6234. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6235. \-*) ;;
  6236. *) break;;
  6237. esac
  6238. done
  6239. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6240. }
  6241. # Check whether --enable-libtool-lock was given.
  6242. if test ${enable_libtool_lock+y}
  6243. then :
  6244. enableval=$enable_libtool_lock;
  6245. fi
  6246. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6247. # Some flags need to be propagated to the compiler or linker for good
  6248. # libtool support.
  6249. case $host in
  6250. ia64-*-hpux*)
  6251. # Find out what ABI is being produced by ac_compile, and set mode
  6252. # options accordingly.
  6253. echo 'int i;' > conftest.$ac_ext
  6254. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6255. (eval $ac_compile) 2>&5
  6256. ac_status=$?
  6257. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6258. test $ac_status = 0; }; then
  6259. case `/usr/bin/file conftest.$ac_objext` in
  6260. *ELF-32*)
  6261. HPUX_IA64_MODE=32
  6262. ;;
  6263. *ELF-64*)
  6264. HPUX_IA64_MODE=64
  6265. ;;
  6266. esac
  6267. fi
  6268. rm -rf conftest*
  6269. ;;
  6270. *-*-irix6*)
  6271. # Find out what ABI is being produced by ac_compile, and set linker
  6272. # options accordingly.
  6273. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6274. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6275. (eval $ac_compile) 2>&5
  6276. ac_status=$?
  6277. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6278. test $ac_status = 0; }; then
  6279. if test yes = "$lt_cv_prog_gnu_ld"; then
  6280. case `/usr/bin/file conftest.$ac_objext` in
  6281. *32-bit*)
  6282. LD="${LD-ld} -melf32bsmip"
  6283. ;;
  6284. *N32*)
  6285. LD="${LD-ld} -melf32bmipn32"
  6286. ;;
  6287. *64-bit*)
  6288. LD="${LD-ld} -melf64bmip"
  6289. ;;
  6290. esac
  6291. else
  6292. case `/usr/bin/file conftest.$ac_objext` in
  6293. *32-bit*)
  6294. LD="${LD-ld} -32"
  6295. ;;
  6296. *N32*)
  6297. LD="${LD-ld} -n32"
  6298. ;;
  6299. *64-bit*)
  6300. LD="${LD-ld} -64"
  6301. ;;
  6302. esac
  6303. fi
  6304. fi
  6305. rm -rf conftest*
  6306. ;;
  6307. mips64*-*linux*)
  6308. # Find out what ABI is being produced by ac_compile, and set linker
  6309. # options accordingly.
  6310. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6311. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6312. (eval $ac_compile) 2>&5
  6313. ac_status=$?
  6314. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6315. test $ac_status = 0; }; then
  6316. emul=elf
  6317. case `/usr/bin/file conftest.$ac_objext` in
  6318. *32-bit*)
  6319. emul="${emul}32"
  6320. ;;
  6321. *64-bit*)
  6322. emul="${emul}64"
  6323. ;;
  6324. esac
  6325. case `/usr/bin/file conftest.$ac_objext` in
  6326. *MSB*)
  6327. emul="${emul}btsmip"
  6328. ;;
  6329. *LSB*)
  6330. emul="${emul}ltsmip"
  6331. ;;
  6332. esac
  6333. case `/usr/bin/file conftest.$ac_objext` in
  6334. *N32*)
  6335. emul="${emul}n32"
  6336. ;;
  6337. esac
  6338. LD="${LD-ld} -m $emul"
  6339. fi
  6340. rm -rf conftest*
  6341. ;;
  6342. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6343. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6344. # Find out what ABI is being produced by ac_compile, and set linker
  6345. # options accordingly. Note that the listed cases only cover the
  6346. # situations where additional linker options are needed (such as when
  6347. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6348. # vice versa); the common cases where no linker options are needed do
  6349. # not appear in the list.
  6350. echo 'int i;' > conftest.$ac_ext
  6351. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6352. (eval $ac_compile) 2>&5
  6353. ac_status=$?
  6354. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6355. test $ac_status = 0; }; then
  6356. case `/usr/bin/file conftest.o` in
  6357. *32-bit*)
  6358. case $host in
  6359. x86_64-*kfreebsd*-gnu)
  6360. LD="${LD-ld} -m elf_i386_fbsd"
  6361. ;;
  6362. x86_64-*linux*)
  6363. case `/usr/bin/file conftest.o` in
  6364. *x86-64*)
  6365. LD="${LD-ld} -m elf32_x86_64"
  6366. ;;
  6367. *)
  6368. LD="${LD-ld} -m elf_i386"
  6369. ;;
  6370. esac
  6371. ;;
  6372. powerpc64le-*linux*)
  6373. LD="${LD-ld} -m elf32lppclinux"
  6374. ;;
  6375. powerpc64-*linux*)
  6376. LD="${LD-ld} -m elf32ppclinux"
  6377. ;;
  6378. s390x-*linux*)
  6379. LD="${LD-ld} -m elf_s390"
  6380. ;;
  6381. sparc64-*linux*)
  6382. LD="${LD-ld} -m elf32_sparc"
  6383. ;;
  6384. esac
  6385. ;;
  6386. *64-bit*)
  6387. case $host in
  6388. x86_64-*kfreebsd*-gnu)
  6389. LD="${LD-ld} -m elf_x86_64_fbsd"
  6390. ;;
  6391. x86_64-*linux*)
  6392. LD="${LD-ld} -m elf_x86_64"
  6393. ;;
  6394. powerpcle-*linux*|powerpc64le-*linux*)
  6395. LD="${LD-ld} -m elf64lppc"
  6396. ;;
  6397. powerpc-*linux*|powerpc64-*linux*)
  6398. LD="${LD-ld} -m elf64ppc"
  6399. ;;
  6400. s390*-*linux*|s390*-*tpf*)
  6401. LD="${LD-ld} -m elf64_s390"
  6402. ;;
  6403. sparc*-*linux*)
  6404. LD="${LD-ld} -m elf64_sparc"
  6405. ;;
  6406. esac
  6407. ;;
  6408. esac
  6409. fi
  6410. rm -rf conftest*
  6411. ;;
  6412. *-*-sco3.2v5*)
  6413. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6414. SAVE_CFLAGS=$CFLAGS
  6415. CFLAGS="$CFLAGS -belf"
  6416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6417. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6418. if test ${lt_cv_cc_needs_belf+y}
  6419. then :
  6420. printf %s "(cached) " >&6
  6421. else $as_nop
  6422. ac_ext=c
  6423. ac_cpp='$CPP $CPPFLAGS'
  6424. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6425. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6426. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6428. /* end confdefs.h. */
  6429. int
  6430. main (void)
  6431. {
  6432. ;
  6433. return 0;
  6434. }
  6435. _ACEOF
  6436. if ac_fn_c_try_link "$LINENO"
  6437. then :
  6438. lt_cv_cc_needs_belf=yes
  6439. else $as_nop
  6440. lt_cv_cc_needs_belf=no
  6441. fi
  6442. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6443. conftest$ac_exeext conftest.$ac_ext
  6444. ac_ext=c
  6445. ac_cpp='$CPP $CPPFLAGS'
  6446. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6447. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6448. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6449. fi
  6450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6451. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6452. if test yes != "$lt_cv_cc_needs_belf"; then
  6453. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6454. CFLAGS=$SAVE_CFLAGS
  6455. fi
  6456. ;;
  6457. *-*solaris*)
  6458. # Find out what ABI is being produced by ac_compile, and set linker
  6459. # options accordingly.
  6460. echo 'int i;' > conftest.$ac_ext
  6461. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6462. (eval $ac_compile) 2>&5
  6463. ac_status=$?
  6464. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6465. test $ac_status = 0; }; then
  6466. case `/usr/bin/file conftest.o` in
  6467. *64-bit*)
  6468. case $lt_cv_prog_gnu_ld in
  6469. yes*)
  6470. case $host in
  6471. i?86-*-solaris*|x86_64-*-solaris*)
  6472. LD="${LD-ld} -m elf_x86_64"
  6473. ;;
  6474. sparc*-*-solaris*)
  6475. LD="${LD-ld} -m elf64_sparc"
  6476. ;;
  6477. esac
  6478. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6479. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6480. LD=${LD-ld}_sol2
  6481. fi
  6482. ;;
  6483. *)
  6484. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6485. LD="${LD-ld} -64"
  6486. fi
  6487. ;;
  6488. esac
  6489. ;;
  6490. esac
  6491. fi
  6492. rm -rf conftest*
  6493. ;;
  6494. esac
  6495. need_locks=$enable_libtool_lock
  6496. if test -n "$ac_tool_prefix"; then
  6497. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6498. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6500. printf %s "checking for $ac_word... " >&6; }
  6501. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6502. then :
  6503. printf %s "(cached) " >&6
  6504. else $as_nop
  6505. if test -n "$MANIFEST_TOOL"; then
  6506. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6507. else
  6508. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6509. for as_dir in $PATH
  6510. do
  6511. IFS=$as_save_IFS
  6512. case $as_dir in #(((
  6513. '') as_dir=./ ;;
  6514. */) ;;
  6515. *) as_dir=$as_dir/ ;;
  6516. esac
  6517. for ac_exec_ext in '' $ac_executable_extensions; do
  6518. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6519. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6520. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6521. break 2
  6522. fi
  6523. done
  6524. done
  6525. IFS=$as_save_IFS
  6526. fi
  6527. fi
  6528. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6529. if test -n "$MANIFEST_TOOL"; then
  6530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6531. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6532. else
  6533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6534. printf "%s\n" "no" >&6; }
  6535. fi
  6536. fi
  6537. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6538. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6539. # Extract the first word of "mt", so it can be a program name with args.
  6540. set dummy mt; ac_word=$2
  6541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6542. printf %s "checking for $ac_word... " >&6; }
  6543. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6544. then :
  6545. printf %s "(cached) " >&6
  6546. else $as_nop
  6547. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6548. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6549. else
  6550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6551. for as_dir in $PATH
  6552. do
  6553. IFS=$as_save_IFS
  6554. case $as_dir in #(((
  6555. '') as_dir=./ ;;
  6556. */) ;;
  6557. *) as_dir=$as_dir/ ;;
  6558. esac
  6559. for ac_exec_ext in '' $ac_executable_extensions; do
  6560. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6561. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6562. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6563. break 2
  6564. fi
  6565. done
  6566. done
  6567. IFS=$as_save_IFS
  6568. fi
  6569. fi
  6570. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6571. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6573. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6574. else
  6575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6576. printf "%s\n" "no" >&6; }
  6577. fi
  6578. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6579. MANIFEST_TOOL=":"
  6580. else
  6581. case $cross_compiling:$ac_tool_warned in
  6582. yes:)
  6583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6584. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6585. ac_tool_warned=yes ;;
  6586. esac
  6587. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6588. fi
  6589. else
  6590. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6591. fi
  6592. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6594. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6595. if test ${lt_cv_path_mainfest_tool+y}
  6596. then :
  6597. printf %s "(cached) " >&6
  6598. else $as_nop
  6599. lt_cv_path_mainfest_tool=no
  6600. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6601. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6602. cat conftest.err >&5
  6603. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6604. lt_cv_path_mainfest_tool=yes
  6605. fi
  6606. rm -f conftest*
  6607. fi
  6608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6609. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6610. if test yes != "$lt_cv_path_mainfest_tool"; then
  6611. MANIFEST_TOOL=:
  6612. fi
  6613. case $host_os in
  6614. rhapsody* | darwin*)
  6615. if test -n "$ac_tool_prefix"; then
  6616. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6617. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6619. printf %s "checking for $ac_word... " >&6; }
  6620. if test ${ac_cv_prog_DSYMUTIL+y}
  6621. then :
  6622. printf %s "(cached) " >&6
  6623. else $as_nop
  6624. if test -n "$DSYMUTIL"; then
  6625. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6626. else
  6627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6628. for as_dir in $PATH
  6629. do
  6630. IFS=$as_save_IFS
  6631. case $as_dir in #(((
  6632. '') as_dir=./ ;;
  6633. */) ;;
  6634. *) as_dir=$as_dir/ ;;
  6635. esac
  6636. for ac_exec_ext in '' $ac_executable_extensions; do
  6637. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6638. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6639. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6640. break 2
  6641. fi
  6642. done
  6643. done
  6644. IFS=$as_save_IFS
  6645. fi
  6646. fi
  6647. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6648. if test -n "$DSYMUTIL"; then
  6649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6650. printf "%s\n" "$DSYMUTIL" >&6; }
  6651. else
  6652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6653. printf "%s\n" "no" >&6; }
  6654. fi
  6655. fi
  6656. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6657. ac_ct_DSYMUTIL=$DSYMUTIL
  6658. # Extract the first word of "dsymutil", so it can be a program name with args.
  6659. set dummy dsymutil; ac_word=$2
  6660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6661. printf %s "checking for $ac_word... " >&6; }
  6662. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6663. then :
  6664. printf %s "(cached) " >&6
  6665. else $as_nop
  6666. if test -n "$ac_ct_DSYMUTIL"; then
  6667. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6668. else
  6669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6670. for as_dir in $PATH
  6671. do
  6672. IFS=$as_save_IFS
  6673. case $as_dir in #(((
  6674. '') as_dir=./ ;;
  6675. */) ;;
  6676. *) as_dir=$as_dir/ ;;
  6677. esac
  6678. for ac_exec_ext in '' $ac_executable_extensions; do
  6679. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6680. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6681. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6682. break 2
  6683. fi
  6684. done
  6685. done
  6686. IFS=$as_save_IFS
  6687. fi
  6688. fi
  6689. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6690. if test -n "$ac_ct_DSYMUTIL"; then
  6691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6692. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6693. else
  6694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6695. printf "%s\n" "no" >&6; }
  6696. fi
  6697. if test "x$ac_ct_DSYMUTIL" = x; then
  6698. DSYMUTIL=":"
  6699. else
  6700. case $cross_compiling:$ac_tool_warned in
  6701. yes:)
  6702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6703. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6704. ac_tool_warned=yes ;;
  6705. esac
  6706. DSYMUTIL=$ac_ct_DSYMUTIL
  6707. fi
  6708. else
  6709. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6710. fi
  6711. if test -n "$ac_tool_prefix"; then
  6712. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6713. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6715. printf %s "checking for $ac_word... " >&6; }
  6716. if test ${ac_cv_prog_NMEDIT+y}
  6717. then :
  6718. printf %s "(cached) " >&6
  6719. else $as_nop
  6720. if test -n "$NMEDIT"; then
  6721. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6722. else
  6723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6724. for as_dir in $PATH
  6725. do
  6726. IFS=$as_save_IFS
  6727. case $as_dir in #(((
  6728. '') as_dir=./ ;;
  6729. */) ;;
  6730. *) as_dir=$as_dir/ ;;
  6731. esac
  6732. for ac_exec_ext in '' $ac_executable_extensions; do
  6733. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6734. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6735. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6736. break 2
  6737. fi
  6738. done
  6739. done
  6740. IFS=$as_save_IFS
  6741. fi
  6742. fi
  6743. NMEDIT=$ac_cv_prog_NMEDIT
  6744. if test -n "$NMEDIT"; then
  6745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6746. printf "%s\n" "$NMEDIT" >&6; }
  6747. else
  6748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6749. printf "%s\n" "no" >&6; }
  6750. fi
  6751. fi
  6752. if test -z "$ac_cv_prog_NMEDIT"; then
  6753. ac_ct_NMEDIT=$NMEDIT
  6754. # Extract the first word of "nmedit", so it can be a program name with args.
  6755. set dummy nmedit; ac_word=$2
  6756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6757. printf %s "checking for $ac_word... " >&6; }
  6758. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6759. then :
  6760. printf %s "(cached) " >&6
  6761. else $as_nop
  6762. if test -n "$ac_ct_NMEDIT"; then
  6763. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6764. else
  6765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6766. for as_dir in $PATH
  6767. do
  6768. IFS=$as_save_IFS
  6769. case $as_dir in #(((
  6770. '') as_dir=./ ;;
  6771. */) ;;
  6772. *) as_dir=$as_dir/ ;;
  6773. esac
  6774. for ac_exec_ext in '' $ac_executable_extensions; do
  6775. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6776. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6777. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6778. break 2
  6779. fi
  6780. done
  6781. done
  6782. IFS=$as_save_IFS
  6783. fi
  6784. fi
  6785. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6786. if test -n "$ac_ct_NMEDIT"; then
  6787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6788. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6789. else
  6790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6791. printf "%s\n" "no" >&6; }
  6792. fi
  6793. if test "x$ac_ct_NMEDIT" = x; then
  6794. NMEDIT=":"
  6795. else
  6796. case $cross_compiling:$ac_tool_warned in
  6797. yes:)
  6798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6799. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6800. ac_tool_warned=yes ;;
  6801. esac
  6802. NMEDIT=$ac_ct_NMEDIT
  6803. fi
  6804. else
  6805. NMEDIT="$ac_cv_prog_NMEDIT"
  6806. fi
  6807. if test -n "$ac_tool_prefix"; then
  6808. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6809. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6811. printf %s "checking for $ac_word... " >&6; }
  6812. if test ${ac_cv_prog_LIPO+y}
  6813. then :
  6814. printf %s "(cached) " >&6
  6815. else $as_nop
  6816. if test -n "$LIPO"; then
  6817. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6818. else
  6819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6820. for as_dir in $PATH
  6821. do
  6822. IFS=$as_save_IFS
  6823. case $as_dir in #(((
  6824. '') as_dir=./ ;;
  6825. */) ;;
  6826. *) as_dir=$as_dir/ ;;
  6827. esac
  6828. for ac_exec_ext in '' $ac_executable_extensions; do
  6829. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6830. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6831. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6832. break 2
  6833. fi
  6834. done
  6835. done
  6836. IFS=$as_save_IFS
  6837. fi
  6838. fi
  6839. LIPO=$ac_cv_prog_LIPO
  6840. if test -n "$LIPO"; then
  6841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6842. printf "%s\n" "$LIPO" >&6; }
  6843. else
  6844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6845. printf "%s\n" "no" >&6; }
  6846. fi
  6847. fi
  6848. if test -z "$ac_cv_prog_LIPO"; then
  6849. ac_ct_LIPO=$LIPO
  6850. # Extract the first word of "lipo", so it can be a program name with args.
  6851. set dummy lipo; ac_word=$2
  6852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6853. printf %s "checking for $ac_word... " >&6; }
  6854. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6855. then :
  6856. printf %s "(cached) " >&6
  6857. else $as_nop
  6858. if test -n "$ac_ct_LIPO"; then
  6859. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6860. else
  6861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6862. for as_dir in $PATH
  6863. do
  6864. IFS=$as_save_IFS
  6865. case $as_dir in #(((
  6866. '') as_dir=./ ;;
  6867. */) ;;
  6868. *) as_dir=$as_dir/ ;;
  6869. esac
  6870. for ac_exec_ext in '' $ac_executable_extensions; do
  6871. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6872. ac_cv_prog_ac_ct_LIPO="lipo"
  6873. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6874. break 2
  6875. fi
  6876. done
  6877. done
  6878. IFS=$as_save_IFS
  6879. fi
  6880. fi
  6881. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6882. if test -n "$ac_ct_LIPO"; then
  6883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6884. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6885. else
  6886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6887. printf "%s\n" "no" >&6; }
  6888. fi
  6889. if test "x$ac_ct_LIPO" = x; then
  6890. LIPO=":"
  6891. else
  6892. case $cross_compiling:$ac_tool_warned in
  6893. yes:)
  6894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6895. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6896. ac_tool_warned=yes ;;
  6897. esac
  6898. LIPO=$ac_ct_LIPO
  6899. fi
  6900. else
  6901. LIPO="$ac_cv_prog_LIPO"
  6902. fi
  6903. if test -n "$ac_tool_prefix"; then
  6904. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6905. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6907. printf %s "checking for $ac_word... " >&6; }
  6908. if test ${ac_cv_prog_OTOOL+y}
  6909. then :
  6910. printf %s "(cached) " >&6
  6911. else $as_nop
  6912. if test -n "$OTOOL"; then
  6913. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6914. else
  6915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6916. for as_dir in $PATH
  6917. do
  6918. IFS=$as_save_IFS
  6919. case $as_dir in #(((
  6920. '') as_dir=./ ;;
  6921. */) ;;
  6922. *) as_dir=$as_dir/ ;;
  6923. esac
  6924. for ac_exec_ext in '' $ac_executable_extensions; do
  6925. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6926. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6927. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6928. break 2
  6929. fi
  6930. done
  6931. done
  6932. IFS=$as_save_IFS
  6933. fi
  6934. fi
  6935. OTOOL=$ac_cv_prog_OTOOL
  6936. if test -n "$OTOOL"; then
  6937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6938. printf "%s\n" "$OTOOL" >&6; }
  6939. else
  6940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6941. printf "%s\n" "no" >&6; }
  6942. fi
  6943. fi
  6944. if test -z "$ac_cv_prog_OTOOL"; then
  6945. ac_ct_OTOOL=$OTOOL
  6946. # Extract the first word of "otool", so it can be a program name with args.
  6947. set dummy otool; ac_word=$2
  6948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6949. printf %s "checking for $ac_word... " >&6; }
  6950. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6951. then :
  6952. printf %s "(cached) " >&6
  6953. else $as_nop
  6954. if test -n "$ac_ct_OTOOL"; then
  6955. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6956. else
  6957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6958. for as_dir in $PATH
  6959. do
  6960. IFS=$as_save_IFS
  6961. case $as_dir in #(((
  6962. '') as_dir=./ ;;
  6963. */) ;;
  6964. *) as_dir=$as_dir/ ;;
  6965. esac
  6966. for ac_exec_ext in '' $ac_executable_extensions; do
  6967. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6968. ac_cv_prog_ac_ct_OTOOL="otool"
  6969. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6970. break 2
  6971. fi
  6972. done
  6973. done
  6974. IFS=$as_save_IFS
  6975. fi
  6976. fi
  6977. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6978. if test -n "$ac_ct_OTOOL"; then
  6979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6980. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6981. else
  6982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6983. printf "%s\n" "no" >&6; }
  6984. fi
  6985. if test "x$ac_ct_OTOOL" = x; then
  6986. OTOOL=":"
  6987. else
  6988. case $cross_compiling:$ac_tool_warned in
  6989. yes:)
  6990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6991. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6992. ac_tool_warned=yes ;;
  6993. esac
  6994. OTOOL=$ac_ct_OTOOL
  6995. fi
  6996. else
  6997. OTOOL="$ac_cv_prog_OTOOL"
  6998. fi
  6999. if test -n "$ac_tool_prefix"; then
  7000. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7001. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7003. printf %s "checking for $ac_word... " >&6; }
  7004. if test ${ac_cv_prog_OTOOL64+y}
  7005. then :
  7006. printf %s "(cached) " >&6
  7007. else $as_nop
  7008. if test -n "$OTOOL64"; then
  7009. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7010. else
  7011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7012. for as_dir in $PATH
  7013. do
  7014. IFS=$as_save_IFS
  7015. case $as_dir in #(((
  7016. '') as_dir=./ ;;
  7017. */) ;;
  7018. *) as_dir=$as_dir/ ;;
  7019. esac
  7020. for ac_exec_ext in '' $ac_executable_extensions; do
  7021. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7022. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7023. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7024. break 2
  7025. fi
  7026. done
  7027. done
  7028. IFS=$as_save_IFS
  7029. fi
  7030. fi
  7031. OTOOL64=$ac_cv_prog_OTOOL64
  7032. if test -n "$OTOOL64"; then
  7033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7034. printf "%s\n" "$OTOOL64" >&6; }
  7035. else
  7036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7037. printf "%s\n" "no" >&6; }
  7038. fi
  7039. fi
  7040. if test -z "$ac_cv_prog_OTOOL64"; then
  7041. ac_ct_OTOOL64=$OTOOL64
  7042. # Extract the first word of "otool64", so it can be a program name with args.
  7043. set dummy otool64; ac_word=$2
  7044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7045. printf %s "checking for $ac_word... " >&6; }
  7046. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7047. then :
  7048. printf %s "(cached) " >&6
  7049. else $as_nop
  7050. if test -n "$ac_ct_OTOOL64"; then
  7051. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7052. else
  7053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7054. for as_dir in $PATH
  7055. do
  7056. IFS=$as_save_IFS
  7057. case $as_dir in #(((
  7058. '') as_dir=./ ;;
  7059. */) ;;
  7060. *) as_dir=$as_dir/ ;;
  7061. esac
  7062. for ac_exec_ext in '' $ac_executable_extensions; do
  7063. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7064. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7065. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7066. break 2
  7067. fi
  7068. done
  7069. done
  7070. IFS=$as_save_IFS
  7071. fi
  7072. fi
  7073. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7074. if test -n "$ac_ct_OTOOL64"; then
  7075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7076. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7077. else
  7078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7079. printf "%s\n" "no" >&6; }
  7080. fi
  7081. if test "x$ac_ct_OTOOL64" = x; then
  7082. OTOOL64=":"
  7083. else
  7084. case $cross_compiling:$ac_tool_warned in
  7085. yes:)
  7086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7087. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7088. ac_tool_warned=yes ;;
  7089. esac
  7090. OTOOL64=$ac_ct_OTOOL64
  7091. fi
  7092. else
  7093. OTOOL64="$ac_cv_prog_OTOOL64"
  7094. fi
  7095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7096. printf %s "checking for -single_module linker flag... " >&6; }
  7097. if test ${lt_cv_apple_cc_single_mod+y}
  7098. then :
  7099. printf %s "(cached) " >&6
  7100. else $as_nop
  7101. lt_cv_apple_cc_single_mod=no
  7102. if test -z "$LT_MULTI_MODULE"; then
  7103. # By default we will add the -single_module flag. You can override
  7104. # by either setting the environment variable LT_MULTI_MODULE
  7105. # non-empty at configure time, or by adding -multi_module to the
  7106. # link flags.
  7107. rm -rf libconftest.dylib*
  7108. echo "int foo(void){return 1;}" > conftest.c
  7109. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7110. -dynamiclib -Wl,-single_module conftest.c" >&5
  7111. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7112. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7113. _lt_result=$?
  7114. # If there is a non-empty error log, and "single_module"
  7115. # appears in it, assume the flag caused a linker warning
  7116. if test -s conftest.err && $GREP single_module conftest.err; then
  7117. cat conftest.err >&5
  7118. # Otherwise, if the output was created with a 0 exit code from
  7119. # the compiler, it worked.
  7120. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7121. lt_cv_apple_cc_single_mod=yes
  7122. else
  7123. cat conftest.err >&5
  7124. fi
  7125. rm -rf libconftest.dylib*
  7126. rm -f conftest.*
  7127. fi
  7128. fi
  7129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7130. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7132. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7133. if test ${lt_cv_ld_exported_symbols_list+y}
  7134. then :
  7135. printf %s "(cached) " >&6
  7136. else $as_nop
  7137. lt_cv_ld_exported_symbols_list=no
  7138. save_LDFLAGS=$LDFLAGS
  7139. echo "_main" > conftest.sym
  7140. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7142. /* end confdefs.h. */
  7143. int
  7144. main (void)
  7145. {
  7146. ;
  7147. return 0;
  7148. }
  7149. _ACEOF
  7150. if ac_fn_c_try_link "$LINENO"
  7151. then :
  7152. lt_cv_ld_exported_symbols_list=yes
  7153. else $as_nop
  7154. lt_cv_ld_exported_symbols_list=no
  7155. fi
  7156. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7157. conftest$ac_exeext conftest.$ac_ext
  7158. LDFLAGS=$save_LDFLAGS
  7159. fi
  7160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7161. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7163. printf %s "checking for -force_load linker flag... " >&6; }
  7164. if test ${lt_cv_ld_force_load+y}
  7165. then :
  7166. printf %s "(cached) " >&6
  7167. else $as_nop
  7168. lt_cv_ld_force_load=no
  7169. cat > conftest.c << _LT_EOF
  7170. int forced_loaded() { return 2;}
  7171. _LT_EOF
  7172. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7173. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7174. echo "$AR cru libconftest.a conftest.o" >&5
  7175. $AR cru libconftest.a conftest.o 2>&5
  7176. echo "$RANLIB libconftest.a" >&5
  7177. $RANLIB libconftest.a 2>&5
  7178. cat > conftest.c << _LT_EOF
  7179. int main() { return 0;}
  7180. _LT_EOF
  7181. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7182. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7183. _lt_result=$?
  7184. if test -s conftest.err && $GREP force_load conftest.err; then
  7185. cat conftest.err >&5
  7186. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7187. lt_cv_ld_force_load=yes
  7188. else
  7189. cat conftest.err >&5
  7190. fi
  7191. rm -f conftest.err libconftest.a conftest conftest.c
  7192. rm -rf conftest.dSYM
  7193. fi
  7194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7195. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7196. case $host_os in
  7197. rhapsody* | darwin1.[012])
  7198. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7199. darwin1.*)
  7200. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7201. darwin*)
  7202. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7203. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7204. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7205. *)
  7206. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7207. esac
  7208. ;;
  7209. esac
  7210. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7211. _lt_dar_single_mod='$single_module'
  7212. fi
  7213. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7214. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7215. else
  7216. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7217. fi
  7218. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7219. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7220. else
  7221. _lt_dsymutil=
  7222. fi
  7223. ;;
  7224. esac
  7225. # func_munge_path_list VARIABLE PATH
  7226. # -----------------------------------
  7227. # VARIABLE is name of variable containing _space_ separated list of
  7228. # directories to be munged by the contents of PATH, which is string
  7229. # having a format:
  7230. # "DIR[:DIR]:"
  7231. # string "DIR[ DIR]" will be prepended to VARIABLE
  7232. # ":DIR[:DIR]"
  7233. # string "DIR[ DIR]" will be appended to VARIABLE
  7234. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7235. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7236. # "DIRA[ DIRA]" will be appended to VARIABLE
  7237. # "DIR[:DIR]"
  7238. # VARIABLE will be replaced by "DIR[ DIR]"
  7239. func_munge_path_list ()
  7240. {
  7241. case x$2 in
  7242. x)
  7243. ;;
  7244. *:)
  7245. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7246. ;;
  7247. x:*)
  7248. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7249. ;;
  7250. *::*)
  7251. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7252. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7253. ;;
  7254. *)
  7255. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7256. ;;
  7257. esac
  7258. }
  7259. ac_header= ac_cache=
  7260. for ac_item in $ac_header_c_list
  7261. do
  7262. if test $ac_cache; then
  7263. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7264. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7265. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7266. fi
  7267. ac_header= ac_cache=
  7268. elif test $ac_header; then
  7269. ac_cache=$ac_item
  7270. else
  7271. ac_header=$ac_item
  7272. fi
  7273. done
  7274. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7275. then :
  7276. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7277. fi
  7278. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7279. "
  7280. if test "x$ac_cv_header_dlfcn_h" = xyes
  7281. then :
  7282. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7283. fi
  7284. # Set options
  7285. enable_win32_dll=yes
  7286. case $host in
  7287. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7288. if test -n "$ac_tool_prefix"; then
  7289. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7290. set dummy ${ac_tool_prefix}as; ac_word=$2
  7291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7292. printf %s "checking for $ac_word... " >&6; }
  7293. if test ${ac_cv_prog_AS+y}
  7294. then :
  7295. printf %s "(cached) " >&6
  7296. else $as_nop
  7297. if test -n "$AS"; then
  7298. ac_cv_prog_AS="$AS" # Let the user override the test.
  7299. else
  7300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7301. for as_dir in $PATH
  7302. do
  7303. IFS=$as_save_IFS
  7304. case $as_dir in #(((
  7305. '') as_dir=./ ;;
  7306. */) ;;
  7307. *) as_dir=$as_dir/ ;;
  7308. esac
  7309. for ac_exec_ext in '' $ac_executable_extensions; do
  7310. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7311. ac_cv_prog_AS="${ac_tool_prefix}as"
  7312. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7313. break 2
  7314. fi
  7315. done
  7316. done
  7317. IFS=$as_save_IFS
  7318. fi
  7319. fi
  7320. AS=$ac_cv_prog_AS
  7321. if test -n "$AS"; then
  7322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7323. printf "%s\n" "$AS" >&6; }
  7324. else
  7325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7326. printf "%s\n" "no" >&6; }
  7327. fi
  7328. fi
  7329. if test -z "$ac_cv_prog_AS"; then
  7330. ac_ct_AS=$AS
  7331. # Extract the first word of "as", so it can be a program name with args.
  7332. set dummy as; ac_word=$2
  7333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7334. printf %s "checking for $ac_word... " >&6; }
  7335. if test ${ac_cv_prog_ac_ct_AS+y}
  7336. then :
  7337. printf %s "(cached) " >&6
  7338. else $as_nop
  7339. if test -n "$ac_ct_AS"; then
  7340. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7341. else
  7342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7343. for as_dir in $PATH
  7344. do
  7345. IFS=$as_save_IFS
  7346. case $as_dir in #(((
  7347. '') as_dir=./ ;;
  7348. */) ;;
  7349. *) as_dir=$as_dir/ ;;
  7350. esac
  7351. for ac_exec_ext in '' $ac_executable_extensions; do
  7352. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7353. ac_cv_prog_ac_ct_AS="as"
  7354. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7355. break 2
  7356. fi
  7357. done
  7358. done
  7359. IFS=$as_save_IFS
  7360. fi
  7361. fi
  7362. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7363. if test -n "$ac_ct_AS"; then
  7364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7365. printf "%s\n" "$ac_ct_AS" >&6; }
  7366. else
  7367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7368. printf "%s\n" "no" >&6; }
  7369. fi
  7370. if test "x$ac_ct_AS" = x; then
  7371. AS="false"
  7372. else
  7373. case $cross_compiling:$ac_tool_warned in
  7374. yes:)
  7375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7376. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7377. ac_tool_warned=yes ;;
  7378. esac
  7379. AS=$ac_ct_AS
  7380. fi
  7381. else
  7382. AS="$ac_cv_prog_AS"
  7383. fi
  7384. if test -n "$ac_tool_prefix"; then
  7385. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7386. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7388. printf %s "checking for $ac_word... " >&6; }
  7389. if test ${ac_cv_prog_DLLTOOL+y}
  7390. then :
  7391. printf %s "(cached) " >&6
  7392. else $as_nop
  7393. if test -n "$DLLTOOL"; then
  7394. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7395. else
  7396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7397. for as_dir in $PATH
  7398. do
  7399. IFS=$as_save_IFS
  7400. case $as_dir in #(((
  7401. '') as_dir=./ ;;
  7402. */) ;;
  7403. *) as_dir=$as_dir/ ;;
  7404. esac
  7405. for ac_exec_ext in '' $ac_executable_extensions; do
  7406. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7407. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7408. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7409. break 2
  7410. fi
  7411. done
  7412. done
  7413. IFS=$as_save_IFS
  7414. fi
  7415. fi
  7416. DLLTOOL=$ac_cv_prog_DLLTOOL
  7417. if test -n "$DLLTOOL"; then
  7418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7419. printf "%s\n" "$DLLTOOL" >&6; }
  7420. else
  7421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7422. printf "%s\n" "no" >&6; }
  7423. fi
  7424. fi
  7425. if test -z "$ac_cv_prog_DLLTOOL"; then
  7426. ac_ct_DLLTOOL=$DLLTOOL
  7427. # Extract the first word of "dlltool", so it can be a program name with args.
  7428. set dummy dlltool; ac_word=$2
  7429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7430. printf %s "checking for $ac_word... " >&6; }
  7431. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7432. then :
  7433. printf %s "(cached) " >&6
  7434. else $as_nop
  7435. if test -n "$ac_ct_DLLTOOL"; then
  7436. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7437. else
  7438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7439. for as_dir in $PATH
  7440. do
  7441. IFS=$as_save_IFS
  7442. case $as_dir in #(((
  7443. '') as_dir=./ ;;
  7444. */) ;;
  7445. *) as_dir=$as_dir/ ;;
  7446. esac
  7447. for ac_exec_ext in '' $ac_executable_extensions; do
  7448. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7449. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7450. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7451. break 2
  7452. fi
  7453. done
  7454. done
  7455. IFS=$as_save_IFS
  7456. fi
  7457. fi
  7458. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7459. if test -n "$ac_ct_DLLTOOL"; then
  7460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7461. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7462. else
  7463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7464. printf "%s\n" "no" >&6; }
  7465. fi
  7466. if test "x$ac_ct_DLLTOOL" = x; then
  7467. DLLTOOL="false"
  7468. else
  7469. case $cross_compiling:$ac_tool_warned in
  7470. yes:)
  7471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7472. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7473. ac_tool_warned=yes ;;
  7474. esac
  7475. DLLTOOL=$ac_ct_DLLTOOL
  7476. fi
  7477. else
  7478. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7479. fi
  7480. if test -n "$ac_tool_prefix"; then
  7481. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7482. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7484. printf %s "checking for $ac_word... " >&6; }
  7485. if test ${ac_cv_prog_OBJDUMP+y}
  7486. then :
  7487. printf %s "(cached) " >&6
  7488. else $as_nop
  7489. if test -n "$OBJDUMP"; then
  7490. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7491. else
  7492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7493. for as_dir in $PATH
  7494. do
  7495. IFS=$as_save_IFS
  7496. case $as_dir in #(((
  7497. '') as_dir=./ ;;
  7498. */) ;;
  7499. *) as_dir=$as_dir/ ;;
  7500. esac
  7501. for ac_exec_ext in '' $ac_executable_extensions; do
  7502. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7503. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7504. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7505. break 2
  7506. fi
  7507. done
  7508. done
  7509. IFS=$as_save_IFS
  7510. fi
  7511. fi
  7512. OBJDUMP=$ac_cv_prog_OBJDUMP
  7513. if test -n "$OBJDUMP"; then
  7514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7515. printf "%s\n" "$OBJDUMP" >&6; }
  7516. else
  7517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7518. printf "%s\n" "no" >&6; }
  7519. fi
  7520. fi
  7521. if test -z "$ac_cv_prog_OBJDUMP"; then
  7522. ac_ct_OBJDUMP=$OBJDUMP
  7523. # Extract the first word of "objdump", so it can be a program name with args.
  7524. set dummy objdump; ac_word=$2
  7525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7526. printf %s "checking for $ac_word... " >&6; }
  7527. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7528. then :
  7529. printf %s "(cached) " >&6
  7530. else $as_nop
  7531. if test -n "$ac_ct_OBJDUMP"; then
  7532. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7533. else
  7534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7535. for as_dir in $PATH
  7536. do
  7537. IFS=$as_save_IFS
  7538. case $as_dir in #(((
  7539. '') as_dir=./ ;;
  7540. */) ;;
  7541. *) as_dir=$as_dir/ ;;
  7542. esac
  7543. for ac_exec_ext in '' $ac_executable_extensions; do
  7544. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7545. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7546. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7547. break 2
  7548. fi
  7549. done
  7550. done
  7551. IFS=$as_save_IFS
  7552. fi
  7553. fi
  7554. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7555. if test -n "$ac_ct_OBJDUMP"; then
  7556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7557. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7558. else
  7559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7560. printf "%s\n" "no" >&6; }
  7561. fi
  7562. if test "x$ac_ct_OBJDUMP" = x; then
  7563. OBJDUMP="false"
  7564. else
  7565. case $cross_compiling:$ac_tool_warned in
  7566. yes:)
  7567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7568. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7569. ac_tool_warned=yes ;;
  7570. esac
  7571. OBJDUMP=$ac_ct_OBJDUMP
  7572. fi
  7573. else
  7574. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7575. fi
  7576. ;;
  7577. esac
  7578. test -z "$AS" && AS=as
  7579. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7580. test -z "$OBJDUMP" && OBJDUMP=objdump
  7581. enable_dlopen=no
  7582. # Check whether --enable-shared was given.
  7583. if test ${enable_shared+y}
  7584. then :
  7585. enableval=$enable_shared; p=${PACKAGE-default}
  7586. case $enableval in
  7587. yes) enable_shared=yes ;;
  7588. no) enable_shared=no ;;
  7589. *)
  7590. enable_shared=no
  7591. # Look at the argument we got. We use all the common list separators.
  7592. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7593. for pkg in $enableval; do
  7594. IFS=$lt_save_ifs
  7595. if test "X$pkg" = "X$p"; then
  7596. enable_shared=yes
  7597. fi
  7598. done
  7599. IFS=$lt_save_ifs
  7600. ;;
  7601. esac
  7602. else $as_nop
  7603. enable_shared=yes
  7604. fi
  7605. # Check whether --enable-static was given.
  7606. if test ${enable_static+y}
  7607. then :
  7608. enableval=$enable_static; p=${PACKAGE-default}
  7609. case $enableval in
  7610. yes) enable_static=yes ;;
  7611. no) enable_static=no ;;
  7612. *)
  7613. enable_static=no
  7614. # Look at the argument we got. We use all the common list separators.
  7615. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7616. for pkg in $enableval; do
  7617. IFS=$lt_save_ifs
  7618. if test "X$pkg" = "X$p"; then
  7619. enable_static=yes
  7620. fi
  7621. done
  7622. IFS=$lt_save_ifs
  7623. ;;
  7624. esac
  7625. else $as_nop
  7626. enable_static=yes
  7627. fi
  7628. # Check whether --with-pic was given.
  7629. if test ${with_pic+y}
  7630. then :
  7631. withval=$with_pic; lt_p=${PACKAGE-default}
  7632. case $withval in
  7633. yes|no) pic_mode=$withval ;;
  7634. *)
  7635. pic_mode=default
  7636. # Look at the argument we got. We use all the common list separators.
  7637. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7638. for lt_pkg in $withval; do
  7639. IFS=$lt_save_ifs
  7640. if test "X$lt_pkg" = "X$lt_p"; then
  7641. pic_mode=yes
  7642. fi
  7643. done
  7644. IFS=$lt_save_ifs
  7645. ;;
  7646. esac
  7647. else $as_nop
  7648. pic_mode=default
  7649. fi
  7650. # Check whether --enable-fast-install was given.
  7651. if test ${enable_fast_install+y}
  7652. then :
  7653. enableval=$enable_fast_install; p=${PACKAGE-default}
  7654. case $enableval in
  7655. yes) enable_fast_install=yes ;;
  7656. no) enable_fast_install=no ;;
  7657. *)
  7658. enable_fast_install=no
  7659. # Look at the argument we got. We use all the common list separators.
  7660. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7661. for pkg in $enableval; do
  7662. IFS=$lt_save_ifs
  7663. if test "X$pkg" = "X$p"; then
  7664. enable_fast_install=yes
  7665. fi
  7666. done
  7667. IFS=$lt_save_ifs
  7668. ;;
  7669. esac
  7670. else $as_nop
  7671. enable_fast_install=yes
  7672. fi
  7673. shared_archive_member_spec=
  7674. case $host,$enable_shared in
  7675. power*-*-aix[5-9]*,yes)
  7676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7677. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7678. # Check whether --with-aix-soname was given.
  7679. if test ${with_aix_soname+y}
  7680. then :
  7681. withval=$with_aix_soname; case $withval in
  7682. aix|svr4|both)
  7683. ;;
  7684. *)
  7685. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7686. ;;
  7687. esac
  7688. lt_cv_with_aix_soname=$with_aix_soname
  7689. else $as_nop
  7690. if test ${lt_cv_with_aix_soname+y}
  7691. then :
  7692. printf %s "(cached) " >&6
  7693. else $as_nop
  7694. lt_cv_with_aix_soname=aix
  7695. fi
  7696. with_aix_soname=$lt_cv_with_aix_soname
  7697. fi
  7698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7699. printf "%s\n" "$with_aix_soname" >&6; }
  7700. if test aix != "$with_aix_soname"; then
  7701. # For the AIX way of multilib, we name the shared archive member
  7702. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7703. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7704. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7705. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7706. if test 64 = "${OBJECT_MODE-32}"; then
  7707. shared_archive_member_spec=shr_64
  7708. else
  7709. shared_archive_member_spec=shr
  7710. fi
  7711. fi
  7712. ;;
  7713. *)
  7714. with_aix_soname=aix
  7715. ;;
  7716. esac
  7717. # This can be used to rebuild libtool when needed
  7718. LIBTOOL_DEPS=$ltmain
  7719. # Always use our own libtool.
  7720. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7721. test -z "$LN_S" && LN_S="ln -s"
  7722. if test -n "${ZSH_VERSION+set}"; then
  7723. setopt NO_GLOB_SUBST
  7724. fi
  7725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7726. printf %s "checking for objdir... " >&6; }
  7727. if test ${lt_cv_objdir+y}
  7728. then :
  7729. printf %s "(cached) " >&6
  7730. else $as_nop
  7731. rm -f .libs 2>/dev/null
  7732. mkdir .libs 2>/dev/null
  7733. if test -d .libs; then
  7734. lt_cv_objdir=.libs
  7735. else
  7736. # MS-DOS does not allow filenames that begin with a dot.
  7737. lt_cv_objdir=_libs
  7738. fi
  7739. rmdir .libs 2>/dev/null
  7740. fi
  7741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7742. printf "%s\n" "$lt_cv_objdir" >&6; }
  7743. objdir=$lt_cv_objdir
  7744. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7745. case $host_os in
  7746. aix3*)
  7747. # AIX sometimes has problems with the GCC collect2 program. For some
  7748. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7749. # vanish in a puff of smoke.
  7750. if test set != "${COLLECT_NAMES+set}"; then
  7751. COLLECT_NAMES=
  7752. export COLLECT_NAMES
  7753. fi
  7754. ;;
  7755. esac
  7756. # Global variables:
  7757. ofile=libtool
  7758. can_build_shared=yes
  7759. # All known linkers require a '.a' archive for static linking (except MSVC,
  7760. # which needs '.lib').
  7761. libext=a
  7762. with_gnu_ld=$lt_cv_prog_gnu_ld
  7763. old_CC=$CC
  7764. old_CFLAGS=$CFLAGS
  7765. # Set sane defaults for various variables
  7766. test -z "$CC" && CC=cc
  7767. test -z "$LTCC" && LTCC=$CC
  7768. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7769. test -z "$LD" && LD=ld
  7770. test -z "$ac_objext" && ac_objext=o
  7771. func_cc_basename $compiler
  7772. cc_basename=$func_cc_basename_result
  7773. # Only perform the check for file, if the check method requires it
  7774. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7775. case $deplibs_check_method in
  7776. file_magic*)
  7777. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7779. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7780. if test ${lt_cv_path_MAGIC_CMD+y}
  7781. then :
  7782. printf %s "(cached) " >&6
  7783. else $as_nop
  7784. case $MAGIC_CMD in
  7785. [\\/*] | ?:[\\/]*)
  7786. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7787. ;;
  7788. *)
  7789. lt_save_MAGIC_CMD=$MAGIC_CMD
  7790. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7791. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7792. for ac_dir in $ac_dummy; do
  7793. IFS=$lt_save_ifs
  7794. test -z "$ac_dir" && ac_dir=.
  7795. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7796. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7797. if test -n "$file_magic_test_file"; then
  7798. case $deplibs_check_method in
  7799. "file_magic "*)
  7800. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7801. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7802. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7803. $EGREP "$file_magic_regex" > /dev/null; then
  7804. :
  7805. else
  7806. cat <<_LT_EOF 1>&2
  7807. *** Warning: the command libtool uses to detect shared libraries,
  7808. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7809. *** The result is that libtool may fail to recognize shared libraries
  7810. *** as such. This will affect the creation of libtool libraries that
  7811. *** depend on shared libraries, but programs linked with such libtool
  7812. *** libraries will work regardless of this problem. Nevertheless, you
  7813. *** may want to report the problem to your system manager and/or to
  7814. *** bug-libtool@gnu.org
  7815. _LT_EOF
  7816. fi ;;
  7817. esac
  7818. fi
  7819. break
  7820. fi
  7821. done
  7822. IFS=$lt_save_ifs
  7823. MAGIC_CMD=$lt_save_MAGIC_CMD
  7824. ;;
  7825. esac
  7826. fi
  7827. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7828. if test -n "$MAGIC_CMD"; then
  7829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7830. printf "%s\n" "$MAGIC_CMD" >&6; }
  7831. else
  7832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7833. printf "%s\n" "no" >&6; }
  7834. fi
  7835. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7836. if test -n "$ac_tool_prefix"; then
  7837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7838. printf %s "checking for file... " >&6; }
  7839. if test ${lt_cv_path_MAGIC_CMD+y}
  7840. then :
  7841. printf %s "(cached) " >&6
  7842. else $as_nop
  7843. case $MAGIC_CMD in
  7844. [\\/*] | ?:[\\/]*)
  7845. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7846. ;;
  7847. *)
  7848. lt_save_MAGIC_CMD=$MAGIC_CMD
  7849. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7850. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7851. for ac_dir in $ac_dummy; do
  7852. IFS=$lt_save_ifs
  7853. test -z "$ac_dir" && ac_dir=.
  7854. if test -f "$ac_dir/file"; then
  7855. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7856. if test -n "$file_magic_test_file"; then
  7857. case $deplibs_check_method in
  7858. "file_magic "*)
  7859. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7860. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7861. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7862. $EGREP "$file_magic_regex" > /dev/null; then
  7863. :
  7864. else
  7865. cat <<_LT_EOF 1>&2
  7866. *** Warning: the command libtool uses to detect shared libraries,
  7867. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7868. *** The result is that libtool may fail to recognize shared libraries
  7869. *** as such. This will affect the creation of libtool libraries that
  7870. *** depend on shared libraries, but programs linked with such libtool
  7871. *** libraries will work regardless of this problem. Nevertheless, you
  7872. *** may want to report the problem to your system manager and/or to
  7873. *** bug-libtool@gnu.org
  7874. _LT_EOF
  7875. fi ;;
  7876. esac
  7877. fi
  7878. break
  7879. fi
  7880. done
  7881. IFS=$lt_save_ifs
  7882. MAGIC_CMD=$lt_save_MAGIC_CMD
  7883. ;;
  7884. esac
  7885. fi
  7886. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7887. if test -n "$MAGIC_CMD"; then
  7888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7889. printf "%s\n" "$MAGIC_CMD" >&6; }
  7890. else
  7891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7892. printf "%s\n" "no" >&6; }
  7893. fi
  7894. else
  7895. MAGIC_CMD=:
  7896. fi
  7897. fi
  7898. fi
  7899. ;;
  7900. esac
  7901. # Use C for the default configuration in the libtool script
  7902. lt_save_CC=$CC
  7903. ac_ext=c
  7904. ac_cpp='$CPP $CPPFLAGS'
  7905. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7906. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7907. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7908. # Source file extension for C test sources.
  7909. ac_ext=c
  7910. # Object file extension for compiled C test sources.
  7911. objext=o
  7912. objext=$objext
  7913. # Code to be used in simple compile tests
  7914. lt_simple_compile_test_code="int some_variable = 0;"
  7915. # Code to be used in simple link tests
  7916. lt_simple_link_test_code='int main(){return(0);}'
  7917. # If no C compiler was specified, use CC.
  7918. LTCC=${LTCC-"$CC"}
  7919. # If no C compiler flags were specified, use CFLAGS.
  7920. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7921. # Allow CC to be a program name with arguments.
  7922. compiler=$CC
  7923. # Save the default compiler, since it gets overwritten when the other
  7924. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7925. compiler_DEFAULT=$CC
  7926. # save warnings/boilerplate of simple test code
  7927. ac_outfile=conftest.$ac_objext
  7928. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7929. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7930. _lt_compiler_boilerplate=`cat conftest.err`
  7931. $RM conftest*
  7932. ac_outfile=conftest.$ac_objext
  7933. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7934. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7935. _lt_linker_boilerplate=`cat conftest.err`
  7936. $RM -r conftest*
  7937. ## CAVEAT EMPTOR:
  7938. ## There is no encapsulation within the following macros, do not change
  7939. ## the running order or otherwise move them around unless you know exactly
  7940. ## what you are doing...
  7941. if test -n "$compiler"; then
  7942. lt_prog_compiler_no_builtin_flag=
  7943. if test yes = "$GCC"; then
  7944. case $cc_basename in
  7945. nvcc*)
  7946. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7947. *)
  7948. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7949. esac
  7950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7951. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7952. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7953. then :
  7954. printf %s "(cached) " >&6
  7955. else $as_nop
  7956. lt_cv_prog_compiler_rtti_exceptions=no
  7957. ac_outfile=conftest.$ac_objext
  7958. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7959. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7960. # Insert the option either (1) after the last *FLAGS variable, or
  7961. # (2) before a word containing "conftest.", or (3) at the end.
  7962. # Note that $ac_compile itself does not contain backslashes and begins
  7963. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7964. # The option is referenced via a variable to avoid confusing sed.
  7965. lt_compile=`echo "$ac_compile" | $SED \
  7966. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7967. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7968. -e 's:$: $lt_compiler_flag:'`
  7969. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7970. (eval "$lt_compile" 2>conftest.err)
  7971. ac_status=$?
  7972. cat conftest.err >&5
  7973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7974. if (exit $ac_status) && test -s "$ac_outfile"; then
  7975. # The compiler can only warn and ignore the option if not recognized
  7976. # So say no if there are warnings other than the usual output.
  7977. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7978. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7979. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7980. lt_cv_prog_compiler_rtti_exceptions=yes
  7981. fi
  7982. fi
  7983. $RM conftest*
  7984. fi
  7985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7986. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7987. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7988. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7989. else
  7990. :
  7991. fi
  7992. fi
  7993. lt_prog_compiler_wl=
  7994. lt_prog_compiler_pic=
  7995. lt_prog_compiler_static=
  7996. if test yes = "$GCC"; then
  7997. lt_prog_compiler_wl='-Wl,'
  7998. lt_prog_compiler_static='-static'
  7999. case $host_os in
  8000. aix*)
  8001. # All AIX code is PIC.
  8002. if test ia64 = "$host_cpu"; then
  8003. # AIX 5 now supports IA64 processor
  8004. lt_prog_compiler_static='-Bstatic'
  8005. fi
  8006. lt_prog_compiler_pic='-fPIC'
  8007. ;;
  8008. amigaos*)
  8009. case $host_cpu in
  8010. powerpc)
  8011. # see comment about AmigaOS4 .so support
  8012. lt_prog_compiler_pic='-fPIC'
  8013. ;;
  8014. m68k)
  8015. # FIXME: we need at least 68020 code to build shared libraries, but
  8016. # adding the '-m68020' flag to GCC prevents building anything better,
  8017. # like '-m68040'.
  8018. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8019. ;;
  8020. esac
  8021. ;;
  8022. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8023. # PIC is the default for these OSes.
  8024. ;;
  8025. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8026. # This hack is so that the source file can tell whether it is being
  8027. # built for inclusion in a dll (and should export symbols for example).
  8028. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8029. # (--disable-auto-import) libraries
  8030. lt_prog_compiler_pic='-DDLL_EXPORT'
  8031. case $host_os in
  8032. os2*)
  8033. lt_prog_compiler_static='$wl-static'
  8034. ;;
  8035. esac
  8036. ;;
  8037. darwin* | rhapsody*)
  8038. # PIC is the default on this platform
  8039. # Common symbols not allowed in MH_DYLIB files
  8040. lt_prog_compiler_pic='-fno-common'
  8041. ;;
  8042. haiku*)
  8043. # PIC is the default for Haiku.
  8044. # The "-static" flag exists, but is broken.
  8045. lt_prog_compiler_static=
  8046. ;;
  8047. hpux*)
  8048. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8049. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8050. # sets the default TLS model and affects inlining.
  8051. case $host_cpu in
  8052. hppa*64*)
  8053. # +Z the default
  8054. ;;
  8055. *)
  8056. lt_prog_compiler_pic='-fPIC'
  8057. ;;
  8058. esac
  8059. ;;
  8060. interix[3-9]*)
  8061. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8062. # Instead, we relocate shared libraries at runtime.
  8063. ;;
  8064. msdosdjgpp*)
  8065. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8066. # on systems that don't support them.
  8067. lt_prog_compiler_can_build_shared=no
  8068. enable_shared=no
  8069. ;;
  8070. *nto* | *qnx*)
  8071. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8072. # it will coredump.
  8073. lt_prog_compiler_pic='-fPIC -shared'
  8074. ;;
  8075. sysv4*MP*)
  8076. if test -d /usr/nec; then
  8077. lt_prog_compiler_pic=-Kconform_pic
  8078. fi
  8079. ;;
  8080. *)
  8081. lt_prog_compiler_pic='-fPIC'
  8082. ;;
  8083. esac
  8084. case $cc_basename in
  8085. nvcc*) # Cuda Compiler Driver 2.2
  8086. lt_prog_compiler_wl='-Xlinker '
  8087. if test -n "$lt_prog_compiler_pic"; then
  8088. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8089. fi
  8090. ;;
  8091. esac
  8092. else
  8093. # PORTME Check for flag to pass linker flags through the system compiler.
  8094. case $host_os in
  8095. aix*)
  8096. lt_prog_compiler_wl='-Wl,'
  8097. if test ia64 = "$host_cpu"; then
  8098. # AIX 5 now supports IA64 processor
  8099. lt_prog_compiler_static='-Bstatic'
  8100. else
  8101. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8102. fi
  8103. ;;
  8104. darwin* | rhapsody*)
  8105. # PIC is the default on this platform
  8106. # Common symbols not allowed in MH_DYLIB files
  8107. lt_prog_compiler_pic='-fno-common'
  8108. case $cc_basename in
  8109. nagfor*)
  8110. # NAG Fortran compiler
  8111. lt_prog_compiler_wl='-Wl,-Wl,,'
  8112. lt_prog_compiler_pic='-PIC'
  8113. lt_prog_compiler_static='-Bstatic'
  8114. ;;
  8115. esac
  8116. ;;
  8117. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8118. # This hack is so that the source file can tell whether it is being
  8119. # built for inclusion in a dll (and should export symbols for example).
  8120. lt_prog_compiler_pic='-DDLL_EXPORT'
  8121. case $host_os in
  8122. os2*)
  8123. lt_prog_compiler_static='$wl-static'
  8124. ;;
  8125. esac
  8126. ;;
  8127. hpux9* | hpux10* | hpux11*)
  8128. lt_prog_compiler_wl='-Wl,'
  8129. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8130. # not for PA HP-UX.
  8131. case $host_cpu in
  8132. hppa*64*|ia64*)
  8133. # +Z the default
  8134. ;;
  8135. *)
  8136. lt_prog_compiler_pic='+Z'
  8137. ;;
  8138. esac
  8139. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8140. lt_prog_compiler_static='$wl-a ${wl}archive'
  8141. ;;
  8142. irix5* | irix6* | nonstopux*)
  8143. lt_prog_compiler_wl='-Wl,'
  8144. # PIC (with -KPIC) is the default.
  8145. lt_prog_compiler_static='-non_shared'
  8146. ;;
  8147. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8148. case $cc_basename in
  8149. # old Intel for x86_64, which still supported -KPIC.
  8150. ecc*)
  8151. lt_prog_compiler_wl='-Wl,'
  8152. lt_prog_compiler_pic='-KPIC'
  8153. lt_prog_compiler_static='-static'
  8154. ;;
  8155. # icc used to be incompatible with GCC.
  8156. # ICC 10 doesn't accept -KPIC any more.
  8157. icc* | ifort*)
  8158. lt_prog_compiler_wl='-Wl,'
  8159. lt_prog_compiler_pic='-fPIC'
  8160. lt_prog_compiler_static='-static'
  8161. ;;
  8162. # Lahey Fortran 8.1.
  8163. lf95*)
  8164. lt_prog_compiler_wl='-Wl,'
  8165. lt_prog_compiler_pic='--shared'
  8166. lt_prog_compiler_static='--static'
  8167. ;;
  8168. nagfor*)
  8169. # NAG Fortran compiler
  8170. lt_prog_compiler_wl='-Wl,-Wl,,'
  8171. lt_prog_compiler_pic='-PIC'
  8172. lt_prog_compiler_static='-Bstatic'
  8173. ;;
  8174. tcc*)
  8175. # Fabrice Bellard et al's Tiny C Compiler
  8176. lt_prog_compiler_wl='-Wl,'
  8177. lt_prog_compiler_pic='-fPIC'
  8178. lt_prog_compiler_static='-static'
  8179. ;;
  8180. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8181. # Portland Group compilers (*not* the Pentium gcc compiler,
  8182. # which looks to be a dead project)
  8183. lt_prog_compiler_wl='-Wl,'
  8184. lt_prog_compiler_pic='-fpic'
  8185. lt_prog_compiler_static='-Bstatic'
  8186. ;;
  8187. ccc*)
  8188. lt_prog_compiler_wl='-Wl,'
  8189. # All Alpha code is PIC.
  8190. lt_prog_compiler_static='-non_shared'
  8191. ;;
  8192. xl* | bgxl* | bgf* | mpixl*)
  8193. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8194. lt_prog_compiler_wl='-Wl,'
  8195. lt_prog_compiler_pic='-qpic'
  8196. lt_prog_compiler_static='-qstaticlink'
  8197. ;;
  8198. *)
  8199. case `$CC -V 2>&1 | sed 5q` in
  8200. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8201. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8202. lt_prog_compiler_pic='-KPIC'
  8203. lt_prog_compiler_static='-Bstatic'
  8204. lt_prog_compiler_wl=''
  8205. ;;
  8206. *Sun\ F* | *Sun*Fortran*)
  8207. lt_prog_compiler_pic='-KPIC'
  8208. lt_prog_compiler_static='-Bstatic'
  8209. lt_prog_compiler_wl='-Qoption ld '
  8210. ;;
  8211. *Sun\ C*)
  8212. # Sun C 5.9
  8213. lt_prog_compiler_pic='-KPIC'
  8214. lt_prog_compiler_static='-Bstatic'
  8215. lt_prog_compiler_wl='-Wl,'
  8216. ;;
  8217. *Intel*\ [CF]*Compiler*)
  8218. lt_prog_compiler_wl='-Wl,'
  8219. lt_prog_compiler_pic='-fPIC'
  8220. lt_prog_compiler_static='-static'
  8221. ;;
  8222. *Portland\ Group*)
  8223. lt_prog_compiler_wl='-Wl,'
  8224. lt_prog_compiler_pic='-fpic'
  8225. lt_prog_compiler_static='-Bstatic'
  8226. ;;
  8227. esac
  8228. ;;
  8229. esac
  8230. ;;
  8231. newsos6)
  8232. lt_prog_compiler_pic='-KPIC'
  8233. lt_prog_compiler_static='-Bstatic'
  8234. ;;
  8235. *nto* | *qnx*)
  8236. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8237. # it will coredump.
  8238. lt_prog_compiler_pic='-fPIC -shared'
  8239. ;;
  8240. osf3* | osf4* | osf5*)
  8241. lt_prog_compiler_wl='-Wl,'
  8242. # All OSF/1 code is PIC.
  8243. lt_prog_compiler_static='-non_shared'
  8244. ;;
  8245. rdos*)
  8246. lt_prog_compiler_static='-non_shared'
  8247. ;;
  8248. solaris*)
  8249. lt_prog_compiler_pic='-KPIC'
  8250. lt_prog_compiler_static='-Bstatic'
  8251. case $cc_basename in
  8252. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8253. lt_prog_compiler_wl='-Qoption ld ';;
  8254. *)
  8255. lt_prog_compiler_wl='-Wl,';;
  8256. esac
  8257. ;;
  8258. sunos4*)
  8259. lt_prog_compiler_wl='-Qoption ld '
  8260. lt_prog_compiler_pic='-PIC'
  8261. lt_prog_compiler_static='-Bstatic'
  8262. ;;
  8263. sysv4 | sysv4.2uw2* | sysv4.3*)
  8264. lt_prog_compiler_wl='-Wl,'
  8265. lt_prog_compiler_pic='-KPIC'
  8266. lt_prog_compiler_static='-Bstatic'
  8267. ;;
  8268. sysv4*MP*)
  8269. if test -d /usr/nec; then
  8270. lt_prog_compiler_pic='-Kconform_pic'
  8271. lt_prog_compiler_static='-Bstatic'
  8272. fi
  8273. ;;
  8274. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8275. lt_prog_compiler_wl='-Wl,'
  8276. lt_prog_compiler_pic='-KPIC'
  8277. lt_prog_compiler_static='-Bstatic'
  8278. ;;
  8279. unicos*)
  8280. lt_prog_compiler_wl='-Wl,'
  8281. lt_prog_compiler_can_build_shared=no
  8282. ;;
  8283. uts4*)
  8284. lt_prog_compiler_pic='-pic'
  8285. lt_prog_compiler_static='-Bstatic'
  8286. ;;
  8287. *)
  8288. lt_prog_compiler_can_build_shared=no
  8289. ;;
  8290. esac
  8291. fi
  8292. case $host_os in
  8293. # For platforms that do not support PIC, -DPIC is meaningless:
  8294. *djgpp*)
  8295. lt_prog_compiler_pic=
  8296. ;;
  8297. *)
  8298. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8299. ;;
  8300. esac
  8301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8302. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8303. if test ${lt_cv_prog_compiler_pic+y}
  8304. then :
  8305. printf %s "(cached) " >&6
  8306. else $as_nop
  8307. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8308. fi
  8309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8310. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8311. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8312. #
  8313. # Check to make sure the PIC flag actually works.
  8314. #
  8315. if test -n "$lt_prog_compiler_pic"; then
  8316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8317. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8318. if test ${lt_cv_prog_compiler_pic_works+y}
  8319. then :
  8320. printf %s "(cached) " >&6
  8321. else $as_nop
  8322. lt_cv_prog_compiler_pic_works=no
  8323. ac_outfile=conftest.$ac_objext
  8324. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8325. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8326. # Insert the option either (1) after the last *FLAGS variable, or
  8327. # (2) before a word containing "conftest.", or (3) at the end.
  8328. # Note that $ac_compile itself does not contain backslashes and begins
  8329. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8330. # The option is referenced via a variable to avoid confusing sed.
  8331. lt_compile=`echo "$ac_compile" | $SED \
  8332. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8333. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8334. -e 's:$: $lt_compiler_flag:'`
  8335. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8336. (eval "$lt_compile" 2>conftest.err)
  8337. ac_status=$?
  8338. cat conftest.err >&5
  8339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8340. if (exit $ac_status) && test -s "$ac_outfile"; then
  8341. # The compiler can only warn and ignore the option if not recognized
  8342. # So say no if there are warnings other than the usual output.
  8343. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8344. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8345. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8346. lt_cv_prog_compiler_pic_works=yes
  8347. fi
  8348. fi
  8349. $RM conftest*
  8350. fi
  8351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8352. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8353. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8354. case $lt_prog_compiler_pic in
  8355. "" | " "*) ;;
  8356. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8357. esac
  8358. else
  8359. lt_prog_compiler_pic=
  8360. lt_prog_compiler_can_build_shared=no
  8361. fi
  8362. fi
  8363. #
  8364. # Check to make sure the static flag actually works.
  8365. #
  8366. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8368. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8369. if test ${lt_cv_prog_compiler_static_works+y}
  8370. then :
  8371. printf %s "(cached) " >&6
  8372. else $as_nop
  8373. lt_cv_prog_compiler_static_works=no
  8374. save_LDFLAGS=$LDFLAGS
  8375. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8376. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8377. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8378. # The linker can only warn and ignore the option if not recognized
  8379. # So say no if there are warnings
  8380. if test -s conftest.err; then
  8381. # Append any errors to the config.log.
  8382. cat conftest.err 1>&5
  8383. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8384. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8385. if diff conftest.exp conftest.er2 >/dev/null; then
  8386. lt_cv_prog_compiler_static_works=yes
  8387. fi
  8388. else
  8389. lt_cv_prog_compiler_static_works=yes
  8390. fi
  8391. fi
  8392. $RM -r conftest*
  8393. LDFLAGS=$save_LDFLAGS
  8394. fi
  8395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8396. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8397. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8398. :
  8399. else
  8400. lt_prog_compiler_static=
  8401. fi
  8402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8403. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8404. if test ${lt_cv_prog_compiler_c_o+y}
  8405. then :
  8406. printf %s "(cached) " >&6
  8407. else $as_nop
  8408. lt_cv_prog_compiler_c_o=no
  8409. $RM -r conftest 2>/dev/null
  8410. mkdir conftest
  8411. cd conftest
  8412. mkdir out
  8413. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8414. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8415. # Insert the option either (1) after the last *FLAGS variable, or
  8416. # (2) before a word containing "conftest.", or (3) at the end.
  8417. # Note that $ac_compile itself does not contain backslashes and begins
  8418. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8419. lt_compile=`echo "$ac_compile" | $SED \
  8420. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8421. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8422. -e 's:$: $lt_compiler_flag:'`
  8423. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8424. (eval "$lt_compile" 2>out/conftest.err)
  8425. ac_status=$?
  8426. cat out/conftest.err >&5
  8427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8428. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8429. then
  8430. # The compiler can only warn and ignore the option if not recognized
  8431. # So say no if there are warnings
  8432. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8433. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8434. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8435. lt_cv_prog_compiler_c_o=yes
  8436. fi
  8437. fi
  8438. chmod u+w . 2>&5
  8439. $RM conftest*
  8440. # SGI C++ compiler will create directory out/ii_files/ for
  8441. # template instantiation
  8442. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8443. $RM out/* && rmdir out
  8444. cd ..
  8445. $RM -r conftest
  8446. $RM conftest*
  8447. fi
  8448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8449. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8451. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8452. if test ${lt_cv_prog_compiler_c_o+y}
  8453. then :
  8454. printf %s "(cached) " >&6
  8455. else $as_nop
  8456. lt_cv_prog_compiler_c_o=no
  8457. $RM -r conftest 2>/dev/null
  8458. mkdir conftest
  8459. cd conftest
  8460. mkdir out
  8461. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8462. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8463. # Insert the option either (1) after the last *FLAGS variable, or
  8464. # (2) before a word containing "conftest.", or (3) at the end.
  8465. # Note that $ac_compile itself does not contain backslashes and begins
  8466. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8467. lt_compile=`echo "$ac_compile" | $SED \
  8468. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8469. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8470. -e 's:$: $lt_compiler_flag:'`
  8471. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8472. (eval "$lt_compile" 2>out/conftest.err)
  8473. ac_status=$?
  8474. cat out/conftest.err >&5
  8475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8476. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8477. then
  8478. # The compiler can only warn and ignore the option if not recognized
  8479. # So say no if there are warnings
  8480. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8481. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8482. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8483. lt_cv_prog_compiler_c_o=yes
  8484. fi
  8485. fi
  8486. chmod u+w . 2>&5
  8487. $RM conftest*
  8488. # SGI C++ compiler will create directory out/ii_files/ for
  8489. # template instantiation
  8490. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8491. $RM out/* && rmdir out
  8492. cd ..
  8493. $RM -r conftest
  8494. $RM conftest*
  8495. fi
  8496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8497. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8498. hard_links=nottested
  8499. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8500. # do not overwrite the value of need_locks provided by the user
  8501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8502. printf %s "checking if we can lock with hard links... " >&6; }
  8503. hard_links=yes
  8504. $RM conftest*
  8505. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8506. touch conftest.a
  8507. ln conftest.a conftest.b 2>&5 || hard_links=no
  8508. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8510. printf "%s\n" "$hard_links" >&6; }
  8511. if test no = "$hard_links"; then
  8512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8513. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8514. need_locks=warn
  8515. fi
  8516. else
  8517. need_locks=no
  8518. fi
  8519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8520. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8521. runpath_var=
  8522. allow_undefined_flag=
  8523. always_export_symbols=no
  8524. archive_cmds=
  8525. archive_expsym_cmds=
  8526. compiler_needs_object=no
  8527. enable_shared_with_static_runtimes=no
  8528. export_dynamic_flag_spec=
  8529. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8530. hardcode_automatic=no
  8531. hardcode_direct=no
  8532. hardcode_direct_absolute=no
  8533. hardcode_libdir_flag_spec=
  8534. hardcode_libdir_separator=
  8535. hardcode_minus_L=no
  8536. hardcode_shlibpath_var=unsupported
  8537. inherit_rpath=no
  8538. link_all_deplibs=unknown
  8539. module_cmds=
  8540. module_expsym_cmds=
  8541. old_archive_from_new_cmds=
  8542. old_archive_from_expsyms_cmds=
  8543. thread_safe_flag_spec=
  8544. whole_archive_flag_spec=
  8545. # include_expsyms should be a list of space-separated symbols to be *always*
  8546. # included in the symbol list
  8547. include_expsyms=
  8548. # exclude_expsyms can be an extended regexp of symbols to exclude
  8549. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8550. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8551. # as well as any symbol that contains 'd'.
  8552. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8553. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8554. # platforms (ab)use it in PIC code, but their linkers get confused if
  8555. # the symbol is explicitly referenced. Since portable code cannot
  8556. # rely on this symbol name, it's probably fine to never include it in
  8557. # preloaded symbol tables.
  8558. # Exclude shared library initialization/finalization symbols.
  8559. extract_expsyms_cmds=
  8560. case $host_os in
  8561. cygwin* | mingw* | pw32* | cegcc*)
  8562. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8563. # When not using gcc, we currently assume that we are using
  8564. # Microsoft Visual C++.
  8565. if test yes != "$GCC"; then
  8566. with_gnu_ld=no
  8567. fi
  8568. ;;
  8569. interix*)
  8570. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8571. with_gnu_ld=yes
  8572. ;;
  8573. openbsd* | bitrig*)
  8574. with_gnu_ld=no
  8575. ;;
  8576. esac
  8577. ld_shlibs=yes
  8578. # On some targets, GNU ld is compatible enough with the native linker
  8579. # that we're better off using the native interface for both.
  8580. lt_use_gnu_ld_interface=no
  8581. if test yes = "$with_gnu_ld"; then
  8582. case $host_os in
  8583. aix*)
  8584. # The AIX port of GNU ld has always aspired to compatibility
  8585. # with the native linker. However, as the warning in the GNU ld
  8586. # block says, versions before 2.19.5* couldn't really create working
  8587. # shared libraries, regardless of the interface used.
  8588. case `$LD -v 2>&1` in
  8589. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8590. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8591. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8592. *)
  8593. lt_use_gnu_ld_interface=yes
  8594. ;;
  8595. esac
  8596. ;;
  8597. *)
  8598. lt_use_gnu_ld_interface=yes
  8599. ;;
  8600. esac
  8601. fi
  8602. if test yes = "$lt_use_gnu_ld_interface"; then
  8603. # If archive_cmds runs LD, not CC, wlarc should be empty
  8604. wlarc='$wl'
  8605. # Set some defaults for GNU ld with shared library support. These
  8606. # are reset later if shared libraries are not supported. Putting them
  8607. # here allows them to be overridden if necessary.
  8608. runpath_var=LD_RUN_PATH
  8609. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8610. export_dynamic_flag_spec='$wl--export-dynamic'
  8611. # ancient GNU ld didn't support --whole-archive et. al.
  8612. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8613. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8614. else
  8615. whole_archive_flag_spec=
  8616. fi
  8617. supports_anon_versioning=no
  8618. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8619. *GNU\ gold*) supports_anon_versioning=yes ;;
  8620. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8621. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8622. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8623. *\ 2.11.*) ;; # other 2.11 versions
  8624. *) supports_anon_versioning=yes ;;
  8625. esac
  8626. # See if GNU ld supports shared libraries.
  8627. case $host_os in
  8628. aix[3-9]*)
  8629. # On AIX/PPC, the GNU linker is very broken
  8630. if test ia64 != "$host_cpu"; then
  8631. ld_shlibs=no
  8632. cat <<_LT_EOF 1>&2
  8633. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8634. *** to be unable to reliably create shared libraries on AIX.
  8635. *** Therefore, libtool is disabling shared libraries support. If you
  8636. *** really care for shared libraries, you may want to install binutils
  8637. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8638. *** You will then need to restart the configuration process.
  8639. _LT_EOF
  8640. fi
  8641. ;;
  8642. amigaos*)
  8643. case $host_cpu in
  8644. powerpc)
  8645. # see comment about AmigaOS4 .so support
  8646. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8647. archive_expsym_cmds=''
  8648. ;;
  8649. m68k)
  8650. 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)'
  8651. hardcode_libdir_flag_spec='-L$libdir'
  8652. hardcode_minus_L=yes
  8653. ;;
  8654. esac
  8655. ;;
  8656. beos*)
  8657. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8658. allow_undefined_flag=unsupported
  8659. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8660. # support --undefined. This deserves some investigation. FIXME
  8661. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8662. else
  8663. ld_shlibs=no
  8664. fi
  8665. ;;
  8666. cygwin* | mingw* | pw32* | cegcc*)
  8667. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8668. # as there is no search path for DLLs.
  8669. hardcode_libdir_flag_spec='-L$libdir'
  8670. export_dynamic_flag_spec='$wl--export-all-symbols'
  8671. allow_undefined_flag=unsupported
  8672. always_export_symbols=no
  8673. enable_shared_with_static_runtimes=yes
  8674. 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'
  8675. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8676. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8677. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8678. # If the export-symbols file already is a .def file, use it as
  8679. # is; otherwise, prepend EXPORTS...
  8680. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8681. cp $export_symbols $output_objdir/$soname.def;
  8682. else
  8683. echo EXPORTS > $output_objdir/$soname.def;
  8684. cat $export_symbols >> $output_objdir/$soname.def;
  8685. fi~
  8686. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8687. else
  8688. ld_shlibs=no
  8689. fi
  8690. ;;
  8691. haiku*)
  8692. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8693. link_all_deplibs=yes
  8694. ;;
  8695. os2*)
  8696. hardcode_libdir_flag_spec='-L$libdir'
  8697. hardcode_minus_L=yes
  8698. allow_undefined_flag=unsupported
  8699. shrext_cmds=.dll
  8700. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8701. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8702. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8703. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8704. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8705. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8706. emximp -o $lib $output_objdir/$libname.def'
  8707. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8708. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8709. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8710. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8711. prefix_cmds="$SED"~
  8712. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8713. prefix_cmds="$prefix_cmds -e 1d";
  8714. fi~
  8715. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8716. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8717. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8718. emximp -o $lib $output_objdir/$libname.def'
  8719. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8720. enable_shared_with_static_runtimes=yes
  8721. file_list_spec='@'
  8722. ;;
  8723. interix[3-9]*)
  8724. hardcode_direct=no
  8725. hardcode_shlibpath_var=no
  8726. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8727. export_dynamic_flag_spec='$wl-E'
  8728. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8729. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8730. # default) and relocated if they conflict, which is a slow very memory
  8731. # consuming and fragmenting process. To avoid this, we pick a random,
  8732. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8733. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8734. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8735. 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'
  8736. ;;
  8737. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8738. tmp_diet=no
  8739. if test linux-dietlibc = "$host_os"; then
  8740. case $cc_basename in
  8741. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8742. esac
  8743. fi
  8744. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8745. && test no = "$tmp_diet"
  8746. then
  8747. tmp_addflag=' $pic_flag'
  8748. tmp_sharedflag='-shared'
  8749. case $cc_basename,$host_cpu in
  8750. pgcc*) # Portland Group C compiler
  8751. 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'
  8752. tmp_addflag=' $pic_flag'
  8753. ;;
  8754. pgf77* | pgf90* | pgf95* | pgfortran*)
  8755. # Portland Group f77 and f90 compilers
  8756. 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'
  8757. tmp_addflag=' $pic_flag -Mnomain' ;;
  8758. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8759. tmp_addflag=' -i_dynamic' ;;
  8760. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8761. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8762. ifc* | ifort*) # Intel Fortran compiler
  8763. tmp_addflag=' -nofor_main' ;;
  8764. lf95*) # Lahey Fortran 8.1
  8765. whole_archive_flag_spec=
  8766. tmp_sharedflag='--shared' ;;
  8767. nagfor*) # NAGFOR 5.3
  8768. tmp_sharedflag='-Wl,-shared' ;;
  8769. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8770. tmp_sharedflag='-qmkshrobj'
  8771. tmp_addflag= ;;
  8772. nvcc*) # Cuda Compiler Driver 2.2
  8773. 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'
  8774. compiler_needs_object=yes
  8775. ;;
  8776. esac
  8777. case `$CC -V 2>&1 | sed 5q` in
  8778. *Sun\ C*) # Sun C 5.9
  8779. 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'
  8780. compiler_needs_object=yes
  8781. tmp_sharedflag='-G' ;;
  8782. *Sun\ F*) # Sun Fortran 8.3
  8783. tmp_sharedflag='-G' ;;
  8784. esac
  8785. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8786. if test yes = "$supports_anon_versioning"; then
  8787. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8788. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8789. echo "local: *; };" >> $output_objdir/$libname.ver~
  8790. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8791. fi
  8792. case $cc_basename in
  8793. tcc*)
  8794. export_dynamic_flag_spec='-rdynamic'
  8795. ;;
  8796. xlf* | bgf* | bgxlf* | mpixlf*)
  8797. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8798. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8799. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8800. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8801. if test yes = "$supports_anon_versioning"; then
  8802. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8803. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8804. echo "local: *; };" >> $output_objdir/$libname.ver~
  8805. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8806. fi
  8807. ;;
  8808. esac
  8809. else
  8810. ld_shlibs=no
  8811. fi
  8812. ;;
  8813. netbsd*)
  8814. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8815. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8816. wlarc=
  8817. else
  8818. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8819. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8820. fi
  8821. ;;
  8822. solaris*)
  8823. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8824. ld_shlibs=no
  8825. cat <<_LT_EOF 1>&2
  8826. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8827. *** create shared libraries on Solaris systems. Therefore, libtool
  8828. *** is disabling shared libraries support. We urge you to upgrade GNU
  8829. *** binutils to release 2.9.1 or newer. Another option is to modify
  8830. *** your PATH or compiler configuration so that the native linker is
  8831. *** used, and then restart.
  8832. _LT_EOF
  8833. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8834. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8835. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8836. else
  8837. ld_shlibs=no
  8838. fi
  8839. ;;
  8840. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8841. case `$LD -v 2>&1` in
  8842. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8843. ld_shlibs=no
  8844. cat <<_LT_EOF 1>&2
  8845. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8846. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8847. *** is disabling shared libraries support. We urge you to upgrade GNU
  8848. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8849. *** your PATH or compiler configuration so that the native linker is
  8850. *** used, and then restart.
  8851. _LT_EOF
  8852. ;;
  8853. *)
  8854. # For security reasons, it is highly recommended that you always
  8855. # use absolute paths for naming shared libraries, and exclude the
  8856. # DT_RUNPATH tag from executables and libraries. But doing so
  8857. # requires that you compile everything twice, which is a pain.
  8858. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8859. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8860. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8861. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8862. else
  8863. ld_shlibs=no
  8864. fi
  8865. ;;
  8866. esac
  8867. ;;
  8868. sunos4*)
  8869. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8870. wlarc=
  8871. hardcode_direct=yes
  8872. hardcode_shlibpath_var=no
  8873. ;;
  8874. *)
  8875. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8876. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8877. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8878. else
  8879. ld_shlibs=no
  8880. fi
  8881. ;;
  8882. esac
  8883. if test no = "$ld_shlibs"; then
  8884. runpath_var=
  8885. hardcode_libdir_flag_spec=
  8886. export_dynamic_flag_spec=
  8887. whole_archive_flag_spec=
  8888. fi
  8889. else
  8890. # PORTME fill in a description of your system's linker (not GNU ld)
  8891. case $host_os in
  8892. aix3*)
  8893. allow_undefined_flag=unsupported
  8894. always_export_symbols=yes
  8895. 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'
  8896. # Note: this linker hardcodes the directories in LIBPATH if there
  8897. # are no directories specified by -L.
  8898. hardcode_minus_L=yes
  8899. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8900. # Neither direct hardcoding nor static linking is supported with a
  8901. # broken collect2.
  8902. hardcode_direct=unsupported
  8903. fi
  8904. ;;
  8905. aix[4-9]*)
  8906. if test ia64 = "$host_cpu"; then
  8907. # On IA64, the linker does run time linking by default, so we don't
  8908. # have to do anything special.
  8909. aix_use_runtimelinking=no
  8910. exp_sym_flag='-Bexport'
  8911. no_entry_flag=
  8912. else
  8913. # If we're using GNU nm, then we don't want the "-C" option.
  8914. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8915. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8916. # weak defined symbols like other global defined symbols, whereas
  8917. # GNU nm marks them as "W".
  8918. # While the 'weak' keyword is ignored in the Export File, we need
  8919. # it in the Import File for the 'aix-soname' feature, so we have
  8920. # to replace the "-B" option with "-P" for AIX nm.
  8921. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8922. 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'
  8923. else
  8924. 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'
  8925. fi
  8926. aix_use_runtimelinking=no
  8927. # Test if we are trying to use run time linking or normal
  8928. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8929. # have runtime linking enabled, and use it for executables.
  8930. # For shared libraries, we enable/disable runtime linking
  8931. # depending on the kind of the shared library created -
  8932. # when "with_aix_soname,aix_use_runtimelinking" is:
  8933. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8934. # "aix,yes" lib.so shared, rtl:yes, for executables
  8935. # lib.a static archive
  8936. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8937. # lib.a(lib.so.V) shared, rtl:no, for executables
  8938. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8939. # lib.a(lib.so.V) shared, rtl:no
  8940. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8941. # lib.a static archive
  8942. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8943. for ld_flag in $LDFLAGS; do
  8944. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8945. aix_use_runtimelinking=yes
  8946. break
  8947. fi
  8948. done
  8949. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8950. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8951. # so we don't have lib.a shared libs to link our executables.
  8952. # We have to force runtime linking in this case.
  8953. aix_use_runtimelinking=yes
  8954. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8955. fi
  8956. ;;
  8957. esac
  8958. exp_sym_flag='-bexport'
  8959. no_entry_flag='-bnoentry'
  8960. fi
  8961. # When large executables or shared objects are built, AIX ld can
  8962. # have problems creating the table of contents. If linking a library
  8963. # or program results in "error TOC overflow" add -mminimal-toc to
  8964. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8965. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8966. archive_cmds=''
  8967. hardcode_direct=yes
  8968. hardcode_direct_absolute=yes
  8969. hardcode_libdir_separator=':'
  8970. link_all_deplibs=yes
  8971. file_list_spec='$wl-f,'
  8972. case $with_aix_soname,$aix_use_runtimelinking in
  8973. aix,*) ;; # traditional, no import file
  8974. svr4,* | *,yes) # use import file
  8975. # The Import File defines what to hardcode.
  8976. hardcode_direct=no
  8977. hardcode_direct_absolute=no
  8978. ;;
  8979. esac
  8980. if test yes = "$GCC"; then
  8981. case $host_os in aix4.[012]|aix4.[012].*)
  8982. # We only want to do this on AIX 4.2 and lower, the check
  8983. # below for broken collect2 doesn't work under 4.3+
  8984. collect2name=`$CC -print-prog-name=collect2`
  8985. if test -f "$collect2name" &&
  8986. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8987. then
  8988. # We have reworked collect2
  8989. :
  8990. else
  8991. # We have old collect2
  8992. hardcode_direct=unsupported
  8993. # It fails to find uninstalled libraries when the uninstalled
  8994. # path is not listed in the libpath. Setting hardcode_minus_L
  8995. # to unsupported forces relinking
  8996. hardcode_minus_L=yes
  8997. hardcode_libdir_flag_spec='-L$libdir'
  8998. hardcode_libdir_separator=
  8999. fi
  9000. ;;
  9001. esac
  9002. shared_flag='-shared'
  9003. if test yes = "$aix_use_runtimelinking"; then
  9004. shared_flag="$shared_flag "'$wl-G'
  9005. fi
  9006. # Need to ensure runtime linking is disabled for the traditional
  9007. # shared library, or the linker may eventually find shared libraries
  9008. # /with/ Import File - we do not want to mix them.
  9009. shared_flag_aix='-shared'
  9010. shared_flag_svr4='-shared $wl-G'
  9011. else
  9012. # not using gcc
  9013. if test ia64 = "$host_cpu"; then
  9014. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9015. # chokes on -Wl,-G. The following line is correct:
  9016. shared_flag='-G'
  9017. else
  9018. if test yes = "$aix_use_runtimelinking"; then
  9019. shared_flag='$wl-G'
  9020. else
  9021. shared_flag='$wl-bM:SRE'
  9022. fi
  9023. shared_flag_aix='$wl-bM:SRE'
  9024. shared_flag_svr4='$wl-G'
  9025. fi
  9026. fi
  9027. export_dynamic_flag_spec='$wl-bexpall'
  9028. # It seems that -bexpall does not export symbols beginning with
  9029. # underscore (_), so it is better to generate a list of symbols to export.
  9030. always_export_symbols=yes
  9031. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9032. # Warning - without using the other runtime loading flags (-brtl),
  9033. # -berok will link without error, but may produce a broken library.
  9034. allow_undefined_flag='-berok'
  9035. # Determine the default libpath from the value encoded in an
  9036. # empty executable.
  9037. if test set = "${lt_cv_aix_libpath+set}"; then
  9038. aix_libpath=$lt_cv_aix_libpath
  9039. else
  9040. if test ${lt_cv_aix_libpath_+y}
  9041. then :
  9042. printf %s "(cached) " >&6
  9043. else $as_nop
  9044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9045. /* end confdefs.h. */
  9046. int
  9047. main (void)
  9048. {
  9049. ;
  9050. return 0;
  9051. }
  9052. _ACEOF
  9053. if ac_fn_c_try_link "$LINENO"
  9054. then :
  9055. lt_aix_libpath_sed='
  9056. /Import File Strings/,/^$/ {
  9057. /^0/ {
  9058. s/^0 *\([^ ]*\) *$/\1/
  9059. p
  9060. }
  9061. }'
  9062. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9063. # Check for a 64-bit object if we didn't find anything.
  9064. if test -z "$lt_cv_aix_libpath_"; then
  9065. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9066. fi
  9067. fi
  9068. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9069. conftest$ac_exeext conftest.$ac_ext
  9070. if test -z "$lt_cv_aix_libpath_"; then
  9071. lt_cv_aix_libpath_=/usr/lib:/lib
  9072. fi
  9073. fi
  9074. aix_libpath=$lt_cv_aix_libpath_
  9075. fi
  9076. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9077. 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
  9078. else
  9079. if test ia64 = "$host_cpu"; then
  9080. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9081. allow_undefined_flag="-z nodefs"
  9082. 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"
  9083. else
  9084. # Determine the default libpath from the value encoded in an
  9085. # empty executable.
  9086. if test set = "${lt_cv_aix_libpath+set}"; then
  9087. aix_libpath=$lt_cv_aix_libpath
  9088. else
  9089. if test ${lt_cv_aix_libpath_+y}
  9090. then :
  9091. printf %s "(cached) " >&6
  9092. else $as_nop
  9093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9094. /* end confdefs.h. */
  9095. int
  9096. main (void)
  9097. {
  9098. ;
  9099. return 0;
  9100. }
  9101. _ACEOF
  9102. if ac_fn_c_try_link "$LINENO"
  9103. then :
  9104. lt_aix_libpath_sed='
  9105. /Import File Strings/,/^$/ {
  9106. /^0/ {
  9107. s/^0 *\([^ ]*\) *$/\1/
  9108. p
  9109. }
  9110. }'
  9111. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9112. # Check for a 64-bit object if we didn't find anything.
  9113. if test -z "$lt_cv_aix_libpath_"; then
  9114. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9115. fi
  9116. fi
  9117. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9118. conftest$ac_exeext conftest.$ac_ext
  9119. if test -z "$lt_cv_aix_libpath_"; then
  9120. lt_cv_aix_libpath_=/usr/lib:/lib
  9121. fi
  9122. fi
  9123. aix_libpath=$lt_cv_aix_libpath_
  9124. fi
  9125. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9126. # Warning - without using the other run time loading flags,
  9127. # -berok will link without error, but may produce a broken library.
  9128. no_undefined_flag=' $wl-bernotok'
  9129. allow_undefined_flag=' $wl-berok'
  9130. if test yes = "$with_gnu_ld"; then
  9131. # We only use this code for GNU lds that support --whole-archive.
  9132. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9133. else
  9134. # Exported symbols can be pulled into shared objects from archives
  9135. whole_archive_flag_spec='$convenience'
  9136. fi
  9137. archive_cmds_need_lc=yes
  9138. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9139. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9140. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9141. if test svr4 != "$with_aix_soname"; then
  9142. # This is similar to how AIX traditionally builds its shared libraries.
  9143. 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'
  9144. fi
  9145. if test aix != "$with_aix_soname"; then
  9146. 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'
  9147. else
  9148. # used by -dlpreopen to get the symbols
  9149. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9150. fi
  9151. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9152. fi
  9153. fi
  9154. ;;
  9155. amigaos*)
  9156. case $host_cpu in
  9157. powerpc)
  9158. # see comment about AmigaOS4 .so support
  9159. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9160. archive_expsym_cmds=''
  9161. ;;
  9162. m68k)
  9163. 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)'
  9164. hardcode_libdir_flag_spec='-L$libdir'
  9165. hardcode_minus_L=yes
  9166. ;;
  9167. esac
  9168. ;;
  9169. bsdi[45]*)
  9170. export_dynamic_flag_spec=-rdynamic
  9171. ;;
  9172. cygwin* | mingw* | pw32* | cegcc*)
  9173. # When not using gcc, we currently assume that we are using
  9174. # Microsoft Visual C++.
  9175. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9176. # no search path for DLLs.
  9177. case $cc_basename in
  9178. cl*)
  9179. # Native MSVC
  9180. hardcode_libdir_flag_spec=' '
  9181. allow_undefined_flag=unsupported
  9182. always_export_symbols=yes
  9183. file_list_spec='@'
  9184. # Tell ltmain to make .lib files, not .a files.
  9185. libext=lib
  9186. # Tell ltmain to make .dll files, not .so files.
  9187. shrext_cmds=.dll
  9188. # FIXME: Setting linknames here is a bad hack.
  9189. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9190. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9191. cp "$export_symbols" "$output_objdir/$soname.def";
  9192. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9193. else
  9194. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9195. fi~
  9196. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9197. linknames='
  9198. # The linker will not automatically build a static lib if we build a DLL.
  9199. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9200. enable_shared_with_static_runtimes=yes
  9201. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9202. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9203. # Don't use ranlib
  9204. old_postinstall_cmds='chmod 644 $oldlib'
  9205. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9206. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9207. case $lt_outputfile in
  9208. *.exe|*.EXE) ;;
  9209. *)
  9210. lt_outputfile=$lt_outputfile.exe
  9211. lt_tool_outputfile=$lt_tool_outputfile.exe
  9212. ;;
  9213. esac~
  9214. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9215. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9216. $RM "$lt_outputfile.manifest";
  9217. fi'
  9218. ;;
  9219. *)
  9220. # Assume MSVC wrapper
  9221. hardcode_libdir_flag_spec=' '
  9222. allow_undefined_flag=unsupported
  9223. # Tell ltmain to make .lib files, not .a files.
  9224. libext=lib
  9225. # Tell ltmain to make .dll files, not .so files.
  9226. shrext_cmds=.dll
  9227. # FIXME: Setting linknames here is a bad hack.
  9228. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9229. # The linker will automatically build a .lib file if we build a DLL.
  9230. old_archive_from_new_cmds='true'
  9231. # FIXME: Should let the user specify the lib program.
  9232. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9233. enable_shared_with_static_runtimes=yes
  9234. ;;
  9235. esac
  9236. ;;
  9237. darwin* | rhapsody*)
  9238. archive_cmds_need_lc=no
  9239. hardcode_direct=no
  9240. hardcode_automatic=yes
  9241. hardcode_shlibpath_var=unsupported
  9242. if test yes = "$lt_cv_ld_force_load"; then
  9243. 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\"`'
  9244. else
  9245. whole_archive_flag_spec=''
  9246. fi
  9247. link_all_deplibs=yes
  9248. allow_undefined_flag=$_lt_dar_allow_undefined
  9249. case $cc_basename in
  9250. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9251. *) _lt_dar_can_shared=$GCC ;;
  9252. esac
  9253. if test yes = "$_lt_dar_can_shared"; then
  9254. output_verbose_link_cmd=func_echo_all
  9255. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9256. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9257. 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"
  9258. 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"
  9259. else
  9260. ld_shlibs=no
  9261. fi
  9262. ;;
  9263. dgux*)
  9264. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9265. hardcode_libdir_flag_spec='-L$libdir'
  9266. hardcode_shlibpath_var=no
  9267. ;;
  9268. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9269. # support. Future versions do this automatically, but an explicit c++rt0.o
  9270. # does not break anything, and helps significantly (at the cost of a little
  9271. # extra space).
  9272. freebsd2.2*)
  9273. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9274. hardcode_libdir_flag_spec='-R$libdir'
  9275. hardcode_direct=yes
  9276. hardcode_shlibpath_var=no
  9277. ;;
  9278. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9279. freebsd2.*)
  9280. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9281. hardcode_direct=yes
  9282. hardcode_minus_L=yes
  9283. hardcode_shlibpath_var=no
  9284. ;;
  9285. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9286. freebsd* | dragonfly* | midnightbsd*)
  9287. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9288. hardcode_libdir_flag_spec='-R$libdir'
  9289. hardcode_direct=yes
  9290. hardcode_shlibpath_var=no
  9291. ;;
  9292. hpux9*)
  9293. if test yes = "$GCC"; then
  9294. 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'
  9295. else
  9296. 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'
  9297. fi
  9298. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9299. hardcode_libdir_separator=:
  9300. hardcode_direct=yes
  9301. # hardcode_minus_L: Not really in the search PATH,
  9302. # but as the default location of the library.
  9303. hardcode_minus_L=yes
  9304. export_dynamic_flag_spec='$wl-E'
  9305. ;;
  9306. hpux10*)
  9307. if test yes,no = "$GCC,$with_gnu_ld"; then
  9308. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9309. else
  9310. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9311. fi
  9312. if test no = "$with_gnu_ld"; then
  9313. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9314. hardcode_libdir_separator=:
  9315. hardcode_direct=yes
  9316. hardcode_direct_absolute=yes
  9317. export_dynamic_flag_spec='$wl-E'
  9318. # hardcode_minus_L: Not really in the search PATH,
  9319. # but as the default location of the library.
  9320. hardcode_minus_L=yes
  9321. fi
  9322. ;;
  9323. hpux11*)
  9324. if test yes,no = "$GCC,$with_gnu_ld"; then
  9325. case $host_cpu in
  9326. hppa*64*)
  9327. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9328. ;;
  9329. ia64*)
  9330. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9331. ;;
  9332. *)
  9333. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9334. ;;
  9335. esac
  9336. else
  9337. case $host_cpu in
  9338. hppa*64*)
  9339. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9340. ;;
  9341. ia64*)
  9342. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9343. ;;
  9344. *)
  9345. # Older versions of the 11.00 compiler do not understand -b yet
  9346. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9348. printf %s "checking if $CC understands -b... " >&6; }
  9349. if test ${lt_cv_prog_compiler__b+y}
  9350. then :
  9351. printf %s "(cached) " >&6
  9352. else $as_nop
  9353. lt_cv_prog_compiler__b=no
  9354. save_LDFLAGS=$LDFLAGS
  9355. LDFLAGS="$LDFLAGS -b"
  9356. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9357. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9358. # The linker can only warn and ignore the option if not recognized
  9359. # So say no if there are warnings
  9360. if test -s conftest.err; then
  9361. # Append any errors to the config.log.
  9362. cat conftest.err 1>&5
  9363. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9364. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9365. if diff conftest.exp conftest.er2 >/dev/null; then
  9366. lt_cv_prog_compiler__b=yes
  9367. fi
  9368. else
  9369. lt_cv_prog_compiler__b=yes
  9370. fi
  9371. fi
  9372. $RM -r conftest*
  9373. LDFLAGS=$save_LDFLAGS
  9374. fi
  9375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9376. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9377. if test yes = "$lt_cv_prog_compiler__b"; then
  9378. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9379. else
  9380. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9381. fi
  9382. ;;
  9383. esac
  9384. fi
  9385. if test no = "$with_gnu_ld"; then
  9386. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9387. hardcode_libdir_separator=:
  9388. case $host_cpu in
  9389. hppa*64*|ia64*)
  9390. hardcode_direct=no
  9391. hardcode_shlibpath_var=no
  9392. ;;
  9393. *)
  9394. hardcode_direct=yes
  9395. hardcode_direct_absolute=yes
  9396. export_dynamic_flag_spec='$wl-E'
  9397. # hardcode_minus_L: Not really in the search PATH,
  9398. # but as the default location of the library.
  9399. hardcode_minus_L=yes
  9400. ;;
  9401. esac
  9402. fi
  9403. ;;
  9404. irix5* | irix6* | nonstopux*)
  9405. if test yes = "$GCC"; then
  9406. 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'
  9407. # Try to use the -exported_symbol ld option, if it does not
  9408. # work, assume that -exports_file does not work either and
  9409. # implicitly export all symbols.
  9410. # This should be the same for all languages, so no per-tag cache variable.
  9411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9412. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9413. if test ${lt_cv_irix_exported_symbol+y}
  9414. then :
  9415. printf %s "(cached) " >&6
  9416. else $as_nop
  9417. save_LDFLAGS=$LDFLAGS
  9418. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9420. /* end confdefs.h. */
  9421. int foo (void) { return 0; }
  9422. _ACEOF
  9423. if ac_fn_c_try_link "$LINENO"
  9424. then :
  9425. lt_cv_irix_exported_symbol=yes
  9426. else $as_nop
  9427. lt_cv_irix_exported_symbol=no
  9428. fi
  9429. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9430. conftest$ac_exeext conftest.$ac_ext
  9431. LDFLAGS=$save_LDFLAGS
  9432. fi
  9433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9434. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9435. if test yes = "$lt_cv_irix_exported_symbol"; then
  9436. 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'
  9437. fi
  9438. else
  9439. 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'
  9440. 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'
  9441. fi
  9442. archive_cmds_need_lc='no'
  9443. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9444. hardcode_libdir_separator=:
  9445. inherit_rpath=yes
  9446. link_all_deplibs=yes
  9447. ;;
  9448. linux*)
  9449. case $cc_basename in
  9450. tcc*)
  9451. # Fabrice Bellard et al's Tiny C Compiler
  9452. ld_shlibs=yes
  9453. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9454. ;;
  9455. esac
  9456. ;;
  9457. netbsd*)
  9458. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9459. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9460. else
  9461. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9462. fi
  9463. hardcode_libdir_flag_spec='-R$libdir'
  9464. hardcode_direct=yes
  9465. hardcode_shlibpath_var=no
  9466. ;;
  9467. newsos6)
  9468. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9469. hardcode_direct=yes
  9470. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9471. hardcode_libdir_separator=:
  9472. hardcode_shlibpath_var=no
  9473. ;;
  9474. *nto* | *qnx*)
  9475. ;;
  9476. openbsd* | bitrig*)
  9477. if test -f /usr/libexec/ld.so; then
  9478. hardcode_direct=yes
  9479. hardcode_shlibpath_var=no
  9480. hardcode_direct_absolute=yes
  9481. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9482. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9483. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9484. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9485. export_dynamic_flag_spec='$wl-E'
  9486. else
  9487. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9488. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9489. fi
  9490. else
  9491. ld_shlibs=no
  9492. fi
  9493. ;;
  9494. os2*)
  9495. hardcode_libdir_flag_spec='-L$libdir'
  9496. hardcode_minus_L=yes
  9497. allow_undefined_flag=unsupported
  9498. shrext_cmds=.dll
  9499. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9500. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9501. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9502. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9503. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9504. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9505. emximp -o $lib $output_objdir/$libname.def'
  9506. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9507. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9508. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9509. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9510. prefix_cmds="$SED"~
  9511. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9512. prefix_cmds="$prefix_cmds -e 1d";
  9513. fi~
  9514. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9515. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9516. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9517. emximp -o $lib $output_objdir/$libname.def'
  9518. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9519. enable_shared_with_static_runtimes=yes
  9520. file_list_spec='@'
  9521. ;;
  9522. osf3*)
  9523. if test yes = "$GCC"; then
  9524. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9525. 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'
  9526. else
  9527. allow_undefined_flag=' -expect_unresolved \*'
  9528. 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'
  9529. fi
  9530. archive_cmds_need_lc='no'
  9531. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9532. hardcode_libdir_separator=:
  9533. ;;
  9534. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9535. if test yes = "$GCC"; then
  9536. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9537. 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'
  9538. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9539. else
  9540. allow_undefined_flag=' -expect_unresolved \*'
  9541. 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'
  9542. 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~
  9543. $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'
  9544. # Both c and cxx compiler support -rpath directly
  9545. hardcode_libdir_flag_spec='-rpath $libdir'
  9546. fi
  9547. archive_cmds_need_lc='no'
  9548. hardcode_libdir_separator=:
  9549. ;;
  9550. solaris*)
  9551. no_undefined_flag=' -z defs'
  9552. if test yes = "$GCC"; then
  9553. wlarc='$wl'
  9554. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$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 -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'
  9557. else
  9558. case `$CC -V 2>&1` in
  9559. *"Compilers 5.0"*)
  9560. wlarc=''
  9561. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9562. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9563. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9564. ;;
  9565. *)
  9566. wlarc='$wl'
  9567. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9568. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9569. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9570. ;;
  9571. esac
  9572. fi
  9573. hardcode_libdir_flag_spec='-R$libdir'
  9574. hardcode_shlibpath_var=no
  9575. case $host_os in
  9576. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9577. *)
  9578. # The compiler driver will combine and reorder linker options,
  9579. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9580. # but is careful enough not to reorder.
  9581. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9582. if test yes = "$GCC"; then
  9583. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9584. else
  9585. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9586. fi
  9587. ;;
  9588. esac
  9589. link_all_deplibs=yes
  9590. ;;
  9591. sunos4*)
  9592. if test sequent = "$host_vendor"; then
  9593. # Use $CC to link under sequent, because it throws in some extra .o
  9594. # files that make .init and .fini sections work.
  9595. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9596. else
  9597. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9598. fi
  9599. hardcode_libdir_flag_spec='-L$libdir'
  9600. hardcode_direct=yes
  9601. hardcode_minus_L=yes
  9602. hardcode_shlibpath_var=no
  9603. ;;
  9604. sysv4)
  9605. case $host_vendor in
  9606. sni)
  9607. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9608. hardcode_direct=yes # is this really true???
  9609. ;;
  9610. siemens)
  9611. ## LD is ld it makes a PLAMLIB
  9612. ## CC just makes a GrossModule.
  9613. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9614. reload_cmds='$CC -r -o $output$reload_objs'
  9615. hardcode_direct=no
  9616. ;;
  9617. motorola)
  9618. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9619. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9620. ;;
  9621. esac
  9622. runpath_var='LD_RUN_PATH'
  9623. hardcode_shlibpath_var=no
  9624. ;;
  9625. sysv4.3*)
  9626. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9627. hardcode_shlibpath_var=no
  9628. export_dynamic_flag_spec='-Bexport'
  9629. ;;
  9630. sysv4*MP*)
  9631. if test -d /usr/nec; then
  9632. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9633. hardcode_shlibpath_var=no
  9634. runpath_var=LD_RUN_PATH
  9635. hardcode_runpath_var=yes
  9636. ld_shlibs=yes
  9637. fi
  9638. ;;
  9639. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9640. no_undefined_flag='$wl-z,text'
  9641. archive_cmds_need_lc=no
  9642. hardcode_shlibpath_var=no
  9643. runpath_var='LD_RUN_PATH'
  9644. if test yes = "$GCC"; then
  9645. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9646. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9647. else
  9648. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9649. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9650. fi
  9651. ;;
  9652. sysv5* | sco3.2v5* | sco5v6*)
  9653. # Note: We CANNOT use -z defs as we might desire, because we do not
  9654. # link with -lc, and that would cause any symbols used from libc to
  9655. # always be unresolved, which means just about no library would
  9656. # ever link correctly. If we're not using GNU ld we use -z text
  9657. # though, which does catch some bad symbols but isn't as heavy-handed
  9658. # as -z defs.
  9659. no_undefined_flag='$wl-z,text'
  9660. allow_undefined_flag='$wl-z,nodefs'
  9661. archive_cmds_need_lc=no
  9662. hardcode_shlibpath_var=no
  9663. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9664. hardcode_libdir_separator=':'
  9665. link_all_deplibs=yes
  9666. export_dynamic_flag_spec='$wl-Bexport'
  9667. runpath_var='LD_RUN_PATH'
  9668. if test yes = "$GCC"; then
  9669. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9670. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9671. else
  9672. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9673. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9674. fi
  9675. ;;
  9676. uts4*)
  9677. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9678. hardcode_libdir_flag_spec='-L$libdir'
  9679. hardcode_shlibpath_var=no
  9680. ;;
  9681. *)
  9682. ld_shlibs=no
  9683. ;;
  9684. esac
  9685. if test sni = "$host_vendor"; then
  9686. case $host in
  9687. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9688. export_dynamic_flag_spec='$wl-Blargedynsym'
  9689. ;;
  9690. esac
  9691. fi
  9692. fi
  9693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9694. printf "%s\n" "$ld_shlibs" >&6; }
  9695. test no = "$ld_shlibs" && can_build_shared=no
  9696. with_gnu_ld=$with_gnu_ld
  9697. #
  9698. # Do we need to explicitly link libc?
  9699. #
  9700. case "x$archive_cmds_need_lc" in
  9701. x|xyes)
  9702. # Assume -lc should be added
  9703. archive_cmds_need_lc=yes
  9704. if test yes,yes = "$GCC,$enable_shared"; then
  9705. case $archive_cmds in
  9706. *'~'*)
  9707. # FIXME: we may have to deal with multi-command sequences.
  9708. ;;
  9709. '$CC '*)
  9710. # Test whether the compiler implicitly links with -lc since on some
  9711. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9712. # to ld, don't add -lc before -lgcc.
  9713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9714. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9715. if test ${lt_cv_archive_cmds_need_lc+y}
  9716. then :
  9717. printf %s "(cached) " >&6
  9718. else $as_nop
  9719. $RM conftest*
  9720. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9721. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9722. (eval $ac_compile) 2>&5
  9723. ac_status=$?
  9724. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9725. test $ac_status = 0; } 2>conftest.err; then
  9726. soname=conftest
  9727. lib=conftest
  9728. libobjs=conftest.$ac_objext
  9729. deplibs=
  9730. wl=$lt_prog_compiler_wl
  9731. pic_flag=$lt_prog_compiler_pic
  9732. compiler_flags=-v
  9733. linker_flags=-v
  9734. verstring=
  9735. output_objdir=.
  9736. libname=conftest
  9737. lt_save_allow_undefined_flag=$allow_undefined_flag
  9738. allow_undefined_flag=
  9739. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9740. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9741. ac_status=$?
  9742. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9743. test $ac_status = 0; }
  9744. then
  9745. lt_cv_archive_cmds_need_lc=no
  9746. else
  9747. lt_cv_archive_cmds_need_lc=yes
  9748. fi
  9749. allow_undefined_flag=$lt_save_allow_undefined_flag
  9750. else
  9751. cat conftest.err 1>&5
  9752. fi
  9753. $RM conftest*
  9754. fi
  9755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9756. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9757. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9758. ;;
  9759. esac
  9760. fi
  9761. ;;
  9762. esac
  9763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9764. printf %s "checking dynamic linker characteristics... " >&6; }
  9765. if test yes = "$GCC"; then
  9766. case $host_os in
  9767. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9768. *) lt_awk_arg='/^libraries:/' ;;
  9769. esac
  9770. case $host_os in
  9771. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9772. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9773. esac
  9774. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9775. case $lt_search_path_spec in
  9776. *\;*)
  9777. # if the path contains ";" then we assume it to be the separator
  9778. # otherwise default to the standard path separator (i.e. ":") - it is
  9779. # assumed that no part of a normal pathname contains ";" but that should
  9780. # okay in the real world where ";" in dirpaths is itself problematic.
  9781. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9782. ;;
  9783. *)
  9784. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9785. ;;
  9786. esac
  9787. # Ok, now we have the path, separated by spaces, we can step through it
  9788. # and add multilib dir if necessary...
  9789. lt_tmp_lt_search_path_spec=
  9790. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9791. # ...but if some path component already ends with the multilib dir we assume
  9792. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9793. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9794. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9795. lt_multi_os_dir=
  9796. ;;
  9797. esac
  9798. for lt_sys_path in $lt_search_path_spec; do
  9799. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9800. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9801. elif test -n "$lt_multi_os_dir"; then
  9802. test -d "$lt_sys_path" && \
  9803. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9804. fi
  9805. done
  9806. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9807. BEGIN {RS = " "; FS = "/|\n";} {
  9808. lt_foo = "";
  9809. lt_count = 0;
  9810. for (lt_i = NF; lt_i > 0; lt_i--) {
  9811. if ($lt_i != "" && $lt_i != ".") {
  9812. if ($lt_i == "..") {
  9813. lt_count++;
  9814. } else {
  9815. if (lt_count == 0) {
  9816. lt_foo = "/" $lt_i lt_foo;
  9817. } else {
  9818. lt_count--;
  9819. }
  9820. }
  9821. }
  9822. }
  9823. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9824. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9825. }'`
  9826. # AWK program above erroneously prepends '/' to C:/dos/paths
  9827. # for these hosts.
  9828. case $host_os in
  9829. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9830. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9831. esac
  9832. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9833. else
  9834. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9835. fi
  9836. library_names_spec=
  9837. libname_spec='lib$name'
  9838. soname_spec=
  9839. shrext_cmds=.so
  9840. postinstall_cmds=
  9841. postuninstall_cmds=
  9842. finish_cmds=
  9843. finish_eval=
  9844. shlibpath_var=
  9845. shlibpath_overrides_runpath=unknown
  9846. version_type=none
  9847. dynamic_linker="$host_os ld.so"
  9848. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9849. need_lib_prefix=unknown
  9850. hardcode_into_libs=no
  9851. # when you set need_version to no, make sure it does not cause -set_version
  9852. # flags to be left without arguments
  9853. need_version=unknown
  9854. case $host_os in
  9855. aix3*)
  9856. version_type=linux # correct to gnu/linux during the next big refactor
  9857. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9858. shlibpath_var=LIBPATH
  9859. # AIX 3 has no versioning support, so we append a major version to the name.
  9860. soname_spec='$libname$release$shared_ext$major'
  9861. ;;
  9862. aix[4-9]*)
  9863. version_type=linux # correct to gnu/linux during the next big refactor
  9864. need_lib_prefix=no
  9865. need_version=no
  9866. hardcode_into_libs=yes
  9867. if test ia64 = "$host_cpu"; then
  9868. # AIX 5 supports IA64
  9869. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9870. shlibpath_var=LD_LIBRARY_PATH
  9871. else
  9872. # With GCC up to 2.95.x, collect2 would create an import file
  9873. # for dependence libraries. The import file would start with
  9874. # the line '#! .'. This would cause the generated library to
  9875. # depend on '.', always an invalid library. This was fixed in
  9876. # development snapshots of GCC prior to 3.0.
  9877. case $host_os in
  9878. aix4 | aix4.[01] | aix4.[01].*)
  9879. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9880. echo ' yes '
  9881. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9882. :
  9883. else
  9884. can_build_shared=no
  9885. fi
  9886. ;;
  9887. esac
  9888. # Using Import Files as archive members, it is possible to support
  9889. # filename-based versioning of shared library archives on AIX. While
  9890. # this would work for both with and without runtime linking, it will
  9891. # prevent static linking of such archives. So we do filename-based
  9892. # shared library versioning with .so extension only, which is used
  9893. # when both runtime linking and shared linking is enabled.
  9894. # Unfortunately, runtime linking may impact performance, so we do
  9895. # not want this to be the default eventually. Also, we use the
  9896. # versioned .so libs for executables only if there is the -brtl
  9897. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9898. # To allow for filename-based versioning support, we need to create
  9899. # libNAME.so.V as an archive file, containing:
  9900. # *) an Import File, referring to the versioned filename of the
  9901. # archive as well as the shared archive member, telling the
  9902. # bitwidth (32 or 64) of that shared object, and providing the
  9903. # list of exported symbols of that shared object, eventually
  9904. # decorated with the 'weak' keyword
  9905. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9906. # it being seen by the linker.
  9907. # At run time we better use the real file rather than another symlink,
  9908. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9909. case $with_aix_soname,$aix_use_runtimelinking in
  9910. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9911. # soname into executable. Probably we can add versioning support to
  9912. # collect2, so additional links can be useful in future.
  9913. aix,yes) # traditional libtool
  9914. dynamic_linker='AIX unversionable lib.so'
  9915. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9916. # instead of lib<name>.a to let people know that these are not
  9917. # typical AIX shared libraries.
  9918. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9919. ;;
  9920. aix,no) # traditional AIX only
  9921. dynamic_linker='AIX lib.a(lib.so.V)'
  9922. # We preserve .a as extension for shared libraries through AIX4.2
  9923. # and later when we are not doing run time linking.
  9924. library_names_spec='$libname$release.a $libname.a'
  9925. soname_spec='$libname$release$shared_ext$major'
  9926. ;;
  9927. svr4,*) # full svr4 only
  9928. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9929. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9930. # We do not specify a path in Import Files, so LIBPATH fires.
  9931. shlibpath_overrides_runpath=yes
  9932. ;;
  9933. *,yes) # both, prefer svr4
  9934. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9935. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9936. # unpreferred sharedlib libNAME.a needs extra handling
  9937. 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"'
  9938. 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"'
  9939. # We do not specify a path in Import Files, so LIBPATH fires.
  9940. shlibpath_overrides_runpath=yes
  9941. ;;
  9942. *,no) # both, prefer aix
  9943. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9944. library_names_spec='$libname$release.a $libname.a'
  9945. soname_spec='$libname$release$shared_ext$major'
  9946. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9947. 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)'
  9948. 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"'
  9949. ;;
  9950. esac
  9951. shlibpath_var=LIBPATH
  9952. fi
  9953. ;;
  9954. amigaos*)
  9955. case $host_cpu in
  9956. powerpc)
  9957. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9958. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9959. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9960. ;;
  9961. m68k)
  9962. library_names_spec='$libname.ixlibrary $libname.a'
  9963. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9964. 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'
  9965. ;;
  9966. esac
  9967. ;;
  9968. beos*)
  9969. library_names_spec='$libname$shared_ext'
  9970. dynamic_linker="$host_os ld.so"
  9971. shlibpath_var=LIBRARY_PATH
  9972. ;;
  9973. bsdi[45]*)
  9974. version_type=linux # correct to gnu/linux during the next big refactor
  9975. need_version=no
  9976. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9977. soname_spec='$libname$release$shared_ext$major'
  9978. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9979. shlibpath_var=LD_LIBRARY_PATH
  9980. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9981. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9982. # the default ld.so.conf also contains /usr/contrib/lib and
  9983. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9984. # libtool to hard-code these into programs
  9985. ;;
  9986. cygwin* | mingw* | pw32* | cegcc*)
  9987. version_type=windows
  9988. shrext_cmds=.dll
  9989. need_version=no
  9990. need_lib_prefix=no
  9991. case $GCC,$cc_basename in
  9992. yes,*)
  9993. # gcc
  9994. library_names_spec='$libname.dll.a'
  9995. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9996. postinstall_cmds='base_file=`basename \$file`~
  9997. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9998. dldir=$destdir/`dirname \$dlpath`~
  9999. test -d \$dldir || mkdir -p \$dldir~
  10000. $install_prog $dir/$dlname \$dldir/$dlname~
  10001. chmod a+x \$dldir/$dlname~
  10002. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10003. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10004. fi'
  10005. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10006. dlpath=$dir/\$dldll~
  10007. $RM \$dlpath'
  10008. shlibpath_overrides_runpath=yes
  10009. case $host_os in
  10010. cygwin*)
  10011. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10012. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10013. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  10014. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10015. ;;
  10016. mingw* | cegcc*)
  10017. # MinGW DLLs use traditional 'lib' prefix
  10018. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10019. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  10020. ;;
  10021. pw32*)
  10022. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10023. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10024. ;;
  10025. esac
  10026. dynamic_linker='Win32 ld.exe'
  10027. ;;
  10028. *,cl*)
  10029. # Native MSVC
  10030. libname_spec='$name'
  10031. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10032. library_names_spec='$libname.dll.lib'
  10033. case $build_os in
  10034. mingw*)
  10035. sys_lib_search_path_spec=
  10036. lt_save_ifs=$IFS
  10037. IFS=';'
  10038. for lt_path in $LIB
  10039. do
  10040. IFS=$lt_save_ifs
  10041. # Let DOS variable expansion print the short 8.3 style file name.
  10042. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10043. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10044. done
  10045. IFS=$lt_save_ifs
  10046. # Convert to MSYS style.
  10047. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10048. ;;
  10049. cygwin*)
  10050. # Convert to unix form, then to dos form, then back to unix form
  10051. # but this time dos style (no spaces!) so that the unix form looks
  10052. # like /cygdrive/c/PROGRA~1:/cygdr...
  10053. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10054. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10055. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10056. ;;
  10057. *)
  10058. sys_lib_search_path_spec=$LIB
  10059. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10060. # It is most probably a Windows format PATH.
  10061. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10062. else
  10063. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10064. fi
  10065. # FIXME: find the short name or the path components, as spaces are
  10066. # common. (e.g. "Program Files" -> "PROGRA~1")
  10067. ;;
  10068. esac
  10069. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10070. postinstall_cmds='base_file=`basename \$file`~
  10071. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10072. dldir=$destdir/`dirname \$dlpath`~
  10073. test -d \$dldir || mkdir -p \$dldir~
  10074. $install_prog $dir/$dlname \$dldir/$dlname'
  10075. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10076. dlpath=$dir/\$dldll~
  10077. $RM \$dlpath'
  10078. shlibpath_overrides_runpath=yes
  10079. dynamic_linker='Win32 link.exe'
  10080. ;;
  10081. *)
  10082. # Assume MSVC wrapper
  10083. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10084. dynamic_linker='Win32 ld.exe'
  10085. ;;
  10086. esac
  10087. # FIXME: first we should search . and the directory the executable is in
  10088. shlibpath_var=PATH
  10089. ;;
  10090. darwin* | rhapsody*)
  10091. dynamic_linker="$host_os dyld"
  10092. version_type=darwin
  10093. need_lib_prefix=no
  10094. need_version=no
  10095. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10096. soname_spec='$libname$release$major$shared_ext'
  10097. shlibpath_overrides_runpath=yes
  10098. shlibpath_var=DYLD_LIBRARY_PATH
  10099. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10100. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10101. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10102. ;;
  10103. dgux*)
  10104. version_type=linux # correct to gnu/linux during the next big refactor
  10105. need_lib_prefix=no
  10106. need_version=no
  10107. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10108. soname_spec='$libname$release$shared_ext$major'
  10109. shlibpath_var=LD_LIBRARY_PATH
  10110. ;;
  10111. freebsd* | dragonfly* | midnightbsd*)
  10112. # DragonFly does not have aout. When/if they implement a new
  10113. # versioning mechanism, adjust this.
  10114. if test -x /usr/bin/objformat; then
  10115. objformat=`/usr/bin/objformat`
  10116. else
  10117. case $host_os in
  10118. freebsd[23].*) objformat=aout ;;
  10119. *) objformat=elf ;;
  10120. esac
  10121. fi
  10122. version_type=freebsd-$objformat
  10123. case $version_type in
  10124. freebsd-elf*)
  10125. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10126. soname_spec='$libname$release$shared_ext$major'
  10127. need_version=no
  10128. need_lib_prefix=no
  10129. ;;
  10130. freebsd-*)
  10131. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10132. need_version=yes
  10133. ;;
  10134. esac
  10135. shlibpath_var=LD_LIBRARY_PATH
  10136. case $host_os in
  10137. freebsd2.*)
  10138. shlibpath_overrides_runpath=yes
  10139. ;;
  10140. freebsd3.[01]* | freebsdelf3.[01]*)
  10141. shlibpath_overrides_runpath=yes
  10142. hardcode_into_libs=yes
  10143. ;;
  10144. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10145. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10146. shlibpath_overrides_runpath=no
  10147. hardcode_into_libs=yes
  10148. ;;
  10149. *) # from 4.6 on, and DragonFly
  10150. shlibpath_overrides_runpath=yes
  10151. hardcode_into_libs=yes
  10152. ;;
  10153. esac
  10154. ;;
  10155. haiku*)
  10156. version_type=linux # correct to gnu/linux during the next big refactor
  10157. need_lib_prefix=no
  10158. need_version=no
  10159. dynamic_linker="$host_os runtime_loader"
  10160. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10161. soname_spec='$libname$release$shared_ext$major'
  10162. shlibpath_var=LIBRARY_PATH
  10163. shlibpath_overrides_runpath=no
  10164. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10165. hardcode_into_libs=yes
  10166. ;;
  10167. hpux9* | hpux10* | hpux11*)
  10168. # Give a soname corresponding to the major version so that dld.sl refuses to
  10169. # link against other versions.
  10170. version_type=sunos
  10171. need_lib_prefix=no
  10172. need_version=no
  10173. case $host_cpu in
  10174. ia64*)
  10175. shrext_cmds='.so'
  10176. hardcode_into_libs=yes
  10177. dynamic_linker="$host_os dld.so"
  10178. shlibpath_var=LD_LIBRARY_PATH
  10179. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10180. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10181. soname_spec='$libname$release$shared_ext$major'
  10182. if test 32 = "$HPUX_IA64_MODE"; then
  10183. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10184. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10185. else
  10186. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10187. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10188. fi
  10189. ;;
  10190. hppa*64*)
  10191. shrext_cmds='.sl'
  10192. hardcode_into_libs=yes
  10193. dynamic_linker="$host_os dld.sl"
  10194. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10195. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10196. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10197. soname_spec='$libname$release$shared_ext$major'
  10198. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10199. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10200. ;;
  10201. *)
  10202. shrext_cmds='.sl'
  10203. dynamic_linker="$host_os dld.sl"
  10204. shlibpath_var=SHLIB_PATH
  10205. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  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. ;;
  10209. esac
  10210. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10211. postinstall_cmds='chmod 555 $lib'
  10212. # or fails outright, so override atomically:
  10213. install_override_mode=555
  10214. ;;
  10215. interix[3-9]*)
  10216. version_type=linux # correct to gnu/linux during the next big refactor
  10217. need_lib_prefix=no
  10218. need_version=no
  10219. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10220. soname_spec='$libname$release$shared_ext$major'
  10221. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10222. shlibpath_var=LD_LIBRARY_PATH
  10223. shlibpath_overrides_runpath=no
  10224. hardcode_into_libs=yes
  10225. ;;
  10226. irix5* | irix6* | nonstopux*)
  10227. case $host_os in
  10228. nonstopux*) version_type=nonstopux ;;
  10229. *)
  10230. if test yes = "$lt_cv_prog_gnu_ld"; then
  10231. version_type=linux # correct to gnu/linux during the next big refactor
  10232. else
  10233. version_type=irix
  10234. fi ;;
  10235. esac
  10236. need_lib_prefix=no
  10237. need_version=no
  10238. soname_spec='$libname$release$shared_ext$major'
  10239. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10240. case $host_os in
  10241. irix5* | nonstopux*)
  10242. libsuff= shlibsuff=
  10243. ;;
  10244. *)
  10245. case $LD in # libtool.m4 will add one of these switches to LD
  10246. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10247. libsuff= shlibsuff= libmagic=32-bit;;
  10248. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10249. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10250. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10251. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10252. *) libsuff= shlibsuff= libmagic=never-match;;
  10253. esac
  10254. ;;
  10255. esac
  10256. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10257. shlibpath_overrides_runpath=no
  10258. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10259. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10260. hardcode_into_libs=yes
  10261. ;;
  10262. # No shared lib support for Linux oldld, aout, or coff.
  10263. linux*oldld* | linux*aout* | linux*coff*)
  10264. dynamic_linker=no
  10265. ;;
  10266. linux*android*)
  10267. version_type=none # Android doesn't support versioned libraries.
  10268. need_lib_prefix=no
  10269. need_version=no
  10270. library_names_spec='$libname$release$shared_ext'
  10271. soname_spec='$libname$release$shared_ext'
  10272. finish_cmds=
  10273. shlibpath_var=LD_LIBRARY_PATH
  10274. shlibpath_overrides_runpath=yes
  10275. # This implies no fast_install, which is unacceptable.
  10276. # Some rework will be needed to allow for fast_install
  10277. # before this can be enabled.
  10278. hardcode_into_libs=yes
  10279. dynamic_linker='Android linker'
  10280. # Don't embed -rpath directories since the linker doesn't support them.
  10281. hardcode_libdir_flag_spec='-L$libdir'
  10282. ;;
  10283. # This must be glibc/ELF.
  10284. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10285. version_type=linux # correct to gnu/linux during the next big refactor
  10286. need_lib_prefix=no
  10287. need_version=no
  10288. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10289. soname_spec='$libname$release$shared_ext$major'
  10290. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10291. shlibpath_var=LD_LIBRARY_PATH
  10292. shlibpath_overrides_runpath=no
  10293. # Some binutils ld are patched to set DT_RUNPATH
  10294. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10295. then :
  10296. printf %s "(cached) " >&6
  10297. else $as_nop
  10298. lt_cv_shlibpath_overrides_runpath=no
  10299. save_LDFLAGS=$LDFLAGS
  10300. save_libdir=$libdir
  10301. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10302. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10304. /* end confdefs.h. */
  10305. int
  10306. main (void)
  10307. {
  10308. ;
  10309. return 0;
  10310. }
  10311. _ACEOF
  10312. if ac_fn_c_try_link "$LINENO"
  10313. then :
  10314. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10315. then :
  10316. lt_cv_shlibpath_overrides_runpath=yes
  10317. fi
  10318. fi
  10319. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10320. conftest$ac_exeext conftest.$ac_ext
  10321. LDFLAGS=$save_LDFLAGS
  10322. libdir=$save_libdir
  10323. fi
  10324. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10325. # This implies no fast_install, which is unacceptable.
  10326. # Some rework will be needed to allow for fast_install
  10327. # before this can be enabled.
  10328. hardcode_into_libs=yes
  10329. # Add ABI-specific directories to the system library path.
  10330. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10331. # Ideally, we could use ldconfig to report *all* directores which are
  10332. # searched for libraries, however this is still not possible. Aside from not
  10333. # being certain /sbin/ldconfig is available, command
  10334. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10335. # even though it is searched at run-time. Try to do the best guess by
  10336. # appending ld.so.conf contents (and includes) to the search path.
  10337. if test -f /etc/ld.so.conf; then
  10338. 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' ' '`
  10339. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10340. fi
  10341. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10342. # powerpc, because MkLinux only supported shared libraries with the
  10343. # GNU dynamic linker. Since this was broken with cross compilers,
  10344. # most powerpc-linux boxes support dynamic linking these days and
  10345. # people can always --disable-shared, the test was removed, and we
  10346. # assume the GNU/Linux dynamic linker is in use.
  10347. dynamic_linker='GNU/Linux ld.so'
  10348. ;;
  10349. netbsd*)
  10350. version_type=sunos
  10351. need_lib_prefix=no
  10352. need_version=no
  10353. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10354. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10355. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10356. dynamic_linker='NetBSD (a.out) ld.so'
  10357. else
  10358. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10359. soname_spec='$libname$release$shared_ext$major'
  10360. dynamic_linker='NetBSD ld.elf_so'
  10361. fi
  10362. shlibpath_var=LD_LIBRARY_PATH
  10363. shlibpath_overrides_runpath=yes
  10364. hardcode_into_libs=yes
  10365. ;;
  10366. newsos6)
  10367. version_type=linux # correct to gnu/linux during the next big refactor
  10368. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10369. shlibpath_var=LD_LIBRARY_PATH
  10370. shlibpath_overrides_runpath=yes
  10371. ;;
  10372. *nto* | *qnx*)
  10373. version_type=qnx
  10374. need_lib_prefix=no
  10375. need_version=no
  10376. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10377. soname_spec='$libname$release$shared_ext$major'
  10378. shlibpath_var=LD_LIBRARY_PATH
  10379. shlibpath_overrides_runpath=no
  10380. hardcode_into_libs=yes
  10381. dynamic_linker='ldqnx.so'
  10382. ;;
  10383. openbsd* | bitrig*)
  10384. version_type=sunos
  10385. sys_lib_dlsearch_path_spec=/usr/lib
  10386. need_lib_prefix=no
  10387. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10388. need_version=no
  10389. else
  10390. need_version=yes
  10391. fi
  10392. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10393. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10394. shlibpath_var=LD_LIBRARY_PATH
  10395. shlibpath_overrides_runpath=yes
  10396. ;;
  10397. os2*)
  10398. libname_spec='$name'
  10399. shrext_cmds=.dll
  10400. need_lib_prefix=no
  10401. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10402. # SDL customization: removed versioning support.
  10403. # version_type=windows
  10404. # need_version=no
  10405. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10406. # v=$($ECHO $release$versuffix | tr -d .-);
  10407. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10408. # $ECHO $n$v`$shared_ext'
  10409. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10410. library_names_spec='${libname}_dll.$libext'
  10411. dynamic_linker='OS/2 ld.exe'
  10412. shlibpath_var=BEGINLIBPATH
  10413. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10414. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10415. postinstall_cmds='base_file=`basename \$file`~
  10416. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10417. dldir=$destdir/`dirname \$dlpath`~
  10418. test -d \$dldir || mkdir -p \$dldir~
  10419. $install_prog $dir/$dlname \$dldir/$dlname~
  10420. chmod a+x \$dldir/$dlname~
  10421. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10422. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10423. fi'
  10424. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10425. dlpath=$dir/\$dldll~
  10426. $RM \$dlpath'
  10427. ;;
  10428. osf3* | osf4* | osf5*)
  10429. version_type=osf
  10430. need_lib_prefix=no
  10431. need_version=no
  10432. soname_spec='$libname$release$shared_ext$major'
  10433. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10434. shlibpath_var=LD_LIBRARY_PATH
  10435. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10436. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10437. ;;
  10438. rdos*)
  10439. dynamic_linker=no
  10440. ;;
  10441. solaris*)
  10442. version_type=linux # correct to gnu/linux during the next big refactor
  10443. need_lib_prefix=no
  10444. need_version=no
  10445. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10446. soname_spec='$libname$release$shared_ext$major'
  10447. shlibpath_var=LD_LIBRARY_PATH
  10448. shlibpath_overrides_runpath=yes
  10449. hardcode_into_libs=yes
  10450. # ldd complains unless libraries are executable
  10451. postinstall_cmds='chmod +x $lib'
  10452. ;;
  10453. sunos4*)
  10454. version_type=sunos
  10455. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10456. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10457. shlibpath_var=LD_LIBRARY_PATH
  10458. shlibpath_overrides_runpath=yes
  10459. if test yes = "$with_gnu_ld"; then
  10460. need_lib_prefix=no
  10461. fi
  10462. need_version=yes
  10463. ;;
  10464. sysv4 | sysv4.3*)
  10465. version_type=linux # correct to gnu/linux during the next big refactor
  10466. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10467. soname_spec='$libname$release$shared_ext$major'
  10468. shlibpath_var=LD_LIBRARY_PATH
  10469. case $host_vendor in
  10470. sni)
  10471. shlibpath_overrides_runpath=no
  10472. need_lib_prefix=no
  10473. runpath_var=LD_RUN_PATH
  10474. ;;
  10475. siemens)
  10476. need_lib_prefix=no
  10477. ;;
  10478. motorola)
  10479. need_lib_prefix=no
  10480. need_version=no
  10481. shlibpath_overrides_runpath=no
  10482. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10483. ;;
  10484. esac
  10485. ;;
  10486. sysv4*MP*)
  10487. if test -d /usr/nec; then
  10488. version_type=linux # correct to gnu/linux during the next big refactor
  10489. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10490. soname_spec='$libname$shared_ext.$major'
  10491. shlibpath_var=LD_LIBRARY_PATH
  10492. fi
  10493. ;;
  10494. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10495. version_type=sco
  10496. need_lib_prefix=no
  10497. need_version=no
  10498. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10499. soname_spec='$libname$release$shared_ext$major'
  10500. shlibpath_var=LD_LIBRARY_PATH
  10501. shlibpath_overrides_runpath=yes
  10502. hardcode_into_libs=yes
  10503. if test yes = "$with_gnu_ld"; then
  10504. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10505. else
  10506. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10507. case $host_os in
  10508. sco3.2v5*)
  10509. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10510. ;;
  10511. esac
  10512. fi
  10513. sys_lib_dlsearch_path_spec='/usr/lib'
  10514. ;;
  10515. tpf*)
  10516. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10517. version_type=linux # correct to gnu/linux during the next big refactor
  10518. need_lib_prefix=no
  10519. need_version=no
  10520. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10521. shlibpath_var=LD_LIBRARY_PATH
  10522. shlibpath_overrides_runpath=no
  10523. hardcode_into_libs=yes
  10524. ;;
  10525. uts4*)
  10526. version_type=linux # correct to gnu/linux during the next big refactor
  10527. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10528. soname_spec='$libname$release$shared_ext$major'
  10529. shlibpath_var=LD_LIBRARY_PATH
  10530. ;;
  10531. *)
  10532. dynamic_linker=no
  10533. ;;
  10534. esac
  10535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10536. printf "%s\n" "$dynamic_linker" >&6; }
  10537. test no = "$dynamic_linker" && can_build_shared=no
  10538. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10539. if test yes = "$GCC"; then
  10540. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10541. fi
  10542. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10543. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10544. fi
  10545. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10546. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10547. fi
  10548. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10549. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10550. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10551. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10552. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10553. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10555. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10556. hardcode_action=
  10557. if test -n "$hardcode_libdir_flag_spec" ||
  10558. test -n "$runpath_var" ||
  10559. test yes = "$hardcode_automatic"; then
  10560. # We can hardcode non-existent directories.
  10561. if test no != "$hardcode_direct" &&
  10562. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10563. # have to relink, otherwise we might link with an installed library
  10564. # when we should be linking with a yet-to-be-installed one
  10565. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10566. test no != "$hardcode_minus_L"; then
  10567. # Linking always hardcodes the temporary library directory.
  10568. hardcode_action=relink
  10569. else
  10570. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10571. hardcode_action=immediate
  10572. fi
  10573. else
  10574. # We cannot hardcode anything, or else we can only hardcode existing
  10575. # directories.
  10576. hardcode_action=unsupported
  10577. fi
  10578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10579. printf "%s\n" "$hardcode_action" >&6; }
  10580. if test relink = "$hardcode_action" ||
  10581. test yes = "$inherit_rpath"; then
  10582. # Fast installation is not supported
  10583. enable_fast_install=no
  10584. elif test yes = "$shlibpath_overrides_runpath" ||
  10585. test no = "$enable_shared"; then
  10586. # Fast installation is not necessary
  10587. enable_fast_install=needless
  10588. fi
  10589. if test yes != "$enable_dlopen"; then
  10590. enable_dlopen=unknown
  10591. enable_dlopen_self=unknown
  10592. enable_dlopen_self_static=unknown
  10593. else
  10594. lt_cv_dlopen=no
  10595. lt_cv_dlopen_libs=
  10596. case $host_os in
  10597. beos*)
  10598. lt_cv_dlopen=load_add_on
  10599. lt_cv_dlopen_libs=
  10600. lt_cv_dlopen_self=yes
  10601. ;;
  10602. mingw* | pw32* | cegcc*)
  10603. lt_cv_dlopen=LoadLibrary
  10604. lt_cv_dlopen_libs=
  10605. ;;
  10606. cygwin*)
  10607. lt_cv_dlopen=dlopen
  10608. lt_cv_dlopen_libs=
  10609. ;;
  10610. darwin*)
  10611. # if libdl is installed we need to link against it
  10612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10613. printf %s "checking for dlopen in -ldl... " >&6; }
  10614. if test ${ac_cv_lib_dl_dlopen+y}
  10615. then :
  10616. printf %s "(cached) " >&6
  10617. else $as_nop
  10618. ac_check_lib_save_LIBS=$LIBS
  10619. LIBS="-ldl $LIBS"
  10620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10621. /* end confdefs.h. */
  10622. /* Override any GCC internal prototype to avoid an error.
  10623. Use char because int might match the return type of a GCC
  10624. builtin and then its argument prototype would still apply. */
  10625. char dlopen ();
  10626. int
  10627. main (void)
  10628. {
  10629. return dlopen ();
  10630. ;
  10631. return 0;
  10632. }
  10633. _ACEOF
  10634. if ac_fn_c_try_link "$LINENO"
  10635. then :
  10636. ac_cv_lib_dl_dlopen=yes
  10637. else $as_nop
  10638. ac_cv_lib_dl_dlopen=no
  10639. fi
  10640. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10641. conftest$ac_exeext conftest.$ac_ext
  10642. LIBS=$ac_check_lib_save_LIBS
  10643. fi
  10644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10645. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10646. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10647. then :
  10648. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10649. else $as_nop
  10650. lt_cv_dlopen=dyld
  10651. lt_cv_dlopen_libs=
  10652. lt_cv_dlopen_self=yes
  10653. fi
  10654. ;;
  10655. tpf*)
  10656. # Don't try to run any link tests for TPF. We know it's impossible
  10657. # because TPF is a cross-compiler, and we know how we open DSOs.
  10658. lt_cv_dlopen=dlopen
  10659. lt_cv_dlopen_libs=
  10660. lt_cv_dlopen_self=no
  10661. ;;
  10662. *)
  10663. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10664. if test "x$ac_cv_func_shl_load" = xyes
  10665. then :
  10666. lt_cv_dlopen=shl_load
  10667. else $as_nop
  10668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10669. printf %s "checking for shl_load in -ldld... " >&6; }
  10670. if test ${ac_cv_lib_dld_shl_load+y}
  10671. then :
  10672. printf %s "(cached) " >&6
  10673. else $as_nop
  10674. ac_check_lib_save_LIBS=$LIBS
  10675. LIBS="-ldld $LIBS"
  10676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10677. /* end confdefs.h. */
  10678. /* Override any GCC internal prototype to avoid an error.
  10679. Use char because int might match the return type of a GCC
  10680. builtin and then its argument prototype would still apply. */
  10681. char shl_load ();
  10682. int
  10683. main (void)
  10684. {
  10685. return shl_load ();
  10686. ;
  10687. return 0;
  10688. }
  10689. _ACEOF
  10690. if ac_fn_c_try_link "$LINENO"
  10691. then :
  10692. ac_cv_lib_dld_shl_load=yes
  10693. else $as_nop
  10694. ac_cv_lib_dld_shl_load=no
  10695. fi
  10696. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10697. conftest$ac_exeext conftest.$ac_ext
  10698. LIBS=$ac_check_lib_save_LIBS
  10699. fi
  10700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10701. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10702. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10703. then :
  10704. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10705. else $as_nop
  10706. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10707. if test "x$ac_cv_func_dlopen" = xyes
  10708. then :
  10709. lt_cv_dlopen=dlopen
  10710. else $as_nop
  10711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10712. printf %s "checking for dlopen in -ldl... " >&6; }
  10713. if test ${ac_cv_lib_dl_dlopen+y}
  10714. then :
  10715. printf %s "(cached) " >&6
  10716. else $as_nop
  10717. ac_check_lib_save_LIBS=$LIBS
  10718. LIBS="-ldl $LIBS"
  10719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10720. /* end confdefs.h. */
  10721. /* Override any GCC internal prototype to avoid an error.
  10722. Use char because int might match the return type of a GCC
  10723. builtin and then its argument prototype would still apply. */
  10724. char dlopen ();
  10725. int
  10726. main (void)
  10727. {
  10728. return dlopen ();
  10729. ;
  10730. return 0;
  10731. }
  10732. _ACEOF
  10733. if ac_fn_c_try_link "$LINENO"
  10734. then :
  10735. ac_cv_lib_dl_dlopen=yes
  10736. else $as_nop
  10737. ac_cv_lib_dl_dlopen=no
  10738. fi
  10739. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10740. conftest$ac_exeext conftest.$ac_ext
  10741. LIBS=$ac_check_lib_save_LIBS
  10742. fi
  10743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10744. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10745. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10746. then :
  10747. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10748. else $as_nop
  10749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10750. printf %s "checking for dlopen in -lsvld... " >&6; }
  10751. if test ${ac_cv_lib_svld_dlopen+y}
  10752. then :
  10753. printf %s "(cached) " >&6
  10754. else $as_nop
  10755. ac_check_lib_save_LIBS=$LIBS
  10756. LIBS="-lsvld $LIBS"
  10757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10758. /* end confdefs.h. */
  10759. /* Override any GCC internal prototype to avoid an error.
  10760. Use char because int might match the return type of a GCC
  10761. builtin and then its argument prototype would still apply. */
  10762. char dlopen ();
  10763. int
  10764. main (void)
  10765. {
  10766. return dlopen ();
  10767. ;
  10768. return 0;
  10769. }
  10770. _ACEOF
  10771. if ac_fn_c_try_link "$LINENO"
  10772. then :
  10773. ac_cv_lib_svld_dlopen=yes
  10774. else $as_nop
  10775. ac_cv_lib_svld_dlopen=no
  10776. fi
  10777. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10778. conftest$ac_exeext conftest.$ac_ext
  10779. LIBS=$ac_check_lib_save_LIBS
  10780. fi
  10781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10782. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10783. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10784. then :
  10785. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10786. else $as_nop
  10787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10788. printf %s "checking for dld_link in -ldld... " >&6; }
  10789. if test ${ac_cv_lib_dld_dld_link+y}
  10790. then :
  10791. printf %s "(cached) " >&6
  10792. else $as_nop
  10793. ac_check_lib_save_LIBS=$LIBS
  10794. LIBS="-ldld $LIBS"
  10795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10796. /* end confdefs.h. */
  10797. /* Override any GCC internal prototype to avoid an error.
  10798. Use char because int might match the return type of a GCC
  10799. builtin and then its argument prototype would still apply. */
  10800. char dld_link ();
  10801. int
  10802. main (void)
  10803. {
  10804. return dld_link ();
  10805. ;
  10806. return 0;
  10807. }
  10808. _ACEOF
  10809. if ac_fn_c_try_link "$LINENO"
  10810. then :
  10811. ac_cv_lib_dld_dld_link=yes
  10812. else $as_nop
  10813. ac_cv_lib_dld_dld_link=no
  10814. fi
  10815. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10816. conftest$ac_exeext conftest.$ac_ext
  10817. LIBS=$ac_check_lib_save_LIBS
  10818. fi
  10819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10820. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10821. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10822. then :
  10823. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10824. fi
  10825. fi
  10826. fi
  10827. fi
  10828. fi
  10829. fi
  10830. ;;
  10831. esac
  10832. if test no = "$lt_cv_dlopen"; then
  10833. enable_dlopen=no
  10834. else
  10835. enable_dlopen=yes
  10836. fi
  10837. case $lt_cv_dlopen in
  10838. dlopen)
  10839. save_CPPFLAGS=$CPPFLAGS
  10840. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10841. save_LDFLAGS=$LDFLAGS
  10842. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10843. save_LIBS=$LIBS
  10844. LIBS="$lt_cv_dlopen_libs $LIBS"
  10845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10846. printf %s "checking whether a program can dlopen itself... " >&6; }
  10847. if test ${lt_cv_dlopen_self+y}
  10848. then :
  10849. printf %s "(cached) " >&6
  10850. else $as_nop
  10851. if test yes = "$cross_compiling"; then :
  10852. lt_cv_dlopen_self=cross
  10853. else
  10854. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10855. lt_status=$lt_dlunknown
  10856. cat > conftest.$ac_ext <<_LT_EOF
  10857. #line $LINENO "configure"
  10858. #include "confdefs.h"
  10859. #if HAVE_DLFCN_H
  10860. #include <dlfcn.h>
  10861. #endif
  10862. #include <stdio.h>
  10863. #ifdef RTLD_GLOBAL
  10864. # define LT_DLGLOBAL RTLD_GLOBAL
  10865. #else
  10866. # ifdef DL_GLOBAL
  10867. # define LT_DLGLOBAL DL_GLOBAL
  10868. # else
  10869. # define LT_DLGLOBAL 0
  10870. # endif
  10871. #endif
  10872. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10873. find out it does not work in some platform. */
  10874. #ifndef LT_DLLAZY_OR_NOW
  10875. # ifdef RTLD_LAZY
  10876. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10877. # else
  10878. # ifdef DL_LAZY
  10879. # define LT_DLLAZY_OR_NOW DL_LAZY
  10880. # else
  10881. # ifdef RTLD_NOW
  10882. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10883. # else
  10884. # ifdef DL_NOW
  10885. # define LT_DLLAZY_OR_NOW DL_NOW
  10886. # else
  10887. # define LT_DLLAZY_OR_NOW 0
  10888. # endif
  10889. # endif
  10890. # endif
  10891. # endif
  10892. #endif
  10893. /* When -fvisibility=hidden is used, assume the code has been annotated
  10894. correspondingly for the symbols needed. */
  10895. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10896. int fnord () __attribute__((visibility("default")));
  10897. #endif
  10898. int fnord () { return 42; }
  10899. int main ()
  10900. {
  10901. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10902. int status = $lt_dlunknown;
  10903. if (self)
  10904. {
  10905. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10906. else
  10907. {
  10908. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10909. else puts (dlerror ());
  10910. }
  10911. /* dlclose (self); */
  10912. }
  10913. else
  10914. puts (dlerror ());
  10915. return status;
  10916. }
  10917. _LT_EOF
  10918. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10919. (eval $ac_link) 2>&5
  10920. ac_status=$?
  10921. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10922. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10923. (./conftest; exit; ) >&5 2>/dev/null
  10924. lt_status=$?
  10925. case x$lt_status in
  10926. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10927. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10928. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10929. esac
  10930. else :
  10931. # compilation failed
  10932. lt_cv_dlopen_self=no
  10933. fi
  10934. fi
  10935. rm -fr conftest*
  10936. fi
  10937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10938. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10939. if test yes = "$lt_cv_dlopen_self"; then
  10940. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10942. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10943. if test ${lt_cv_dlopen_self_static+y}
  10944. then :
  10945. printf %s "(cached) " >&6
  10946. else $as_nop
  10947. if test yes = "$cross_compiling"; then :
  10948. lt_cv_dlopen_self_static=cross
  10949. else
  10950. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10951. lt_status=$lt_dlunknown
  10952. cat > conftest.$ac_ext <<_LT_EOF
  10953. #line $LINENO "configure"
  10954. #include "confdefs.h"
  10955. #if HAVE_DLFCN_H
  10956. #include <dlfcn.h>
  10957. #endif
  10958. #include <stdio.h>
  10959. #ifdef RTLD_GLOBAL
  10960. # define LT_DLGLOBAL RTLD_GLOBAL
  10961. #else
  10962. # ifdef DL_GLOBAL
  10963. # define LT_DLGLOBAL DL_GLOBAL
  10964. # else
  10965. # define LT_DLGLOBAL 0
  10966. # endif
  10967. #endif
  10968. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10969. find out it does not work in some platform. */
  10970. #ifndef LT_DLLAZY_OR_NOW
  10971. # ifdef RTLD_LAZY
  10972. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10973. # else
  10974. # ifdef DL_LAZY
  10975. # define LT_DLLAZY_OR_NOW DL_LAZY
  10976. # else
  10977. # ifdef RTLD_NOW
  10978. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10979. # else
  10980. # ifdef DL_NOW
  10981. # define LT_DLLAZY_OR_NOW DL_NOW
  10982. # else
  10983. # define LT_DLLAZY_OR_NOW 0
  10984. # endif
  10985. # endif
  10986. # endif
  10987. # endif
  10988. #endif
  10989. /* When -fvisibility=hidden is used, assume the code has been annotated
  10990. correspondingly for the symbols needed. */
  10991. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10992. int fnord () __attribute__((visibility("default")));
  10993. #endif
  10994. int fnord () { return 42; }
  10995. int main ()
  10996. {
  10997. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10998. int status = $lt_dlunknown;
  10999. if (self)
  11000. {
  11001. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11002. else
  11003. {
  11004. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11005. else puts (dlerror ());
  11006. }
  11007. /* dlclose (self); */
  11008. }
  11009. else
  11010. puts (dlerror ());
  11011. return status;
  11012. }
  11013. _LT_EOF
  11014. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11015. (eval $ac_link) 2>&5
  11016. ac_status=$?
  11017. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11018. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11019. (./conftest; exit; ) >&5 2>/dev/null
  11020. lt_status=$?
  11021. case x$lt_status in
  11022. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11023. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11024. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11025. esac
  11026. else :
  11027. # compilation failed
  11028. lt_cv_dlopen_self_static=no
  11029. fi
  11030. fi
  11031. rm -fr conftest*
  11032. fi
  11033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11034. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11035. fi
  11036. CPPFLAGS=$save_CPPFLAGS
  11037. LDFLAGS=$save_LDFLAGS
  11038. LIBS=$save_LIBS
  11039. ;;
  11040. esac
  11041. case $lt_cv_dlopen_self in
  11042. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11043. *) enable_dlopen_self=unknown ;;
  11044. esac
  11045. case $lt_cv_dlopen_self_static in
  11046. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11047. *) enable_dlopen_self_static=unknown ;;
  11048. esac
  11049. fi
  11050. striplib=
  11051. old_striplib=
  11052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11053. printf %s "checking whether stripping libraries is possible... " >&6; }
  11054. if test -z "$STRIP"; then
  11055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11056. printf "%s\n" "no" >&6; }
  11057. else
  11058. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11059. old_striplib="$STRIP --strip-debug"
  11060. striplib="$STRIP --strip-unneeded"
  11061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11062. printf "%s\n" "yes" >&6; }
  11063. else
  11064. case $host_os in
  11065. darwin*)
  11066. # FIXME - insert some real tests, host_os isn't really good enough
  11067. striplib="$STRIP -x"
  11068. old_striplib="$STRIP -S"
  11069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11070. printf "%s\n" "yes" >&6; }
  11071. ;;
  11072. freebsd*)
  11073. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11074. old_striplib="$STRIP --strip-debug"
  11075. striplib="$STRIP --strip-unneeded"
  11076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11077. printf "%s\n" "yes" >&6; }
  11078. else
  11079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11080. printf "%s\n" "no" >&6; }
  11081. fi
  11082. ;;
  11083. *)
  11084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11085. printf "%s\n" "no" >&6; }
  11086. ;;
  11087. esac
  11088. fi
  11089. fi
  11090. # Report what library types will actually be built
  11091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11092. printf %s "checking if libtool supports shared libraries... " >&6; }
  11093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11094. printf "%s\n" "$can_build_shared" >&6; }
  11095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11096. printf %s "checking whether to build shared libraries... " >&6; }
  11097. test no = "$can_build_shared" && enable_shared=no
  11098. # On AIX, shared libraries and static libraries use the same namespace, and
  11099. # are all built from PIC.
  11100. case $host_os in
  11101. aix3*)
  11102. test yes = "$enable_shared" && enable_static=no
  11103. if test -n "$RANLIB"; then
  11104. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11105. postinstall_cmds='$RANLIB $lib'
  11106. fi
  11107. ;;
  11108. aix[4-9]*)
  11109. if test ia64 != "$host_cpu"; then
  11110. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11111. yes,aix,yes) ;; # shared object as lib.so file only
  11112. yes,svr4,*) ;; # shared object as lib.so archive member only
  11113. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11114. esac
  11115. fi
  11116. ;;
  11117. esac
  11118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11119. printf "%s\n" "$enable_shared" >&6; }
  11120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11121. printf %s "checking whether to build static libraries... " >&6; }
  11122. # Make sure either enable_shared or enable_static is yes.
  11123. test yes = "$enable_shared" || enable_static=yes
  11124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11125. printf "%s\n" "$enable_static" >&6; }
  11126. fi
  11127. ac_ext=c
  11128. ac_cpp='$CPP $CPPFLAGS'
  11129. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11130. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11131. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11132. CC=$lt_save_CC
  11133. ac_config_commands="$ac_config_commands libtool"
  11134. # Only expand once:
  11135. if test -n "$ac_tool_prefix"; then
  11136. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11137. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11139. printf %s "checking for $ac_word... " >&6; }
  11140. if test ${ac_cv_prog_RC+y}
  11141. then :
  11142. printf %s "(cached) " >&6
  11143. else $as_nop
  11144. if test -n "$RC"; then
  11145. ac_cv_prog_RC="$RC" # Let the user override the test.
  11146. else
  11147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11148. for as_dir in $PATH
  11149. do
  11150. IFS=$as_save_IFS
  11151. case $as_dir in #(((
  11152. '') as_dir=./ ;;
  11153. */) ;;
  11154. *) as_dir=$as_dir/ ;;
  11155. esac
  11156. for ac_exec_ext in '' $ac_executable_extensions; do
  11157. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11158. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11159. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11160. break 2
  11161. fi
  11162. done
  11163. done
  11164. IFS=$as_save_IFS
  11165. fi
  11166. fi
  11167. RC=$ac_cv_prog_RC
  11168. if test -n "$RC"; then
  11169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11170. printf "%s\n" "$RC" >&6; }
  11171. else
  11172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11173. printf "%s\n" "no" >&6; }
  11174. fi
  11175. fi
  11176. if test -z "$ac_cv_prog_RC"; then
  11177. ac_ct_RC=$RC
  11178. # Extract the first word of "windres", so it can be a program name with args.
  11179. set dummy windres; ac_word=$2
  11180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11181. printf %s "checking for $ac_word... " >&6; }
  11182. if test ${ac_cv_prog_ac_ct_RC+y}
  11183. then :
  11184. printf %s "(cached) " >&6
  11185. else $as_nop
  11186. if test -n "$ac_ct_RC"; then
  11187. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11188. else
  11189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11190. for as_dir in $PATH
  11191. do
  11192. IFS=$as_save_IFS
  11193. case $as_dir in #(((
  11194. '') as_dir=./ ;;
  11195. */) ;;
  11196. *) as_dir=$as_dir/ ;;
  11197. esac
  11198. for ac_exec_ext in '' $ac_executable_extensions; do
  11199. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11200. ac_cv_prog_ac_ct_RC="windres"
  11201. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11202. break 2
  11203. fi
  11204. done
  11205. done
  11206. IFS=$as_save_IFS
  11207. fi
  11208. fi
  11209. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11210. if test -n "$ac_ct_RC"; then
  11211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11212. printf "%s\n" "$ac_ct_RC" >&6; }
  11213. else
  11214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11215. printf "%s\n" "no" >&6; }
  11216. fi
  11217. if test "x$ac_ct_RC" = x; then
  11218. RC=""
  11219. else
  11220. case $cross_compiling:$ac_tool_warned in
  11221. yes:)
  11222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11223. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11224. ac_tool_warned=yes ;;
  11225. esac
  11226. RC=$ac_ct_RC
  11227. fi
  11228. else
  11229. RC="$ac_cv_prog_RC"
  11230. fi
  11231. # Source file extension for RC test sources.
  11232. ac_ext=rc
  11233. # Object file extension for compiled RC test sources.
  11234. objext=o
  11235. objext_RC=$objext
  11236. # Code to be used in simple compile tests
  11237. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11238. # Code to be used in simple link tests
  11239. lt_simple_link_test_code=$lt_simple_compile_test_code
  11240. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11241. # If no C compiler was specified, use CC.
  11242. LTCC=${LTCC-"$CC"}
  11243. # If no C compiler flags were specified, use CFLAGS.
  11244. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11245. # Allow CC to be a program name with arguments.
  11246. compiler=$CC
  11247. # save warnings/boilerplate of simple test code
  11248. ac_outfile=conftest.$ac_objext
  11249. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11250. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11251. _lt_compiler_boilerplate=`cat conftest.err`
  11252. $RM conftest*
  11253. ac_outfile=conftest.$ac_objext
  11254. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11255. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11256. _lt_linker_boilerplate=`cat conftest.err`
  11257. $RM -r conftest*
  11258. # Allow CC to be a program name with arguments.
  11259. lt_save_CC=$CC
  11260. lt_save_CFLAGS=$CFLAGS
  11261. lt_save_GCC=$GCC
  11262. GCC=
  11263. CC=${RC-"windres"}
  11264. CFLAGS=
  11265. compiler=$CC
  11266. compiler_RC=$CC
  11267. func_cc_basename $compiler
  11268. cc_basename=$func_cc_basename_result
  11269. lt_cv_prog_compiler_c_o_RC=yes
  11270. if test -n "$compiler"; then
  11271. :
  11272. fi
  11273. GCC=$lt_save_GCC
  11274. ac_ext=c
  11275. ac_cpp='$CPP $CPPFLAGS'
  11276. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11277. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11278. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11279. CC=$lt_save_CC
  11280. CFLAGS=$lt_save_CFLAGS
  11281. # For historical reasons, the library name redundantly includes the major
  11282. # version twice: libSDL2-2.0.so.0.
  11283. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11284. LT_RELEASE=2.0
  11285. # Increment this if there is an incompatible change - but if that happens,
  11286. # we should rename the library from SDL2 to SDL3, at which point this would
  11287. # reset to 0 anyway.
  11288. LT_MAJOR=0
  11289. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11290. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11291. LT_REVISION=$SDL_INTERFACE_AGE
  11292. for ac_prog in gawk mawk nawk awk
  11293. do
  11294. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11295. set dummy $ac_prog; ac_word=$2
  11296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11297. printf %s "checking for $ac_word... " >&6; }
  11298. if test ${ac_cv_prog_AWK+y}
  11299. then :
  11300. printf %s "(cached) " >&6
  11301. else $as_nop
  11302. if test -n "$AWK"; then
  11303. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11304. else
  11305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11306. for as_dir in $PATH
  11307. do
  11308. IFS=$as_save_IFS
  11309. case $as_dir in #(((
  11310. '') as_dir=./ ;;
  11311. */) ;;
  11312. *) as_dir=$as_dir/ ;;
  11313. esac
  11314. for ac_exec_ext in '' $ac_executable_extensions; do
  11315. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11316. ac_cv_prog_AWK="$ac_prog"
  11317. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11318. break 2
  11319. fi
  11320. done
  11321. done
  11322. IFS=$as_save_IFS
  11323. fi
  11324. fi
  11325. AWK=$ac_cv_prog_AWK
  11326. if test -n "$AWK"; then
  11327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11328. printf "%s\n" "$AWK" >&6; }
  11329. else
  11330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11331. printf "%s\n" "no" >&6; }
  11332. fi
  11333. test -n "$AWK" && break
  11334. done
  11335. ac_ext=c
  11336. ac_cpp='$CPP $CPPFLAGS'
  11337. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11338. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11339. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11340. if test -n "$ac_tool_prefix"; then
  11341. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11342. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11344. printf %s "checking for $ac_word... " >&6; }
  11345. if test ${ac_cv_prog_CC+y}
  11346. then :
  11347. printf %s "(cached) " >&6
  11348. else $as_nop
  11349. if test -n "$CC"; then
  11350. ac_cv_prog_CC="$CC" # Let the user override the test.
  11351. else
  11352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11353. for as_dir in $PATH
  11354. do
  11355. IFS=$as_save_IFS
  11356. case $as_dir in #(((
  11357. '') as_dir=./ ;;
  11358. */) ;;
  11359. *) as_dir=$as_dir/ ;;
  11360. esac
  11361. for ac_exec_ext in '' $ac_executable_extensions; do
  11362. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11363. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11364. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11365. break 2
  11366. fi
  11367. done
  11368. done
  11369. IFS=$as_save_IFS
  11370. fi
  11371. fi
  11372. CC=$ac_cv_prog_CC
  11373. if test -n "$CC"; then
  11374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11375. printf "%s\n" "$CC" >&6; }
  11376. else
  11377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11378. printf "%s\n" "no" >&6; }
  11379. fi
  11380. fi
  11381. if test -z "$ac_cv_prog_CC"; then
  11382. ac_ct_CC=$CC
  11383. # Extract the first word of "gcc", so it can be a program name with args.
  11384. set dummy gcc; ac_word=$2
  11385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11386. printf %s "checking for $ac_word... " >&6; }
  11387. if test ${ac_cv_prog_ac_ct_CC+y}
  11388. then :
  11389. printf %s "(cached) " >&6
  11390. else $as_nop
  11391. if test -n "$ac_ct_CC"; then
  11392. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11393. else
  11394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11395. for as_dir in $PATH
  11396. do
  11397. IFS=$as_save_IFS
  11398. case $as_dir in #(((
  11399. '') as_dir=./ ;;
  11400. */) ;;
  11401. *) as_dir=$as_dir/ ;;
  11402. esac
  11403. for ac_exec_ext in '' $ac_executable_extensions; do
  11404. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11405. ac_cv_prog_ac_ct_CC="gcc"
  11406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11407. break 2
  11408. fi
  11409. done
  11410. done
  11411. IFS=$as_save_IFS
  11412. fi
  11413. fi
  11414. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11415. if test -n "$ac_ct_CC"; then
  11416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11417. printf "%s\n" "$ac_ct_CC" >&6; }
  11418. else
  11419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11420. printf "%s\n" "no" >&6; }
  11421. fi
  11422. if test "x$ac_ct_CC" = x; then
  11423. CC=""
  11424. else
  11425. case $cross_compiling:$ac_tool_warned in
  11426. yes:)
  11427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11428. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11429. ac_tool_warned=yes ;;
  11430. esac
  11431. CC=$ac_ct_CC
  11432. fi
  11433. else
  11434. CC="$ac_cv_prog_CC"
  11435. fi
  11436. if test -z "$CC"; then
  11437. if test -n "$ac_tool_prefix"; then
  11438. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11439. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11441. printf %s "checking for $ac_word... " >&6; }
  11442. if test ${ac_cv_prog_CC+y}
  11443. then :
  11444. printf %s "(cached) " >&6
  11445. else $as_nop
  11446. if test -n "$CC"; then
  11447. ac_cv_prog_CC="$CC" # Let the user override the test.
  11448. else
  11449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11450. for as_dir in $PATH
  11451. do
  11452. IFS=$as_save_IFS
  11453. case $as_dir in #(((
  11454. '') as_dir=./ ;;
  11455. */) ;;
  11456. *) as_dir=$as_dir/ ;;
  11457. esac
  11458. for ac_exec_ext in '' $ac_executable_extensions; do
  11459. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11460. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11461. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11462. break 2
  11463. fi
  11464. done
  11465. done
  11466. IFS=$as_save_IFS
  11467. fi
  11468. fi
  11469. CC=$ac_cv_prog_CC
  11470. if test -n "$CC"; then
  11471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11472. printf "%s\n" "$CC" >&6; }
  11473. else
  11474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11475. printf "%s\n" "no" >&6; }
  11476. fi
  11477. fi
  11478. fi
  11479. if test -z "$CC"; then
  11480. # Extract the first word of "cc", so it can be a program name with args.
  11481. set dummy cc; ac_word=$2
  11482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11483. printf %s "checking for $ac_word... " >&6; }
  11484. if test ${ac_cv_prog_CC+y}
  11485. then :
  11486. printf %s "(cached) " >&6
  11487. else $as_nop
  11488. if test -n "$CC"; then
  11489. ac_cv_prog_CC="$CC" # Let the user override the test.
  11490. else
  11491. ac_prog_rejected=no
  11492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11493. for as_dir in $PATH
  11494. do
  11495. IFS=$as_save_IFS
  11496. case $as_dir in #(((
  11497. '') as_dir=./ ;;
  11498. */) ;;
  11499. *) as_dir=$as_dir/ ;;
  11500. esac
  11501. for ac_exec_ext in '' $ac_executable_extensions; do
  11502. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11503. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11504. ac_prog_rejected=yes
  11505. continue
  11506. fi
  11507. ac_cv_prog_CC="cc"
  11508. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11509. break 2
  11510. fi
  11511. done
  11512. done
  11513. IFS=$as_save_IFS
  11514. if test $ac_prog_rejected = yes; then
  11515. # We found a bogon in the path, so make sure we never use it.
  11516. set dummy $ac_cv_prog_CC
  11517. shift
  11518. if test $# != 0; then
  11519. # We chose a different compiler from the bogus one.
  11520. # However, it has the same basename, so the bogon will be chosen
  11521. # first if we set CC to just the basename; use the full file name.
  11522. shift
  11523. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11524. fi
  11525. fi
  11526. fi
  11527. fi
  11528. CC=$ac_cv_prog_CC
  11529. if test -n "$CC"; then
  11530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11531. printf "%s\n" "$CC" >&6; }
  11532. else
  11533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11534. printf "%s\n" "no" >&6; }
  11535. fi
  11536. fi
  11537. if test -z "$CC"; then
  11538. if test -n "$ac_tool_prefix"; then
  11539. for ac_prog in cl.exe
  11540. do
  11541. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11542. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11544. printf %s "checking for $ac_word... " >&6; }
  11545. if test ${ac_cv_prog_CC+y}
  11546. then :
  11547. printf %s "(cached) " >&6
  11548. else $as_nop
  11549. if test -n "$CC"; then
  11550. ac_cv_prog_CC="$CC" # Let the user override the test.
  11551. else
  11552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11553. for as_dir in $PATH
  11554. do
  11555. IFS=$as_save_IFS
  11556. case $as_dir in #(((
  11557. '') as_dir=./ ;;
  11558. */) ;;
  11559. *) as_dir=$as_dir/ ;;
  11560. esac
  11561. for ac_exec_ext in '' $ac_executable_extensions; do
  11562. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11563. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11564. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11565. break 2
  11566. fi
  11567. done
  11568. done
  11569. IFS=$as_save_IFS
  11570. fi
  11571. fi
  11572. CC=$ac_cv_prog_CC
  11573. if test -n "$CC"; then
  11574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11575. printf "%s\n" "$CC" >&6; }
  11576. else
  11577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11578. printf "%s\n" "no" >&6; }
  11579. fi
  11580. test -n "$CC" && break
  11581. done
  11582. fi
  11583. if test -z "$CC"; then
  11584. ac_ct_CC=$CC
  11585. for ac_prog in cl.exe
  11586. do
  11587. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11588. set dummy $ac_prog; ac_word=$2
  11589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11590. printf %s "checking for $ac_word... " >&6; }
  11591. if test ${ac_cv_prog_ac_ct_CC+y}
  11592. then :
  11593. printf %s "(cached) " >&6
  11594. else $as_nop
  11595. if test -n "$ac_ct_CC"; then
  11596. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11597. else
  11598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11599. for as_dir in $PATH
  11600. do
  11601. IFS=$as_save_IFS
  11602. case $as_dir in #(((
  11603. '') as_dir=./ ;;
  11604. */) ;;
  11605. *) as_dir=$as_dir/ ;;
  11606. esac
  11607. for ac_exec_ext in '' $ac_executable_extensions; do
  11608. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11609. ac_cv_prog_ac_ct_CC="$ac_prog"
  11610. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11611. break 2
  11612. fi
  11613. done
  11614. done
  11615. IFS=$as_save_IFS
  11616. fi
  11617. fi
  11618. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11619. if test -n "$ac_ct_CC"; then
  11620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11621. printf "%s\n" "$ac_ct_CC" >&6; }
  11622. else
  11623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11624. printf "%s\n" "no" >&6; }
  11625. fi
  11626. test -n "$ac_ct_CC" && break
  11627. done
  11628. if test "x$ac_ct_CC" = x; then
  11629. CC=""
  11630. else
  11631. case $cross_compiling:$ac_tool_warned in
  11632. yes:)
  11633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11634. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11635. ac_tool_warned=yes ;;
  11636. esac
  11637. CC=$ac_ct_CC
  11638. fi
  11639. fi
  11640. fi
  11641. if test -z "$CC"; then
  11642. if test -n "$ac_tool_prefix"; then
  11643. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11644. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11646. printf %s "checking for $ac_word... " >&6; }
  11647. if test ${ac_cv_prog_CC+y}
  11648. then :
  11649. printf %s "(cached) " >&6
  11650. else $as_nop
  11651. if test -n "$CC"; then
  11652. ac_cv_prog_CC="$CC" # Let the user override the test.
  11653. else
  11654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11655. for as_dir in $PATH
  11656. do
  11657. IFS=$as_save_IFS
  11658. case $as_dir in #(((
  11659. '') as_dir=./ ;;
  11660. */) ;;
  11661. *) as_dir=$as_dir/ ;;
  11662. esac
  11663. for ac_exec_ext in '' $ac_executable_extensions; do
  11664. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11665. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11666. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11667. break 2
  11668. fi
  11669. done
  11670. done
  11671. IFS=$as_save_IFS
  11672. fi
  11673. fi
  11674. CC=$ac_cv_prog_CC
  11675. if test -n "$CC"; then
  11676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11677. printf "%s\n" "$CC" >&6; }
  11678. else
  11679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11680. printf "%s\n" "no" >&6; }
  11681. fi
  11682. fi
  11683. if test -z "$ac_cv_prog_CC"; then
  11684. ac_ct_CC=$CC
  11685. # Extract the first word of "clang", so it can be a program name with args.
  11686. set dummy clang; ac_word=$2
  11687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11688. printf %s "checking for $ac_word... " >&6; }
  11689. if test ${ac_cv_prog_ac_ct_CC+y}
  11690. then :
  11691. printf %s "(cached) " >&6
  11692. else $as_nop
  11693. if test -n "$ac_ct_CC"; then
  11694. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11695. else
  11696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11697. for as_dir in $PATH
  11698. do
  11699. IFS=$as_save_IFS
  11700. case $as_dir in #(((
  11701. '') as_dir=./ ;;
  11702. */) ;;
  11703. *) as_dir=$as_dir/ ;;
  11704. esac
  11705. for ac_exec_ext in '' $ac_executable_extensions; do
  11706. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11707. ac_cv_prog_ac_ct_CC="clang"
  11708. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11709. break 2
  11710. fi
  11711. done
  11712. done
  11713. IFS=$as_save_IFS
  11714. fi
  11715. fi
  11716. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11717. if test -n "$ac_ct_CC"; then
  11718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11719. printf "%s\n" "$ac_ct_CC" >&6; }
  11720. else
  11721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11722. printf "%s\n" "no" >&6; }
  11723. fi
  11724. if test "x$ac_ct_CC" = x; then
  11725. CC=""
  11726. else
  11727. case $cross_compiling:$ac_tool_warned in
  11728. yes:)
  11729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11730. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11731. ac_tool_warned=yes ;;
  11732. esac
  11733. CC=$ac_ct_CC
  11734. fi
  11735. else
  11736. CC="$ac_cv_prog_CC"
  11737. fi
  11738. fi
  11739. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11740. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11741. as_fn_error $? "no acceptable C compiler found in \$PATH
  11742. See \`config.log' for more details" "$LINENO" 5; }
  11743. # Provide some information about the compiler.
  11744. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11745. set X $ac_compile
  11746. ac_compiler=$2
  11747. for ac_option in --version -v -V -qversion -version; do
  11748. { { ac_try="$ac_compiler $ac_option >&5"
  11749. case "(($ac_try" in
  11750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11751. *) ac_try_echo=$ac_try;;
  11752. esac
  11753. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11754. printf "%s\n" "$ac_try_echo"; } >&5
  11755. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11756. ac_status=$?
  11757. if test -s conftest.err; then
  11758. sed '10a\
  11759. ... rest of stderr output deleted ...
  11760. 10q' conftest.err >conftest.er1
  11761. cat conftest.er1 >&5
  11762. fi
  11763. rm -f conftest.er1 conftest.err
  11764. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11765. test $ac_status = 0; }
  11766. done
  11767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11768. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11769. if test ${ac_cv_c_compiler_gnu+y}
  11770. then :
  11771. printf %s "(cached) " >&6
  11772. else $as_nop
  11773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11774. /* end confdefs.h. */
  11775. int
  11776. main (void)
  11777. {
  11778. #ifndef __GNUC__
  11779. choke me
  11780. #endif
  11781. ;
  11782. return 0;
  11783. }
  11784. _ACEOF
  11785. if ac_fn_c_try_compile "$LINENO"
  11786. then :
  11787. ac_compiler_gnu=yes
  11788. else $as_nop
  11789. ac_compiler_gnu=no
  11790. fi
  11791. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11792. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11793. fi
  11794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11795. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11796. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11797. if test $ac_compiler_gnu = yes; then
  11798. GCC=yes
  11799. else
  11800. GCC=
  11801. fi
  11802. ac_test_CFLAGS=${CFLAGS+y}
  11803. ac_save_CFLAGS=$CFLAGS
  11804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11805. printf %s "checking whether $CC accepts -g... " >&6; }
  11806. if test ${ac_cv_prog_cc_g+y}
  11807. then :
  11808. printf %s "(cached) " >&6
  11809. else $as_nop
  11810. ac_save_c_werror_flag=$ac_c_werror_flag
  11811. ac_c_werror_flag=yes
  11812. ac_cv_prog_cc_g=no
  11813. CFLAGS="-g"
  11814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11815. /* end confdefs.h. */
  11816. int
  11817. main (void)
  11818. {
  11819. ;
  11820. return 0;
  11821. }
  11822. _ACEOF
  11823. if ac_fn_c_try_compile "$LINENO"
  11824. then :
  11825. ac_cv_prog_cc_g=yes
  11826. else $as_nop
  11827. CFLAGS=""
  11828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11829. /* end confdefs.h. */
  11830. int
  11831. main (void)
  11832. {
  11833. ;
  11834. return 0;
  11835. }
  11836. _ACEOF
  11837. if ac_fn_c_try_compile "$LINENO"
  11838. then :
  11839. else $as_nop
  11840. ac_c_werror_flag=$ac_save_c_werror_flag
  11841. CFLAGS="-g"
  11842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11843. /* end confdefs.h. */
  11844. int
  11845. main (void)
  11846. {
  11847. ;
  11848. return 0;
  11849. }
  11850. _ACEOF
  11851. if ac_fn_c_try_compile "$LINENO"
  11852. then :
  11853. ac_cv_prog_cc_g=yes
  11854. fi
  11855. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11856. fi
  11857. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11858. fi
  11859. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11860. ac_c_werror_flag=$ac_save_c_werror_flag
  11861. fi
  11862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11863. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11864. if test $ac_test_CFLAGS; then
  11865. CFLAGS=$ac_save_CFLAGS
  11866. elif test $ac_cv_prog_cc_g = yes; then
  11867. if test "$GCC" = yes; then
  11868. CFLAGS="-g -O2"
  11869. else
  11870. CFLAGS="-g"
  11871. fi
  11872. else
  11873. if test "$GCC" = yes; then
  11874. CFLAGS="-O2"
  11875. else
  11876. CFLAGS=
  11877. fi
  11878. fi
  11879. ac_prog_cc_stdc=no
  11880. if test x$ac_prog_cc_stdc = xno
  11881. then :
  11882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11883. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11884. if test ${ac_cv_prog_cc_c11+y}
  11885. then :
  11886. printf %s "(cached) " >&6
  11887. else $as_nop
  11888. ac_cv_prog_cc_c11=no
  11889. ac_save_CC=$CC
  11890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11891. /* end confdefs.h. */
  11892. $ac_c_conftest_c11_program
  11893. _ACEOF
  11894. for ac_arg in '' -std=gnu11
  11895. do
  11896. CC="$ac_save_CC $ac_arg"
  11897. if ac_fn_c_try_compile "$LINENO"
  11898. then :
  11899. ac_cv_prog_cc_c11=$ac_arg
  11900. fi
  11901. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11902. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11903. done
  11904. rm -f conftest.$ac_ext
  11905. CC=$ac_save_CC
  11906. fi
  11907. if test "x$ac_cv_prog_cc_c11" = xno
  11908. then :
  11909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11910. printf "%s\n" "unsupported" >&6; }
  11911. else $as_nop
  11912. if test "x$ac_cv_prog_cc_c11" = x
  11913. then :
  11914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11915. printf "%s\n" "none needed" >&6; }
  11916. else $as_nop
  11917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11918. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11919. CC="$CC $ac_cv_prog_cc_c11"
  11920. fi
  11921. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11922. ac_prog_cc_stdc=c11
  11923. fi
  11924. fi
  11925. if test x$ac_prog_cc_stdc = xno
  11926. then :
  11927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11928. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11929. if test ${ac_cv_prog_cc_c99+y}
  11930. then :
  11931. printf %s "(cached) " >&6
  11932. else $as_nop
  11933. ac_cv_prog_cc_c99=no
  11934. ac_save_CC=$CC
  11935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11936. /* end confdefs.h. */
  11937. $ac_c_conftest_c99_program
  11938. _ACEOF
  11939. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11940. do
  11941. CC="$ac_save_CC $ac_arg"
  11942. if ac_fn_c_try_compile "$LINENO"
  11943. then :
  11944. ac_cv_prog_cc_c99=$ac_arg
  11945. fi
  11946. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11947. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11948. done
  11949. rm -f conftest.$ac_ext
  11950. CC=$ac_save_CC
  11951. fi
  11952. if test "x$ac_cv_prog_cc_c99" = xno
  11953. then :
  11954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11955. printf "%s\n" "unsupported" >&6; }
  11956. else $as_nop
  11957. if test "x$ac_cv_prog_cc_c99" = x
  11958. then :
  11959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11960. printf "%s\n" "none needed" >&6; }
  11961. else $as_nop
  11962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11963. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11964. CC="$CC $ac_cv_prog_cc_c99"
  11965. fi
  11966. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11967. ac_prog_cc_stdc=c99
  11968. fi
  11969. fi
  11970. if test x$ac_prog_cc_stdc = xno
  11971. then :
  11972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11973. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11974. if test ${ac_cv_prog_cc_c89+y}
  11975. then :
  11976. printf %s "(cached) " >&6
  11977. else $as_nop
  11978. ac_cv_prog_cc_c89=no
  11979. ac_save_CC=$CC
  11980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11981. /* end confdefs.h. */
  11982. $ac_c_conftest_c89_program
  11983. _ACEOF
  11984. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11985. do
  11986. CC="$ac_save_CC $ac_arg"
  11987. if ac_fn_c_try_compile "$LINENO"
  11988. then :
  11989. ac_cv_prog_cc_c89=$ac_arg
  11990. fi
  11991. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11992. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11993. done
  11994. rm -f conftest.$ac_ext
  11995. CC=$ac_save_CC
  11996. fi
  11997. if test "x$ac_cv_prog_cc_c89" = xno
  11998. then :
  11999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12000. printf "%s\n" "unsupported" >&6; }
  12001. else $as_nop
  12002. if test "x$ac_cv_prog_cc_c89" = x
  12003. then :
  12004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12005. printf "%s\n" "none needed" >&6; }
  12006. else $as_nop
  12007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12008. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  12009. CC="$CC $ac_cv_prog_cc_c89"
  12010. fi
  12011. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  12012. ac_prog_cc_stdc=c89
  12013. fi
  12014. fi
  12015. ac_ext=c
  12016. ac_cpp='$CPP $CPPFLAGS'
  12017. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12018. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12019. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12020. ac_ext=cpp
  12021. ac_cpp='$CXXCPP $CPPFLAGS'
  12022. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12023. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12024. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12025. if test -z "$CXX"; then
  12026. if test -n "$CCC"; then
  12027. CXX=$CCC
  12028. else
  12029. if test -n "$ac_tool_prefix"; then
  12030. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12031. do
  12032. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12033. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12035. printf %s "checking for $ac_word... " >&6; }
  12036. if test ${ac_cv_prog_CXX+y}
  12037. then :
  12038. printf %s "(cached) " >&6
  12039. else $as_nop
  12040. if test -n "$CXX"; then
  12041. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12042. else
  12043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12044. for as_dir in $PATH
  12045. do
  12046. IFS=$as_save_IFS
  12047. case $as_dir in #(((
  12048. '') as_dir=./ ;;
  12049. */) ;;
  12050. *) as_dir=$as_dir/ ;;
  12051. esac
  12052. for ac_exec_ext in '' $ac_executable_extensions; do
  12053. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12054. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12055. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12056. break 2
  12057. fi
  12058. done
  12059. done
  12060. IFS=$as_save_IFS
  12061. fi
  12062. fi
  12063. CXX=$ac_cv_prog_CXX
  12064. if test -n "$CXX"; then
  12065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12066. printf "%s\n" "$CXX" >&6; }
  12067. else
  12068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12069. printf "%s\n" "no" >&6; }
  12070. fi
  12071. test -n "$CXX" && break
  12072. done
  12073. fi
  12074. if test -z "$CXX"; then
  12075. ac_ct_CXX=$CXX
  12076. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12077. do
  12078. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12079. set dummy $ac_prog; ac_word=$2
  12080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12081. printf %s "checking for $ac_word... " >&6; }
  12082. if test ${ac_cv_prog_ac_ct_CXX+y}
  12083. then :
  12084. printf %s "(cached) " >&6
  12085. else $as_nop
  12086. if test -n "$ac_ct_CXX"; then
  12087. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12088. else
  12089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12090. for as_dir in $PATH
  12091. do
  12092. IFS=$as_save_IFS
  12093. case $as_dir in #(((
  12094. '') as_dir=./ ;;
  12095. */) ;;
  12096. *) as_dir=$as_dir/ ;;
  12097. esac
  12098. for ac_exec_ext in '' $ac_executable_extensions; do
  12099. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12100. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12101. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12102. break 2
  12103. fi
  12104. done
  12105. done
  12106. IFS=$as_save_IFS
  12107. fi
  12108. fi
  12109. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12110. if test -n "$ac_ct_CXX"; then
  12111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12112. printf "%s\n" "$ac_ct_CXX" >&6; }
  12113. else
  12114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12115. printf "%s\n" "no" >&6; }
  12116. fi
  12117. test -n "$ac_ct_CXX" && break
  12118. done
  12119. if test "x$ac_ct_CXX" = x; then
  12120. CXX="g++"
  12121. else
  12122. case $cross_compiling:$ac_tool_warned in
  12123. yes:)
  12124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12125. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12126. ac_tool_warned=yes ;;
  12127. esac
  12128. CXX=$ac_ct_CXX
  12129. fi
  12130. fi
  12131. fi
  12132. fi
  12133. # Provide some information about the compiler.
  12134. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12135. set X $ac_compile
  12136. ac_compiler=$2
  12137. for ac_option in --version -v -V -qversion; do
  12138. { { ac_try="$ac_compiler $ac_option >&5"
  12139. case "(($ac_try" in
  12140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12141. *) ac_try_echo=$ac_try;;
  12142. esac
  12143. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12144. printf "%s\n" "$ac_try_echo"; } >&5
  12145. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12146. ac_status=$?
  12147. if test -s conftest.err; then
  12148. sed '10a\
  12149. ... rest of stderr output deleted ...
  12150. 10q' conftest.err >conftest.er1
  12151. cat conftest.er1 >&5
  12152. fi
  12153. rm -f conftest.er1 conftest.err
  12154. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12155. test $ac_status = 0; }
  12156. done
  12157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12158. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12159. if test ${ac_cv_cxx_compiler_gnu+y}
  12160. then :
  12161. printf %s "(cached) " >&6
  12162. else $as_nop
  12163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12164. /* end confdefs.h. */
  12165. int
  12166. main (void)
  12167. {
  12168. #ifndef __GNUC__
  12169. choke me
  12170. #endif
  12171. ;
  12172. return 0;
  12173. }
  12174. _ACEOF
  12175. if ac_fn_cxx_try_compile "$LINENO"
  12176. then :
  12177. ac_compiler_gnu=yes
  12178. else $as_nop
  12179. ac_compiler_gnu=no
  12180. fi
  12181. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12182. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12183. fi
  12184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12185. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12186. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12187. if test $ac_compiler_gnu = yes; then
  12188. GXX=yes
  12189. else
  12190. GXX=
  12191. fi
  12192. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12193. ac_save_CXXFLAGS=$CXXFLAGS
  12194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12195. printf %s "checking whether $CXX accepts -g... " >&6; }
  12196. if test ${ac_cv_prog_cxx_g+y}
  12197. then :
  12198. printf %s "(cached) " >&6
  12199. else $as_nop
  12200. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12201. ac_cxx_werror_flag=yes
  12202. ac_cv_prog_cxx_g=no
  12203. CXXFLAGS="-g"
  12204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12205. /* end confdefs.h. */
  12206. int
  12207. main (void)
  12208. {
  12209. ;
  12210. return 0;
  12211. }
  12212. _ACEOF
  12213. if ac_fn_cxx_try_compile "$LINENO"
  12214. then :
  12215. ac_cv_prog_cxx_g=yes
  12216. else $as_nop
  12217. CXXFLAGS=""
  12218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12219. /* end confdefs.h. */
  12220. int
  12221. main (void)
  12222. {
  12223. ;
  12224. return 0;
  12225. }
  12226. _ACEOF
  12227. if ac_fn_cxx_try_compile "$LINENO"
  12228. then :
  12229. else $as_nop
  12230. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12231. CXXFLAGS="-g"
  12232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12233. /* end confdefs.h. */
  12234. int
  12235. main (void)
  12236. {
  12237. ;
  12238. return 0;
  12239. }
  12240. _ACEOF
  12241. if ac_fn_cxx_try_compile "$LINENO"
  12242. then :
  12243. ac_cv_prog_cxx_g=yes
  12244. fi
  12245. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12246. fi
  12247. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12248. fi
  12249. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12250. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12251. fi
  12252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12253. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12254. if test $ac_test_CXXFLAGS; then
  12255. CXXFLAGS=$ac_save_CXXFLAGS
  12256. elif test $ac_cv_prog_cxx_g = yes; then
  12257. if test "$GXX" = yes; then
  12258. CXXFLAGS="-g -O2"
  12259. else
  12260. CXXFLAGS="-g"
  12261. fi
  12262. else
  12263. if test "$GXX" = yes; then
  12264. CXXFLAGS="-O2"
  12265. else
  12266. CXXFLAGS=
  12267. fi
  12268. fi
  12269. ac_prog_cxx_stdcxx=no
  12270. if test x$ac_prog_cxx_stdcxx = xno
  12271. then :
  12272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12273. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12274. if test ${ac_cv_prog_cxx_11+y}
  12275. then :
  12276. printf %s "(cached) " >&6
  12277. else $as_nop
  12278. ac_cv_prog_cxx_11=no
  12279. ac_save_CXX=$CXX
  12280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12281. /* end confdefs.h. */
  12282. $ac_cxx_conftest_cxx11_program
  12283. _ACEOF
  12284. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12285. do
  12286. CXX="$ac_save_CXX $ac_arg"
  12287. if ac_fn_cxx_try_compile "$LINENO"
  12288. then :
  12289. ac_cv_prog_cxx_cxx11=$ac_arg
  12290. fi
  12291. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12292. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12293. done
  12294. rm -f conftest.$ac_ext
  12295. CXX=$ac_save_CXX
  12296. fi
  12297. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12298. then :
  12299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12300. printf "%s\n" "unsupported" >&6; }
  12301. else $as_nop
  12302. if test "x$ac_cv_prog_cxx_cxx11" = x
  12303. then :
  12304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12305. printf "%s\n" "none needed" >&6; }
  12306. else $as_nop
  12307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12308. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12309. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12310. fi
  12311. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12312. ac_prog_cxx_stdcxx=cxx11
  12313. fi
  12314. fi
  12315. if test x$ac_prog_cxx_stdcxx = xno
  12316. then :
  12317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12318. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12319. if test ${ac_cv_prog_cxx_98+y}
  12320. then :
  12321. printf %s "(cached) " >&6
  12322. else $as_nop
  12323. ac_cv_prog_cxx_98=no
  12324. ac_save_CXX=$CXX
  12325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12326. /* end confdefs.h. */
  12327. $ac_cxx_conftest_cxx98_program
  12328. _ACEOF
  12329. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12330. do
  12331. CXX="$ac_save_CXX $ac_arg"
  12332. if ac_fn_cxx_try_compile "$LINENO"
  12333. then :
  12334. ac_cv_prog_cxx_cxx98=$ac_arg
  12335. fi
  12336. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12337. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12338. done
  12339. rm -f conftest.$ac_ext
  12340. CXX=$ac_save_CXX
  12341. fi
  12342. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12343. then :
  12344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12345. printf "%s\n" "unsupported" >&6; }
  12346. else $as_nop
  12347. if test "x$ac_cv_prog_cxx_cxx98" = x
  12348. then :
  12349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12350. printf "%s\n" "none needed" >&6; }
  12351. else $as_nop
  12352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12353. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12354. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12355. fi
  12356. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12357. ac_prog_cxx_stdcxx=cxx98
  12358. fi
  12359. fi
  12360. ac_ext=c
  12361. ac_cpp='$CPP $CPPFLAGS'
  12362. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12363. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12364. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12365. func_stripname_cnf ()
  12366. {
  12367. case $2 in
  12368. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12369. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12370. esac
  12371. } # func_stripname_cnf
  12372. if test -n "$CXX" && ( test no != "$CXX" &&
  12373. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12374. (test g++ != "$CXX"))); then
  12375. ac_ext=cpp
  12376. ac_cpp='$CXXCPP $CPPFLAGS'
  12377. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12378. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12379. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12381. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12382. if test -z "$CXXCPP"; then
  12383. if test ${ac_cv_prog_CXXCPP+y}
  12384. then :
  12385. printf %s "(cached) " >&6
  12386. else $as_nop
  12387. # Double quotes because $CXX needs to be expanded
  12388. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12389. do
  12390. ac_preproc_ok=false
  12391. for ac_cxx_preproc_warn_flag in '' yes
  12392. do
  12393. # Use a header file that comes with gcc, so configuring glibc
  12394. # with a fresh cross-compiler works.
  12395. # On the NeXT, cc -E runs the code through the compiler's parser,
  12396. # not just through cpp. "Syntax error" is here to catch this case.
  12397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12398. /* end confdefs.h. */
  12399. #include <limits.h>
  12400. Syntax error
  12401. _ACEOF
  12402. if ac_fn_cxx_try_cpp "$LINENO"
  12403. then :
  12404. else $as_nop
  12405. # Broken: fails on valid input.
  12406. continue
  12407. fi
  12408. rm -f conftest.err conftest.i conftest.$ac_ext
  12409. # OK, works on sane cases. Now check whether nonexistent headers
  12410. # can be detected and how.
  12411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12412. /* end confdefs.h. */
  12413. #include <ac_nonexistent.h>
  12414. _ACEOF
  12415. if ac_fn_cxx_try_cpp "$LINENO"
  12416. then :
  12417. # Broken: success on invalid input.
  12418. continue
  12419. else $as_nop
  12420. # Passes both tests.
  12421. ac_preproc_ok=:
  12422. break
  12423. fi
  12424. rm -f conftest.err conftest.i conftest.$ac_ext
  12425. done
  12426. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12427. rm -f conftest.i conftest.err conftest.$ac_ext
  12428. if $ac_preproc_ok
  12429. then :
  12430. break
  12431. fi
  12432. done
  12433. ac_cv_prog_CXXCPP=$CXXCPP
  12434. fi
  12435. CXXCPP=$ac_cv_prog_CXXCPP
  12436. else
  12437. ac_cv_prog_CXXCPP=$CXXCPP
  12438. fi
  12439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12440. printf "%s\n" "$CXXCPP" >&6; }
  12441. ac_preproc_ok=false
  12442. for ac_cxx_preproc_warn_flag in '' yes
  12443. do
  12444. # Use a header file that comes with gcc, so configuring glibc
  12445. # with a fresh cross-compiler works.
  12446. # On the NeXT, cc -E runs the code through the compiler's parser,
  12447. # not just through cpp. "Syntax error" is here to catch this case.
  12448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12449. /* end confdefs.h. */
  12450. #include <limits.h>
  12451. Syntax error
  12452. _ACEOF
  12453. if ac_fn_cxx_try_cpp "$LINENO"
  12454. then :
  12455. else $as_nop
  12456. # Broken: fails on valid input.
  12457. continue
  12458. fi
  12459. rm -f conftest.err conftest.i conftest.$ac_ext
  12460. # OK, works on sane cases. Now check whether nonexistent headers
  12461. # can be detected and how.
  12462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12463. /* end confdefs.h. */
  12464. #include <ac_nonexistent.h>
  12465. _ACEOF
  12466. if ac_fn_cxx_try_cpp "$LINENO"
  12467. then :
  12468. # Broken: success on invalid input.
  12469. continue
  12470. else $as_nop
  12471. # Passes both tests.
  12472. ac_preproc_ok=:
  12473. break
  12474. fi
  12475. rm -f conftest.err conftest.i conftest.$ac_ext
  12476. done
  12477. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12478. rm -f conftest.i conftest.err conftest.$ac_ext
  12479. if $ac_preproc_ok
  12480. then :
  12481. else $as_nop
  12482. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12483. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12484. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12485. See \`config.log' for more details" "$LINENO" 5; }
  12486. fi
  12487. ac_ext=c
  12488. ac_cpp='$CPP $CPPFLAGS'
  12489. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12490. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12491. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12492. else
  12493. _lt_caught_CXX_error=yes
  12494. fi
  12495. ac_ext=cpp
  12496. ac_cpp='$CXXCPP $CPPFLAGS'
  12497. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12498. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12499. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12500. archive_cmds_need_lc_CXX=no
  12501. allow_undefined_flag_CXX=
  12502. always_export_symbols_CXX=no
  12503. archive_expsym_cmds_CXX=
  12504. compiler_needs_object_CXX=no
  12505. export_dynamic_flag_spec_CXX=
  12506. hardcode_direct_CXX=no
  12507. hardcode_direct_absolute_CXX=no
  12508. hardcode_libdir_flag_spec_CXX=
  12509. hardcode_libdir_separator_CXX=
  12510. hardcode_minus_L_CXX=no
  12511. hardcode_shlibpath_var_CXX=unsupported
  12512. hardcode_automatic_CXX=no
  12513. inherit_rpath_CXX=no
  12514. module_cmds_CXX=
  12515. module_expsym_cmds_CXX=
  12516. link_all_deplibs_CXX=unknown
  12517. old_archive_cmds_CXX=$old_archive_cmds
  12518. reload_flag_CXX=$reload_flag
  12519. reload_cmds_CXX=$reload_cmds
  12520. no_undefined_flag_CXX=
  12521. whole_archive_flag_spec_CXX=
  12522. enable_shared_with_static_runtimes_CXX=no
  12523. # Source file extension for C++ test sources.
  12524. ac_ext=cpp
  12525. # Object file extension for compiled C++ test sources.
  12526. objext=o
  12527. objext_CXX=$objext
  12528. # No sense in running all these tests if we already determined that
  12529. # the CXX compiler isn't working. Some variables (like enable_shared)
  12530. # are currently assumed to apply to all compilers on this platform,
  12531. # and will be corrupted by setting them based on a non-working compiler.
  12532. if test yes != "$_lt_caught_CXX_error"; then
  12533. # Code to be used in simple compile tests
  12534. lt_simple_compile_test_code="int some_variable = 0;"
  12535. # Code to be used in simple link tests
  12536. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12537. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12538. # If no C compiler was specified, use CC.
  12539. LTCC=${LTCC-"$CC"}
  12540. # If no C compiler flags were specified, use CFLAGS.
  12541. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12542. # Allow CC to be a program name with arguments.
  12543. compiler=$CC
  12544. # save warnings/boilerplate of simple test code
  12545. ac_outfile=conftest.$ac_objext
  12546. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12547. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12548. _lt_compiler_boilerplate=`cat conftest.err`
  12549. $RM conftest*
  12550. ac_outfile=conftest.$ac_objext
  12551. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12552. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12553. _lt_linker_boilerplate=`cat conftest.err`
  12554. $RM -r conftest*
  12555. # Allow CC to be a program name with arguments.
  12556. lt_save_CC=$CC
  12557. lt_save_CFLAGS=$CFLAGS
  12558. lt_save_LD=$LD
  12559. lt_save_GCC=$GCC
  12560. GCC=$GXX
  12561. lt_save_with_gnu_ld=$with_gnu_ld
  12562. lt_save_path_LD=$lt_cv_path_LD
  12563. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12564. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12565. else
  12566. $as_unset lt_cv_prog_gnu_ld
  12567. fi
  12568. if test -n "${lt_cv_path_LDCXX+set}"; then
  12569. lt_cv_path_LD=$lt_cv_path_LDCXX
  12570. else
  12571. $as_unset lt_cv_path_LD
  12572. fi
  12573. test -z "${LDCXX+set}" || LD=$LDCXX
  12574. CC=${CXX-"c++"}
  12575. CFLAGS=$CXXFLAGS
  12576. compiler=$CC
  12577. compiler_CXX=$CC
  12578. func_cc_basename $compiler
  12579. cc_basename=$func_cc_basename_result
  12580. if test -n "$compiler"; then
  12581. # We don't want -fno-exception when compiling C++ code, so set the
  12582. # no_builtin_flag separately
  12583. if test yes = "$GXX"; then
  12584. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12585. else
  12586. lt_prog_compiler_no_builtin_flag_CXX=
  12587. fi
  12588. if test yes = "$GXX"; then
  12589. # Set up default GNU C++ configuration
  12590. # Check whether --with-gnu-ld was given.
  12591. if test ${with_gnu_ld+y}
  12592. then :
  12593. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12594. else $as_nop
  12595. with_gnu_ld=no
  12596. fi
  12597. ac_prog=ld
  12598. if test yes = "$GCC"; then
  12599. # Check if gcc -print-prog-name=ld gives a path.
  12600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12601. printf %s "checking for ld used by $CC... " >&6; }
  12602. case $host in
  12603. *-*-mingw*)
  12604. # gcc leaves a trailing carriage return, which upsets mingw
  12605. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12606. *)
  12607. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12608. esac
  12609. case $ac_prog in
  12610. # Accept absolute paths.
  12611. [\\/]* | ?:[\\/]*)
  12612. re_direlt='/[^/][^/]*/\.\./'
  12613. # Canonicalize the pathname of ld
  12614. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12615. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12616. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12617. done
  12618. test -z "$LD" && LD=$ac_prog
  12619. ;;
  12620. "")
  12621. # If it fails, then pretend we aren't using GCC.
  12622. ac_prog=ld
  12623. ;;
  12624. *)
  12625. # If it is relative, then search for the first ld in PATH.
  12626. with_gnu_ld=unknown
  12627. ;;
  12628. esac
  12629. elif test yes = "$with_gnu_ld"; then
  12630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12631. printf %s "checking for GNU ld... " >&6; }
  12632. else
  12633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12634. printf %s "checking for non-GNU ld... " >&6; }
  12635. fi
  12636. if test ${lt_cv_path_LD+y}
  12637. then :
  12638. printf %s "(cached) " >&6
  12639. else $as_nop
  12640. if test -z "$LD"; then
  12641. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12642. for ac_dir in $PATH; do
  12643. IFS=$lt_save_ifs
  12644. test -z "$ac_dir" && ac_dir=.
  12645. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12646. lt_cv_path_LD=$ac_dir/$ac_prog
  12647. # Check to see if the program is GNU ld. I'd rather use --version,
  12648. # but apparently some variants of GNU ld only accept -v.
  12649. # Break only if it was the GNU/non-GNU ld that we prefer.
  12650. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12651. *GNU* | *'with BFD'*)
  12652. test no != "$with_gnu_ld" && break
  12653. ;;
  12654. *)
  12655. test yes != "$with_gnu_ld" && break
  12656. ;;
  12657. esac
  12658. fi
  12659. done
  12660. IFS=$lt_save_ifs
  12661. else
  12662. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12663. fi
  12664. fi
  12665. LD=$lt_cv_path_LD
  12666. if test -n "$LD"; then
  12667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12668. printf "%s\n" "$LD" >&6; }
  12669. else
  12670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12671. printf "%s\n" "no" >&6; }
  12672. fi
  12673. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12675. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12676. if test ${lt_cv_prog_gnu_ld+y}
  12677. then :
  12678. printf %s "(cached) " >&6
  12679. else $as_nop
  12680. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12681. case `$LD -v 2>&1 </dev/null` in
  12682. *GNU* | *'with BFD'*)
  12683. lt_cv_prog_gnu_ld=yes
  12684. ;;
  12685. *)
  12686. lt_cv_prog_gnu_ld=no
  12687. ;;
  12688. esac
  12689. fi
  12690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12691. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12692. with_gnu_ld=$lt_cv_prog_gnu_ld
  12693. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12694. # archiving commands below assume that GNU ld is being used.
  12695. if test yes = "$with_gnu_ld"; then
  12696. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12697. 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'
  12698. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12699. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12700. # If archive_cmds runs LD, not CC, wlarc should be empty
  12701. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12702. # investigate it a little bit more. (MM)
  12703. wlarc='$wl'
  12704. # ancient GNU ld didn't support --whole-archive et. al.
  12705. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12706. $GREP 'no-whole-archive' > /dev/null; then
  12707. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12708. else
  12709. whole_archive_flag_spec_CXX=
  12710. fi
  12711. else
  12712. with_gnu_ld=no
  12713. wlarc=
  12714. # A generic and very simple default shared library creation
  12715. # command for GNU C++ for the case where it uses the native
  12716. # linker, instead of GNU ld. If possible, this setting should
  12717. # overridden to take advantage of the native linker features on
  12718. # the platform it is being used on.
  12719. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12720. fi
  12721. # Commands to make compiler produce verbose output that lists
  12722. # what "hidden" libraries, object files and flags are used when
  12723. # linking a shared library.
  12724. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12725. else
  12726. GXX=no
  12727. with_gnu_ld=no
  12728. wlarc=
  12729. fi
  12730. # PORTME: fill in a description of your system's C++ link characteristics
  12731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12732. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12733. ld_shlibs_CXX=yes
  12734. case $host_os in
  12735. aix3*)
  12736. # FIXME: insert proper C++ library support
  12737. ld_shlibs_CXX=no
  12738. ;;
  12739. aix[4-9]*)
  12740. if test ia64 = "$host_cpu"; then
  12741. # On IA64, the linker does run time linking by default, so we don't
  12742. # have to do anything special.
  12743. aix_use_runtimelinking=no
  12744. exp_sym_flag='-Bexport'
  12745. no_entry_flag=
  12746. else
  12747. aix_use_runtimelinking=no
  12748. # Test if we are trying to use run time linking or normal
  12749. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12750. # have runtime linking enabled, and use it for executables.
  12751. # For shared libraries, we enable/disable runtime linking
  12752. # depending on the kind of the shared library created -
  12753. # when "with_aix_soname,aix_use_runtimelinking" is:
  12754. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12755. # "aix,yes" lib.so shared, rtl:yes, for executables
  12756. # lib.a static archive
  12757. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12758. # lib.a(lib.so.V) shared, rtl:no, for executables
  12759. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12760. # lib.a(lib.so.V) shared, rtl:no
  12761. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12762. # lib.a static archive
  12763. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12764. for ld_flag in $LDFLAGS; do
  12765. case $ld_flag in
  12766. *-brtl*)
  12767. aix_use_runtimelinking=yes
  12768. break
  12769. ;;
  12770. esac
  12771. done
  12772. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12773. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12774. # so we don't have lib.a shared libs to link our executables.
  12775. # We have to force runtime linking in this case.
  12776. aix_use_runtimelinking=yes
  12777. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12778. fi
  12779. ;;
  12780. esac
  12781. exp_sym_flag='-bexport'
  12782. no_entry_flag='-bnoentry'
  12783. fi
  12784. # When large executables or shared objects are built, AIX ld can
  12785. # have problems creating the table of contents. If linking a library
  12786. # or program results in "error TOC overflow" add -mminimal-toc to
  12787. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12788. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12789. archive_cmds_CXX=''
  12790. hardcode_direct_CXX=yes
  12791. hardcode_direct_absolute_CXX=yes
  12792. hardcode_libdir_separator_CXX=':'
  12793. link_all_deplibs_CXX=yes
  12794. file_list_spec_CXX='$wl-f,'
  12795. case $with_aix_soname,$aix_use_runtimelinking in
  12796. aix,*) ;; # no import file
  12797. svr4,* | *,yes) # use import file
  12798. # The Import File defines what to hardcode.
  12799. hardcode_direct_CXX=no
  12800. hardcode_direct_absolute_CXX=no
  12801. ;;
  12802. esac
  12803. if test yes = "$GXX"; then
  12804. case $host_os in aix4.[012]|aix4.[012].*)
  12805. # We only want to do this on AIX 4.2 and lower, the check
  12806. # below for broken collect2 doesn't work under 4.3+
  12807. collect2name=`$CC -print-prog-name=collect2`
  12808. if test -f "$collect2name" &&
  12809. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12810. then
  12811. # We have reworked collect2
  12812. :
  12813. else
  12814. # We have old collect2
  12815. hardcode_direct_CXX=unsupported
  12816. # It fails to find uninstalled libraries when the uninstalled
  12817. # path is not listed in the libpath. Setting hardcode_minus_L
  12818. # to unsupported forces relinking
  12819. hardcode_minus_L_CXX=yes
  12820. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12821. hardcode_libdir_separator_CXX=
  12822. fi
  12823. esac
  12824. shared_flag='-shared'
  12825. if test yes = "$aix_use_runtimelinking"; then
  12826. shared_flag=$shared_flag' $wl-G'
  12827. fi
  12828. # Need to ensure runtime linking is disabled for the traditional
  12829. # shared library, or the linker may eventually find shared libraries
  12830. # /with/ Import File - we do not want to mix them.
  12831. shared_flag_aix='-shared'
  12832. shared_flag_svr4='-shared $wl-G'
  12833. else
  12834. # not using gcc
  12835. if test ia64 = "$host_cpu"; then
  12836. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12837. # chokes on -Wl,-G. The following line is correct:
  12838. shared_flag='-G'
  12839. else
  12840. if test yes = "$aix_use_runtimelinking"; then
  12841. shared_flag='$wl-G'
  12842. else
  12843. shared_flag='$wl-bM:SRE'
  12844. fi
  12845. shared_flag_aix='$wl-bM:SRE'
  12846. shared_flag_svr4='$wl-G'
  12847. fi
  12848. fi
  12849. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12850. # It seems that -bexpall does not export symbols beginning with
  12851. # underscore (_), so it is better to generate a list of symbols to
  12852. # export.
  12853. always_export_symbols_CXX=yes
  12854. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12855. # Warning - without using the other runtime loading flags (-brtl),
  12856. # -berok will link without error, but may produce a broken library.
  12857. # The "-G" linker flag allows undefined symbols.
  12858. no_undefined_flag_CXX='-bernotok'
  12859. # Determine the default libpath from the value encoded in an empty
  12860. # executable.
  12861. if test set = "${lt_cv_aix_libpath+set}"; then
  12862. aix_libpath=$lt_cv_aix_libpath
  12863. else
  12864. if test ${lt_cv_aix_libpath__CXX+y}
  12865. then :
  12866. printf %s "(cached) " >&6
  12867. else $as_nop
  12868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12869. /* end confdefs.h. */
  12870. int
  12871. main (void)
  12872. {
  12873. ;
  12874. return 0;
  12875. }
  12876. _ACEOF
  12877. if ac_fn_cxx_try_link "$LINENO"
  12878. then :
  12879. lt_aix_libpath_sed='
  12880. /Import File Strings/,/^$/ {
  12881. /^0/ {
  12882. s/^0 *\([^ ]*\) *$/\1/
  12883. p
  12884. }
  12885. }'
  12886. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12887. # Check for a 64-bit object if we didn't find anything.
  12888. if test -z "$lt_cv_aix_libpath__CXX"; then
  12889. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12890. fi
  12891. fi
  12892. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12893. conftest$ac_exeext conftest.$ac_ext
  12894. if test -z "$lt_cv_aix_libpath__CXX"; then
  12895. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12896. fi
  12897. fi
  12898. aix_libpath=$lt_cv_aix_libpath__CXX
  12899. fi
  12900. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12901. 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
  12902. else
  12903. if test ia64 = "$host_cpu"; then
  12904. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12905. allow_undefined_flag_CXX="-z nodefs"
  12906. 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"
  12907. else
  12908. # Determine the default libpath from the value encoded in an
  12909. # empty executable.
  12910. if test set = "${lt_cv_aix_libpath+set}"; then
  12911. aix_libpath=$lt_cv_aix_libpath
  12912. else
  12913. if test ${lt_cv_aix_libpath__CXX+y}
  12914. then :
  12915. printf %s "(cached) " >&6
  12916. else $as_nop
  12917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12918. /* end confdefs.h. */
  12919. int
  12920. main (void)
  12921. {
  12922. ;
  12923. return 0;
  12924. }
  12925. _ACEOF
  12926. if ac_fn_cxx_try_link "$LINENO"
  12927. then :
  12928. lt_aix_libpath_sed='
  12929. /Import File Strings/,/^$/ {
  12930. /^0/ {
  12931. s/^0 *\([^ ]*\) *$/\1/
  12932. p
  12933. }
  12934. }'
  12935. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12936. # Check for a 64-bit object if we didn't find anything.
  12937. if test -z "$lt_cv_aix_libpath__CXX"; then
  12938. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12939. fi
  12940. fi
  12941. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12942. conftest$ac_exeext conftest.$ac_ext
  12943. if test -z "$lt_cv_aix_libpath__CXX"; then
  12944. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12945. fi
  12946. fi
  12947. aix_libpath=$lt_cv_aix_libpath__CXX
  12948. fi
  12949. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12950. # Warning - without using the other run time loading flags,
  12951. # -berok will link without error, but may produce a broken library.
  12952. no_undefined_flag_CXX=' $wl-bernotok'
  12953. allow_undefined_flag_CXX=' $wl-berok'
  12954. if test yes = "$with_gnu_ld"; then
  12955. # We only use this code for GNU lds that support --whole-archive.
  12956. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12957. else
  12958. # Exported symbols can be pulled into shared objects from archives
  12959. whole_archive_flag_spec_CXX='$convenience'
  12960. fi
  12961. archive_cmds_need_lc_CXX=yes
  12962. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12963. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12964. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12965. if test svr4 != "$with_aix_soname"; then
  12966. # This is similar to how AIX traditionally builds its shared
  12967. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12968. 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'
  12969. fi
  12970. if test aix != "$with_aix_soname"; then
  12971. 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'
  12972. else
  12973. # used by -dlpreopen to get the symbols
  12974. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12975. fi
  12976. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12977. fi
  12978. fi
  12979. ;;
  12980. beos*)
  12981. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12982. allow_undefined_flag_CXX=unsupported
  12983. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12984. # support --undefined. This deserves some investigation. FIXME
  12985. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12986. else
  12987. ld_shlibs_CXX=no
  12988. fi
  12989. ;;
  12990. chorus*)
  12991. case $cc_basename in
  12992. *)
  12993. # FIXME: insert proper C++ library support
  12994. ld_shlibs_CXX=no
  12995. ;;
  12996. esac
  12997. ;;
  12998. cygwin* | mingw* | pw32* | cegcc*)
  12999. case $GXX,$cc_basename in
  13000. ,cl* | no,cl*)
  13001. # Native MSVC
  13002. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13003. # no search path for DLLs.
  13004. hardcode_libdir_flag_spec_CXX=' '
  13005. allow_undefined_flag_CXX=unsupported
  13006. always_export_symbols_CXX=yes
  13007. file_list_spec_CXX='@'
  13008. # Tell ltmain to make .lib files, not .a files.
  13009. libext=lib
  13010. # Tell ltmain to make .dll files, not .so files.
  13011. shrext_cmds=.dll
  13012. # FIXME: Setting linknames here is a bad hack.
  13013. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13014. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13015. cp "$export_symbols" "$output_objdir/$soname.def";
  13016. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13017. else
  13018. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13019. fi~
  13020. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13021. linknames='
  13022. # The linker will not automatically build a static lib if we build a DLL.
  13023. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13024. enable_shared_with_static_runtimes_CXX=yes
  13025. # Don't use ranlib
  13026. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13027. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13028. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13029. case $lt_outputfile in
  13030. *.exe|*.EXE) ;;
  13031. *)
  13032. lt_outputfile=$lt_outputfile.exe
  13033. lt_tool_outputfile=$lt_tool_outputfile.exe
  13034. ;;
  13035. esac~
  13036. func_to_tool_file "$lt_outputfile"~
  13037. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13038. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13039. $RM "$lt_outputfile.manifest";
  13040. fi'
  13041. ;;
  13042. *)
  13043. # g++
  13044. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13045. # as there is no search path for DLLs.
  13046. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13047. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13048. allow_undefined_flag_CXX=unsupported
  13049. always_export_symbols_CXX=no
  13050. enable_shared_with_static_runtimes_CXX=yes
  13051. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13052. 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'
  13053. # If the export-symbols file already is a .def file, use it as
  13054. # is; otherwise, prepend EXPORTS...
  13055. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13056. cp $export_symbols $output_objdir/$soname.def;
  13057. else
  13058. echo EXPORTS > $output_objdir/$soname.def;
  13059. cat $export_symbols >> $output_objdir/$soname.def;
  13060. fi~
  13061. $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'
  13062. else
  13063. ld_shlibs_CXX=no
  13064. fi
  13065. ;;
  13066. esac
  13067. ;;
  13068. darwin* | rhapsody*)
  13069. archive_cmds_need_lc_CXX=no
  13070. hardcode_direct_CXX=no
  13071. hardcode_automatic_CXX=yes
  13072. hardcode_shlibpath_var_CXX=unsupported
  13073. if test yes = "$lt_cv_ld_force_load"; then
  13074. 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\"`'
  13075. else
  13076. whole_archive_flag_spec_CXX=''
  13077. fi
  13078. link_all_deplibs_CXX=yes
  13079. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13080. case $cc_basename in
  13081. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13082. *) _lt_dar_can_shared=$GCC ;;
  13083. esac
  13084. if test yes = "$_lt_dar_can_shared"; then
  13085. output_verbose_link_cmd=func_echo_all
  13086. 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"
  13087. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13088. 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"
  13089. 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"
  13090. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13091. 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"
  13092. 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"
  13093. fi
  13094. else
  13095. ld_shlibs_CXX=no
  13096. fi
  13097. ;;
  13098. os2*)
  13099. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13100. hardcode_minus_L_CXX=yes
  13101. allow_undefined_flag_CXX=unsupported
  13102. shrext_cmds=.dll
  13103. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13104. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13105. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13106. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13107. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13108. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13109. emximp -o $lib $output_objdir/$libname.def'
  13110. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13111. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13112. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13113. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13114. prefix_cmds="$SED"~
  13115. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13116. prefix_cmds="$prefix_cmds -e 1d";
  13117. fi~
  13118. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13119. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13120. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13121. emximp -o $lib $output_objdir/$libname.def'
  13122. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13123. enable_shared_with_static_runtimes_CXX=yes
  13124. file_list_spec_CXX='@'
  13125. ;;
  13126. dgux*)
  13127. case $cc_basename in
  13128. ec++*)
  13129. # FIXME: insert proper C++ library support
  13130. ld_shlibs_CXX=no
  13131. ;;
  13132. ghcx*)
  13133. # Green Hills C++ Compiler
  13134. # FIXME: insert proper C++ library support
  13135. ld_shlibs_CXX=no
  13136. ;;
  13137. *)
  13138. # FIXME: insert proper C++ library support
  13139. ld_shlibs_CXX=no
  13140. ;;
  13141. esac
  13142. ;;
  13143. freebsd2.*)
  13144. # C++ shared libraries reported to be fairly broken before
  13145. # switch to ELF
  13146. ld_shlibs_CXX=no
  13147. ;;
  13148. freebsd-elf*)
  13149. archive_cmds_need_lc_CXX=no
  13150. ;;
  13151. freebsd* | dragonfly* | midnightbsd*)
  13152. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13153. # conventions
  13154. ld_shlibs_CXX=yes
  13155. ;;
  13156. haiku*)
  13157. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13158. link_all_deplibs_CXX=yes
  13159. ;;
  13160. hpux9*)
  13161. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13162. hardcode_libdir_separator_CXX=:
  13163. export_dynamic_flag_spec_CXX='$wl-E'
  13164. hardcode_direct_CXX=yes
  13165. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13166. # but as the default
  13167. # location of the library.
  13168. case $cc_basename in
  13169. CC*)
  13170. # FIXME: insert proper C++ library support
  13171. ld_shlibs_CXX=no
  13172. ;;
  13173. aCC*)
  13174. 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'
  13175. # Commands to make compiler produce verbose output that lists
  13176. # what "hidden" libraries, object files and flags are used when
  13177. # linking a shared library.
  13178. #
  13179. # There doesn't appear to be a way to prevent this compiler from
  13180. # explicitly linking system object files so we need to strip them
  13181. # from the output so that they don't get included in the library
  13182. # dependencies.
  13183. 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"'
  13184. ;;
  13185. *)
  13186. if test yes = "$GXX"; then
  13187. 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'
  13188. else
  13189. # FIXME: insert proper C++ library support
  13190. ld_shlibs_CXX=no
  13191. fi
  13192. ;;
  13193. esac
  13194. ;;
  13195. hpux10*|hpux11*)
  13196. if test no = "$with_gnu_ld"; then
  13197. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13198. hardcode_libdir_separator_CXX=:
  13199. case $host_cpu in
  13200. hppa*64*|ia64*)
  13201. ;;
  13202. *)
  13203. export_dynamic_flag_spec_CXX='$wl-E'
  13204. ;;
  13205. esac
  13206. fi
  13207. case $host_cpu in
  13208. hppa*64*|ia64*)
  13209. hardcode_direct_CXX=no
  13210. hardcode_shlibpath_var_CXX=no
  13211. ;;
  13212. *)
  13213. hardcode_direct_CXX=yes
  13214. hardcode_direct_absolute_CXX=yes
  13215. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13216. # but as the default
  13217. # location of the library.
  13218. ;;
  13219. esac
  13220. case $cc_basename in
  13221. CC*)
  13222. # FIXME: insert proper C++ library support
  13223. ld_shlibs_CXX=no
  13224. ;;
  13225. aCC*)
  13226. case $host_cpu in
  13227. hppa*64*)
  13228. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13229. ;;
  13230. ia64*)
  13231. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13232. ;;
  13233. *)
  13234. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13235. ;;
  13236. esac
  13237. # Commands to make compiler produce verbose output that lists
  13238. # what "hidden" libraries, object files and flags are used when
  13239. # linking a shared library.
  13240. #
  13241. # There doesn't appear to be a way to prevent this compiler from
  13242. # explicitly linking system object files so we need to strip them
  13243. # from the output so that they don't get included in the library
  13244. # dependencies.
  13245. 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"'
  13246. ;;
  13247. *)
  13248. if test yes = "$GXX"; then
  13249. if test no = "$with_gnu_ld"; then
  13250. case $host_cpu in
  13251. hppa*64*)
  13252. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13253. ;;
  13254. ia64*)
  13255. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13256. ;;
  13257. *)
  13258. 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'
  13259. ;;
  13260. esac
  13261. fi
  13262. else
  13263. # FIXME: insert proper C++ library support
  13264. ld_shlibs_CXX=no
  13265. fi
  13266. ;;
  13267. esac
  13268. ;;
  13269. interix[3-9]*)
  13270. hardcode_direct_CXX=no
  13271. hardcode_shlibpath_var_CXX=no
  13272. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13273. export_dynamic_flag_spec_CXX='$wl-E'
  13274. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13275. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13276. # default) and relocated if they conflict, which is a slow very memory
  13277. # consuming and fragmenting process. To avoid this, we pick a random,
  13278. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13279. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13280. 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'
  13281. 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'
  13282. ;;
  13283. irix5* | irix6*)
  13284. case $cc_basename in
  13285. CC*)
  13286. # SGI C++
  13287. 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'
  13288. # Archives containing C++ object files must be created using
  13289. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13290. # necessary to make sure instantiated templates are included
  13291. # in the archive.
  13292. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13293. ;;
  13294. *)
  13295. if test yes = "$GXX"; then
  13296. if test no = "$with_gnu_ld"; then
  13297. 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'
  13298. else
  13299. 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'
  13300. fi
  13301. fi
  13302. link_all_deplibs_CXX=yes
  13303. ;;
  13304. esac
  13305. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13306. hardcode_libdir_separator_CXX=:
  13307. inherit_rpath_CXX=yes
  13308. ;;
  13309. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13310. case $cc_basename in
  13311. KCC*)
  13312. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13313. # KCC will only create a shared library if the output file
  13314. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13315. # to its proper name (with version) after linking.
  13316. 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'
  13317. 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'
  13318. # Commands to make compiler produce verbose output that lists
  13319. # what "hidden" libraries, object files and flags are used when
  13320. # linking a shared library.
  13321. #
  13322. # There doesn't appear to be a way to prevent this compiler from
  13323. # explicitly linking system object files so we need to strip them
  13324. # from the output so that they don't get included in the library
  13325. # dependencies.
  13326. 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"'
  13327. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13328. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13329. # Archives containing C++ object files must be created using
  13330. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13331. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13332. ;;
  13333. icpc* | ecpc* )
  13334. # Intel C++
  13335. with_gnu_ld=yes
  13336. # version 8.0 and above of icpc choke on multiply defined symbols
  13337. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13338. # earlier do not add the objects themselves.
  13339. case `$CC -V 2>&1` in
  13340. *"Version 7."*)
  13341. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13342. 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'
  13343. ;;
  13344. *) # Version 8.0 or newer
  13345. tmp_idyn=
  13346. case $host_cpu in
  13347. ia64*) tmp_idyn=' -i_dynamic';;
  13348. esac
  13349. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13350. 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'
  13351. ;;
  13352. esac
  13353. archive_cmds_need_lc_CXX=no
  13354. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13355. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13356. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13357. ;;
  13358. pgCC* | pgcpp*)
  13359. # Portland Group C++ compiler
  13360. case `$CC -V` in
  13361. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13362. prelink_cmds_CXX='tpldir=Template.dir~
  13363. rm -rf $tpldir~
  13364. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13365. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13366. old_archive_cmds_CXX='tpldir=Template.dir~
  13367. rm -rf $tpldir~
  13368. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13369. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13370. $RANLIB $oldlib'
  13371. archive_cmds_CXX='tpldir=Template.dir~
  13372. rm -rf $tpldir~
  13373. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13374. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13375. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13376. rm -rf $tpldir~
  13377. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13378. $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'
  13379. ;;
  13380. *) # Version 6 and above use weak symbols
  13381. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13382. 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'
  13383. ;;
  13384. esac
  13385. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13386. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13387. 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'
  13388. ;;
  13389. cxx*)
  13390. # Compaq C++
  13391. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13392. 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'
  13393. runpath_var=LD_RUN_PATH
  13394. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13395. hardcode_libdir_separator_CXX=:
  13396. # Commands to make compiler produce verbose output that lists
  13397. # what "hidden" libraries, object files and flags are used when
  13398. # linking a shared library.
  13399. #
  13400. # There doesn't appear to be a way to prevent this compiler from
  13401. # explicitly linking system object files so we need to strip them
  13402. # from the output so that they don't get included in the library
  13403. # dependencies.
  13404. 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'
  13405. ;;
  13406. xl* | mpixl* | bgxl*)
  13407. # IBM XL 8.0 on PPC, with GNU ld
  13408. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13409. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13410. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13411. if test yes = "$supports_anon_versioning"; then
  13412. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13413. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13414. echo "local: *; };" >> $output_objdir/$libname.ver~
  13415. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13416. fi
  13417. ;;
  13418. *)
  13419. case `$CC -V 2>&1 | sed 5q` in
  13420. *Sun\ C*)
  13421. # Sun C++ 5.9
  13422. no_undefined_flag_CXX=' -zdefs'
  13423. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13424. 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'
  13425. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13426. 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'
  13427. compiler_needs_object_CXX=yes
  13428. # Not sure whether something based on
  13429. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13430. # would be better.
  13431. output_verbose_link_cmd='func_echo_all'
  13432. # Archives containing C++ object files must be created using
  13433. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13434. # necessary to make sure instantiated templates are included
  13435. # in the archive.
  13436. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13437. ;;
  13438. esac
  13439. ;;
  13440. esac
  13441. ;;
  13442. lynxos*)
  13443. # FIXME: insert proper C++ library support
  13444. ld_shlibs_CXX=no
  13445. ;;
  13446. m88k*)
  13447. # FIXME: insert proper C++ library support
  13448. ld_shlibs_CXX=no
  13449. ;;
  13450. mvs*)
  13451. case $cc_basename in
  13452. cxx*)
  13453. # FIXME: insert proper C++ library support
  13454. ld_shlibs_CXX=no
  13455. ;;
  13456. *)
  13457. # FIXME: insert proper C++ library support
  13458. ld_shlibs_CXX=no
  13459. ;;
  13460. esac
  13461. ;;
  13462. netbsd*)
  13463. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13464. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13465. wlarc=
  13466. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13467. hardcode_direct_CXX=yes
  13468. hardcode_shlibpath_var_CXX=no
  13469. fi
  13470. # Workaround some broken pre-1.5 toolchains
  13471. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13472. ;;
  13473. *nto* | *qnx*)
  13474. ld_shlibs_CXX=yes
  13475. ;;
  13476. openbsd* | bitrig*)
  13477. if test -f /usr/libexec/ld.so; then
  13478. hardcode_direct_CXX=yes
  13479. hardcode_shlibpath_var_CXX=no
  13480. hardcode_direct_absolute_CXX=yes
  13481. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13482. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13483. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13484. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13485. export_dynamic_flag_spec_CXX='$wl-E'
  13486. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13487. fi
  13488. output_verbose_link_cmd=func_echo_all
  13489. else
  13490. ld_shlibs_CXX=no
  13491. fi
  13492. ;;
  13493. osf3* | osf4* | osf5*)
  13494. case $cc_basename in
  13495. KCC*)
  13496. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13497. # KCC will only create a shared library if the output file
  13498. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13499. # to its proper name (with version) after linking.
  13500. 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'
  13501. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13502. hardcode_libdir_separator_CXX=:
  13503. # Archives containing C++ object files must be created using
  13504. # the KAI C++ compiler.
  13505. case $host in
  13506. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13507. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13508. esac
  13509. ;;
  13510. RCC*)
  13511. # Rational C++ 2.4.1
  13512. # FIXME: insert proper C++ library support
  13513. ld_shlibs_CXX=no
  13514. ;;
  13515. cxx*)
  13516. case $host in
  13517. osf3*)
  13518. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13519. 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'
  13520. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13521. ;;
  13522. *)
  13523. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13524. 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'
  13525. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13526. echo "-hidden">> $lib.exp~
  13527. $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~
  13528. $RM $lib.exp'
  13529. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13530. ;;
  13531. esac
  13532. hardcode_libdir_separator_CXX=:
  13533. # Commands to make compiler produce verbose output that lists
  13534. # what "hidden" libraries, object files and flags are used when
  13535. # linking a shared library.
  13536. #
  13537. # There doesn't appear to be a way to prevent this compiler from
  13538. # explicitly linking system object files so we need to strip them
  13539. # from the output so that they don't get included in the library
  13540. # dependencies.
  13541. 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"'
  13542. ;;
  13543. *)
  13544. if test yes,no = "$GXX,$with_gnu_ld"; then
  13545. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13546. case $host in
  13547. osf3*)
  13548. 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'
  13549. ;;
  13550. *)
  13551. 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'
  13552. ;;
  13553. esac
  13554. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13555. hardcode_libdir_separator_CXX=:
  13556. # Commands to make compiler produce verbose output that lists
  13557. # what "hidden" libraries, object files and flags are used when
  13558. # linking a shared library.
  13559. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13560. else
  13561. # FIXME: insert proper C++ library support
  13562. ld_shlibs_CXX=no
  13563. fi
  13564. ;;
  13565. esac
  13566. ;;
  13567. psos*)
  13568. # FIXME: insert proper C++ library support
  13569. ld_shlibs_CXX=no
  13570. ;;
  13571. sunos4*)
  13572. case $cc_basename in
  13573. CC*)
  13574. # Sun C++ 4.x
  13575. # FIXME: insert proper C++ library support
  13576. ld_shlibs_CXX=no
  13577. ;;
  13578. lcc*)
  13579. # Lucid
  13580. # FIXME: insert proper C++ library support
  13581. ld_shlibs_CXX=no
  13582. ;;
  13583. *)
  13584. # FIXME: insert proper C++ library support
  13585. ld_shlibs_CXX=no
  13586. ;;
  13587. esac
  13588. ;;
  13589. solaris*)
  13590. case $cc_basename in
  13591. CC* | sunCC*)
  13592. # Sun C++ 4.2, 5.x and Centerline C++
  13593. archive_cmds_need_lc_CXX=yes
  13594. no_undefined_flag_CXX=' -zdefs'
  13595. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13596. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13597. $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'
  13598. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13599. hardcode_shlibpath_var_CXX=no
  13600. case $host_os in
  13601. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13602. *)
  13603. # The compiler driver will combine and reorder linker options,
  13604. # but understands '-z linker_flag'.
  13605. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13606. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13607. ;;
  13608. esac
  13609. link_all_deplibs_CXX=yes
  13610. output_verbose_link_cmd='func_echo_all'
  13611. # Archives containing C++ object files must be created using
  13612. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13613. # necessary to make sure instantiated templates are included
  13614. # in the archive.
  13615. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13616. ;;
  13617. gcx*)
  13618. # Green Hills C++ Compiler
  13619. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13620. # The C++ compiler must be used to create the archive.
  13621. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13622. ;;
  13623. *)
  13624. # GNU C++ compiler with Solaris linker
  13625. if test yes,no = "$GXX,$with_gnu_ld"; then
  13626. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13627. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13628. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13629. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13630. $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'
  13631. # Commands to make compiler produce verbose output that lists
  13632. # what "hidden" libraries, object files and flags are used when
  13633. # linking a shared library.
  13634. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13635. else
  13636. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13637. # platform.
  13638. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13639. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13640. $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'
  13641. # Commands to make compiler produce verbose output that lists
  13642. # what "hidden" libraries, object files and flags are used when
  13643. # linking a shared library.
  13644. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13645. fi
  13646. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13647. case $host_os in
  13648. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13649. *)
  13650. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13651. ;;
  13652. esac
  13653. fi
  13654. ;;
  13655. esac
  13656. ;;
  13657. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13658. no_undefined_flag_CXX='$wl-z,text'
  13659. archive_cmds_need_lc_CXX=no
  13660. hardcode_shlibpath_var_CXX=no
  13661. runpath_var='LD_RUN_PATH'
  13662. case $cc_basename in
  13663. CC*)
  13664. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13665. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13666. ;;
  13667. *)
  13668. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13669. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13670. ;;
  13671. esac
  13672. ;;
  13673. sysv5* | sco3.2v5* | sco5v6*)
  13674. # Note: We CANNOT use -z defs as we might desire, because we do not
  13675. # link with -lc, and that would cause any symbols used from libc to
  13676. # always be unresolved, which means just about no library would
  13677. # ever link correctly. If we're not using GNU ld we use -z text
  13678. # though, which does catch some bad symbols but isn't as heavy-handed
  13679. # as -z defs.
  13680. no_undefined_flag_CXX='$wl-z,text'
  13681. allow_undefined_flag_CXX='$wl-z,nodefs'
  13682. archive_cmds_need_lc_CXX=no
  13683. hardcode_shlibpath_var_CXX=no
  13684. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13685. hardcode_libdir_separator_CXX=':'
  13686. link_all_deplibs_CXX=yes
  13687. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13688. runpath_var='LD_RUN_PATH'
  13689. case $cc_basename in
  13690. CC*)
  13691. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13692. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13693. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13694. '"$old_archive_cmds_CXX"
  13695. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13696. '"$reload_cmds_CXX"
  13697. ;;
  13698. *)
  13699. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13700. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13701. ;;
  13702. esac
  13703. ;;
  13704. tandem*)
  13705. case $cc_basename in
  13706. NCC*)
  13707. # NonStop-UX NCC 3.20
  13708. # FIXME: insert proper C++ library support
  13709. ld_shlibs_CXX=no
  13710. ;;
  13711. *)
  13712. # FIXME: insert proper C++ library support
  13713. ld_shlibs_CXX=no
  13714. ;;
  13715. esac
  13716. ;;
  13717. vxworks*)
  13718. # FIXME: insert proper C++ library support
  13719. ld_shlibs_CXX=no
  13720. ;;
  13721. *)
  13722. # FIXME: insert proper C++ library support
  13723. ld_shlibs_CXX=no
  13724. ;;
  13725. esac
  13726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13727. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13728. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13729. GCC_CXX=$GXX
  13730. LD_CXX=$LD
  13731. ## CAVEAT EMPTOR:
  13732. ## There is no encapsulation within the following macros, do not change
  13733. ## the running order or otherwise move them around unless you know exactly
  13734. ## what you are doing...
  13735. # Dependencies to place before and after the object being linked:
  13736. predep_objects_CXX=
  13737. postdep_objects_CXX=
  13738. predeps_CXX=
  13739. postdeps_CXX=
  13740. compiler_lib_search_path_CXX=
  13741. cat > conftest.$ac_ext <<_LT_EOF
  13742. class Foo
  13743. {
  13744. public:
  13745. Foo (void) { a = 0; }
  13746. private:
  13747. int a;
  13748. };
  13749. _LT_EOF
  13750. _lt_libdeps_save_CFLAGS=$CFLAGS
  13751. case "$CC $CFLAGS " in #(
  13752. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13753. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13754. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13755. esac
  13756. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13757. (eval $ac_compile) 2>&5
  13758. ac_status=$?
  13759. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13760. test $ac_status = 0; }; then
  13761. # Parse the compiler output and extract the necessary
  13762. # objects, libraries and library flags.
  13763. # Sentinel used to keep track of whether or not we are before
  13764. # the conftest object file.
  13765. pre_test_object_deps_done=no
  13766. for p in `eval "$output_verbose_link_cmd"`; do
  13767. case $prev$p in
  13768. -L* | -R* | -l*)
  13769. # Some compilers place space between "-{L,R}" and the path.
  13770. # Remove the space.
  13771. if test x-L = "x$p" ||
  13772. test x-R = "x$p" ||
  13773. test x-l = "x$p"; then
  13774. prev=$p
  13775. continue
  13776. fi
  13777. # Expand the sysroot to ease extracting the directories later.
  13778. if test -z "$prev"; then
  13779. case $p in
  13780. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13781. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13782. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13783. esac
  13784. fi
  13785. case $p in
  13786. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13787. esac
  13788. if test no = "$pre_test_object_deps_done"; then
  13789. case $prev in
  13790. -L | -R)
  13791. # Internal compiler library paths should come after those
  13792. # provided the user. The postdeps already come after the
  13793. # user supplied libs so there is no need to process them.
  13794. if test -z "$compiler_lib_search_path_CXX"; then
  13795. compiler_lib_search_path_CXX=$prev$p
  13796. else
  13797. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13798. fi
  13799. ;;
  13800. # The "-l" case would never come before the object being
  13801. # linked, so don't bother handling this case.
  13802. esac
  13803. else
  13804. if test -z "$postdeps_CXX"; then
  13805. postdeps_CXX=$prev$p
  13806. else
  13807. postdeps_CXX="${postdeps_CXX} $prev$p"
  13808. fi
  13809. fi
  13810. prev=
  13811. ;;
  13812. *.lto.$objext) ;; # Ignore GCC LTO objects
  13813. *.$objext)
  13814. # This assumes that the test object file only shows up
  13815. # once in the compiler output.
  13816. if test "$p" = "conftest.$objext"; then
  13817. pre_test_object_deps_done=yes
  13818. continue
  13819. fi
  13820. if test no = "$pre_test_object_deps_done"; then
  13821. if test -z "$predep_objects_CXX"; then
  13822. predep_objects_CXX=$p
  13823. else
  13824. predep_objects_CXX="$predep_objects_CXX $p"
  13825. fi
  13826. else
  13827. if test -z "$postdep_objects_CXX"; then
  13828. postdep_objects_CXX=$p
  13829. else
  13830. postdep_objects_CXX="$postdep_objects_CXX $p"
  13831. fi
  13832. fi
  13833. ;;
  13834. *) ;; # Ignore the rest.
  13835. esac
  13836. done
  13837. # Clean up.
  13838. rm -f a.out a.exe
  13839. else
  13840. echo "libtool.m4: error: problem compiling CXX test program"
  13841. fi
  13842. $RM -f confest.$objext
  13843. CFLAGS=$_lt_libdeps_save_CFLAGS
  13844. # PORTME: override above test on systems where it is broken
  13845. case $host_os in
  13846. interix[3-9]*)
  13847. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13848. # hack all around it, let's just trust "g++" to DTRT.
  13849. predep_objects_CXX=
  13850. postdep_objects_CXX=
  13851. postdeps_CXX=
  13852. ;;
  13853. esac
  13854. case " $postdeps_CXX " in
  13855. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13856. esac
  13857. compiler_lib_search_dirs_CXX=
  13858. if test -n "${compiler_lib_search_path_CXX}"; then
  13859. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13860. fi
  13861. lt_prog_compiler_wl_CXX=
  13862. lt_prog_compiler_pic_CXX=
  13863. lt_prog_compiler_static_CXX=
  13864. # C++ specific cases for pic, static, wl, etc.
  13865. if test yes = "$GXX"; then
  13866. lt_prog_compiler_wl_CXX='-Wl,'
  13867. lt_prog_compiler_static_CXX='-static'
  13868. case $host_os in
  13869. aix*)
  13870. # All AIX code is PIC.
  13871. if test ia64 = "$host_cpu"; then
  13872. # AIX 5 now supports IA64 processor
  13873. lt_prog_compiler_static_CXX='-Bstatic'
  13874. fi
  13875. lt_prog_compiler_pic_CXX='-fPIC'
  13876. ;;
  13877. amigaos*)
  13878. case $host_cpu in
  13879. powerpc)
  13880. # see comment about AmigaOS4 .so support
  13881. lt_prog_compiler_pic_CXX='-fPIC'
  13882. ;;
  13883. m68k)
  13884. # FIXME: we need at least 68020 code to build shared libraries, but
  13885. # adding the '-m68020' flag to GCC prevents building anything better,
  13886. # like '-m68040'.
  13887. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13888. ;;
  13889. esac
  13890. ;;
  13891. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13892. # PIC is the default for these OSes.
  13893. ;;
  13894. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13895. # This hack is so that the source file can tell whether it is being
  13896. # built for inclusion in a dll (and should export symbols for example).
  13897. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13898. # (--disable-auto-import) libraries
  13899. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13900. case $host_os in
  13901. os2*)
  13902. lt_prog_compiler_static_CXX='$wl-static'
  13903. ;;
  13904. esac
  13905. ;;
  13906. darwin* | rhapsody*)
  13907. # PIC is the default on this platform
  13908. # Common symbols not allowed in MH_DYLIB files
  13909. lt_prog_compiler_pic_CXX='-fno-common'
  13910. ;;
  13911. *djgpp*)
  13912. # DJGPP does not support shared libraries at all
  13913. lt_prog_compiler_pic_CXX=
  13914. ;;
  13915. haiku*)
  13916. # PIC is the default for Haiku.
  13917. # The "-static" flag exists, but is broken.
  13918. lt_prog_compiler_static_CXX=
  13919. ;;
  13920. interix[3-9]*)
  13921. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13922. # Instead, we relocate shared libraries at runtime.
  13923. ;;
  13924. sysv4*MP*)
  13925. if test -d /usr/nec; then
  13926. lt_prog_compiler_pic_CXX=-Kconform_pic
  13927. fi
  13928. ;;
  13929. hpux*)
  13930. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13931. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13932. # sets the default TLS model and affects inlining.
  13933. case $host_cpu in
  13934. hppa*64*)
  13935. ;;
  13936. *)
  13937. lt_prog_compiler_pic_CXX='-fPIC'
  13938. ;;
  13939. esac
  13940. ;;
  13941. *qnx* | *nto*)
  13942. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13943. # it will coredump.
  13944. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13945. ;;
  13946. *)
  13947. lt_prog_compiler_pic_CXX='-fPIC'
  13948. ;;
  13949. esac
  13950. else
  13951. case $host_os in
  13952. aix[4-9]*)
  13953. # All AIX code is PIC.
  13954. if test ia64 = "$host_cpu"; then
  13955. # AIX 5 now supports IA64 processor
  13956. lt_prog_compiler_static_CXX='-Bstatic'
  13957. else
  13958. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13959. fi
  13960. ;;
  13961. chorus*)
  13962. case $cc_basename in
  13963. cxch68*)
  13964. # Green Hills C++ Compiler
  13965. # _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"
  13966. ;;
  13967. esac
  13968. ;;
  13969. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13970. # This hack is so that the source file can tell whether it is being
  13971. # built for inclusion in a dll (and should export symbols for example).
  13972. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13973. ;;
  13974. dgux*)
  13975. case $cc_basename in
  13976. ec++*)
  13977. lt_prog_compiler_pic_CXX='-KPIC'
  13978. ;;
  13979. ghcx*)
  13980. # Green Hills C++ Compiler
  13981. lt_prog_compiler_pic_CXX='-pic'
  13982. ;;
  13983. *)
  13984. ;;
  13985. esac
  13986. ;;
  13987. freebsd* | dragonfly* | midnightbsd*)
  13988. # FreeBSD uses GNU C++
  13989. ;;
  13990. hpux9* | hpux10* | hpux11*)
  13991. case $cc_basename in
  13992. CC*)
  13993. lt_prog_compiler_wl_CXX='-Wl,'
  13994. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13995. if test ia64 != "$host_cpu"; then
  13996. lt_prog_compiler_pic_CXX='+Z'
  13997. fi
  13998. ;;
  13999. aCC*)
  14000. lt_prog_compiler_wl_CXX='-Wl,'
  14001. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14002. case $host_cpu in
  14003. hppa*64*|ia64*)
  14004. # +Z the default
  14005. ;;
  14006. *)
  14007. lt_prog_compiler_pic_CXX='+Z'
  14008. ;;
  14009. esac
  14010. ;;
  14011. *)
  14012. ;;
  14013. esac
  14014. ;;
  14015. interix*)
  14016. # This is c89, which is MS Visual C++ (no shared libs)
  14017. # Anyone wants to do a port?
  14018. ;;
  14019. irix5* | irix6* | nonstopux*)
  14020. case $cc_basename in
  14021. CC*)
  14022. lt_prog_compiler_wl_CXX='-Wl,'
  14023. lt_prog_compiler_static_CXX='-non_shared'
  14024. # CC pic flag -KPIC is the default.
  14025. ;;
  14026. *)
  14027. ;;
  14028. esac
  14029. ;;
  14030. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14031. case $cc_basename in
  14032. KCC*)
  14033. # KAI C++ Compiler
  14034. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14035. lt_prog_compiler_pic_CXX='-fPIC'
  14036. ;;
  14037. ecpc* )
  14038. # old Intel C++ for x86_64, which still supported -KPIC.
  14039. lt_prog_compiler_wl_CXX='-Wl,'
  14040. lt_prog_compiler_pic_CXX='-KPIC'
  14041. lt_prog_compiler_static_CXX='-static'
  14042. ;;
  14043. icpc* )
  14044. # Intel C++, used to be incompatible with GCC.
  14045. # ICC 10 doesn't accept -KPIC any more.
  14046. lt_prog_compiler_wl_CXX='-Wl,'
  14047. lt_prog_compiler_pic_CXX='-fPIC'
  14048. lt_prog_compiler_static_CXX='-static'
  14049. ;;
  14050. pgCC* | pgcpp*)
  14051. # Portland Group C++ compiler
  14052. lt_prog_compiler_wl_CXX='-Wl,'
  14053. lt_prog_compiler_pic_CXX='-fpic'
  14054. lt_prog_compiler_static_CXX='-Bstatic'
  14055. ;;
  14056. cxx*)
  14057. # Compaq C++
  14058. # Make sure the PIC flag is empty. It appears that all Alpha
  14059. # Linux and Compaq Tru64 Unix objects are PIC.
  14060. lt_prog_compiler_pic_CXX=
  14061. lt_prog_compiler_static_CXX='-non_shared'
  14062. ;;
  14063. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14064. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14065. lt_prog_compiler_wl_CXX='-Wl,'
  14066. lt_prog_compiler_pic_CXX='-qpic'
  14067. lt_prog_compiler_static_CXX='-qstaticlink'
  14068. ;;
  14069. *)
  14070. case `$CC -V 2>&1 | sed 5q` in
  14071. *Sun\ C*)
  14072. # Sun C++ 5.9
  14073. lt_prog_compiler_pic_CXX='-KPIC'
  14074. lt_prog_compiler_static_CXX='-Bstatic'
  14075. lt_prog_compiler_wl_CXX='-Qoption ld '
  14076. ;;
  14077. esac
  14078. ;;
  14079. esac
  14080. ;;
  14081. lynxos*)
  14082. ;;
  14083. m88k*)
  14084. ;;
  14085. mvs*)
  14086. case $cc_basename in
  14087. cxx*)
  14088. lt_prog_compiler_pic_CXX='-W c,exportall'
  14089. ;;
  14090. *)
  14091. ;;
  14092. esac
  14093. ;;
  14094. netbsd*)
  14095. ;;
  14096. *qnx* | *nto*)
  14097. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14098. # it will coredump.
  14099. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14100. ;;
  14101. osf3* | osf4* | osf5*)
  14102. case $cc_basename in
  14103. KCC*)
  14104. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14105. ;;
  14106. RCC*)
  14107. # Rational C++ 2.4.1
  14108. lt_prog_compiler_pic_CXX='-pic'
  14109. ;;
  14110. cxx*)
  14111. # Digital/Compaq C++
  14112. lt_prog_compiler_wl_CXX='-Wl,'
  14113. # Make sure the PIC flag is empty. It appears that all Alpha
  14114. # Linux and Compaq Tru64 Unix objects are PIC.
  14115. lt_prog_compiler_pic_CXX=
  14116. lt_prog_compiler_static_CXX='-non_shared'
  14117. ;;
  14118. *)
  14119. ;;
  14120. esac
  14121. ;;
  14122. psos*)
  14123. ;;
  14124. solaris*)
  14125. case $cc_basename in
  14126. CC* | sunCC*)
  14127. # Sun C++ 4.2, 5.x and Centerline C++
  14128. lt_prog_compiler_pic_CXX='-KPIC'
  14129. lt_prog_compiler_static_CXX='-Bstatic'
  14130. lt_prog_compiler_wl_CXX='-Qoption ld '
  14131. ;;
  14132. gcx*)
  14133. # Green Hills C++ Compiler
  14134. lt_prog_compiler_pic_CXX='-PIC'
  14135. ;;
  14136. *)
  14137. ;;
  14138. esac
  14139. ;;
  14140. sunos4*)
  14141. case $cc_basename in
  14142. CC*)
  14143. # Sun C++ 4.x
  14144. lt_prog_compiler_pic_CXX='-pic'
  14145. lt_prog_compiler_static_CXX='-Bstatic'
  14146. ;;
  14147. lcc*)
  14148. # Lucid
  14149. lt_prog_compiler_pic_CXX='-pic'
  14150. ;;
  14151. *)
  14152. ;;
  14153. esac
  14154. ;;
  14155. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14156. case $cc_basename in
  14157. CC*)
  14158. lt_prog_compiler_wl_CXX='-Wl,'
  14159. lt_prog_compiler_pic_CXX='-KPIC'
  14160. lt_prog_compiler_static_CXX='-Bstatic'
  14161. ;;
  14162. esac
  14163. ;;
  14164. tandem*)
  14165. case $cc_basename in
  14166. NCC*)
  14167. # NonStop-UX NCC 3.20
  14168. lt_prog_compiler_pic_CXX='-KPIC'
  14169. ;;
  14170. *)
  14171. ;;
  14172. esac
  14173. ;;
  14174. vxworks*)
  14175. ;;
  14176. *)
  14177. lt_prog_compiler_can_build_shared_CXX=no
  14178. ;;
  14179. esac
  14180. fi
  14181. case $host_os in
  14182. # For platforms that do not support PIC, -DPIC is meaningless:
  14183. *djgpp*)
  14184. lt_prog_compiler_pic_CXX=
  14185. ;;
  14186. *)
  14187. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14188. ;;
  14189. esac
  14190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14191. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14192. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14193. then :
  14194. printf %s "(cached) " >&6
  14195. else $as_nop
  14196. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14197. fi
  14198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14199. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14200. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14201. #
  14202. # Check to make sure the PIC flag actually works.
  14203. #
  14204. if test -n "$lt_prog_compiler_pic_CXX"; then
  14205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14206. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14207. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14208. then :
  14209. printf %s "(cached) " >&6
  14210. else $as_nop
  14211. lt_cv_prog_compiler_pic_works_CXX=no
  14212. ac_outfile=conftest.$ac_objext
  14213. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14214. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14215. # Insert the option either (1) after the last *FLAGS variable, or
  14216. # (2) before a word containing "conftest.", or (3) at the end.
  14217. # Note that $ac_compile itself does not contain backslashes and begins
  14218. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14219. # The option is referenced via a variable to avoid confusing sed.
  14220. lt_compile=`echo "$ac_compile" | $SED \
  14221. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14222. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14223. -e 's:$: $lt_compiler_flag:'`
  14224. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14225. (eval "$lt_compile" 2>conftest.err)
  14226. ac_status=$?
  14227. cat conftest.err >&5
  14228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14229. if (exit $ac_status) && test -s "$ac_outfile"; then
  14230. # The compiler can only warn and ignore the option if not recognized
  14231. # So say no if there are warnings other than the usual output.
  14232. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14233. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14234. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14235. lt_cv_prog_compiler_pic_works_CXX=yes
  14236. fi
  14237. fi
  14238. $RM conftest*
  14239. fi
  14240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14241. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14242. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14243. case $lt_prog_compiler_pic_CXX in
  14244. "" | " "*) ;;
  14245. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14246. esac
  14247. else
  14248. lt_prog_compiler_pic_CXX=
  14249. lt_prog_compiler_can_build_shared_CXX=no
  14250. fi
  14251. fi
  14252. #
  14253. # Check to make sure the static flag actually works.
  14254. #
  14255. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14257. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14258. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14259. then :
  14260. printf %s "(cached) " >&6
  14261. else $as_nop
  14262. lt_cv_prog_compiler_static_works_CXX=no
  14263. save_LDFLAGS=$LDFLAGS
  14264. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14265. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14266. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14267. # The linker can only warn and ignore the option if not recognized
  14268. # So say no if there are warnings
  14269. if test -s conftest.err; then
  14270. # Append any errors to the config.log.
  14271. cat conftest.err 1>&5
  14272. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14273. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14274. if diff conftest.exp conftest.er2 >/dev/null; then
  14275. lt_cv_prog_compiler_static_works_CXX=yes
  14276. fi
  14277. else
  14278. lt_cv_prog_compiler_static_works_CXX=yes
  14279. fi
  14280. fi
  14281. $RM -r conftest*
  14282. LDFLAGS=$save_LDFLAGS
  14283. fi
  14284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14285. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14286. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14287. :
  14288. else
  14289. lt_prog_compiler_static_CXX=
  14290. fi
  14291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14292. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14293. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14294. then :
  14295. printf %s "(cached) " >&6
  14296. else $as_nop
  14297. lt_cv_prog_compiler_c_o_CXX=no
  14298. $RM -r conftest 2>/dev/null
  14299. mkdir conftest
  14300. cd conftest
  14301. mkdir out
  14302. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14303. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14304. # Insert the option either (1) after the last *FLAGS variable, or
  14305. # (2) before a word containing "conftest.", or (3) at the end.
  14306. # Note that $ac_compile itself does not contain backslashes and begins
  14307. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14308. lt_compile=`echo "$ac_compile" | $SED \
  14309. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14310. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14311. -e 's:$: $lt_compiler_flag:'`
  14312. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14313. (eval "$lt_compile" 2>out/conftest.err)
  14314. ac_status=$?
  14315. cat out/conftest.err >&5
  14316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14317. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14318. then
  14319. # The compiler can only warn and ignore the option if not recognized
  14320. # So say no if there are warnings
  14321. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14322. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14323. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14324. lt_cv_prog_compiler_c_o_CXX=yes
  14325. fi
  14326. fi
  14327. chmod u+w . 2>&5
  14328. $RM conftest*
  14329. # SGI C++ compiler will create directory out/ii_files/ for
  14330. # template instantiation
  14331. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14332. $RM out/* && rmdir out
  14333. cd ..
  14334. $RM -r conftest
  14335. $RM conftest*
  14336. fi
  14337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14338. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14340. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14341. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14342. then :
  14343. printf %s "(cached) " >&6
  14344. else $as_nop
  14345. lt_cv_prog_compiler_c_o_CXX=no
  14346. $RM -r conftest 2>/dev/null
  14347. mkdir conftest
  14348. cd conftest
  14349. mkdir out
  14350. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14351. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14352. # Insert the option either (1) after the last *FLAGS variable, or
  14353. # (2) before a word containing "conftest.", or (3) at the end.
  14354. # Note that $ac_compile itself does not contain backslashes and begins
  14355. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14356. lt_compile=`echo "$ac_compile" | $SED \
  14357. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14358. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14359. -e 's:$: $lt_compiler_flag:'`
  14360. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14361. (eval "$lt_compile" 2>out/conftest.err)
  14362. ac_status=$?
  14363. cat out/conftest.err >&5
  14364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14365. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14366. then
  14367. # The compiler can only warn and ignore the option if not recognized
  14368. # So say no if there are warnings
  14369. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14370. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14371. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14372. lt_cv_prog_compiler_c_o_CXX=yes
  14373. fi
  14374. fi
  14375. chmod u+w . 2>&5
  14376. $RM conftest*
  14377. # SGI C++ compiler will create directory out/ii_files/ for
  14378. # template instantiation
  14379. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14380. $RM out/* && rmdir out
  14381. cd ..
  14382. $RM -r conftest
  14383. $RM conftest*
  14384. fi
  14385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14386. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14387. hard_links=nottested
  14388. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14389. # do not overwrite the value of need_locks provided by the user
  14390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14391. printf %s "checking if we can lock with hard links... " >&6; }
  14392. hard_links=yes
  14393. $RM conftest*
  14394. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14395. touch conftest.a
  14396. ln conftest.a conftest.b 2>&5 || hard_links=no
  14397. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14399. printf "%s\n" "$hard_links" >&6; }
  14400. if test no = "$hard_links"; then
  14401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14402. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14403. need_locks=warn
  14404. fi
  14405. else
  14406. need_locks=no
  14407. fi
  14408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14409. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14410. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14411. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14412. case $host_os in
  14413. aix[4-9]*)
  14414. # If we're using GNU nm, then we don't want the "-C" option.
  14415. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14416. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14417. # weak defined symbols like other global defined symbols, whereas
  14418. # GNU nm marks them as "W".
  14419. # While the 'weak' keyword is ignored in the Export File, we need
  14420. # it in the Import File for the 'aix-soname' feature, so we have
  14421. # to replace the "-B" option with "-P" for AIX nm.
  14422. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14423. 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'
  14424. else
  14425. 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'
  14426. fi
  14427. ;;
  14428. pw32*)
  14429. export_symbols_cmds_CXX=$ltdll_cmds
  14430. ;;
  14431. cygwin* | mingw* | cegcc*)
  14432. case $cc_basename in
  14433. cl*)
  14434. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14435. ;;
  14436. *)
  14437. 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'
  14438. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14439. ;;
  14440. esac
  14441. ;;
  14442. *)
  14443. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14444. ;;
  14445. esac
  14446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14447. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14448. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14449. with_gnu_ld_CXX=$with_gnu_ld
  14450. #
  14451. # Do we need to explicitly link libc?
  14452. #
  14453. case "x$archive_cmds_need_lc_CXX" in
  14454. x|xyes)
  14455. # Assume -lc should be added
  14456. archive_cmds_need_lc_CXX=yes
  14457. if test yes,yes = "$GCC,$enable_shared"; then
  14458. case $archive_cmds_CXX in
  14459. *'~'*)
  14460. # FIXME: we may have to deal with multi-command sequences.
  14461. ;;
  14462. '$CC '*)
  14463. # Test whether the compiler implicitly links with -lc since on some
  14464. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14465. # to ld, don't add -lc before -lgcc.
  14466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14467. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14468. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14469. then :
  14470. printf %s "(cached) " >&6
  14471. else $as_nop
  14472. $RM conftest*
  14473. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14474. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14475. (eval $ac_compile) 2>&5
  14476. ac_status=$?
  14477. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14478. test $ac_status = 0; } 2>conftest.err; then
  14479. soname=conftest
  14480. lib=conftest
  14481. libobjs=conftest.$ac_objext
  14482. deplibs=
  14483. wl=$lt_prog_compiler_wl_CXX
  14484. pic_flag=$lt_prog_compiler_pic_CXX
  14485. compiler_flags=-v
  14486. linker_flags=-v
  14487. verstring=
  14488. output_objdir=.
  14489. libname=conftest
  14490. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14491. allow_undefined_flag_CXX=
  14492. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14493. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14494. ac_status=$?
  14495. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14496. test $ac_status = 0; }
  14497. then
  14498. lt_cv_archive_cmds_need_lc_CXX=no
  14499. else
  14500. lt_cv_archive_cmds_need_lc_CXX=yes
  14501. fi
  14502. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14503. else
  14504. cat conftest.err 1>&5
  14505. fi
  14506. $RM conftest*
  14507. fi
  14508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14509. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14510. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14511. ;;
  14512. esac
  14513. fi
  14514. ;;
  14515. esac
  14516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14517. printf %s "checking dynamic linker characteristics... " >&6; }
  14518. library_names_spec=
  14519. libname_spec='lib$name'
  14520. soname_spec=
  14521. shrext_cmds=.so
  14522. postinstall_cmds=
  14523. postuninstall_cmds=
  14524. finish_cmds=
  14525. finish_eval=
  14526. shlibpath_var=
  14527. shlibpath_overrides_runpath=unknown
  14528. version_type=none
  14529. dynamic_linker="$host_os ld.so"
  14530. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14531. need_lib_prefix=unknown
  14532. hardcode_into_libs=no
  14533. # when you set need_version to no, make sure it does not cause -set_version
  14534. # flags to be left without arguments
  14535. need_version=unknown
  14536. case $host_os in
  14537. aix3*)
  14538. version_type=linux # correct to gnu/linux during the next big refactor
  14539. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14540. shlibpath_var=LIBPATH
  14541. # AIX 3 has no versioning support, so we append a major version to the name.
  14542. soname_spec='$libname$release$shared_ext$major'
  14543. ;;
  14544. aix[4-9]*)
  14545. version_type=linux # correct to gnu/linux during the next big refactor
  14546. need_lib_prefix=no
  14547. need_version=no
  14548. hardcode_into_libs=yes
  14549. if test ia64 = "$host_cpu"; then
  14550. # AIX 5 supports IA64
  14551. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14552. shlibpath_var=LD_LIBRARY_PATH
  14553. else
  14554. # With GCC up to 2.95.x, collect2 would create an import file
  14555. # for dependence libraries. The import file would start with
  14556. # the line '#! .'. This would cause the generated library to
  14557. # depend on '.', always an invalid library. This was fixed in
  14558. # development snapshots of GCC prior to 3.0.
  14559. case $host_os in
  14560. aix4 | aix4.[01] | aix4.[01].*)
  14561. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14562. echo ' yes '
  14563. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14564. :
  14565. else
  14566. can_build_shared=no
  14567. fi
  14568. ;;
  14569. esac
  14570. # Using Import Files as archive members, it is possible to support
  14571. # filename-based versioning of shared library archives on AIX. While
  14572. # this would work for both with and without runtime linking, it will
  14573. # prevent static linking of such archives. So we do filename-based
  14574. # shared library versioning with .so extension only, which is used
  14575. # when both runtime linking and shared linking is enabled.
  14576. # Unfortunately, runtime linking may impact performance, so we do
  14577. # not want this to be the default eventually. Also, we use the
  14578. # versioned .so libs for executables only if there is the -brtl
  14579. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14580. # To allow for filename-based versioning support, we need to create
  14581. # libNAME.so.V as an archive file, containing:
  14582. # *) an Import File, referring to the versioned filename of the
  14583. # archive as well as the shared archive member, telling the
  14584. # bitwidth (32 or 64) of that shared object, and providing the
  14585. # list of exported symbols of that shared object, eventually
  14586. # decorated with the 'weak' keyword
  14587. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14588. # it being seen by the linker.
  14589. # At run time we better use the real file rather than another symlink,
  14590. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14591. case $with_aix_soname,$aix_use_runtimelinking in
  14592. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14593. # soname into executable. Probably we can add versioning support to
  14594. # collect2, so additional links can be useful in future.
  14595. aix,yes) # traditional libtool
  14596. dynamic_linker='AIX unversionable lib.so'
  14597. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14598. # instead of lib<name>.a to let people know that these are not
  14599. # typical AIX shared libraries.
  14600. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14601. ;;
  14602. aix,no) # traditional AIX only
  14603. dynamic_linker='AIX lib.a(lib.so.V)'
  14604. # We preserve .a as extension for shared libraries through AIX4.2
  14605. # and later when we are not doing run time linking.
  14606. library_names_spec='$libname$release.a $libname.a'
  14607. soname_spec='$libname$release$shared_ext$major'
  14608. ;;
  14609. svr4,*) # full svr4 only
  14610. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14611. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14612. # We do not specify a path in Import Files, so LIBPATH fires.
  14613. shlibpath_overrides_runpath=yes
  14614. ;;
  14615. *,yes) # both, prefer svr4
  14616. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14617. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14618. # unpreferred sharedlib libNAME.a needs extra handling
  14619. 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"'
  14620. 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"'
  14621. # We do not specify a path in Import Files, so LIBPATH fires.
  14622. shlibpath_overrides_runpath=yes
  14623. ;;
  14624. *,no) # both, prefer aix
  14625. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14626. library_names_spec='$libname$release.a $libname.a'
  14627. soname_spec='$libname$release$shared_ext$major'
  14628. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14629. 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)'
  14630. 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"'
  14631. ;;
  14632. esac
  14633. shlibpath_var=LIBPATH
  14634. fi
  14635. ;;
  14636. amigaos*)
  14637. case $host_cpu in
  14638. powerpc)
  14639. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14640. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14641. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14642. ;;
  14643. m68k)
  14644. library_names_spec='$libname.ixlibrary $libname.a'
  14645. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14646. 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'
  14647. ;;
  14648. esac
  14649. ;;
  14650. beos*)
  14651. library_names_spec='$libname$shared_ext'
  14652. dynamic_linker="$host_os ld.so"
  14653. shlibpath_var=LIBRARY_PATH
  14654. ;;
  14655. bsdi[45]*)
  14656. version_type=linux # correct to gnu/linux during the next big refactor
  14657. need_version=no
  14658. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14659. soname_spec='$libname$release$shared_ext$major'
  14660. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14661. shlibpath_var=LD_LIBRARY_PATH
  14662. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14663. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14664. # the default ld.so.conf also contains /usr/contrib/lib and
  14665. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14666. # libtool to hard-code these into programs
  14667. ;;
  14668. cygwin* | mingw* | pw32* | cegcc*)
  14669. version_type=windows
  14670. shrext_cmds=.dll
  14671. need_version=no
  14672. need_lib_prefix=no
  14673. case $GCC,$cc_basename in
  14674. yes,*)
  14675. # gcc
  14676. library_names_spec='$libname.dll.a'
  14677. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14678. postinstall_cmds='base_file=`basename \$file`~
  14679. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14680. dldir=$destdir/`dirname \$dlpath`~
  14681. test -d \$dldir || mkdir -p \$dldir~
  14682. $install_prog $dir/$dlname \$dldir/$dlname~
  14683. chmod a+x \$dldir/$dlname~
  14684. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14685. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14686. fi'
  14687. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14688. dlpath=$dir/\$dldll~
  14689. $RM \$dlpath'
  14690. shlibpath_overrides_runpath=yes
  14691. case $host_os in
  14692. cygwin*)
  14693. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14694. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14695. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14696. ;;
  14697. mingw* | cegcc*)
  14698. # MinGW DLLs use traditional 'lib' prefix
  14699. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14700. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14701. ;;
  14702. pw32*)
  14703. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14704. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14705. ;;
  14706. esac
  14707. dynamic_linker='Win32 ld.exe'
  14708. ;;
  14709. *,cl*)
  14710. # Native MSVC
  14711. libname_spec='$name'
  14712. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14713. library_names_spec='$libname.dll.lib'
  14714. case $build_os in
  14715. mingw*)
  14716. sys_lib_search_path_spec=
  14717. lt_save_ifs=$IFS
  14718. IFS=';'
  14719. for lt_path in $LIB
  14720. do
  14721. IFS=$lt_save_ifs
  14722. # Let DOS variable expansion print the short 8.3 style file name.
  14723. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14724. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14725. done
  14726. IFS=$lt_save_ifs
  14727. # Convert to MSYS style.
  14728. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14729. ;;
  14730. cygwin*)
  14731. # Convert to unix form, then to dos form, then back to unix form
  14732. # but this time dos style (no spaces!) so that the unix form looks
  14733. # like /cygdrive/c/PROGRA~1:/cygdr...
  14734. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14735. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14736. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14737. ;;
  14738. *)
  14739. sys_lib_search_path_spec=$LIB
  14740. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14741. # It is most probably a Windows format PATH.
  14742. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14743. else
  14744. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14745. fi
  14746. # FIXME: find the short name or the path components, as spaces are
  14747. # common. (e.g. "Program Files" -> "PROGRA~1")
  14748. ;;
  14749. esac
  14750. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14751. postinstall_cmds='base_file=`basename \$file`~
  14752. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14753. dldir=$destdir/`dirname \$dlpath`~
  14754. test -d \$dldir || mkdir -p \$dldir~
  14755. $install_prog $dir/$dlname \$dldir/$dlname'
  14756. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14757. dlpath=$dir/\$dldll~
  14758. $RM \$dlpath'
  14759. shlibpath_overrides_runpath=yes
  14760. dynamic_linker='Win32 link.exe'
  14761. ;;
  14762. *)
  14763. # Assume MSVC wrapper
  14764. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14765. dynamic_linker='Win32 ld.exe'
  14766. ;;
  14767. esac
  14768. # FIXME: first we should search . and the directory the executable is in
  14769. shlibpath_var=PATH
  14770. ;;
  14771. darwin* | rhapsody*)
  14772. dynamic_linker="$host_os dyld"
  14773. version_type=darwin
  14774. need_lib_prefix=no
  14775. need_version=no
  14776. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14777. soname_spec='$libname$release$major$shared_ext'
  14778. shlibpath_overrides_runpath=yes
  14779. shlibpath_var=DYLD_LIBRARY_PATH
  14780. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14781. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14782. ;;
  14783. dgux*)
  14784. version_type=linux # correct to gnu/linux during the next big refactor
  14785. need_lib_prefix=no
  14786. need_version=no
  14787. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14788. soname_spec='$libname$release$shared_ext$major'
  14789. shlibpath_var=LD_LIBRARY_PATH
  14790. ;;
  14791. freebsd* | dragonfly* | midnightbsd*)
  14792. # DragonFly does not have aout. When/if they implement a new
  14793. # versioning mechanism, adjust this.
  14794. if test -x /usr/bin/objformat; then
  14795. objformat=`/usr/bin/objformat`
  14796. else
  14797. case $host_os in
  14798. freebsd[23].*) objformat=aout ;;
  14799. *) objformat=elf ;;
  14800. esac
  14801. fi
  14802. version_type=freebsd-$objformat
  14803. case $version_type in
  14804. freebsd-elf*)
  14805. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14806. soname_spec='$libname$release$shared_ext$major'
  14807. need_version=no
  14808. need_lib_prefix=no
  14809. ;;
  14810. freebsd-*)
  14811. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14812. need_version=yes
  14813. ;;
  14814. esac
  14815. shlibpath_var=LD_LIBRARY_PATH
  14816. case $host_os in
  14817. freebsd2.*)
  14818. shlibpath_overrides_runpath=yes
  14819. ;;
  14820. freebsd3.[01]* | freebsdelf3.[01]*)
  14821. shlibpath_overrides_runpath=yes
  14822. hardcode_into_libs=yes
  14823. ;;
  14824. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14825. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14826. shlibpath_overrides_runpath=no
  14827. hardcode_into_libs=yes
  14828. ;;
  14829. *) # from 4.6 on, and DragonFly
  14830. shlibpath_overrides_runpath=yes
  14831. hardcode_into_libs=yes
  14832. ;;
  14833. esac
  14834. ;;
  14835. haiku*)
  14836. version_type=linux # correct to gnu/linux during the next big refactor
  14837. need_lib_prefix=no
  14838. need_version=no
  14839. dynamic_linker="$host_os runtime_loader"
  14840. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14841. soname_spec='$libname$release$shared_ext$major'
  14842. shlibpath_var=LIBRARY_PATH
  14843. shlibpath_overrides_runpath=no
  14844. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14845. hardcode_into_libs=yes
  14846. ;;
  14847. hpux9* | hpux10* | hpux11*)
  14848. # Give a soname corresponding to the major version so that dld.sl refuses to
  14849. # link against other versions.
  14850. version_type=sunos
  14851. need_lib_prefix=no
  14852. need_version=no
  14853. case $host_cpu in
  14854. ia64*)
  14855. shrext_cmds='.so'
  14856. hardcode_into_libs=yes
  14857. dynamic_linker="$host_os dld.so"
  14858. shlibpath_var=LD_LIBRARY_PATH
  14859. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14860. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14861. soname_spec='$libname$release$shared_ext$major'
  14862. if test 32 = "$HPUX_IA64_MODE"; then
  14863. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14864. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14865. else
  14866. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14867. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14868. fi
  14869. ;;
  14870. hppa*64*)
  14871. shrext_cmds='.sl'
  14872. hardcode_into_libs=yes
  14873. dynamic_linker="$host_os dld.sl"
  14874. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14875. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14876. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14877. soname_spec='$libname$release$shared_ext$major'
  14878. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14879. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14880. ;;
  14881. *)
  14882. shrext_cmds='.sl'
  14883. dynamic_linker="$host_os dld.sl"
  14884. shlibpath_var=SHLIB_PATH
  14885. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  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. ;;
  14889. esac
  14890. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14891. postinstall_cmds='chmod 555 $lib'
  14892. # or fails outright, so override atomically:
  14893. install_override_mode=555
  14894. ;;
  14895. interix[3-9]*)
  14896. version_type=linux # correct to gnu/linux during the next big refactor
  14897. need_lib_prefix=no
  14898. need_version=no
  14899. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14900. soname_spec='$libname$release$shared_ext$major'
  14901. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14902. shlibpath_var=LD_LIBRARY_PATH
  14903. shlibpath_overrides_runpath=no
  14904. hardcode_into_libs=yes
  14905. ;;
  14906. irix5* | irix6* | nonstopux*)
  14907. case $host_os in
  14908. nonstopux*) version_type=nonstopux ;;
  14909. *)
  14910. if test yes = "$lt_cv_prog_gnu_ld"; then
  14911. version_type=linux # correct to gnu/linux during the next big refactor
  14912. else
  14913. version_type=irix
  14914. fi ;;
  14915. esac
  14916. need_lib_prefix=no
  14917. need_version=no
  14918. soname_spec='$libname$release$shared_ext$major'
  14919. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14920. case $host_os in
  14921. irix5* | nonstopux*)
  14922. libsuff= shlibsuff=
  14923. ;;
  14924. *)
  14925. case $LD in # libtool.m4 will add one of these switches to LD
  14926. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14927. libsuff= shlibsuff= libmagic=32-bit;;
  14928. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14929. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14930. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14931. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14932. *) libsuff= shlibsuff= libmagic=never-match;;
  14933. esac
  14934. ;;
  14935. esac
  14936. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14937. shlibpath_overrides_runpath=no
  14938. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14939. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14940. hardcode_into_libs=yes
  14941. ;;
  14942. # No shared lib support for Linux oldld, aout, or coff.
  14943. linux*oldld* | linux*aout* | linux*coff*)
  14944. dynamic_linker=no
  14945. ;;
  14946. linux*android*)
  14947. version_type=none # Android doesn't support versioned libraries.
  14948. need_lib_prefix=no
  14949. need_version=no
  14950. library_names_spec='$libname$release$shared_ext'
  14951. soname_spec='$libname$release$shared_ext'
  14952. finish_cmds=
  14953. shlibpath_var=LD_LIBRARY_PATH
  14954. shlibpath_overrides_runpath=yes
  14955. # This implies no fast_install, which is unacceptable.
  14956. # Some rework will be needed to allow for fast_install
  14957. # before this can be enabled.
  14958. hardcode_into_libs=yes
  14959. dynamic_linker='Android linker'
  14960. # Don't embed -rpath directories since the linker doesn't support them.
  14961. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14962. ;;
  14963. # This must be glibc/ELF.
  14964. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14965. version_type=linux # correct to gnu/linux during the next big refactor
  14966. need_lib_prefix=no
  14967. need_version=no
  14968. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14969. soname_spec='$libname$release$shared_ext$major'
  14970. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14971. shlibpath_var=LD_LIBRARY_PATH
  14972. shlibpath_overrides_runpath=no
  14973. # Some binutils ld are patched to set DT_RUNPATH
  14974. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14975. then :
  14976. printf %s "(cached) " >&6
  14977. else $as_nop
  14978. lt_cv_shlibpath_overrides_runpath=no
  14979. save_LDFLAGS=$LDFLAGS
  14980. save_libdir=$libdir
  14981. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14982. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14984. /* end confdefs.h. */
  14985. int
  14986. main (void)
  14987. {
  14988. ;
  14989. return 0;
  14990. }
  14991. _ACEOF
  14992. if ac_fn_cxx_try_link "$LINENO"
  14993. then :
  14994. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14995. then :
  14996. lt_cv_shlibpath_overrides_runpath=yes
  14997. fi
  14998. fi
  14999. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15000. conftest$ac_exeext conftest.$ac_ext
  15001. LDFLAGS=$save_LDFLAGS
  15002. libdir=$save_libdir
  15003. fi
  15004. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15005. # This implies no fast_install, which is unacceptable.
  15006. # Some rework will be needed to allow for fast_install
  15007. # before this can be enabled.
  15008. hardcode_into_libs=yes
  15009. # Add ABI-specific directories to the system library path.
  15010. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  15011. # Ideally, we could use ldconfig to report *all* directores which are
  15012. # searched for libraries, however this is still not possible. Aside from not
  15013. # being certain /sbin/ldconfig is available, command
  15014. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15015. # even though it is searched at run-time. Try to do the best guess by
  15016. # appending ld.so.conf contents (and includes) to the search path.
  15017. if test -f /etc/ld.so.conf; then
  15018. 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' ' '`
  15019. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15020. fi
  15021. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15022. # powerpc, because MkLinux only supported shared libraries with the
  15023. # GNU dynamic linker. Since this was broken with cross compilers,
  15024. # most powerpc-linux boxes support dynamic linking these days and
  15025. # people can always --disable-shared, the test was removed, and we
  15026. # assume the GNU/Linux dynamic linker is in use.
  15027. dynamic_linker='GNU/Linux ld.so'
  15028. ;;
  15029. netbsd*)
  15030. version_type=sunos
  15031. need_lib_prefix=no
  15032. need_version=no
  15033. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15034. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15035. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15036. dynamic_linker='NetBSD (a.out) ld.so'
  15037. else
  15038. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15039. soname_spec='$libname$release$shared_ext$major'
  15040. dynamic_linker='NetBSD ld.elf_so'
  15041. fi
  15042. shlibpath_var=LD_LIBRARY_PATH
  15043. shlibpath_overrides_runpath=yes
  15044. hardcode_into_libs=yes
  15045. ;;
  15046. newsos6)
  15047. version_type=linux # correct to gnu/linux during the next big refactor
  15048. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15049. shlibpath_var=LD_LIBRARY_PATH
  15050. shlibpath_overrides_runpath=yes
  15051. ;;
  15052. *nto* | *qnx*)
  15053. version_type=qnx
  15054. need_lib_prefix=no
  15055. need_version=no
  15056. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15057. soname_spec='$libname$release$shared_ext$major'
  15058. shlibpath_var=LD_LIBRARY_PATH
  15059. shlibpath_overrides_runpath=no
  15060. hardcode_into_libs=yes
  15061. dynamic_linker='ldqnx.so'
  15062. ;;
  15063. openbsd* | bitrig*)
  15064. version_type=sunos
  15065. sys_lib_dlsearch_path_spec=/usr/lib
  15066. need_lib_prefix=no
  15067. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15068. need_version=no
  15069. else
  15070. need_version=yes
  15071. fi
  15072. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15073. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15074. shlibpath_var=LD_LIBRARY_PATH
  15075. shlibpath_overrides_runpath=yes
  15076. ;;
  15077. os2*)
  15078. libname_spec='$name'
  15079. shrext_cmds=.dll
  15080. need_lib_prefix=no
  15081. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15082. # SDL customization: removed versioning support.
  15083. # version_type=windows
  15084. # need_version=no
  15085. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15086. # v=$($ECHO $release$versuffix | tr -d .-);
  15087. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15088. # $ECHO $n$v`$shared_ext'
  15089. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15090. library_names_spec='${libname}_dll.$libext'
  15091. dynamic_linker='OS/2 ld.exe'
  15092. shlibpath_var=BEGINLIBPATH
  15093. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15094. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15095. postinstall_cmds='base_file=`basename \$file`~
  15096. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15097. dldir=$destdir/`dirname \$dlpath`~
  15098. test -d \$dldir || mkdir -p \$dldir~
  15099. $install_prog $dir/$dlname \$dldir/$dlname~
  15100. chmod a+x \$dldir/$dlname~
  15101. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15102. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15103. fi'
  15104. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15105. dlpath=$dir/\$dldll~
  15106. $RM \$dlpath'
  15107. ;;
  15108. osf3* | osf4* | osf5*)
  15109. version_type=osf
  15110. need_lib_prefix=no
  15111. need_version=no
  15112. soname_spec='$libname$release$shared_ext$major'
  15113. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15114. shlibpath_var=LD_LIBRARY_PATH
  15115. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15116. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15117. ;;
  15118. rdos*)
  15119. dynamic_linker=no
  15120. ;;
  15121. solaris*)
  15122. version_type=linux # correct to gnu/linux during the next big refactor
  15123. need_lib_prefix=no
  15124. need_version=no
  15125. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15126. soname_spec='$libname$release$shared_ext$major'
  15127. shlibpath_var=LD_LIBRARY_PATH
  15128. shlibpath_overrides_runpath=yes
  15129. hardcode_into_libs=yes
  15130. # ldd complains unless libraries are executable
  15131. postinstall_cmds='chmod +x $lib'
  15132. ;;
  15133. sunos4*)
  15134. version_type=sunos
  15135. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15136. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15137. shlibpath_var=LD_LIBRARY_PATH
  15138. shlibpath_overrides_runpath=yes
  15139. if test yes = "$with_gnu_ld"; then
  15140. need_lib_prefix=no
  15141. fi
  15142. need_version=yes
  15143. ;;
  15144. sysv4 | sysv4.3*)
  15145. version_type=linux # correct to gnu/linux during the next big refactor
  15146. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15147. soname_spec='$libname$release$shared_ext$major'
  15148. shlibpath_var=LD_LIBRARY_PATH
  15149. case $host_vendor in
  15150. sni)
  15151. shlibpath_overrides_runpath=no
  15152. need_lib_prefix=no
  15153. runpath_var=LD_RUN_PATH
  15154. ;;
  15155. siemens)
  15156. need_lib_prefix=no
  15157. ;;
  15158. motorola)
  15159. need_lib_prefix=no
  15160. need_version=no
  15161. shlibpath_overrides_runpath=no
  15162. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15163. ;;
  15164. esac
  15165. ;;
  15166. sysv4*MP*)
  15167. if test -d /usr/nec; then
  15168. version_type=linux # correct to gnu/linux during the next big refactor
  15169. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15170. soname_spec='$libname$shared_ext.$major'
  15171. shlibpath_var=LD_LIBRARY_PATH
  15172. fi
  15173. ;;
  15174. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15175. version_type=sco
  15176. need_lib_prefix=no
  15177. need_version=no
  15178. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15179. soname_spec='$libname$release$shared_ext$major'
  15180. shlibpath_var=LD_LIBRARY_PATH
  15181. shlibpath_overrides_runpath=yes
  15182. hardcode_into_libs=yes
  15183. if test yes = "$with_gnu_ld"; then
  15184. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15185. else
  15186. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15187. case $host_os in
  15188. sco3.2v5*)
  15189. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15190. ;;
  15191. esac
  15192. fi
  15193. sys_lib_dlsearch_path_spec='/usr/lib'
  15194. ;;
  15195. tpf*)
  15196. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15197. version_type=linux # correct to gnu/linux during the next big refactor
  15198. need_lib_prefix=no
  15199. need_version=no
  15200. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15201. shlibpath_var=LD_LIBRARY_PATH
  15202. shlibpath_overrides_runpath=no
  15203. hardcode_into_libs=yes
  15204. ;;
  15205. uts4*)
  15206. version_type=linux # correct to gnu/linux during the next big refactor
  15207. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15208. soname_spec='$libname$release$shared_ext$major'
  15209. shlibpath_var=LD_LIBRARY_PATH
  15210. ;;
  15211. *)
  15212. dynamic_linker=no
  15213. ;;
  15214. esac
  15215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15216. printf "%s\n" "$dynamic_linker" >&6; }
  15217. test no = "$dynamic_linker" && can_build_shared=no
  15218. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15219. if test yes = "$GCC"; then
  15220. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15221. fi
  15222. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15223. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15224. fi
  15225. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15226. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15227. fi
  15228. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15229. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15230. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15231. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15232. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15233. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15235. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15236. hardcode_action_CXX=
  15237. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15238. test -n "$runpath_var_CXX" ||
  15239. test yes = "$hardcode_automatic_CXX"; then
  15240. # We can hardcode non-existent directories.
  15241. if test no != "$hardcode_direct_CXX" &&
  15242. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15243. # have to relink, otherwise we might link with an installed library
  15244. # when we should be linking with a yet-to-be-installed one
  15245. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15246. test no != "$hardcode_minus_L_CXX"; then
  15247. # Linking always hardcodes the temporary library directory.
  15248. hardcode_action_CXX=relink
  15249. else
  15250. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15251. hardcode_action_CXX=immediate
  15252. fi
  15253. else
  15254. # We cannot hardcode anything, or else we can only hardcode existing
  15255. # directories.
  15256. hardcode_action_CXX=unsupported
  15257. fi
  15258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15259. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15260. if test relink = "$hardcode_action_CXX" ||
  15261. test yes = "$inherit_rpath_CXX"; then
  15262. # Fast installation is not supported
  15263. enable_fast_install=no
  15264. elif test yes = "$shlibpath_overrides_runpath" ||
  15265. test no = "$enable_shared"; then
  15266. # Fast installation is not necessary
  15267. enable_fast_install=needless
  15268. fi
  15269. fi # test -n "$compiler"
  15270. CC=$lt_save_CC
  15271. CFLAGS=$lt_save_CFLAGS
  15272. LDCXX=$LD
  15273. LD=$lt_save_LD
  15274. GCC=$lt_save_GCC
  15275. with_gnu_ld=$lt_save_with_gnu_ld
  15276. lt_cv_path_LDCXX=$lt_cv_path_LD
  15277. lt_cv_path_LD=$lt_save_path_LD
  15278. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15279. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15280. fi # test yes != "$_lt_caught_CXX_error"
  15281. ac_ext=c
  15282. ac_cpp='$CPP $CPPFLAGS'
  15283. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15284. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15285. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15287. printf %s "checking for egrep... " >&6; }
  15288. if test ${ac_cv_path_EGREP+y}
  15289. then :
  15290. printf %s "(cached) " >&6
  15291. else $as_nop
  15292. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15293. then ac_cv_path_EGREP="$GREP -E"
  15294. else
  15295. if test -z "$EGREP"; then
  15296. ac_path_EGREP_found=false
  15297. # Loop through the user's path and test for each of PROGNAME-LIST
  15298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15299. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15300. do
  15301. IFS=$as_save_IFS
  15302. case $as_dir in #(((
  15303. '') as_dir=./ ;;
  15304. */) ;;
  15305. *) as_dir=$as_dir/ ;;
  15306. esac
  15307. for ac_prog in egrep
  15308. do
  15309. for ac_exec_ext in '' $ac_executable_extensions; do
  15310. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15311. as_fn_executable_p "$ac_path_EGREP" || continue
  15312. # Check for GNU ac_path_EGREP and select it if it is found.
  15313. # Check for GNU $ac_path_EGREP
  15314. case `"$ac_path_EGREP" --version 2>&1` in
  15315. *GNU*)
  15316. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15317. *)
  15318. ac_count=0
  15319. printf %s 0123456789 >"conftest.in"
  15320. while :
  15321. do
  15322. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15323. mv "conftest.tmp" "conftest.in"
  15324. cp "conftest.in" "conftest.nl"
  15325. printf "%s\n" 'EGREP' >> "conftest.nl"
  15326. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15327. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15328. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15329. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15330. # Best one so far, save it but keep looking for a better one
  15331. ac_cv_path_EGREP="$ac_path_EGREP"
  15332. ac_path_EGREP_max=$ac_count
  15333. fi
  15334. # 10*(2^10) chars as input seems more than enough
  15335. test $ac_count -gt 10 && break
  15336. done
  15337. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15338. esac
  15339. $ac_path_EGREP_found && break 3
  15340. done
  15341. done
  15342. done
  15343. IFS=$as_save_IFS
  15344. if test -z "$ac_cv_path_EGREP"; then
  15345. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15346. fi
  15347. else
  15348. ac_cv_path_EGREP=$EGREP
  15349. fi
  15350. fi
  15351. fi
  15352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15353. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15354. EGREP="$ac_cv_path_EGREP"
  15355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  15356. printf %s "checking for fgrep... " >&6; }
  15357. if test ${ac_cv_path_FGREP+y}
  15358. then :
  15359. printf %s "(cached) " >&6
  15360. else $as_nop
  15361. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  15362. then ac_cv_path_FGREP="$GREP -F"
  15363. else
  15364. if test -z "$FGREP"; then
  15365. ac_path_FGREP_found=false
  15366. # Loop through the user's path and test for each of PROGNAME-LIST
  15367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15368. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15369. do
  15370. IFS=$as_save_IFS
  15371. case $as_dir in #(((
  15372. '') as_dir=./ ;;
  15373. */) ;;
  15374. *) as_dir=$as_dir/ ;;
  15375. esac
  15376. for ac_prog in fgrep
  15377. do
  15378. for ac_exec_ext in '' $ac_executable_extensions; do
  15379. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  15380. as_fn_executable_p "$ac_path_FGREP" || continue
  15381. # Check for GNU ac_path_FGREP and select it if it is found.
  15382. # Check for GNU $ac_path_FGREP
  15383. case `"$ac_path_FGREP" --version 2>&1` in
  15384. *GNU*)
  15385. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  15386. *)
  15387. ac_count=0
  15388. printf %s 0123456789 >"conftest.in"
  15389. while :
  15390. do
  15391. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15392. mv "conftest.tmp" "conftest.in"
  15393. cp "conftest.in" "conftest.nl"
  15394. printf "%s\n" 'FGREP' >> "conftest.nl"
  15395. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15396. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15397. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15398. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  15399. # Best one so far, save it but keep looking for a better one
  15400. ac_cv_path_FGREP="$ac_path_FGREP"
  15401. ac_path_FGREP_max=$ac_count
  15402. fi
  15403. # 10*(2^10) chars as input seems more than enough
  15404. test $ac_count -gt 10 && break
  15405. done
  15406. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15407. esac
  15408. $ac_path_FGREP_found && break 3
  15409. done
  15410. done
  15411. done
  15412. IFS=$as_save_IFS
  15413. if test -z "$ac_cv_path_FGREP"; then
  15414. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15415. fi
  15416. else
  15417. ac_cv_path_FGREP=$FGREP
  15418. fi
  15419. fi
  15420. fi
  15421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  15422. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  15423. FGREP="$ac_cv_path_FGREP"
  15424. # Find a good install program. We prefer a C program (faster),
  15425. # so one script is as good as another. But avoid the broken or
  15426. # incompatible versions:
  15427. # SysV /etc/install, /usr/sbin/install
  15428. # SunOS /usr/etc/install
  15429. # IRIX /sbin/install
  15430. # AIX /bin/install
  15431. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15432. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15433. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15434. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15435. # OS/2's system install, which has a completely different semantic
  15436. # ./install, which can be erroneously created by make from ./install.sh.
  15437. # Reject install programs that cannot install multiple files.
  15438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15439. printf %s "checking for a BSD-compatible install... " >&6; }
  15440. if test -z "$INSTALL"; then
  15441. if test ${ac_cv_path_install+y}
  15442. then :
  15443. printf %s "(cached) " >&6
  15444. else $as_nop
  15445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15446. for as_dir in $PATH
  15447. do
  15448. IFS=$as_save_IFS
  15449. case $as_dir in #(((
  15450. '') as_dir=./ ;;
  15451. */) ;;
  15452. *) as_dir=$as_dir/ ;;
  15453. esac
  15454. # Account for fact that we put trailing slashes in our PATH walk.
  15455. case $as_dir in #((
  15456. ./ | /[cC]/* | \
  15457. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15458. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15459. /usr/ucb/* ) ;;
  15460. *)
  15461. # OSF1 and SCO ODT 3.0 have their own names for install.
  15462. # Don't use installbsd from OSF since it installs stuff as root
  15463. # by default.
  15464. for ac_prog in ginstall scoinst install; do
  15465. for ac_exec_ext in '' $ac_executable_extensions; do
  15466. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15467. if test $ac_prog = install &&
  15468. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15469. # AIX install. It has an incompatible calling convention.
  15470. :
  15471. elif test $ac_prog = install &&
  15472. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15473. # program-specific install script used by HP pwplus--don't use.
  15474. :
  15475. else
  15476. rm -rf conftest.one conftest.two conftest.dir
  15477. echo one > conftest.one
  15478. echo two > conftest.two
  15479. mkdir conftest.dir
  15480. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15481. test -s conftest.one && test -s conftest.two &&
  15482. test -s conftest.dir/conftest.one &&
  15483. test -s conftest.dir/conftest.two
  15484. then
  15485. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15486. break 3
  15487. fi
  15488. fi
  15489. fi
  15490. done
  15491. done
  15492. ;;
  15493. esac
  15494. done
  15495. IFS=$as_save_IFS
  15496. rm -rf conftest.one conftest.two conftest.dir
  15497. fi
  15498. if test ${ac_cv_path_install+y}; then
  15499. INSTALL=$ac_cv_path_install
  15500. else
  15501. # As a last resort, use the slow shell script. Don't cache a
  15502. # value for INSTALL within a source directory, because that will
  15503. # break other packages using the cache if that directory is
  15504. # removed, or if the value is a relative name.
  15505. INSTALL=$ac_install_sh
  15506. fi
  15507. fi
  15508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15509. printf "%s\n" "$INSTALL" >&6; }
  15510. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15511. # It thinks the first close brace ends the variable substitution.
  15512. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15513. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15514. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15516. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15517. set x ${MAKE-make}
  15518. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15519. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15520. then :
  15521. printf %s "(cached) " >&6
  15522. else $as_nop
  15523. cat >conftest.make <<\_ACEOF
  15524. SHELL = /bin/sh
  15525. all:
  15526. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15527. _ACEOF
  15528. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15529. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15530. *@@@%%%=?*=@@@%%%*)
  15531. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15532. *)
  15533. eval ac_cv_prog_make_${ac_make}_set=no;;
  15534. esac
  15535. rm -f conftest.make
  15536. fi
  15537. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15539. printf "%s\n" "yes" >&6; }
  15540. SET_MAKE=
  15541. else
  15542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15543. printf "%s\n" "no" >&6; }
  15544. SET_MAKE="MAKE=${MAKE-make}"
  15545. fi
  15546. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15547. if test -n "$ac_tool_prefix"; then
  15548. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15549. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15551. printf %s "checking for $ac_word... " >&6; }
  15552. if test ${ac_cv_path_PKG_CONFIG+y}
  15553. then :
  15554. printf %s "(cached) " >&6
  15555. else $as_nop
  15556. case $PKG_CONFIG in
  15557. [\\/]* | ?:[\\/]*)
  15558. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15559. ;;
  15560. *)
  15561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15562. for as_dir in $PATH
  15563. do
  15564. IFS=$as_save_IFS
  15565. case $as_dir in #(((
  15566. '') as_dir=./ ;;
  15567. */) ;;
  15568. *) as_dir=$as_dir/ ;;
  15569. esac
  15570. for ac_exec_ext in '' $ac_executable_extensions; do
  15571. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15572. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15573. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15574. break 2
  15575. fi
  15576. done
  15577. done
  15578. IFS=$as_save_IFS
  15579. ;;
  15580. esac
  15581. fi
  15582. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15583. if test -n "$PKG_CONFIG"; then
  15584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15585. printf "%s\n" "$PKG_CONFIG" >&6; }
  15586. else
  15587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15588. printf "%s\n" "no" >&6; }
  15589. fi
  15590. fi
  15591. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15592. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15593. # Extract the first word of "pkg-config", so it can be a program name with args.
  15594. set dummy pkg-config; ac_word=$2
  15595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15596. printf %s "checking for $ac_word... " >&6; }
  15597. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15598. then :
  15599. printf %s "(cached) " >&6
  15600. else $as_nop
  15601. case $ac_pt_PKG_CONFIG in
  15602. [\\/]* | ?:[\\/]*)
  15603. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15604. ;;
  15605. *)
  15606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15607. for as_dir in $PATH
  15608. do
  15609. IFS=$as_save_IFS
  15610. case $as_dir in #(((
  15611. '') as_dir=./ ;;
  15612. */) ;;
  15613. *) as_dir=$as_dir/ ;;
  15614. esac
  15615. for ac_exec_ext in '' $ac_executable_extensions; do
  15616. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15617. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15618. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15619. break 2
  15620. fi
  15621. done
  15622. done
  15623. IFS=$as_save_IFS
  15624. ;;
  15625. esac
  15626. fi
  15627. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15628. if test -n "$ac_pt_PKG_CONFIG"; then
  15629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15630. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15631. else
  15632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15633. printf "%s\n" "no" >&6; }
  15634. fi
  15635. if test "x$ac_pt_PKG_CONFIG" = x; then
  15636. PKG_CONFIG=""
  15637. else
  15638. case $cross_compiling:$ac_tool_warned in
  15639. yes:)
  15640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15641. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15642. ac_tool_warned=yes ;;
  15643. esac
  15644. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15645. fi
  15646. else
  15647. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15648. fi
  15649. fi
  15650. if test -n "$PKG_CONFIG"; then
  15651. _pkg_min_version=0.9.0
  15652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15653. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15654. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15656. printf "%s\n" "yes" >&6; }
  15657. else
  15658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15659. printf "%s\n" "no" >&6; }
  15660. PKG_CONFIG=""
  15661. fi
  15662. fi
  15663. if test -z "$AWK" ; then
  15664. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15665. fi
  15666. for ac_prog in gsort sort
  15667. do
  15668. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15669. set dummy $ac_prog; ac_word=$2
  15670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15671. printf %s "checking for $ac_word... " >&6; }
  15672. if test ${ac_cv_prog_SORT+y}
  15673. then :
  15674. printf %s "(cached) " >&6
  15675. else $as_nop
  15676. if test -n "$SORT"; then
  15677. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15678. else
  15679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15680. for as_dir in $PATH
  15681. do
  15682. IFS=$as_save_IFS
  15683. case $as_dir in #(((
  15684. '') as_dir=./ ;;
  15685. */) ;;
  15686. *) as_dir=$as_dir/ ;;
  15687. esac
  15688. for ac_exec_ext in '' $ac_executable_extensions; do
  15689. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15690. ac_cv_prog_SORT="$ac_prog"
  15691. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15692. break 2
  15693. fi
  15694. done
  15695. done
  15696. IFS=$as_save_IFS
  15697. fi
  15698. fi
  15699. SORT=$ac_cv_prog_SORT
  15700. if test -n "$SORT"; then
  15701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15702. printf "%s\n" "$SORT" >&6; }
  15703. else
  15704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15705. printf "%s\n" "no" >&6; }
  15706. fi
  15707. test -n "$SORT" && break
  15708. done
  15709. test -n "$SORT" || SORT="false"
  15710. if ! "$SORT" -V </dev/null >/dev/null
  15711. then :
  15712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15713. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15714. fi
  15715. # Check whether --enable-largefile was given.
  15716. if test ${enable_largefile+y}
  15717. then :
  15718. enableval=$enable_largefile;
  15719. fi
  15720. if test "$enable_largefile" != no; then
  15721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15722. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15723. if test ${ac_cv_sys_largefile_CC+y}
  15724. then :
  15725. printf %s "(cached) " >&6
  15726. else $as_nop
  15727. ac_cv_sys_largefile_CC=no
  15728. if test "$GCC" != yes; then
  15729. ac_save_CC=$CC
  15730. while :; do
  15731. # IRIX 6.2 and later do not support large files by default,
  15732. # so use the C compiler's -n32 option if that helps.
  15733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15734. /* end confdefs.h. */
  15735. #include <sys/types.h>
  15736. /* Check that off_t can represent 2**63 - 1 correctly.
  15737. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15738. since some C++ compilers masquerading as C compilers
  15739. incorrectly reject 9223372036854775807. */
  15740. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15741. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15742. && LARGE_OFF_T % 2147483647 == 1)
  15743. ? 1 : -1];
  15744. int
  15745. main (void)
  15746. {
  15747. ;
  15748. return 0;
  15749. }
  15750. _ACEOF
  15751. if ac_fn_c_try_compile "$LINENO"
  15752. then :
  15753. break
  15754. fi
  15755. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15756. CC="$CC -n32"
  15757. if ac_fn_c_try_compile "$LINENO"
  15758. then :
  15759. ac_cv_sys_largefile_CC=' -n32'; break
  15760. fi
  15761. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15762. break
  15763. done
  15764. CC=$ac_save_CC
  15765. rm -f conftest.$ac_ext
  15766. fi
  15767. fi
  15768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15769. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15770. if test "$ac_cv_sys_largefile_CC" != no; then
  15771. CC=$CC$ac_cv_sys_largefile_CC
  15772. fi
  15773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15774. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15775. if test ${ac_cv_sys_file_offset_bits+y}
  15776. then :
  15777. printf %s "(cached) " >&6
  15778. else $as_nop
  15779. while :; do
  15780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15781. /* end confdefs.h. */
  15782. #include <sys/types.h>
  15783. /* Check that off_t can represent 2**63 - 1 correctly.
  15784. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15785. since some C++ compilers masquerading as C compilers
  15786. incorrectly reject 9223372036854775807. */
  15787. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15788. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15789. && LARGE_OFF_T % 2147483647 == 1)
  15790. ? 1 : -1];
  15791. int
  15792. main (void)
  15793. {
  15794. ;
  15795. return 0;
  15796. }
  15797. _ACEOF
  15798. if ac_fn_c_try_compile "$LINENO"
  15799. then :
  15800. ac_cv_sys_file_offset_bits=no; break
  15801. fi
  15802. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15804. /* end confdefs.h. */
  15805. #define _FILE_OFFSET_BITS 64
  15806. #include <sys/types.h>
  15807. /* Check that off_t can represent 2**63 - 1 correctly.
  15808. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15809. since some C++ compilers masquerading as C compilers
  15810. incorrectly reject 9223372036854775807. */
  15811. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15812. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15813. && LARGE_OFF_T % 2147483647 == 1)
  15814. ? 1 : -1];
  15815. int
  15816. main (void)
  15817. {
  15818. ;
  15819. return 0;
  15820. }
  15821. _ACEOF
  15822. if ac_fn_c_try_compile "$LINENO"
  15823. then :
  15824. ac_cv_sys_file_offset_bits=64; break
  15825. fi
  15826. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15827. ac_cv_sys_file_offset_bits=unknown
  15828. break
  15829. done
  15830. fi
  15831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15832. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15833. case $ac_cv_sys_file_offset_bits in #(
  15834. no | unknown) ;;
  15835. *)
  15836. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15837. ;;
  15838. esac
  15839. rm -rf conftest*
  15840. if test $ac_cv_sys_file_offset_bits = unknown; then
  15841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15842. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15843. if test ${ac_cv_sys_large_files+y}
  15844. then :
  15845. printf %s "(cached) " >&6
  15846. else $as_nop
  15847. while :; do
  15848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15849. /* end confdefs.h. */
  15850. #include <sys/types.h>
  15851. /* Check that off_t can represent 2**63 - 1 correctly.
  15852. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15853. since some C++ compilers masquerading as C compilers
  15854. incorrectly reject 9223372036854775807. */
  15855. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15856. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15857. && LARGE_OFF_T % 2147483647 == 1)
  15858. ? 1 : -1];
  15859. int
  15860. main (void)
  15861. {
  15862. ;
  15863. return 0;
  15864. }
  15865. _ACEOF
  15866. if ac_fn_c_try_compile "$LINENO"
  15867. then :
  15868. ac_cv_sys_large_files=no; break
  15869. fi
  15870. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15872. /* end confdefs.h. */
  15873. #define _LARGE_FILES 1
  15874. #include <sys/types.h>
  15875. /* Check that off_t can represent 2**63 - 1 correctly.
  15876. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15877. since some C++ compilers masquerading as C compilers
  15878. incorrectly reject 9223372036854775807. */
  15879. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15880. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15881. && LARGE_OFF_T % 2147483647 == 1)
  15882. ? 1 : -1];
  15883. int
  15884. main (void)
  15885. {
  15886. ;
  15887. return 0;
  15888. }
  15889. _ACEOF
  15890. if ac_fn_c_try_compile "$LINENO"
  15891. then :
  15892. ac_cv_sys_large_files=1; break
  15893. fi
  15894. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15895. ac_cv_sys_large_files=unknown
  15896. break
  15897. done
  15898. fi
  15899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15900. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15901. case $ac_cv_sys_large_files in #(
  15902. no | unknown) ;;
  15903. *)
  15904. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15905. ;;
  15906. esac
  15907. rm -rf conftest*
  15908. fi
  15909. fi
  15910. case "$host" in
  15911. *-*-mingw*)
  15912. # Except on msys, where make can't handle full pathnames (bug 1972)
  15913. ;;
  15914. *)
  15915. srcdir=`cd $srcdir && pwd`
  15916. ;;
  15917. esac
  15918. INCLUDE="-I$srcdir/include"
  15919. case "$host" in
  15920. *-*-nto-qnx*)
  15921. ;;
  15922. *)
  15923. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15924. ;;
  15925. esac
  15926. case "$host" in
  15927. *-*-haiku*)
  15928. LINKER='$(CXX)'
  15929. LIBTOOLLINKERTAG='CXX'
  15930. ;;
  15931. *)
  15932. LINKER='$(CC)'
  15933. LIBTOOLLINKERTAG='CC'
  15934. ;;
  15935. esac
  15936. if test x$srcdir != x.; then
  15937. INCLUDE="-Iinclude $INCLUDE"
  15938. elif test -d .git; then
  15939. as_fn_error $? "
  15940. *** When building from a git clone you should configure and build in a
  15941. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15942. " "$LINENO" 5
  15943. fi
  15944. BASE_CFLAGS=""
  15945. BASE_LDFLAGS=""
  15946. case "$host" in
  15947. *-*-cygwin*)
  15948. # We build SDL on cygwin without the UNIX emulation layer
  15949. save_CFLAGS="$CFLAGS"
  15950. have_no_cygwin=no
  15951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15952. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15953. CFLAGS="$save_CFLAGS -mno-cygwin"
  15954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15955. /* end confdefs.h. */
  15956. int
  15957. main (void)
  15958. {
  15959. ;
  15960. return 0;
  15961. }
  15962. _ACEOF
  15963. if ac_fn_c_try_compile "$LINENO"
  15964. then :
  15965. have_no_cygwin=yes
  15966. fi
  15967. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15969. printf "%s\n" "$have_no_cygwin" >&6; }
  15970. CFLAGS="$save_CFLAGS"
  15971. if test x$have_no_cygwin = xyes; then
  15972. BASE_CFLAGS="-mno-cygwin"
  15973. BASE_LDFLAGS="-mno-cygwin"
  15974. fi
  15975. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15976. ;;
  15977. esac
  15978. # Uncomment the following line if you want to force SDL and applications
  15979. # built with it to be compiled for a particular architecture.
  15980. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15981. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15982. # The default optimization for SDL is -O3 (Bug #31)
  15983. if test "x$orig_CFLAGS" = x; then
  15984. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15985. fi
  15986. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15987. BUILD_LDFLAGS="$LDFLAGS"
  15988. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15989. ## These are common directories to find software packages
  15990. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15991. # if test -d $path/include; then
  15992. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15993. # fi
  15994. # if test -d $path/lib; then
  15995. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15996. # fi
  15997. #done
  15998. SDL_CFLAGS="$BASE_CFLAGS"
  15999. SDL_LIBS="-lSDL2"
  16000. if test "x$BASE_LDFLAGS" != x; then
  16001. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  16002. fi
  16003. if test "x$EXTRA_CFLAGS" != x; then
  16004. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  16005. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  16006. fi
  16007. if test "x$EXTRA_LDFLAGS" != x; then
  16008. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  16009. fi
  16010. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  16011. find_lib()
  16012. {
  16013. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | $FGREP programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16014. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | $FGREP libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16015. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  16016. if test "$cross_compiling" = yes; then
  16017. host_lib_path=""
  16018. else
  16019. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  16020. fi
  16021. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  16022. 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`
  16023. if test x$lib != x; then
  16024. echo $lib
  16025. return
  16026. fi
  16027. done
  16028. }
  16029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16030. printf %s "checking for an ANSI C-conforming const... " >&6; }
  16031. if test ${ac_cv_c_const+y}
  16032. then :
  16033. printf %s "(cached) " >&6
  16034. else $as_nop
  16035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16036. /* end confdefs.h. */
  16037. int
  16038. main (void)
  16039. {
  16040. #ifndef __cplusplus
  16041. /* Ultrix mips cc rejects this sort of thing. */
  16042. typedef int charset[2];
  16043. const charset cs = { 0, 0 };
  16044. /* SunOS 4.1.1 cc rejects this. */
  16045. char const *const *pcpcc;
  16046. char **ppc;
  16047. /* NEC SVR4.0.2 mips cc rejects this. */
  16048. struct point {int x, y;};
  16049. static struct point const zero = {0,0};
  16050. /* IBM XL C 1.02.0.0 rejects this.
  16051. It does not let you subtract one const X* pointer from another in
  16052. an arm of an if-expression whose if-part is not a constant
  16053. expression */
  16054. const char *g = "string";
  16055. pcpcc = &g + (g ? g-g : 0);
  16056. /* HPUX 7.0 cc rejects these. */
  16057. ++pcpcc;
  16058. ppc = (char**) pcpcc;
  16059. pcpcc = (char const *const *) ppc;
  16060. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16061. char tx;
  16062. char *t = &tx;
  16063. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16064. *t++ = 0;
  16065. if (s) return 0;
  16066. }
  16067. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16068. int x[] = {25, 17};
  16069. const int *foo = &x[0];
  16070. ++foo;
  16071. }
  16072. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16073. typedef const int *iptr;
  16074. iptr p = 0;
  16075. ++p;
  16076. }
  16077. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16078. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16079. struct s { int j; const int *ap[3]; } bx;
  16080. struct s *b = &bx; b->j = 5;
  16081. }
  16082. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16083. const int foo = 10;
  16084. if (!foo) return 0;
  16085. }
  16086. return !cs[0] && !zero.x;
  16087. #endif
  16088. ;
  16089. return 0;
  16090. }
  16091. _ACEOF
  16092. if ac_fn_c_try_compile "$LINENO"
  16093. then :
  16094. ac_cv_c_const=yes
  16095. else $as_nop
  16096. ac_cv_c_const=no
  16097. fi
  16098. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16099. fi
  16100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16101. printf "%s\n" "$ac_cv_c_const" >&6; }
  16102. if test $ac_cv_c_const = no; then
  16103. printf "%s\n" "#define const /**/" >>confdefs.h
  16104. fi
  16105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16106. printf %s "checking for inline... " >&6; }
  16107. if test ${ac_cv_c_inline+y}
  16108. then :
  16109. printf %s "(cached) " >&6
  16110. else $as_nop
  16111. ac_cv_c_inline=no
  16112. for ac_kw in inline __inline__ __inline; do
  16113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16114. /* end confdefs.h. */
  16115. #ifndef __cplusplus
  16116. typedef int foo_t;
  16117. static $ac_kw foo_t static_foo (void) {return 0; }
  16118. $ac_kw foo_t foo (void) {return 0; }
  16119. #endif
  16120. _ACEOF
  16121. if ac_fn_c_try_compile "$LINENO"
  16122. then :
  16123. ac_cv_c_inline=$ac_kw
  16124. fi
  16125. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16126. test "$ac_cv_c_inline" != no && break
  16127. done
  16128. fi
  16129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16130. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16131. case $ac_cv_c_inline in
  16132. inline | yes) ;;
  16133. *)
  16134. case $ac_cv_c_inline in
  16135. no) ac_val=;;
  16136. *) ac_val=$ac_cv_c_inline;;
  16137. esac
  16138. cat >>confdefs.h <<_ACEOF
  16139. #ifndef __cplusplus
  16140. #define inline $ac_val
  16141. #endif
  16142. _ACEOF
  16143. ;;
  16144. esac
  16145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16146. printf %s "checking for working volatile... " >&6; }
  16147. if test ${ac_cv_c_volatile+y}
  16148. then :
  16149. printf %s "(cached) " >&6
  16150. else $as_nop
  16151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16152. /* end confdefs.h. */
  16153. int
  16154. main (void)
  16155. {
  16156. volatile int x;
  16157. int * volatile y = (int *) 0;
  16158. return !x && !y;
  16159. ;
  16160. return 0;
  16161. }
  16162. _ACEOF
  16163. if ac_fn_c_try_compile "$LINENO"
  16164. then :
  16165. ac_cv_c_volatile=yes
  16166. else $as_nop
  16167. ac_cv_c_volatile=no
  16168. fi
  16169. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16170. fi
  16171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16172. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16173. if test $ac_cv_c_volatile = no; then
  16174. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16175. fi
  16176. # Check whether --enable-assertions was given.
  16177. if test ${enable_assertions+y}
  16178. then :
  16179. enableval=$enable_assertions;
  16180. else $as_nop
  16181. enable_assertions=auto
  16182. fi
  16183. case "$enable_assertions" in
  16184. auto) # Use optimization settings to determine assertion level
  16185. ;;
  16186. disabled)
  16187. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16188. ;;
  16189. release)
  16190. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16191. ;;
  16192. enabled)
  16193. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16194. ;;
  16195. paranoid)
  16196. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16197. ;;
  16198. *)
  16199. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16200. ;;
  16201. esac
  16202. 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"
  16203. # Check whether --enable-dependency-tracking was given.
  16204. if test ${enable_dependency_tracking+y}
  16205. then :
  16206. enableval=$enable_dependency_tracking;
  16207. else $as_nop
  16208. enable_dependency_tracking=yes
  16209. fi
  16210. if test x$enable_dependency_tracking = xyes; then
  16211. have_gcc_mmd_mt=no
  16212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16213. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16215. /* end confdefs.h. */
  16216. #if !defined(__GNUC__) || __GNUC__ < 3
  16217. #error Dependency tracking requires GCC 3.0 or newer
  16218. #endif
  16219. int
  16220. main (void)
  16221. {
  16222. ;
  16223. return 0;
  16224. }
  16225. _ACEOF
  16226. if ac_fn_c_try_compile "$LINENO"
  16227. then :
  16228. have_gcc_mmd_mt=yes
  16229. fi
  16230. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16232. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16233. if test x$have_gcc_mmd_mt = xyes; then
  16234. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16235. fi
  16236. fi
  16237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16238. printf %s "checking for linker option --no-undefined... " >&6; }
  16239. have_no_undefined=no
  16240. case "$host" in
  16241. *-*-openbsd*)
  16242. ;;
  16243. *)
  16244. save_LDFLAGS="$LDFLAGS"
  16245. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16247. /* end confdefs.h. */
  16248. int
  16249. main (void)
  16250. {
  16251. ;
  16252. return 0;
  16253. }
  16254. _ACEOF
  16255. if ac_fn_c_try_link "$LINENO"
  16256. then :
  16257. have_no_undefined=yes
  16258. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16259. fi
  16260. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16261. conftest$ac_exeext conftest.$ac_ext
  16262. LDFLAGS="$save_LDFLAGS"
  16263. ;;
  16264. esac
  16265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16266. printf "%s\n" "$have_no_undefined" >&6; }
  16267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16268. printf %s "checking for linker option --dynamicbase... " >&6; }
  16269. have_dynamicbase=no
  16270. case "$host" in
  16271. *)
  16272. save_LDFLAGS="$LDFLAGS"
  16273. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16275. /* end confdefs.h. */
  16276. int
  16277. main (void)
  16278. {
  16279. ;
  16280. return 0;
  16281. }
  16282. _ACEOF
  16283. if ac_fn_c_try_link "$LINENO"
  16284. then :
  16285. have_dynamicbase=yes
  16286. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16287. fi
  16288. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16289. conftest$ac_exeext conftest.$ac_ext
  16290. LDFLAGS="$save_LDFLAGS"
  16291. ;;
  16292. esac
  16293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16294. printf "%s\n" "$have_dynamicbase" >&6; }
  16295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16296. printf %s "checking for linker option --nxcompat... " >&6; }
  16297. have_nxcompat=no
  16298. case "$host" in
  16299. *)
  16300. save_LDFLAGS="$LDFLAGS"
  16301. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16303. /* end confdefs.h. */
  16304. int
  16305. main (void)
  16306. {
  16307. ;
  16308. return 0;
  16309. }
  16310. _ACEOF
  16311. if ac_fn_c_try_link "$LINENO"
  16312. then :
  16313. have_nxcompat=yes
  16314. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16315. fi
  16316. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16317. conftest$ac_exeext conftest.$ac_ext
  16318. LDFLAGS="$save_LDFLAGS"
  16319. ;;
  16320. esac
  16321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16322. printf "%s\n" "$have_nxcompat" >&6; }
  16323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16324. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16325. have_high_entropy_va=no
  16326. case "$host" in
  16327. *)
  16328. save_LDFLAGS="$LDFLAGS"
  16329. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16331. /* end confdefs.h. */
  16332. int
  16333. main (void)
  16334. {
  16335. ;
  16336. return 0;
  16337. }
  16338. _ACEOF
  16339. if ac_fn_c_try_link "$LINENO"
  16340. then :
  16341. have_high_entropy_va=yes
  16342. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16343. fi
  16344. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16345. conftest$ac_exeext conftest.$ac_ext
  16346. LDFLAGS="$save_LDFLAGS"
  16347. ;;
  16348. esac
  16349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16350. printf "%s\n" "$have_high_entropy_va" >&6; }
  16351. # Check whether --enable-libc was given.
  16352. if test ${enable_libc+y}
  16353. then :
  16354. enableval=$enable_libc;
  16355. else $as_nop
  16356. enable_libc=yes
  16357. fi
  16358. # Check whether --enable-system-iconv was given.
  16359. if test ${enable_system_iconv+y}
  16360. then :
  16361. enableval=$enable_system_iconv;
  16362. else $as_nop
  16363. enable_system_iconv=yes
  16364. fi
  16365. if test x$enable_libc = xyes; then
  16366. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16367. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16368. if test "x$ac_cv_header_sys_types_h" = xyes
  16369. then :
  16370. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16371. fi
  16372. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16373. if test "x$ac_cv_header_stdio_h" = xyes
  16374. then :
  16375. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16376. fi
  16377. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16378. if test "x$ac_cv_header_stdlib_h" = xyes
  16379. then :
  16380. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16381. fi
  16382. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16383. if test "x$ac_cv_header_stddef_h" = xyes
  16384. then :
  16385. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16386. fi
  16387. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16388. if test "x$ac_cv_header_stdarg_h" = xyes
  16389. then :
  16390. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16391. fi
  16392. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16393. if test "x$ac_cv_header_malloc_h" = xyes
  16394. then :
  16395. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16396. fi
  16397. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16398. if test "x$ac_cv_header_memory_h" = xyes
  16399. then :
  16400. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16401. fi
  16402. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16403. if test "x$ac_cv_header_string_h" = xyes
  16404. then :
  16405. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16406. fi
  16407. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16408. if test "x$ac_cv_header_strings_h" = xyes
  16409. then :
  16410. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16411. fi
  16412. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16413. if test "x$ac_cv_header_wchar_h" = xyes
  16414. then :
  16415. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16416. fi
  16417. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16418. if test "x$ac_cv_header_inttypes_h" = xyes
  16419. then :
  16420. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16421. fi
  16422. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16423. if test "x$ac_cv_header_stdint_h" = xyes
  16424. then :
  16425. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16426. fi
  16427. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16428. if test "x$ac_cv_header_limits_h" = xyes
  16429. then :
  16430. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16431. fi
  16432. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16433. if test "x$ac_cv_header_ctype_h" = xyes
  16434. then :
  16435. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16436. fi
  16437. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16438. if test "x$ac_cv_header_math_h" = xyes
  16439. then :
  16440. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16441. fi
  16442. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16443. if test "x$ac_cv_header_float_h" = xyes
  16444. then :
  16445. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16446. fi
  16447. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16448. if test "x$ac_cv_header_iconv_h" = xyes
  16449. then :
  16450. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16451. fi
  16452. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16453. if test "x$ac_cv_header_signal_h" = xyes
  16454. then :
  16455. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16456. fi
  16457. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  16458. if test "x$ac_cv_header_linux_input_h" = xyes
  16459. then :
  16460. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  16461. fi
  16462. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16463. if test "x$ac_cv_type_size_t" = xyes
  16464. then :
  16465. else $as_nop
  16466. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16467. fi
  16468. ac_ext=c
  16469. ac_cpp='$CPP $CPPFLAGS'
  16470. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16471. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16472. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16474. printf %s "checking how to run the C preprocessor... " >&6; }
  16475. # On Suns, sometimes $CPP names a directory.
  16476. if test -n "$CPP" && test -d "$CPP"; then
  16477. CPP=
  16478. fi
  16479. if test -z "$CPP"; then
  16480. if test ${ac_cv_prog_CPP+y}
  16481. then :
  16482. printf %s "(cached) " >&6
  16483. else $as_nop
  16484. # Double quotes because $CC needs to be expanded
  16485. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16486. do
  16487. ac_preproc_ok=false
  16488. for ac_c_preproc_warn_flag in '' yes
  16489. do
  16490. # Use a header file that comes with gcc, so configuring glibc
  16491. # with a fresh cross-compiler works.
  16492. # On the NeXT, cc -E runs the code through the compiler's parser,
  16493. # not just through cpp. "Syntax error" is here to catch this case.
  16494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16495. /* end confdefs.h. */
  16496. #include <limits.h>
  16497. Syntax error
  16498. _ACEOF
  16499. if ac_fn_c_try_cpp "$LINENO"
  16500. then :
  16501. else $as_nop
  16502. # Broken: fails on valid input.
  16503. continue
  16504. fi
  16505. rm -f conftest.err conftest.i conftest.$ac_ext
  16506. # OK, works on sane cases. Now check whether nonexistent headers
  16507. # can be detected and how.
  16508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16509. /* end confdefs.h. */
  16510. #include <ac_nonexistent.h>
  16511. _ACEOF
  16512. if ac_fn_c_try_cpp "$LINENO"
  16513. then :
  16514. # Broken: success on invalid input.
  16515. continue
  16516. else $as_nop
  16517. # Passes both tests.
  16518. ac_preproc_ok=:
  16519. break
  16520. fi
  16521. rm -f conftest.err conftest.i conftest.$ac_ext
  16522. done
  16523. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16524. rm -f conftest.i conftest.err conftest.$ac_ext
  16525. if $ac_preproc_ok
  16526. then :
  16527. break
  16528. fi
  16529. done
  16530. ac_cv_prog_CPP=$CPP
  16531. fi
  16532. CPP=$ac_cv_prog_CPP
  16533. else
  16534. ac_cv_prog_CPP=$CPP
  16535. fi
  16536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16537. printf "%s\n" "$CPP" >&6; }
  16538. ac_preproc_ok=false
  16539. for ac_c_preproc_warn_flag in '' yes
  16540. do
  16541. # Use a header file that comes with gcc, so configuring glibc
  16542. # with a fresh cross-compiler works.
  16543. # On the NeXT, cc -E runs the code through the compiler's parser,
  16544. # not just through cpp. "Syntax error" is here to catch this case.
  16545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16546. /* end confdefs.h. */
  16547. #include <limits.h>
  16548. Syntax error
  16549. _ACEOF
  16550. if ac_fn_c_try_cpp "$LINENO"
  16551. then :
  16552. else $as_nop
  16553. # Broken: fails on valid input.
  16554. continue
  16555. fi
  16556. rm -f conftest.err conftest.i conftest.$ac_ext
  16557. # OK, works on sane cases. Now check whether nonexistent headers
  16558. # can be detected and how.
  16559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16560. /* end confdefs.h. */
  16561. #include <ac_nonexistent.h>
  16562. _ACEOF
  16563. if ac_fn_c_try_cpp "$LINENO"
  16564. then :
  16565. # Broken: success on invalid input.
  16566. continue
  16567. else $as_nop
  16568. # Passes both tests.
  16569. ac_preproc_ok=:
  16570. break
  16571. fi
  16572. rm -f conftest.err conftest.i conftest.$ac_ext
  16573. done
  16574. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16575. rm -f conftest.i conftest.err conftest.$ac_ext
  16576. if $ac_preproc_ok
  16577. then :
  16578. else $as_nop
  16579. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16580. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16581. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16582. See \`config.log' for more details" "$LINENO" 5; }
  16583. fi
  16584. ac_ext=c
  16585. ac_cpp='$CPP $CPPFLAGS'
  16586. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16587. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16588. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16590. printf %s "checking for M_PI in math.h... " >&6; }
  16591. if test ${ac_cv_define_M_PI+y}
  16592. then :
  16593. printf %s "(cached) " >&6
  16594. else $as_nop
  16595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16596. /* end confdefs.h. */
  16597. #include <math.h>
  16598. #ifdef M_PI
  16599. YES_IS_DEFINED
  16600. #endif
  16601. _ACEOF
  16602. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16603. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16604. then :
  16605. ac_cv_define_M_PI=yes
  16606. else $as_nop
  16607. ac_cv_define_M_PI=no
  16608. fi
  16609. rm -rf conftest*
  16610. fi
  16611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16612. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16613. if test "$ac_cv_define_M_PI" = "yes" ; then
  16614. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16615. fi
  16616. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16617. # for constant arguments. Useless!
  16618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16619. printf %s "checking for working alloca.h... " >&6; }
  16620. if test ${ac_cv_working_alloca_h+y}
  16621. then :
  16622. printf %s "(cached) " >&6
  16623. else $as_nop
  16624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16625. /* end confdefs.h. */
  16626. #include <alloca.h>
  16627. int
  16628. main (void)
  16629. {
  16630. char *p = (char *) alloca (2 * sizeof (int));
  16631. if (p) return 0;
  16632. ;
  16633. return 0;
  16634. }
  16635. _ACEOF
  16636. if ac_fn_c_try_link "$LINENO"
  16637. then :
  16638. ac_cv_working_alloca_h=yes
  16639. else $as_nop
  16640. ac_cv_working_alloca_h=no
  16641. fi
  16642. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16643. conftest$ac_exeext conftest.$ac_ext
  16644. fi
  16645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16646. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16647. if test $ac_cv_working_alloca_h = yes; then
  16648. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16649. fi
  16650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16651. printf %s "checking for alloca... " >&6; }
  16652. if test ${ac_cv_func_alloca_works+y}
  16653. then :
  16654. printf %s "(cached) " >&6
  16655. else $as_nop
  16656. if test $ac_cv_working_alloca_h = yes; then
  16657. ac_cv_func_alloca_works=yes
  16658. else
  16659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16660. /* end confdefs.h. */
  16661. #include <stdlib.h>
  16662. #include <stddef.h>
  16663. #ifndef alloca
  16664. # ifdef __GNUC__
  16665. # define alloca __builtin_alloca
  16666. # elif defined _MSC_VER
  16667. # include <malloc.h>
  16668. # define alloca _alloca
  16669. # else
  16670. # ifdef __cplusplus
  16671. extern "C"
  16672. # endif
  16673. void *alloca (size_t);
  16674. # endif
  16675. #endif
  16676. int
  16677. main (void)
  16678. {
  16679. char *p = (char *) alloca (1);
  16680. if (p) return 0;
  16681. ;
  16682. return 0;
  16683. }
  16684. _ACEOF
  16685. if ac_fn_c_try_link "$LINENO"
  16686. then :
  16687. ac_cv_func_alloca_works=yes
  16688. else $as_nop
  16689. ac_cv_func_alloca_works=no
  16690. fi
  16691. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16692. conftest$ac_exeext conftest.$ac_ext
  16693. fi
  16694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16695. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16696. fi
  16697. if test $ac_cv_func_alloca_works = yes; then
  16698. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16699. else
  16700. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16701. # that cause trouble. Some versions do not even contain alloca or
  16702. # contain a buggy version. If you still want to use their alloca,
  16703. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16704. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16705. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16707. printf %s "checking stack direction for C alloca... " >&6; }
  16708. if test ${ac_cv_c_stack_direction+y}
  16709. then :
  16710. printf %s "(cached) " >&6
  16711. else $as_nop
  16712. if test "$cross_compiling" = yes
  16713. then :
  16714. ac_cv_c_stack_direction=0
  16715. else $as_nop
  16716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16717. /* end confdefs.h. */
  16718. $ac_includes_default
  16719. int
  16720. find_stack_direction (int *addr, int depth)
  16721. {
  16722. int dir, dummy = 0;
  16723. if (! addr)
  16724. addr = &dummy;
  16725. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16726. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16727. return dir + dummy;
  16728. }
  16729. int
  16730. main (int argc, char **argv)
  16731. {
  16732. return find_stack_direction (0, argc + !argv + 20) < 0;
  16733. }
  16734. _ACEOF
  16735. if ac_fn_c_try_run "$LINENO"
  16736. then :
  16737. ac_cv_c_stack_direction=1
  16738. else $as_nop
  16739. ac_cv_c_stack_direction=-1
  16740. fi
  16741. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16742. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16743. fi
  16744. fi
  16745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16746. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16747. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16748. fi
  16749. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16750. if test "x$ac_cv_func_mprotect" = xyes
  16751. then :
  16752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16753. /* end confdefs.h. */
  16754. #include <sys/types.h>
  16755. #include <sys/mman.h>
  16756. int
  16757. main (void)
  16758. {
  16759. ;
  16760. return 0;
  16761. }
  16762. _ACEOF
  16763. if ac_fn_c_try_compile "$LINENO"
  16764. then :
  16765. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16766. fi
  16767. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16768. fi
  16769. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16770. if test "x$ac_cv_func_malloc" = xyes
  16771. then :
  16772. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16773. fi
  16774. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16775. if test "x$ac_cv_func_calloc" = xyes
  16776. then :
  16777. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16778. fi
  16779. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16780. if test "x$ac_cv_func_realloc" = xyes
  16781. then :
  16782. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16783. fi
  16784. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16785. if test "x$ac_cv_func_free" = xyes
  16786. then :
  16787. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16788. fi
  16789. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16790. if test "x$ac_cv_func_getenv" = xyes
  16791. then :
  16792. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16793. fi
  16794. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16795. if test "x$ac_cv_func_setenv" = xyes
  16796. then :
  16797. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16798. fi
  16799. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16800. if test "x$ac_cv_func_putenv" = xyes
  16801. then :
  16802. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16803. fi
  16804. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16805. if test "x$ac_cv_func_unsetenv" = xyes
  16806. then :
  16807. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16808. fi
  16809. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16810. if test "x$ac_cv_func_bsearch" = xyes
  16811. then :
  16812. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16813. fi
  16814. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16815. if test "x$ac_cv_func_qsort" = xyes
  16816. then :
  16817. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16818. fi
  16819. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16820. if test "x$ac_cv_func_abs" = xyes
  16821. then :
  16822. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16823. fi
  16824. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16825. if test "x$ac_cv_func_bcopy" = xyes
  16826. then :
  16827. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16828. fi
  16829. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16830. if test "x$ac_cv_func_memset" = xyes
  16831. then :
  16832. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16833. fi
  16834. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16835. if test "x$ac_cv_func_memcmp" = xyes
  16836. then :
  16837. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16838. fi
  16839. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16840. if test "x$ac_cv_func_memcpy" = xyes
  16841. then :
  16842. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16843. fi
  16844. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16845. if test "x$ac_cv_func_memmove" = xyes
  16846. then :
  16847. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16848. fi
  16849. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16850. if test "x$ac_cv_func_wcslen" = xyes
  16851. then :
  16852. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16853. fi
  16854. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16855. if test "x$ac_cv_func_wcslcpy" = xyes
  16856. then :
  16857. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16858. fi
  16859. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16860. if test "x$ac_cv_func_wcslcat" = xyes
  16861. then :
  16862. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16863. fi
  16864. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16865. if test "x$ac_cv_func__wcsdup" = xyes
  16866. then :
  16867. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16868. fi
  16869. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16870. if test "x$ac_cv_func_wcsdup" = xyes
  16871. then :
  16872. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16873. fi
  16874. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16875. if test "x$ac_cv_func_wcsstr" = xyes
  16876. then :
  16877. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16878. fi
  16879. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16880. if test "x$ac_cv_func_wcscmp" = xyes
  16881. then :
  16882. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16883. fi
  16884. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16885. if test "x$ac_cv_func_wcsncmp" = xyes
  16886. then :
  16887. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16888. fi
  16889. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16890. if test "x$ac_cv_func_wcscasecmp" = xyes
  16891. then :
  16892. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16893. fi
  16894. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16895. if test "x$ac_cv_func__wcsicmp" = xyes
  16896. then :
  16897. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16898. fi
  16899. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16900. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16901. then :
  16902. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16903. fi
  16904. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16905. if test "x$ac_cv_func__wcsnicmp" = xyes
  16906. then :
  16907. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16908. fi
  16909. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16910. if test "x$ac_cv_func_strlen" = xyes
  16911. then :
  16912. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16913. fi
  16914. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16915. if test "x$ac_cv_func_strlcpy" = xyes
  16916. then :
  16917. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16918. fi
  16919. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16920. if test "x$ac_cv_func_strlcat" = xyes
  16921. then :
  16922. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16923. fi
  16924. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16925. if test "x$ac_cv_func__strrev" = xyes
  16926. then :
  16927. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16928. fi
  16929. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16930. if test "x$ac_cv_func__strupr" = xyes
  16931. then :
  16932. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16933. fi
  16934. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16935. if test "x$ac_cv_func__strlwr" = xyes
  16936. then :
  16937. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16938. fi
  16939. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16940. if test "x$ac_cv_func_index" = xyes
  16941. then :
  16942. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16943. fi
  16944. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16945. if test "x$ac_cv_func_rindex" = xyes
  16946. then :
  16947. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16948. fi
  16949. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16950. if test "x$ac_cv_func_strchr" = xyes
  16951. then :
  16952. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16953. fi
  16954. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16955. if test "x$ac_cv_func_strrchr" = xyes
  16956. then :
  16957. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16958. fi
  16959. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16960. if test "x$ac_cv_func_strstr" = xyes
  16961. then :
  16962. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16963. fi
  16964. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16965. if test "x$ac_cv_func_strtok_r" = xyes
  16966. then :
  16967. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16968. fi
  16969. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16970. if test "x$ac_cv_func_itoa" = xyes
  16971. then :
  16972. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16973. fi
  16974. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16975. if test "x$ac_cv_func__ltoa" = xyes
  16976. then :
  16977. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16978. fi
  16979. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16980. if test "x$ac_cv_func__uitoa" = xyes
  16981. then :
  16982. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16983. fi
  16984. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16985. if test "x$ac_cv_func__ultoa" = xyes
  16986. then :
  16987. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16988. fi
  16989. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  16990. if test "x$ac_cv_func_strtod" = xyes
  16991. then :
  16992. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16993. fi
  16994. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16995. if test "x$ac_cv_func_strtol" = xyes
  16996. then :
  16997. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16998. fi
  16999. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  17000. if test "x$ac_cv_func_strtoul" = xyes
  17001. then :
  17002. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  17003. fi
  17004. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  17005. if test "x$ac_cv_func__i64toa" = xyes
  17006. then :
  17007. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  17008. fi
  17009. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  17010. if test "x$ac_cv_func__ui64toa" = xyes
  17011. then :
  17012. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  17013. fi
  17014. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  17015. if test "x$ac_cv_func_strtoll" = xyes
  17016. then :
  17017. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  17018. fi
  17019. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  17020. if test "x$ac_cv_func_strtoull" = xyes
  17021. then :
  17022. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  17023. fi
  17024. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  17025. if test "x$ac_cv_func_atoi" = xyes
  17026. then :
  17027. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  17028. fi
  17029. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  17030. if test "x$ac_cv_func_atof" = xyes
  17031. then :
  17032. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  17033. fi
  17034. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  17035. if test "x$ac_cv_func_strcmp" = xyes
  17036. then :
  17037. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  17038. fi
  17039. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  17040. if test "x$ac_cv_func_strncmp" = xyes
  17041. then :
  17042. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  17043. fi
  17044. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  17045. if test "x$ac_cv_func__stricmp" = xyes
  17046. then :
  17047. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  17048. fi
  17049. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  17050. if test "x$ac_cv_func_strcasecmp" = xyes
  17051. then :
  17052. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  17053. fi
  17054. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  17055. if test "x$ac_cv_func__strnicmp" = xyes
  17056. then :
  17057. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  17058. fi
  17059. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  17060. if test "x$ac_cv_func_strncasecmp" = xyes
  17061. then :
  17062. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  17063. fi
  17064. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  17065. if test "x$ac_cv_func_strcasestr" = xyes
  17066. then :
  17067. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  17068. fi
  17069. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  17070. if test "x$ac_cv_func_vsscanf" = xyes
  17071. then :
  17072. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  17073. fi
  17074. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  17075. if test "x$ac_cv_func_vsnprintf" = xyes
  17076. then :
  17077. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  17078. fi
  17079. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  17080. if test "x$ac_cv_func_fopen64" = xyes
  17081. then :
  17082. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17083. fi
  17084. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17085. if test "x$ac_cv_func_fseeko" = xyes
  17086. then :
  17087. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17088. fi
  17089. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17090. if test "x$ac_cv_func_fseeko64" = xyes
  17091. then :
  17092. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17093. fi
  17094. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17095. if test "x$ac_cv_func_sigaction" = xyes
  17096. then :
  17097. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17098. fi
  17099. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17100. if test "x$ac_cv_func_setjmp" = xyes
  17101. then :
  17102. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17103. fi
  17104. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17105. if test "x$ac_cv_func_nanosleep" = xyes
  17106. then :
  17107. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17108. fi
  17109. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17110. if test "x$ac_cv_func_sysconf" = xyes
  17111. then :
  17112. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17113. fi
  17114. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17115. if test "x$ac_cv_func_sysctlbyname" = xyes
  17116. then :
  17117. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17118. fi
  17119. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17120. if test "x$ac_cv_func_getauxval" = xyes
  17121. then :
  17122. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17123. fi
  17124. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17125. if test "x$ac_cv_func_elf_aux_info" = xyes
  17126. then :
  17127. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17128. fi
  17129. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17130. if test "x$ac_cv_func_poll" = xyes
  17131. then :
  17132. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17133. fi
  17134. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17135. if test "x$ac_cv_func__Exit" = xyes
  17136. then :
  17137. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17138. fi
  17139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17140. printf %s "checking for pow in -lm... " >&6; }
  17141. if test ${ac_cv_lib_m_pow+y}
  17142. then :
  17143. printf %s "(cached) " >&6
  17144. else $as_nop
  17145. ac_check_lib_save_LIBS=$LIBS
  17146. LIBS="-lm $LIBS"
  17147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17148. /* end confdefs.h. */
  17149. /* Override any GCC internal prototype to avoid an error.
  17150. Use char because int might match the return type of a GCC
  17151. builtin and then its argument prototype would still apply. */
  17152. char pow ();
  17153. int
  17154. main (void)
  17155. {
  17156. return pow ();
  17157. ;
  17158. return 0;
  17159. }
  17160. _ACEOF
  17161. if ac_fn_c_try_link "$LINENO"
  17162. then :
  17163. ac_cv_lib_m_pow=yes
  17164. else $as_nop
  17165. ac_cv_lib_m_pow=no
  17166. fi
  17167. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17168. conftest$ac_exeext conftest.$ac_ext
  17169. LIBS=$ac_check_lib_save_LIBS
  17170. fi
  17171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17172. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17173. if test "x$ac_cv_lib_m_pow" = xyes
  17174. then :
  17175. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17176. fi
  17177. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17178. if test "x$ac_cv_func_acos" = xyes
  17179. then :
  17180. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17181. fi
  17182. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17183. if test "x$ac_cv_func_acosf" = xyes
  17184. then :
  17185. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17186. fi
  17187. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17188. if test "x$ac_cv_func_asin" = xyes
  17189. then :
  17190. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17191. fi
  17192. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17193. if test "x$ac_cv_func_asinf" = xyes
  17194. then :
  17195. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17196. fi
  17197. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17198. if test "x$ac_cv_func_atan" = xyes
  17199. then :
  17200. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17201. fi
  17202. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17203. if test "x$ac_cv_func_atanf" = xyes
  17204. then :
  17205. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17206. fi
  17207. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17208. if test "x$ac_cv_func_atan2" = xyes
  17209. then :
  17210. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17211. fi
  17212. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17213. if test "x$ac_cv_func_atan2f" = xyes
  17214. then :
  17215. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17216. fi
  17217. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17218. if test "x$ac_cv_func_ceil" = xyes
  17219. then :
  17220. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17221. fi
  17222. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17223. if test "x$ac_cv_func_ceilf" = xyes
  17224. then :
  17225. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17226. fi
  17227. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17228. if test "x$ac_cv_func_copysign" = xyes
  17229. then :
  17230. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17231. fi
  17232. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17233. if test "x$ac_cv_func_copysignf" = xyes
  17234. then :
  17235. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17236. fi
  17237. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17238. if test "x$ac_cv_func_cos" = xyes
  17239. then :
  17240. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17241. fi
  17242. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17243. if test "x$ac_cv_func_cosf" = xyes
  17244. then :
  17245. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17246. fi
  17247. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17248. if test "x$ac_cv_func_exp" = xyes
  17249. then :
  17250. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17251. fi
  17252. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17253. if test "x$ac_cv_func_expf" = xyes
  17254. then :
  17255. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17256. fi
  17257. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17258. if test "x$ac_cv_func_fabs" = xyes
  17259. then :
  17260. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17261. fi
  17262. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17263. if test "x$ac_cv_func_fabsf" = xyes
  17264. then :
  17265. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17266. fi
  17267. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17268. if test "x$ac_cv_func_floor" = xyes
  17269. then :
  17270. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17271. fi
  17272. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17273. if test "x$ac_cv_func_floorf" = xyes
  17274. then :
  17275. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17276. fi
  17277. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17278. if test "x$ac_cv_func_trunc" = xyes
  17279. then :
  17280. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17281. fi
  17282. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17283. if test "x$ac_cv_func_truncf" = xyes
  17284. then :
  17285. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17286. fi
  17287. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17288. if test "x$ac_cv_func_fmod" = xyes
  17289. then :
  17290. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17291. fi
  17292. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17293. if test "x$ac_cv_func_fmodf" = xyes
  17294. then :
  17295. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17296. fi
  17297. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17298. if test "x$ac_cv_func_log" = xyes
  17299. then :
  17300. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17301. fi
  17302. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17303. if test "x$ac_cv_func_logf" = xyes
  17304. then :
  17305. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17306. fi
  17307. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17308. if test "x$ac_cv_func_log10" = xyes
  17309. then :
  17310. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17311. fi
  17312. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17313. if test "x$ac_cv_func_log10f" = xyes
  17314. then :
  17315. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17316. fi
  17317. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17318. if test "x$ac_cv_func_lround" = xyes
  17319. then :
  17320. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17321. fi
  17322. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17323. if test "x$ac_cv_func_lroundf" = xyes
  17324. then :
  17325. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17326. fi
  17327. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17328. if test "x$ac_cv_func_pow" = xyes
  17329. then :
  17330. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17331. fi
  17332. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17333. if test "x$ac_cv_func_powf" = xyes
  17334. then :
  17335. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17336. fi
  17337. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17338. if test "x$ac_cv_func_round" = xyes
  17339. then :
  17340. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17341. fi
  17342. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17343. if test "x$ac_cv_func_roundf" = xyes
  17344. then :
  17345. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17346. fi
  17347. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17348. if test "x$ac_cv_func_scalbn" = xyes
  17349. then :
  17350. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17351. fi
  17352. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17353. if test "x$ac_cv_func_scalbnf" = xyes
  17354. then :
  17355. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17356. fi
  17357. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17358. if test "x$ac_cv_func_sin" = xyes
  17359. then :
  17360. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17361. fi
  17362. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17363. if test "x$ac_cv_func_sinf" = xyes
  17364. then :
  17365. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17366. fi
  17367. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17368. if test "x$ac_cv_func_sqrt" = xyes
  17369. then :
  17370. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17371. fi
  17372. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17373. if test "x$ac_cv_func_sqrtf" = xyes
  17374. then :
  17375. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17376. fi
  17377. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17378. if test "x$ac_cv_func_tan" = xyes
  17379. then :
  17380. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17381. fi
  17382. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17383. if test "x$ac_cv_func_tanf" = xyes
  17384. then :
  17385. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17386. fi
  17387. if test x$enable_system_iconv = xyes; then
  17388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17389. printf %s "checking for iconv_open in -liconv... " >&6; }
  17390. if test ${ac_cv_lib_iconv_iconv_open+y}
  17391. then :
  17392. printf %s "(cached) " >&6
  17393. else $as_nop
  17394. ac_check_lib_save_LIBS=$LIBS
  17395. LIBS="-liconv $LIBS"
  17396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17397. /* end confdefs.h. */
  17398. /* Override any GCC internal prototype to avoid an error.
  17399. Use char because int might match the return type of a GCC
  17400. builtin and then its argument prototype would still apply. */
  17401. char iconv_open ();
  17402. int
  17403. main (void)
  17404. {
  17405. return iconv_open ();
  17406. ;
  17407. return 0;
  17408. }
  17409. _ACEOF
  17410. if ac_fn_c_try_link "$LINENO"
  17411. then :
  17412. ac_cv_lib_iconv_iconv_open=yes
  17413. else $as_nop
  17414. ac_cv_lib_iconv_iconv_open=no
  17415. fi
  17416. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17417. conftest$ac_exeext conftest.$ac_ext
  17418. LIBS=$ac_check_lib_save_LIBS
  17419. fi
  17420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17421. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17422. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17423. then :
  17424. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17425. fi
  17426. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17427. if test "x$ac_cv_func_iconv" = xyes
  17428. then :
  17429. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17430. fi
  17431. fi
  17432. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17433. "
  17434. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17435. then :
  17436. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17437. fi
  17438. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17439. if test "x$ac_cv_header_libunwind_h" = xyes
  17440. then :
  17441. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17442. fi
  17443. fi
  17444. # Check whether --enable-gcc-atomics was given.
  17445. if test ${enable_gcc_atomics+y}
  17446. then :
  17447. enableval=$enable_gcc_atomics;
  17448. else $as_nop
  17449. enable_gcc_atomics=yes
  17450. fi
  17451. if test x$enable_gcc_atomics = xyes; then
  17452. have_gcc_atomics=no
  17453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17454. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17456. /* end confdefs.h. */
  17457. int
  17458. main (void)
  17459. {
  17460. int a;
  17461. void *x, *y, *z;
  17462. __sync_lock_test_and_set(&a, 4);
  17463. __sync_lock_test_and_set(&x, y);
  17464. __sync_fetch_and_add(&a, 1);
  17465. __sync_bool_compare_and_swap(&a, 5, 10);
  17466. __sync_bool_compare_and_swap(&x, y, z);
  17467. ;
  17468. return 0;
  17469. }
  17470. _ACEOF
  17471. if ac_fn_c_try_link "$LINENO"
  17472. then :
  17473. have_gcc_atomics=yes
  17474. fi
  17475. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17476. conftest$ac_exeext conftest.$ac_ext
  17477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17478. printf "%s\n" "$have_gcc_atomics" >&6; }
  17479. if test x$have_gcc_atomics = xyes; then
  17480. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17481. else
  17482. # See if we have the minimum operation needed for GCC atomics
  17483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17484. /* end confdefs.h. */
  17485. int
  17486. main (void)
  17487. {
  17488. int a;
  17489. __sync_lock_test_and_set(&a, 1);
  17490. __sync_lock_release(&a);
  17491. ;
  17492. return 0;
  17493. }
  17494. _ACEOF
  17495. if ac_fn_c_try_link "$LINENO"
  17496. then :
  17497. have_gcc_sync_lock_test_and_set=yes
  17498. fi
  17499. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17500. conftest$ac_exeext conftest.$ac_ext
  17501. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17502. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17503. fi
  17504. fi
  17505. fi
  17506. # Standard C sources
  17507. SOURCES="$SOURCES $srcdir/src/*.c"
  17508. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17509. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17510. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17511. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17512. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17513. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17514. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17515. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17516. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17517. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17518. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17519. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17520. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17521. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17522. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17523. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17524. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17525. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17526. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17527. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17528. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17529. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17530. case "$host" in
  17531. *-*-emscripten*)
  17532. default_atomic=no
  17533. ;;
  17534. *)
  17535. default_atomic=yes
  17536. ;;
  17537. esac
  17538. # Check whether --enable-atomic was given.
  17539. if test ${enable_atomic+y}
  17540. then :
  17541. enableval=$enable_atomic;
  17542. else $as_nop
  17543. enable_atomic=$default_atomic
  17544. fi
  17545. if test x$enable_atomic != xyes; then
  17546. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17547. else
  17548. SUMMARY_modules="${SUMMARY_modules} atomic"
  17549. fi
  17550. # Check whether --enable-audio was given.
  17551. if test ${enable_audio+y}
  17552. then :
  17553. enableval=$enable_audio;
  17554. else $as_nop
  17555. enable_audio=yes
  17556. fi
  17557. if test x$enable_audio != xyes; then
  17558. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17559. else
  17560. SUMMARY_modules="${SUMMARY_modules} audio"
  17561. fi
  17562. # Check whether --enable-video was given.
  17563. if test ${enable_video+y}
  17564. then :
  17565. enableval=$enable_video;
  17566. else $as_nop
  17567. enable_video=yes
  17568. fi
  17569. if test x$enable_video != xyes; then
  17570. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17571. else
  17572. SUMMARY_modules="${SUMMARY_modules} video"
  17573. fi
  17574. # Check whether --enable-render was given.
  17575. if test ${enable_render+y}
  17576. then :
  17577. enableval=$enable_render;
  17578. else $as_nop
  17579. enable_render=yes
  17580. fi
  17581. if test x$enable_render != xyes; then
  17582. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17583. else
  17584. SUMMARY_modules="${SUMMARY_modules} render"
  17585. fi
  17586. # Check whether --enable-events was given.
  17587. if test ${enable_events+y}
  17588. then :
  17589. enableval=$enable_events;
  17590. else $as_nop
  17591. enable_events=yes
  17592. fi
  17593. if test x$enable_events != xyes; then
  17594. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17595. else
  17596. SUMMARY_modules="${SUMMARY_modules} events"
  17597. fi
  17598. # Check whether --enable-joystick was given.
  17599. if test ${enable_joystick+y}
  17600. then :
  17601. enableval=$enable_joystick;
  17602. else $as_nop
  17603. enable_joystick=yes
  17604. fi
  17605. if test x$enable_joystick != xyes; then
  17606. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17607. else
  17608. SUMMARY_modules="${SUMMARY_modules} joystick"
  17609. fi
  17610. # Check whether --enable-haptic was given.
  17611. if test ${enable_haptic+y}
  17612. then :
  17613. enableval=$enable_haptic;
  17614. else $as_nop
  17615. enable_haptic=yes
  17616. fi
  17617. if test x$enable_haptic != xyes; then
  17618. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17619. else
  17620. SUMMARY_modules="${SUMMARY_modules} haptic"
  17621. fi
  17622. # Check whether --enable-hidapi was given.
  17623. if test ${enable_hidapi+y}
  17624. then :
  17625. enableval=$enable_hidapi;
  17626. else $as_nop
  17627. enable_hidapi=yes
  17628. fi
  17629. if test x$enable_hidapi != xyes; then
  17630. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17631. else
  17632. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17633. fi
  17634. # Check whether --enable-sensor was given.
  17635. if test ${enable_sensor+y}
  17636. then :
  17637. enableval=$enable_sensor;
  17638. else $as_nop
  17639. enable_sensor=yes
  17640. fi
  17641. if test x$enable_sensor != xyes; then
  17642. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17643. else
  17644. SUMMARY_modules="${SUMMARY_modules} sensor"
  17645. fi
  17646. # Check whether --enable-power was given.
  17647. if test ${enable_power+y}
  17648. then :
  17649. enableval=$enable_power;
  17650. else $as_nop
  17651. enable_power=yes
  17652. fi
  17653. if test x$enable_power != xyes; then
  17654. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17655. else
  17656. SUMMARY_modules="${SUMMARY_modules} power"
  17657. fi
  17658. # Check whether --enable-filesystem was given.
  17659. if test ${enable_filesystem+y}
  17660. then :
  17661. enableval=$enable_filesystem;
  17662. else $as_nop
  17663. enable_filesystem=yes
  17664. fi
  17665. if test x$enable_filesystem != xyes; then
  17666. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17667. else
  17668. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17669. fi
  17670. # Many subsystems depend on threads, so leave them enabled by default
  17671. #AC_ARG_ENABLE(threads,
  17672. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17673. # , enable_threads=yes)
  17674. enable_threads=yes
  17675. if test x$enable_threads != xyes; then
  17676. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17677. else
  17678. SUMMARY_modules="${SUMMARY_modules} threads"
  17679. fi
  17680. # Check whether --enable-timers was given.
  17681. if test ${enable_timers+y}
  17682. then :
  17683. enableval=$enable_timers;
  17684. else $as_nop
  17685. enable_timers=yes
  17686. fi
  17687. if test x$enable_timers != xyes; then
  17688. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17689. else
  17690. SUMMARY_modules="${SUMMARY_modules} timers"
  17691. fi
  17692. # Check whether --enable-file was given.
  17693. if test ${enable_file+y}
  17694. then :
  17695. enableval=$enable_file;
  17696. else $as_nop
  17697. enable_file=yes
  17698. fi
  17699. if test x$enable_file != xyes; then
  17700. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17701. else
  17702. SUMMARY_modules="${SUMMARY_modules} file"
  17703. fi
  17704. # Check whether --enable-misc was given.
  17705. if test ${enable_misc+y}
  17706. then :
  17707. enableval=$enable_misc;
  17708. else $as_nop
  17709. enable_misc=yes
  17710. fi
  17711. if test x$enable_misc != xyes; then
  17712. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17713. else
  17714. SUMMARY_modules="${SUMMARY_modules} misc"
  17715. fi
  17716. # Check whether --enable-locale was given.
  17717. if test ${enable_locale+y}
  17718. then :
  17719. enableval=$enable_locale;
  17720. else $as_nop
  17721. enable_locale=yes
  17722. fi
  17723. if test x$enable_locale != xyes; then
  17724. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17725. else
  17726. SUMMARY_modules="${SUMMARY_modules} locale"
  17727. fi
  17728. # Check whether --enable-loadso was given.
  17729. if test ${enable_loadso+y}
  17730. then :
  17731. enableval=$enable_loadso;
  17732. else $as_nop
  17733. enable_loadso=yes
  17734. fi
  17735. if test x$enable_loadso != xyes; then
  17736. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17737. else
  17738. SUMMARY_modules="${SUMMARY_modules} loadso"
  17739. fi
  17740. # Check whether --enable-cpuinfo was given.
  17741. if test ${enable_cpuinfo+y}
  17742. then :
  17743. enableval=$enable_cpuinfo;
  17744. else $as_nop
  17745. enable_cpuinfo=yes
  17746. fi
  17747. if test x$enable_cpuinfo != xyes; then
  17748. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17749. else
  17750. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17751. fi
  17752. # Check whether --enable-assembly was given.
  17753. if test ${enable_assembly+y}
  17754. then :
  17755. enableval=$enable_assembly;
  17756. else $as_nop
  17757. enable_assembly=yes
  17758. fi
  17759. if test x$enable_assembly = xyes; then
  17760. SUMMARY_modules="${SUMMARY_modules} assembly"
  17761. # Make sure that we don't generate floating point code that would
  17762. # cause illegal instruction exceptions on older processors
  17763. case "$host" in
  17764. *-*-darwin*)
  17765. # Don't need to worry about Apple hardware, it's all SSE capable
  17766. default_ssemath=yes
  17767. ;;
  17768. *64-*-*)
  17769. # x86 64-bit architectures all have SSE instructions
  17770. default_ssemath=yes
  17771. ;;
  17772. *)
  17773. default_ssemath=no
  17774. ;;
  17775. esac
  17776. # Check whether --enable-ssemath was given.
  17777. if test ${enable_ssemath+y}
  17778. then :
  17779. enableval=$enable_ssemath;
  17780. else $as_nop
  17781. enable_ssemath=$default_ssemath
  17782. fi
  17783. if test x$enable_ssemath = xno; then
  17784. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17785. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17786. fi
  17787. fi
  17788. # Check whether --enable-mmx was given.
  17789. if test ${enable_mmx+y}
  17790. then :
  17791. enableval=$enable_mmx;
  17792. else $as_nop
  17793. enable_mmx=yes
  17794. fi
  17795. if test x$enable_mmx = xyes; then
  17796. save_CFLAGS="$CFLAGS"
  17797. have_gcc_mmx=no
  17798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17799. printf %s "checking for GCC -mmmx option... " >&6; }
  17800. mmx_CFLAGS="-mmmx"
  17801. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17803. /* end confdefs.h. */
  17804. #ifdef __MINGW32__
  17805. #include <_mingw.h>
  17806. #ifdef __MINGW64_VERSION_MAJOR
  17807. #include <intrin.h>
  17808. #else
  17809. #include <mmintrin.h>
  17810. #endif
  17811. #else
  17812. #include <mmintrin.h>
  17813. #endif
  17814. #ifndef __MMX__
  17815. #error Assembler CPP flag not enabled
  17816. #endif
  17817. int
  17818. main (void)
  17819. {
  17820. ;
  17821. return 0;
  17822. }
  17823. _ACEOF
  17824. if ac_fn_c_try_compile "$LINENO"
  17825. then :
  17826. have_gcc_mmx=yes
  17827. fi
  17828. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17830. printf "%s\n" "$have_gcc_mmx" >&6; }
  17831. CFLAGS="$save_CFLAGS"
  17832. if test x$have_gcc_mmx = xyes; then
  17833. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17834. SUMMARY_math="${SUMMARY_math} mmx"
  17835. fi
  17836. fi
  17837. # Check whether --enable-3dnow was given.
  17838. if test ${enable_3dnow+y}
  17839. then :
  17840. enableval=$enable_3dnow;
  17841. else $as_nop
  17842. enable_3dnow=yes
  17843. fi
  17844. if test x$enable_3dnow = xyes; then
  17845. save_CFLAGS="$CFLAGS"
  17846. have_gcc_3dnow=no
  17847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17848. printf %s "checking for GCC -m3dnow option... " >&6; }
  17849. amd3dnow_CFLAGS="-m3dnow"
  17850. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17852. /* end confdefs.h. */
  17853. #include <mm3dnow.h>
  17854. #ifndef __3dNOW__
  17855. #error Assembler CPP flag not enabled
  17856. #endif
  17857. int
  17858. main (void)
  17859. {
  17860. void *p = 0;
  17861. _m_prefetch(p);
  17862. ;
  17863. return 0;
  17864. }
  17865. _ACEOF
  17866. if ac_fn_c_try_link "$LINENO"
  17867. then :
  17868. have_gcc_3dnow=yes
  17869. fi
  17870. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17871. conftest$ac_exeext conftest.$ac_ext
  17872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17873. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17874. CFLAGS="$save_CFLAGS"
  17875. if test x$have_gcc_3dnow = xyes; then
  17876. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17877. SUMMARY_math="${SUMMARY_math} 3dnow"
  17878. fi
  17879. fi
  17880. # Check whether --enable-sse was given.
  17881. if test ${enable_sse+y}
  17882. then :
  17883. enableval=$enable_sse;
  17884. else $as_nop
  17885. enable_sse=yes
  17886. fi
  17887. if test x$enable_sse = xyes; then
  17888. save_CFLAGS="$CFLAGS"
  17889. have_gcc_sse=no
  17890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17891. printf %s "checking for GCC -msse option... " >&6; }
  17892. sse_CFLAGS="-msse"
  17893. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17895. /* end confdefs.h. */
  17896. #ifdef __MINGW32__
  17897. #include <_mingw.h>
  17898. #ifdef __MINGW64_VERSION_MAJOR
  17899. #include <intrin.h>
  17900. #else
  17901. #include <xmmintrin.h>
  17902. #endif
  17903. #else
  17904. #include <xmmintrin.h>
  17905. #endif
  17906. #ifndef __SSE__
  17907. #error Assembler CPP flag not enabled
  17908. #endif
  17909. int
  17910. main (void)
  17911. {
  17912. ;
  17913. return 0;
  17914. }
  17915. _ACEOF
  17916. if ac_fn_c_try_compile "$LINENO"
  17917. then :
  17918. have_gcc_sse=yes
  17919. fi
  17920. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17922. printf "%s\n" "$have_gcc_sse" >&6; }
  17923. CFLAGS="$save_CFLAGS"
  17924. if test x$have_gcc_sse = xyes; then
  17925. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17926. SUMMARY_math="${SUMMARY_math} sse"
  17927. fi
  17928. fi
  17929. # Check whether --enable-sse2 was given.
  17930. if test ${enable_sse2+y}
  17931. then :
  17932. enableval=$enable_sse2;
  17933. else $as_nop
  17934. enable_sse2=$default_ssemath
  17935. fi
  17936. if test x$enable_sse2 = xyes; then
  17937. save_CFLAGS="$CFLAGS"
  17938. have_gcc_sse2=no
  17939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17940. printf %s "checking for GCC -msse2 option... " >&6; }
  17941. sse2_CFLAGS="-msse2"
  17942. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17944. /* end confdefs.h. */
  17945. #ifdef __MINGW32__
  17946. #include <_mingw.h>
  17947. #ifdef __MINGW64_VERSION_MAJOR
  17948. #include <intrin.h>
  17949. #else
  17950. #include <emmintrin.h>
  17951. #endif
  17952. #else
  17953. #include <emmintrin.h>
  17954. #endif
  17955. #ifndef __SSE2__
  17956. #error Assembler CPP flag not enabled
  17957. #endif
  17958. int
  17959. main (void)
  17960. {
  17961. ;
  17962. return 0;
  17963. }
  17964. _ACEOF
  17965. if ac_fn_c_try_compile "$LINENO"
  17966. then :
  17967. have_gcc_sse2=yes
  17968. fi
  17969. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17971. printf "%s\n" "$have_gcc_sse2" >&6; }
  17972. CFLAGS="$save_CFLAGS"
  17973. if test x$have_gcc_sse2 = xyes; then
  17974. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17975. SUMMARY_math="${SUMMARY_math} sse2"
  17976. fi
  17977. fi
  17978. # Check whether --enable-sse3 was given.
  17979. if test ${enable_sse3+y}
  17980. then :
  17981. enableval=$enable_sse3;
  17982. else $as_nop
  17983. enable_sse3=$default_ssemath
  17984. fi
  17985. if test x$enable_sse3 = xyes; then
  17986. save_CFLAGS="$CFLAGS"
  17987. have_gcc_sse3=no
  17988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17989. printf %s "checking for GCC -msse3 option... " >&6; }
  17990. sse3_CFLAGS="-msse3"
  17991. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17993. /* end confdefs.h. */
  17994. #ifdef __MINGW32__
  17995. #include <_mingw.h>
  17996. #ifdef __MINGW64_VERSION_MAJOR
  17997. #include <intrin.h>
  17998. #else
  17999. #include <pmmintrin.h>
  18000. #endif
  18001. #else
  18002. #include <pmmintrin.h>
  18003. #endif
  18004. #ifndef __SSE2__
  18005. #error Assembler CPP flag not enabled
  18006. #endif
  18007. int
  18008. main (void)
  18009. {
  18010. ;
  18011. return 0;
  18012. }
  18013. _ACEOF
  18014. if ac_fn_c_try_compile "$LINENO"
  18015. then :
  18016. have_gcc_sse3=yes
  18017. fi
  18018. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  18020. printf "%s\n" "$have_gcc_sse3" >&6; }
  18021. CFLAGS="$save_CFLAGS"
  18022. if test x$have_gcc_sse3 = xyes; then
  18023. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  18024. SUMMARY_math="${SUMMARY_math} sse3"
  18025. fi
  18026. fi
  18027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  18028. printf %s "checking for immintrin.h... " >&6; }
  18029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18030. /* end confdefs.h. */
  18031. #include <immintrin.h>
  18032. int
  18033. main (void)
  18034. {
  18035. ;
  18036. return 0;
  18037. }
  18038. _ACEOF
  18039. if ac_fn_c_try_compile "$LINENO"
  18040. then :
  18041. have_immintrin_h_hdr=yes
  18042. else $as_nop
  18043. have_immintrin_h_hdr=no
  18044. fi
  18045. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  18047. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  18048. if test x$have_immintrin_h_hdr = xyes; then
  18049. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  18050. fi
  18051. # Check whether --enable-altivec was given.
  18052. if test ${enable_altivec+y}
  18053. then :
  18054. enableval=$enable_altivec;
  18055. else $as_nop
  18056. enable_altivec=yes
  18057. fi
  18058. if test x$enable_altivec = xyes; then
  18059. save_CFLAGS="$CFLAGS"
  18060. have_gcc_altivec=no
  18061. have_altivec_h_hdr=no
  18062. altivec_CFLAGS="-maltivec"
  18063. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  18065. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  18066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18067. /* end confdefs.h. */
  18068. #include <altivec.h>
  18069. vector unsigned int vzero() {
  18070. return vec_splat_u32(0);
  18071. }
  18072. int
  18073. main (void)
  18074. {
  18075. ;
  18076. return 0;
  18077. }
  18078. _ACEOF
  18079. if ac_fn_c_try_compile "$LINENO"
  18080. then :
  18081. have_gcc_altivec=yes
  18082. have_altivec_h_hdr=yes
  18083. fi
  18084. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18086. printf "%s\n" "$have_gcc_altivec" >&6; }
  18087. if test x$have_gcc_altivec = xno; then
  18088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18089. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18091. /* end confdefs.h. */
  18092. vector unsigned int vzero() {
  18093. return vec_splat_u32(0);
  18094. }
  18095. int
  18096. main (void)
  18097. {
  18098. ;
  18099. return 0;
  18100. }
  18101. _ACEOF
  18102. if ac_fn_c_try_compile "$LINENO"
  18103. then :
  18104. have_gcc_altivec=yes
  18105. fi
  18106. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18108. printf "%s\n" "$have_gcc_altivec" >&6; }
  18109. fi
  18110. if test x$have_gcc_altivec = xno; then
  18111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18112. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18113. altivec_CFLAGS="-faltivec"
  18114. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18116. /* end confdefs.h. */
  18117. #include <altivec.h>
  18118. vector unsigned int vzero() {
  18119. return vec_splat_u32(0);
  18120. }
  18121. int
  18122. main (void)
  18123. {
  18124. ;
  18125. return 0;
  18126. }
  18127. _ACEOF
  18128. if ac_fn_c_try_compile "$LINENO"
  18129. then :
  18130. have_gcc_altivec=yes
  18131. have_altivec_h_hdr=yes
  18132. fi
  18133. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18135. printf "%s\n" "$have_gcc_altivec" >&6; }
  18136. fi
  18137. if test x$have_gcc_altivec = xno; then
  18138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18139. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18141. /* end confdefs.h. */
  18142. vector unsigned int vzero() {
  18143. return vec_splat_u32(0);
  18144. }
  18145. int
  18146. main (void)
  18147. {
  18148. ;
  18149. return 0;
  18150. }
  18151. _ACEOF
  18152. if ac_fn_c_try_compile "$LINENO"
  18153. then :
  18154. have_gcc_altivec=yes
  18155. fi
  18156. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18158. printf "%s\n" "$have_gcc_altivec" >&6; }
  18159. fi
  18160. CFLAGS="$save_CFLAGS"
  18161. if test x$have_gcc_altivec = xyes; then
  18162. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18163. if test x$have_altivec_h_hdr = xyes; then
  18164. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18165. fi
  18166. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18167. SUMMARY_math="${SUMMARY_math} altivec"
  18168. fi
  18169. fi
  18170. fi
  18171. # Check whether --enable-lsx was given.
  18172. if test ${enable_lsx+y}
  18173. then :
  18174. enableval=$enable_lsx;
  18175. else $as_nop
  18176. enable_lsx=yes
  18177. fi
  18178. if test x$enable_lsx = xyes; then
  18179. save_CFLAGS="$CFLAGS"
  18180. have_gcc_lsx=no
  18181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18182. printf %s "checking for GCC -mlsx option... " >&6; }
  18183. lsx_CFLAGS="-mlsx"
  18184. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18186. /* end confdefs.h. */
  18187. #ifndef __loongarch_sx
  18188. #error Assembler CPP flag not enabled
  18189. #endif
  18190. int
  18191. main (void)
  18192. {
  18193. ;
  18194. return 0;
  18195. }
  18196. _ACEOF
  18197. if ac_fn_c_try_compile "$LINENO"
  18198. then :
  18199. have_gcc_lsx=yes
  18200. fi
  18201. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18203. printf "%s\n" "$have_gcc_lsx" >&6; }
  18204. CFLAGS="$save_CFLAGS"
  18205. if test x$have_gcc_lsx = xyes; then
  18206. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18207. SUMMARY_math="${SUMMARY_math} lsx"
  18208. fi
  18209. fi
  18210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18211. printf %s "checking for lsxintrin.h... " >&6; }
  18212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18213. /* end confdefs.h. */
  18214. #include <lsxintrin.h>
  18215. int
  18216. main (void)
  18217. {
  18218. ;
  18219. return 0;
  18220. }
  18221. _ACEOF
  18222. if ac_fn_c_try_compile "$LINENO"
  18223. then :
  18224. have_lsxintrin_h_hdr=yes
  18225. else $as_nop
  18226. have_lsxintrin_h_hdr=no
  18227. fi
  18228. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18230. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18231. if test x$have_lsxintrin_h_hdr = xyes; then
  18232. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18233. fi
  18234. # Check whether --enable-lasx was given.
  18235. if test ${enable_lasx+y}
  18236. then :
  18237. enableval=$enable_lasx;
  18238. else $as_nop
  18239. enable_LASX=yes
  18240. fi
  18241. if test x$enable_LASX = xyes; then
  18242. save_CFLAGS="$CFLAGS"
  18243. have_gcc_lasx=no
  18244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18245. printf %s "checking for GCC -mlasx option... " >&6; }
  18246. lasx_CFLAGS="-mlasx"
  18247. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18249. /* end confdefs.h. */
  18250. #ifndef __loongarch_asx
  18251. #error Assembler CPP flag not enabled
  18252. #endif
  18253. int
  18254. main (void)
  18255. {
  18256. ;
  18257. return 0;
  18258. }
  18259. _ACEOF
  18260. if ac_fn_c_try_compile "$LINENO"
  18261. then :
  18262. have_gcc_lasx=yes
  18263. fi
  18264. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18266. printf "%s\n" "$have_gcc_lasx" >&6; }
  18267. CFLAGS="$save_CFLAGS"
  18268. if test x$have_gcc_lasx = xyes; then
  18269. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18270. SUMMARY_math="${SUMMARY_math} lasx"
  18271. fi
  18272. fi
  18273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18274. printf %s "checking for lasxintrin.h... " >&6; }
  18275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18276. /* end confdefs.h. */
  18277. #include <lasxintrin.h>
  18278. int
  18279. main (void)
  18280. {
  18281. ;
  18282. return 0;
  18283. }
  18284. _ACEOF
  18285. if ac_fn_c_try_compile "$LINENO"
  18286. then :
  18287. have_lasxintrin_h_hdr=yes
  18288. else $as_nop
  18289. have_lasxintrin_h_hdr=no
  18290. fi
  18291. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18293. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18294. if test x$have_lasxintrin_h_hdr = xyes; then
  18295. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18296. fi
  18297. CheckOSS()
  18298. {
  18299. # Check whether --enable-oss was given.
  18300. if test ${enable_oss+y}
  18301. then :
  18302. enableval=$enable_oss;
  18303. else $as_nop
  18304. enable_oss=maybe
  18305. fi
  18306. if test x$enable_oss = xmaybe; then
  18307. enable_oss=yes
  18308. fi
  18309. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18311. printf %s "checking for OSS audio support... " >&6; }
  18312. have_oss=no
  18313. if test x$have_oss != xyes; then
  18314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18315. /* end confdefs.h. */
  18316. #include <sys/soundcard.h>
  18317. int
  18318. main (void)
  18319. {
  18320. int arg = SNDCTL_DSP_SETFRAGMENT;
  18321. ;
  18322. return 0;
  18323. }
  18324. _ACEOF
  18325. if ac_fn_c_try_compile "$LINENO"
  18326. then :
  18327. have_oss=yes
  18328. fi
  18329. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18330. fi
  18331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18332. printf "%s\n" "$have_oss" >&6; }
  18333. if test x$have_oss = xyes; then
  18334. SUMMARY_audio="${SUMMARY_audio} oss"
  18335. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18336. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18337. have_audio=yes
  18338. # We may need to link with ossaudio emulation library
  18339. case "$host" in
  18340. *-*-netbsd*)
  18341. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18342. esac
  18343. fi
  18344. fi
  18345. }
  18346. CheckALSA()
  18347. {
  18348. # Check whether --enable-alsa was given.
  18349. if test ${enable_alsa+y}
  18350. then :
  18351. enableval=$enable_alsa;
  18352. else $as_nop
  18353. enable_alsa=yes
  18354. fi
  18355. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18356. alsa_save_CFLAGS="$CFLAGS"
  18357. alsa_save_LDFLAGS="$LDFLAGS"
  18358. alsa_save_LIBS="$LIBS"
  18359. alsa_found=yes
  18360. # Check whether --with-alsa-prefix was given.
  18361. if test ${with_alsa_prefix+y}
  18362. then :
  18363. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18364. else $as_nop
  18365. alsa_prefix=""
  18366. fi
  18367. # Check whether --with-alsa-inc-prefix was given.
  18368. if test ${with_alsa_inc_prefix+y}
  18369. then :
  18370. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18371. else $as_nop
  18372. alsa_inc_prefix=""
  18373. fi
  18374. # Check whether --enable-alsatest was given.
  18375. if test ${enable_alsatest+y}
  18376. then :
  18377. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18378. else $as_nop
  18379. enable_alsatest=yes
  18380. fi
  18381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18382. printf %s "checking for ALSA CFLAGS... " >&6; }
  18383. if test "$alsa_inc_prefix" != "" ; then
  18384. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18385. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18386. fi
  18387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18388. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18390. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18391. if test "$alsa_prefix" != "" ; then
  18392. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18393. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18394. fi
  18395. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18396. LIBS=`echo $LIBS | sed 's/-lm//'`
  18397. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18398. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18399. LIBS=`echo $LIBS | sed 's/ //'`
  18400. LIBS="$ALSA_LIBS $LIBS"
  18401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18402. printf "%s\n" "$ALSA_LIBS" >&6; }
  18403. min_alsa_version=1.0.11
  18404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18405. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18406. no_alsa=""
  18407. alsa_min_major_version=`echo $min_alsa_version | \
  18408. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18409. alsa_min_minor_version=`echo $min_alsa_version | \
  18410. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18411. alsa_min_micro_version=`echo $min_alsa_version | \
  18412. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18413. ac_ext=c
  18414. ac_cpp='$CPP $CPPFLAGS'
  18415. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18416. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18417. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18419. /* end confdefs.h. */
  18420. #include <alsa/asoundlib.h>
  18421. int
  18422. main (void)
  18423. {
  18424. /* ensure backward compatibility */
  18425. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18426. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18427. #endif
  18428. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18429. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18430. #endif
  18431. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18432. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18433. #endif
  18434. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18435. exit(0);
  18436. # else
  18437. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18438. # error not present
  18439. # endif
  18440. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18441. exit(0);
  18442. # else
  18443. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18444. # error not present
  18445. # endif
  18446. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18447. # error not present
  18448. # endif
  18449. # endif
  18450. # endif
  18451. exit(0);
  18452. ;
  18453. return 0;
  18454. }
  18455. _ACEOF
  18456. if ac_fn_c_try_compile "$LINENO"
  18457. then :
  18458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18459. printf "%s\n" "found." >&6; }
  18460. else $as_nop
  18461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18462. printf "%s\n" "not present." >&6; }
  18463. alsa_found=no
  18464. fi
  18465. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18466. ac_ext=c
  18467. ac_cpp='$CPP $CPPFLAGS'
  18468. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18469. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18470. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18471. if test "x$enable_alsatest" = "xyes"; then
  18472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18473. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18474. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18475. then :
  18476. printf %s "(cached) " >&6
  18477. else $as_nop
  18478. ac_check_lib_save_LIBS=$LIBS
  18479. LIBS="-lasound $LIBS"
  18480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18481. /* end confdefs.h. */
  18482. /* Override any GCC internal prototype to avoid an error.
  18483. Use char because int might match the return type of a GCC
  18484. builtin and then its argument prototype would still apply. */
  18485. char snd_ctl_open ();
  18486. int
  18487. main (void)
  18488. {
  18489. return snd_ctl_open ();
  18490. ;
  18491. return 0;
  18492. }
  18493. _ACEOF
  18494. if ac_fn_c_try_link "$LINENO"
  18495. then :
  18496. ac_cv_lib_asound_snd_ctl_open=yes
  18497. else $as_nop
  18498. ac_cv_lib_asound_snd_ctl_open=no
  18499. fi
  18500. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18501. conftest$ac_exeext conftest.$ac_ext
  18502. LIBS=$ac_check_lib_save_LIBS
  18503. fi
  18504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18505. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18506. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18507. then :
  18508. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18509. LIBS="-lasound $LIBS"
  18510. else $as_nop
  18511. alsa_found=no
  18512. fi
  18513. fi
  18514. if test "x$alsa_found" = "xyes" ; then
  18515. have_alsa=yes
  18516. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18517. LIBS=`echo $LIBS | sed 's/ //'`
  18518. LIBS="-lasound $LIBS"
  18519. fi
  18520. if test "x$alsa_found" = "xno" ; then
  18521. have_alsa=no
  18522. CFLAGS="$alsa_save_CFLAGS"
  18523. LDFLAGS="$alsa_save_LDFLAGS"
  18524. LIBS="$alsa_save_LIBS"
  18525. ALSA_CFLAGS=""
  18526. ALSA_LIBS=""
  18527. fi
  18528. # Restore all flags from before the ALSA detection runs
  18529. CFLAGS="$alsa_save_CFLAGS"
  18530. LDFLAGS="$alsa_save_LDFLAGS"
  18531. LIBS="$alsa_save_LIBS"
  18532. if test x$have_alsa = xyes; then
  18533. # Check whether --enable-alsa-shared was given.
  18534. if test ${enable_alsa_shared+y}
  18535. then :
  18536. enableval=$enable_alsa_shared;
  18537. else $as_nop
  18538. enable_alsa_shared=yes
  18539. fi
  18540. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18541. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18542. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18543. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18544. if test x$have_loadso != xyes && \
  18545. test x$enable_alsa_shared = xyes; then
  18546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18547. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18548. fi
  18549. if test x$have_loadso = xyes && \
  18550. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18551. echo "-- dynamic libasound -> $alsa_lib"
  18552. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18553. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18554. else
  18555. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18556. SUMMARY_audio="${SUMMARY_audio} alsa"
  18557. fi
  18558. have_audio=yes
  18559. fi
  18560. fi
  18561. }
  18562. CheckJACK()
  18563. {
  18564. # Check whether --enable-jack was given.
  18565. if test ${enable_jack+y}
  18566. then :
  18567. enableval=$enable_jack;
  18568. else $as_nop
  18569. enable_jack=yes
  18570. fi
  18571. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18572. pkg_failed=no
  18573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18574. printf %s "checking for jack >= 0.125... " >&6; }
  18575. if test -n "$JACK_CFLAGS"; then
  18576. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18577. elif test -n "$PKG_CONFIG"; then
  18578. if test -n "$PKG_CONFIG" && \
  18579. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18580. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18581. ac_status=$?
  18582. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18583. test $ac_status = 0; }; then
  18584. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18585. test "x$?" != "x0" && pkg_failed=yes
  18586. else
  18587. pkg_failed=yes
  18588. fi
  18589. else
  18590. pkg_failed=untried
  18591. fi
  18592. if test -n "$JACK_LIBS"; then
  18593. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18594. elif test -n "$PKG_CONFIG"; then
  18595. if test -n "$PKG_CONFIG" && \
  18596. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18597. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18598. ac_status=$?
  18599. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18600. test $ac_status = 0; }; then
  18601. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18602. test "x$?" != "x0" && pkg_failed=yes
  18603. else
  18604. pkg_failed=yes
  18605. fi
  18606. else
  18607. pkg_failed=untried
  18608. fi
  18609. if test $pkg_failed = yes; then
  18610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18611. printf "%s\n" "no" >&6; }
  18612. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18613. _pkg_short_errors_supported=yes
  18614. else
  18615. _pkg_short_errors_supported=no
  18616. fi
  18617. if test $_pkg_short_errors_supported = yes; then
  18618. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18619. else
  18620. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18621. fi
  18622. # Put the nasty error message in config.log where it belongs
  18623. echo "$JACK_PKG_ERRORS" >&5
  18624. audio_jack=no
  18625. elif test $pkg_failed = untried; then
  18626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18627. printf "%s\n" "no" >&6; }
  18628. audio_jack=no
  18629. else
  18630. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18631. JACK_LIBS=$pkg_cv_JACK_LIBS
  18632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18633. printf "%s\n" "yes" >&6; }
  18634. audio_jack=yes
  18635. fi
  18636. if test x$audio_jack = xyes; then
  18637. # Check whether --enable-jack-shared was given.
  18638. if test ${enable_jack_shared+y}
  18639. then :
  18640. enableval=$enable_jack_shared;
  18641. else $as_nop
  18642. enable_jack_shared=yes
  18643. fi
  18644. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18645. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18646. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18647. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18648. if test x$have_loadso != xyes && \
  18649. test x$enable_jack_shared = xyes; then
  18650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18651. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18652. fi
  18653. if test x$have_loadso = xyes && \
  18654. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18655. echo "-- dynamic libjack -> $jack_lib"
  18656. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18657. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18658. case "$host" in
  18659. # On Solaris, jack must be linked deferred explicitly
  18660. # to prevent undefined symbol failures.
  18661. *-*-solaris*)
  18662. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18663. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18664. esac
  18665. else
  18666. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18667. SUMMARY_audio="${SUMMARY_audio} jack"
  18668. fi
  18669. have_audio=yes
  18670. fi
  18671. fi
  18672. }
  18673. CheckESD()
  18674. {
  18675. # Check whether --enable-esd was given.
  18676. if test ${enable_esd+y}
  18677. then :
  18678. enableval=$enable_esd;
  18679. else $as_nop
  18680. enable_esd=yes
  18681. fi
  18682. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18683. pkg_failed=no
  18684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18685. printf %s "checking for esound >= 0.2.8... " >&6; }
  18686. if test -n "$ESD_CFLAGS"; then
  18687. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18688. elif test -n "$PKG_CONFIG"; then
  18689. if test -n "$PKG_CONFIG" && \
  18690. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18691. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18692. ac_status=$?
  18693. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18694. test $ac_status = 0; }; then
  18695. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18696. test "x$?" != "x0" && pkg_failed=yes
  18697. else
  18698. pkg_failed=yes
  18699. fi
  18700. else
  18701. pkg_failed=untried
  18702. fi
  18703. if test -n "$ESD_LIBS"; then
  18704. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18705. elif test -n "$PKG_CONFIG"; then
  18706. if test -n "$PKG_CONFIG" && \
  18707. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18708. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18709. ac_status=$?
  18710. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18711. test $ac_status = 0; }; then
  18712. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18713. test "x$?" != "x0" && pkg_failed=yes
  18714. else
  18715. pkg_failed=yes
  18716. fi
  18717. else
  18718. pkg_failed=untried
  18719. fi
  18720. if test $pkg_failed = yes; then
  18721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18722. printf "%s\n" "no" >&6; }
  18723. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18724. _pkg_short_errors_supported=yes
  18725. else
  18726. _pkg_short_errors_supported=no
  18727. fi
  18728. if test $_pkg_short_errors_supported = yes; then
  18729. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18730. else
  18731. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18732. fi
  18733. # Put the nasty error message in config.log where it belongs
  18734. echo "$ESD_PKG_ERRORS" >&5
  18735. have_esd=no
  18736. elif test $pkg_failed = untried; then
  18737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18738. printf "%s\n" "no" >&6; }
  18739. have_esd=no
  18740. else
  18741. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18742. ESD_LIBS=$pkg_cv_ESD_LIBS
  18743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18744. printf "%s\n" "yes" >&6; }
  18745. have_esd=yes
  18746. fi
  18747. if test x$have_esd = xno; then
  18748. # Check whether --with-esd-prefix was given.
  18749. if test ${with_esd_prefix+y}
  18750. then :
  18751. withval=$with_esd_prefix; esd_prefix="$withval"
  18752. else $as_nop
  18753. esd_prefix=""
  18754. fi
  18755. # Check whether --with-esd-exec-prefix was given.
  18756. if test ${with_esd_exec_prefix+y}
  18757. then :
  18758. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18759. else $as_nop
  18760. esd_exec_prefix=""
  18761. fi
  18762. # Check whether --enable-esdtest was given.
  18763. if test ${enable_esdtest+y}
  18764. then :
  18765. enableval=$enable_esdtest;
  18766. else $as_nop
  18767. enable_esdtest=yes
  18768. fi
  18769. if test x$esd_exec_prefix != x ; then
  18770. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18771. if test x${ESD_CONFIG+set} != xset ; then
  18772. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18773. fi
  18774. fi
  18775. if test x$esd_prefix != x ; then
  18776. esd_args="$esd_args --prefix=$esd_prefix"
  18777. if test x${ESD_CONFIG+set} != xset ; then
  18778. ESD_CONFIG=$esd_prefix/bin/esd-config
  18779. fi
  18780. fi
  18781. # Extract the first word of "esd-config", so it can be a program name with args.
  18782. set dummy esd-config; ac_word=$2
  18783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18784. printf %s "checking for $ac_word... " >&6; }
  18785. if test ${ac_cv_path_ESD_CONFIG+y}
  18786. then :
  18787. printf %s "(cached) " >&6
  18788. else $as_nop
  18789. case $ESD_CONFIG in
  18790. [\\/]* | ?:[\\/]*)
  18791. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18792. ;;
  18793. *)
  18794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18795. for as_dir in $PATH
  18796. do
  18797. IFS=$as_save_IFS
  18798. case $as_dir in #(((
  18799. '') as_dir=./ ;;
  18800. */) ;;
  18801. *) as_dir=$as_dir/ ;;
  18802. esac
  18803. for ac_exec_ext in '' $ac_executable_extensions; do
  18804. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18805. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18806. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18807. break 2
  18808. fi
  18809. done
  18810. done
  18811. IFS=$as_save_IFS
  18812. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18813. ;;
  18814. esac
  18815. fi
  18816. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18817. if test -n "$ESD_CONFIG"; then
  18818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18819. printf "%s\n" "$ESD_CONFIG" >&6; }
  18820. else
  18821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18822. printf "%s\n" "no" >&6; }
  18823. fi
  18824. min_esd_version=0.2.8
  18825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18826. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18827. no_esd=""
  18828. if test "$ESD_CONFIG" = "no" ; then
  18829. no_esd=yes
  18830. else
  18831. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18832. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18833. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18834. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18835. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18836. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18837. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18838. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18839. if test "x$enable_esdtest" = "xyes" ; then
  18840. ac_ext=c
  18841. ac_cpp='$CPP $CPPFLAGS'
  18842. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18843. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18844. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18845. ac_save_CFLAGS="$CFLAGS"
  18846. ac_save_LIBS="$LIBS"
  18847. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18848. LIBS="$LIBS $ESD_LIBS"
  18849. rm -f conf.esdtest
  18850. if test "$cross_compiling" = yes
  18851. then :
  18852. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18853. else $as_nop
  18854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18855. /* end confdefs.h. */
  18856. #include <stdio.h>
  18857. #include <stdlib.h>
  18858. #include <esd.h>
  18859. int main (void)
  18860. {
  18861. int major, minor, micro;
  18862. FILE *fp = fopen("conf.esdtest", "w");
  18863. if (fp) fclose(fp);
  18864. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18865. printf("%s, bad version string\n", "$min_esd_version");
  18866. exit(1);
  18867. }
  18868. if (($esd_major_version > major) ||
  18869. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18870. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18871. {
  18872. return 0;
  18873. }
  18874. else
  18875. {
  18876. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18877. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18878. printf("*** best to upgrade to the required version.\n");
  18879. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18880. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18881. printf("*** config.cache before re-running configure\n");
  18882. return 1;
  18883. }
  18884. }
  18885. _ACEOF
  18886. if ac_fn_c_try_run "$LINENO"
  18887. then :
  18888. else $as_nop
  18889. no_esd=yes
  18890. fi
  18891. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18892. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18893. fi
  18894. CFLAGS="$ac_save_CFLAGS"
  18895. LIBS="$ac_save_LIBS"
  18896. ac_ext=c
  18897. ac_cpp='$CPP $CPPFLAGS'
  18898. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18899. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18900. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18901. fi
  18902. fi
  18903. if test "x$no_esd" = x ; then
  18904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18905. printf "%s\n" "yes" >&6; }
  18906. have_esd=yes
  18907. else
  18908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18909. printf "%s\n" "no" >&6; }
  18910. if test "$ESD_CONFIG" = "no" ; then
  18911. :
  18912. else
  18913. if test -f conf.esdtest ; then
  18914. :
  18915. else
  18916. echo "*** Could not run ESD test program, checking why..."
  18917. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18918. LIBS="$LIBS $ESD_LIBS"
  18919. ac_ext=c
  18920. ac_cpp='$CPP $CPPFLAGS'
  18921. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18922. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18923. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18925. /* end confdefs.h. */
  18926. #include <stdio.h>
  18927. #include <esd.h>
  18928. int
  18929. main (void)
  18930. {
  18931. return 0;
  18932. ;
  18933. return 0;
  18934. }
  18935. _ACEOF
  18936. if ac_fn_c_try_link "$LINENO"
  18937. then :
  18938. echo "*** The test program compiled, but did not run. This usually means"
  18939. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18940. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18941. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18942. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18943. echo "*** is required on your system"
  18944. echo "***"
  18945. echo "*** If you have an old version installed, it is best to remove it, although"
  18946. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18947. else $as_nop
  18948. echo "*** The test program failed to compile or link. See the file config.log for the"
  18949. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18950. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18951. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18952. fi
  18953. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18954. conftest$ac_exeext conftest.$ac_ext
  18955. CFLAGS="$ac_save_CFLAGS"
  18956. LIBS="$ac_save_LIBS"
  18957. ac_ext=c
  18958. ac_cpp='$CPP $CPPFLAGS'
  18959. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18960. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18961. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18962. fi
  18963. fi
  18964. ESD_CFLAGS=""
  18965. ESD_LIBS=""
  18966. have_esd=no
  18967. fi
  18968. rm -f conf.esdtest
  18969. fi
  18970. if test x$have_esd = xyes; then
  18971. # Check whether --enable-esd-shared was given.
  18972. if test ${enable_esd_shared+y}
  18973. then :
  18974. enableval=$enable_esd_shared;
  18975. else $as_nop
  18976. enable_esd_shared=yes
  18977. fi
  18978. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18979. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  18980. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  18981. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  18982. if test x$have_loadso != xyes && \
  18983. test x$enable_esd_shared = xyes; then
  18984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  18985. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  18986. fi
  18987. if test x$have_loadso = xyes && \
  18988. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  18989. echo "-- dynamic libesd -> $esd_lib"
  18990. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  18991. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  18992. else
  18993. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  18994. SUMMARY_audio="${SUMMARY_audio} esd"
  18995. fi
  18996. have_audio=yes
  18997. fi
  18998. fi
  18999. }
  19000. CheckPipewire()
  19001. {
  19002. # Check whether --enable-pipewire was given.
  19003. if test ${enable_pipewire+y}
  19004. then :
  19005. enableval=$enable_pipewire;
  19006. else $as_nop
  19007. enable_pipewire=yes
  19008. fi
  19009. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  19010. pkg_failed=no
  19011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  19012. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  19013. if test -n "$PIPEWIRE_CFLAGS"; then
  19014. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  19015. elif test -n "$PKG_CONFIG"; then
  19016. if test -n "$PKG_CONFIG" && \
  19017. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19018. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19019. ac_status=$?
  19020. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19021. test $ac_status = 0; }; then
  19022. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19023. test "x$?" != "x0" && pkg_failed=yes
  19024. else
  19025. pkg_failed=yes
  19026. fi
  19027. else
  19028. pkg_failed=untried
  19029. fi
  19030. if test -n "$PIPEWIRE_LIBS"; then
  19031. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  19032. elif test -n "$PKG_CONFIG"; then
  19033. if test -n "$PKG_CONFIG" && \
  19034. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19035. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19036. ac_status=$?
  19037. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19038. test $ac_status = 0; }; then
  19039. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19040. test "x$?" != "x0" && pkg_failed=yes
  19041. else
  19042. pkg_failed=yes
  19043. fi
  19044. else
  19045. pkg_failed=untried
  19046. fi
  19047. if test $pkg_failed = yes; then
  19048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19049. printf "%s\n" "no" >&6; }
  19050. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19051. _pkg_short_errors_supported=yes
  19052. else
  19053. _pkg_short_errors_supported=no
  19054. fi
  19055. if test $_pkg_short_errors_supported = yes; then
  19056. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19057. else
  19058. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19059. fi
  19060. # Put the nasty error message in config.log where it belongs
  19061. echo "$PIPEWIRE_PKG_ERRORS" >&5
  19062. audio_pipewire=no
  19063. elif test $pkg_failed = untried; then
  19064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19065. printf "%s\n" "no" >&6; }
  19066. audio_pipewire=no
  19067. else
  19068. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19069. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19071. printf "%s\n" "yes" >&6; }
  19072. audio_pipewire=yes
  19073. fi
  19074. if test x$audio_pipewire = xyes; then
  19075. # Check whether --enable-pipewire-shared was given.
  19076. if test ${enable_pipewire_shared+y}
  19077. then :
  19078. enableval=$enable_pipewire_shared;
  19079. else $as_nop
  19080. enable_pipewire_shared=yes
  19081. fi
  19082. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19083. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19084. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19085. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19086. if test x$have_loadso != xyes && \
  19087. test x$enable_pipewire_shared = xyes; then
  19088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19089. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19090. fi
  19091. if test x$have_loadso = xyes && \
  19092. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19093. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19094. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19095. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19096. else
  19097. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19098. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19099. fi
  19100. have_audio=yes
  19101. fi
  19102. fi
  19103. }
  19104. CheckPulseAudio()
  19105. {
  19106. # Check whether --enable-pulseaudio was given.
  19107. if test ${enable_pulseaudio+y}
  19108. then :
  19109. enableval=$enable_pulseaudio;
  19110. else $as_nop
  19111. enable_pulseaudio=yes
  19112. fi
  19113. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19114. pkg_failed=no
  19115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  19116. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  19117. if test -n "$PULSEAUDIO_CFLAGS"; then
  19118. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19119. elif test -n "$PKG_CONFIG"; then
  19120. if test -n "$PKG_CONFIG" && \
  19121. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19122. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19123. ac_status=$?
  19124. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19125. test $ac_status = 0; }; then
  19126. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  19127. test "x$?" != "x0" && pkg_failed=yes
  19128. else
  19129. pkg_failed=yes
  19130. fi
  19131. else
  19132. pkg_failed=untried
  19133. fi
  19134. if test -n "$PULSEAUDIO_LIBS"; then
  19135. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19136. elif test -n "$PKG_CONFIG"; then
  19137. if test -n "$PKG_CONFIG" && \
  19138. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19139. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19140. ac_status=$?
  19141. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19142. test $ac_status = 0; }; then
  19143. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  19144. test "x$?" != "x0" && pkg_failed=yes
  19145. else
  19146. pkg_failed=yes
  19147. fi
  19148. else
  19149. pkg_failed=untried
  19150. fi
  19151. if test $pkg_failed = yes; then
  19152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19153. printf "%s\n" "no" >&6; }
  19154. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19155. _pkg_short_errors_supported=yes
  19156. else
  19157. _pkg_short_errors_supported=no
  19158. fi
  19159. if test $_pkg_short_errors_supported = yes; then
  19160. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19161. else
  19162. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19163. fi
  19164. # Put the nasty error message in config.log where it belongs
  19165. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19166. audio_pulseaudio=no
  19167. elif test $pkg_failed = untried; then
  19168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19169. printf "%s\n" "no" >&6; }
  19170. audio_pulseaudio=no
  19171. else
  19172. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19173. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19175. printf "%s\n" "yes" >&6; }
  19176. audio_pulseaudio=yes
  19177. fi
  19178. if test x$audio_pulseaudio = xyes; then
  19179. # Check whether --enable-pulseaudio-shared was given.
  19180. if test ${enable_pulseaudio_shared+y}
  19181. then :
  19182. enableval=$enable_pulseaudio_shared;
  19183. else $as_nop
  19184. enable_pulseaudio_shared=yes
  19185. fi
  19186. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19187. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19188. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19189. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19190. if test x$have_loadso != xyes && \
  19191. test x$enable_pulseaudio_shared = xyes; then
  19192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19193. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19194. fi
  19195. if test x$have_loadso = xyes && \
  19196. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19197. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  19198. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19199. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19200. case "$host" in
  19201. # On Solaris, pulseaudio must be linked deferred explicitly
  19202. # to prevent undefined symbol failures.
  19203. *-*-solaris*)
  19204. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19205. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19206. esac
  19207. else
  19208. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19209. SUMMARY_audio="${SUMMARY_audio} pulse"
  19210. fi
  19211. have_audio=yes
  19212. fi
  19213. fi
  19214. }
  19215. CheckARTSC()
  19216. {
  19217. # Check whether --enable-arts was given.
  19218. if test ${enable_arts+y}
  19219. then :
  19220. enableval=$enable_arts;
  19221. else $as_nop
  19222. enable_arts=yes
  19223. fi
  19224. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19225. # Extract the first word of "artsc-config", so it can be a program name with args.
  19226. set dummy artsc-config; ac_word=$2
  19227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19228. printf %s "checking for $ac_word... " >&6; }
  19229. if test ${ac_cv_path_ARTSCONFIG+y}
  19230. then :
  19231. printf %s "(cached) " >&6
  19232. else $as_nop
  19233. case $ARTSCONFIG in
  19234. [\\/]* | ?:[\\/]*)
  19235. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19236. ;;
  19237. *)
  19238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19239. for as_dir in $PATH
  19240. do
  19241. IFS=$as_save_IFS
  19242. case $as_dir in #(((
  19243. '') as_dir=./ ;;
  19244. */) ;;
  19245. *) as_dir=$as_dir/ ;;
  19246. esac
  19247. for ac_exec_ext in '' $ac_executable_extensions; do
  19248. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19249. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19250. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19251. break 2
  19252. fi
  19253. done
  19254. done
  19255. IFS=$as_save_IFS
  19256. ;;
  19257. esac
  19258. fi
  19259. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19260. if test -n "$ARTSCONFIG"; then
  19261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19262. printf "%s\n" "$ARTSCONFIG" >&6; }
  19263. else
  19264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19265. printf "%s\n" "no" >&6; }
  19266. fi
  19267. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19268. : # arts isn't installed
  19269. else
  19270. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19271. ARTS_LIBS=`$ARTSCONFIG --libs`
  19272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19273. printf %s "checking for aRts development environment... " >&6; }
  19274. audio_arts=no
  19275. save_CFLAGS="$CFLAGS"
  19276. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19278. /* end confdefs.h. */
  19279. #include <artsc.h>
  19280. int
  19281. main (void)
  19282. {
  19283. arts_stream_t stream;
  19284. ;
  19285. return 0;
  19286. }
  19287. _ACEOF
  19288. if ac_fn_c_try_compile "$LINENO"
  19289. then :
  19290. audio_arts=yes
  19291. fi
  19292. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19293. CFLAGS="$save_CFLAGS"
  19294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19295. printf "%s\n" "$audio_arts" >&6; }
  19296. if test x$audio_arts = xyes; then
  19297. # Check whether --enable-arts-shared was given.
  19298. if test ${enable_arts_shared+y}
  19299. then :
  19300. enableval=$enable_arts_shared;
  19301. else $as_nop
  19302. enable_arts_shared=yes
  19303. fi
  19304. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19305. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19306. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19307. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19308. if test x$have_loadso != xyes && \
  19309. test x$enable_arts_shared = xyes; then
  19310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19311. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19312. fi
  19313. if test x$have_loadso = xyes && \
  19314. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19315. echo "-- dynamic libartsc -> $arts_lib"
  19316. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19317. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19318. else
  19319. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19320. SUMMARY_audio="${SUMMARY_audio} arts"
  19321. fi
  19322. have_audio=yes
  19323. fi
  19324. fi
  19325. fi
  19326. }
  19327. CheckNAS()
  19328. {
  19329. # Check whether --enable-nas was given.
  19330. if test ${enable_nas+y}
  19331. then :
  19332. enableval=$enable_nas;
  19333. else $as_nop
  19334. enable_nas=yes
  19335. fi
  19336. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19337. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19338. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19339. then :
  19340. have_nas_hdr=yes
  19341. fi
  19342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19343. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19344. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19345. then :
  19346. printf %s "(cached) " >&6
  19347. else $as_nop
  19348. ac_check_lib_save_LIBS=$LIBS
  19349. LIBS="-laudio $LIBS"
  19350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19351. /* end confdefs.h. */
  19352. /* Override any GCC internal prototype to avoid an error.
  19353. Use char because int might match the return type of a GCC
  19354. builtin and then its argument prototype would still apply. */
  19355. char AuOpenServer ();
  19356. int
  19357. main (void)
  19358. {
  19359. return AuOpenServer ();
  19360. ;
  19361. return 0;
  19362. }
  19363. _ACEOF
  19364. if ac_fn_c_try_link "$LINENO"
  19365. then :
  19366. ac_cv_lib_audio_AuOpenServer=yes
  19367. else $as_nop
  19368. ac_cv_lib_audio_AuOpenServer=no
  19369. fi
  19370. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19371. conftest$ac_exeext conftest.$ac_ext
  19372. LIBS=$ac_check_lib_save_LIBS
  19373. fi
  19374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19375. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19376. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19377. then :
  19378. have_nas_lib=yes
  19379. fi
  19380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19381. printf %s "checking for NAS audio support... " >&6; }
  19382. have_nas=no
  19383. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19384. have_nas=yes
  19385. NAS_LIBS="-laudio"
  19386. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19387. have_nas=yes
  19388. NAS_CFLAGS="-I/usr/X11R6/include/"
  19389. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19390. fi
  19391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19392. printf "%s\n" "$have_nas" >&6; }
  19393. if test x$have_nas = xyes; then
  19394. # Check whether --enable-nas-shared was given.
  19395. if test ${enable_nas_shared+y}
  19396. then :
  19397. enableval=$enable_nas_shared;
  19398. else $as_nop
  19399. enable_nas_shared=yes
  19400. fi
  19401. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19402. if test x$have_loadso != xyes && \
  19403. test x$enable_nas_shared = xyes; then
  19404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19405. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19406. fi
  19407. if test x$have_loadso = xyes && \
  19408. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19409. echo "-- dynamic libaudio -> $nas_lib"
  19410. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19411. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19412. else
  19413. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19414. SUMMARY_audio="${SUMMARY_audio} nas"
  19415. fi
  19416. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19417. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19418. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19419. have_audio=yes
  19420. fi
  19421. fi
  19422. }
  19423. CheckSNDIO()
  19424. {
  19425. # Check whether --enable-sndio was given.
  19426. if test ${enable_sndio+y}
  19427. then :
  19428. enableval=$enable_sndio;
  19429. else $as_nop
  19430. enable_sndio=yes
  19431. fi
  19432. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19433. pkg_failed=no
  19434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  19435. printf %s "checking for sndio... " >&6; }
  19436. if test -n "$SNDIO_CFLAGS"; then
  19437. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  19438. elif test -n "$PKG_CONFIG"; then
  19439. if test -n "$PKG_CONFIG" && \
  19440. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19441. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19442. ac_status=$?
  19443. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19444. test $ac_status = 0; }; then
  19445. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  19446. test "x$?" != "x0" && pkg_failed=yes
  19447. else
  19448. pkg_failed=yes
  19449. fi
  19450. else
  19451. pkg_failed=untried
  19452. fi
  19453. if test -n "$SNDIO_LIBS"; then
  19454. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  19455. elif test -n "$PKG_CONFIG"; then
  19456. if test -n "$PKG_CONFIG" && \
  19457. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19458. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19459. ac_status=$?
  19460. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19461. test $ac_status = 0; }; then
  19462. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  19463. test "x$?" != "x0" && pkg_failed=yes
  19464. else
  19465. pkg_failed=yes
  19466. fi
  19467. else
  19468. pkg_failed=untried
  19469. fi
  19470. if test $pkg_failed = yes; then
  19471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19472. printf "%s\n" "no" >&6; }
  19473. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19474. _pkg_short_errors_supported=yes
  19475. else
  19476. _pkg_short_errors_supported=no
  19477. fi
  19478. if test $_pkg_short_errors_supported = yes; then
  19479. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  19480. else
  19481. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  19482. fi
  19483. # Put the nasty error message in config.log where it belongs
  19484. echo "$SNDIO_PKG_ERRORS" >&5
  19485. audio_sndio=no
  19486. elif test $pkg_failed = untried; then
  19487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19488. printf "%s\n" "no" >&6; }
  19489. audio_sndio=no
  19490. else
  19491. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  19492. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  19493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19494. printf "%s\n" "yes" >&6; }
  19495. audio_sndio=yes
  19496. fi
  19497. if test x$audio_sndio = xyes; then
  19498. # Check whether --enable-sndio-shared was given.
  19499. if test ${enable_sndio_shared+y}
  19500. then :
  19501. enableval=$enable_sndio_shared;
  19502. else $as_nop
  19503. enable_sndio_shared=yes
  19504. fi
  19505. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19506. if test x$have_loadso != xyes && \
  19507. test x$enable_sndio_shared = xyes; then
  19508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19509. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19510. fi
  19511. if test x$have_loadso = xyes && \
  19512. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19513. echo "-- dynamic libsndio -> $sndio_lib"
  19514. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19515. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19516. else
  19517. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19518. SUMMARY_audio="${SUMMARY_audio} sndio"
  19519. fi
  19520. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19521. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19522. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19523. have_audio=yes
  19524. fi
  19525. fi
  19526. }
  19527. CheckFusionSound()
  19528. {
  19529. # Check whether --enable-fusionsound was given.
  19530. if test ${enable_fusionsound+y}
  19531. then :
  19532. enableval=$enable_fusionsound;
  19533. else $as_nop
  19534. enable_fusionsound=no
  19535. fi
  19536. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19537. pkg_failed=no
  19538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19539. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19540. if test -n "$FUSIONSOUND_CFLAGS"; then
  19541. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19542. elif test -n "$PKG_CONFIG"; then
  19543. if test -n "$PKG_CONFIG" && \
  19544. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19545. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19546. ac_status=$?
  19547. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19548. test $ac_status = 0; }; then
  19549. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19550. test "x$?" != "x0" && pkg_failed=yes
  19551. else
  19552. pkg_failed=yes
  19553. fi
  19554. else
  19555. pkg_failed=untried
  19556. fi
  19557. if test -n "$FUSIONSOUND_LIBS"; then
  19558. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19559. elif test -n "$PKG_CONFIG"; then
  19560. if test -n "$PKG_CONFIG" && \
  19561. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19562. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19563. ac_status=$?
  19564. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19565. test $ac_status = 0; }; then
  19566. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19567. test "x$?" != "x0" && pkg_failed=yes
  19568. else
  19569. pkg_failed=yes
  19570. fi
  19571. else
  19572. pkg_failed=untried
  19573. fi
  19574. if test $pkg_failed = yes; then
  19575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19576. printf "%s\n" "no" >&6; }
  19577. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19578. _pkg_short_errors_supported=yes
  19579. else
  19580. _pkg_short_errors_supported=no
  19581. fi
  19582. if test $_pkg_short_errors_supported = yes; then
  19583. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19584. else
  19585. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19586. fi
  19587. # Put the nasty error message in config.log where it belongs
  19588. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19589. fusionsound=no
  19590. elif test $pkg_failed = untried; then
  19591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19592. printf "%s\n" "no" >&6; }
  19593. fusionsound=no
  19594. else
  19595. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19596. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19598. printf "%s\n" "yes" >&6; }
  19599. fusionsound=yes
  19600. fi
  19601. if test x$fusionsound = xyes; then
  19602. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19603. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19604. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19605. # Check whether --enable-fusionsound-shared was given.
  19606. if test ${enable_fusionsound_shared+y}
  19607. then :
  19608. enableval=$enable_fusionsound_shared;
  19609. else $as_nop
  19610. enable_fusionsound_shared=yes
  19611. fi
  19612. fusionsound_shared=no
  19613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19614. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19615. if test x$have_loadso != xyes && \
  19616. test x$enable_fusionsound_shared = xyes; then
  19617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19618. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19619. fi
  19620. if test x$have_loadso = xyes && \
  19621. test x$enable_fusionsound_shared = xyes; then
  19622. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19623. fusionsound_shared=yes
  19624. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19625. else
  19626. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19627. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19628. fi
  19629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19630. printf "%s\n" "$fusionsound_shared" >&6; }
  19631. have_audio=yes
  19632. fi
  19633. fi
  19634. }
  19635. CheckDiskAudio()
  19636. {
  19637. # Check whether --enable-diskaudio was given.
  19638. if test ${enable_diskaudio+y}
  19639. then :
  19640. enableval=$enable_diskaudio;
  19641. else $as_nop
  19642. enable_diskaudio=yes
  19643. fi
  19644. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19645. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19646. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19647. SUMMARY_audio="${SUMMARY_audio} disk"
  19648. have_audio=yes
  19649. fi
  19650. }
  19651. CheckDummyAudio()
  19652. {
  19653. # Check whether --enable-dummyaudio was given.
  19654. if test ${enable_dummyaudio+y}
  19655. then :
  19656. enableval=$enable_dummyaudio;
  19657. else $as_nop
  19658. enable_dummyaudio=yes
  19659. fi
  19660. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19661. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19662. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19663. SUMMARY_audio="${SUMMARY_audio} dummy"
  19664. have_audio=yes
  19665. fi
  19666. }
  19667. CheckLibSampleRate()
  19668. {
  19669. # Check whether --enable-libsamplerate was given.
  19670. if test ${enable_libsamplerate+y}
  19671. then :
  19672. enableval=$enable_libsamplerate;
  19673. else $as_nop
  19674. enable_libsamplerate=yes
  19675. fi
  19676. if test x$enable_libsamplerate = xyes; then
  19677. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19678. if test "x$ac_cv_header_samplerate_h" = xyes
  19679. then :
  19680. have_samplerate_h_hdr=yes
  19681. else $as_nop
  19682. have_samplerate_h_hdr=no
  19683. fi
  19684. if test x$have_samplerate_h_hdr = xyes; then
  19685. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19686. # Check whether --enable-libsamplerate-shared was given.
  19687. if test ${enable_libsamplerate_shared+y}
  19688. then :
  19689. enableval=$enable_libsamplerate_shared;
  19690. else $as_nop
  19691. enable_libsamplerate_shared=yes
  19692. fi
  19693. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19694. if test x$have_loadso != xyes && \
  19695. test x$enable_libsamplerate_shared = xyes; then
  19696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19697. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19698. fi
  19699. if test x$have_loadso = xyes && \
  19700. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19701. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19702. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19703. else
  19704. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19705. fi
  19706. fi
  19707. fi
  19708. }
  19709. CheckARM()
  19710. {
  19711. # Check whether --enable-arm-simd was given.
  19712. if test ${enable_arm_simd+y}
  19713. then :
  19714. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19715. else $as_nop
  19716. enable_arm_simd=no
  19717. fi
  19718. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19719. save_CFLAGS="$CFLAGS"
  19720. have_arm_simd=no
  19721. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19723. printf %s "checking for ARM SIMD... " >&6; }
  19724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19725. /* end confdefs.h. */
  19726. .text
  19727. .arch armv6
  19728. .object_arch armv4
  19729. .arm
  19730. .altmacro
  19731. #ifndef __ARM_EABI__
  19732. #error EABI is required (to be sure that calling conventions are compatible)
  19733. #endif
  19734. pld [r0]
  19735. uqadd8 r0, r0, r0
  19736. _ACEOF
  19737. if ac_fn_c_try_compile "$LINENO"
  19738. then :
  19739. have_arm_simd=yes
  19740. fi
  19741. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19743. printf "%s\n" "$have_arm_simd" >&6; }
  19744. CFLAGS="$save_CFLAGS"
  19745. if test x$have_arm_simd = xyes; then
  19746. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19747. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19748. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19749. fi
  19750. fi
  19751. }
  19752. CheckNEON()
  19753. {
  19754. # Check whether --enable-arm-neon was given.
  19755. if test ${enable_arm_neon+y}
  19756. then :
  19757. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19758. else $as_nop
  19759. enable_arm_neon=no
  19760. fi
  19761. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19762. save_CFLAGS="$CFLAGS"
  19763. have_arm_neon=no
  19764. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19766. printf %s "checking for ARM NEON... " >&6; }
  19767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19768. /* end confdefs.h. */
  19769. .text
  19770. .fpu neon
  19771. .arch armv7a
  19772. .object_arch armv4
  19773. .eabi_attribute 10, 0
  19774. .arm
  19775. .altmacro
  19776. #ifndef __ARM_EABI__
  19777. #error EABI is required (to be sure that calling conventions are compatible)
  19778. #endif
  19779. pld [r0]
  19780. vmovn.u16 d0, q0
  19781. _ACEOF
  19782. if ac_fn_c_try_compile "$LINENO"
  19783. then :
  19784. have_arm_neon=yes
  19785. fi
  19786. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19788. printf "%s\n" "$have_arm_neon" >&6; }
  19789. CFLAGS="$save_CFLAGS"
  19790. if test x$have_arm_neon = xyes; then
  19791. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19792. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19793. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19794. fi
  19795. fi
  19796. }
  19797. CheckObjectiveCARC()
  19798. {
  19799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19800. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19801. have_clang_objc_arc=no
  19802. save_CFLAGS="$CFLAGS"
  19803. CFLAGS="$save_CFLAGS -fobjc-arc"
  19804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19805. /* end confdefs.h. */
  19806. int x = 0;
  19807. int
  19808. main (void)
  19809. {
  19810. ;
  19811. return 0;
  19812. }
  19813. _ACEOF
  19814. if ac_fn_c_try_compile "$LINENO"
  19815. then :
  19816. have_clang_objc_arc=yes
  19817. fi
  19818. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19820. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19821. CFLAGS="$save_CFLAGS"
  19822. if test x$have_clang_objc_arc = xyes; then
  19823. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19824. fi
  19825. }
  19826. CheckGDwarf4()
  19827. {
  19828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19829. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19830. have_gcc_gdwarf4=no
  19831. save_CFLAGS="$CFLAGS"
  19832. CFLAGS="$save_CFLAGS -gdwarf-4"
  19833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19834. /* end confdefs.h. */
  19835. int x = 0;
  19836. int
  19837. main (void)
  19838. {
  19839. ;
  19840. return 0;
  19841. }
  19842. _ACEOF
  19843. if ac_fn_c_try_compile "$LINENO"
  19844. then :
  19845. have_gcc_gdwarf4=yes
  19846. fi
  19847. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19849. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19850. CFLAGS="$save_CFLAGS"
  19851. if test x$have_gcc_gdwarf4 = xyes; then
  19852. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19853. fi
  19854. }
  19855. CheckVisibilityHidden()
  19856. {
  19857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19858. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19859. have_gcc_fvisibility=no
  19860. visibility_CFLAGS="-fvisibility=hidden"
  19861. save_CFLAGS="$CFLAGS"
  19862. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19864. /* end confdefs.h. */
  19865. #if !defined(__GNUC__) || __GNUC__ < 4
  19866. #error SDL only uses visibility attributes in GCC 4 or newer
  19867. #endif
  19868. int
  19869. main (void)
  19870. {
  19871. ;
  19872. return 0;
  19873. }
  19874. _ACEOF
  19875. if ac_fn_c_try_compile "$LINENO"
  19876. then :
  19877. have_gcc_fvisibility=yes
  19878. fi
  19879. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19881. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19882. CFLAGS="$save_CFLAGS"
  19883. if test x$have_gcc_fvisibility = xyes; then
  19884. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19885. fi
  19886. }
  19887. CheckNoStrictAliasing()
  19888. {
  19889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19890. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19891. have_gcc_no_strict_aliasing=no
  19892. save_CFLAGS="$CFLAGS"
  19893. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19895. /* end confdefs.h. */
  19896. int x = 0;
  19897. int
  19898. main (void)
  19899. {
  19900. ;
  19901. return 0;
  19902. }
  19903. _ACEOF
  19904. if ac_fn_c_try_compile "$LINENO"
  19905. then :
  19906. have_gcc_no_strict_aliasing=yes
  19907. fi
  19908. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19910. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19911. CFLAGS="$save_CFLAGS"
  19912. if test x$have_gcc_no_strict_aliasing = xyes; then
  19913. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19914. fi
  19915. }
  19916. CheckStackBoundary()
  19917. {
  19918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19919. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19920. have_gcc_preferred_stack_boundary=no
  19921. save_CFLAGS="$CFLAGS"
  19922. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  19923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19924. /* end confdefs.h. */
  19925. int x = 0;
  19926. int
  19927. main (void)
  19928. {
  19929. ;
  19930. return 0;
  19931. }
  19932. _ACEOF
  19933. if ac_fn_c_try_compile "$LINENO"
  19934. then :
  19935. have_gcc_preferred_stack_boundary=yes
  19936. fi
  19937. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  19939. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19940. CFLAGS="$save_CFLAGS"
  19941. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19942. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19943. fi
  19944. }
  19945. CheckWerror()
  19946. {
  19947. # Check whether --enable-werror was given.
  19948. if test ${enable_werror+y}
  19949. then :
  19950. enableval=$enable_werror; enable_werror=$enableval
  19951. else $as_nop
  19952. enable_werror=no
  19953. fi
  19954. if test x$enable_werror = xyes; then
  19955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  19956. printf %s "checking for GCC -Werror option... " >&6; }
  19957. have_gcc_werror=no
  19958. save_CFLAGS="$CFLAGS"
  19959. CFLAGS="$save_CFLAGS -Werror"
  19960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19961. /* end confdefs.h. */
  19962. int x = 0;
  19963. int
  19964. main (void)
  19965. {
  19966. ;
  19967. return 0;
  19968. }
  19969. _ACEOF
  19970. if ac_fn_c_try_compile "$LINENO"
  19971. then :
  19972. have_gcc_werror=yes
  19973. fi
  19974. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19976. printf "%s\n" "$have_gcc_werror" >&6; }
  19977. CFLAGS="$save_CFLAGS"
  19978. if test x$have_gcc_werror = xyes; then
  19979. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  19980. fi
  19981. fi
  19982. }
  19983. CheckNoErrorDeprecatedDeclarationsWerror()
  19984. {
  19985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  19986. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  19987. have_gcc_no_werror_deprecated_declarations=no
  19988. save_CFLAGS="$CFLAGS"
  19989. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  19990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19991. /* end confdefs.h. */
  19992. int x = 0;
  19993. int
  19994. main (void)
  19995. {
  19996. ;
  19997. return 0;
  19998. }
  19999. _ACEOF
  20000. if ac_fn_c_try_compile "$LINENO"
  20001. then :
  20002. have_gcc_no_werror_deprecated_declarations=yes
  20003. fi
  20004. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20006. printf "%s\n" "$have_gcc_werror" >&6; }
  20007. CFLAGS="$save_CFLAGS"
  20008. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  20009. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  20010. fi
  20011. }
  20012. CheckDeclarationAfterStatement()
  20013. {
  20014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  20015. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  20016. have_gcc_declaration_after_statement=no
  20017. save_CFLAGS="$CFLAGS"
  20018. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20020. /* end confdefs.h. */
  20021. int x = 0;
  20022. int
  20023. main (void)
  20024. {
  20025. ;
  20026. return 0;
  20027. }
  20028. _ACEOF
  20029. if ac_fn_c_try_compile "$LINENO"
  20030. then :
  20031. have_gcc_declaration_after_statement=yes
  20032. fi
  20033. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  20035. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  20036. CFLAGS="$save_CFLAGS"
  20037. if test x$have_gcc_declaration_after_statement = xyes; then
  20038. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20039. fi
  20040. }
  20041. CheckWarnAll()
  20042. {
  20043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  20044. printf %s "checking for GCC -Wall option... " >&6; }
  20045. have_gcc_Wall=no
  20046. save_CFLAGS="$CFLAGS"
  20047. CFLAGS="$save_CFLAGS -Wall"
  20048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20049. /* end confdefs.h. */
  20050. int x = 0;
  20051. int
  20052. main (void)
  20053. {
  20054. ;
  20055. return 0;
  20056. }
  20057. _ACEOF
  20058. if ac_fn_c_try_compile "$LINENO"
  20059. then :
  20060. have_gcc_Wall=yes
  20061. fi
  20062. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  20064. printf "%s\n" "$have_gcc_Wall" >&6; }
  20065. CFLAGS="$save_CFLAGS"
  20066. if test x$have_gcc_Wall = xyes; then
  20067. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  20068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  20069. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  20070. need_gcc_Wno_multichar=no
  20071. case "$host" in
  20072. *-*-haiku*)
  20073. need_gcc_Wno_multichar=yes
  20074. ;;
  20075. esac
  20076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  20077. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  20078. if test x$need_gcc_Wno_multichar = xyes; then
  20079. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  20080. fi
  20081. fi
  20082. }
  20083. CheckWayland()
  20084. {
  20085. # Check whether --enable-video-wayland was given.
  20086. if test ${enable_video_wayland+y}
  20087. then :
  20088. enableval=$enable_video_wayland;
  20089. else $as_nop
  20090. enable_video_wayland=yes
  20091. fi
  20092. # Check whether --enable-video-wayland-qt-touch was given.
  20093. if test ${enable_video_wayland_qt_touch+y}
  20094. then :
  20095. enableval=$enable_video_wayland_qt_touch;
  20096. else $as_nop
  20097. enable_video_wayland_qt_touch=yes
  20098. fi
  20099. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  20100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  20101. printf %s "checking for Wayland support... " >&6; }
  20102. video_wayland=no
  20103. if test x$video_opengl_egl = xyes && \
  20104. test x$video_opengles_v2 = xyes; then
  20105. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  20106. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  20107. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  20108. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  20109. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  20110. then :
  20111. WAYLAND_SCANNER_CODE_MODE=private-code
  20112. else $as_nop
  20113. WAYLAND_SCANNER_CODE_MODE=code
  20114. fi
  20115. video_wayland=yes
  20116. fi
  20117. fi
  20118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  20119. printf "%s\n" "$video_wayland" >&6; }
  20120. if test x$video_wayland = xyes; then
  20121. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  20122. if test x$enable_video_wayland_qt_touch = xyes; then
  20123. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  20124. fi
  20125. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  20126. SOURCES="$SOURCES $WAYLAND_SOURCES"
  20127. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  20128. # Check whether --enable-wayland-shared was given.
  20129. if test ${enable_wayland_shared+y}
  20130. then :
  20131. enableval=$enable_wayland_shared;
  20132. else $as_nop
  20133. enable_wayland_shared=maybe
  20134. fi
  20135. case "$host" in
  20136. *)
  20137. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20138. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20139. if test x$wayland_egl_lib = x; then
  20140. # This works in Ubuntu 13.10, maybe others
  20141. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20142. fi
  20143. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20144. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20145. ;;
  20146. esac
  20147. if test x$enable_wayland_shared = xmaybe; then
  20148. enable_wayland_shared=yes
  20149. fi
  20150. if test x$have_loadso != xyes && \
  20151. test x$enable_wayland_shared = xyes; then
  20152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20153. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20154. enable_wayland_shared=no
  20155. fi
  20156. if test x$have_loadso = xyes && \
  20157. test x$enable_wayland_shared = xyes && \
  20158. test x$wayland_client_lib != x && \
  20159. test x$wayland_egl_lib != x && \
  20160. test x$wayland_cursor_lib != x && \
  20161. test x$xkbcommon_lib != x; then
  20162. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20163. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20164. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20165. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20166. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20167. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20168. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20169. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20170. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20171. else
  20172. enable_wayland_shared=no
  20173. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20174. SUMMARY_video="${SUMMARY_video} wayland"
  20175. fi
  20176. have_video=yes
  20177. # Check whether --enable-libdecor was given.
  20178. if test ${enable_libdecor+y}
  20179. then :
  20180. enableval=$enable_libdecor;
  20181. else $as_nop
  20182. enable_libdecor=yes
  20183. fi
  20184. if test x$enable_libdecor = xyes; then
  20185. pkg_failed=no
  20186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20187. printf %s "checking for libdecor-0... " >&6; }
  20188. if test -n "$DECOR_CFLAGS"; then
  20189. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20190. elif test -n "$PKG_CONFIG"; then
  20191. if test -n "$PKG_CONFIG" && \
  20192. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20193. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20194. ac_status=$?
  20195. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20196. test $ac_status = 0; }; then
  20197. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20198. test "x$?" != "x0" && pkg_failed=yes
  20199. else
  20200. pkg_failed=yes
  20201. fi
  20202. else
  20203. pkg_failed=untried
  20204. fi
  20205. if test -n "$DECOR_LIBS"; then
  20206. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20207. elif test -n "$PKG_CONFIG"; then
  20208. if test -n "$PKG_CONFIG" && \
  20209. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20210. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20211. ac_status=$?
  20212. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20213. test $ac_status = 0; }; then
  20214. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20215. test "x$?" != "x0" && pkg_failed=yes
  20216. else
  20217. pkg_failed=yes
  20218. fi
  20219. else
  20220. pkg_failed=untried
  20221. fi
  20222. if test $pkg_failed = yes; then
  20223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20224. printf "%s\n" "no" >&6; }
  20225. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20226. _pkg_short_errors_supported=yes
  20227. else
  20228. _pkg_short_errors_supported=no
  20229. fi
  20230. if test $_pkg_short_errors_supported = yes; then
  20231. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20232. else
  20233. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20234. fi
  20235. # Put the nasty error message in config.log where it belongs
  20236. echo "$DECOR_PKG_ERRORS" >&5
  20237. video_libdecor=no
  20238. elif test $pkg_failed = untried; then
  20239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20240. printf "%s\n" "no" >&6; }
  20241. video_libdecor=no
  20242. else
  20243. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20244. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20246. printf "%s\n" "yes" >&6; }
  20247. video_libdecor=yes
  20248. fi
  20249. if test x$video_libdecor = xyes; then
  20250. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20251. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20252. # Check whether --enable-libdecor-shared was given.
  20253. if test ${enable_libdecor_shared+y}
  20254. then :
  20255. enableval=$enable_libdecor_shared;
  20256. else $as_nop
  20257. enable_libdecor_shared=yes
  20258. fi
  20259. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20260. if test x$enable_wayland_shared != xyes; then
  20261. enable_libdecor_shared=no
  20262. fi
  20263. if test x$have_loadso != xyes && \
  20264. test x$enable_libdecor_shared = xyes; then
  20265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20266. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20267. fi
  20268. if test x$have_loadso = xyes && \
  20269. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20270. echo "-- dynamic libdecor -> $decor_lib"
  20271. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20272. else
  20273. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20274. fi
  20275. fi
  20276. fi
  20277. fi
  20278. fi
  20279. }
  20280. CheckNativeClient()
  20281. {
  20282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20283. /* end confdefs.h. */
  20284. #if !defined(__native_client__)
  20285. #error "NO NACL"
  20286. #endif
  20287. int
  20288. main (void)
  20289. {
  20290. ;
  20291. return 0;
  20292. }
  20293. _ACEOF
  20294. if ac_fn_c_try_compile "$LINENO"
  20295. then :
  20296. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20297. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20298. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20299. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20300. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20301. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20302. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20303. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20304. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20305. SUMMARY_audio="${SUMMARY_audio} nacl"
  20306. have_audio=yes
  20307. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20308. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20309. have_video=yes
  20310. fi
  20311. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20312. }
  20313. CheckRPI()
  20314. {
  20315. # Check whether --enable-video-rpi was given.
  20316. if test ${enable_video_rpi+y}
  20317. then :
  20318. enableval=$enable_video_rpi;
  20319. else $as_nop
  20320. enable_video_rpi=yes
  20321. fi
  20322. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20323. pkg_failed=no
  20324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20325. printf %s "checking for bcm_host brcmegl... " >&6; }
  20326. if test -n "$RPI_CFLAGS"; then
  20327. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20328. elif test -n "$PKG_CONFIG"; then
  20329. if test -n "$PKG_CONFIG" && \
  20330. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20331. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20332. ac_status=$?
  20333. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20334. test $ac_status = 0; }; then
  20335. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20336. test "x$?" != "x0" && pkg_failed=yes
  20337. else
  20338. pkg_failed=yes
  20339. fi
  20340. else
  20341. pkg_failed=untried
  20342. fi
  20343. if test -n "$RPI_LIBS"; then
  20344. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20345. elif test -n "$PKG_CONFIG"; then
  20346. if test -n "$PKG_CONFIG" && \
  20347. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20348. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20349. ac_status=$?
  20350. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20351. test $ac_status = 0; }; then
  20352. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  20353. test "x$?" != "x0" && pkg_failed=yes
  20354. else
  20355. pkg_failed=yes
  20356. fi
  20357. else
  20358. pkg_failed=untried
  20359. fi
  20360. if test $pkg_failed = yes; then
  20361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20362. printf "%s\n" "no" >&6; }
  20363. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20364. _pkg_short_errors_supported=yes
  20365. else
  20366. _pkg_short_errors_supported=no
  20367. fi
  20368. if test $_pkg_short_errors_supported = yes; then
  20369. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20370. else
  20371. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20372. fi
  20373. # Put the nasty error message in config.log where it belongs
  20374. echo "$RPI_PKG_ERRORS" >&5
  20375. video_rpi=no
  20376. elif test $pkg_failed = untried; then
  20377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20378. printf "%s\n" "no" >&6; }
  20379. video_rpi=no
  20380. else
  20381. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20382. RPI_LIBS=$pkg_cv_RPI_LIBS
  20383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20384. printf "%s\n" "yes" >&6; }
  20385. video_rpi=yes
  20386. fi
  20387. if test x$video_rpi = xno; then
  20388. if test x$ARCH = xnetbsd; then
  20389. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20390. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20391. else
  20392. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20393. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20394. fi
  20395. fi
  20396. # Save the original compiler flags and libraries
  20397. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20398. # Add the Raspberry Pi compiler flags and libraries
  20399. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20401. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20402. have_video_rpi=no
  20403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20404. /* end confdefs.h. */
  20405. #include <bcm_host.h>
  20406. #include <EGL/eglplatform.h>
  20407. int
  20408. main (void)
  20409. {
  20410. EGL_DISPMANX_WINDOW_T window;
  20411. bcm_host_init();
  20412. ;
  20413. return 0;
  20414. }
  20415. _ACEOF
  20416. if ac_fn_c_try_link "$LINENO"
  20417. then :
  20418. have_video_rpi=yes
  20419. fi
  20420. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20421. conftest$ac_exeext conftest.$ac_ext
  20422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20423. printf "%s\n" "$have_video_rpi" >&6; }
  20424. # Restore the compiler flags and libraries
  20425. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20426. if test x$have_video_rpi = xyes; then
  20427. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20428. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20429. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20430. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20431. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20432. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20433. SUMMARY_video="${SUMMARY_video} rpi"
  20434. have_video=yes
  20435. fi
  20436. fi
  20437. }
  20438. CheckX11()
  20439. {
  20440. # Check whether --enable-video-x11 was given.
  20441. if test ${enable_video_x11+y}
  20442. then :
  20443. enableval=$enable_video_x11;
  20444. else $as_nop
  20445. enable_video_x11=yes
  20446. case "$host" in
  20447. *-*-darwin*|*-ios-*)
  20448. enable_video_x11=no
  20449. ;;
  20450. esac
  20451. fi
  20452. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20453. case "$host" in
  20454. *-*-darwin*)
  20455. # This isn't necessary for X11, but fixes GLX detection
  20456. if test "x$x_includes" = xNONE && \
  20457. test "x$x_libraries" = xNONE && \
  20458. test -d /opt/X11/include && \
  20459. test -d /opt/X11/lib; then
  20460. x_includes="/opt/X11/include"
  20461. x_libraries="/opt/X11/lib"
  20462. fi
  20463. ;;
  20464. esac
  20465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20466. printf %s "checking for X... " >&6; }
  20467. # Check whether --with-x was given.
  20468. if test ${with_x+y}
  20469. then :
  20470. withval=$with_x;
  20471. fi
  20472. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20473. if test "x$with_x" = xno; then
  20474. # The user explicitly disabled X.
  20475. have_x=disabled
  20476. else
  20477. case $x_includes,$x_libraries in #(
  20478. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20479. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20480. then :
  20481. printf %s "(cached) " >&6
  20482. else $as_nop
  20483. # One or both of the vars are not set, and there is no cached value.
  20484. ac_x_includes=no
  20485. ac_x_libraries=no
  20486. # Do we need to do anything special at all?
  20487. ac_save_LIBS=$LIBS
  20488. LIBS="-lX11 $LIBS"
  20489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20490. /* end confdefs.h. */
  20491. #include <X11/Xlib.h>
  20492. int
  20493. main (void)
  20494. {
  20495. XrmInitialize ()
  20496. ;
  20497. return 0;
  20498. }
  20499. _ACEOF
  20500. if ac_fn_c_try_link "$LINENO"
  20501. then :
  20502. # We can compile and link X programs with no special options.
  20503. ac_x_includes=
  20504. ac_x_libraries=
  20505. fi
  20506. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20507. conftest$ac_exeext conftest.$ac_ext
  20508. LIBS="$ac_save_LIBS"
  20509. # If that didn't work, only try xmkmf and file system searches
  20510. # for native compilation.
  20511. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20512. then :
  20513. rm -f -r conftest.dir
  20514. if mkdir conftest.dir; then
  20515. cd conftest.dir
  20516. cat >Imakefile <<'_ACEOF'
  20517. incroot:
  20518. @echo incroot='${INCROOT}'
  20519. usrlibdir:
  20520. @echo usrlibdir='${USRLIBDIR}'
  20521. libdir:
  20522. @echo libdir='${LIBDIR}'
  20523. _ACEOF
  20524. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20525. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20526. for ac_var in incroot usrlibdir libdir; do
  20527. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20528. done
  20529. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20530. for ac_extension in a so sl dylib la dll; do
  20531. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20532. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20533. ac_im_usrlibdir=$ac_im_libdir; break
  20534. fi
  20535. done
  20536. # Screen out bogus values from the imake configuration. They are
  20537. # bogus both because they are the default anyway, and because
  20538. # using them would break gcc on systems where it needs fixed includes.
  20539. case $ac_im_incroot in
  20540. /usr/include) ac_x_includes= ;;
  20541. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20542. esac
  20543. case $ac_im_usrlibdir in
  20544. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20545. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20546. esac
  20547. fi
  20548. cd ..
  20549. rm -f -r conftest.dir
  20550. fi
  20551. # Standard set of common directories for X headers.
  20552. # Check X11 before X11Rn because it is often a symlink to the current release.
  20553. ac_x_header_dirs='
  20554. /usr/X11/include
  20555. /usr/X11R7/include
  20556. /usr/X11R6/include
  20557. /usr/X11R5/include
  20558. /usr/X11R4/include
  20559. /usr/include/X11
  20560. /usr/include/X11R7
  20561. /usr/include/X11R6
  20562. /usr/include/X11R5
  20563. /usr/include/X11R4
  20564. /usr/local/X11/include
  20565. /usr/local/X11R7/include
  20566. /usr/local/X11R6/include
  20567. /usr/local/X11R5/include
  20568. /usr/local/X11R4/include
  20569. /usr/local/include/X11
  20570. /usr/local/include/X11R7
  20571. /usr/local/include/X11R6
  20572. /usr/local/include/X11R5
  20573. /usr/local/include/X11R4
  20574. /opt/X11/include
  20575. /usr/X386/include
  20576. /usr/x386/include
  20577. /usr/XFree86/include/X11
  20578. /usr/include
  20579. /usr/local/include
  20580. /usr/unsupported/include
  20581. /usr/athena/include
  20582. /usr/local/x11r5/include
  20583. /usr/lpp/Xamples/include
  20584. /usr/openwin/include
  20585. /usr/openwin/share/include'
  20586. if test "$ac_x_includes" = no; then
  20587. # Guess where to find include files, by looking for Xlib.h.
  20588. # First, try using that file with no special directory specified.
  20589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20590. /* end confdefs.h. */
  20591. #include <X11/Xlib.h>
  20592. _ACEOF
  20593. if ac_fn_c_try_cpp "$LINENO"
  20594. then :
  20595. # We can compile using X headers with no special include directory.
  20596. ac_x_includes=
  20597. else $as_nop
  20598. for ac_dir in $ac_x_header_dirs; do
  20599. if test -r "$ac_dir/X11/Xlib.h"; then
  20600. ac_x_includes=$ac_dir
  20601. break
  20602. fi
  20603. done
  20604. fi
  20605. rm -f conftest.err conftest.i conftest.$ac_ext
  20606. fi # $ac_x_includes = no
  20607. if test "$ac_x_libraries" = no; then
  20608. # Check for the libraries.
  20609. # See if we find them without any special options.
  20610. # Don't add to $LIBS permanently.
  20611. ac_save_LIBS=$LIBS
  20612. LIBS="-lX11 $LIBS"
  20613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20614. /* end confdefs.h. */
  20615. #include <X11/Xlib.h>
  20616. int
  20617. main (void)
  20618. {
  20619. XrmInitialize ()
  20620. ;
  20621. return 0;
  20622. }
  20623. _ACEOF
  20624. if ac_fn_c_try_link "$LINENO"
  20625. then :
  20626. LIBS=$ac_save_LIBS
  20627. # We can link X programs with no special library path.
  20628. ac_x_libraries=
  20629. else $as_nop
  20630. LIBS=$ac_save_LIBS
  20631. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20632. do
  20633. # Don't even attempt the hair of trying to link an X program!
  20634. for ac_extension in a so sl dylib la dll; do
  20635. if test -r "$ac_dir/libX11.$ac_extension"; then
  20636. ac_x_libraries=$ac_dir
  20637. break 2
  20638. fi
  20639. done
  20640. done
  20641. fi
  20642. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20643. conftest$ac_exeext conftest.$ac_ext
  20644. fi # $ac_x_libraries = no
  20645. fi
  20646. # Record the results.
  20647. case $ac_x_includes,$ac_x_libraries in #(
  20648. no,* | *,no | *\'*) :
  20649. # Didn't find X, or a directory has "'" in its name.
  20650. ac_cv_have_x="have_x=no" ;; #(
  20651. *) :
  20652. # Record where we found X for the cache.
  20653. ac_cv_have_x="have_x=yes\
  20654. ac_x_includes='$ac_x_includes'\
  20655. ac_x_libraries='$ac_x_libraries'" ;;
  20656. esac
  20657. fi
  20658. ;; #(
  20659. *) have_x=yes;;
  20660. esac
  20661. eval "$ac_cv_have_x"
  20662. fi # $with_x != no
  20663. if test "$have_x" != yes; then
  20664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20665. printf "%s\n" "$have_x" >&6; }
  20666. no_x=yes
  20667. else
  20668. # If each of the values was on the command line, it overrides each guess.
  20669. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20670. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20671. # Update the cache value to reflect the command line values.
  20672. ac_cv_have_x="have_x=yes\
  20673. ac_x_includes='$x_includes'\
  20674. ac_x_libraries='$x_libraries'"
  20675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20676. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20677. fi
  20678. if test "$no_x" = yes; then
  20679. # Not all programs may use this symbol, but it does not hurt to define it.
  20680. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20681. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20682. else
  20683. if test -n "$x_includes"; then
  20684. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20685. fi
  20686. # It would also be nice to do this for all -L options, not just this one.
  20687. if test -n "$x_libraries"; then
  20688. X_LIBS="$X_LIBS -L$x_libraries"
  20689. # For Solaris; some versions of Sun CC require a space after -R and
  20690. # others require no space. Words are not sufficient . . . .
  20691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20692. printf %s "checking whether -R must be followed by a space... " >&6; }
  20693. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20694. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20695. ac_c_werror_flag=yes
  20696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20697. /* end confdefs.h. */
  20698. int
  20699. main (void)
  20700. {
  20701. ;
  20702. return 0;
  20703. }
  20704. _ACEOF
  20705. if ac_fn_c_try_link "$LINENO"
  20706. then :
  20707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20708. printf "%s\n" "no" >&6; }
  20709. X_LIBS="$X_LIBS -R$x_libraries"
  20710. else $as_nop
  20711. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20713. /* end confdefs.h. */
  20714. int
  20715. main (void)
  20716. {
  20717. ;
  20718. return 0;
  20719. }
  20720. _ACEOF
  20721. if ac_fn_c_try_link "$LINENO"
  20722. then :
  20723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20724. printf "%s\n" "yes" >&6; }
  20725. X_LIBS="$X_LIBS -R $x_libraries"
  20726. else $as_nop
  20727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20728. printf "%s\n" "neither works" >&6; }
  20729. fi
  20730. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20731. conftest$ac_exeext conftest.$ac_ext
  20732. fi
  20733. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20734. conftest$ac_exeext conftest.$ac_ext
  20735. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20736. LIBS=$ac_xsave_LIBS
  20737. fi
  20738. # Check for system-dependent libraries X programs must link with.
  20739. # Do this before checking for the system-independent R6 libraries
  20740. # (-lICE), since we may need -lsocket or whatever for X linking.
  20741. if test "$ISC" = yes; then
  20742. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20743. else
  20744. # Martyn Johnson says this is needed for Ultrix, if the X
  20745. # libraries were built with DECnet support. And Karl Berry says
  20746. # the Alpha needs dnet_stub (dnet does not exist).
  20747. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20749. /* end confdefs.h. */
  20750. /* Override any GCC internal prototype to avoid an error.
  20751. Use char because int might match the return type of a GCC
  20752. builtin and then its argument prototype would still apply. */
  20753. char XOpenDisplay ();
  20754. int
  20755. main (void)
  20756. {
  20757. return XOpenDisplay ();
  20758. ;
  20759. return 0;
  20760. }
  20761. _ACEOF
  20762. if ac_fn_c_try_link "$LINENO"
  20763. then :
  20764. else $as_nop
  20765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20766. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20767. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20768. then :
  20769. printf %s "(cached) " >&6
  20770. else $as_nop
  20771. ac_check_lib_save_LIBS=$LIBS
  20772. LIBS="-ldnet $LIBS"
  20773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20774. /* end confdefs.h. */
  20775. /* Override any GCC internal prototype to avoid an error.
  20776. Use char because int might match the return type of a GCC
  20777. builtin and then its argument prototype would still apply. */
  20778. char dnet_ntoa ();
  20779. int
  20780. main (void)
  20781. {
  20782. return dnet_ntoa ();
  20783. ;
  20784. return 0;
  20785. }
  20786. _ACEOF
  20787. if ac_fn_c_try_link "$LINENO"
  20788. then :
  20789. ac_cv_lib_dnet_dnet_ntoa=yes
  20790. else $as_nop
  20791. ac_cv_lib_dnet_dnet_ntoa=no
  20792. fi
  20793. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20794. conftest$ac_exeext conftest.$ac_ext
  20795. LIBS=$ac_check_lib_save_LIBS
  20796. fi
  20797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20798. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20799. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20800. then :
  20801. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20802. fi
  20803. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20805. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20806. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20807. then :
  20808. printf %s "(cached) " >&6
  20809. else $as_nop
  20810. ac_check_lib_save_LIBS=$LIBS
  20811. LIBS="-ldnet_stub $LIBS"
  20812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20813. /* end confdefs.h. */
  20814. /* Override any GCC internal prototype to avoid an error.
  20815. Use char because int might match the return type of a GCC
  20816. builtin and then its argument prototype would still apply. */
  20817. char dnet_ntoa ();
  20818. int
  20819. main (void)
  20820. {
  20821. return dnet_ntoa ();
  20822. ;
  20823. return 0;
  20824. }
  20825. _ACEOF
  20826. if ac_fn_c_try_link "$LINENO"
  20827. then :
  20828. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20829. else $as_nop
  20830. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20831. fi
  20832. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20833. conftest$ac_exeext conftest.$ac_ext
  20834. LIBS=$ac_check_lib_save_LIBS
  20835. fi
  20836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20837. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20838. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20839. then :
  20840. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20841. fi
  20842. fi
  20843. fi
  20844. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20845. conftest$ac_exeext conftest.$ac_ext
  20846. LIBS="$ac_xsave_LIBS"
  20847. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20848. # to get the SysV transport functions.
  20849. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20850. # needs -lnsl.
  20851. # The nsl library prevents programs from opening the X display
  20852. # on Irix 5.2, according to T.E. Dickey.
  20853. # The functions gethostbyname, getservbyname, and inet_addr are
  20854. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20855. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20856. if test "x$ac_cv_func_gethostbyname" = xyes
  20857. then :
  20858. fi
  20859. if test $ac_cv_func_gethostbyname = no; then
  20860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20861. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20862. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20863. then :
  20864. printf %s "(cached) " >&6
  20865. else $as_nop
  20866. ac_check_lib_save_LIBS=$LIBS
  20867. LIBS="-lnsl $LIBS"
  20868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20869. /* end confdefs.h. */
  20870. /* Override any GCC internal prototype to avoid an error.
  20871. Use char because int might match the return type of a GCC
  20872. builtin and then its argument prototype would still apply. */
  20873. char gethostbyname ();
  20874. int
  20875. main (void)
  20876. {
  20877. return gethostbyname ();
  20878. ;
  20879. return 0;
  20880. }
  20881. _ACEOF
  20882. if ac_fn_c_try_link "$LINENO"
  20883. then :
  20884. ac_cv_lib_nsl_gethostbyname=yes
  20885. else $as_nop
  20886. ac_cv_lib_nsl_gethostbyname=no
  20887. fi
  20888. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20889. conftest$ac_exeext conftest.$ac_ext
  20890. LIBS=$ac_check_lib_save_LIBS
  20891. fi
  20892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20893. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20894. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  20895. then :
  20896. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20897. fi
  20898. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20900. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  20901. if test ${ac_cv_lib_bsd_gethostbyname+y}
  20902. then :
  20903. printf %s "(cached) " >&6
  20904. else $as_nop
  20905. ac_check_lib_save_LIBS=$LIBS
  20906. LIBS="-lbsd $LIBS"
  20907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20908. /* end confdefs.h. */
  20909. /* Override any GCC internal prototype to avoid an error.
  20910. Use char because int might match the return type of a GCC
  20911. builtin and then its argument prototype would still apply. */
  20912. char gethostbyname ();
  20913. int
  20914. main (void)
  20915. {
  20916. return gethostbyname ();
  20917. ;
  20918. return 0;
  20919. }
  20920. _ACEOF
  20921. if ac_fn_c_try_link "$LINENO"
  20922. then :
  20923. ac_cv_lib_bsd_gethostbyname=yes
  20924. else $as_nop
  20925. ac_cv_lib_bsd_gethostbyname=no
  20926. fi
  20927. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20928. conftest$ac_exeext conftest.$ac_ext
  20929. LIBS=$ac_check_lib_save_LIBS
  20930. fi
  20931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20932. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20933. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20934. then :
  20935. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20936. fi
  20937. fi
  20938. fi
  20939. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20940. # socket/setsockopt and other routines are undefined under SCO ODT
  20941. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20942. # on later versions), says Simon Leinen: it contains gethostby*
  20943. # variants that don't use the name server (or something). -lsocket
  20944. # must be given before -lnsl if both are needed. We assume that
  20945. # if connect needs -lnsl, so does gethostbyname.
  20946. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20947. if test "x$ac_cv_func_connect" = xyes
  20948. then :
  20949. fi
  20950. if test $ac_cv_func_connect = no; then
  20951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20952. printf %s "checking for connect in -lsocket... " >&6; }
  20953. if test ${ac_cv_lib_socket_connect+y}
  20954. then :
  20955. printf %s "(cached) " >&6
  20956. else $as_nop
  20957. ac_check_lib_save_LIBS=$LIBS
  20958. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20960. /* end confdefs.h. */
  20961. /* Override any GCC internal prototype to avoid an error.
  20962. Use char because int might match the return type of a GCC
  20963. builtin and then its argument prototype would still apply. */
  20964. char connect ();
  20965. int
  20966. main (void)
  20967. {
  20968. return connect ();
  20969. ;
  20970. return 0;
  20971. }
  20972. _ACEOF
  20973. if ac_fn_c_try_link "$LINENO"
  20974. then :
  20975. ac_cv_lib_socket_connect=yes
  20976. else $as_nop
  20977. ac_cv_lib_socket_connect=no
  20978. fi
  20979. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20980. conftest$ac_exeext conftest.$ac_ext
  20981. LIBS=$ac_check_lib_save_LIBS
  20982. fi
  20983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20984. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20985. if test "x$ac_cv_lib_socket_connect" = xyes
  20986. then :
  20987. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20988. fi
  20989. fi
  20990. # Guillermo Gomez says -lposix is necessary on A/UX.
  20991. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20992. if test "x$ac_cv_func_remove" = xyes
  20993. then :
  20994. fi
  20995. if test $ac_cv_func_remove = no; then
  20996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20997. printf %s "checking for remove in -lposix... " >&6; }
  20998. if test ${ac_cv_lib_posix_remove+y}
  20999. then :
  21000. printf %s "(cached) " >&6
  21001. else $as_nop
  21002. ac_check_lib_save_LIBS=$LIBS
  21003. LIBS="-lposix $LIBS"
  21004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21005. /* end confdefs.h. */
  21006. /* Override any GCC internal prototype to avoid an error.
  21007. Use char because int might match the return type of a GCC
  21008. builtin and then its argument prototype would still apply. */
  21009. char remove ();
  21010. int
  21011. main (void)
  21012. {
  21013. return remove ();
  21014. ;
  21015. return 0;
  21016. }
  21017. _ACEOF
  21018. if ac_fn_c_try_link "$LINENO"
  21019. then :
  21020. ac_cv_lib_posix_remove=yes
  21021. else $as_nop
  21022. ac_cv_lib_posix_remove=no
  21023. fi
  21024. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21025. conftest$ac_exeext conftest.$ac_ext
  21026. LIBS=$ac_check_lib_save_LIBS
  21027. fi
  21028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  21029. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  21030. if test "x$ac_cv_lib_posix_remove" = xyes
  21031. then :
  21032. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  21033. fi
  21034. fi
  21035. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  21036. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  21037. if test "x$ac_cv_func_shmat" = xyes
  21038. then :
  21039. fi
  21040. if test $ac_cv_func_shmat = no; then
  21041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  21042. printf %s "checking for shmat in -lipc... " >&6; }
  21043. if test ${ac_cv_lib_ipc_shmat+y}
  21044. then :
  21045. printf %s "(cached) " >&6
  21046. else $as_nop
  21047. ac_check_lib_save_LIBS=$LIBS
  21048. LIBS="-lipc $LIBS"
  21049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21050. /* end confdefs.h. */
  21051. /* Override any GCC internal prototype to avoid an error.
  21052. Use char because int might match the return type of a GCC
  21053. builtin and then its argument prototype would still apply. */
  21054. char shmat ();
  21055. int
  21056. main (void)
  21057. {
  21058. return shmat ();
  21059. ;
  21060. return 0;
  21061. }
  21062. _ACEOF
  21063. if ac_fn_c_try_link "$LINENO"
  21064. then :
  21065. ac_cv_lib_ipc_shmat=yes
  21066. else $as_nop
  21067. ac_cv_lib_ipc_shmat=no
  21068. fi
  21069. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21070. conftest$ac_exeext conftest.$ac_ext
  21071. LIBS=$ac_check_lib_save_LIBS
  21072. fi
  21073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  21074. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  21075. if test "x$ac_cv_lib_ipc_shmat" = xyes
  21076. then :
  21077. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  21078. fi
  21079. fi
  21080. fi
  21081. # Check for libraries that X11R6 Xt/Xaw programs need.
  21082. ac_save_LDFLAGS=$LDFLAGS
  21083. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  21084. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  21085. # check for ICE first), but we must link in the order -lSM -lICE or
  21086. # we get undefined symbols. So assume we have SM if we have ICE.
  21087. # These have to be linked with before -lX11, unlike the other
  21088. # libraries we check for below, so use a different variable.
  21089. # John Interrante, Karl Berry
  21090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  21091. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  21092. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  21093. then :
  21094. printf %s "(cached) " >&6
  21095. else $as_nop
  21096. ac_check_lib_save_LIBS=$LIBS
  21097. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  21098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21099. /* end confdefs.h. */
  21100. /* Override any GCC internal prototype to avoid an error.
  21101. Use char because int might match the return type of a GCC
  21102. builtin and then its argument prototype would still apply. */
  21103. char IceConnectionNumber ();
  21104. int
  21105. main (void)
  21106. {
  21107. return IceConnectionNumber ();
  21108. ;
  21109. return 0;
  21110. }
  21111. _ACEOF
  21112. if ac_fn_c_try_link "$LINENO"
  21113. then :
  21114. ac_cv_lib_ICE_IceConnectionNumber=yes
  21115. else $as_nop
  21116. ac_cv_lib_ICE_IceConnectionNumber=no
  21117. fi
  21118. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21119. conftest$ac_exeext conftest.$ac_ext
  21120. LIBS=$ac_check_lib_save_LIBS
  21121. fi
  21122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  21123. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  21124. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  21125. then :
  21126. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21127. fi
  21128. LDFLAGS=$ac_save_LDFLAGS
  21129. fi
  21130. if test x$have_x = xyes; then
  21131. # Check whether --enable-x11-shared was given.
  21132. if test ${enable_x11_shared+y}
  21133. then :
  21134. enableval=$enable_x11_shared;
  21135. else $as_nop
  21136. enable_x11_shared=maybe
  21137. fi
  21138. case "$host" in
  21139. *-*-darwin*)
  21140. # Apple now puts this in /opt/X11
  21141. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21142. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21143. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21144. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21145. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21146. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21147. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21148. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21149. ;;
  21150. *-*-openbsd*)
  21151. x11_lib='libX11.so'
  21152. x11ext_lib='libXext.so'
  21153. xcursor_lib='libXcursor.so'
  21154. xinput_lib='libXi.so'
  21155. xfixes_lib='libXfixes.so'
  21156. xrandr_lib='libXrandr.so'
  21157. xrender_lib='libXrender.so'
  21158. xss_lib='libXss.so'
  21159. ;;
  21160. *)
  21161. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21162. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21163. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21164. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21165. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21166. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21167. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21168. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21169. ;;
  21170. esac
  21171. if test x$ac_cv_func_shmat != xyes; then
  21172. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21173. fi
  21174. CFLAGS="$CFLAGS $X_CFLAGS"
  21175. LDFLAGS="$LDFLAGS $X_LIBS"
  21176. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21177. #include <X11/Xproto.h>
  21178. "
  21179. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21180. then :
  21181. have_xext_h_hdr=yes
  21182. else $as_nop
  21183. have_xext_h_hdr=no
  21184. fi
  21185. if test x$have_xext_h_hdr != xyes; then
  21186. as_fn_error $? "
  21187. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21188. " "$LINENO" 5
  21189. fi
  21190. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21191. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21192. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21193. # Needed so SDL applications can include SDL_syswm.h
  21194. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21195. if test x$enable_x11_shared = xmaybe; then
  21196. enable_x11_shared=yes
  21197. fi
  21198. if test x$have_loadso != xyes && \
  21199. test x$enable_x11_shared = xyes; then
  21200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21201. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21202. enable_x11_shared=no
  21203. fi
  21204. if test x$have_loadso = xyes && \
  21205. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21206. echo "-- dynamic libX11 -> $x11_lib"
  21207. echo "-- dynamic libX11ext -> $x11ext_lib"
  21208. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21209. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21210. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21211. else
  21212. enable_x11_shared=no
  21213. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21214. SUMMARY_video="${SUMMARY_video} x11"
  21215. fi
  21216. have_video=yes
  21217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21218. printf %s "checking for XGenericEvent... " >&6; }
  21219. have_XGenericEvent=no
  21220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21221. /* end confdefs.h. */
  21222. #include <X11/Xlib.h>
  21223. int
  21224. main (void)
  21225. {
  21226. Display *display;
  21227. XEvent event;
  21228. XGenericEventCookie *cookie = &event.xcookie;
  21229. XNextEvent(display, &event);
  21230. XGetEventData(display, cookie);
  21231. XFreeEventData(display, cookie);
  21232. ;
  21233. return 0;
  21234. }
  21235. _ACEOF
  21236. if ac_fn_c_try_compile "$LINENO"
  21237. then :
  21238. have_XGenericEvent=yes
  21239. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21240. fi
  21241. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21243. printf "%s\n" "$have_XGenericEvent" >&6; }
  21244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21245. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21246. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21247. then :
  21248. printf %s "(cached) " >&6
  21249. else $as_nop
  21250. ac_check_lib_save_LIBS=$LIBS
  21251. LIBS="-lX11 $LIBS"
  21252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21253. /* end confdefs.h. */
  21254. /* Override any GCC internal prototype to avoid an error.
  21255. Use char because int might match the return type of a GCC
  21256. builtin and then its argument prototype would still apply. */
  21257. char XkbKeycodeToKeysym ();
  21258. int
  21259. main (void)
  21260. {
  21261. return XkbKeycodeToKeysym ();
  21262. ;
  21263. return 0;
  21264. }
  21265. _ACEOF
  21266. if ac_fn_c_try_link "$LINENO"
  21267. then :
  21268. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21269. else $as_nop
  21270. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21271. fi
  21272. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21273. conftest$ac_exeext conftest.$ac_ext
  21274. LIBS=$ac_check_lib_save_LIBS
  21275. fi
  21276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21277. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21278. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21279. then :
  21280. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21281. fi
  21282. # Check whether --enable-video-x11-xcursor was given.
  21283. if test ${enable_video_x11_xcursor+y}
  21284. then :
  21285. enableval=$enable_video_x11_xcursor;
  21286. else $as_nop
  21287. enable_video_x11_xcursor=yes
  21288. fi
  21289. if test x$enable_video_x11_xcursor = xyes; then
  21290. definitely_enable_video_x11_xcursor=no
  21291. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21292. "
  21293. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21294. then :
  21295. have_xcursor_h_hdr=yes
  21296. else $as_nop
  21297. have_xcursor_h_hdr=no
  21298. fi
  21299. if test x$have_xcursor_h_hdr = xyes; then
  21300. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21301. echo "-- dynamic libXcursor -> $xcursor_lib"
  21302. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21303. definitely_enable_video_x11_xcursor=yes
  21304. else
  21305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21306. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21307. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21308. then :
  21309. printf %s "(cached) " >&6
  21310. else $as_nop
  21311. ac_check_lib_save_LIBS=$LIBS
  21312. LIBS="-lXcursor $LIBS"
  21313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21314. /* end confdefs.h. */
  21315. /* Override any GCC internal prototype to avoid an error.
  21316. Use char because int might match the return type of a GCC
  21317. builtin and then its argument prototype would still apply. */
  21318. char XcursorImageCreate ();
  21319. int
  21320. main (void)
  21321. {
  21322. return XcursorImageCreate ();
  21323. ;
  21324. return 0;
  21325. }
  21326. _ACEOF
  21327. if ac_fn_c_try_link "$LINENO"
  21328. then :
  21329. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21330. else $as_nop
  21331. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21332. fi
  21333. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21334. conftest$ac_exeext conftest.$ac_ext
  21335. LIBS=$ac_check_lib_save_LIBS
  21336. fi
  21337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21338. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21339. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21340. then :
  21341. have_xcursor_lib=yes
  21342. fi
  21343. if test x$have_xcursor_lib = xyes ; then
  21344. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21345. definitely_enable_video_x11_xcursor=yes
  21346. fi
  21347. fi
  21348. fi
  21349. fi
  21350. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21351. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21352. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21353. fi
  21354. # Check whether --enable-video-x11-xdbe was given.
  21355. if test ${enable_video_x11_xdbe+y}
  21356. then :
  21357. enableval=$enable_video_x11_xdbe;
  21358. else $as_nop
  21359. enable_video_x11_xdbe=yes
  21360. fi
  21361. if test x$enable_video_x11_xdbe = xyes; then
  21362. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21363. "
  21364. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21365. then :
  21366. have_dbe_h_hdr=yes
  21367. else $as_nop
  21368. have_dbe_h_hdr=no
  21369. fi
  21370. if test x$have_dbe_h_hdr = xyes; then
  21371. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21372. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21373. fi
  21374. fi
  21375. # Check whether --enable-video-x11-xinput was given.
  21376. if test ${enable_video_x11_xinput+y}
  21377. then :
  21378. enableval=$enable_video_x11_xinput;
  21379. else $as_nop
  21380. enable_video_x11_xinput=yes
  21381. fi
  21382. if test x$enable_video_x11_xinput = xyes; then
  21383. definitely_enable_video_x11_xinput=no
  21384. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21385. "
  21386. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21387. then :
  21388. have_xinput_h_hdr=yes
  21389. else $as_nop
  21390. have_xinput_h_hdr=no
  21391. fi
  21392. if test x$have_xinput_h_hdr = xyes; then
  21393. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21394. echo "-- dynamic libXi -> $xinput_lib"
  21395. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21396. definitely_enable_video_x11_xinput=yes
  21397. else
  21398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21399. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21400. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21401. then :
  21402. printf %s "(cached) " >&6
  21403. else $as_nop
  21404. ac_check_lib_save_LIBS=$LIBS
  21405. LIBS="-lXi $LIBS"
  21406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21407. /* end confdefs.h. */
  21408. /* Override any GCC internal prototype to avoid an error.
  21409. Use char because int might match the return type of a GCC
  21410. builtin and then its argument prototype would still apply. */
  21411. char XOpenDevice ();
  21412. int
  21413. main (void)
  21414. {
  21415. return XOpenDevice ();
  21416. ;
  21417. return 0;
  21418. }
  21419. _ACEOF
  21420. if ac_fn_c_try_link "$LINENO"
  21421. then :
  21422. ac_cv_lib_Xi_XOpenDevice=yes
  21423. else $as_nop
  21424. ac_cv_lib_Xi_XOpenDevice=no
  21425. fi
  21426. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21427. conftest$ac_exeext conftest.$ac_ext
  21428. LIBS=$ac_check_lib_save_LIBS
  21429. fi
  21430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21431. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21432. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21433. then :
  21434. have_xinput_lib=yes
  21435. fi
  21436. if test x$have_xinput_lib = xyes ; then
  21437. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21438. definitely_enable_video_x11_xinput=yes
  21439. fi
  21440. fi
  21441. fi
  21442. fi
  21443. if test x$definitely_enable_video_x11_xinput = xyes; then
  21444. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21445. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21447. printf %s "checking for xinput2 multitouch... " >&6; }
  21448. have_xinput2_multitouch=no
  21449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21450. /* end confdefs.h. */
  21451. #include <X11/Xlib.h>
  21452. #include <X11/Xproto.h>
  21453. #include <X11/extensions/XInput2.h>
  21454. int
  21455. main (void)
  21456. {
  21457. int event_type = XI_TouchBegin;
  21458. XITouchClassInfo *t;
  21459. ;
  21460. return 0;
  21461. }
  21462. _ACEOF
  21463. if ac_fn_c_try_compile "$LINENO"
  21464. then :
  21465. have_xinput2_multitouch=yes
  21466. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21467. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21468. fi
  21469. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21471. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21472. fi
  21473. # Check whether --enable-video-x11-xfixes was given.
  21474. if test ${enable_video_x11_xfixes+y}
  21475. then :
  21476. enableval=$enable_video_x11_xfixes;
  21477. else $as_nop
  21478. enable_video_x11_xfixes=yes
  21479. fi
  21480. if test x$enable_video_x11_xfixes = xyes; then
  21481. definitely_enable_video_x11_xfixes=no
  21482. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21484. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21486. /* end confdefs.h. */
  21487. #include <X11/Xlib.h>
  21488. #include <X11/Xproto.h>
  21489. #include <X11/extensions/XInput2.h>
  21490. #include <X11/extensions/Xfixes.h>
  21491. int
  21492. main (void)
  21493. {
  21494. BarrierEventID b;
  21495. ;
  21496. return 0;
  21497. }
  21498. _ACEOF
  21499. if ac_fn_c_try_compile "$LINENO"
  21500. then :
  21501. have_xfixes_h_hdr=yes
  21502. else $as_nop
  21503. have_xfixes_h_hdr=no
  21504. fi
  21505. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21507. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21508. if test x$have_xfixes_h_hdr = xyes; then
  21509. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21510. echo "-- dynamic libXfixes -> $xfixes_lib"
  21511. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21512. definitely_enable_video_x11_xfixes=yes
  21513. else
  21514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21515. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21516. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21517. then :
  21518. printf %s "(cached) " >&6
  21519. else $as_nop
  21520. ac_check_lib_save_LIBS=$LIBS
  21521. LIBS="-lXfixes $LIBS"
  21522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21523. /* end confdefs.h. */
  21524. /* Override any GCC internal prototype to avoid an error.
  21525. Use char because int might match the return type of a GCC
  21526. builtin and then its argument prototype would still apply. */
  21527. char XFixesCreatePointerBarrier ();
  21528. int
  21529. main (void)
  21530. {
  21531. return XFixesCreatePointerBarrier ();
  21532. ;
  21533. return 0;
  21534. }
  21535. _ACEOF
  21536. if ac_fn_c_try_link "$LINENO"
  21537. then :
  21538. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21539. else $as_nop
  21540. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21541. fi
  21542. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21543. conftest$ac_exeext conftest.$ac_ext
  21544. LIBS=$ac_check_lib_save_LIBS
  21545. fi
  21546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21547. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21548. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21549. then :
  21550. have_xfixes_lib=yes
  21551. fi
  21552. if test x$have_xfixes_lib = xyes ; then
  21553. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21554. definitely_enable_video_x11_xfixes=yes
  21555. fi
  21556. fi
  21557. fi
  21558. fi
  21559. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21560. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21561. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21562. fi
  21563. # Check whether --enable-video-x11-xrandr was given.
  21564. if test ${enable_video_x11_xrandr+y}
  21565. then :
  21566. enableval=$enable_video_x11_xrandr;
  21567. else $as_nop
  21568. enable_video_x11_xrandr=yes
  21569. fi
  21570. if test x$enable_video_x11_xrandr = xyes; then
  21571. definitely_enable_video_x11_xrandr=no
  21572. have_xrandr_h_hdr=no
  21573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21574. /* end confdefs.h. */
  21575. #include <X11/Xlib.h>
  21576. #include <X11/extensions/Xrandr.h>
  21577. int
  21578. main (void)
  21579. {
  21580. XRRScreenResources *res = NULL;
  21581. ;
  21582. return 0;
  21583. }
  21584. _ACEOF
  21585. if ac_fn_c_try_compile "$LINENO"
  21586. then :
  21587. have_xrandr_h_hdr=yes
  21588. fi
  21589. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21590. if test x$have_xrandr_h_hdr = xyes; then
  21591. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21592. echo "-- dynamic libXrandr -> $xrandr_lib"
  21593. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21594. definitely_enable_video_x11_xrandr=yes
  21595. else
  21596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21597. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21598. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21599. then :
  21600. printf %s "(cached) " >&6
  21601. else $as_nop
  21602. ac_check_lib_save_LIBS=$LIBS
  21603. LIBS="-lXrandr $LIBS"
  21604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21605. /* end confdefs.h. */
  21606. /* Override any GCC internal prototype to avoid an error.
  21607. Use char because int might match the return type of a GCC
  21608. builtin and then its argument prototype would still apply. */
  21609. char XRRQueryExtension ();
  21610. int
  21611. main (void)
  21612. {
  21613. return XRRQueryExtension ();
  21614. ;
  21615. return 0;
  21616. }
  21617. _ACEOF
  21618. if ac_fn_c_try_link "$LINENO"
  21619. then :
  21620. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21621. else $as_nop
  21622. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21623. fi
  21624. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21625. conftest$ac_exeext conftest.$ac_ext
  21626. LIBS=$ac_check_lib_save_LIBS
  21627. fi
  21628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21629. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21630. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21631. then :
  21632. have_xrandr_lib=yes
  21633. fi
  21634. if test x$have_xrandr_lib = xyes ; then
  21635. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21636. definitely_enable_video_x11_xrandr=yes
  21637. fi
  21638. fi
  21639. fi
  21640. fi
  21641. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21642. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21643. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21644. fi
  21645. # Check whether --enable-video-x11-scrnsaver was given.
  21646. if test ${enable_video_x11_scrnsaver+y}
  21647. then :
  21648. enableval=$enable_video_x11_scrnsaver;
  21649. else $as_nop
  21650. enable_video_x11_scrnsaver=yes
  21651. fi
  21652. if test x$enable_video_x11_scrnsaver = xyes; then
  21653. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21654. "
  21655. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21656. then :
  21657. have_scrnsaver_h_hdr=yes
  21658. else $as_nop
  21659. have_scrnsaver_h_hdr=no
  21660. fi
  21661. if test x$have_scrnsaver_h_hdr = xyes; then
  21662. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21663. echo "-- dynamic libXss -> $xss_lib"
  21664. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21665. definitely_enable_video_x11_scrnsaver=yes
  21666. else
  21667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21668. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21669. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21670. then :
  21671. printf %s "(cached) " >&6
  21672. else $as_nop
  21673. ac_check_lib_save_LIBS=$LIBS
  21674. LIBS="-lXss $LIBS"
  21675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21676. /* end confdefs.h. */
  21677. /* Override any GCC internal prototype to avoid an error.
  21678. Use char because int might match the return type of a GCC
  21679. builtin and then its argument prototype would still apply. */
  21680. char XScreenSaverSuspend ();
  21681. int
  21682. main (void)
  21683. {
  21684. return XScreenSaverSuspend ();
  21685. ;
  21686. return 0;
  21687. }
  21688. _ACEOF
  21689. if ac_fn_c_try_link "$LINENO"
  21690. then :
  21691. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21692. else $as_nop
  21693. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21694. fi
  21695. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21696. conftest$ac_exeext conftest.$ac_ext
  21697. LIBS=$ac_check_lib_save_LIBS
  21698. fi
  21699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21700. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21701. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21702. then :
  21703. have_xss_lib=yes
  21704. fi
  21705. if test x$have_xss_lib = xyes ; then
  21706. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21707. definitely_enable_video_x11_scrnsaver=yes
  21708. fi
  21709. fi
  21710. fi
  21711. fi
  21712. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21713. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21714. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21715. fi
  21716. # Check whether --enable-video-x11-xshape was given.
  21717. if test ${enable_video_x11_xshape+y}
  21718. then :
  21719. enableval=$enable_video_x11_xshape;
  21720. else $as_nop
  21721. enable_video_x11_xshape=yes
  21722. fi
  21723. if test x$enable_video_x11_xshape = xyes; then
  21724. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21725. "
  21726. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21727. then :
  21728. have_shape_h_hdr=yes
  21729. else $as_nop
  21730. have_shape_h_hdr=no
  21731. fi
  21732. if test x$have_shape_h_hdr = xyes; then
  21733. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21734. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21735. fi
  21736. fi
  21737. fi
  21738. fi
  21739. if test x$have_x != xyes; then
  21740. # Prevent Mesa from including X11 headers
  21741. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21742. fi
  21743. }
  21744. CheckVivanteVideo()
  21745. {
  21746. # Check whether --enable-video-vivante was given.
  21747. if test ${enable_video_vivante+y}
  21748. then :
  21749. enableval=$enable_video_vivante;
  21750. else $as_nop
  21751. enable_video_vivante=yes
  21752. fi
  21753. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21755. printf %s "checking for Vivante VDK API... " >&6; }
  21756. have_vivante_vdk=no
  21757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21758. /* end confdefs.h. */
  21759. #define LINUX
  21760. #define EGL_API_FB
  21761. #include <gc_vdk.h>
  21762. int
  21763. main (void)
  21764. {
  21765. ;
  21766. return 0;
  21767. }
  21768. _ACEOF
  21769. if ac_fn_c_try_compile "$LINENO"
  21770. then :
  21771. have_vivante_vdk=yes
  21772. fi
  21773. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21775. printf "%s\n" "$have_vivante_vdk" >&6; }
  21776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21777. printf %s "checking for Vivante FB API... " >&6; }
  21778. have_vivante_egl=no
  21779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21780. /* end confdefs.h. */
  21781. #define LINUX
  21782. #define EGL_API_FB
  21783. #include <EGL/eglvivante.h>
  21784. int
  21785. main (void)
  21786. {
  21787. ;
  21788. return 0;
  21789. }
  21790. _ACEOF
  21791. if ac_fn_c_try_compile "$LINENO"
  21792. then :
  21793. have_vivante_egl=yes
  21794. fi
  21795. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21797. printf "%s\n" "$have_vivante_egl" >&6; }
  21798. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21799. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21800. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21801. if test x$have_vivante_vdk = xyes; then
  21802. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21803. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21804. fi
  21805. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21806. SUMMARY_video="${SUMMARY_video} vivante"
  21807. have_video=yes
  21808. fi
  21809. fi
  21810. }
  21811. CheckHaikuVideo()
  21812. {
  21813. if test x$enable_video = xyes; then
  21814. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21815. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21816. have_video=yes
  21817. SUMMARY_video="${SUMMARY_video} haiku"
  21818. fi
  21819. }
  21820. CheckCOCOA()
  21821. {
  21822. # Check whether --enable-video-cocoa was given.
  21823. if test ${enable_video_cocoa+y}
  21824. then :
  21825. enableval=$enable_video_cocoa;
  21826. else $as_nop
  21827. enable_video_cocoa=yes
  21828. fi
  21829. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21830. save_CFLAGS="$CFLAGS"
  21831. CFLAGS="$CFLAGS -x objective-c"
  21832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21833. printf %s "checking for Cocoa framework... " >&6; }
  21834. have_cocoa=no
  21835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21836. /* end confdefs.h. */
  21837. #import <Cocoa/Cocoa.h>
  21838. int
  21839. main (void)
  21840. {
  21841. ;
  21842. return 0;
  21843. }
  21844. _ACEOF
  21845. if ac_fn_c_try_compile "$LINENO"
  21846. then :
  21847. have_cocoa=yes
  21848. fi
  21849. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21851. printf "%s\n" "$have_cocoa" >&6; }
  21852. CFLAGS="$save_CFLAGS"
  21853. if test x$have_cocoa = xyes; then
  21854. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21855. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21856. SUMMARY_video="${SUMMARY_video} cocoa"
  21857. have_video=yes
  21858. fi
  21859. fi
  21860. }
  21861. CheckMETAL()
  21862. {
  21863. # Check whether --enable-video-metal was given.
  21864. if test ${enable_video_metal+y}
  21865. then :
  21866. enableval=$enable_video_metal;
  21867. else $as_nop
  21868. enable_video_metal=yes
  21869. fi
  21870. # Check whether --enable-render-metal was given.
  21871. if test ${enable_render_metal+y}
  21872. then :
  21873. enableval=$enable_render_metal;
  21874. else $as_nop
  21875. enable_render_metal=yes
  21876. fi
  21877. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  21878. save_CFLAGS="$CFLAGS"
  21879. CFLAGS="$CFLAGS -x objective-c"
  21880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  21881. printf %s "checking for Metal framework... " >&6; }
  21882. have_metal=no
  21883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21884. /* end confdefs.h. */
  21885. #import <Cocoa/Cocoa.h>
  21886. #import <Metal/Metal.h>
  21887. #import <QuartzCore/CAMetalLayer.h>
  21888. #if TARGET_CPU_X86
  21889. #error Metal doesn't work on this configuration
  21890. #endif
  21891. int
  21892. main (void)
  21893. {
  21894. ;
  21895. return 0;
  21896. }
  21897. _ACEOF
  21898. if ac_fn_c_try_compile "$LINENO"
  21899. then :
  21900. have_metal=yes
  21901. fi
  21902. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21903. CFLAGS="$save_CFLAGS"
  21904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  21905. printf "%s\n" "$have_metal" >&6; }
  21906. if test x$have_metal = xyes; then
  21907. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  21908. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21909. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  21910. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  21911. fi
  21912. SUMMARY_video="${SUMMARY_video} metal"
  21913. else
  21914. enable_video_metal=no
  21915. enable_render_metal=no
  21916. fi
  21917. fi
  21918. }
  21919. CheckDirectFB()
  21920. {
  21921. # Check whether --enable-video-directfb was given.
  21922. if test ${enable_video_directfb+y}
  21923. then :
  21924. enableval=$enable_video_directfb;
  21925. else $as_nop
  21926. enable_video_directfb=no
  21927. fi
  21928. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  21929. pkg_failed=no
  21930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  21931. printf %s "checking for directfb >= 1.0.0... " >&6; }
  21932. if test -n "$DIRECTFB_CFLAGS"; then
  21933. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  21934. elif test -n "$PKG_CONFIG"; then
  21935. if test -n "$PKG_CONFIG" && \
  21936. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21937. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21938. ac_status=$?
  21939. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21940. test $ac_status = 0; }; then
  21941. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  21942. test "x$?" != "x0" && pkg_failed=yes
  21943. else
  21944. pkg_failed=yes
  21945. fi
  21946. else
  21947. pkg_failed=untried
  21948. fi
  21949. if test -n "$DIRECTFB_LIBS"; then
  21950. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  21951. elif test -n "$PKG_CONFIG"; then
  21952. if test -n "$PKG_CONFIG" && \
  21953. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21954. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21955. ac_status=$?
  21956. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21957. test $ac_status = 0; }; then
  21958. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  21959. test "x$?" != "x0" && pkg_failed=yes
  21960. else
  21961. pkg_failed=yes
  21962. fi
  21963. else
  21964. pkg_failed=untried
  21965. fi
  21966. if test $pkg_failed = yes; then
  21967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21968. printf "%s\n" "no" >&6; }
  21969. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21970. _pkg_short_errors_supported=yes
  21971. else
  21972. _pkg_short_errors_supported=no
  21973. fi
  21974. if test $_pkg_short_errors_supported = yes; then
  21975. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21976. else
  21977. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21978. fi
  21979. # Put the nasty error message in config.log where it belongs
  21980. echo "$DIRECTFB_PKG_ERRORS" >&5
  21981. video_directfb=no
  21982. elif test $pkg_failed = untried; then
  21983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21984. printf "%s\n" "no" >&6; }
  21985. video_directfb=no
  21986. else
  21987. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  21988. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  21989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21990. printf "%s\n" "yes" >&6; }
  21991. video_directfb=yes
  21992. fi
  21993. if test x$video_directfb = xyes; then
  21994. # SuSE 11.1 installs directfb-config without directfb-devel
  21995. save_CPPFLAGS="$CPPFLAGS"
  21996. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  21997. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  21998. if test "x$ac_cv_header_directfb_h" = xyes
  21999. then :
  22000. have_directfb_hdr=yes
  22001. else $as_nop
  22002. have_directfb_hdr=no
  22003. fi
  22004. CPPFLAGS="$save_CPPFLAGS"
  22005. video_directfb=$have_directfb_hdr
  22006. fi
  22007. if test x$video_directfb = xyes; then
  22008. # Check whether --enable-directfb-shared was given.
  22009. if test ${enable_directfb_shared+y}
  22010. then :
  22011. enableval=$enable_directfb_shared;
  22012. else $as_nop
  22013. enable_directfb_shared=yes
  22014. fi
  22015. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  22016. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  22017. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  22018. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  22019. directfb_shared=no
  22020. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  22021. if test x$have_loadso != xyes && \
  22022. test x$enable_directfb_shared = xyes; then
  22023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  22024. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  22025. fi
  22026. if test x$have_loadso = xyes && \
  22027. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  22028. directfb_shared=yes
  22029. echo "-- dynamic libdirectfb -> $directfb_lib"
  22030. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  22031. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  22032. else
  22033. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  22034. SUMMARY_video="${SUMMARY_video} directfb"
  22035. fi
  22036. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  22037. have_video=yes
  22038. fi
  22039. fi
  22040. }
  22041. CheckKMSDRM()
  22042. {
  22043. # Check whether --enable-video-kmsdrm was given.
  22044. if test ${enable_video_kmsdrm+y}
  22045. then :
  22046. enableval=$enable_video_kmsdrm;
  22047. else $as_nop
  22048. enable_video_kmsdrm=yes
  22049. fi
  22050. if test x$enable_video = xyes && \
  22051. test x$enable_video_kmsdrm = xyes && \
  22052. test x$video_opengl_egl = xyes; then
  22053. video_kmsdrm=no
  22054. pkg_failed=no
  22055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  22056. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  22057. if test -n "$LIBDRM_CFLAGS"; then
  22058. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  22059. elif test -n "$PKG_CONFIG"; then
  22060. if test -n "$PKG_CONFIG" && \
  22061. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22062. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22063. ac_status=$?
  22064. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22065. test $ac_status = 0; }; then
  22066. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  22067. test "x$?" != "x0" && pkg_failed=yes
  22068. else
  22069. pkg_failed=yes
  22070. fi
  22071. else
  22072. pkg_failed=untried
  22073. fi
  22074. if test -n "$LIBDRM_LIBS"; then
  22075. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  22076. elif test -n "$PKG_CONFIG"; then
  22077. if test -n "$PKG_CONFIG" && \
  22078. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22079. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22080. ac_status=$?
  22081. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22082. test $ac_status = 0; }; then
  22083. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  22084. test "x$?" != "x0" && pkg_failed=yes
  22085. else
  22086. pkg_failed=yes
  22087. fi
  22088. else
  22089. pkg_failed=untried
  22090. fi
  22091. if test $pkg_failed = yes; then
  22092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22093. printf "%s\n" "no" >&6; }
  22094. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22095. _pkg_short_errors_supported=yes
  22096. else
  22097. _pkg_short_errors_supported=no
  22098. fi
  22099. if test $_pkg_short_errors_supported = yes; then
  22100. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22101. else
  22102. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22103. fi
  22104. # Put the nasty error message in config.log where it belongs
  22105. echo "$LIBDRM_PKG_ERRORS" >&5
  22106. libdrm_avail=no
  22107. elif test $pkg_failed = untried; then
  22108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22109. printf "%s\n" "no" >&6; }
  22110. libdrm_avail=no
  22111. else
  22112. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  22113. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  22114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22115. printf "%s\n" "yes" >&6; }
  22116. libdrm_avail=yes
  22117. fi
  22118. pkg_failed=no
  22119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  22120. printf %s "checking for gbm >= 11.1.0... " >&6; }
  22121. if test -n "$LIBGBM_CFLAGS"; then
  22122. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  22123. elif test -n "$PKG_CONFIG"; then
  22124. if test -n "$PKG_CONFIG" && \
  22125. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22126. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22127. ac_status=$?
  22128. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22129. test $ac_status = 0; }; then
  22130. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  22131. test "x$?" != "x0" && pkg_failed=yes
  22132. else
  22133. pkg_failed=yes
  22134. fi
  22135. else
  22136. pkg_failed=untried
  22137. fi
  22138. if test -n "$LIBGBM_LIBS"; then
  22139. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  22140. elif test -n "$PKG_CONFIG"; then
  22141. if test -n "$PKG_CONFIG" && \
  22142. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22143. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22144. ac_status=$?
  22145. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22146. test $ac_status = 0; }; then
  22147. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22148. test "x$?" != "x0" && pkg_failed=yes
  22149. else
  22150. pkg_failed=yes
  22151. fi
  22152. else
  22153. pkg_failed=untried
  22154. fi
  22155. if test $pkg_failed = yes; then
  22156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22157. printf "%s\n" "no" >&6; }
  22158. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22159. _pkg_short_errors_supported=yes
  22160. else
  22161. _pkg_short_errors_supported=no
  22162. fi
  22163. if test $_pkg_short_errors_supported = yes; then
  22164. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22165. else
  22166. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22167. fi
  22168. # Put the nasty error message in config.log where it belongs
  22169. echo "$LIBGBM_PKG_ERRORS" >&5
  22170. libgbm_avail=no
  22171. elif test $pkg_failed = untried; then
  22172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22173. printf "%s\n" "no" >&6; }
  22174. libgbm_avail=no
  22175. else
  22176. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22177. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22179. printf "%s\n" "yes" >&6; }
  22180. libgbm_avail=yes
  22181. fi
  22182. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22183. video_kmsdrm=yes
  22184. fi
  22185. if test x$video_kmsdrm = xyes; then
  22186. # Check whether --enable-kmsdrm-shared was given.
  22187. if test ${enable_kmsdrm_shared+y}
  22188. then :
  22189. enableval=$enable_kmsdrm_shared;
  22190. else $as_nop
  22191. enable_kmsdrm_shared=yes
  22192. fi
  22193. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22194. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22195. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22197. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22198. kmsdrm_shared=no
  22199. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22200. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22201. if test x$have_loadso != xyes && \
  22202. test x$enable_kmsdrm_shared = xyes; then
  22203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22204. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22205. fi
  22206. if test x$have_loadso = xyes && \
  22207. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22208. kmsdrm_shared=yes
  22209. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22210. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22211. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22212. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22213. else
  22214. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22215. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22216. fi
  22217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22218. printf "%s\n" "$kmsdrm_shared" >&6; }
  22219. if test x$kmsdrm_shared = xyes; then
  22220. echo "-- dynamic libdrm -> $drm_lib"
  22221. echo "-- dynamic libgbm -> $gbm_lib"
  22222. fi
  22223. have_video=yes
  22224. fi
  22225. fi
  22226. }
  22227. CheckDummyVideo()
  22228. {
  22229. # Check whether --enable-video-dummy was given.
  22230. if test ${enable_video_dummy+y}
  22231. then :
  22232. enableval=$enable_video_dummy;
  22233. else $as_nop
  22234. enable_video_dummy=yes
  22235. fi
  22236. if test x$enable_video_dummy = xyes; then
  22237. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22238. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22239. have_video=yes
  22240. SUMMARY_video="${SUMMARY_video} dummy"
  22241. fi
  22242. }
  22243. CheckOffscreenVideo()
  22244. {
  22245. # Check whether --enable-video-offscreen was given.
  22246. if test ${enable_video_offscreen+y}
  22247. then :
  22248. enableval=$enable_video_offscreen;
  22249. else $as_nop
  22250. enable_video_offscreen=yes
  22251. fi
  22252. if test x$enable_video_offscreen = xyes; then
  22253. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22254. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22255. have_video=yes
  22256. SUMMARY_video="${SUMMARY_video} offscreen"
  22257. fi
  22258. }
  22259. CheckQNXVideo()
  22260. {
  22261. if test x$enable_video = xyes; then
  22262. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22263. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22264. have_video=yes
  22265. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22266. SUMMARY_video="${SUMMARY_video} qnx"
  22267. fi
  22268. }
  22269. CheckQNXAudio()
  22270. {
  22271. if test x$enable_audio = xyes; then
  22272. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22273. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22274. have_audio=yes
  22275. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22276. SUMMARY_audio="${SUMMARY_audio} qsa"
  22277. fi
  22278. }
  22279. # Check whether --enable-video-opengl was given.
  22280. if test ${enable_video_opengl+y}
  22281. then :
  22282. enableval=$enable_video_opengl;
  22283. else $as_nop
  22284. enable_video_opengl=yes
  22285. fi
  22286. CheckGLX()
  22287. {
  22288. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22290. printf %s "checking for GLX support... " >&6; }
  22291. video_opengl_glx=no
  22292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22293. /* end confdefs.h. */
  22294. #include <GL/glx.h>
  22295. int
  22296. main (void)
  22297. {
  22298. ;
  22299. return 0;
  22300. }
  22301. _ACEOF
  22302. if ac_fn_c_try_compile "$LINENO"
  22303. then :
  22304. video_opengl_glx=yes
  22305. fi
  22306. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22308. printf "%s\n" "$video_opengl_glx" >&6; }
  22309. if test x$video_opengl_glx = xyes; then
  22310. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22311. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22312. fi
  22313. fi
  22314. }
  22315. # Check whether --enable-video-opengles was given.
  22316. if test ${enable_video_opengles+y}
  22317. then :
  22318. enableval=$enable_video_opengles;
  22319. else $as_nop
  22320. enable_video_opengles=yes
  22321. fi
  22322. # Check whether --enable-video-opengles1 was given.
  22323. if test ${enable_video_opengles1+y}
  22324. then :
  22325. enableval=$enable_video_opengles1;
  22326. else $as_nop
  22327. enable_video_opengles1=yes
  22328. fi
  22329. # Check whether --enable-video-opengles2 was given.
  22330. if test ${enable_video_opengles2+y}
  22331. then :
  22332. enableval=$enable_video_opengles2;
  22333. else $as_nop
  22334. enable_video_opengles2=yes
  22335. fi
  22336. CheckEGL()
  22337. {
  22338. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22340. printf %s "checking for EGL support... " >&6; }
  22341. video_opengl_egl=no
  22342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22343. /* end confdefs.h. */
  22344. #define LINUX
  22345. #define EGL_API_FB
  22346. #define MESA_EGL_NO_X11_HEADERS
  22347. #define EGL_NO_X11
  22348. #include <EGL/egl.h>
  22349. #include <EGL/eglext.h>
  22350. int
  22351. main (void)
  22352. {
  22353. ;
  22354. return 0;
  22355. }
  22356. _ACEOF
  22357. if ac_fn_c_try_compile "$LINENO"
  22358. then :
  22359. video_opengl_egl=yes
  22360. fi
  22361. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22363. printf "%s\n" "$video_opengl_egl" >&6; }
  22364. if test x$video_opengl_egl = xyes; then
  22365. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22366. fi
  22367. fi
  22368. }
  22369. CheckOpenGL()
  22370. {
  22371. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22373. printf %s "checking for OpenGL headers... " >&6; }
  22374. video_opengl=no
  22375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22376. /* end confdefs.h. */
  22377. #include <GL/gl.h>
  22378. #include <GL/glext.h>
  22379. int
  22380. main (void)
  22381. {
  22382. ;
  22383. return 0;
  22384. }
  22385. _ACEOF
  22386. if ac_fn_c_try_compile "$LINENO"
  22387. then :
  22388. video_opengl=yes
  22389. fi
  22390. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22392. printf "%s\n" "$video_opengl" >&6; }
  22393. if test x$video_opengl = xyes; then
  22394. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22395. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22396. SUMMARY_video="${SUMMARY_video} opengl"
  22397. fi
  22398. fi
  22399. }
  22400. CheckOpenGLES()
  22401. {
  22402. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22403. if test x$enable_video_opengles1 = xyes; then
  22404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22405. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22406. video_opengles_v1=no
  22407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22408. /* end confdefs.h. */
  22409. #include <GLES/gl.h>
  22410. #include <GLES/glext.h>
  22411. int
  22412. main (void)
  22413. {
  22414. ;
  22415. return 0;
  22416. }
  22417. _ACEOF
  22418. if ac_fn_c_try_compile "$LINENO"
  22419. then :
  22420. video_opengles_v1=yes
  22421. fi
  22422. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22424. printf "%s\n" "$video_opengles_v1" >&6; }
  22425. if test x$video_opengles_v1 = xyes; then
  22426. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22427. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22428. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22429. fi
  22430. fi
  22431. if test x$enable_video_opengles2 = xyes; then
  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. fi
  22460. }
  22461. CheckWINDOWSGL()
  22462. {
  22463. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22464. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22465. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22466. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22467. SUMMARY_video="${SUMMARY_video} opengl"
  22468. fi
  22469. }
  22470. CheckWINDOWSGLES()
  22471. {
  22472. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22474. printf %s "checking for EGL support... " >&6; }
  22475. video_opengl_egl=no
  22476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22477. /* end confdefs.h. */
  22478. #include <EGL/egl.h>
  22479. int
  22480. main (void)
  22481. {
  22482. ;
  22483. return 0;
  22484. }
  22485. _ACEOF
  22486. if ac_fn_c_try_compile "$LINENO"
  22487. then :
  22488. video_opengl_egl=yes
  22489. fi
  22490. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22492. printf "%s\n" "$video_opengl_egl" >&6; }
  22493. if test x$video_opengl_egl = xyes; then
  22494. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22495. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22496. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22497. fi
  22498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22499. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22500. video_opengles_v2=no
  22501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22502. /* end confdefs.h. */
  22503. #include <GLES2/gl2.h>
  22504. #include <GLES2/gl2ext.h>
  22505. int
  22506. main (void)
  22507. {
  22508. ;
  22509. return 0;
  22510. }
  22511. _ACEOF
  22512. if ac_fn_c_try_compile "$LINENO"
  22513. then :
  22514. video_opengles_v2=yes
  22515. fi
  22516. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22518. printf "%s\n" "$video_opengles_v2" >&6; }
  22519. if test x$video_opengles_v2 = xyes; then
  22520. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22521. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22522. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22523. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22524. fi
  22525. fi
  22526. }
  22527. CheckHaikuGL()
  22528. {
  22529. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22530. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22531. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22532. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22533. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22534. SUMMARY_video="${SUMMARY_video} opengl"
  22535. fi
  22536. }
  22537. CheckMacGL()
  22538. {
  22539. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22540. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22541. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22542. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22543. SUMMARY_video="${SUMMARY_video} opengl"
  22544. fi
  22545. }
  22546. CheckMacGLES()
  22547. {
  22548. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22549. video_opengl_egl=yes
  22550. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22551. video_opengles_v2=yes
  22552. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22553. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22554. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22555. fi
  22556. }
  22557. CheckEmscriptenGLES()
  22558. {
  22559. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22561. printf %s "checking for EGL support... " >&6; }
  22562. video_opengl_egl=no
  22563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22564. /* end confdefs.h. */
  22565. #include <EGL/egl.h>
  22566. int
  22567. main (void)
  22568. {
  22569. ;
  22570. return 0;
  22571. }
  22572. _ACEOF
  22573. if ac_fn_c_try_compile "$LINENO"
  22574. then :
  22575. video_opengl_egl=yes
  22576. fi
  22577. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22579. printf "%s\n" "$video_opengl_egl" >&6; }
  22580. if test x$video_opengl_egl = xyes; then
  22581. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22582. fi
  22583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22584. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22585. video_opengles_v2=no
  22586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22587. /* end confdefs.h. */
  22588. #include <GLES2/gl2.h>
  22589. #include <GLES2/gl2ext.h>
  22590. int
  22591. main (void)
  22592. {
  22593. ;
  22594. return 0;
  22595. }
  22596. _ACEOF
  22597. if ac_fn_c_try_compile "$LINENO"
  22598. then :
  22599. video_opengles_v2=yes
  22600. fi
  22601. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22603. printf "%s\n" "$video_opengles_v2" >&6; }
  22604. if test x$video_opengles_v2 = xyes; then
  22605. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22606. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22607. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22608. fi
  22609. fi
  22610. }
  22611. # Check whether --enable-video-vulkan was given.
  22612. if test ${enable_video_vulkan+y}
  22613. then :
  22614. enableval=$enable_video_vulkan;
  22615. else $as_nop
  22616. enable_video_vulkan=yes
  22617. fi
  22618. CheckVulkan()
  22619. {
  22620. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22621. case "$host" in
  22622. *-*-android*)
  22623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22624. /* end confdefs.h. */
  22625. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22626. #error Vulkan doesn't work on this configuration
  22627. #endif
  22628. int
  22629. main (void)
  22630. {
  22631. ;
  22632. return 0;
  22633. }
  22634. _ACEOF
  22635. if ac_fn_c_try_compile "$LINENO"
  22636. then :
  22637. else $as_nop
  22638. enable_video_vulkan=no
  22639. fi
  22640. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22641. ;;
  22642. *-*-darwin*)
  22643. save_CFLAGS="$CFLAGS"
  22644. CFLAGS="$CFLAGS -x objective-c"
  22645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22646. /* end confdefs.h. */
  22647. #include <Cocoa/Cocoa.h>
  22648. #include <Metal/Metal.h>
  22649. #include <QuartzCore/CAMetalLayer.h>
  22650. #if TARGET_CPU_X86
  22651. #error Vulkan doesn't work on this configuration
  22652. #endif
  22653. int
  22654. main (void)
  22655. {
  22656. ;
  22657. return 0;
  22658. }
  22659. _ACEOF
  22660. if ac_fn_c_try_compile "$LINENO"
  22661. then :
  22662. else $as_nop
  22663. enable_video_vulkan=no
  22664. fi
  22665. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22666. CFLAGS="$save_CFLAGS"
  22667. ;;
  22668. *)
  22669. ;;
  22670. esac
  22671. if test x$enable_video_vulkan = xno; then
  22672. # For reasons I am totally unable to see, I get an undefined macro error if
  22673. # I put this in the AC_TRY_COMPILE.
  22674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22675. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22676. fi
  22677. fi
  22678. if test x$have_loadso != xyes; then
  22679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22680. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22681. enable_video_vulkan=no
  22682. fi
  22683. if test x$enable_video_vulkan = xyes; then
  22684. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22685. SUMMARY_video="${SUMMARY_video} vulkan"
  22686. fi
  22687. }
  22688. CheckInputEvents()
  22689. {
  22690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22691. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22692. use_input_events=no
  22693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22694. /* end confdefs.h. */
  22695. #include <linux/input.h>
  22696. int
  22697. main (void)
  22698. {
  22699. #ifndef EVIOCGNAME
  22700. #error EVIOCGNAME() ioctl not available
  22701. #endif
  22702. ;
  22703. return 0;
  22704. }
  22705. _ACEOF
  22706. if ac_fn_c_try_compile "$LINENO"
  22707. then :
  22708. use_input_events=yes
  22709. fi
  22710. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22712. printf "%s\n" "$use_input_events" >&6; }
  22713. if test x$use_input_events = xyes; then
  22714. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22715. SUMMARY_input="${SUMMARY_input} linuxev"
  22716. fi
  22717. }
  22718. CheckInputKD()
  22719. {
  22720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22721. printf %s "checking for Linux kd.h... " >&6; }
  22722. use_input_kd=no
  22723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22724. /* end confdefs.h. */
  22725. #include <linux/kd.h>
  22726. #include <linux/keyboard.h>
  22727. #include <sys/ioctl.h>
  22728. int
  22729. main (void)
  22730. {
  22731. struct kbentry kbe;
  22732. kbe.kb_table = KG_CTRL;
  22733. ioctl(0, KDGKBENT, &kbe);
  22734. ;
  22735. return 0;
  22736. }
  22737. _ACEOF
  22738. if ac_fn_c_try_compile "$LINENO"
  22739. then :
  22740. use_input_kd=yes
  22741. fi
  22742. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22744. printf "%s\n" "$use_input_kd" >&6; }
  22745. if test x$use_input_kd = xyes; then
  22746. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22747. SUMMARY_input="${SUMMARY_input} linuxkd"
  22748. fi
  22749. }
  22750. CheckInputKBIO()
  22751. {
  22752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22753. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22754. use_input_kbio=no
  22755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22756. /* end confdefs.h. */
  22757. #include <sys/kbio.h>
  22758. #include <sys/ioctl.h>
  22759. int
  22760. main (void)
  22761. {
  22762. accentmap_t accTable;
  22763. ioctl(0, KDENABIO, 1);
  22764. ;
  22765. return 0;
  22766. }
  22767. _ACEOF
  22768. if ac_fn_c_try_compile "$LINENO"
  22769. then :
  22770. use_input_kbio=yes
  22771. fi
  22772. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22774. printf "%s\n" "$use_input_kbio" >&6; }
  22775. if test x$use_input_kbio = xyes; then
  22776. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22777. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22778. fi
  22779. }
  22780. CheckInputWSCONS()
  22781. {
  22782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22783. printf %s "checking for OpenBSD wscons... " >&6; }
  22784. use_input_wscons=no
  22785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22786. /* end confdefs.h. */
  22787. #include <sys/time.h>
  22788. #include <dev/wscons/wsconsio.h>
  22789. #include <dev/wscons/wsksymdef.h>
  22790. #include <dev/wscons/wsksymvar.h>
  22791. #include <sys/ioctl.h>
  22792. int
  22793. main (void)
  22794. {
  22795. struct wskbd_map_data data;
  22796. ioctl(0, WSKBDIO_GETMAP, &data);
  22797. ;
  22798. return 0;
  22799. }
  22800. _ACEOF
  22801. if ac_fn_c_try_compile "$LINENO"
  22802. then :
  22803. use_input_wscons=yes
  22804. fi
  22805. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  22807. printf "%s\n" "$use_input_wscons" >&6; }
  22808. if test x$use_input_wscons = xyes; then
  22809. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  22810. SUMMARY_input="${SUMMARY_input} wscons"
  22811. fi
  22812. }
  22813. CheckLibUDev()
  22814. {
  22815. # Check whether --enable-libudev was given.
  22816. if test ${enable_libudev+y}
  22817. then :
  22818. enableval=$enable_libudev;
  22819. else $as_nop
  22820. enable_libudev=yes
  22821. fi
  22822. if test x$enable_libudev = xyes; then
  22823. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  22824. if test "x$ac_cv_header_libudev_h" = xyes
  22825. then :
  22826. have_libudev_h_hdr=yes
  22827. else $as_nop
  22828. have_libudev_h_hdr=no
  22829. fi
  22830. if test x$have_libudev_h_hdr = xyes; then
  22831. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  22832. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22833. if test x$udev_lib != x; then
  22834. echo "-- dynamic udev -> $udev_lib"
  22835. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  22836. fi
  22837. fi
  22838. fi
  22839. }
  22840. CheckDBus()
  22841. {
  22842. # Check whether --enable-dbus was given.
  22843. if test ${enable_dbus+y}
  22844. then :
  22845. enableval=$enable_dbus;
  22846. else $as_nop
  22847. enable_dbus=yes
  22848. fi
  22849. if test x$enable_dbus = xyes; then
  22850. pkg_failed=no
  22851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  22852. printf %s "checking for dbus-1... " >&6; }
  22853. if test -n "$DBUS_CFLAGS"; then
  22854. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  22855. elif test -n "$PKG_CONFIG"; then
  22856. if test -n "$PKG_CONFIG" && \
  22857. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22858. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22859. ac_status=$?
  22860. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22861. test $ac_status = 0; }; then
  22862. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  22863. test "x$?" != "x0" && pkg_failed=yes
  22864. else
  22865. pkg_failed=yes
  22866. fi
  22867. else
  22868. pkg_failed=untried
  22869. fi
  22870. if test -n "$DBUS_LIBS"; then
  22871. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  22872. elif test -n "$PKG_CONFIG"; then
  22873. if test -n "$PKG_CONFIG" && \
  22874. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22875. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22876. ac_status=$?
  22877. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22878. test $ac_status = 0; }; then
  22879. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  22880. test "x$?" != "x0" && pkg_failed=yes
  22881. else
  22882. pkg_failed=yes
  22883. fi
  22884. else
  22885. pkg_failed=untried
  22886. fi
  22887. if test $pkg_failed = yes; then
  22888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22889. printf "%s\n" "no" >&6; }
  22890. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22891. _pkg_short_errors_supported=yes
  22892. else
  22893. _pkg_short_errors_supported=no
  22894. fi
  22895. if test $_pkg_short_errors_supported = yes; then
  22896. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  22897. else
  22898. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  22899. fi
  22900. # Put the nasty error message in config.log where it belongs
  22901. echo "$DBUS_PKG_ERRORS" >&5
  22902. have_dbus=no
  22903. elif test $pkg_failed = untried; then
  22904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22905. printf "%s\n" "no" >&6; }
  22906. have_dbus=no
  22907. else
  22908. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  22909. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  22910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22911. printf "%s\n" "yes" >&6; }
  22912. have_dbus=yes
  22913. fi
  22914. save_CPPFLAGS="$CPPFLAGS"
  22915. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  22916. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  22917. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  22918. then :
  22919. have_dbus_dbus_h_hdr=yes
  22920. else $as_nop
  22921. have_dbus_dbus_h_hdr=no
  22922. fi
  22923. CPPFLAGS="$save_CPPFLAGS"
  22924. if test x$have_dbus_dbus_h_hdr = xyes; then
  22925. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  22926. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  22927. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  22928. fi
  22929. fi
  22930. }
  22931. CheckIME()
  22932. {
  22933. # Check whether --enable-ime was given.
  22934. if test ${enable_ime+y}
  22935. then :
  22936. enableval=$enable_ime;
  22937. else $as_nop
  22938. enable_ime=yes
  22939. fi
  22940. if test x$enable_ime = xyes; then
  22941. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  22942. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  22943. fi
  22944. }
  22945. CheckInotify()
  22946. {
  22947. save_LIBS="$LIBS"
  22948. case "$host" in
  22949. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  22950. ;;
  22951. esac
  22952. for ac_header in sys/inotify.h
  22953. do :
  22954. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  22955. if test "x$ac_cv_header_sys_inotify_h" = xyes
  22956. then :
  22957. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  22958. have_inotify_inotify_h_hdr=yes
  22959. fi
  22960. done
  22961. for ac_func in inotify_init
  22962. do :
  22963. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  22964. if test "x$ac_cv_func_inotify_init" = xyes
  22965. then :
  22966. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  22967. have_inotify=yes
  22968. fi
  22969. done
  22970. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  22971. if test "x$ac_cv_func_inotify_init1" = xyes
  22972. then :
  22973. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  22974. fi
  22975. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  22976. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  22977. case "$host" in
  22978. *-*-freebsd*|*-*-dragonfly*)
  22979. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  22980. ;;
  22981. esac
  22982. fi
  22983. LIBS="$save_LIBS"
  22984. }
  22985. CheckIBus()
  22986. {
  22987. # Check whether --enable-ibus was given.
  22988. if test ${enable_ibus+y}
  22989. then :
  22990. enableval=$enable_ibus;
  22991. else $as_nop
  22992. enable_ibus=yes
  22993. fi
  22994. if test x$enable_ibus = xyes; then
  22995. pkg_failed=no
  22996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22997. printf %s "checking for ibus-1.0... " >&6; }
  22998. if test -n "$IBUS_CFLAGS"; then
  22999. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  23000. elif test -n "$PKG_CONFIG"; then
  23001. if test -n "$PKG_CONFIG" && \
  23002. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23003. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23004. ac_status=$?
  23005. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23006. test $ac_status = 0; }; then
  23007. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  23008. test "x$?" != "x0" && pkg_failed=yes
  23009. else
  23010. pkg_failed=yes
  23011. fi
  23012. else
  23013. pkg_failed=untried
  23014. fi
  23015. if test -n "$IBUS_LIBS"; then
  23016. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  23017. elif test -n "$PKG_CONFIG"; then
  23018. if test -n "$PKG_CONFIG" && \
  23019. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23020. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23021. ac_status=$?
  23022. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23023. test $ac_status = 0; }; then
  23024. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  23025. test "x$?" != "x0" && pkg_failed=yes
  23026. else
  23027. pkg_failed=yes
  23028. fi
  23029. else
  23030. pkg_failed=untried
  23031. fi
  23032. if test $pkg_failed = yes; then
  23033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23034. printf "%s\n" "no" >&6; }
  23035. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23036. _pkg_short_errors_supported=yes
  23037. else
  23038. _pkg_short_errors_supported=no
  23039. fi
  23040. if test $_pkg_short_errors_supported = yes; then
  23041. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23042. else
  23043. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23044. fi
  23045. # Put the nasty error message in config.log where it belongs
  23046. echo "$IBUS_PKG_ERRORS" >&5
  23047. have_ibus=no
  23048. elif test $pkg_failed = untried; then
  23049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23050. printf "%s\n" "no" >&6; }
  23051. have_ibus=no
  23052. else
  23053. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  23054. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  23055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23056. printf "%s\n" "yes" >&6; }
  23057. have_ibus=yes
  23058. fi
  23059. save_CPPFLAGS="$CPPFLAGS"
  23060. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  23061. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  23062. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  23063. then :
  23064. have_ibus_ibus_h_hdr=yes
  23065. else $as_nop
  23066. have_ibus_ibus_h_hdr=no
  23067. fi
  23068. CPPFLAGS="$save_CPPFLAGS"
  23069. if test x$have_ibus_ibus_h_hdr = xyes; then
  23070. if test x$enable_ime != xyes; then
  23071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  23072. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  23073. have_ibus_ibus_h_hdr=no
  23074. elif test x$enable_dbus != xyes; then
  23075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  23076. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  23077. have_ibus_ibus_h_hdr=no
  23078. elif test x$have_inotify_inotify_h_hdr != xyes; then
  23079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  23080. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  23081. have_ibus_ibus_h_hdr=no
  23082. else
  23083. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  23084. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  23085. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  23086. fi
  23087. fi
  23088. fi
  23089. }
  23090. CheckFcitx()
  23091. {
  23092. # Check whether --enable-fcitx was given.
  23093. if test ${enable_fcitx+y}
  23094. then :
  23095. enableval=$enable_fcitx;
  23096. else $as_nop
  23097. enable_fcitx=yes
  23098. fi
  23099. if test x$enable_fcitx = xyes; then
  23100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  23101. printf %s "checking for fcitx support... " >&6; }
  23102. have_fcitx=no
  23103. if test x$enable_ime != xyes; then
  23104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  23105. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  23106. elif test x$have_dbus_dbus_h_hdr != xyes; then
  23107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  23108. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  23109. else
  23110. have_fcitx=yes
  23111. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  23112. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  23113. fi
  23114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  23115. printf "%s\n" "$have_fcitx" >&6; }
  23116. fi
  23117. }
  23118. CheckJoystickMFI()
  23119. {
  23120. # Check whether --enable-joystick-mfi was given.
  23121. if test ${enable_joystick_mfi+y}
  23122. then :
  23123. enableval=$enable_joystick_mfi;
  23124. else $as_nop
  23125. enable_joystick_mfi=yes
  23126. fi
  23127. if test x$enable_joystick_mfi = xyes; then
  23128. save_CFLAGS="$CFLAGS"
  23129. save_LDFLAGS="$LDFLAGS"
  23130. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  23131. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  23133. printf %s "checking for GameController framework... " >&6; }
  23134. enable_joystick_mfi=no
  23135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23136. /* end confdefs.h. */
  23137. #include <AvailabilityMacros.h>
  23138. #include <TargetConditionals.h>
  23139. #import <GameController/GameController.h>
  23140. int
  23141. main (void)
  23142. {
  23143. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23144. #error GameController framework doesn't work on this configuration
  23145. #endif
  23146. #if TARGET_CPU_X86
  23147. #error GameController framework doesn't work on this configuration
  23148. #endif
  23149. ;
  23150. return 0;
  23151. }
  23152. _ACEOF
  23153. if ac_fn_c_try_link "$LINENO"
  23154. then :
  23155. enable_joystick_mfi=yes
  23156. fi
  23157. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23158. conftest$ac_exeext conftest.$ac_ext
  23159. CFLAGS="$save_CFLAGS"
  23160. LDFLAGS="$save_LDFLAGS"
  23161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23162. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23163. if test x$enable_joystick_mfi = xyes; then
  23164. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23165. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23166. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23167. fi
  23168. fi
  23169. }
  23170. CheckPTHREAD()
  23171. {
  23172. case "$host" in
  23173. *-*-emscripten*)
  23174. enable_pthreads_default=no
  23175. ;;
  23176. *)
  23177. enable_pthreads_default=yes
  23178. ;;
  23179. esac
  23180. # Check whether --enable-pthreads was given.
  23181. if test ${enable_pthreads+y}
  23182. then :
  23183. enableval=$enable_pthreads;
  23184. else $as_nop
  23185. enable_pthreads=maybe
  23186. fi
  23187. # Check whether --enable-pthread-sem was given.
  23188. if test ${enable_pthread_sem+y}
  23189. then :
  23190. enableval=$enable_pthread_sem;
  23191. else $as_nop
  23192. enable_pthread_sem=maybe
  23193. fi
  23194. if test x$enable_pthreads = xmaybe; then
  23195. enable_pthreads=$enable_pthreads_default
  23196. fi
  23197. if test x$enable_pthread_sem = xmaybe; then
  23198. enable_pthread_sem=$enable_pthreads
  23199. fi
  23200. case "$host" in
  23201. *-*-android*)
  23202. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23203. pthread_lib=""
  23204. ;;
  23205. *-*-linux*|*-*-uclinux*)
  23206. pthread_cflags="-D_REENTRANT"
  23207. pthread_lib="-lpthread"
  23208. ;;
  23209. *-*-bsdi*)
  23210. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23211. pthread_lib=""
  23212. ;;
  23213. *-*-darwin*)
  23214. pthread_cflags="-D_THREAD_SAFE"
  23215. # causes Carbon.p complaints?
  23216. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23217. ;;
  23218. *-*-freebsd*|*-*-dragonfly*)
  23219. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23220. pthread_lib="-pthread"
  23221. ;;
  23222. *-*-netbsd*)
  23223. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23224. pthread_lib="-lpthread"
  23225. ;;
  23226. *-*-openbsd*)
  23227. pthread_cflags="-D_REENTRANT"
  23228. pthread_lib="-lpthread"
  23229. ;;
  23230. *-*-solaris2.9)
  23231. # From Solaris 9+, posix4's preferred name is rt.
  23232. pthread_cflags="-D_REENTRANT"
  23233. pthread_lib="-lpthread -lrt"
  23234. ;;
  23235. *-*-solaris2.10)
  23236. # Solaris 10+ merged pthread into libc.
  23237. pthread_cflags="-D_REENTRANT"
  23238. pthread_lib="-lrt"
  23239. ;;
  23240. *-*-solaris*)
  23241. # Solaris 11+ merged rt into libc.
  23242. pthread_cflags="-D_REENTRANT"
  23243. pthread_lib=""
  23244. ;;
  23245. *-*-sysv5*)
  23246. pthread_cflags="-D_REENTRANT -Kthread"
  23247. pthread_lib=""
  23248. ;;
  23249. *-*-aix*)
  23250. pthread_cflags="-D_REENTRANT -mthreads"
  23251. pthread_lib="-lpthread"
  23252. ;;
  23253. *-*-hpux11*)
  23254. pthread_cflags="-D_REENTRANT"
  23255. pthread_lib="-L/usr/lib -lpthread"
  23256. ;;
  23257. *-*-haiku*)
  23258. pthread_cflags="-D_REENTRANT"
  23259. pthread_lib=""
  23260. ;;
  23261. *-*-nto*)
  23262. pthread_cflags="-D_REENTRANT"
  23263. pthread_lib=""
  23264. ;;
  23265. *-*-emscripten*)
  23266. pthread_cflags="-D_REENTRANT -pthread"
  23267. pthread_lib="-pthread"
  23268. ;;
  23269. *)
  23270. pthread_cflags="-D_REENTRANT"
  23271. pthread_lib="-lpthread"
  23272. ;;
  23273. esac
  23274. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23275. # Save the original compiler flags and libraries
  23276. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23277. # Add the pthread compiler flags and libraries
  23278. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23279. # Check to see if we have pthread support on this system
  23280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23281. printf %s "checking for pthreads... " >&6; }
  23282. use_pthreads=no
  23283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23284. /* end confdefs.h. */
  23285. #include <pthread.h>
  23286. int
  23287. main (void)
  23288. {
  23289. pthread_attr_t type;
  23290. pthread_attr_init(&type);
  23291. ;
  23292. return 0;
  23293. }
  23294. _ACEOF
  23295. if ac_fn_c_try_link "$LINENO"
  23296. then :
  23297. use_pthreads=yes
  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: $use_pthreads" >&5
  23302. printf "%s\n" "$use_pthreads" >&6; }
  23303. # Restore the compiler flags and libraries
  23304. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23305. # Do futher testing if we have pthread support...
  23306. if test x$use_pthreads = xyes; then
  23307. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23308. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23309. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23310. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23311. # Save the original compiler flags and libraries
  23312. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23313. # Add the pthread compiler flags and libraries
  23314. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23315. # Check to see if recursive mutexes are available
  23316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23317. printf %s "checking for recursive mutexes... " >&6; }
  23318. has_recursive_mutexes=no
  23319. if test x$has_recursive_mutexes = xno; then
  23320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23321. /* end confdefs.h. */
  23322. #define _GNU_SOURCE 1
  23323. #include <pthread.h>
  23324. int
  23325. main (void)
  23326. {
  23327. pthread_mutexattr_t attr;
  23328. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23329. ;
  23330. return 0;
  23331. }
  23332. _ACEOF
  23333. if ac_fn_c_try_link "$LINENO"
  23334. then :
  23335. has_recursive_mutexes=yes
  23336. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23337. fi
  23338. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23339. conftest$ac_exeext conftest.$ac_ext
  23340. fi
  23341. if test x$has_recursive_mutexes = xno; then
  23342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23343. /* end confdefs.h. */
  23344. #define _GNU_SOURCE 1
  23345. #include <pthread.h>
  23346. int
  23347. main (void)
  23348. {
  23349. pthread_mutexattr_t attr;
  23350. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23351. ;
  23352. return 0;
  23353. }
  23354. _ACEOF
  23355. if ac_fn_c_try_link "$LINENO"
  23356. then :
  23357. has_recursive_mutexes=yes
  23358. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23359. fi
  23360. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23361. conftest$ac_exeext conftest.$ac_ext
  23362. fi
  23363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23364. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23365. # Check to see if pthread semaphore support is missing
  23366. if test x$enable_pthread_sem = xyes; then
  23367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23368. printf %s "checking for pthread semaphores... " >&6; }
  23369. have_pthread_sem=no
  23370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23371. /* end confdefs.h. */
  23372. #include <pthread.h>
  23373. #include <semaphore.h>
  23374. int
  23375. main (void)
  23376. {
  23377. ;
  23378. return 0;
  23379. }
  23380. _ACEOF
  23381. if ac_fn_c_try_compile "$LINENO"
  23382. then :
  23383. have_pthread_sem=yes
  23384. fi
  23385. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23387. printf "%s\n" "$have_pthread_sem" >&6; }
  23388. fi
  23389. if test x$have_pthread_sem = xyes; then
  23390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23391. printf %s "checking for sem_timedwait... " >&6; }
  23392. have_sem_timedwait=no
  23393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23394. /* end confdefs.h. */
  23395. #include <pthread.h>
  23396. #include <semaphore.h>
  23397. int
  23398. main (void)
  23399. {
  23400. sem_timedwait(NULL, NULL);
  23401. ;
  23402. return 0;
  23403. }
  23404. _ACEOF
  23405. if ac_fn_c_try_link "$LINENO"
  23406. then :
  23407. have_sem_timedwait=yes
  23408. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23409. fi
  23410. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23411. conftest$ac_exeext conftest.$ac_ext
  23412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23413. printf "%s\n" "$have_sem_timedwait" >&6; }
  23414. fi
  23415. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23416. "
  23417. if test "x$ac_cv_header_pthread_np_h" = xyes
  23418. then :
  23419. have_pthread_np_h=yes
  23420. else $as_nop
  23421. have_pthread_np_h=no
  23422. fi
  23423. if test x$have_pthread_np_h = xyes; then
  23424. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23425. fi
  23426. # Check to see if pthread naming is available
  23427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23428. printf %s "checking for pthread_setname_np... " >&6; }
  23429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23430. /* end confdefs.h. */
  23431. /* Override any GCC internal prototype to avoid an error.
  23432. Use char because int might match the return type of a GCC
  23433. builtin and then its argument prototype would still apply. */
  23434. char pthread_setname_np ();
  23435. int
  23436. main (void)
  23437. {
  23438. return pthread_setname_np ();
  23439. ;
  23440. return 0;
  23441. }
  23442. _ACEOF
  23443. if ac_fn_c_try_link "$LINENO"
  23444. then :
  23445. has_pthread_setname_np=yes
  23446. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23447. else $as_nop
  23448. has_pthread_setname_np=no
  23449. fi
  23450. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23451. conftest$ac_exeext conftest.$ac_ext
  23452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23453. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23455. printf %s "checking for pthread_set_name_np... " >&6; }
  23456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23457. /* end confdefs.h. */
  23458. /* Override any GCC internal prototype to avoid an error.
  23459. Use char because int might match the return type of a GCC
  23460. builtin and then its argument prototype would still apply. */
  23461. char pthread_set_name_np ();
  23462. int
  23463. main (void)
  23464. {
  23465. return pthread_set_name_np ();
  23466. ;
  23467. return 0;
  23468. }
  23469. _ACEOF
  23470. if ac_fn_c_try_link "$LINENO"
  23471. then :
  23472. has_pthread_set_name_np=yes
  23473. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23474. else $as_nop
  23475. has_pthread_set_name_np=no
  23476. fi
  23477. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23478. conftest$ac_exeext conftest.$ac_ext
  23479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23480. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23481. # Restore the compiler flags and libraries
  23482. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23483. # Basic thread creation functions
  23484. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23485. # Semaphores
  23486. # We can fake these with mutexes and condition variables if necessary
  23487. if test x$have_pthread_sem = xyes; then
  23488. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23489. else
  23490. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23491. fi
  23492. # Mutexes
  23493. # We can fake these with semaphores if necessary
  23494. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23495. # Condition variables
  23496. # We can fake these with semaphores and mutexes if necessary
  23497. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23498. # Thread local storage
  23499. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23500. have_threads=yes
  23501. fi
  23502. fi
  23503. }
  23504. CheckWINDOWS()
  23505. {
  23506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23507. printf %s "checking Windows compiler... " >&6; }
  23508. have_win32_gcc=no
  23509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23510. /* end confdefs.h. */
  23511. #include <windows.h>
  23512. int
  23513. main (void)
  23514. {
  23515. ;
  23516. return 0;
  23517. }
  23518. _ACEOF
  23519. if ac_fn_c_try_compile "$LINENO"
  23520. then :
  23521. have_win32_gcc=yes
  23522. fi
  23523. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23525. printf "%s\n" "$have_win32_gcc" >&6; }
  23526. if test x$have_win32_gcc != xyes; then
  23527. as_fn_error $? "
  23528. *** Your compiler ($CC) does not produce Windows executables!
  23529. " "$LINENO" 5
  23530. fi
  23531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23532. printf %s "checking Windows CE... " >&6; }
  23533. have_wince=no
  23534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23535. /* end confdefs.h. */
  23536. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23537. #error This is not Windows CE
  23538. #endif
  23539. int
  23540. main (void)
  23541. {
  23542. ;
  23543. return 0;
  23544. }
  23545. _ACEOF
  23546. if ac_fn_c_try_compile "$LINENO"
  23547. then :
  23548. have_wince=yes
  23549. as_fn_error $? "
  23550. *** Sorry, Windows CE is no longer supported.
  23551. " "$LINENO" 5
  23552. fi
  23553. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23555. printf "%s\n" "$have_wince" >&6; }
  23556. # This fixes Windows stack alignment with newer GCC
  23557. CheckStackBoundary
  23558. # headers needed elsewhere
  23559. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23560. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23561. then :
  23562. have_tpcshrd_h=yes
  23563. fi
  23564. if test x$have_tpcshrd_h = xyes; then
  23565. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23566. fi
  23567. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23568. if test "x$ac_cv_header_roapi_h" = xyes
  23569. then :
  23570. have_roapi_h=yes
  23571. fi
  23572. if test x$have_roapi_h = xyes; then
  23573. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23574. fi
  23575. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23576. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23577. then :
  23578. have_shellscalingapi_h=yes
  23579. fi
  23580. if test x$shellscalingapi_h = xyes; then
  23581. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23582. fi
  23583. }
  23584. CheckOS2()
  23585. {
  23586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23587. printf %s "checking OS/2 compiler... " >&6; }
  23588. have_os2_gcc=no
  23589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23590. /* end confdefs.h. */
  23591. #include <os2.h>
  23592. int
  23593. main (void)
  23594. {
  23595. ;
  23596. return 0;
  23597. }
  23598. _ACEOF
  23599. if ac_fn_c_try_compile "$LINENO"
  23600. then :
  23601. have_os2_gcc=yes
  23602. fi
  23603. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23605. printf "%s\n" "$have_os2_gcc" >&6; }
  23606. if test x$have_os2_gcc != xyes; then
  23607. as_fn_error $? "
  23608. *** Your compiler ($CC) does not produce OS/2 executables!
  23609. " "$LINENO" 5
  23610. fi
  23611. }
  23612. CheckDIRECTX()
  23613. {
  23614. # Check whether --enable-directx was given.
  23615. if test ${enable_directx+y}
  23616. then :
  23617. enableval=$enable_directx;
  23618. else $as_nop
  23619. enable_directx=yes
  23620. fi
  23621. if test x$enable_directx = xyes; then
  23622. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23623. if test "x$ac_cv_header_d3d9_h" = xyes
  23624. then :
  23625. have_d3d=yes
  23626. fi
  23627. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23628. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23629. then :
  23630. have_d3d11=yes
  23631. fi
  23632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  23633. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  23634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23635. /* end confdefs.h. */
  23636. #include <winsdkver.h>
  23637. #include <sdkddkver.h>
  23638. #include <d3d12.h>
  23639. ID3D12Device1 *device;
  23640. #if WDK_NTDDI_VERSION <= 0x0A000008
  23641. asdf
  23642. #endif
  23643. int
  23644. main (void)
  23645. {
  23646. ;
  23647. return 0;
  23648. }
  23649. _ACEOF
  23650. if ac_fn_c_try_compile "$LINENO"
  23651. then :
  23652. have_d3d12=yes
  23653. else $as_nop
  23654. have_d3d12=no
  23655. fi
  23656. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23658. printf "%s\n" "$have_d3d12" >&6; }
  23659. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23660. if test "x$ac_cv_header_ddraw_h" = xyes
  23661. then :
  23662. have_ddraw=yes
  23663. fi
  23664. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23665. if test "x$ac_cv_header_dsound_h" = xyes
  23666. then :
  23667. have_dsound=yes
  23668. fi
  23669. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23670. if test "x$ac_cv_header_dinput_h" = xyes
  23671. then :
  23672. have_dinput=yes
  23673. fi
  23674. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23675. if test "x$ac_cv_header_dxgi_h" = xyes
  23676. then :
  23677. have_dxgi=yes
  23678. fi
  23679. if test x$have_ddraw = xyes; then
  23680. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23681. fi
  23682. if test x$have_dinput = xyes; then
  23683. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23684. fi
  23685. if test x$have_dsound = xyes; then
  23686. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23687. fi
  23688. if test x$have_dxgi = xyes; then
  23689. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23690. fi
  23691. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23692. # FIXME: ...so force it off for now.
  23693. case "$host" in
  23694. *-*-cygwin*)
  23695. have_dinput=false
  23696. ;;
  23697. esac
  23698. fi
  23699. # Check whether --enable-xinput was given.
  23700. if test ${enable_xinput+y}
  23701. then :
  23702. enableval=$enable_xinput;
  23703. else $as_nop
  23704. enable_xinput=yes
  23705. fi
  23706. if test x$enable_xinput = xyes; then
  23707. have_xinput_gamepadex=no
  23708. have_xinput_stateex=no
  23709. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23710. if test "x$ac_cv_header_xinput_h" = xyes
  23711. then :
  23712. have_xinput=yes
  23713. fi
  23714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  23715. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  23716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23717. /* end confdefs.h. */
  23718. #include <windows.h>
  23719. #include <xinput.h>
  23720. XINPUT_GAMEPAD_EX x1;
  23721. int
  23722. main (void)
  23723. {
  23724. ;
  23725. return 0;
  23726. }
  23727. _ACEOF
  23728. if ac_fn_c_try_compile "$LINENO"
  23729. then :
  23730. have_xinput_gamepadex=yes
  23731. fi
  23732. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  23734. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  23735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  23736. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  23737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23738. /* end confdefs.h. */
  23739. #include <windows.h>
  23740. #include <xinput.h>
  23741. XINPUT_STATE_EX s1;
  23742. int
  23743. main (void)
  23744. {
  23745. ;
  23746. return 0;
  23747. }
  23748. _ACEOF
  23749. if ac_fn_c_try_compile "$LINENO"
  23750. then :
  23751. have_xinput_stateex=yes
  23752. fi
  23753. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  23755. printf "%s\n" "$have_xinput_stateex" >&6; }
  23756. if test x$have_xinput = xyes; then
  23757. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23758. fi
  23759. if test x$have_xinput_gamepadex = xyes; then
  23760. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  23761. fi
  23762. if test x$have_xinput_stateex = xyes; then
  23763. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  23764. fi
  23765. fi
  23766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23767. printf %s "checking for windows.gaming.input.h... " >&6; }
  23768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23769. /* end confdefs.h. */
  23770. #define COBJMACROS
  23771. #include <windows.gaming.input.h>
  23772. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23773. int
  23774. main (void)
  23775. {
  23776. ;
  23777. return 0;
  23778. }
  23779. _ACEOF
  23780. if ac_fn_c_try_compile "$LINENO"
  23781. then :
  23782. have_wgi=yes
  23783. else $as_nop
  23784. have_wgi=no
  23785. fi
  23786. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23788. printf "%s\n" "$have_wgi" >&6; }
  23789. if test x$have_wgi = xyes; then
  23790. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23791. fi
  23792. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23793. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23794. then :
  23795. have_wasapi=yes
  23796. fi
  23797. if test x$have_wasapi = xyes; then
  23798. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23799. fi
  23800. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23801. if test "x$ac_cv_header_audioclient_h" = xyes
  23802. then :
  23803. else $as_nop
  23804. have_wasapi=no
  23805. fi
  23806. if test x$have_wasapi = xyes; then
  23807. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23808. fi
  23809. # Check whether --enable-wasapi was given.
  23810. if test ${enable_wasapi+y}
  23811. then :
  23812. enableval=$enable_wasapi;
  23813. else $as_nop
  23814. enable_wasapi=yes
  23815. fi
  23816. }
  23817. CheckDLOPEN()
  23818. {
  23819. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23820. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23821. if test "x$ac_cv_header_dlfcn_h" = xyes
  23822. then :
  23823. have_dlfcn_h=yes
  23824. else $as_nop
  23825. have_dlfcn_h=no
  23826. fi
  23827. have_dlopen=no
  23828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23829. printf %s "checking for dlopen in -lc... " >&6; }
  23830. if test ${ac_cv_lib_c_dlopen+y}
  23831. then :
  23832. printf %s "(cached) " >&6
  23833. else $as_nop
  23834. ac_check_lib_save_LIBS=$LIBS
  23835. LIBS="-lc $LIBS"
  23836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23837. /* end confdefs.h. */
  23838. /* Override any GCC internal prototype to avoid an error.
  23839. Use char because int might match the return type of a GCC
  23840. builtin and then its argument prototype would still apply. */
  23841. char dlopen ();
  23842. int
  23843. main (void)
  23844. {
  23845. return dlopen ();
  23846. ;
  23847. return 0;
  23848. }
  23849. _ACEOF
  23850. if ac_fn_c_try_link "$LINENO"
  23851. then :
  23852. ac_cv_lib_c_dlopen=yes
  23853. else $as_nop
  23854. ac_cv_lib_c_dlopen=no
  23855. fi
  23856. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23857. conftest$ac_exeext conftest.$ac_ext
  23858. LIBS=$ac_check_lib_save_LIBS
  23859. fi
  23860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  23861. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  23862. if test "x$ac_cv_lib_c_dlopen" = xyes
  23863. then :
  23864. have_dlopen=yes
  23865. else $as_nop
  23866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  23867. printf %s "checking for dlopen in -ldl... " >&6; }
  23868. if test ${ac_cv_lib_dl_dlopen+y}
  23869. then :
  23870. printf %s "(cached) " >&6
  23871. else $as_nop
  23872. ac_check_lib_save_LIBS=$LIBS
  23873. LIBS="-ldl $LIBS"
  23874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23875. /* end confdefs.h. */
  23876. /* Override any GCC internal prototype to avoid an error.
  23877. Use char because int might match the return type of a GCC
  23878. builtin and then its argument prototype would still apply. */
  23879. char dlopen ();
  23880. int
  23881. main (void)
  23882. {
  23883. return dlopen ();
  23884. ;
  23885. return 0;
  23886. }
  23887. _ACEOF
  23888. if ac_fn_c_try_link "$LINENO"
  23889. then :
  23890. ac_cv_lib_dl_dlopen=yes
  23891. else $as_nop
  23892. ac_cv_lib_dl_dlopen=no
  23893. fi
  23894. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23895. conftest$ac_exeext conftest.$ac_ext
  23896. LIBS=$ac_check_lib_save_LIBS
  23897. fi
  23898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  23899. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  23900. if test "x$ac_cv_lib_dl_dlopen" = xyes
  23901. then :
  23902. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  23903. fi
  23904. fi
  23905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  23906. printf %s "checking for dlopen... " >&6; }
  23907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  23908. printf "%s\n" "$have_dlopen" >&6; }
  23909. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  23910. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  23911. if test x$enable_loadso = xyes; then
  23912. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  23913. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  23914. have_loadso=yes
  23915. fi
  23916. fi
  23917. }
  23918. CheckO_CLOEXEC()
  23919. {
  23920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  23921. printf %s "checking for O_CLOEXEC... " >&6; }
  23922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23923. /* end confdefs.h. */
  23924. #include <fcntl.h>
  23925. int flag = O_CLOEXEC;
  23926. int
  23927. main (void)
  23928. {
  23929. ;
  23930. return 0;
  23931. }
  23932. _ACEOF
  23933. if ac_fn_c_try_compile "$LINENO"
  23934. then :
  23935. have_o_cloexec=yes
  23936. else $as_nop
  23937. have_o_cloexec=no
  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_o_cloexec" >&5
  23941. printf "%s\n" "$have_o_cloexec" >&6; }
  23942. if test $have_o_cloexec = yes; then
  23943. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  23944. fi
  23945. }
  23946. CheckUSBHID()
  23947. {
  23948. case "$host" in
  23949. *-*-*bsd*|*-*-dragonfly*)
  23950. if test x$enable_joystick = xyes; then
  23951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  23952. printf %s "checking for hid_init in -lusbhid... " >&6; }
  23953. if test ${ac_cv_lib_usbhid_hid_init+y}
  23954. then :
  23955. printf %s "(cached) " >&6
  23956. else $as_nop
  23957. ac_check_lib_save_LIBS=$LIBS
  23958. LIBS="-lusbhid $LIBS"
  23959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23960. /* end confdefs.h. */
  23961. /* Override any GCC internal prototype to avoid an error.
  23962. Use char because int might match the return type of a GCC
  23963. builtin and then its argument prototype would still apply. */
  23964. char hid_init ();
  23965. int
  23966. main (void)
  23967. {
  23968. return hid_init ();
  23969. ;
  23970. return 0;
  23971. }
  23972. _ACEOF
  23973. if ac_fn_c_try_link "$LINENO"
  23974. then :
  23975. ac_cv_lib_usbhid_hid_init=yes
  23976. else $as_nop
  23977. ac_cv_lib_usbhid_hid_init=no
  23978. fi
  23979. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23980. conftest$ac_exeext conftest.$ac_ext
  23981. LIBS=$ac_check_lib_save_LIBS
  23982. fi
  23983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  23984. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  23985. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  23986. then :
  23987. have_libusbhid=yes
  23988. fi
  23989. if test x$have_libusbhid = xyes; then
  23990. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  23991. if test "x$ac_cv_header_usbhid_h" = xyes
  23992. then :
  23993. USB_CFLAGS="-DHAVE_USBHID_H"
  23994. fi
  23995. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  23996. if test "x$ac_cv_header_libusbhid_h" = xyes
  23997. then :
  23998. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  23999. fi
  24000. USB_LIBS="$USB_LIBS -lusbhid"
  24001. else
  24002. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  24003. if test "x$ac_cv_header_usb_h" = xyes
  24004. then :
  24005. USB_CFLAGS="-DHAVE_USB_H"
  24006. fi
  24007. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24008. if test "x$ac_cv_header_libusb_h" = xyes
  24009. then :
  24010. USB_CFLAGS="-DHAVE_LIBUSB_H"
  24011. fi
  24012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  24013. printf %s "checking for hid_init in -lusb... " >&6; }
  24014. if test ${ac_cv_lib_usb_hid_init+y}
  24015. then :
  24016. printf %s "(cached) " >&6
  24017. else $as_nop
  24018. ac_check_lib_save_LIBS=$LIBS
  24019. LIBS="-lusb $LIBS"
  24020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24021. /* end confdefs.h. */
  24022. /* Override any GCC internal prototype to avoid an error.
  24023. Use char because int might match the return type of a GCC
  24024. builtin and then its argument prototype would still apply. */
  24025. char hid_init ();
  24026. int
  24027. main (void)
  24028. {
  24029. return hid_init ();
  24030. ;
  24031. return 0;
  24032. }
  24033. _ACEOF
  24034. if ac_fn_c_try_link "$LINENO"
  24035. then :
  24036. ac_cv_lib_usb_hid_init=yes
  24037. else $as_nop
  24038. ac_cv_lib_usb_hid_init=no
  24039. fi
  24040. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24041. conftest$ac_exeext conftest.$ac_ext
  24042. LIBS=$ac_check_lib_save_LIBS
  24043. fi
  24044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  24045. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  24046. if test "x$ac_cv_lib_usb_hid_init" = xyes
  24047. then :
  24048. USB_LIBS="$USB_LIBS -lusb"
  24049. fi
  24050. fi
  24051. save_CFLAGS="$CFLAGS"
  24052. CFLAGS="$CFLAGS $USB_CFLAGS"
  24053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  24054. printf %s "checking for usbhid... " >&6; }
  24055. have_usbhid=no
  24056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24057. /* end confdefs.h. */
  24058. #include <sys/types.h>
  24059. #if defined(HAVE_USB_H)
  24060. #include <usb.h>
  24061. #endif
  24062. #ifdef __DragonFly__
  24063. # include <bus/u4b/usb.h>
  24064. # include <bus/u4b/usbhid.h>
  24065. #else
  24066. # include <dev/usb/usb.h>
  24067. # include <dev/usb/usbhid.h>
  24068. #endif
  24069. #if defined(HAVE_USBHID_H)
  24070. #include <usbhid.h>
  24071. #elif defined(HAVE_LIBUSB_H)
  24072. #include <libusb.h>
  24073. #elif defined(HAVE_LIBUSBHID_H)
  24074. #include <libusbhid.h>
  24075. #endif
  24076. int
  24077. main (void)
  24078. {
  24079. struct report_desc *repdesc;
  24080. struct usb_ctl_report *repbuf;
  24081. hid_kind_t hidkind;
  24082. ;
  24083. return 0;
  24084. }
  24085. _ACEOF
  24086. if ac_fn_c_try_compile "$LINENO"
  24087. then :
  24088. have_usbhid=yes
  24089. fi
  24090. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  24092. printf "%s\n" "$have_usbhid" >&6; }
  24093. if test x$have_usbhid = xyes; then
  24094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  24095. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  24096. have_usbhid_ucr_data=no
  24097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24098. /* end confdefs.h. */
  24099. #include <sys/types.h>
  24100. #if defined(HAVE_USB_H)
  24101. #include <usb.h>
  24102. #endif
  24103. #ifdef __DragonFly__
  24104. # include <bus/u4b/usb.h>
  24105. # include <bus/u4b/usbhid.h>
  24106. #else
  24107. # include <dev/usb/usb.h>
  24108. # include <dev/usb/usbhid.h>
  24109. #endif
  24110. #if defined(HAVE_USBHID_H)
  24111. #include <usbhid.h>
  24112. #elif defined(HAVE_LIBUSB_H)
  24113. #include <libusb.h>
  24114. #elif defined(HAVE_LIBUSBHID_H)
  24115. #include <libusbhid.h>
  24116. #endif
  24117. int
  24118. main (void)
  24119. {
  24120. struct usb_ctl_report buf;
  24121. if (buf.ucr_data) { }
  24122. ;
  24123. return 0;
  24124. }
  24125. _ACEOF
  24126. if ac_fn_c_try_compile "$LINENO"
  24127. then :
  24128. have_usbhid_ucr_data=yes
  24129. fi
  24130. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24131. if test x$have_usbhid_ucr_data = xyes; then
  24132. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  24133. fi
  24134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  24135. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  24136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  24137. printf %s "checking for new usbhid API... " >&6; }
  24138. have_usbhid_new=no
  24139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24140. /* end confdefs.h. */
  24141. #include <sys/types.h>
  24142. #if defined(HAVE_USB_H)
  24143. #include <usb.h>
  24144. #endif
  24145. #ifdef __DragonFly__
  24146. #include <bus/u4b/usb.h>
  24147. #include <bus/u4b/usbhid.h>
  24148. #else
  24149. #include <dev/usb/usb.h>
  24150. #include <dev/usb/usbhid.h>
  24151. #endif
  24152. #if defined(HAVE_USBHID_H)
  24153. #include <usbhid.h>
  24154. #elif defined(HAVE_LIBUSB_H)
  24155. #include <libusb.h>
  24156. #elif defined(HAVE_LIBUSBHID_H)
  24157. #include <libusbhid.h>
  24158. #endif
  24159. int
  24160. main (void)
  24161. {
  24162. report_desc_t d;
  24163. hid_start_parse(d, 1, 1);
  24164. ;
  24165. return 0;
  24166. }
  24167. _ACEOF
  24168. if ac_fn_c_try_compile "$LINENO"
  24169. then :
  24170. have_usbhid_new=yes
  24171. fi
  24172. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24173. if test x$have_usbhid_new = xyes; then
  24174. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24175. fi
  24176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24177. printf "%s\n" "$have_usbhid_new" >&6; }
  24178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24179. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24180. have_machine_joystick=no
  24181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24182. /* end confdefs.h. */
  24183. #include <machine/joystick.h>
  24184. int
  24185. main (void)
  24186. {
  24187. struct joystick t;
  24188. ;
  24189. return 0;
  24190. }
  24191. _ACEOF
  24192. if ac_fn_c_try_compile "$LINENO"
  24193. then :
  24194. have_machine_joystick=yes
  24195. fi
  24196. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24197. if test x$have_machine_joystick = xyes; then
  24198. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24199. fi
  24200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24201. printf "%s\n" "$have_machine_joystick" >&6; }
  24202. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24203. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24204. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24205. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24206. have_joystick=yes
  24207. fi
  24208. CFLAGS="$save_CFLAGS"
  24209. fi
  24210. ;;
  24211. esac
  24212. }
  24213. CheckHIDAPI()
  24214. {
  24215. # Check whether --enable-hidapi-joystick was given.
  24216. if test ${enable_hidapi_joystick+y}
  24217. then :
  24218. enableval=$enable_hidapi_joystick;
  24219. else $as_nop
  24220. enable_hidapi_joystick=yes
  24221. fi
  24222. # Check whether --enable-hidapi-libusb was given.
  24223. if test ${enable_hidapi_libusb+y}
  24224. then :
  24225. enableval=$enable_hidapi_libusb;
  24226. else $as_nop
  24227. enable_hidapi_libusb=maybe
  24228. fi
  24229. if test x$enable_hidapi = xyes; then
  24230. case "$host" in
  24231. # libusb does not support iOS
  24232. *-ios-* )
  24233. enable_hidapi_libusb=no
  24234. ;;
  24235. # On the other hand, *BSD specifically uses libusb only
  24236. *-*-*bsd* )
  24237. enable_hidapi_libusb=yes
  24238. require_hidapi_libusb=yes
  24239. ;;
  24240. *-*-os2* )
  24241. enable_hidapi_libusb=yes
  24242. ;;
  24243. esac
  24244. hidapi_support=yes
  24245. if test x$enable_hidapi_libusb = xyes; then
  24246. pkg_failed=no
  24247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24248. printf %s "checking for libusb-1.0... " >&6; }
  24249. if test -n "$LIBUSB_CFLAGS"; then
  24250. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24251. elif test -n "$PKG_CONFIG"; then
  24252. if test -n "$PKG_CONFIG" && \
  24253. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24254. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24255. ac_status=$?
  24256. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24257. test $ac_status = 0; }; then
  24258. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24259. test "x$?" != "x0" && pkg_failed=yes
  24260. else
  24261. pkg_failed=yes
  24262. fi
  24263. else
  24264. pkg_failed=untried
  24265. fi
  24266. if test -n "$LIBUSB_LIBS"; then
  24267. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24268. elif test -n "$PKG_CONFIG"; then
  24269. if test -n "$PKG_CONFIG" && \
  24270. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24271. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24272. ac_status=$?
  24273. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24274. test $ac_status = 0; }; then
  24275. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24276. test "x$?" != "x0" && pkg_failed=yes
  24277. else
  24278. pkg_failed=yes
  24279. fi
  24280. else
  24281. pkg_failed=untried
  24282. fi
  24283. if test $pkg_failed = yes; then
  24284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24285. printf "%s\n" "no" >&6; }
  24286. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24287. _pkg_short_errors_supported=yes
  24288. else
  24289. _pkg_short_errors_supported=no
  24290. fi
  24291. if test $_pkg_short_errors_supported = yes; then
  24292. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24293. else
  24294. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24295. fi
  24296. # Put the nasty error message in config.log where it belongs
  24297. echo "$LIBUSB_PKG_ERRORS" >&5
  24298. have_libusb=no
  24299. elif test $pkg_failed = untried; then
  24300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24301. printf "%s\n" "no" >&6; }
  24302. have_libusb=no
  24303. else
  24304. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24305. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24307. printf "%s\n" "yes" >&6; }
  24308. have_libusb=yes
  24309. fi
  24310. save_CPPFLAGS="$CPPFLAGS"
  24311. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24312. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24313. if test "x$ac_cv_header_libusb_h" = xyes
  24314. then :
  24315. have_libusb_h=yes
  24316. else $as_nop
  24317. have_libusb_h=no
  24318. fi
  24319. CPPFLAGS="$save_CPPFLAGS"
  24320. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24321. hidapi_support=no
  24322. fi
  24323. fi
  24324. if test x$hidapi_support = xyes; then
  24325. if test x$have_libusb_h = xyes; then
  24326. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24327. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24328. if test x$require_hidapi_libusb = xyes; then
  24329. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24330. else
  24331. if test x$have_loadso != xyes; then
  24332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24333. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24334. fi
  24335. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24336. libusb_lib=""
  24337. case "$host" in
  24338. *-*-darwin* )
  24339. libusb_lib="libusb-1.0.0.dylib"
  24340. ;;
  24341. *-*-cygwin* | *-*-mingw* )
  24342. libusb_lib="libusb-1.0.dll"
  24343. ;;
  24344. *-*-os2* )
  24345. libusb_lib="usb100.dll"
  24346. ;;
  24347. esac
  24348. if test x$libusb_lib = x; then
  24349. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24350. fi
  24351. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24352. fi
  24353. fi
  24354. fi
  24355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24356. printf %s "checking for hidapi joystick support... " >&6; }
  24357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24358. printf "%s\n" "$hidapi_support" >&6; }
  24359. fi
  24360. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24361. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24362. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24363. fi
  24364. }
  24365. CheckClockGettime()
  24366. {
  24367. # Check whether --enable-clock_gettime was given.
  24368. if test ${enable_clock_gettime+y}
  24369. then :
  24370. enableval=$enable_clock_gettime;
  24371. else $as_nop
  24372. enable_clock_gettime=yes
  24373. fi
  24374. if test x$enable_clock_gettime = xyes; then
  24375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24376. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24377. if test ${ac_cv_lib_rt_clock_gettime+y}
  24378. then :
  24379. printf %s "(cached) " >&6
  24380. else $as_nop
  24381. ac_check_lib_save_LIBS=$LIBS
  24382. LIBS="-lrt $LIBS"
  24383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24384. /* end confdefs.h. */
  24385. /* Override any GCC internal prototype to avoid an error.
  24386. Use char because int might match the return type of a GCC
  24387. builtin and then its argument prototype would still apply. */
  24388. char clock_gettime ();
  24389. int
  24390. main (void)
  24391. {
  24392. return clock_gettime ();
  24393. ;
  24394. return 0;
  24395. }
  24396. _ACEOF
  24397. if ac_fn_c_try_link "$LINENO"
  24398. then :
  24399. ac_cv_lib_rt_clock_gettime=yes
  24400. else $as_nop
  24401. ac_cv_lib_rt_clock_gettime=no
  24402. fi
  24403. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24404. conftest$ac_exeext conftest.$ac_ext
  24405. LIBS=$ac_check_lib_save_LIBS
  24406. fi
  24407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24408. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24409. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24410. then :
  24411. have_clock_gettime=yes
  24412. fi
  24413. if test x$have_clock_gettime = xyes; then
  24414. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24415. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24416. else
  24417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24418. printf %s "checking for clock_gettime in -lc... " >&6; }
  24419. if test ${ac_cv_lib_c_clock_gettime+y}
  24420. then :
  24421. printf %s "(cached) " >&6
  24422. else $as_nop
  24423. ac_check_lib_save_LIBS=$LIBS
  24424. LIBS="-lc $LIBS"
  24425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24426. /* end confdefs.h. */
  24427. /* Override any GCC internal prototype to avoid an error.
  24428. Use char because int might match the return type of a GCC
  24429. builtin and then its argument prototype would still apply. */
  24430. char clock_gettime ();
  24431. int
  24432. main (void)
  24433. {
  24434. return clock_gettime ();
  24435. ;
  24436. return 0;
  24437. }
  24438. _ACEOF
  24439. if ac_fn_c_try_link "$LINENO"
  24440. then :
  24441. ac_cv_lib_c_clock_gettime=yes
  24442. else $as_nop
  24443. ac_cv_lib_c_clock_gettime=no
  24444. fi
  24445. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24446. conftest$ac_exeext conftest.$ac_ext
  24447. LIBS=$ac_check_lib_save_LIBS
  24448. fi
  24449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24450. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24451. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24452. then :
  24453. have_clock_gettime=yes
  24454. fi
  24455. if test x$have_clock_gettime = xyes; then
  24456. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24457. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  24458. fi
  24459. fi
  24460. fi
  24461. }
  24462. CheckLinuxVersion()
  24463. {
  24464. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24465. if test "x$ac_cv_header_linux_version_h" = xyes
  24466. then :
  24467. have_linux_version_h=yes
  24468. fi
  24469. if test x$have_linux_version_h = xyes; then
  24470. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24471. fi
  24472. }
  24473. CheckRPATH()
  24474. {
  24475. # Check whether --enable-rpath was given.
  24476. if test ${enable_rpath+y}
  24477. then :
  24478. enableval=$enable_rpath;
  24479. else $as_nop
  24480. enable_rpath=yes
  24481. fi
  24482. }
  24483. CheckEventSignals()
  24484. {
  24485. # Check whether --enable-backgrounding-signal was given.
  24486. if test ${enable_backgrounding_signal+y}
  24487. then :
  24488. enableval=$enable_backgrounding_signal;
  24489. else $as_nop
  24490. enable_backgrounding_signal=no
  24491. fi
  24492. if test x$enable_backgrounding_signal != xno; then
  24493. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24494. fi
  24495. # Check whether --enable-foregrounding-signal was given.
  24496. if test ${enable_foregrounding_signal+y}
  24497. then :
  24498. enableval=$enable_foregrounding_signal;
  24499. else $as_nop
  24500. enable_foregrounding_signal=no
  24501. fi
  24502. if test x$enable_foregrounding_signal != xno; then
  24503. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24504. fi
  24505. }
  24506. CheckVirtualJoystick()
  24507. {
  24508. # Check whether --enable-joystick-virtual was given.
  24509. if test ${enable_joystick_virtual+y}
  24510. then :
  24511. enableval=$enable_joystick_virtual;
  24512. else $as_nop
  24513. enable_joystick_virtual=yes
  24514. fi
  24515. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24516. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24517. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24518. have_joystick_virtual=yes
  24519. fi
  24520. }
  24521. CheckWarnAll
  24522. CheckNoStrictAliasing
  24523. CheckEventSignals
  24524. have_locale=no
  24525. case "$host" in
  24526. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24527. case "$host" in
  24528. *-*-android*)
  24529. # Android
  24530. ARCH=android
  24531. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24532. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24533. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24534. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24535. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24536. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24537. if test x$enable_video = xyes; then
  24538. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24539. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24540. SUMMARY_video="${SUMMARY_video} android"
  24541. have_video=yes
  24542. fi
  24543. ;;
  24544. *-*-linux*) ARCH=linux ;;
  24545. *-*-uclinux*) ARCH=linux ;;
  24546. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24547. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24548. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24549. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24550. *-*-bsdi*) ARCH=bsdi ;;
  24551. *-*-freebsd*) ARCH=freebsd ;;
  24552. *-*-dragonfly*) ARCH=freebsd ;;
  24553. *-*-netbsd*) ARCH=netbsd ;;
  24554. *-*-openbsd*) ARCH=openbsd ;;
  24555. *-*-sysv5*) ARCH=sysv5 ;;
  24556. *-*-solaris*) ARCH=solaris ;;
  24557. *-*-hpux*) ARCH=hpux ;;
  24558. *-*-aix*) ARCH=aix ;;
  24559. *-*-minix*) ARCH=minix ;;
  24560. *-*-nto*) ARCH=nto
  24561. CheckQNXVideo
  24562. ;;
  24563. esac
  24564. CheckVisibilityHidden
  24565. CheckWerror
  24566. CheckDeclarationAfterStatement
  24567. CheckDummyVideo
  24568. CheckOffscreenVideo
  24569. CheckDiskAudio
  24570. CheckDummyAudio
  24571. CheckDLOPEN
  24572. CheckARM
  24573. CheckNEON
  24574. CheckO_CLOEXEC
  24575. CheckOSS
  24576. CheckALSA
  24577. CheckPipewire
  24578. CheckPulseAudio
  24579. CheckJACK
  24580. CheckARTSC
  24581. CheckESD
  24582. CheckNAS
  24583. CheckSNDIO
  24584. CheckFusionSound
  24585. CheckLibSampleRate
  24586. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24587. CheckRPI
  24588. CheckX11
  24589. CheckDirectFB
  24590. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24591. CheckEGL
  24592. CheckKMSDRM
  24593. CheckGLX
  24594. CheckOpenGL
  24595. CheckOpenGLES
  24596. CheckVulkan
  24597. CheckWayland
  24598. CheckInputEvents
  24599. CheckLibUDev
  24600. CheckDBus
  24601. CheckIME
  24602. CheckInotify
  24603. CheckIBus
  24604. CheckFcitx
  24605. case $ARCH in
  24606. linux)
  24607. CheckInputKD
  24608. ;;
  24609. freebsd)
  24610. CheckInputKBIO
  24611. ;;
  24612. openbsd|netbsd)
  24613. CheckInputWSCONS
  24614. ;;
  24615. esac
  24616. CheckUSBHID
  24617. CheckHIDAPI
  24618. CheckPTHREAD
  24619. CheckClockGettime
  24620. CheckLinuxVersion
  24621. CheckRPATH
  24622. CheckVivanteVideo
  24623. # Set up files for the misc library
  24624. if test x$enable_misc = xyes; then
  24625. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24626. have_misc=yes
  24627. fi
  24628. # Set up files for the locale library
  24629. if test x$enable_locale = xyes; then
  24630. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24631. have_locale=yes
  24632. fi
  24633. # Set up files for the audio library
  24634. if test x$enable_audio = xyes; then
  24635. case $ARCH in
  24636. sysv5|solaris|hpux)
  24637. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24638. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24639. SUMMARY_audio="${SUMMARY_audio} sun"
  24640. have_audio=yes
  24641. ;;
  24642. netbsd) # Don't use this on OpenBSD, it's busted.
  24643. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24644. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24645. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24646. have_audio=yes
  24647. ;;
  24648. aix)
  24649. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24650. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24651. SUMMARY_audio="${SUMMARY_audio} paudio"
  24652. have_audio=yes
  24653. ;;
  24654. android)
  24655. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24656. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24657. SUMMARY_audio="${SUMMARY_audio} android"
  24658. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24659. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24660. SUMMARY_audio="${SUMMARY_audio} openslES"
  24661. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24662. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24663. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24664. have_audio=yes
  24665. ;;
  24666. nto)
  24667. CheckQNXAudio
  24668. ;;
  24669. esac
  24670. fi
  24671. # Set up files for the joystick library
  24672. if test x$enable_joystick = xyes; then
  24673. case $ARCH in
  24674. linux)
  24675. if test "x$ac_cv_header_linux_input_h" = xyes; then
  24676. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24677. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24678. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24679. have_joystick=yes
  24680. fi
  24681. ;;
  24682. freebsd)
  24683. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  24684. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24685. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24686. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24687. have_joystick=yes
  24688. fi
  24689. ;;
  24690. android)
  24691. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24692. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24693. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24694. have_joystick=yes
  24695. ;;
  24696. esac
  24697. fi
  24698. # Set up files for the haptic library
  24699. if test x$enable_haptic = xyes; then
  24700. case $ARCH in
  24701. linux|freebsd)
  24702. if test x$use_input_events = xyes; then
  24703. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24704. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24705. have_haptic=yes
  24706. fi
  24707. ;;
  24708. android)
  24709. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24710. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24711. have_haptic=yes
  24712. ;;
  24713. esac
  24714. fi
  24715. # Set up files for the sensor library
  24716. if test x$enable_sensor = xyes; then
  24717. case $ARCH in
  24718. android)
  24719. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24720. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24721. have_sensor=yes
  24722. ;;
  24723. esac
  24724. fi
  24725. # Set up files for the power library
  24726. if test x$enable_power = xyes; then
  24727. case $ARCH in
  24728. linux)
  24729. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24730. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24731. have_power=yes
  24732. ;;
  24733. android)
  24734. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24735. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24736. have_power=yes
  24737. ;;
  24738. esac
  24739. fi
  24740. # Set up files for the filesystem library
  24741. if test x$enable_filesystem = xyes; then
  24742. case $ARCH in
  24743. android)
  24744. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24745. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24746. have_filesystem=yes
  24747. ;;
  24748. *)
  24749. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24750. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24751. have_filesystem=yes
  24752. ;;
  24753. esac
  24754. fi
  24755. # Set up files for the timer library
  24756. if test x$enable_timers = xyes; then
  24757. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24758. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24759. have_timers=yes
  24760. fi
  24761. # Set up files for udev hotplugging support
  24762. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24763. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24764. fi
  24765. # Set up files for evdev input
  24766. if test x$use_input_events = xyes; then
  24767. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24768. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24769. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24770. fi
  24771. # Set up files for wscons input
  24772. if test x$use_input_wscons = xyes; then
  24773. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24774. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24775. fi
  24776. # Set up other core UNIX files
  24777. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24778. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24779. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24780. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24781. ;;
  24782. *-*-cygwin* | *-*-mingw*)
  24783. ARCH=win32
  24784. if test "$build" != "$host"; then # cross-compiling
  24785. # Default cross-compile location
  24786. ac_default_prefix=/usr/local/cross-tools/$host
  24787. else
  24788. # Look for the location of the tools and install there
  24789. if test "$BUILD_PREFIX" != ""; then
  24790. ac_default_prefix=$BUILD_PREFIX
  24791. fi
  24792. fi
  24793. if test x$enable_loadso = xyes; then
  24794. have_loadso=yes
  24795. fi
  24796. CheckGDwarf4
  24797. CheckWerror
  24798. CheckDeclarationAfterStatement
  24799. CheckDummyVideo
  24800. CheckOffscreenVideo
  24801. CheckDiskAudio
  24802. CheckDummyAudio
  24803. CheckWINDOWS
  24804. CheckWINDOWSGL
  24805. CheckWINDOWSGLES
  24806. CheckVulkan
  24807. CheckDIRECTX
  24808. CheckHIDAPI
  24809. # Set up the core platform files
  24810. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24811. # Set up files for the misc library
  24812. if test x$enable_misc = xyes; then
  24813. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24814. have_misc=yes
  24815. fi
  24816. # Use the Windows locale APIs.
  24817. if test x$enable_locale = xyes; then
  24818. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24819. have_locale=yes
  24820. fi
  24821. # Set up files for the video library
  24822. if test x$enable_video = xyes; then
  24823. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24824. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24825. have_video=yes
  24826. # Check whether --enable-render-d3d was given.
  24827. if test ${enable_render_d3d+y}
  24828. then :
  24829. enableval=$enable_render_d3d;
  24830. else $as_nop
  24831. enable_render_d3d=yes
  24832. fi
  24833. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24834. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24835. SUMMARY_video="${SUMMARY_video} d3d9"
  24836. fi
  24837. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24838. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24839. SUMMARY_video="${SUMMARY_video} d3d11"
  24840. fi
  24841. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24842. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24843. SUMMARY_video="${SUMMARY_video} d3d12"
  24844. fi
  24845. fi
  24846. # Set up files for the audio library
  24847. if test x$enable_audio = xyes; then
  24848. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  24849. SUMMARY_audio="${SUMMARY_audio} winmm"
  24850. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  24851. if test x$have_dsound = xyes; then
  24852. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  24853. SUMMARY_audio="${SUMMARY_audio} directsound"
  24854. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  24855. fi
  24856. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  24857. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  24858. SUMMARY_audio="${SUMMARY_audio} wasapi"
  24859. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  24860. fi
  24861. have_audio=yes
  24862. fi
  24863. # Set up files for the joystick library
  24864. if test x$enable_joystick = xyes; then
  24865. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  24866. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  24867. if test x$have_xinput = xyes; then
  24868. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  24869. fi
  24870. if test x$have_wgi = xyes; then
  24871. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  24872. fi
  24873. if test x$have_dinput = xyes; then
  24874. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  24875. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  24876. fi
  24877. fi
  24878. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  24879. have_joystick=yes
  24880. fi
  24881. if test x$enable_haptic = xyes; then
  24882. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  24883. if test x$have_xinput = xyes; then
  24884. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  24885. fi
  24886. if test x$have_dinput = xyes; then
  24887. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  24888. fi
  24889. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  24890. have_haptic=yes
  24891. fi
  24892. fi
  24893. # Set up files for the sensor library
  24894. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  24895. if test "x$ac_cv_header_sensorsapi_h" = xyes
  24896. then :
  24897. have_winsensors=yes
  24898. else $as_nop
  24899. have_winsensors=no
  24900. fi
  24901. if test x$have_winsensors = xyes; then
  24902. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  24903. fi
  24904. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  24905. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  24906. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  24907. have_sensor=yes
  24908. fi
  24909. # Set up files for the power library
  24910. if test x$enable_power = xyes; then
  24911. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  24912. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  24913. have_power=yes
  24914. fi
  24915. # Set up files for the filesystem library
  24916. if test x$enable_filesystem = xyes; then
  24917. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  24918. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  24919. have_filesystem=yes
  24920. fi
  24921. # Set up files for the thread library
  24922. if test x$enable_threads = xyes; then
  24923. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  24924. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  24925. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  24926. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  24927. have_threads=yes
  24928. fi
  24929. # Set up files for the timer library
  24930. if test x$enable_timers = xyes; then
  24931. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  24932. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  24933. have_timers=yes
  24934. fi
  24935. # Set up files for the shared object loading library
  24936. if test x$enable_loadso = xyes; then
  24937. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  24938. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  24939. fi
  24940. # Set up the system libraries we need
  24941. if test -f /lib/w32api/libuuid.a; then
  24942. LIBUUID=/lib/w32api/libuuid.a
  24943. else
  24944. LIBUUID=-luuid
  24945. fi
  24946. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  24947. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  24948. # The Windows platform requires special setup
  24949. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  24950. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  24951. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  24952. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  24953. # Check to see if this is a mingw or cygwin build
  24954. have_mingw32=
  24955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  24956. printf %s "checking for main in -lmingw32... " >&6; }
  24957. if test ${ac_cv_lib_mingw32_main+y}
  24958. then :
  24959. printf %s "(cached) " >&6
  24960. else $as_nop
  24961. ac_check_lib_save_LIBS=$LIBS
  24962. LIBS="-lmingw32 $LIBS"
  24963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24964. /* end confdefs.h. */
  24965. int
  24966. main (void)
  24967. {
  24968. return main ();
  24969. ;
  24970. return 0;
  24971. }
  24972. _ACEOF
  24973. if ac_fn_c_try_link "$LINENO"
  24974. then :
  24975. ac_cv_lib_mingw32_main=yes
  24976. else $as_nop
  24977. ac_cv_lib_mingw32_main=no
  24978. fi
  24979. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24980. conftest$ac_exeext conftest.$ac_ext
  24981. LIBS=$ac_check_lib_save_LIBS
  24982. fi
  24983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  24984. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  24985. if test "x$ac_cv_lib_mingw32_main" = xyes
  24986. then :
  24987. have_mingw32=yes
  24988. fi
  24989. if test x$have_mingw32 = xyes; then
  24990. SDL_LIBS="-lmingw32 $SDL_LIBS"
  24991. else
  24992. SDL_LIBS="-lcygwin $SDL_LIBS"
  24993. fi
  24994. ;;
  24995. *-*-beos*)
  24996. as_fn_error $? "
  24997. *** BeOS support has been removed as of SDL 2.0.2.
  24998. " "$LINENO" 5
  24999. ;;
  25000. *-*-haiku*)
  25001. ARCH=haiku
  25002. ac_default_prefix=/boot/system
  25003. CheckDummyVideo
  25004. CheckOffscreenVideo
  25005. CheckDiskAudio
  25006. CheckDummyAudio
  25007. CheckDLOPEN
  25008. CheckO_CLOEXEC
  25009. CheckHaikuVideo
  25010. CheckHaikuGL
  25011. CheckPTHREAD
  25012. # Set up files for the audio library
  25013. if test x$enable_audio = xyes; then
  25014. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  25015. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  25016. SUMMARY_audio="${SUMMARY_audio} haiku"
  25017. have_audio=yes
  25018. fi
  25019. # Set up files for the joystick library
  25020. if test x$enable_joystick = xyes; then
  25021. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  25022. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  25023. have_joystick=yes
  25024. fi
  25025. # Set up files for the timer library
  25026. if test x$enable_timers = xyes; then
  25027. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  25028. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  25029. have_timers=yes
  25030. fi
  25031. # Set up files for the system power library
  25032. if test x$enable_power = xyes; then
  25033. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  25034. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  25035. have_power=yes
  25036. fi
  25037. # Set up files for the system filesystem library
  25038. if test x$enable_filesystem = xyes; then
  25039. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  25040. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  25041. have_filesystem=yes
  25042. fi
  25043. # Set up files for the misc library
  25044. if test x$enable_misc = xyes; then
  25045. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  25046. have_misc=yes
  25047. fi
  25048. # Set up files for the locale library
  25049. if test x$enable_locale = xyes; then
  25050. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  25051. have_locale=yes
  25052. fi
  25053. # The Haiku platform requires special setup.
  25054. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  25055. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  25056. ;;
  25057. *-ios-*)
  25058. ARCH=ios
  25059. CheckVisibilityHidden
  25060. CheckWerror
  25061. CheckNoErrorDeprecatedDeclarationsWerror
  25062. CheckDeclarationAfterStatement
  25063. CheckDummyVideo
  25064. CheckOffscreenVideo
  25065. CheckDiskAudio
  25066. CheckDummyAudio
  25067. CheckDLOPEN
  25068. CheckO_CLOEXEC
  25069. CheckMETAL
  25070. CheckVulkan
  25071. CheckPTHREAD
  25072. # Set up files for the misc library
  25073. if test x$enable_misc = xyes; then
  25074. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  25075. have_misc=yes
  25076. fi
  25077. # Set up files for the locale library
  25078. if test x$enable_locale = xyes; then
  25079. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25080. have_locale=yes
  25081. fi
  25082. # Set up files for the audio library
  25083. if test x$enable_audio = xyes; then
  25084. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25085. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25086. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25087. have_audio=yes
  25088. fi
  25089. # Set up files for the joystick library
  25090. if test x$enable_joystick = xyes; then
  25091. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  25092. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25093. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  25094. have_joystick=yes
  25095. else
  25096. # Need this code for accelerometer as joystick support
  25097. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25098. fi
  25099. # Set up files for the haptic library
  25100. #if test x$enable_haptic = xyes; then
  25101. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25102. # have_haptic=yes
  25103. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25104. #fi
  25105. # Set up files for the sensor library
  25106. if test x$enable_sensor = xyes; then
  25107. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  25108. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  25109. have_sensor=yes
  25110. fi
  25111. # Set up files for the power library
  25112. if test x$enable_power = xyes; then
  25113. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  25114. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  25115. have_power=yes
  25116. fi
  25117. # Set up files for the filesystem library
  25118. if test x$enable_filesystem = xyes; then
  25119. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25120. have_filesystem=yes
  25121. fi
  25122. # Set up additional files for the file library
  25123. if test x$enable_file = xyes; then
  25124. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25125. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25126. fi
  25127. # Set up files for the timer library
  25128. if test x$enable_timers = xyes; then
  25129. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25130. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25131. have_timers=yes
  25132. fi
  25133. # Set up other core UNIX files
  25134. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25135. # The iOS platform requires special setup.
  25136. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  25137. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  25138. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  25139. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  25140. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  25141. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  25142. SUMMARY_video="${SUMMARY_video} uikit"
  25143. have_video=yes
  25144. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  25145. if test x$enable_system_iconv = xyes; then
  25146. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  25147. fi
  25148. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25149. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  25150. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  25151. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  25152. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  25153. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  25154. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  25155. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25156. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25157. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25158. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25159. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25160. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25161. fi
  25162. ;;
  25163. *-*-darwin* )
  25164. # This could be either full "Mac OS X", or plain "Darwin" which is
  25165. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25166. # Next line is broken, and a few files below require Mac OS X (full)
  25167. ARCH=macosx
  25168. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25169. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25170. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25171. CheckObjectiveCARC
  25172. CheckVisibilityHidden
  25173. CheckWerror
  25174. CheckNoErrorDeprecatedDeclarationsWerror
  25175. CheckDeclarationAfterStatement
  25176. CheckDummyVideo
  25177. CheckOffscreenVideo
  25178. CheckDiskAudio
  25179. CheckDummyAudio
  25180. CheckDLOPEN
  25181. CheckO_CLOEXEC
  25182. CheckCOCOA
  25183. CheckMETAL
  25184. CheckX11
  25185. CheckMacGL
  25186. CheckMacGLES
  25187. CheckGLX
  25188. CheckOpenGL
  25189. CheckVulkan
  25190. CheckPTHREAD
  25191. CheckHIDAPI
  25192. # Set up files for the misc library
  25193. if test x$enable_misc = xyes; then
  25194. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25195. have_misc=yes
  25196. fi
  25197. # Set up files for the locale library
  25198. if test x$enable_locale = xyes; then
  25199. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25200. have_locale=yes
  25201. fi
  25202. # Set up files for the audio library
  25203. if test x$enable_audio = xyes; then
  25204. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25205. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25206. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25207. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25208. have_audio=yes
  25209. fi
  25210. # Set up files for the joystick library
  25211. if test x$enable_joystick = xyes; then
  25212. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25213. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25214. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25215. CheckJoystickMFI
  25216. have_joystick=yes
  25217. fi
  25218. # Set up files for the haptic library
  25219. if test x$enable_haptic = xyes; then
  25220. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25221. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25222. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25223. have_haptic=yes
  25224. fi
  25225. # Set up files for the power library
  25226. if test x$enable_power = xyes; then
  25227. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25228. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25229. have_power=yes
  25230. fi
  25231. # Set up files for the filesystem library
  25232. if test x$enable_filesystem = xyes; then
  25233. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25234. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25235. have_filesystem=yes
  25236. fi
  25237. # Set up files for the timer library
  25238. if test x$enable_timers = xyes; then
  25239. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25240. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25241. have_timers=yes
  25242. fi
  25243. # Set up additional files for the file library
  25244. if test x$enable_file = xyes; then
  25245. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25246. fi
  25247. # Set up other core UNIX files
  25248. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25249. # The Mac OS X platform requires special setup.
  25250. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25251. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25252. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25253. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25254. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25255. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25256. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25257. fi
  25258. ;;
  25259. *-nacl|*-pnacl)
  25260. ARCH=nacl
  25261. CheckNativeClient
  25262. CheckDummyAudio
  25263. CheckDummyVideo
  25264. CheckOffscreenVideo
  25265. CheckInputEvents
  25266. CheckPTHREAD
  25267. CheckO_CLOEXEC
  25268. # Set up files for the timer library
  25269. if test x$enable_timers = xyes; then
  25270. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25271. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25272. have_timers=yes
  25273. fi
  25274. if test x$enable_filesystem = xyes; then
  25275. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25276. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25277. have_filesystem=yes
  25278. fi
  25279. ;;
  25280. *-*-emscripten* )
  25281. if test x$enable_video = xyes; then
  25282. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25283. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25284. have_video=yes
  25285. SUMMARY_video="${SUMMARY_video} emscripten"
  25286. fi
  25287. if test x$enable_audio = xyes; then
  25288. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25289. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25290. have_audio=yes
  25291. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25292. fi
  25293. CheckVisibilityHidden
  25294. CheckWerror
  25295. CheckDeclarationAfterStatement
  25296. CheckDummyVideo
  25297. CheckOffscreenVideo
  25298. CheckDiskAudio
  25299. CheckDummyAudio
  25300. CheckPTHREAD
  25301. CheckDLOPEN
  25302. CheckClockGettime
  25303. CheckEmscriptenGLES
  25304. # Set up files for the misc library
  25305. if test x$enable_misc = xyes; then
  25306. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25307. have_misc=yes
  25308. fi
  25309. # Set up files for the power library
  25310. if test x$enable_power = xyes; then
  25311. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25312. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25313. have_power=yes
  25314. fi
  25315. # Set up files for the joystick library
  25316. if test x$enable_joystick = xyes; then
  25317. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25318. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25319. have_joystick=yes
  25320. fi
  25321. # Set up files for the filesystem library
  25322. if test x$enable_filesystem = xyes; then
  25323. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25324. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25325. have_filesystem=yes
  25326. fi
  25327. # Set up files for the timer library
  25328. if test x$enable_timers = xyes; then
  25329. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25330. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25331. have_timers=yes
  25332. fi
  25333. # Set up files for the locale library
  25334. if test x$enable_locale = xyes; then
  25335. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25336. have_locale=yes
  25337. fi
  25338. ;;
  25339. *-*-riscos*)
  25340. ARCH=riscos
  25341. CheckVisibilityHidden
  25342. CheckWerror
  25343. CheckDeclarationAfterStatement
  25344. CheckDummyVideo
  25345. CheckOffscreenVideo
  25346. CheckDiskAudio
  25347. CheckDummyAudio
  25348. CheckDLOPEN
  25349. CheckO_CLOEXEC
  25350. CheckOSS
  25351. CheckPTHREAD
  25352. CheckClockGettime
  25353. # Set up files for the misc library
  25354. if test x$enable_misc = xyes; then
  25355. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25356. have_misc=yes
  25357. fi
  25358. # Set up files for the video library
  25359. if test x$enable_video = xyes; then
  25360. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25361. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25362. have_video=yes
  25363. SUMMARY_video="${SUMMARY_video} riscos"
  25364. fi
  25365. # Set up files for the filesystem library
  25366. if test x$enable_filesystem = xyes; then
  25367. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25368. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25369. have_filesystem=yes
  25370. fi
  25371. # Set up files for the timer library
  25372. if test x$enable_timers = xyes; then
  25373. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25374. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25375. have_timers=yes
  25376. fi
  25377. ;;
  25378. *-*-os2*)
  25379. ARCH=os2
  25380. if test "$build" != "$host"; then # cross-compiling
  25381. # Default cross-compile location
  25382. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25383. else
  25384. # Look for the location of the tools and install there
  25385. if test "$BUILD_PREFIX" != ""; then
  25386. ac_default_prefix=$BUILD_PREFIX
  25387. fi
  25388. fi
  25389. enable_static=no # disable static builds
  25390. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25391. CheckOS2
  25392. CheckWerror
  25393. CheckDeclarationAfterStatement
  25394. CheckDummyVideo
  25395. CheckDiskAudio
  25396. CheckDummyAudio
  25397. CheckHIDAPI
  25398. # Set up the core platform files
  25399. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25400. if test x$enable_system_iconv = xyes; then
  25401. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25402. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25403. fi
  25404. fi
  25405. # Use the Unix locale APIs.
  25406. if test x$enable_locale = xyes; then
  25407. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25408. have_locale=yes
  25409. fi
  25410. # Set up files for the video library
  25411. if test x$enable_video = xyes; then
  25412. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25413. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25414. have_video=yes
  25415. SUMMARY_video="${SUMMARY_video} os/2"
  25416. fi
  25417. # Set up files for the audio library
  25418. if test x$enable_audio = xyes; then
  25419. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25420. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25421. have_audio=yes
  25422. SUMMARY_audio="${SUMMARY_audio} os/2"
  25423. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25424. fi
  25425. # Set up files for the thread library
  25426. if test x$enable_threads = xyes; then
  25427. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25428. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25429. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25430. have_threads=yes
  25431. fi
  25432. # Set up files for the timer library
  25433. if test x$enable_timers = xyes; then
  25434. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25435. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25436. have_timers=yes
  25437. fi
  25438. # Set up files for the shared object loading library
  25439. if test x$enable_loadso = xyes; then
  25440. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25441. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25442. have_loadso=yes
  25443. fi
  25444. # Set up files for the filesystem library
  25445. if test x$enable_filesystem = xyes; then
  25446. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25447. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25448. have_filesystem=yes
  25449. fi
  25450. # Set up files for the joystick library
  25451. if test x$enable_joystick = xyes; then
  25452. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25453. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25454. have_joystick=yes
  25455. fi
  25456. ;;
  25457. *)
  25458. as_fn_error $? "
  25459. *** Unsupported host: Please add to configure.ac
  25460. " "$LINENO" 5
  25461. ;;
  25462. esac
  25463. CheckVirtualJoystick
  25464. # Check whether to install sdl2-config
  25465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25466. printf %s "checking whether to install sdl2-config... " >&6; }
  25467. # Check whether --enable-sdl2-config was given.
  25468. if test ${enable_sdl2_config+y}
  25469. then :
  25470. enableval=$enable_sdl2_config; case "${enableval}" in
  25471. yes) enable_sdl2_config="TRUE" ;;
  25472. no) enable_sdl2_config="FALSE" ;;
  25473. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25474. esac
  25475. else $as_nop
  25476. enable_sdl2_config="TRUE"
  25477. fi
  25478. if test "$enable_sdl2_config" = "TRUE"; then
  25479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25480. printf "%s\n" "yes" >&6; }
  25481. else
  25482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25483. printf "%s\n" "no" >&6; }
  25484. fi
  25485. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25486. # Check whether --enable-vendor-info was given.
  25487. if test ${enable_vendor_info+y}
  25488. then :
  25489. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  25490. else $as_nop
  25491. enable_vendor_info=
  25492. fi
  25493. if test "$enable_vendor_info" = no
  25494. then :
  25495. enable_vendor_info=
  25496. fi
  25497. SDL_VENDOR_INFO=$enable_vendor_info
  25498. # Verify that we have all the platform specific files we need
  25499. if test x$have_audio != xyes; then
  25500. if test x$enable_audio = xyes; then
  25501. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25502. fi
  25503. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25504. fi
  25505. if test x$have_video != xyes; then
  25506. if test x$enable_video = xyes; then
  25507. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25508. fi
  25509. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25510. fi
  25511. if test x$have_misc != xyes; then
  25512. if test x$enable_misc = xyes; then
  25513. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25514. fi
  25515. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25516. fi
  25517. if test x$have_locale != xyes; then
  25518. if test x$enable_locale = xyes; then
  25519. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25520. fi
  25521. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25522. fi
  25523. if test x$have_joystick != xyes; then
  25524. if test x$enable_joystick = xyes; then
  25525. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25526. fi
  25527. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25528. fi
  25529. if test x$have_haptic != xyes; then
  25530. if test x$enable_haptic = xyes; then
  25531. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25532. fi
  25533. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25534. fi
  25535. if test x$have_sensor != xyes; then
  25536. if test x$enable_sensor = xyes; then
  25537. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25538. fi
  25539. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25540. fi
  25541. if test x$have_threads != xyes; then
  25542. if test x$enable_threads = xyes; then
  25543. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25544. fi
  25545. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25546. fi
  25547. if test x$have_timers != xyes; then
  25548. if test x$enable_timers = xyes; then
  25549. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25550. fi
  25551. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25552. fi
  25553. if test x$have_filesystem != xyes; then
  25554. if test x$enable_filesystem = xyes; then
  25555. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25556. fi
  25557. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25558. fi
  25559. if test x$have_loadso != xyes; then
  25560. if test x$enable_loadso = xyes; then
  25561. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25562. fi
  25563. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25564. fi
  25565. if test x$SDLMAIN_SOURCES = x; then
  25566. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25567. fi
  25568. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25569. if test x$video_wayland = xyes; then
  25570. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25571. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25572. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25573. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25574. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25575. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25576. echo ;\
  25577. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25578. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25579. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25580. echo ;\
  25581. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25582. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25583. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25584. echo ;\
  25585. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25586. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25587. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25588. done ;\
  25589. echo ;\
  25590. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25591. fi
  25592. OBJECTS=`echo $SOURCES`
  25593. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25594. for EXT in asm cc m c S; do
  25595. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25596. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25597. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25598. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25599. done
  25600. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25601. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25602. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25603. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25604. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25605. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25606. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25607. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25608. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25609. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25610. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25611. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25612. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25613. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25614. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25615. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25616. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25617. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25618. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25619. # Set runtime shared library paths as needed
  25620. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25621. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25622. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25624. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25625. have_enable_new_dtags=no
  25626. save_LDFLAGS="$LDFLAGS"
  25627. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25629. /* end confdefs.h. */
  25630. int
  25631. main (void)
  25632. {
  25633. ;
  25634. return 0;
  25635. }
  25636. _ACEOF
  25637. if ac_fn_c_try_link "$LINENO"
  25638. then :
  25639. have_enable_new_dtags=yes
  25640. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25641. fi
  25642. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25643. conftest$ac_exeext conftest.$ac_ext
  25644. LDFLAGS="$save_LDFLAGS"
  25645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25646. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25647. fi
  25648. if test $ARCH = solaris; then
  25649. SDL_RLD_FLAGS="-R\${libdir}"
  25650. fi
  25651. else
  25652. SDL_RLD_FLAGS=""
  25653. fi
  25654. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25655. pkg_cmakedir='$libdir/cmake/SDL2'
  25656. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25657. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25658. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25659. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25660. _lcl_receval="$_lcl_from"
  25661. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25662. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25663. _lcl_receval_old=''
  25664. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25665. _lcl_receval_old="$_lcl_receval"
  25666. eval _lcl_receval="\"$_lcl_receval\""
  25667. done
  25668. echo "$_lcl_receval")`
  25669. _lcl_receval="$_lcl_to"
  25670. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25671. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25672. _lcl_receval_old=''
  25673. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25674. _lcl_receval_old="$_lcl_receval"
  25675. eval _lcl_receval="\"$_lcl_receval\""
  25676. done
  25677. echo "$_lcl_receval")`
  25678. _lcl_notation="$_lcl_from$_lcl_to"
  25679. case ":$_lcl_from:" in
  25680. # change empty paths to '.'
  25681. ::) _lcl_from='.' ;;
  25682. # strip trailing slashes
  25683. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25684. :*:) ;;
  25685. esac
  25686. # squeeze repeated slashes
  25687. case '/' in
  25688. # if the path contains any backslashes, turn slashes into backslashes
  25689. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25690. # if the path contains slashes, also turn backslashes into slashes
  25691. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25692. esac
  25693. case ":$_lcl_to:" in
  25694. # change empty paths to '.'
  25695. ::) _lcl_to='.' ;;
  25696. # strip trailing slashes
  25697. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25698. :*:) ;;
  25699. esac
  25700. # squeeze repeated slashes
  25701. case '/' in
  25702. # if the path contains any backslashes, turn slashes into backslashes
  25703. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25704. # if the path contains slashes, also turn backslashes into slashes
  25705. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25706. esac
  25707. _lcl_common_prefix=''
  25708. _lcl_second_prefix_match=''
  25709. while test "$_lcl_second_prefix_match" != 0; do
  25710. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25711. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25712. if test "$_lcl_second_prefix_match" != 0; then
  25713. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25714. _lcl_common_prefix="$_lcl_first_prefix"
  25715. else
  25716. _lcl_second_prefix_match=0
  25717. fi
  25718. fi
  25719. done
  25720. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25721. _lcl_first_rel=''
  25722. _lcl_tmp='xxx'
  25723. while test "$_lcl_tmp" != ''; do
  25724. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25725. if test "$_lcl_first_suffix" != ''; then
  25726. _lcl_first_suffix="$_lcl_tmp"
  25727. _lcl_first_rel="../$_lcl_first_rel"
  25728. fi
  25729. done
  25730. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25731. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25732. case ":$_lcl_result_tmp:" in
  25733. # change empty paths to '.'
  25734. ::) _lcl_result_tmp='.' ;;
  25735. # strip trailing slashes
  25736. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25737. :*:) ;;
  25738. esac
  25739. # squeeze repeated slashes
  25740. case "$_lcl_notation" in
  25741. # if the path contains any backslashes, turn slashes into backslashes
  25742. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25743. # if the path contains slashes, also turn backslashes into slashes
  25744. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25745. esac
  25746. eval $_lcl_result_var='$_lcl_result_tmp'
  25747. done
  25748. if test x$enable_shared = xyes; then
  25749. PKGCONFIG_LIBS_PRIV="
  25750. Libs.private:"
  25751. ENABLE_SHARED_TRUE=
  25752. ENABLE_SHARED_FALSE="#"
  25753. else
  25754. PKGCONFIG_LIBS_PRIV=
  25755. ENABLE_SHARED_TRUE="#"
  25756. ENABLE_SHARED_FALSE=
  25757. fi
  25758. if test x$enable_static = xyes; then
  25759. ENABLE_STATIC_TRUE=
  25760. ENABLE_STATIC_FALSE="#"
  25761. else
  25762. ENABLE_STATIC_TRUE="#"
  25763. ENABLE_STATIC_FALSE=
  25764. fi
  25765. cat >Makefile.rules <<__EOF__
  25766. # Build rules for objects
  25767. -include \$(OBJECTS:.lo=.d)
  25768. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25769. $srcdir/src/SDL.c: update-revision
  25770. $DEPENDS
  25771. $VERSION_DEPENDS
  25772. $SDLMAIN_DEPENDS
  25773. $SDLTEST_DEPENDS
  25774. $WAYLAND_PROTOCOLS_DEPENDS
  25775. __EOF__
  25776. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25777. ac_config_commands="$ac_config_commands sdl2_config"
  25778. SUMMARY="SDL2 Configure Summary:\n"
  25779. if test x$enable_shared = xyes; then
  25780. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25781. fi
  25782. if test x$enable_static = xyes; then
  25783. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25784. fi
  25785. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25786. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25787. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25788. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25789. if test x$have_x = xyes; then
  25790. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25791. fi
  25792. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25793. if test x$have_joystick_virtual = xyes; then
  25794. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25795. else
  25796. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25797. fi
  25798. if test x$have_samplerate_h_hdr = xyes; then
  25799. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25800. else
  25801. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25802. fi
  25803. if test x$have_libudev_h_hdr = xyes; then
  25804. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25805. else
  25806. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25807. fi
  25808. if test x$have_dbus_dbus_h_hdr = xyes; then
  25809. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25810. else
  25811. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25812. fi
  25813. if test x$enable_ime = xyes; then
  25814. SUMMARY="${SUMMARY}Using ime : YES\n"
  25815. else
  25816. SUMMARY="${SUMMARY}Using ime : NO\n"
  25817. fi
  25818. if test x$have_ibus_ibus_h_hdr = xyes; then
  25819. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25820. else
  25821. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25822. fi
  25823. if test x$have_fcitx = xyes; then
  25824. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25825. else
  25826. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25827. fi
  25828. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25829. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25830. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25831. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25832. SUMMARY="${SUMMARY}configure script with:\n"
  25833. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25834. fi
  25835. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25836. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25837. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25838. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25839. SUMMARY="${SUMMARY}configure script with:\n"
  25840. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25841. fi
  25842. ac_config_commands="$ac_config_commands summary"
  25843. cat >confcache <<\_ACEOF
  25844. # This file is a shell script that caches the results of configure
  25845. # tests run on this system so they can be shared between configure
  25846. # scripts and configure runs, see configure's option --config-cache.
  25847. # It is not useful on other systems. If it contains results you don't
  25848. # want to keep, you may remove or edit it.
  25849. #
  25850. # config.status only pays attention to the cache file if you give it
  25851. # the --recheck option to rerun configure.
  25852. #
  25853. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25854. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25855. # following values.
  25856. _ACEOF
  25857. # The following way of writing the cache mishandles newlines in values,
  25858. # but we know of no workaround that is simple, portable, and efficient.
  25859. # So, we kill variables containing newlines.
  25860. # Ultrix sh set writes to stderr and can't be redirected directly,
  25861. # and sets the high bit in the cache file unless we assign to the vars.
  25862. (
  25863. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25864. eval ac_val=\$$ac_var
  25865. case $ac_val in #(
  25866. *${as_nl}*)
  25867. case $ac_var in #(
  25868. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25869. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25870. esac
  25871. case $ac_var in #(
  25872. _ | IFS | as_nl) ;; #(
  25873. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25874. *) { eval $ac_var=; unset $ac_var;} ;;
  25875. esac ;;
  25876. esac
  25877. done
  25878. (set) 2>&1 |
  25879. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25880. *${as_nl}ac_space=\ *)
  25881. # `set' does not quote correctly, so add quotes: double-quote
  25882. # substitution turns \\\\ into \\, and sed turns \\ into \.
  25883. sed -n \
  25884. "s/'/'\\\\''/g;
  25885. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25886. ;; #(
  25887. *)
  25888. # `set' quotes correctly as required by POSIX, so do not add quotes.
  25889. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25890. ;;
  25891. esac |
  25892. sort
  25893. ) |
  25894. sed '
  25895. /^ac_cv_env_/b end
  25896. t clear
  25897. :clear
  25898. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  25899. t end
  25900. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25901. :end' >>confcache
  25902. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25903. if test -w "$cache_file"; then
  25904. if test "x$cache_file" != "x/dev/null"; then
  25905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25906. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  25907. if test ! -f "$cache_file" || test -h "$cache_file"; then
  25908. cat confcache >"$cache_file"
  25909. else
  25910. case $cache_file in #(
  25911. */* | ?:*)
  25912. mv -f confcache "$cache_file"$$ &&
  25913. mv -f "$cache_file"$$ "$cache_file" ;; #(
  25914. *)
  25915. mv -f confcache "$cache_file" ;;
  25916. esac
  25917. fi
  25918. fi
  25919. else
  25920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  25921. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  25922. fi
  25923. fi
  25924. rm -f confcache
  25925. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25926. # Let make expand exec_prefix.
  25927. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25928. DEFS=-DHAVE_CONFIG_H
  25929. ac_libobjs=
  25930. ac_ltlibobjs=
  25931. U=
  25932. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25933. # 1. Remove the extension, and $U if already installed.
  25934. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25935. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  25936. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25937. # will be set to the directory where LIBOBJS objects are built.
  25938. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25939. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  25940. done
  25941. LIBOBJS=$ac_libobjs
  25942. LTLIBOBJS=$ac_ltlibobjs
  25943. : "${CONFIG_STATUS=./config.status}"
  25944. ac_write_fail=0
  25945. ac_clean_files_save=$ac_clean_files
  25946. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  25948. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  25949. as_write_fail=0
  25950. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  25951. #! $SHELL
  25952. # Generated by $as_me.
  25953. # Run this file to recreate the current configuration.
  25954. # Compiler output produced by configure, useful for debugging
  25955. # configure, is in config.log if it exists.
  25956. debug=false
  25957. ac_cs_recheck=false
  25958. ac_cs_silent=false
  25959. SHELL=\${CONFIG_SHELL-$SHELL}
  25960. export SHELL
  25961. _ASEOF
  25962. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  25963. ## -------------------- ##
  25964. ## M4sh Initialization. ##
  25965. ## -------------------- ##
  25966. # Be more Bourne compatible
  25967. DUALCASE=1; export DUALCASE # for MKS sh
  25968. as_nop=:
  25969. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  25970. then :
  25971. emulate sh
  25972. NULLCMD=:
  25973. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25974. # is contrary to our usage. Disable this feature.
  25975. alias -g '${1+"$@"}'='"$@"'
  25976. setopt NO_GLOB_SUBST
  25977. else $as_nop
  25978. case `(set -o) 2>/dev/null` in #(
  25979. *posix*) :
  25980. set -o posix ;; #(
  25981. *) :
  25982. ;;
  25983. esac
  25984. fi
  25985. # Reset variables that may have inherited troublesome values from
  25986. # the environment.
  25987. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  25988. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  25989. # side effect of setting IFS to empty, thus disabling word splitting.)
  25990. # Quoting is to prevent editors from complaining about space-tab.
  25991. as_nl='
  25992. '
  25993. export as_nl
  25994. IFS=" "" $as_nl"
  25995. PS1='$ '
  25996. PS2='> '
  25997. PS4='+ '
  25998. # Ensure predictable behavior from utilities with locale-dependent output.
  25999. LC_ALL=C
  26000. export LC_ALL
  26001. LANGUAGE=C
  26002. export LANGUAGE
  26003. # We cannot yet rely on "unset" to work, but we need these variables
  26004. # to be unset--not just set to an empty or harmless value--now, to
  26005. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  26006. # also avoids known problems related to "unset" and subshell syntax
  26007. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  26008. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  26009. do eval test \${$as_var+y} \
  26010. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  26011. done
  26012. # Ensure that fds 0, 1, and 2 are open.
  26013. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  26014. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  26015. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  26016. # The user is always right.
  26017. if ${PATH_SEPARATOR+false} :; then
  26018. PATH_SEPARATOR=:
  26019. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  26020. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  26021. PATH_SEPARATOR=';'
  26022. }
  26023. fi
  26024. # Find who we are. Look in the path if we contain no directory separator.
  26025. as_myself=
  26026. case $0 in #((
  26027. *[\\/]* ) as_myself=$0 ;;
  26028. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26029. for as_dir in $PATH
  26030. do
  26031. IFS=$as_save_IFS
  26032. case $as_dir in #(((
  26033. '') as_dir=./ ;;
  26034. */) ;;
  26035. *) as_dir=$as_dir/ ;;
  26036. esac
  26037. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  26038. done
  26039. IFS=$as_save_IFS
  26040. ;;
  26041. esac
  26042. # We did not find ourselves, most probably we were run as `sh COMMAND'
  26043. # in which case we are not to be found in the path.
  26044. if test "x$as_myself" = x; then
  26045. as_myself=$0
  26046. fi
  26047. if test ! -f "$as_myself"; then
  26048. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  26049. exit 1
  26050. fi
  26051. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  26052. # ----------------------------------------
  26053. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  26054. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  26055. # script with STATUS, using 1 if that was 0.
  26056. as_fn_error ()
  26057. {
  26058. as_status=$1; test $as_status -eq 0 && as_status=1
  26059. if test "$4"; then
  26060. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  26061. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  26062. fi
  26063. printf "%s\n" "$as_me: error: $2" >&2
  26064. as_fn_exit $as_status
  26065. } # as_fn_error
  26066. # as_fn_set_status STATUS
  26067. # -----------------------
  26068. # Set $? to STATUS, without forking.
  26069. as_fn_set_status ()
  26070. {
  26071. return $1
  26072. } # as_fn_set_status
  26073. # as_fn_exit STATUS
  26074. # -----------------
  26075. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  26076. as_fn_exit ()
  26077. {
  26078. set +e
  26079. as_fn_set_status $1
  26080. exit $1
  26081. } # as_fn_exit
  26082. # as_fn_unset VAR
  26083. # ---------------
  26084. # Portably unset VAR.
  26085. as_fn_unset ()
  26086. {
  26087. { eval $1=; unset $1;}
  26088. }
  26089. as_unset=as_fn_unset
  26090. # as_fn_append VAR VALUE
  26091. # ----------------------
  26092. # Append the text in VALUE to the end of the definition contained in VAR. Take
  26093. # advantage of any shell optimizations that allow amortized linear growth over
  26094. # repeated appends, instead of the typical quadratic growth present in naive
  26095. # implementations.
  26096. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  26097. then :
  26098. eval 'as_fn_append ()
  26099. {
  26100. eval $1+=\$2
  26101. }'
  26102. else $as_nop
  26103. as_fn_append ()
  26104. {
  26105. eval $1=\$$1\$2
  26106. }
  26107. fi # as_fn_append
  26108. # as_fn_arith ARG...
  26109. # ------------------
  26110. # Perform arithmetic evaluation on the ARGs, and store the result in the
  26111. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  26112. # must be portable across $(()) and expr.
  26113. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  26114. then :
  26115. eval 'as_fn_arith ()
  26116. {
  26117. as_val=$(( $* ))
  26118. }'
  26119. else $as_nop
  26120. as_fn_arith ()
  26121. {
  26122. as_val=`expr "$@" || test $? -eq 1`
  26123. }
  26124. fi # as_fn_arith
  26125. if expr a : '\(a\)' >/dev/null 2>&1 &&
  26126. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  26127. as_expr=expr
  26128. else
  26129. as_expr=false
  26130. fi
  26131. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  26132. as_basename=basename
  26133. else
  26134. as_basename=false
  26135. fi
  26136. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  26137. as_dirname=dirname
  26138. else
  26139. as_dirname=false
  26140. fi
  26141. as_me=`$as_basename -- "$0" ||
  26142. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26143. X"$0" : 'X\(//\)$' \| \
  26144. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  26145. printf "%s\n" X/"$0" |
  26146. sed '/^.*\/\([^/][^/]*\)\/*$/{
  26147. s//\1/
  26148. q
  26149. }
  26150. /^X\/\(\/\/\)$/{
  26151. s//\1/
  26152. q
  26153. }
  26154. /^X\/\(\/\).*/{
  26155. s//\1/
  26156. q
  26157. }
  26158. s/.*/./; q'`
  26159. # Avoid depending upon Character Ranges.
  26160. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26161. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26162. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26163. as_cr_digits='0123456789'
  26164. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26165. # Determine whether it's possible to make 'echo' print without a newline.
  26166. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26167. # for compatibility with existing Makefiles.
  26168. ECHO_C= ECHO_N= ECHO_T=
  26169. case `echo -n x` in #(((((
  26170. -n*)
  26171. case `echo 'xy\c'` in
  26172. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26173. xy) ECHO_C='\c';;
  26174. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26175. ECHO_T=' ';;
  26176. esac;;
  26177. *)
  26178. ECHO_N='-n';;
  26179. esac
  26180. # For backward compatibility with old third-party macros, we provide
  26181. # the shell variables $as_echo and $as_echo_n. New code should use
  26182. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26183. as_echo='printf %s\n'
  26184. as_echo_n='printf %s'
  26185. rm -f conf$$ conf$$.exe conf$$.file
  26186. if test -d conf$$.dir; then
  26187. rm -f conf$$.dir/conf$$.file
  26188. else
  26189. rm -f conf$$.dir
  26190. mkdir conf$$.dir 2>/dev/null
  26191. fi
  26192. if (echo >conf$$.file) 2>/dev/null; then
  26193. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26194. as_ln_s='ln -s'
  26195. # ... but there are two gotchas:
  26196. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26197. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26198. # In both cases, we have to default to `cp -pR'.
  26199. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26200. as_ln_s='cp -pR'
  26201. elif ln conf$$.file conf$$ 2>/dev/null; then
  26202. as_ln_s=ln
  26203. else
  26204. as_ln_s='cp -pR'
  26205. fi
  26206. else
  26207. as_ln_s='cp -pR'
  26208. fi
  26209. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26210. rmdir conf$$.dir 2>/dev/null
  26211. # as_fn_mkdir_p
  26212. # -------------
  26213. # Create "$as_dir" as a directory, including parents if necessary.
  26214. as_fn_mkdir_p ()
  26215. {
  26216. case $as_dir in #(
  26217. -*) as_dir=./$as_dir;;
  26218. esac
  26219. test -d "$as_dir" || eval $as_mkdir_p || {
  26220. as_dirs=
  26221. while :; do
  26222. case $as_dir in #(
  26223. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26224. *) as_qdir=$as_dir;;
  26225. esac
  26226. as_dirs="'$as_qdir' $as_dirs"
  26227. as_dir=`$as_dirname -- "$as_dir" ||
  26228. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26229. X"$as_dir" : 'X\(//\)[^/]' \| \
  26230. X"$as_dir" : 'X\(//\)$' \| \
  26231. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26232. printf "%s\n" X"$as_dir" |
  26233. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26234. s//\1/
  26235. q
  26236. }
  26237. /^X\(\/\/\)[^/].*/{
  26238. s//\1/
  26239. q
  26240. }
  26241. /^X\(\/\/\)$/{
  26242. s//\1/
  26243. q
  26244. }
  26245. /^X\(\/\).*/{
  26246. s//\1/
  26247. q
  26248. }
  26249. s/.*/./; q'`
  26250. test -d "$as_dir" && break
  26251. done
  26252. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26253. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26254. } # as_fn_mkdir_p
  26255. if mkdir -p . 2>/dev/null; then
  26256. as_mkdir_p='mkdir -p "$as_dir"'
  26257. else
  26258. test -d ./-p && rmdir ./-p
  26259. as_mkdir_p=false
  26260. fi
  26261. # as_fn_executable_p FILE
  26262. # -----------------------
  26263. # Test if FILE is an executable regular file.
  26264. as_fn_executable_p ()
  26265. {
  26266. test -f "$1" && test -x "$1"
  26267. } # as_fn_executable_p
  26268. as_test_x='test -x'
  26269. as_executable_p=as_fn_executable_p
  26270. # Sed expression to map a string onto a valid CPP name.
  26271. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26272. # Sed expression to map a string onto a valid variable name.
  26273. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26274. exec 6>&1
  26275. ## ----------------------------------- ##
  26276. ## Main body of $CONFIG_STATUS script. ##
  26277. ## ----------------------------------- ##
  26278. _ASEOF
  26279. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26280. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26281. # Save the log message, to keep $0 and so on meaningful, and to
  26282. # report actual input values of CONFIG_FILES etc. instead of their
  26283. # values after options handling.
  26284. ac_log="
  26285. This file was extended by $as_me, which was
  26286. generated by GNU Autoconf 2.71. Invocation command line was
  26287. CONFIG_FILES = $CONFIG_FILES
  26288. CONFIG_HEADERS = $CONFIG_HEADERS
  26289. CONFIG_LINKS = $CONFIG_LINKS
  26290. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26291. $ $0 $@
  26292. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26293. "
  26294. _ACEOF
  26295. case $ac_config_files in *"
  26296. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26297. esac
  26298. case $ac_config_headers in *"
  26299. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26300. esac
  26301. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26302. # Files that config.status was made for.
  26303. config_files="$ac_config_files"
  26304. config_headers="$ac_config_headers"
  26305. config_commands="$ac_config_commands"
  26306. _ACEOF
  26307. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26308. ac_cs_usage="\
  26309. \`$as_me' instantiates files and other configuration actions
  26310. from templates according to the current configuration. Unless the files
  26311. and actions are specified as TAGs, all are instantiated by default.
  26312. Usage: $0 [OPTION]... [TAG]...
  26313. -h, --help print this help, then exit
  26314. -V, --version print version number and configuration settings, then exit
  26315. --config print configuration, then exit
  26316. -q, --quiet, --silent
  26317. do not print progress messages
  26318. -d, --debug don't remove temporary files
  26319. --recheck update $as_me by reconfiguring in the same conditions
  26320. --file=FILE[:TEMPLATE]
  26321. instantiate the configuration file FILE
  26322. --header=FILE[:TEMPLATE]
  26323. instantiate the configuration header FILE
  26324. Configuration files:
  26325. $config_files
  26326. Configuration headers:
  26327. $config_headers
  26328. Configuration commands:
  26329. $config_commands
  26330. Report bugs to the package provider."
  26331. _ACEOF
  26332. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26333. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26334. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26335. ac_cs_config='$ac_cs_config_escaped'
  26336. ac_cs_version="\\
  26337. config.status
  26338. configured by $0, generated by GNU Autoconf 2.71,
  26339. with options \\"\$ac_cs_config\\"
  26340. Copyright (C) 2021 Free Software Foundation, Inc.
  26341. This config.status script is free software; the Free Software Foundation
  26342. gives unlimited permission to copy, distribute and modify it."
  26343. ac_pwd='$ac_pwd'
  26344. srcdir='$srcdir'
  26345. INSTALL='$INSTALL'
  26346. AWK='$AWK'
  26347. test -n "\$AWK" || AWK=awk
  26348. _ACEOF
  26349. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26350. # The default lists apply if the user does not specify any file.
  26351. ac_need_defaults=:
  26352. while test $# != 0
  26353. do
  26354. case $1 in
  26355. --*=?*)
  26356. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26357. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26358. ac_shift=:
  26359. ;;
  26360. --*=)
  26361. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26362. ac_optarg=
  26363. ac_shift=:
  26364. ;;
  26365. *)
  26366. ac_option=$1
  26367. ac_optarg=$2
  26368. ac_shift=shift
  26369. ;;
  26370. esac
  26371. case $ac_option in
  26372. # Handling of the options.
  26373. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26374. ac_cs_recheck=: ;;
  26375. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26376. printf "%s\n" "$ac_cs_version"; exit ;;
  26377. --config | --confi | --conf | --con | --co | --c )
  26378. printf "%s\n" "$ac_cs_config"; exit ;;
  26379. --debug | --debu | --deb | --de | --d | -d )
  26380. debug=: ;;
  26381. --file | --fil | --fi | --f )
  26382. $ac_shift
  26383. case $ac_optarg in
  26384. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26385. '') as_fn_error $? "missing file argument" ;;
  26386. esac
  26387. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26388. ac_need_defaults=false;;
  26389. --header | --heade | --head | --hea )
  26390. $ac_shift
  26391. case $ac_optarg in
  26392. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26393. esac
  26394. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26395. ac_need_defaults=false;;
  26396. --he | --h)
  26397. # Conflict between --help and --header
  26398. as_fn_error $? "ambiguous option: \`$1'
  26399. Try \`$0 --help' for more information.";;
  26400. --help | --hel | -h )
  26401. printf "%s\n" "$ac_cs_usage"; exit ;;
  26402. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26403. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26404. ac_cs_silent=: ;;
  26405. # This is an error.
  26406. -*) as_fn_error $? "unrecognized option: \`$1'
  26407. Try \`$0 --help' for more information." ;;
  26408. *) as_fn_append ac_config_targets " $1"
  26409. ac_need_defaults=false ;;
  26410. esac
  26411. shift
  26412. done
  26413. ac_configure_extra_args=
  26414. if $ac_cs_silent; then
  26415. exec 6>/dev/null
  26416. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26417. fi
  26418. _ACEOF
  26419. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26420. if \$ac_cs_recheck; then
  26421. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26422. shift
  26423. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26424. CONFIG_SHELL='$SHELL'
  26425. export CONFIG_SHELL
  26426. exec "\$@"
  26427. fi
  26428. _ACEOF
  26429. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26430. exec 5>>config.log
  26431. {
  26432. echo
  26433. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26434. ## Running $as_me. ##
  26435. _ASBOX
  26436. printf "%s\n" "$ac_log"
  26437. } >&5
  26438. _ACEOF
  26439. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26440. #
  26441. # INIT-COMMANDS
  26442. #
  26443. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26444. # if CDPATH is set.
  26445. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26446. sed_quote_subst='$sed_quote_subst'
  26447. double_quote_subst='$double_quote_subst'
  26448. delay_variable_subst='$delay_variable_subst'
  26449. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26450. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26451. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26452. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26453. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26454. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26455. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26456. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26457. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26458. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26459. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26460. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26461. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26462. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26463. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26464. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26465. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26466. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26467. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26468. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26469. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26470. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26471. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26472. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26473. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26474. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26475. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26476. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26477. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26478. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26479. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26480. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26481. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26482. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26483. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26484. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26485. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26486. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26487. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26488. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26489. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26490. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26491. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26492. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26493. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26494. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26495. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26496. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26497. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26498. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26499. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26500. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26501. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26502. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26503. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26504. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26505. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26506. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26507. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26508. 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"`'
  26509. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26510. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26511. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26512. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26513. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26514. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26515. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26516. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26517. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26518. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26519. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26520. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26521. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26522. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26523. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26524. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26525. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26526. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26527. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26528. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26529. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26530. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26531. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26532. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26533. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26534. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26535. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26536. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26537. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26538. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26539. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26540. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26541. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26542. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26543. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26544. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26545. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26546. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26547. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26548. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26549. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26550. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26551. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26552. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26553. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26554. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26555. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26556. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26557. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26558. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26559. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26560. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26561. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26562. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26563. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26564. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26565. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26566. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26567. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26568. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26569. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26570. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26571. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26572. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26573. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26574. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26575. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26576. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26577. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26578. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26579. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26580. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26581. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26582. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26583. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26584. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26585. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26586. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26587. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26588. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26589. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26590. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26591. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26592. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26593. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26594. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26595. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26596. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26597. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26598. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26599. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26600. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26601. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26602. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26603. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26604. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26605. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26606. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26607. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26608. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26609. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26610. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26611. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26612. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26613. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26614. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26615. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26616. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26617. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26618. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26619. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26620. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26621. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26622. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26623. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26624. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26625. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26626. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26627. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26628. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26629. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26630. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26631. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26632. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26633. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26634. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26635. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26636. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26637. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26638. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26639. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26640. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26641. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26642. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26643. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26644. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26645. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26646. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26647. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26648. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26649. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26650. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26651. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26652. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26653. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26654. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26655. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26656. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26657. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26658. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26659. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26660. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26661. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26662. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26663. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26664. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26665. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26666. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26667. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26668. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26669. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26670. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26671. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26672. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26673. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26674. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26675. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26676. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26677. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26678. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26679. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26680. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26681. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26682. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26683. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26684. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26685. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26686. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26687. LTCC='$LTCC'
  26688. LTCFLAGS='$LTCFLAGS'
  26689. compiler='$compiler_DEFAULT'
  26690. # A function that is used when there is no print builtin or printf.
  26691. func_fallback_echo ()
  26692. {
  26693. eval 'cat <<_LTECHO_EOF
  26694. \$1
  26695. _LTECHO_EOF'
  26696. }
  26697. # Quote evaled strings.
  26698. for var in AS \
  26699. DLLTOOL \
  26700. OBJDUMP \
  26701. SHELL \
  26702. ECHO \
  26703. PATH_SEPARATOR \
  26704. SED \
  26705. GREP \
  26706. EGREP \
  26707. FGREP \
  26708. LD \
  26709. NM \
  26710. LN_S \
  26711. lt_SP2NL \
  26712. lt_NL2SP \
  26713. reload_flag \
  26714. deplibs_check_method \
  26715. file_magic_cmd \
  26716. file_magic_glob \
  26717. want_nocaseglob \
  26718. sharedlib_from_linklib_cmd \
  26719. AR \
  26720. AR_FLAGS \
  26721. archiver_list_spec \
  26722. STRIP \
  26723. RANLIB \
  26724. CC \
  26725. CFLAGS \
  26726. compiler \
  26727. lt_cv_sys_global_symbol_pipe \
  26728. lt_cv_sys_global_symbol_to_cdecl \
  26729. lt_cv_sys_global_symbol_to_import \
  26730. lt_cv_sys_global_symbol_to_c_name_address \
  26731. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26732. lt_cv_nm_interface \
  26733. nm_file_list_spec \
  26734. lt_cv_truncate_bin \
  26735. lt_prog_compiler_no_builtin_flag \
  26736. lt_prog_compiler_pic \
  26737. lt_prog_compiler_wl \
  26738. lt_prog_compiler_static \
  26739. lt_cv_prog_compiler_c_o \
  26740. need_locks \
  26741. MANIFEST_TOOL \
  26742. DSYMUTIL \
  26743. NMEDIT \
  26744. LIPO \
  26745. OTOOL \
  26746. OTOOL64 \
  26747. shrext_cmds \
  26748. export_dynamic_flag_spec \
  26749. whole_archive_flag_spec \
  26750. compiler_needs_object \
  26751. with_gnu_ld \
  26752. allow_undefined_flag \
  26753. no_undefined_flag \
  26754. hardcode_libdir_flag_spec \
  26755. hardcode_libdir_separator \
  26756. exclude_expsyms \
  26757. include_expsyms \
  26758. file_list_spec \
  26759. variables_saved_for_relink \
  26760. libname_spec \
  26761. library_names_spec \
  26762. soname_spec \
  26763. install_override_mode \
  26764. finish_eval \
  26765. old_striplib \
  26766. striplib \
  26767. compiler_lib_search_dirs \
  26768. predep_objects \
  26769. postdep_objects \
  26770. predeps \
  26771. postdeps \
  26772. compiler_lib_search_path \
  26773. LD_RC \
  26774. LD_CXX \
  26775. reload_flag_RC \
  26776. reload_flag_CXX \
  26777. compiler_RC \
  26778. compiler_CXX \
  26779. lt_prog_compiler_no_builtin_flag_RC \
  26780. lt_prog_compiler_no_builtin_flag_CXX \
  26781. lt_prog_compiler_pic_RC \
  26782. lt_prog_compiler_pic_CXX \
  26783. lt_prog_compiler_wl_RC \
  26784. lt_prog_compiler_wl_CXX \
  26785. lt_prog_compiler_static_RC \
  26786. lt_prog_compiler_static_CXX \
  26787. lt_cv_prog_compiler_c_o_RC \
  26788. lt_cv_prog_compiler_c_o_CXX \
  26789. export_dynamic_flag_spec_RC \
  26790. export_dynamic_flag_spec_CXX \
  26791. whole_archive_flag_spec_RC \
  26792. whole_archive_flag_spec_CXX \
  26793. compiler_needs_object_RC \
  26794. compiler_needs_object_CXX \
  26795. with_gnu_ld_RC \
  26796. with_gnu_ld_CXX \
  26797. allow_undefined_flag_RC \
  26798. allow_undefined_flag_CXX \
  26799. no_undefined_flag_RC \
  26800. no_undefined_flag_CXX \
  26801. hardcode_libdir_flag_spec_RC \
  26802. hardcode_libdir_flag_spec_CXX \
  26803. hardcode_libdir_separator_RC \
  26804. hardcode_libdir_separator_CXX \
  26805. exclude_expsyms_RC \
  26806. exclude_expsyms_CXX \
  26807. include_expsyms_RC \
  26808. include_expsyms_CXX \
  26809. file_list_spec_RC \
  26810. file_list_spec_CXX \
  26811. compiler_lib_search_dirs_RC \
  26812. compiler_lib_search_dirs_CXX \
  26813. predep_objects_RC \
  26814. predep_objects_CXX \
  26815. postdep_objects_RC \
  26816. postdep_objects_CXX \
  26817. predeps_RC \
  26818. predeps_CXX \
  26819. postdeps_RC \
  26820. postdeps_CXX \
  26821. compiler_lib_search_path_RC \
  26822. compiler_lib_search_path_CXX; do
  26823. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26824. *[\\\\\\\`\\"\\\$]*)
  26825. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26826. ;;
  26827. *)
  26828. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26829. ;;
  26830. esac
  26831. done
  26832. # Double-quote double-evaled strings.
  26833. for var in reload_cmds \
  26834. old_postinstall_cmds \
  26835. old_postuninstall_cmds \
  26836. old_archive_cmds \
  26837. extract_expsyms_cmds \
  26838. old_archive_from_new_cmds \
  26839. old_archive_from_expsyms_cmds \
  26840. archive_cmds \
  26841. archive_expsym_cmds \
  26842. module_cmds \
  26843. module_expsym_cmds \
  26844. export_symbols_cmds \
  26845. prelink_cmds \
  26846. postlink_cmds \
  26847. postinstall_cmds \
  26848. postuninstall_cmds \
  26849. finish_cmds \
  26850. sys_lib_search_path_spec \
  26851. configure_time_dlsearch_path \
  26852. configure_time_lt_sys_library_path \
  26853. reload_cmds_RC \
  26854. reload_cmds_CXX \
  26855. old_archive_cmds_RC \
  26856. old_archive_cmds_CXX \
  26857. old_archive_from_new_cmds_RC \
  26858. old_archive_from_new_cmds_CXX \
  26859. old_archive_from_expsyms_cmds_RC \
  26860. old_archive_from_expsyms_cmds_CXX \
  26861. archive_cmds_RC \
  26862. archive_cmds_CXX \
  26863. archive_expsym_cmds_RC \
  26864. archive_expsym_cmds_CXX \
  26865. module_cmds_RC \
  26866. module_cmds_CXX \
  26867. module_expsym_cmds_RC \
  26868. module_expsym_cmds_CXX \
  26869. export_symbols_cmds_RC \
  26870. export_symbols_cmds_CXX \
  26871. prelink_cmds_RC \
  26872. prelink_cmds_CXX \
  26873. postlink_cmds_RC \
  26874. postlink_cmds_CXX; do
  26875. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26876. *[\\\\\\\`\\"\\\$]*)
  26877. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26878. ;;
  26879. *)
  26880. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26881. ;;
  26882. esac
  26883. done
  26884. ac_aux_dir='$ac_aux_dir'
  26885. # See if we are running on zsh, and set the options that allow our
  26886. # commands through without removal of \ escapes INIT.
  26887. if test -n "\${ZSH_VERSION+set}"; then
  26888. setopt NO_GLOB_SUBST
  26889. fi
  26890. PACKAGE='$PACKAGE'
  26891. VERSION='$VERSION'
  26892. RM='$RM'
  26893. ofile='$ofile'
  26894. SUMMARY="$SUMMARY"
  26895. _ACEOF
  26896. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26897. # Handling of arguments.
  26898. for ac_config_target in $ac_config_targets
  26899. do
  26900. case $ac_config_target in
  26901. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  26902. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26903. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  26904. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  26905. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  26906. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  26907. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  26908. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  26909. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  26910. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  26911. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  26912. esac
  26913. done
  26914. # If the user did not use the arguments to specify the items to instantiate,
  26915. # then the envvar interface is used. Set only those that are not.
  26916. # We use the long form for the default assignment because of an extremely
  26917. # bizarre bug on SunOS 4.1.3.
  26918. if $ac_need_defaults; then
  26919. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  26920. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  26921. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  26922. fi
  26923. # Have a temporary directory for convenience. Make it in the build tree
  26924. # simply because there is no reason against having it here, and in addition,
  26925. # creating and moving files from /tmp can sometimes cause problems.
  26926. # Hook for its removal unless debugging.
  26927. # Note that there is a small window in which the directory will not be cleaned:
  26928. # after its creation but before its name has been assigned to `$tmp'.
  26929. $debug ||
  26930. {
  26931. tmp= ac_tmp=
  26932. trap 'exit_status=$?
  26933. : "${ac_tmp:=$tmp}"
  26934. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  26935. ' 0
  26936. trap 'as_fn_exit 1' 1 2 13 15
  26937. }
  26938. # Create a (secure) tmp directory for tmp files.
  26939. {
  26940. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26941. test -d "$tmp"
  26942. } ||
  26943. {
  26944. tmp=./conf$$-$RANDOM
  26945. (umask 077 && mkdir "$tmp")
  26946. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  26947. ac_tmp=$tmp
  26948. # Set up the scripts for CONFIG_FILES section.
  26949. # No need to generate them if there are no CONFIG_FILES.
  26950. # This happens for instance with `./config.status config.h'.
  26951. if test -n "$CONFIG_FILES"; then
  26952. ac_cr=`echo X | tr X '\015'`
  26953. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  26954. # But we know of no other shell where ac_cr would be empty at this
  26955. # point, so we can use a bashism as a fallback.
  26956. if test "x$ac_cr" = x; then
  26957. eval ac_cr=\$\'\\r\'
  26958. fi
  26959. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26960. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26961. ac_cs_awk_cr='\\r'
  26962. else
  26963. ac_cs_awk_cr=$ac_cr
  26964. fi
  26965. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  26966. _ACEOF
  26967. {
  26968. echo "cat >conf$$subs.awk <<_ACEOF" &&
  26969. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26970. echo "_ACEOF"
  26971. } >conf$$subs.sh ||
  26972. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26973. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  26974. ac_delim='%!_!# '
  26975. for ac_last_try in false false false false false :; do
  26976. . ./conf$$subs.sh ||
  26977. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26978. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26979. if test $ac_delim_n = $ac_delim_num; then
  26980. break
  26981. elif $ac_last_try; then
  26982. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26983. else
  26984. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26985. fi
  26986. done
  26987. rm -f conf$$subs.sh
  26988. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26989. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  26990. _ACEOF
  26991. sed -n '
  26992. h
  26993. s/^/S["/; s/!.*/"]=/
  26994. p
  26995. g
  26996. s/^[^!]*!//
  26997. :repl
  26998. t repl
  26999. s/'"$ac_delim"'$//
  27000. t delim
  27001. :nl
  27002. h
  27003. s/\(.\{148\}\)..*/\1/
  27004. t more1
  27005. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  27006. p
  27007. n
  27008. b repl
  27009. :more1
  27010. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27011. p
  27012. g
  27013. s/.\{148\}//
  27014. t nl
  27015. :delim
  27016. h
  27017. s/\(.\{148\}\)..*/\1/
  27018. t more2
  27019. s/["\\]/\\&/g; s/^/"/; s/$/"/
  27020. p
  27021. b
  27022. :more2
  27023. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27024. p
  27025. g
  27026. s/.\{148\}//
  27027. t delim
  27028. ' <conf$$subs.awk | sed '
  27029. /^[^""]/{
  27030. N
  27031. s/\n//
  27032. }
  27033. ' >>$CONFIG_STATUS || ac_write_fail=1
  27034. rm -f conf$$subs.awk
  27035. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27036. _ACAWK
  27037. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  27038. for (key in S) S_is_set[key] = 1
  27039. FS = ""
  27040. }
  27041. {
  27042. line = $ 0
  27043. nfields = split(line, field, "@")
  27044. substed = 0
  27045. len = length(field[1])
  27046. for (i = 2; i < nfields; i++) {
  27047. key = field[i]
  27048. keylen = length(key)
  27049. if (S_is_set[key]) {
  27050. value = S[key]
  27051. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  27052. len += length(value) + length(field[++i])
  27053. substed = 1
  27054. } else
  27055. len += 1 + keylen
  27056. }
  27057. print line
  27058. }
  27059. _ACAWK
  27060. _ACEOF
  27061. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27062. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  27063. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  27064. else
  27065. cat
  27066. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  27067. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  27068. _ACEOF
  27069. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  27070. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  27071. # trailing colons and then remove the whole line if VPATH becomes empty
  27072. # (actually we leave an empty line to preserve line numbers).
  27073. if test "x$srcdir" = x.; then
  27074. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  27075. h
  27076. s///
  27077. s/^/:/
  27078. s/[ ]*$/:/
  27079. s/:\$(srcdir):/:/g
  27080. s/:\${srcdir}:/:/g
  27081. s/:@srcdir@:/:/g
  27082. s/^:*//
  27083. s/:*$//
  27084. x
  27085. s/\(=[ ]*\).*/\1/
  27086. G
  27087. s/\n//
  27088. s/^[^=]*=[ ]*$//
  27089. }'
  27090. fi
  27091. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27092. fi # test -n "$CONFIG_FILES"
  27093. # Set up the scripts for CONFIG_HEADERS section.
  27094. # No need to generate them if there are no CONFIG_HEADERS.
  27095. # This happens for instance with `./config.status Makefile'.
  27096. if test -n "$CONFIG_HEADERS"; then
  27097. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27098. BEGIN {
  27099. _ACEOF
  27100. # Transform confdefs.h into an awk script `defines.awk', embedded as
  27101. # here-document in config.status, that substitutes the proper values into
  27102. # config.h.in to produce config.h.
  27103. # Create a delimiter string that does not exist in confdefs.h, to ease
  27104. # handling of long lines.
  27105. ac_delim='%!_!# '
  27106. for ac_last_try in false false :; do
  27107. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27108. if test -z "$ac_tt"; then
  27109. break
  27110. elif $ac_last_try; then
  27111. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27112. else
  27113. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27114. fi
  27115. done
  27116. # For the awk script, D is an array of macro values keyed by name,
  27117. # likewise P contains macro parameters if any. Preserve backslash
  27118. # newline sequences.
  27119. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27120. sed -n '
  27121. s/.\{148\}/&'"$ac_delim"'/g
  27122. t rset
  27123. :rset
  27124. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27125. t def
  27126. d
  27127. :def
  27128. s/\\$//
  27129. t bsnl
  27130. s/["\\]/\\&/g
  27131. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27132. D["\1"]=" \3"/p
  27133. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27134. d
  27135. :bsnl
  27136. s/["\\]/\\&/g
  27137. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27138. D["\1"]=" \3\\\\\\n"\\/p
  27139. t cont
  27140. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27141. t cont
  27142. d
  27143. :cont
  27144. n
  27145. s/.\{148\}/&'"$ac_delim"'/g
  27146. t clear
  27147. :clear
  27148. s/\\$//
  27149. t bsnlc
  27150. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27151. d
  27152. :bsnlc
  27153. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27154. b cont
  27155. ' <confdefs.h | sed '
  27156. s/'"$ac_delim"'/"\\\
  27157. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27158. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27159. for (key in D) D_is_set[key] = 1
  27160. FS = ""
  27161. }
  27162. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27163. line = \$ 0
  27164. split(line, arg, " ")
  27165. if (arg[1] == "#") {
  27166. defundef = arg[2]
  27167. mac1 = arg[3]
  27168. } else {
  27169. defundef = substr(arg[1], 2)
  27170. mac1 = arg[2]
  27171. }
  27172. split(mac1, mac2, "(") #)
  27173. macro = mac2[1]
  27174. prefix = substr(line, 1, index(line, defundef) - 1)
  27175. if (D_is_set[macro]) {
  27176. # Preserve the white space surrounding the "#".
  27177. print prefix "define", macro P[macro] D[macro]
  27178. next
  27179. } else {
  27180. # Replace #undef with comments. This is necessary, for example,
  27181. # in the case of _POSIX_SOURCE, which is predefined and required
  27182. # on some systems where configure will not decide to define it.
  27183. if (defundef == "undef") {
  27184. print "/*", prefix defundef, macro, "*/"
  27185. next
  27186. }
  27187. }
  27188. }
  27189. { print }
  27190. _ACAWK
  27191. _ACEOF
  27192. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27193. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27194. fi # test -n "$CONFIG_HEADERS"
  27195. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27196. shift
  27197. for ac_tag
  27198. do
  27199. case $ac_tag in
  27200. :[FHLC]) ac_mode=$ac_tag; continue;;
  27201. esac
  27202. case $ac_mode$ac_tag in
  27203. :[FHL]*:*);;
  27204. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27205. :[FH]-) ac_tag=-:-;;
  27206. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27207. esac
  27208. ac_save_IFS=$IFS
  27209. IFS=:
  27210. set x $ac_tag
  27211. IFS=$ac_save_IFS
  27212. shift
  27213. ac_file=$1
  27214. shift
  27215. case $ac_mode in
  27216. :L) ac_source=$1;;
  27217. :[FH])
  27218. ac_file_inputs=
  27219. for ac_f
  27220. do
  27221. case $ac_f in
  27222. -) ac_f="$ac_tmp/stdin";;
  27223. *) # Look for the file first in the build tree, then in the source tree
  27224. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27225. # because $ac_f cannot contain `:'.
  27226. test -f "$ac_f" ||
  27227. case $ac_f in
  27228. [\\/$]*) false;;
  27229. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27230. esac ||
  27231. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27232. esac
  27233. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27234. as_fn_append ac_file_inputs " '$ac_f'"
  27235. done
  27236. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27237. # use $as_me), people would be surprised to read:
  27238. # /* config.h. Generated by config.status. */
  27239. configure_input='Generated from '`
  27240. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27241. `' by configure.'
  27242. if test x"$ac_file" != x-; then
  27243. configure_input="$ac_file. $configure_input"
  27244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27245. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27246. fi
  27247. # Neutralize special characters interpreted by sed in replacement strings.
  27248. case $configure_input in #(
  27249. *\&* | *\|* | *\\* )
  27250. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27251. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27252. *) ac_sed_conf_input=$configure_input;;
  27253. esac
  27254. case $ac_tag in
  27255. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27256. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27257. esac
  27258. ;;
  27259. esac
  27260. ac_dir=`$as_dirname -- "$ac_file" ||
  27261. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27262. X"$ac_file" : 'X\(//\)[^/]' \| \
  27263. X"$ac_file" : 'X\(//\)$' \| \
  27264. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27265. printf "%s\n" X"$ac_file" |
  27266. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27267. s//\1/
  27268. q
  27269. }
  27270. /^X\(\/\/\)[^/].*/{
  27271. s//\1/
  27272. q
  27273. }
  27274. /^X\(\/\/\)$/{
  27275. s//\1/
  27276. q
  27277. }
  27278. /^X\(\/\).*/{
  27279. s//\1/
  27280. q
  27281. }
  27282. s/.*/./; q'`
  27283. as_dir="$ac_dir"; as_fn_mkdir_p
  27284. ac_builddir=.
  27285. case "$ac_dir" in
  27286. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27287. *)
  27288. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27289. # A ".." for each directory in $ac_dir_suffix.
  27290. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27291. case $ac_top_builddir_sub in
  27292. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27293. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27294. esac ;;
  27295. esac
  27296. ac_abs_top_builddir=$ac_pwd
  27297. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27298. # for backward compatibility:
  27299. ac_top_builddir=$ac_top_build_prefix
  27300. case $srcdir in
  27301. .) # We are building in place.
  27302. ac_srcdir=.
  27303. ac_top_srcdir=$ac_top_builddir_sub
  27304. ac_abs_top_srcdir=$ac_pwd ;;
  27305. [\\/]* | ?:[\\/]* ) # Absolute name.
  27306. ac_srcdir=$srcdir$ac_dir_suffix;
  27307. ac_top_srcdir=$srcdir
  27308. ac_abs_top_srcdir=$srcdir ;;
  27309. *) # Relative name.
  27310. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27311. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27312. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27313. esac
  27314. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27315. case $ac_mode in
  27316. :F)
  27317. #
  27318. # CONFIG_FILE
  27319. #
  27320. case $INSTALL in
  27321. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27322. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27323. esac
  27324. _ACEOF
  27325. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27326. # If the template does not know about datarootdir, expand it.
  27327. # FIXME: This hack should be removed a few years after 2.60.
  27328. ac_datarootdir_hack=; ac_datarootdir_seen=
  27329. ac_sed_dataroot='
  27330. /datarootdir/ {
  27331. p
  27332. q
  27333. }
  27334. /@datadir@/p
  27335. /@docdir@/p
  27336. /@infodir@/p
  27337. /@localedir@/p
  27338. /@mandir@/p'
  27339. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27340. *datarootdir*) ac_datarootdir_seen=yes;;
  27341. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27343. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27344. _ACEOF
  27345. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27346. ac_datarootdir_hack='
  27347. s&@datadir@&$datadir&g
  27348. s&@docdir@&$docdir&g
  27349. s&@infodir@&$infodir&g
  27350. s&@localedir@&$localedir&g
  27351. s&@mandir@&$mandir&g
  27352. s&\\\${datarootdir}&$datarootdir&g' ;;
  27353. esac
  27354. _ACEOF
  27355. # Neutralize VPATH when `$srcdir' = `.'.
  27356. # Shell code in configure.ac might set extrasub.
  27357. # FIXME: do we really want to maintain this feature?
  27358. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27359. ac_sed_extra="$ac_vpsub
  27360. $extrasub
  27361. _ACEOF
  27362. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27363. :t
  27364. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27365. s|@configure_input@|$ac_sed_conf_input|;t t
  27366. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27367. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27368. s&@srcdir@&$ac_srcdir&;t t
  27369. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27370. s&@top_srcdir@&$ac_top_srcdir&;t t
  27371. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27372. s&@builddir@&$ac_builddir&;t t
  27373. s&@abs_builddir@&$ac_abs_builddir&;t t
  27374. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27375. s&@INSTALL@&$ac_INSTALL&;t t
  27376. $ac_datarootdir_hack
  27377. "
  27378. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27379. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27380. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27381. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27382. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27383. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27385. which seems to be undefined. Please make sure it is defined" >&5
  27386. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27387. which seems to be undefined. Please make sure it is defined" >&2;}
  27388. rm -f "$ac_tmp/stdin"
  27389. case $ac_file in
  27390. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27391. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27392. esac \
  27393. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27394. ;;
  27395. :H)
  27396. #
  27397. # CONFIG_HEADER
  27398. #
  27399. if test x"$ac_file" != x-; then
  27400. {
  27401. printf "%s\n" "/* $configure_input */" >&1 \
  27402. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27403. } >"$ac_tmp/config.h" \
  27404. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27405. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27407. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27408. else
  27409. rm -f "$ac_file"
  27410. mv "$ac_tmp/config.h" "$ac_file" \
  27411. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27412. fi
  27413. else
  27414. printf "%s\n" "/* $configure_input */" >&1 \
  27415. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27416. || as_fn_error $? "could not create -" "$LINENO" 5
  27417. fi
  27418. ;;
  27419. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27420. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27421. ;;
  27422. esac
  27423. case $ac_file$ac_mode in
  27424. "libtool":C)
  27425. # See if we are running on zsh, and set the options that allow our
  27426. # commands through without removal of \ escapes.
  27427. if test -n "${ZSH_VERSION+set}"; then
  27428. setopt NO_GLOB_SUBST
  27429. fi
  27430. cfgfile=${ofile}T
  27431. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27432. $RM "$cfgfile"
  27433. cat <<_LT_EOF >> "$cfgfile"
  27434. #! $SHELL
  27435. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27436. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27437. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27438. # Provide generalized library-building support services.
  27439. # Written by Gordon Matzigkeit, 1996
  27440. # Copyright (C) 2014 Free Software Foundation, Inc.
  27441. # This is free software; see the source for copying conditions. There is NO
  27442. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27443. # GNU Libtool is free software; you can redistribute it and/or modify
  27444. # it under the terms of the GNU General Public License as published by
  27445. # the Free Software Foundation; either version 2 of of the License, or
  27446. # (at your option) any later version.
  27447. #
  27448. # As a special exception to the GNU General Public License, if you
  27449. # distribute this file as part of a program or library that is built
  27450. # using GNU Libtool, you may include this file under the same
  27451. # distribution terms that you use for the rest of that program.
  27452. #
  27453. # GNU Libtool is distributed in the hope that it will be useful, but
  27454. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27455. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27456. # GNU General Public License for more details.
  27457. #
  27458. # You should have received a copy of the GNU General Public License
  27459. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27460. # The names of the tagged configurations supported by this script.
  27461. available_tags='RC CXX '
  27462. # Configured defaults for sys_lib_dlsearch_path munging.
  27463. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27464. # ### BEGIN LIBTOOL CONFIG
  27465. # Which release of libtool.m4 was used?
  27466. macro_version=$macro_version
  27467. macro_revision=$macro_revision
  27468. # Assembler program.
  27469. AS=$lt_AS
  27470. # DLL creation program.
  27471. DLLTOOL=$lt_DLLTOOL
  27472. # Object dumper program.
  27473. OBJDUMP=$lt_OBJDUMP
  27474. # Whether or not to build shared libraries.
  27475. build_libtool_libs=$enable_shared
  27476. # Whether or not to build static libraries.
  27477. build_old_libs=$enable_static
  27478. # What type of objects to build.
  27479. pic_mode=$pic_mode
  27480. # Whether or not to optimize for fast installation.
  27481. fast_install=$enable_fast_install
  27482. # Shared archive member basename,for filename based shared library versioning on AIX.
  27483. shared_archive_member_spec=$shared_archive_member_spec
  27484. # Shell to use when invoking shell scripts.
  27485. SHELL=$lt_SHELL
  27486. # An echo program that protects backslashes.
  27487. ECHO=$lt_ECHO
  27488. # The PATH separator for the build system.
  27489. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27490. # The host system.
  27491. host_alias=$host_alias
  27492. host=$host
  27493. host_os=$host_os
  27494. # The build system.
  27495. build_alias=$build_alias
  27496. build=$build
  27497. build_os=$build_os
  27498. # A sed program that does not truncate output.
  27499. SED=$lt_SED
  27500. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27501. Xsed="\$SED -e 1s/^X//"
  27502. # A grep program that handles long lines.
  27503. GREP=$lt_GREP
  27504. # An ERE matcher.
  27505. EGREP=$lt_EGREP
  27506. # A literal string matcher.
  27507. FGREP=$lt_FGREP
  27508. # A BSD- or MS-compatible name lister.
  27509. NM=$lt_NM
  27510. # Whether we need soft or hard links.
  27511. LN_S=$lt_LN_S
  27512. # What is the maximum length of a command?
  27513. max_cmd_len=$max_cmd_len
  27514. # Object file suffix (normally "o").
  27515. objext=$ac_objext
  27516. # Executable file suffix (normally "").
  27517. exeext=$exeext
  27518. # whether the shell understands "unset".
  27519. lt_unset=$lt_unset
  27520. # turn spaces into newlines.
  27521. SP2NL=$lt_lt_SP2NL
  27522. # turn newlines into spaces.
  27523. NL2SP=$lt_lt_NL2SP
  27524. # convert \$build file names to \$host format.
  27525. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27526. # convert \$build files to toolchain format.
  27527. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27528. # Method to check whether dependent libraries are shared objects.
  27529. deplibs_check_method=$lt_deplibs_check_method
  27530. # Command to use when deplibs_check_method = "file_magic".
  27531. file_magic_cmd=$lt_file_magic_cmd
  27532. # How to find potential files when deplibs_check_method = "file_magic".
  27533. file_magic_glob=$lt_file_magic_glob
  27534. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27535. want_nocaseglob=$lt_want_nocaseglob
  27536. # Command to associate shared and link libraries.
  27537. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27538. # The archiver.
  27539. AR=$lt_AR
  27540. # Flags to create an archive.
  27541. AR_FLAGS=$lt_AR_FLAGS
  27542. # How to feed a file listing to the archiver.
  27543. archiver_list_spec=$lt_archiver_list_spec
  27544. # A symbol stripping program.
  27545. STRIP=$lt_STRIP
  27546. # Commands used to install an old-style archive.
  27547. RANLIB=$lt_RANLIB
  27548. old_postinstall_cmds=$lt_old_postinstall_cmds
  27549. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27550. # Whether to use a lock for old archive extraction.
  27551. lock_old_archive_extraction=$lock_old_archive_extraction
  27552. # A C compiler.
  27553. LTCC=$lt_CC
  27554. # LTCC compiler flags.
  27555. LTCFLAGS=$lt_CFLAGS
  27556. # Take the output of nm and produce a listing of raw symbols and C names.
  27557. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27558. # Transform the output of nm in a proper C declaration.
  27559. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27560. # Transform the output of nm into a list of symbols to manually relocate.
  27561. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27562. # Transform the output of nm in a C name address pair.
  27563. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27564. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27565. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27566. # The name lister interface.
  27567. nm_interface=$lt_lt_cv_nm_interface
  27568. # Specify filename containing input files for \$NM.
  27569. nm_file_list_spec=$lt_nm_file_list_spec
  27570. # The root where to search for dependent libraries,and where our libraries should be installed.
  27571. lt_sysroot=$lt_sysroot
  27572. # Command to truncate a binary pipe.
  27573. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27574. # The name of the directory that contains temporary libtool files.
  27575. objdir=$objdir
  27576. # Used to examine libraries when file_magic_cmd begins with "file".
  27577. MAGIC_CMD=$MAGIC_CMD
  27578. # Must we lock files when doing compilation?
  27579. need_locks=$lt_need_locks
  27580. # Manifest tool.
  27581. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27582. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27583. DSYMUTIL=$lt_DSYMUTIL
  27584. # Tool to change global to local symbols on Mac OS X.
  27585. NMEDIT=$lt_NMEDIT
  27586. # Tool to manipulate fat objects and archives on Mac OS X.
  27587. LIPO=$lt_LIPO
  27588. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27589. OTOOL=$lt_OTOOL
  27590. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27591. OTOOL64=$lt_OTOOL64
  27592. # Old archive suffix (normally "a").
  27593. libext=$libext
  27594. # Shared library suffix (normally ".so").
  27595. shrext_cmds=$lt_shrext_cmds
  27596. # The commands to extract the exported symbol list from a shared archive.
  27597. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27598. # Variables whose values should be saved in libtool wrapper scripts and
  27599. # restored at link time.
  27600. variables_saved_for_relink=$lt_variables_saved_for_relink
  27601. # Do we need the "lib" prefix for modules?
  27602. need_lib_prefix=$need_lib_prefix
  27603. # Do we need a version for libraries?
  27604. need_version=$need_version
  27605. # Library versioning type.
  27606. version_type=$version_type
  27607. # Shared library runtime path variable.
  27608. runpath_var=$runpath_var
  27609. # Shared library path variable.
  27610. shlibpath_var=$shlibpath_var
  27611. # Is shlibpath searched before the hard-coded library search path?
  27612. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27613. # Format of library name prefix.
  27614. libname_spec=$lt_libname_spec
  27615. # List of archive names. First name is the real one, the rest are links.
  27616. # The last name is the one that the linker finds with -lNAME
  27617. library_names_spec=$lt_library_names_spec
  27618. # The coded name of the library, if different from the real name.
  27619. soname_spec=$lt_soname_spec
  27620. # Permission mode override for installation of shared libraries.
  27621. install_override_mode=$lt_install_override_mode
  27622. # Command to use after installation of a shared archive.
  27623. postinstall_cmds=$lt_postinstall_cmds
  27624. # Command to use after uninstallation of a shared archive.
  27625. postuninstall_cmds=$lt_postuninstall_cmds
  27626. # Commands used to finish a libtool library installation in a directory.
  27627. finish_cmds=$lt_finish_cmds
  27628. # As "finish_cmds", except a single script fragment to be evaled but
  27629. # not shown.
  27630. finish_eval=$lt_finish_eval
  27631. # Whether we should hardcode library paths into libraries.
  27632. hardcode_into_libs=$hardcode_into_libs
  27633. # Compile-time system search path for libraries.
  27634. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27635. # Detected run-time system search path for libraries.
  27636. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27637. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27638. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27639. # Whether dlopen is supported.
  27640. dlopen_support=$enable_dlopen
  27641. # Whether dlopen of programs is supported.
  27642. dlopen_self=$enable_dlopen_self
  27643. # Whether dlopen of statically linked programs is supported.
  27644. dlopen_self_static=$enable_dlopen_self_static
  27645. # Commands to strip libraries.
  27646. old_striplib=$lt_old_striplib
  27647. striplib=$lt_striplib
  27648. # The linker used to build libraries.
  27649. LD=$lt_LD
  27650. # How to create reloadable object files.
  27651. reload_flag=$lt_reload_flag
  27652. reload_cmds=$lt_reload_cmds
  27653. # Commands used to build an old-style archive.
  27654. old_archive_cmds=$lt_old_archive_cmds
  27655. # A language specific compiler.
  27656. CC=$lt_compiler
  27657. # Is the compiler the GNU compiler?
  27658. with_gcc=$GCC
  27659. # Compiler flag to turn off builtin functions.
  27660. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27661. # Additional compiler flags for building library objects.
  27662. pic_flag=$lt_lt_prog_compiler_pic
  27663. # How to pass a linker flag through the compiler.
  27664. wl=$lt_lt_prog_compiler_wl
  27665. # Compiler flag to prevent dynamic linking.
  27666. link_static_flag=$lt_lt_prog_compiler_static
  27667. # Does compiler simultaneously support -c and -o options?
  27668. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27669. # Whether or not to add -lc for building shared libraries.
  27670. build_libtool_need_lc=$archive_cmds_need_lc
  27671. # Whether or not to disallow shared libs when runtime libs are static.
  27672. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27673. # Compiler flag to allow reflexive dlopens.
  27674. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27675. # Compiler flag to generate shared objects directly from archives.
  27676. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27677. # Whether the compiler copes with passing no objects directly.
  27678. compiler_needs_object=$lt_compiler_needs_object
  27679. # Create an old-style archive from a shared archive.
  27680. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27681. # Create a temporary old-style archive to link instead of a shared archive.
  27682. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27683. # Commands used to build a shared archive.
  27684. archive_cmds=$lt_archive_cmds
  27685. archive_expsym_cmds=$lt_archive_expsym_cmds
  27686. # Commands used to build a loadable module if different from building
  27687. # a shared archive.
  27688. module_cmds=$lt_module_cmds
  27689. module_expsym_cmds=$lt_module_expsym_cmds
  27690. # Whether we are building with GNU ld or not.
  27691. with_gnu_ld=$lt_with_gnu_ld
  27692. # Flag that allows shared libraries with undefined symbols to be built.
  27693. allow_undefined_flag=$lt_allow_undefined_flag
  27694. # Flag that enforces no undefined symbols.
  27695. no_undefined_flag=$lt_no_undefined_flag
  27696. # Flag to hardcode \$libdir into a binary during linking.
  27697. # This must work even if \$libdir does not exist
  27698. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27699. # Whether we need a single "-rpath" flag with a separated argument.
  27700. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27701. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27702. # DIR into the resulting binary.
  27703. hardcode_direct=$hardcode_direct
  27704. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27705. # DIR into the resulting binary and the resulting library dependency is
  27706. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27707. # library is relocated.
  27708. hardcode_direct_absolute=$hardcode_direct_absolute
  27709. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27710. # into the resulting binary.
  27711. hardcode_minus_L=$hardcode_minus_L
  27712. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27713. # into the resulting binary.
  27714. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27715. # Set to "yes" if building a shared library automatically hardcodes DIR
  27716. # into the library and all subsequent libraries and executables linked
  27717. # against it.
  27718. hardcode_automatic=$hardcode_automatic
  27719. # Set to yes if linker adds runtime paths of dependent libraries
  27720. # to runtime path list.
  27721. inherit_rpath=$inherit_rpath
  27722. # Whether libtool must link a program against all its dependency libraries.
  27723. link_all_deplibs=$link_all_deplibs
  27724. # Set to "yes" if exported symbols are required.
  27725. always_export_symbols=$always_export_symbols
  27726. # The commands to list exported symbols.
  27727. export_symbols_cmds=$lt_export_symbols_cmds
  27728. # Symbols that should not be listed in the preloaded symbols.
  27729. exclude_expsyms=$lt_exclude_expsyms
  27730. # Symbols that must always be exported.
  27731. include_expsyms=$lt_include_expsyms
  27732. # Commands necessary for linking programs (against libraries) with templates.
  27733. prelink_cmds=$lt_prelink_cmds
  27734. # Commands necessary for finishing linking programs.
  27735. postlink_cmds=$lt_postlink_cmds
  27736. # Specify filename containing input files.
  27737. file_list_spec=$lt_file_list_spec
  27738. # How to hardcode a shared library path into an executable.
  27739. hardcode_action=$hardcode_action
  27740. # The directories searched by this compiler when creating a shared library.
  27741. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27742. # Dependencies to place before and after the objects being linked to
  27743. # create a shared library.
  27744. predep_objects=$lt_predep_objects
  27745. postdep_objects=$lt_postdep_objects
  27746. predeps=$lt_predeps
  27747. postdeps=$lt_postdeps
  27748. # The library search path used internally by the compiler when linking
  27749. # a shared library.
  27750. compiler_lib_search_path=$lt_compiler_lib_search_path
  27751. # ### END LIBTOOL CONFIG
  27752. _LT_EOF
  27753. cat <<'_LT_EOF' >> "$cfgfile"
  27754. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27755. # func_munge_path_list VARIABLE PATH
  27756. # -----------------------------------
  27757. # VARIABLE is name of variable containing _space_ separated list of
  27758. # directories to be munged by the contents of PATH, which is string
  27759. # having a format:
  27760. # "DIR[:DIR]:"
  27761. # string "DIR[ DIR]" will be prepended to VARIABLE
  27762. # ":DIR[:DIR]"
  27763. # string "DIR[ DIR]" will be appended to VARIABLE
  27764. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27765. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27766. # "DIRA[ DIRA]" will be appended to VARIABLE
  27767. # "DIR[:DIR]"
  27768. # VARIABLE will be replaced by "DIR[ DIR]"
  27769. func_munge_path_list ()
  27770. {
  27771. case x$2 in
  27772. x)
  27773. ;;
  27774. *:)
  27775. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27776. ;;
  27777. x:*)
  27778. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27779. ;;
  27780. *::*)
  27781. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27782. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27783. ;;
  27784. *)
  27785. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27786. ;;
  27787. esac
  27788. }
  27789. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27790. func_cc_basename ()
  27791. {
  27792. for cc_temp in $*""; do
  27793. case $cc_temp in
  27794. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27795. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27796. \-*) ;;
  27797. *) break;;
  27798. esac
  27799. done
  27800. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27801. }
  27802. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27803. _LT_EOF
  27804. case $host_os in
  27805. aix3*)
  27806. cat <<\_LT_EOF >> "$cfgfile"
  27807. # AIX sometimes has problems with the GCC collect2 program. For some
  27808. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27809. # vanish in a puff of smoke.
  27810. if test set != "${COLLECT_NAMES+set}"; then
  27811. COLLECT_NAMES=
  27812. export COLLECT_NAMES
  27813. fi
  27814. _LT_EOF
  27815. ;;
  27816. esac
  27817. ltmain=$ac_aux_dir/ltmain.sh
  27818. # We use sed instead of cat because bash on DJGPP gets confused if
  27819. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27820. # text mode, it properly converts lines to CR/LF. This bash problem
  27821. # is reportedly fixed, but why not run on old versions too?
  27822. sed '$q' "$ltmain" >> "$cfgfile" \
  27823. || (rm -f "$cfgfile"; exit 1)
  27824. mv -f "$cfgfile" "$ofile" ||
  27825. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27826. chmod +x "$ofile"
  27827. cat <<_LT_EOF >> "$ofile"
  27828. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27829. # The linker used to build libraries.
  27830. LD=$lt_LD_RC
  27831. # How to create reloadable object files.
  27832. reload_flag=$lt_reload_flag_RC
  27833. reload_cmds=$lt_reload_cmds_RC
  27834. # Commands used to build an old-style archive.
  27835. old_archive_cmds=$lt_old_archive_cmds_RC
  27836. # A language specific compiler.
  27837. CC=$lt_compiler_RC
  27838. # Is the compiler the GNU compiler?
  27839. with_gcc=$GCC_RC
  27840. # Compiler flag to turn off builtin functions.
  27841. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27842. # Additional compiler flags for building library objects.
  27843. pic_flag=$lt_lt_prog_compiler_pic_RC
  27844. # How to pass a linker flag through the compiler.
  27845. wl=$lt_lt_prog_compiler_wl_RC
  27846. # Compiler flag to prevent dynamic linking.
  27847. link_static_flag=$lt_lt_prog_compiler_static_RC
  27848. # Does compiler simultaneously support -c and -o options?
  27849. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27850. # Whether or not to add -lc for building shared libraries.
  27851. build_libtool_need_lc=$archive_cmds_need_lc_RC
  27852. # Whether or not to disallow shared libs when runtime libs are static.
  27853. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  27854. # Compiler flag to allow reflexive dlopens.
  27855. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  27856. # Compiler flag to generate shared objects directly from archives.
  27857. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  27858. # Whether the compiler copes with passing no objects directly.
  27859. compiler_needs_object=$lt_compiler_needs_object_RC
  27860. # Create an old-style archive from a shared archive.
  27861. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  27862. # Create a temporary old-style archive to link instead of a shared archive.
  27863. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  27864. # Commands used to build a shared archive.
  27865. archive_cmds=$lt_archive_cmds_RC
  27866. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  27867. # Commands used to build a loadable module if different from building
  27868. # a shared archive.
  27869. module_cmds=$lt_module_cmds_RC
  27870. module_expsym_cmds=$lt_module_expsym_cmds_RC
  27871. # Whether we are building with GNU ld or not.
  27872. with_gnu_ld=$lt_with_gnu_ld_RC
  27873. # Flag that allows shared libraries with undefined symbols to be built.
  27874. allow_undefined_flag=$lt_allow_undefined_flag_RC
  27875. # Flag that enforces no undefined symbols.
  27876. no_undefined_flag=$lt_no_undefined_flag_RC
  27877. # Flag to hardcode \$libdir into a binary during linking.
  27878. # This must work even if \$libdir does not exist
  27879. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  27880. # Whether we need a single "-rpath" flag with a separated argument.
  27881. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  27882. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27883. # DIR into the resulting binary.
  27884. hardcode_direct=$hardcode_direct_RC
  27885. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27886. # DIR into the resulting binary and the resulting library dependency is
  27887. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27888. # library is relocated.
  27889. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  27890. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27891. # into the resulting binary.
  27892. hardcode_minus_L=$hardcode_minus_L_RC
  27893. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27894. # into the resulting binary.
  27895. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  27896. # Set to "yes" if building a shared library automatically hardcodes DIR
  27897. # into the library and all subsequent libraries and executables linked
  27898. # against it.
  27899. hardcode_automatic=$hardcode_automatic_RC
  27900. # Set to yes if linker adds runtime paths of dependent libraries
  27901. # to runtime path list.
  27902. inherit_rpath=$inherit_rpath_RC
  27903. # Whether libtool must link a program against all its dependency libraries.
  27904. link_all_deplibs=$link_all_deplibs_RC
  27905. # Set to "yes" if exported symbols are required.
  27906. always_export_symbols=$always_export_symbols_RC
  27907. # The commands to list exported symbols.
  27908. export_symbols_cmds=$lt_export_symbols_cmds_RC
  27909. # Symbols that should not be listed in the preloaded symbols.
  27910. exclude_expsyms=$lt_exclude_expsyms_RC
  27911. # Symbols that must always be exported.
  27912. include_expsyms=$lt_include_expsyms_RC
  27913. # Commands necessary for linking programs (against libraries) with templates.
  27914. prelink_cmds=$lt_prelink_cmds_RC
  27915. # Commands necessary for finishing linking programs.
  27916. postlink_cmds=$lt_postlink_cmds_RC
  27917. # Specify filename containing input files.
  27918. file_list_spec=$lt_file_list_spec_RC
  27919. # How to hardcode a shared library path into an executable.
  27920. hardcode_action=$hardcode_action_RC
  27921. # The directories searched by this compiler when creating a shared library.
  27922. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  27923. # Dependencies to place before and after the objects being linked to
  27924. # create a shared library.
  27925. predep_objects=$lt_predep_objects_RC
  27926. postdep_objects=$lt_postdep_objects_RC
  27927. predeps=$lt_predeps_RC
  27928. postdeps=$lt_postdeps_RC
  27929. # The library search path used internally by the compiler when linking
  27930. # a shared library.
  27931. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  27932. # ### END LIBTOOL TAG CONFIG: RC
  27933. _LT_EOF
  27934. cat <<_LT_EOF >> "$ofile"
  27935. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  27936. # The linker used to build libraries.
  27937. LD=$lt_LD_CXX
  27938. # How to create reloadable object files.
  27939. reload_flag=$lt_reload_flag_CXX
  27940. reload_cmds=$lt_reload_cmds_CXX
  27941. # Commands used to build an old-style archive.
  27942. old_archive_cmds=$lt_old_archive_cmds_CXX
  27943. # A language specific compiler.
  27944. CC=$lt_compiler_CXX
  27945. # Is the compiler the GNU compiler?
  27946. with_gcc=$GCC_CXX
  27947. # Compiler flag to turn off builtin functions.
  27948. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  27949. # Additional compiler flags for building library objects.
  27950. pic_flag=$lt_lt_prog_compiler_pic_CXX
  27951. # How to pass a linker flag through the compiler.
  27952. wl=$lt_lt_prog_compiler_wl_CXX
  27953. # Compiler flag to prevent dynamic linking.
  27954. link_static_flag=$lt_lt_prog_compiler_static_CXX
  27955. # Does compiler simultaneously support -c and -o options?
  27956. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  27957. # Whether or not to add -lc for building shared libraries.
  27958. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  27959. # Whether or not to disallow shared libs when runtime libs are static.
  27960. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  27961. # Compiler flag to allow reflexive dlopens.
  27962. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  27963. # Compiler flag to generate shared objects directly from archives.
  27964. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  27965. # Whether the compiler copes with passing no objects directly.
  27966. compiler_needs_object=$lt_compiler_needs_object_CXX
  27967. # Create an old-style archive from a shared archive.
  27968. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  27969. # Create a temporary old-style archive to link instead of a shared archive.
  27970. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  27971. # Commands used to build a shared archive.
  27972. archive_cmds=$lt_archive_cmds_CXX
  27973. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  27974. # Commands used to build a loadable module if different from building
  27975. # a shared archive.
  27976. module_cmds=$lt_module_cmds_CXX
  27977. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  27978. # Whether we are building with GNU ld or not.
  27979. with_gnu_ld=$lt_with_gnu_ld_CXX
  27980. # Flag that allows shared libraries with undefined symbols to be built.
  27981. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  27982. # Flag that enforces no undefined symbols.
  27983. no_undefined_flag=$lt_no_undefined_flag_CXX
  27984. # Flag to hardcode \$libdir into a binary during linking.
  27985. # This must work even if \$libdir does not exist
  27986. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  27987. # Whether we need a single "-rpath" flag with a separated argument.
  27988. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  27989. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27990. # DIR into the resulting binary.
  27991. hardcode_direct=$hardcode_direct_CXX
  27992. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27993. # DIR into the resulting binary and the resulting library dependency is
  27994. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27995. # library is relocated.
  27996. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  27997. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27998. # into the resulting binary.
  27999. hardcode_minus_L=$hardcode_minus_L_CXX
  28000. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28001. # into the resulting binary.
  28002. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  28003. # Set to "yes" if building a shared library automatically hardcodes DIR
  28004. # into the library and all subsequent libraries and executables linked
  28005. # against it.
  28006. hardcode_automatic=$hardcode_automatic_CXX
  28007. # Set to yes if linker adds runtime paths of dependent libraries
  28008. # to runtime path list.
  28009. inherit_rpath=$inherit_rpath_CXX
  28010. # Whether libtool must link a program against all its dependency libraries.
  28011. link_all_deplibs=$link_all_deplibs_CXX
  28012. # Set to "yes" if exported symbols are required.
  28013. always_export_symbols=$always_export_symbols_CXX
  28014. # The commands to list exported symbols.
  28015. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  28016. # Symbols that should not be listed in the preloaded symbols.
  28017. exclude_expsyms=$lt_exclude_expsyms_CXX
  28018. # Symbols that must always be exported.
  28019. include_expsyms=$lt_include_expsyms_CXX
  28020. # Commands necessary for linking programs (against libraries) with templates.
  28021. prelink_cmds=$lt_prelink_cmds_CXX
  28022. # Commands necessary for finishing linking programs.
  28023. postlink_cmds=$lt_postlink_cmds_CXX
  28024. # Specify filename containing input files.
  28025. file_list_spec=$lt_file_list_spec_CXX
  28026. # How to hardcode a shared library path into an executable.
  28027. hardcode_action=$hardcode_action_CXX
  28028. # The directories searched by this compiler when creating a shared library.
  28029. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  28030. # Dependencies to place before and after the objects being linked to
  28031. # create a shared library.
  28032. predep_objects=$lt_predep_objects_CXX
  28033. postdep_objects=$lt_postdep_objects_CXX
  28034. predeps=$lt_predeps_CXX
  28035. postdeps=$lt_postdeps_CXX
  28036. # The library search path used internally by the compiler when linking
  28037. # a shared library.
  28038. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  28039. # ### END LIBTOOL TAG CONFIG: CXX
  28040. _LT_EOF
  28041. ;;
  28042. "sdl2_config":C) chmod a+x sdl2-config ;;
  28043. "summary":C) printf "$SUMMARY" ;;
  28044. esac
  28045. done # for ac_tag
  28046. as_fn_exit 0
  28047. _ACEOF
  28048. ac_clean_files=$ac_clean_files_save
  28049. test $ac_write_fail = 0 ||
  28050. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  28051. # configure is writing to config.log, and then calls config.status.
  28052. # config.status does its own redirection, appending to config.log.
  28053. # Unfortunately, on DOS this fails, as config.log is still kept open
  28054. # by configure, so config.status won't be able to write to it; its
  28055. # output is simply discarded. So we exec the FD to /dev/null,
  28056. # effectively closing config.log, so it can be properly (re)opened and
  28057. # appended to by config.status. When coming back to configure, we
  28058. # need to make the FD available again.
  28059. if test "$no_create" != yes; then
  28060. ac_cs_success=:
  28061. ac_config_status_args=
  28062. test "$silent" = yes &&
  28063. ac_config_status_args="$ac_config_status_args --quiet"
  28064. exec 5>/dev/null
  28065. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  28066. exec 5>>config.log
  28067. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  28068. # would make configure fail if this is the last instruction.
  28069. $ac_cs_success || as_fn_exit 1
  28070. fi
  28071. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  28072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  28073. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  28074. fi