configure 951 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. as_nop=:
  18. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  19. then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else $as_nop
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. # Reset variables that may have inherited troublesome values from
  35. # the environment.
  36. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  37. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38. # side effect of setting IFS to empty, thus disabling word splitting.)
  39. # Quoting is to prevent editors from complaining about space-tab.
  40. as_nl='
  41. '
  42. export as_nl
  43. IFS=" "" $as_nl"
  44. PS1='$ '
  45. PS2='> '
  46. PS4='+ '
  47. # Ensure predictable behavior from utilities with locale-dependent output.
  48. LC_ALL=C
  49. export LC_ALL
  50. LANGUAGE=C
  51. export LANGUAGE
  52. # We cannot yet rely on "unset" to work, but we need these variables
  53. # to be unset--not just set to an empty or harmless value--now, to
  54. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  55. # also avoids known problems related to "unset" and subshell syntax
  56. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  57. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  58. do eval test \${$as_var+y} \
  59. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60. done
  61. # Ensure that fds 0, 1, and 2 are open.
  62. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  63. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  64. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  65. # The user is always right.
  66. if ${PATH_SEPARATOR+false} :; then
  67. PATH_SEPARATOR=:
  68. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  69. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  70. PATH_SEPARATOR=';'
  71. }
  72. fi
  73. # Find who we are. Look in the path if we contain no directory separator.
  74. as_myself=
  75. case $0 in #((
  76. *[\\/]* ) as_myself=$0 ;;
  77. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  78. for as_dir in $PATH
  79. do
  80. IFS=$as_save_IFS
  81. case $as_dir in #(((
  82. '') as_dir=./ ;;
  83. */) ;;
  84. *) as_dir=$as_dir/ ;;
  85. esac
  86. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  87. done
  88. IFS=$as_save_IFS
  89. ;;
  90. esac
  91. # We did not find ourselves, most probably we were run as `sh COMMAND'
  92. # in which case we are not to be found in the path.
  93. if test "x$as_myself" = x; then
  94. as_myself=$0
  95. fi
  96. if test ! -f "$as_myself"; then
  97. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  98. exit 1
  99. fi
  100. # Use a proper internal environment variable to ensure we don't fall
  101. # into an infinite loop, continuously re-executing ourselves.
  102. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  103. _as_can_reexec=no; export _as_can_reexec;
  104. # We cannot yet assume a decent shell, so we have to provide a
  105. # neutralization value for shells without unset; and this also
  106. # works around shells that cannot unset nonexistent variables.
  107. # Preserve -v and -x to the replacement shell.
  108. BASH_ENV=/dev/null
  109. ENV=/dev/null
  110. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  111. case $- in # ((((
  112. *v*x* | *x*v* ) as_opts=-vx ;;
  113. *v* ) as_opts=-v ;;
  114. *x* ) as_opts=-x ;;
  115. * ) as_opts= ;;
  116. esac
  117. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  118. # Admittedly, this is quite paranoid, since all the known shells bail
  119. # out after a failed `exec'.
  120. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  121. exit 255
  122. fi
  123. # We don't want this to propagate to other subprocesses.
  124. { _as_can_reexec=; unset _as_can_reexec;}
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="as_nop=:
  127. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  128. then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else \$as_nop
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  155. then :
  156. else \$as_nop
  157. exitcode=1; echo positional parameters were not saved.
  158. fi
  159. test x\$exitcode = x0 || exit 1
  160. blah=\$(echo \$(echo blah))
  161. test x\"\$blah\" = xblah || exit 1
  162. test -x / || exit 1"
  163. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  164. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  165. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  166. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  167. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  168. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  169. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  170. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  171. PATH=/empty FPATH=/empty; export PATH FPATH
  172. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  173. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  174. test \$(( 1 + 1 )) = 2 || exit 1"
  175. if (eval "$as_required") 2>/dev/null
  176. then :
  177. as_have_required=yes
  178. else $as_nop
  179. as_have_required=no
  180. fi
  181. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  182. then :
  183. else $as_nop
  184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  185. as_found=false
  186. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  187. do
  188. IFS=$as_save_IFS
  189. case $as_dir in #(((
  190. '') as_dir=./ ;;
  191. */) ;;
  192. *) as_dir=$as_dir/ ;;
  193. esac
  194. as_found=:
  195. case $as_dir in #(
  196. /*)
  197. for as_base in sh bash ksh sh5; do
  198. # Try only shells that exist, to save several forks.
  199. as_shell=$as_dir$as_base
  200. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  201. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  202. then :
  203. CONFIG_SHELL=$as_shell as_have_required=yes
  204. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  205. then :
  206. break 2
  207. fi
  208. fi
  209. done;;
  210. esac
  211. as_found=false
  212. done
  213. IFS=$as_save_IFS
  214. if $as_found
  215. then :
  216. else $as_nop
  217. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  218. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  219. then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi
  222. fi
  223. if test "x$CONFIG_SHELL" != x
  224. then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno
  246. then :
  247. printf "%s\n" "$0: This script requires a shell more modern than all"
  248. printf "%s\n" "$0: the shells that I found on your system."
  249. if test ${ZSH_VERSION+y} ; then
  250. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  251. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  252. else
  253. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
  254. $0: including any error possibly output before this
  255. $0: message. Then install a modern shell, or manually run
  256. $0: the script under such a shell if you do have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_nop
  295. # ---------
  296. # Do nothing but, unlike ":", preserve the value of $?.
  297. as_fn_nop ()
  298. {
  299. return $?
  300. }
  301. as_nop=as_fn_nop
  302. # as_fn_mkdir_p
  303. # -------------
  304. # Create "$as_dir" as a directory, including parents if necessary.
  305. as_fn_mkdir_p ()
  306. {
  307. case $as_dir in #(
  308. -*) as_dir=./$as_dir;;
  309. esac
  310. test -d "$as_dir" || eval $as_mkdir_p || {
  311. as_dirs=
  312. while :; do
  313. case $as_dir in #(
  314. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  315. *) as_qdir=$as_dir;;
  316. esac
  317. as_dirs="'$as_qdir' $as_dirs"
  318. as_dir=`$as_dirname -- "$as_dir" ||
  319. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  320. X"$as_dir" : 'X\(//\)[^/]' \| \
  321. X"$as_dir" : 'X\(//\)$' \| \
  322. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  323. printf "%s\n" X"$as_dir" |
  324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)[^/].*/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\/\)$/{
  333. s//\1/
  334. q
  335. }
  336. /^X\(\/\).*/{
  337. s//\1/
  338. q
  339. }
  340. s/.*/./; q'`
  341. test -d "$as_dir" && break
  342. done
  343. test -z "$as_dirs" || eval "mkdir $as_dirs"
  344. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  345. } # as_fn_mkdir_p
  346. # as_fn_executable_p FILE
  347. # -----------------------
  348. # Test if FILE is an executable regular file.
  349. as_fn_executable_p ()
  350. {
  351. test -f "$1" && test -x "$1"
  352. } # as_fn_executable_p
  353. # as_fn_append VAR VALUE
  354. # ----------------------
  355. # Append the text in VALUE to the end of the definition contained in VAR. Take
  356. # advantage of any shell optimizations that allow amortized linear growth over
  357. # repeated appends, instead of the typical quadratic growth present in naive
  358. # implementations.
  359. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  360. then :
  361. eval 'as_fn_append ()
  362. {
  363. eval $1+=\$2
  364. }'
  365. else $as_nop
  366. as_fn_append ()
  367. {
  368. eval $1=\$$1\$2
  369. }
  370. fi # as_fn_append
  371. # as_fn_arith ARG...
  372. # ------------------
  373. # Perform arithmetic evaluation on the ARGs, and store the result in the
  374. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  375. # must be portable across $(()) and expr.
  376. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  377. then :
  378. eval 'as_fn_arith ()
  379. {
  380. as_val=$(( $* ))
  381. }'
  382. else $as_nop
  383. as_fn_arith ()
  384. {
  385. as_val=`expr "$@" || test $? -eq 1`
  386. }
  387. fi # as_fn_arith
  388. # as_fn_nop
  389. # ---------
  390. # Do nothing but, unlike ":", preserve the value of $?.
  391. as_fn_nop ()
  392. {
  393. return $?
  394. }
  395. as_nop=as_fn_nop
  396. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  397. # ----------------------------------------
  398. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  399. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  400. # script with STATUS, using 1 if that was 0.
  401. as_fn_error ()
  402. {
  403. as_status=$1; test $as_status -eq 0 && as_status=1
  404. if test "$4"; then
  405. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  407. fi
  408. printf "%s\n" "$as_me: error: $2" >&2
  409. as_fn_exit $as_status
  410. } # as_fn_error
  411. if expr a : '\(a\)' >/dev/null 2>&1 &&
  412. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  413. as_expr=expr
  414. else
  415. as_expr=false
  416. fi
  417. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  418. as_basename=basename
  419. else
  420. as_basename=false
  421. fi
  422. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  423. as_dirname=dirname
  424. else
  425. as_dirname=false
  426. fi
  427. as_me=`$as_basename -- "$0" ||
  428. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  429. X"$0" : 'X\(//\)$' \| \
  430. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  431. printf "%s\n" X/"$0" |
  432. sed '/^.*\/\([^/][^/]*\)\/*$/{
  433. s//\1/
  434. q
  435. }
  436. /^X\/\(\/\/\)$/{
  437. s//\1/
  438. q
  439. }
  440. /^X\/\(\/\).*/{
  441. s//\1/
  442. q
  443. }
  444. s/.*/./; q'`
  445. # Avoid depending upon Character Ranges.
  446. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  447. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  448. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  449. as_cr_digits='0123456789'
  450. as_cr_alnum=$as_cr_Letters$as_cr_digits
  451. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  452. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  453. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  454. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  455. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  456. sed -n '
  457. p
  458. /[$]LINENO/=
  459. ' <$as_myself |
  460. sed '
  461. s/[$]LINENO.*/&-/
  462. t lineno
  463. b
  464. :lineno
  465. N
  466. :loop
  467. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  468. t loop
  469. s/-\n.*//
  470. ' >$as_me.lineno &&
  471. chmod +x "$as_me.lineno" ||
  472. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  473. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  474. # already done that, so ensure we don't try to do so again and fall
  475. # in an infinite loop. This has already happened in practice.
  476. _as_can_reexec=no; export _as_can_reexec
  477. # Don't try to exec as it changes $[0], causing all sort of problems
  478. # (the dirname of $[0] is not the place where we might find the
  479. # original and so on. Autoconf is especially sensitive to this).
  480. . "./$as_me.lineno"
  481. # Exit status is that of the last command.
  482. exit
  483. }
  484. # Determine whether it's possible to make 'echo' print without a newline.
  485. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  486. # for compatibility with existing Makefiles.
  487. ECHO_C= ECHO_N= ECHO_T=
  488. case `echo -n x` in #(((((
  489. -n*)
  490. case `echo 'xy\c'` in
  491. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  492. xy) ECHO_C='\c';;
  493. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  494. ECHO_T=' ';;
  495. esac;;
  496. *)
  497. ECHO_N='-n';;
  498. esac
  499. # For backward compatibility with old third-party macros, we provide
  500. # the shell variables $as_echo and $as_echo_n. New code should use
  501. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  502. as_echo='printf %s\n'
  503. as_echo_n='printf %s'
  504. rm -f conf$$ conf$$.exe conf$$.file
  505. if test -d conf$$.dir; then
  506. rm -f conf$$.dir/conf$$.file
  507. else
  508. rm -f conf$$.dir
  509. mkdir conf$$.dir 2>/dev/null
  510. fi
  511. if (echo >conf$$.file) 2>/dev/null; then
  512. if ln -s conf$$.file conf$$ 2>/dev/null; then
  513. as_ln_s='ln -s'
  514. # ... but there are two gotchas:
  515. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  516. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  517. # In both cases, we have to default to `cp -pR'.
  518. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  519. as_ln_s='cp -pR'
  520. elif ln conf$$.file conf$$ 2>/dev/null; then
  521. as_ln_s=ln
  522. else
  523. as_ln_s='cp -pR'
  524. fi
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  529. rmdir conf$$.dir 2>/dev/null
  530. if mkdir -p . 2>/dev/null; then
  531. as_mkdir_p='mkdir -p "$as_dir"'
  532. else
  533. test -d ./-p && rmdir ./-p
  534. as_mkdir_p=false
  535. fi
  536. as_test_x='test -x'
  537. as_executable_p=as_fn_executable_p
  538. # Sed expression to map a string onto a valid CPP name.
  539. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  540. # Sed expression to map a string onto a valid variable name.
  541. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  542. SHELL=${CONFIG_SHELL-/bin/sh}
  543. test -n "$DJDIR" || exec 7<&0 </dev/null
  544. exec 6>&1
  545. # Name of the host.
  546. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  547. # so uname gets run too.
  548. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  549. #
  550. # Initializations.
  551. #
  552. ac_default_prefix=/usr/local
  553. ac_clean_files=
  554. ac_config_libobj_dir=.
  555. LIBOBJS=
  556. cross_compiling=no
  557. subdirs=
  558. MFLAGS=
  559. MAKEFLAGS=
  560. # Identity of this package.
  561. PACKAGE_NAME=''
  562. PACKAGE_TARNAME=''
  563. PACKAGE_VERSION=''
  564. PACKAGE_STRING=''
  565. PACKAGE_BUGREPORT=''
  566. PACKAGE_URL=''
  567. ac_unique_file="src/SDL.c"
  568. # Factoring default headers for most tests.
  569. ac_includes_default="\
  570. #include <stddef.h>
  571. #ifdef HAVE_STDIO_H
  572. # include <stdio.h>
  573. #endif
  574. #ifdef HAVE_STDLIB_H
  575. # include <stdlib.h>
  576. #endif
  577. #ifdef HAVE_STRING_H
  578. # include <string.h>
  579. #endif
  580. #ifdef HAVE_INTTYPES_H
  581. # include <inttypes.h>
  582. #endif
  583. #ifdef HAVE_STDINT_H
  584. # include <stdint.h>
  585. #endif
  586. #ifdef HAVE_STRINGS_H
  587. # include <strings.h>
  588. #endif
  589. #ifdef HAVE_SYS_TYPES_H
  590. # include <sys/types.h>
  591. #endif
  592. #ifdef HAVE_SYS_STAT_H
  593. # include <sys/stat.h>
  594. #endif
  595. #ifdef HAVE_UNISTD_H
  596. # include <unistd.h>
  597. #endif"
  598. ac_header_c_list=
  599. ac_subst_vars='LTLIBOBJS
  600. LIBOBJS
  601. WAYLAND_SCANNER_CODE_MODE
  602. WAYLAND_SCANNER
  603. EXTRA_LDFLAGS
  604. BUILD_LDFLAGS
  605. EXTRA_CFLAGS
  606. BUILD_CFLAGS
  607. SDLTEST_OBJECTS
  608. SDLMAIN_OBJECTS
  609. VERSION_OBJECTS
  610. GEN_OBJECTS
  611. GEN_HEADERS
  612. OBJECTS
  613. INCLUDE
  614. ac_aux_dir
  615. ENABLE_STATIC_FALSE
  616. ENABLE_STATIC_TRUE
  617. ENABLE_SHARED_FALSE
  618. ENABLE_SHARED_TRUE
  619. PKGCONFIG_LIBS_PRIV
  620. SDL_RLD_FLAGS
  621. SDL_STATIC_LIBS
  622. SDL_LIBS
  623. SDL_CFLAGS
  624. bin_prefix_relpath
  625. cmake_prefix_relpath
  626. INSTALL_SDL2_CONFIG
  627. LIBUSB_LIBS
  628. LIBUSB_CFLAGS
  629. IBUS_LIBS
  630. IBUS_CFLAGS
  631. DBUS_LIBS
  632. DBUS_CFLAGS
  633. LIBGBM_LIBS
  634. LIBGBM_CFLAGS
  635. LIBDRM_LIBS
  636. LIBDRM_CFLAGS
  637. DIRECTFB_LIBS
  638. DIRECTFB_CFLAGS
  639. X_EXTRA_LIBS
  640. X_LIBS
  641. X_PRE_LIBS
  642. X_CFLAGS
  643. XMKMF
  644. RPI_LIBS
  645. RPI_CFLAGS
  646. DECOR_LIBS
  647. DECOR_CFLAGS
  648. FUSIONSOUND_LIBS
  649. FUSIONSOUND_CFLAGS
  650. ARTSCONFIG
  651. PULSEAUDIO_LIBS
  652. PULSEAUDIO_CFLAGS
  653. PIPEWIRE_LIBS
  654. PIPEWIRE_CFLAGS
  655. ESD_CONFIG
  656. ESD_LIBS
  657. ESD_CFLAGS
  658. JACK_LIBS
  659. JACK_CFLAGS
  660. ALSA_LIBS
  661. ALSA_CFLAGS
  662. ALLOCA
  663. CPP
  664. LIBTOOLLINKERTAG
  665. LINKER
  666. SORT
  667. PKG_CONFIG_LIBDIR
  668. PKG_CONFIG_PATH
  669. PKG_CONFIG
  670. SET_MAKE
  671. INSTALL_DATA
  672. INSTALL_SCRIPT
  673. INSTALL_PROGRAM
  674. CXXCPP
  675. ac_ct_CXX
  676. CXXFLAGS
  677. CXX
  678. LT_AGE
  679. LT_REVISION
  680. LT_CURRENT
  681. LT_RELEASE
  682. RC
  683. LT_SYS_LIBRARY_PATH
  684. OTOOL64
  685. OTOOL
  686. LIPO
  687. NMEDIT
  688. DSYMUTIL
  689. MANIFEST_TOOL
  690. AWK
  691. RANLIB
  692. STRIP
  693. ac_ct_AR
  694. AR
  695. LN_S
  696. NM
  697. ac_ct_DUMPBIN
  698. DUMPBIN
  699. LD
  700. FGREP
  701. EGREP
  702. GREP
  703. SED
  704. OBJEXT
  705. EXEEXT
  706. ac_ct_CC
  707. CPPFLAGS
  708. LDFLAGS
  709. CFLAGS
  710. CC
  711. host_os
  712. host_vendor
  713. host_cpu
  714. host
  715. build_os
  716. build_vendor
  717. build_cpu
  718. build
  719. LIBTOOL
  720. OBJDUMP
  721. DLLTOOL
  722. AS
  723. SDL_VERSION
  724. SDL_BINARY_AGE
  725. SDL_INTERFACE_AGE
  726. SDL_MICRO_VERSION
  727. SDL_MINOR_VERSION
  728. SDL_MAJOR_VERSION
  729. target_alias
  730. host_alias
  731. build_alias
  732. LIBS
  733. ECHO_T
  734. ECHO_N
  735. ECHO_C
  736. DEFS
  737. mandir
  738. localedir
  739. libdir
  740. psdir
  741. pdfdir
  742. dvidir
  743. htmldir
  744. infodir
  745. docdir
  746. oldincludedir
  747. includedir
  748. runstatedir
  749. localstatedir
  750. sharedstatedir
  751. sysconfdir
  752. datadir
  753. datarootdir
  754. libexecdir
  755. sbindir
  756. bindir
  757. program_transform_name
  758. prefix
  759. exec_prefix
  760. PACKAGE_URL
  761. PACKAGE_BUGREPORT
  762. PACKAGE_STRING
  763. PACKAGE_VERSION
  764. PACKAGE_TARNAME
  765. PACKAGE_NAME
  766. PATH_SEPARATOR
  767. SHELL'
  768. ac_subst_files=''
  769. ac_user_opts='
  770. enable_option_checking
  771. enable_shared
  772. enable_static
  773. with_pic
  774. enable_fast_install
  775. with_aix_soname
  776. with_gnu_ld
  777. with_sysroot
  778. enable_libtool_lock
  779. enable_largefile
  780. enable_assertions
  781. enable_dependency_tracking
  782. enable_libc
  783. enable_gcc_atomics
  784. enable_atomic
  785. enable_audio
  786. enable_video
  787. enable_render
  788. enable_events
  789. enable_joystick
  790. enable_haptic
  791. enable_hidapi
  792. enable_sensor
  793. enable_power
  794. enable_filesystem
  795. enable_timers
  796. enable_file
  797. enable_misc
  798. enable_locale
  799. enable_loadso
  800. enable_cpuinfo
  801. enable_assembly
  802. enable_ssemath
  803. enable_mmx
  804. enable_3dnow
  805. enable_sse
  806. enable_sse2
  807. enable_sse3
  808. enable_altivec
  809. enable_lsx
  810. enable_lasx
  811. enable_oss
  812. enable_alsa
  813. with_alsa_prefix
  814. with_alsa_inc_prefix
  815. enable_alsatest
  816. enable_alsa_shared
  817. enable_jack
  818. enable_jack_shared
  819. enable_esd
  820. with_esd_prefix
  821. with_esd_exec_prefix
  822. enable_esdtest
  823. enable_esd_shared
  824. enable_pipewire
  825. enable_pipewire_shared
  826. enable_pulseaudio
  827. enable_pulseaudio_shared
  828. enable_arts
  829. enable_arts_shared
  830. enable_nas
  831. enable_nas_shared
  832. enable_sndio
  833. enable_sndio_shared
  834. enable_fusionsound
  835. enable_fusionsound_shared
  836. enable_diskaudio
  837. enable_dummyaudio
  838. enable_libsamplerate
  839. enable_libsamplerate_shared
  840. enable_arm_simd
  841. enable_arm_neon
  842. enable_video_wayland
  843. enable_video_wayland_qt_touch
  844. enable_wayland_shared
  845. enable_libdecor
  846. enable_libdecor_shared
  847. enable_video_rpi
  848. enable_video_x11
  849. with_x
  850. enable_x11_shared
  851. enable_video_x11_xcursor
  852. enable_video_x11_xdbe
  853. enable_video_x11_xinput
  854. enable_video_x11_xfixes
  855. enable_video_x11_xrandr
  856. enable_video_x11_scrnsaver
  857. enable_video_x11_xshape
  858. enable_video_vivante
  859. enable_video_cocoa
  860. enable_video_metal
  861. enable_render_metal
  862. enable_video_directfb
  863. enable_directfb_shared
  864. enable_video_kmsdrm
  865. enable_kmsdrm_shared
  866. enable_video_dummy
  867. enable_video_offscreen
  868. enable_video_opengl
  869. enable_video_opengles
  870. enable_video_opengles1
  871. enable_video_opengles2
  872. enable_video_vulkan
  873. enable_libudev
  874. enable_dbus
  875. enable_ime
  876. enable_ibus
  877. enable_fcitx
  878. enable_joystick_mfi
  879. enable_pthreads
  880. enable_pthread_sem
  881. enable_directx
  882. enable_xinput
  883. enable_wasapi
  884. enable_hidapi_joystick
  885. enable_hidapi_libusb
  886. enable_clock_gettime
  887. enable_rpath
  888. enable_backgrounding_signal
  889. enable_foregrounding_signal
  890. enable_joystick_virtual
  891. enable_render_d3d
  892. enable_sdl2_config
  893. '
  894. ac_precious_vars='build_alias
  895. host_alias
  896. target_alias
  897. CC
  898. CFLAGS
  899. LDFLAGS
  900. LIBS
  901. CPPFLAGS
  902. LT_SYS_LIBRARY_PATH
  903. CXX
  904. CXXFLAGS
  905. CCC
  906. CXXCPP
  907. PKG_CONFIG
  908. PKG_CONFIG_PATH
  909. PKG_CONFIG_LIBDIR
  910. CPP
  911. JACK_CFLAGS
  912. JACK_LIBS
  913. ESD_CFLAGS
  914. ESD_LIBS
  915. PIPEWIRE_CFLAGS
  916. PIPEWIRE_LIBS
  917. PULSEAUDIO_CFLAGS
  918. PULSEAUDIO_LIBS
  919. FUSIONSOUND_CFLAGS
  920. FUSIONSOUND_LIBS
  921. DECOR_CFLAGS
  922. DECOR_LIBS
  923. RPI_CFLAGS
  924. RPI_LIBS
  925. XMKMF
  926. DIRECTFB_CFLAGS
  927. DIRECTFB_LIBS
  928. LIBDRM_CFLAGS
  929. LIBDRM_LIBS
  930. LIBGBM_CFLAGS
  931. LIBGBM_LIBS
  932. DBUS_CFLAGS
  933. DBUS_LIBS
  934. IBUS_CFLAGS
  935. IBUS_LIBS
  936. LIBUSB_CFLAGS
  937. LIBUSB_LIBS'
  938. # Initialize some variables set by options.
  939. ac_init_help=
  940. ac_init_version=false
  941. ac_unrecognized_opts=
  942. ac_unrecognized_sep=
  943. # The variables have the same names as the options, with
  944. # dashes changed to underlines.
  945. cache_file=/dev/null
  946. exec_prefix=NONE
  947. no_create=
  948. no_recursion=
  949. prefix=NONE
  950. program_prefix=NONE
  951. program_suffix=NONE
  952. program_transform_name=s,x,x,
  953. silent=
  954. site=
  955. srcdir=
  956. verbose=
  957. x_includes=NONE
  958. x_libraries=NONE
  959. # Installation directory options.
  960. # These are left unexpanded so users can "make install exec_prefix=/foo"
  961. # and all the variables that are supposed to be based on exec_prefix
  962. # by default will actually change.
  963. # Use braces instead of parens because sh, perl, etc. also accept them.
  964. # (The list follows the same order as the GNU Coding Standards.)
  965. bindir='${exec_prefix}/bin'
  966. sbindir='${exec_prefix}/sbin'
  967. libexecdir='${exec_prefix}/libexec'
  968. datarootdir='${prefix}/share'
  969. datadir='${datarootdir}'
  970. sysconfdir='${prefix}/etc'
  971. sharedstatedir='${prefix}/com'
  972. localstatedir='${prefix}/var'
  973. runstatedir='${localstatedir}/run'
  974. includedir='${prefix}/include'
  975. oldincludedir='/usr/include'
  976. docdir='${datarootdir}/doc/${PACKAGE}'
  977. infodir='${datarootdir}/info'
  978. htmldir='${docdir}'
  979. dvidir='${docdir}'
  980. pdfdir='${docdir}'
  981. psdir='${docdir}'
  982. libdir='${exec_prefix}/lib'
  983. localedir='${datarootdir}/locale'
  984. mandir='${datarootdir}/man'
  985. ac_prev=
  986. ac_dashdash=
  987. for ac_option
  988. do
  989. # If the previous option needs an argument, assign it.
  990. if test -n "$ac_prev"; then
  991. eval $ac_prev=\$ac_option
  992. ac_prev=
  993. continue
  994. fi
  995. case $ac_option in
  996. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  997. *=) ac_optarg= ;;
  998. *) ac_optarg=yes ;;
  999. esac
  1000. case $ac_dashdash$ac_option in
  1001. --)
  1002. ac_dashdash=yes ;;
  1003. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1004. ac_prev=bindir ;;
  1005. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1006. bindir=$ac_optarg ;;
  1007. -build | --build | --buil | --bui | --bu)
  1008. ac_prev=build_alias ;;
  1009. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1010. build_alias=$ac_optarg ;;
  1011. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1012. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1013. ac_prev=cache_file ;;
  1014. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1015. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1016. cache_file=$ac_optarg ;;
  1017. --config-cache | -C)
  1018. cache_file=config.cache ;;
  1019. -datadir | --datadir | --datadi | --datad)
  1020. ac_prev=datadir ;;
  1021. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1022. datadir=$ac_optarg ;;
  1023. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1024. | --dataroo | --dataro | --datar)
  1025. ac_prev=datarootdir ;;
  1026. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1027. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1028. datarootdir=$ac_optarg ;;
  1029. -disable-* | --disable-*)
  1030. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1031. # Reject names that are not valid shell variable names.
  1032. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1033. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1034. ac_useropt_orig=$ac_useropt
  1035. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1036. case $ac_user_opts in
  1037. *"
  1038. "enable_$ac_useropt"
  1039. "*) ;;
  1040. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1041. ac_unrecognized_sep=', ';;
  1042. esac
  1043. eval enable_$ac_useropt=no ;;
  1044. -docdir | --docdir | --docdi | --doc | --do)
  1045. ac_prev=docdir ;;
  1046. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1047. docdir=$ac_optarg ;;
  1048. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1049. ac_prev=dvidir ;;
  1050. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1051. dvidir=$ac_optarg ;;
  1052. -enable-* | --enable-*)
  1053. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1054. # Reject names that are not valid shell variable names.
  1055. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1056. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1057. ac_useropt_orig=$ac_useropt
  1058. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1059. case $ac_user_opts in
  1060. *"
  1061. "enable_$ac_useropt"
  1062. "*) ;;
  1063. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1064. ac_unrecognized_sep=', ';;
  1065. esac
  1066. eval enable_$ac_useropt=\$ac_optarg ;;
  1067. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1068. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1069. | --exec | --exe | --ex)
  1070. ac_prev=exec_prefix ;;
  1071. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1072. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1073. | --exec=* | --exe=* | --ex=*)
  1074. exec_prefix=$ac_optarg ;;
  1075. -gas | --gas | --ga | --g)
  1076. # Obsolete; use --with-gas.
  1077. with_gas=yes ;;
  1078. -help | --help | --hel | --he | -h)
  1079. ac_init_help=long ;;
  1080. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1081. ac_init_help=recursive ;;
  1082. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1083. ac_init_help=short ;;
  1084. -host | --host | --hos | --ho)
  1085. ac_prev=host_alias ;;
  1086. -host=* | --host=* | --hos=* | --ho=*)
  1087. host_alias=$ac_optarg ;;
  1088. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1089. ac_prev=htmldir ;;
  1090. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1091. | --ht=*)
  1092. htmldir=$ac_optarg ;;
  1093. -includedir | --includedir | --includedi | --included | --include \
  1094. | --includ | --inclu | --incl | --inc)
  1095. ac_prev=includedir ;;
  1096. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1097. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1098. includedir=$ac_optarg ;;
  1099. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1100. ac_prev=infodir ;;
  1101. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1102. infodir=$ac_optarg ;;
  1103. -libdir | --libdir | --libdi | --libd)
  1104. ac_prev=libdir ;;
  1105. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1106. libdir=$ac_optarg ;;
  1107. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1108. | --libexe | --libex | --libe)
  1109. ac_prev=libexecdir ;;
  1110. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1111. | --libexe=* | --libex=* | --libe=*)
  1112. libexecdir=$ac_optarg ;;
  1113. -localedir | --localedir | --localedi | --localed | --locale)
  1114. ac_prev=localedir ;;
  1115. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1116. localedir=$ac_optarg ;;
  1117. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1118. | --localstate | --localstat | --localsta | --localst | --locals)
  1119. ac_prev=localstatedir ;;
  1120. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1121. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1122. localstatedir=$ac_optarg ;;
  1123. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1124. ac_prev=mandir ;;
  1125. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1126. mandir=$ac_optarg ;;
  1127. -nfp | --nfp | --nf)
  1128. # Obsolete; use --without-fp.
  1129. with_fp=no ;;
  1130. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1131. | --no-cr | --no-c | -n)
  1132. no_create=yes ;;
  1133. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1134. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1135. no_recursion=yes ;;
  1136. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1137. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1138. | --oldin | --oldi | --old | --ol | --o)
  1139. ac_prev=oldincludedir ;;
  1140. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1141. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1142. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1143. oldincludedir=$ac_optarg ;;
  1144. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1145. ac_prev=prefix ;;
  1146. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1147. prefix=$ac_optarg ;;
  1148. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1149. | --program-pre | --program-pr | --program-p)
  1150. ac_prev=program_prefix ;;
  1151. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1152. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1153. program_prefix=$ac_optarg ;;
  1154. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1155. | --program-suf | --program-su | --program-s)
  1156. ac_prev=program_suffix ;;
  1157. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1158. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1159. program_suffix=$ac_optarg ;;
  1160. -program-transform-name | --program-transform-name \
  1161. | --program-transform-nam | --program-transform-na \
  1162. | --program-transform-n | --program-transform- \
  1163. | --program-transform | --program-transfor \
  1164. | --program-transfo | --program-transf \
  1165. | --program-trans | --program-tran \
  1166. | --progr-tra | --program-tr | --program-t)
  1167. ac_prev=program_transform_name ;;
  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. program_transform_name=$ac_optarg ;;
  1176. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1177. ac_prev=pdfdir ;;
  1178. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1179. pdfdir=$ac_optarg ;;
  1180. -psdir | --psdir | --psdi | --psd | --ps)
  1181. ac_prev=psdir ;;
  1182. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1183. psdir=$ac_optarg ;;
  1184. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1185. | -silent | --silent | --silen | --sile | --sil)
  1186. silent=yes ;;
  1187. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1188. | --runstate | --runstat | --runsta | --runst | --runs \
  1189. | --run | --ru | --r)
  1190. ac_prev=runstatedir ;;
  1191. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1192. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1193. | --run=* | --ru=* | --r=*)
  1194. runstatedir=$ac_optarg ;;
  1195. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1196. ac_prev=sbindir ;;
  1197. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1198. | --sbi=* | --sb=*)
  1199. sbindir=$ac_optarg ;;
  1200. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1201. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1202. | --sharedst | --shareds | --shared | --share | --shar \
  1203. | --sha | --sh)
  1204. ac_prev=sharedstatedir ;;
  1205. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1206. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1207. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1208. | --sha=* | --sh=*)
  1209. sharedstatedir=$ac_optarg ;;
  1210. -site | --site | --sit)
  1211. ac_prev=site ;;
  1212. -site=* | --site=* | --sit=*)
  1213. site=$ac_optarg ;;
  1214. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1215. ac_prev=srcdir ;;
  1216. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1217. srcdir=$ac_optarg ;;
  1218. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1219. | --syscon | --sysco | --sysc | --sys | --sy)
  1220. ac_prev=sysconfdir ;;
  1221. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1222. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1223. sysconfdir=$ac_optarg ;;
  1224. -target | --target | --targe | --targ | --tar | --ta | --t)
  1225. ac_prev=target_alias ;;
  1226. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1227. target_alias=$ac_optarg ;;
  1228. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1229. verbose=yes ;;
  1230. -version | --version | --versio | --versi | --vers | -V)
  1231. ac_init_version=: ;;
  1232. -with-* | --with-*)
  1233. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1234. # Reject names that are not valid shell variable names.
  1235. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1236. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1237. ac_useropt_orig=$ac_useropt
  1238. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1239. case $ac_user_opts in
  1240. *"
  1241. "with_$ac_useropt"
  1242. "*) ;;
  1243. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1244. ac_unrecognized_sep=', ';;
  1245. esac
  1246. eval with_$ac_useropt=\$ac_optarg ;;
  1247. -without-* | --without-*)
  1248. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1249. # Reject names that are not valid shell variable names.
  1250. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1251. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1252. ac_useropt_orig=$ac_useropt
  1253. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1254. case $ac_user_opts in
  1255. *"
  1256. "with_$ac_useropt"
  1257. "*) ;;
  1258. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1259. ac_unrecognized_sep=', ';;
  1260. esac
  1261. eval with_$ac_useropt=no ;;
  1262. --x)
  1263. # Obsolete; use --with-x.
  1264. with_x=yes ;;
  1265. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1266. | --x-incl | --x-inc | --x-in | --x-i)
  1267. ac_prev=x_includes ;;
  1268. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1269. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1270. x_includes=$ac_optarg ;;
  1271. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1272. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1273. ac_prev=x_libraries ;;
  1274. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1275. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1276. x_libraries=$ac_optarg ;;
  1277. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1278. Try \`$0 --help' for more information"
  1279. ;;
  1280. *=*)
  1281. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1282. # Reject names that are not valid shell variable names.
  1283. case $ac_envvar in #(
  1284. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1285. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1286. esac
  1287. eval $ac_envvar=\$ac_optarg
  1288. export $ac_envvar ;;
  1289. *)
  1290. # FIXME: should be removed in autoconf 3.0.
  1291. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1292. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1293. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1294. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1295. ;;
  1296. esac
  1297. done
  1298. if test -n "$ac_prev"; then
  1299. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1300. as_fn_error $? "missing argument to $ac_option"
  1301. fi
  1302. if test -n "$ac_unrecognized_opts"; then
  1303. case $enable_option_checking in
  1304. no) ;;
  1305. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1306. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1307. esac
  1308. fi
  1309. # Check all directory arguments for consistency.
  1310. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1311. datadir sysconfdir sharedstatedir localstatedir includedir \
  1312. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1313. libdir localedir mandir runstatedir
  1314. do
  1315. eval ac_val=\$$ac_var
  1316. # Remove trailing slashes.
  1317. case $ac_val in
  1318. */ )
  1319. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1320. eval $ac_var=\$ac_val;;
  1321. esac
  1322. # Be sure to have absolute directory names.
  1323. case $ac_val in
  1324. [\\/$]* | ?:[\\/]* ) continue;;
  1325. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1326. esac
  1327. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1328. done
  1329. # There might be people who depend on the old broken behavior: `$host'
  1330. # used to hold the argument of --host etc.
  1331. # FIXME: To remove some day.
  1332. build=$build_alias
  1333. host=$host_alias
  1334. target=$target_alias
  1335. # FIXME: To remove some day.
  1336. if test "x$host_alias" != x; then
  1337. if test "x$build_alias" = x; then
  1338. cross_compiling=maybe
  1339. elif test "x$build_alias" != "x$host_alias"; then
  1340. cross_compiling=yes
  1341. fi
  1342. fi
  1343. ac_tool_prefix=
  1344. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1345. test "$silent" = yes && exec 6>/dev/null
  1346. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1347. ac_ls_di=`ls -di .` &&
  1348. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1349. as_fn_error $? "working directory cannot be determined"
  1350. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1351. as_fn_error $? "pwd does not report name of working directory"
  1352. # Find the source files, if location was not specified.
  1353. if test -z "$srcdir"; then
  1354. ac_srcdir_defaulted=yes
  1355. # Try the directory containing this script, then the parent directory.
  1356. ac_confdir=`$as_dirname -- "$as_myself" ||
  1357. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1358. X"$as_myself" : 'X\(//\)[^/]' \| \
  1359. X"$as_myself" : 'X\(//\)$' \| \
  1360. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1361. printf "%s\n" X"$as_myself" |
  1362. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1363. s//\1/
  1364. q
  1365. }
  1366. /^X\(\/\/\)[^/].*/{
  1367. s//\1/
  1368. q
  1369. }
  1370. /^X\(\/\/\)$/{
  1371. s//\1/
  1372. q
  1373. }
  1374. /^X\(\/\).*/{
  1375. s//\1/
  1376. q
  1377. }
  1378. s/.*/./; q'`
  1379. srcdir=$ac_confdir
  1380. if test ! -r "$srcdir/$ac_unique_file"; then
  1381. srcdir=..
  1382. fi
  1383. else
  1384. ac_srcdir_defaulted=no
  1385. fi
  1386. if test ! -r "$srcdir/$ac_unique_file"; then
  1387. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1388. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1389. fi
  1390. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1391. ac_abs_confdir=`(
  1392. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1393. pwd)`
  1394. # When building in place, set srcdir=.
  1395. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1396. srcdir=.
  1397. fi
  1398. # Remove unnecessary trailing slashes from srcdir.
  1399. # Double slashes in file names in object file debugging info
  1400. # mess up M-x gdb in Emacs.
  1401. case $srcdir in
  1402. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1403. esac
  1404. for ac_var in $ac_precious_vars; do
  1405. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1406. eval ac_env_${ac_var}_value=\$${ac_var}
  1407. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1408. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1409. done
  1410. #
  1411. # Report the --help message.
  1412. #
  1413. if test "$ac_init_help" = "long"; then
  1414. # Omit some internal or obsolete options to make the list less imposing.
  1415. # This message is too long to be a string in the A/UX 3.1 sh.
  1416. cat <<_ACEOF
  1417. \`configure' configures this package to adapt to many kinds of systems.
  1418. Usage: $0 [OPTION]... [VAR=VALUE]...
  1419. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1420. VAR=VALUE. See below for descriptions of some of the useful variables.
  1421. Defaults for the options are specified in brackets.
  1422. Configuration:
  1423. -h, --help display this help and exit
  1424. --help=short display options specific to this package
  1425. --help=recursive display the short help of all the included packages
  1426. -V, --version display version information and exit
  1427. -q, --quiet, --silent do not print \`checking ...' messages
  1428. --cache-file=FILE cache test results in FILE [disabled]
  1429. -C, --config-cache alias for \`--cache-file=config.cache'
  1430. -n, --no-create do not create output files
  1431. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1432. Installation directories:
  1433. --prefix=PREFIX install architecture-independent files in PREFIX
  1434. [$ac_default_prefix]
  1435. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1436. [PREFIX]
  1437. By default, \`make install' will install all the files in
  1438. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1439. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1440. for instance \`--prefix=\$HOME'.
  1441. For better control, use the options below.
  1442. Fine tuning of the installation directories:
  1443. --bindir=DIR user executables [EPREFIX/bin]
  1444. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1445. --libexecdir=DIR program executables [EPREFIX/libexec]
  1446. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1447. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1448. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1449. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1450. --libdir=DIR object code libraries [EPREFIX/lib]
  1451. --includedir=DIR C header files [PREFIX/include]
  1452. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1453. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1454. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1455. --infodir=DIR info documentation [DATAROOTDIR/info]
  1456. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1457. --mandir=DIR man documentation [DATAROOTDIR/man]
  1458. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1459. --htmldir=DIR html documentation [DOCDIR]
  1460. --dvidir=DIR dvi documentation [DOCDIR]
  1461. --pdfdir=DIR pdf documentation [DOCDIR]
  1462. --psdir=DIR ps documentation [DOCDIR]
  1463. _ACEOF
  1464. cat <<\_ACEOF
  1465. X features:
  1466. --x-includes=DIR X include files are in DIR
  1467. --x-libraries=DIR X library files are in DIR
  1468. System types:
  1469. --build=BUILD configure for building on BUILD [guessed]
  1470. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1471. _ACEOF
  1472. fi
  1473. if test -n "$ac_init_help"; then
  1474. cat <<\_ACEOF
  1475. Optional Features:
  1476. --disable-option-checking ignore unrecognized --enable/--with options
  1477. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1478. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1479. --enable-shared[=PKGS] build shared libraries [default=yes]
  1480. --enable-static[=PKGS] build static libraries [default=yes]
  1481. --enable-fast-install[=PKGS]
  1482. optimize for fast installation [default=yes]
  1483. --disable-libtool-lock avoid locking (might break parallel builds)
  1484. --disable-largefile omit support for large files
  1485. --enable-assertions Enable internal sanity checks
  1486. (auto/disabled/release/enabled/paranoid)
  1487. [default=auto]
  1488. --enable-dependency-tracking
  1489. Use gcc -MMD -MT dependency tracking [default=yes]
  1490. --enable-libc Use the system C library [default=yes]
  1491. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1492. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1493. --enable-audio Enable the audio subsystem [default=yes]
  1494. --enable-video Enable the video subsystem [default=yes]
  1495. --enable-render Enable the render subsystem [default=yes]
  1496. --enable-events Enable the events subsystem [default=yes]
  1497. --enable-joystick Enable the joystick subsystem [default=yes]
  1498. --enable-haptic Enable the haptic (force feedback) subsystem
  1499. [default=yes]
  1500. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1501. --enable-sensor Enable the sensor subsystem [default=yes]
  1502. --enable-power Enable the power subsystem [default=yes]
  1503. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1504. --enable-timers Enable the timer subsystem [default=yes]
  1505. --enable-file Enable the file subsystem [default=yes]
  1506. --enable-misc Enable the misc subsystem [default=yes]
  1507. --enable-locale Enable the locale subsystem [default=yes]
  1508. --enable-loadso Enable the shared object loading subsystem
  1509. [default=yes]
  1510. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1511. --enable-assembly Enable assembly routines [default=yes]
  1512. --enable-ssemath Allow GCC to use SSE floating point math
  1513. [default=maybe]
  1514. --enable-mmx use MMX assembly routines [default=yes]
  1515. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1516. --enable-sse use SSE assembly routines [default=yes]
  1517. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1518. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1519. --enable-altivec use Altivec assembly routines [default=yes]
  1520. --enable-lsx use LSX assembly routines [default=yes]
  1521. --enable-lasx use LASX assembly routines [default=yes]
  1522. --enable-oss support the OSS audio API [default=maybe]
  1523. --enable-alsa support the ALSA audio API [default=yes]
  1524. --disable-alsatest Do not try to compile and run a test Alsa program
  1525. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1526. --enable-jack use JACK audio [default=yes]
  1527. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1528. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1529. --disable-esdtest Do not try to compile and run a test ESD program
  1530. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1531. --enable-pipewire use Pipewire audio [default=yes]
  1532. --enable-pipewire-shared
  1533. dynamically load Pipewire support [default=yes]
  1534. --enable-pulseaudio use PulseAudio [default=yes]
  1535. --enable-pulseaudio-shared
  1536. dynamically load PulseAudio support [default=yes]
  1537. --enable-arts support the Analog Real Time Synthesizer
  1538. [default=yes]
  1539. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1540. --enable-nas support the NAS audio API [default=yes]
  1541. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1542. --enable-sndio support the sndio audio API [default=yes]
  1543. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1544. --enable-fusionsound use FusionSound audio driver [default=no]
  1545. --enable-fusionsound-shared
  1546. dynamically load fusionsound audio support
  1547. [default=yes]
  1548. --enable-diskaudio support the disk writer audio driver [default=yes]
  1549. --enable-dummyaudio support the dummy audio driver [default=yes]
  1550. --enable-libsamplerate use libsamplerate for audio rate conversion
  1551. [default=yes]
  1552. --enable-libsamplerate-shared
  1553. dynamically load libsamplerate [default=yes]
  1554. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1555. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1556. --enable-video-wayland use Wayland video driver [default=yes]
  1557. --enable-video-wayland-qt-touch
  1558. QtWayland server support for Wayland video driver
  1559. [default=yes]
  1560. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1561. --enable-libdecor use libdecor for Wayland client-side decorations
  1562. [default=yes]
  1563. --enable-libdecor-shared
  1564. dynamically load libdecor [default=yes]
  1565. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1566. --enable-video-x11 use X11 video driver [default=yes]
  1567. --enable-x11-shared dynamically load X11 support [default=maybe]
  1568. --enable-video-x11-xcursor
  1569. enable X11 Xcursor support [default=yes]
  1570. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1571. --enable-video-x11-xinput
  1572. enable X11 XInput extension for manymouse, tablets,
  1573. etc [default=yes]
  1574. --enable-video-x11-xfixes
  1575. enable X11 Xfixes support [default=yes]
  1576. --enable-video-x11-xrandr
  1577. enable X11 Xrandr extension for fullscreen
  1578. [default=yes]
  1579. --enable-video-x11-scrnsaver
  1580. enable X11 screensaver extension [default=yes]
  1581. --enable-video-x11-xshape
  1582. enable X11 XShape support [default=yes]
  1583. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1584. --enable-video-cocoa use Cocoa video driver [default=yes]
  1585. --enable-video-metal include Metal support [default=yes]
  1586. --enable-render-metal enable the Metal render driver [default=yes]
  1587. --enable-video-directfb use DirectFB video driver [default=no]
  1588. --enable-directfb-shared
  1589. dynamically load directfb support [default=yes]
  1590. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1591. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1592. --enable-video-dummy use dummy video driver [default=yes]
  1593. --enable-video-offscreen
  1594. use offscreen video driver [default=no]
  1595. --enable-video-opengl include OpenGL support [default=yes]
  1596. --enable-video-opengles include OpenGL ES support [default=yes]
  1597. --enable-video-opengles1
  1598. include OpenGL ES 1.1 support [default=yes]
  1599. --enable-video-opengles2
  1600. include OpenGL ES 2.0 support [default=yes]
  1601. --enable-video-vulkan include Vulkan support [default=yes]
  1602. --enable-libudev enable libudev support [default=yes]
  1603. --enable-dbus enable D-Bus support [default=yes]
  1604. --enable-ime enable IME support [default=yes]
  1605. --enable-ibus enable IBus support [default=yes]
  1606. --enable-fcitx enable fcitx support [default=yes]
  1607. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1608. --enable-pthreads use POSIX threads for multi-threading
  1609. [default=maybe]
  1610. --enable-pthread-sem use pthread semaphores [default=maybe]
  1611. --enable-directx use DirectX for Windows audio/video [default=yes]
  1612. --enable-xinput use Xinput for Windows [default=yes]
  1613. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1614. --enable-hidapi-joystick
  1615. use HIDAPI for low level joystick drivers
  1616. [default=yes]
  1617. --enable-hidapi-libusb use libusb for low level joystick drivers
  1618. [default=maybe]
  1619. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1620. UNIX [default=yes]
  1621. --enable-rpath use an rpath when linking SDL [default=yes]
  1622. --enable-backgrounding-signal
  1623. number to use for magic backgrounding signal or 'no'
  1624. [default=no]
  1625. --enable-foregrounding-signal
  1626. number to use for magic foregrounding signal or 'no'
  1627. [default=no]
  1628. --enable-joystick-virtual
  1629. enable virtual joystick APIs [default=yes]
  1630. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1631. --enable-sdl2-config Install sdl2-config [default=yes]
  1632. Optional Packages:
  1633. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1634. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1635. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1636. both]
  1637. --with-aix-soname=aix|svr4|both
  1638. shared library versioning (aka "SONAME") variant to
  1639. provide on AIX, [default=aix].
  1640. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1641. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1642. compiler's sysroot if not specified).
  1643. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1644. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1645. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1646. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1647. --with-x use the X Window System
  1648. Some influential environment variables:
  1649. CC C compiler command
  1650. CFLAGS C compiler flags
  1651. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1652. nonstandard directory <lib dir>
  1653. LIBS libraries to pass to the linker, e.g. -l<library>
  1654. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1655. you have headers in a nonstandard directory <include dir>
  1656. LT_SYS_LIBRARY_PATH
  1657. User-defined run-time library search path.
  1658. CXX C++ compiler command
  1659. CXXFLAGS C++ compiler flags
  1660. CXXCPP C++ preprocessor
  1661. PKG_CONFIG path to pkg-config utility
  1662. PKG_CONFIG_PATH
  1663. directories to add to pkg-config's search path
  1664. PKG_CONFIG_LIBDIR
  1665. path overriding pkg-config's built-in search path
  1666. CPP C preprocessor
  1667. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1668. JACK_LIBS linker flags for JACK, overriding pkg-config
  1669. ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
  1670. ESD_LIBS linker flags for ESD, overriding pkg-config
  1671. PIPEWIRE_CFLAGS
  1672. C compiler flags for PIPEWIRE, overriding pkg-config
  1673. PIPEWIRE_LIBS
  1674. linker flags for PIPEWIRE, overriding pkg-config
  1675. PULSEAUDIO_CFLAGS
  1676. C compiler flags for PULSEAUDIO, overriding pkg-config
  1677. PULSEAUDIO_LIBS
  1678. linker flags for PULSEAUDIO, overriding pkg-config
  1679. FUSIONSOUND_CFLAGS
  1680. C compiler flags for FUSIONSOUND, overriding pkg-config
  1681. FUSIONSOUND_LIBS
  1682. linker flags for FUSIONSOUND, overriding pkg-config
  1683. DECOR_CFLAGS
  1684. C compiler flags for DECOR, overriding pkg-config
  1685. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1686. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1687. RPI_LIBS linker flags for RPI, overriding pkg-config
  1688. XMKMF Path to xmkmf, Makefile generator for X Window System
  1689. DIRECTFB_CFLAGS
  1690. C compiler flags for DIRECTFB, overriding pkg-config
  1691. DIRECTFB_LIBS
  1692. linker flags for DIRECTFB, overriding pkg-config
  1693. LIBDRM_CFLAGS
  1694. C compiler flags for LIBDRM, overriding pkg-config
  1695. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1696. LIBGBM_CFLAGS
  1697. C compiler flags for LIBGBM, overriding pkg-config
  1698. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1699. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1700. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1701. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1702. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1703. LIBUSB_CFLAGS
  1704. C compiler flags for LIBUSB, overriding pkg-config
  1705. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1706. Use these variables to override the choices made by `configure' or to help
  1707. it to find libraries and programs with nonstandard names/locations.
  1708. Report bugs to the package provider.
  1709. _ACEOF
  1710. ac_status=$?
  1711. fi
  1712. if test "$ac_init_help" = "recursive"; then
  1713. # If there are subdirs, report their specific --help.
  1714. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1715. test -d "$ac_dir" ||
  1716. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1717. continue
  1718. ac_builddir=.
  1719. case "$ac_dir" in
  1720. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1721. *)
  1722. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1723. # A ".." for each directory in $ac_dir_suffix.
  1724. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1725. case $ac_top_builddir_sub in
  1726. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1727. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1728. esac ;;
  1729. esac
  1730. ac_abs_top_builddir=$ac_pwd
  1731. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1732. # for backward compatibility:
  1733. ac_top_builddir=$ac_top_build_prefix
  1734. case $srcdir in
  1735. .) # We are building in place.
  1736. ac_srcdir=.
  1737. ac_top_srcdir=$ac_top_builddir_sub
  1738. ac_abs_top_srcdir=$ac_pwd ;;
  1739. [\\/]* | ?:[\\/]* ) # Absolute name.
  1740. ac_srcdir=$srcdir$ac_dir_suffix;
  1741. ac_top_srcdir=$srcdir
  1742. ac_abs_top_srcdir=$srcdir ;;
  1743. *) # Relative name.
  1744. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1745. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1746. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1747. esac
  1748. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1749. cd "$ac_dir" || { ac_status=$?; continue; }
  1750. # Check for configure.gnu first; this name is used for a wrapper for
  1751. # Metaconfig's "Configure" on case-insensitive file systems.
  1752. if test -f "$ac_srcdir/configure.gnu"; then
  1753. echo &&
  1754. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1755. elif test -f "$ac_srcdir/configure"; then
  1756. echo &&
  1757. $SHELL "$ac_srcdir/configure" --help=recursive
  1758. else
  1759. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1760. fi || ac_status=$?
  1761. cd "$ac_pwd" || { ac_status=$?; break; }
  1762. done
  1763. fi
  1764. test -n "$ac_init_help" && exit $ac_status
  1765. if $ac_init_version; then
  1766. cat <<\_ACEOF
  1767. configure
  1768. generated by GNU Autoconf 2.71
  1769. Copyright (C) 2021 Free Software Foundation, Inc.
  1770. This configure script is free software; the Free Software Foundation
  1771. gives unlimited permission to copy, distribute and modify it.
  1772. _ACEOF
  1773. exit
  1774. fi
  1775. ## ------------------------ ##
  1776. ## Autoconf initialization. ##
  1777. ## ------------------------ ##
  1778. # ac_fn_c_try_compile LINENO
  1779. # --------------------------
  1780. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1781. ac_fn_c_try_compile ()
  1782. {
  1783. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1784. rm -f conftest.$ac_objext conftest.beam
  1785. if { { ac_try="$ac_compile"
  1786. case "(($ac_try" in
  1787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1788. *) ac_try_echo=$ac_try;;
  1789. esac
  1790. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1791. printf "%s\n" "$ac_try_echo"; } >&5
  1792. (eval "$ac_compile") 2>conftest.err
  1793. ac_status=$?
  1794. if test -s conftest.err; then
  1795. grep -v '^ *+' conftest.err >conftest.er1
  1796. cat conftest.er1 >&5
  1797. mv -f conftest.er1 conftest.err
  1798. fi
  1799. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1800. test $ac_status = 0; } && {
  1801. test -z "$ac_c_werror_flag" ||
  1802. test ! -s conftest.err
  1803. } && test -s conftest.$ac_objext
  1804. then :
  1805. ac_retval=0
  1806. else $as_nop
  1807. printf "%s\n" "$as_me: failed program was:" >&5
  1808. sed 's/^/| /' conftest.$ac_ext >&5
  1809. ac_retval=1
  1810. fi
  1811. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1812. as_fn_set_status $ac_retval
  1813. } # ac_fn_c_try_compile
  1814. # ac_fn_c_try_link LINENO
  1815. # -----------------------
  1816. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1817. ac_fn_c_try_link ()
  1818. {
  1819. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1820. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1821. if { { ac_try="$ac_link"
  1822. case "(($ac_try" in
  1823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1824. *) ac_try_echo=$ac_try;;
  1825. esac
  1826. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1827. printf "%s\n" "$ac_try_echo"; } >&5
  1828. (eval "$ac_link") 2>conftest.err
  1829. ac_status=$?
  1830. if test -s conftest.err; then
  1831. grep -v '^ *+' conftest.err >conftest.er1
  1832. cat conftest.er1 >&5
  1833. mv -f conftest.er1 conftest.err
  1834. fi
  1835. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1836. test $ac_status = 0; } && {
  1837. test -z "$ac_c_werror_flag" ||
  1838. test ! -s conftest.err
  1839. } && test -s conftest$ac_exeext && {
  1840. test "$cross_compiling" = yes ||
  1841. test -x conftest$ac_exeext
  1842. }
  1843. then :
  1844. ac_retval=0
  1845. else $as_nop
  1846. printf "%s\n" "$as_me: failed program was:" >&5
  1847. sed 's/^/| /' conftest.$ac_ext >&5
  1848. ac_retval=1
  1849. fi
  1850. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1851. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1852. # interfere with the next link command; also delete a directory that is
  1853. # left behind by Apple's compiler. We do this before executing the actions.
  1854. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1855. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1856. as_fn_set_status $ac_retval
  1857. } # ac_fn_c_try_link
  1858. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1859. # -------------------------------------------------------
  1860. # Tests whether HEADER exists and can be compiled using the include files in
  1861. # INCLUDES, setting the cache variable VAR accordingly.
  1862. ac_fn_c_check_header_compile ()
  1863. {
  1864. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1866. printf %s "checking for $2... " >&6; }
  1867. if eval test \${$3+y}
  1868. then :
  1869. printf %s "(cached) " >&6
  1870. else $as_nop
  1871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1872. /* end confdefs.h. */
  1873. $4
  1874. #include <$2>
  1875. _ACEOF
  1876. if ac_fn_c_try_compile "$LINENO"
  1877. then :
  1878. eval "$3=yes"
  1879. else $as_nop
  1880. eval "$3=no"
  1881. fi
  1882. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1883. fi
  1884. eval ac_res=\$$3
  1885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1886. printf "%s\n" "$ac_res" >&6; }
  1887. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1888. } # ac_fn_c_check_header_compile
  1889. # ac_fn_c_check_func LINENO FUNC VAR
  1890. # ----------------------------------
  1891. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1892. ac_fn_c_check_func ()
  1893. {
  1894. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1896. printf %s "checking for $2... " >&6; }
  1897. if eval test \${$3+y}
  1898. then :
  1899. printf %s "(cached) " >&6
  1900. else $as_nop
  1901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1902. /* end confdefs.h. */
  1903. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1904. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1905. #define $2 innocuous_$2
  1906. /* System header to define __stub macros and hopefully few prototypes,
  1907. which can conflict with char $2 (); below. */
  1908. #include <limits.h>
  1909. #undef $2
  1910. /* Override any GCC internal prototype to avoid an error.
  1911. Use char because int might match the return type of a GCC
  1912. builtin and then its argument prototype would still apply. */
  1913. #ifdef __cplusplus
  1914. extern "C"
  1915. #endif
  1916. char $2 ();
  1917. /* The GNU C library defines this for functions which it implements
  1918. to always fail with ENOSYS. Some functions are actually named
  1919. something starting with __ and the normal name is an alias. */
  1920. #if defined __stub_$2 || defined __stub___$2
  1921. choke me
  1922. #endif
  1923. int
  1924. main (void)
  1925. {
  1926. return $2 ();
  1927. ;
  1928. return 0;
  1929. }
  1930. _ACEOF
  1931. if ac_fn_c_try_link "$LINENO"
  1932. then :
  1933. eval "$3=yes"
  1934. else $as_nop
  1935. eval "$3=no"
  1936. fi
  1937. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1938. conftest$ac_exeext conftest.$ac_ext
  1939. fi
  1940. eval ac_res=\$$3
  1941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1942. printf "%s\n" "$ac_res" >&6; }
  1943. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1944. } # ac_fn_c_check_func
  1945. # ac_fn_cxx_try_compile LINENO
  1946. # ----------------------------
  1947. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1948. ac_fn_cxx_try_compile ()
  1949. {
  1950. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1951. rm -f conftest.$ac_objext conftest.beam
  1952. if { { ac_try="$ac_compile"
  1953. case "(($ac_try" in
  1954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1955. *) ac_try_echo=$ac_try;;
  1956. esac
  1957. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1958. printf "%s\n" "$ac_try_echo"; } >&5
  1959. (eval "$ac_compile") 2>conftest.err
  1960. ac_status=$?
  1961. if test -s conftest.err; then
  1962. grep -v '^ *+' conftest.err >conftest.er1
  1963. cat conftest.er1 >&5
  1964. mv -f conftest.er1 conftest.err
  1965. fi
  1966. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1967. test $ac_status = 0; } && {
  1968. test -z "$ac_cxx_werror_flag" ||
  1969. test ! -s conftest.err
  1970. } && test -s conftest.$ac_objext
  1971. then :
  1972. ac_retval=0
  1973. else $as_nop
  1974. printf "%s\n" "$as_me: failed program was:" >&5
  1975. sed 's/^/| /' conftest.$ac_ext >&5
  1976. ac_retval=1
  1977. fi
  1978. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1979. as_fn_set_status $ac_retval
  1980. } # ac_fn_cxx_try_compile
  1981. # ac_fn_cxx_try_cpp LINENO
  1982. # ------------------------
  1983. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1984. ac_fn_cxx_try_cpp ()
  1985. {
  1986. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1987. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1988. case "(($ac_try" in
  1989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1990. *) ac_try_echo=$ac_try;;
  1991. esac
  1992. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1993. printf "%s\n" "$ac_try_echo"; } >&5
  1994. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1995. ac_status=$?
  1996. if test -s conftest.err; then
  1997. grep -v '^ *+' conftest.err >conftest.er1
  1998. cat conftest.er1 >&5
  1999. mv -f conftest.er1 conftest.err
  2000. fi
  2001. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2002. test $ac_status = 0; } > conftest.i && {
  2003. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2004. test ! -s conftest.err
  2005. }
  2006. then :
  2007. ac_retval=0
  2008. else $as_nop
  2009. printf "%s\n" "$as_me: failed program was:" >&5
  2010. sed 's/^/| /' conftest.$ac_ext >&5
  2011. ac_retval=1
  2012. fi
  2013. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2014. as_fn_set_status $ac_retval
  2015. } # ac_fn_cxx_try_cpp
  2016. # ac_fn_cxx_try_link LINENO
  2017. # -------------------------
  2018. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2019. ac_fn_cxx_try_link ()
  2020. {
  2021. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2022. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2023. if { { ac_try="$ac_link"
  2024. case "(($ac_try" in
  2025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2026. *) ac_try_echo=$ac_try;;
  2027. esac
  2028. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2029. printf "%s\n" "$ac_try_echo"; } >&5
  2030. (eval "$ac_link") 2>conftest.err
  2031. ac_status=$?
  2032. if test -s conftest.err; then
  2033. grep -v '^ *+' conftest.err >conftest.er1
  2034. cat conftest.er1 >&5
  2035. mv -f conftest.er1 conftest.err
  2036. fi
  2037. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2038. test $ac_status = 0; } && {
  2039. test -z "$ac_cxx_werror_flag" ||
  2040. test ! -s conftest.err
  2041. } && test -s conftest$ac_exeext && {
  2042. test "$cross_compiling" = yes ||
  2043. test -x conftest$ac_exeext
  2044. }
  2045. then :
  2046. ac_retval=0
  2047. else $as_nop
  2048. printf "%s\n" "$as_me: failed program was:" >&5
  2049. sed 's/^/| /' conftest.$ac_ext >&5
  2050. ac_retval=1
  2051. fi
  2052. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2053. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2054. # interfere with the next link command; also delete a directory that is
  2055. # left behind by Apple's compiler. We do this before executing the actions.
  2056. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2057. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2058. as_fn_set_status $ac_retval
  2059. } # ac_fn_cxx_try_link
  2060. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2061. # -------------------------------------------
  2062. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2063. # variable VAR accordingly.
  2064. ac_fn_c_check_type ()
  2065. {
  2066. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2068. printf %s "checking for $2... " >&6; }
  2069. if eval test \${$3+y}
  2070. then :
  2071. printf %s "(cached) " >&6
  2072. else $as_nop
  2073. eval "$3=no"
  2074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2075. /* end confdefs.h. */
  2076. $4
  2077. int
  2078. main (void)
  2079. {
  2080. if (sizeof ($2))
  2081. return 0;
  2082. ;
  2083. return 0;
  2084. }
  2085. _ACEOF
  2086. if ac_fn_c_try_compile "$LINENO"
  2087. then :
  2088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2089. /* end confdefs.h. */
  2090. $4
  2091. int
  2092. main (void)
  2093. {
  2094. if (sizeof (($2)))
  2095. return 0;
  2096. ;
  2097. return 0;
  2098. }
  2099. _ACEOF
  2100. if ac_fn_c_try_compile "$LINENO"
  2101. then :
  2102. else $as_nop
  2103. eval "$3=yes"
  2104. fi
  2105. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2106. fi
  2107. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2108. fi
  2109. eval ac_res=\$$3
  2110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2111. printf "%s\n" "$ac_res" >&6; }
  2112. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2113. } # ac_fn_c_check_type
  2114. # ac_fn_c_try_cpp LINENO
  2115. # ----------------------
  2116. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2117. ac_fn_c_try_cpp ()
  2118. {
  2119. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2120. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2121. case "(($ac_try" in
  2122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2123. *) ac_try_echo=$ac_try;;
  2124. esac
  2125. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2126. printf "%s\n" "$ac_try_echo"; } >&5
  2127. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2128. ac_status=$?
  2129. if test -s conftest.err; then
  2130. grep -v '^ *+' conftest.err >conftest.er1
  2131. cat conftest.er1 >&5
  2132. mv -f conftest.er1 conftest.err
  2133. fi
  2134. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2135. test $ac_status = 0; } > conftest.i && {
  2136. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2137. test ! -s conftest.err
  2138. }
  2139. then :
  2140. ac_retval=0
  2141. else $as_nop
  2142. printf "%s\n" "$as_me: failed program was:" >&5
  2143. sed 's/^/| /' conftest.$ac_ext >&5
  2144. ac_retval=1
  2145. fi
  2146. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2147. as_fn_set_status $ac_retval
  2148. } # ac_fn_c_try_cpp
  2149. # ac_fn_c_try_run LINENO
  2150. # ----------------------
  2151. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2152. # executables *can* be run.
  2153. ac_fn_c_try_run ()
  2154. {
  2155. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2156. if { { ac_try="$ac_link"
  2157. case "(($ac_try" in
  2158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2159. *) ac_try_echo=$ac_try;;
  2160. esac
  2161. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2162. printf "%s\n" "$ac_try_echo"; } >&5
  2163. (eval "$ac_link") 2>&5
  2164. ac_status=$?
  2165. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2166. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2167. { { case "(($ac_try" in
  2168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2169. *) ac_try_echo=$ac_try;;
  2170. esac
  2171. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2172. printf "%s\n" "$ac_try_echo"; } >&5
  2173. (eval "$ac_try") 2>&5
  2174. ac_status=$?
  2175. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2176. test $ac_status = 0; }; }
  2177. then :
  2178. ac_retval=0
  2179. else $as_nop
  2180. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2181. printf "%s\n" "$as_me: failed program was:" >&5
  2182. sed 's/^/| /' conftest.$ac_ext >&5
  2183. ac_retval=$ac_status
  2184. fi
  2185. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2186. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2187. as_fn_set_status $ac_retval
  2188. } # ac_fn_c_try_run
  2189. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2190. # ----------------------------------------------------
  2191. # Tries to find if the field MEMBER exists in type AGGR, after including
  2192. # INCLUDES, setting cache variable VAR accordingly.
  2193. ac_fn_c_check_member ()
  2194. {
  2195. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2197. printf %s "checking for $2.$3... " >&6; }
  2198. if eval test \${$4+y}
  2199. then :
  2200. printf %s "(cached) " >&6
  2201. else $as_nop
  2202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2203. /* end confdefs.h. */
  2204. $5
  2205. int
  2206. main (void)
  2207. {
  2208. static $2 ac_aggr;
  2209. if (ac_aggr.$3)
  2210. return 0;
  2211. ;
  2212. return 0;
  2213. }
  2214. _ACEOF
  2215. if ac_fn_c_try_compile "$LINENO"
  2216. then :
  2217. eval "$4=yes"
  2218. else $as_nop
  2219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2220. /* end confdefs.h. */
  2221. $5
  2222. int
  2223. main (void)
  2224. {
  2225. static $2 ac_aggr;
  2226. if (sizeof ac_aggr.$3)
  2227. return 0;
  2228. ;
  2229. return 0;
  2230. }
  2231. _ACEOF
  2232. if ac_fn_c_try_compile "$LINENO"
  2233. then :
  2234. eval "$4=yes"
  2235. else $as_nop
  2236. eval "$4=no"
  2237. fi
  2238. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2239. fi
  2240. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2241. fi
  2242. eval ac_res=\$$4
  2243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2244. printf "%s\n" "$ac_res" >&6; }
  2245. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2246. } # ac_fn_c_check_member
  2247. ac_configure_args_raw=
  2248. for ac_arg
  2249. do
  2250. case $ac_arg in
  2251. *\'*)
  2252. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2253. esac
  2254. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2255. done
  2256. case $ac_configure_args_raw in
  2257. *$as_nl*)
  2258. ac_safe_unquote= ;;
  2259. *)
  2260. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2261. ac_unsafe_a="$ac_unsafe_z#~"
  2262. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2263. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2264. esac
  2265. cat >config.log <<_ACEOF
  2266. This file contains any messages produced by compilers while
  2267. running configure, to aid debugging if configure makes a mistake.
  2268. It was created by $as_me, which was
  2269. generated by GNU Autoconf 2.71. Invocation command line was
  2270. $ $0$ac_configure_args_raw
  2271. _ACEOF
  2272. exec 5>>config.log
  2273. {
  2274. cat <<_ASUNAME
  2275. ## --------- ##
  2276. ## Platform. ##
  2277. ## --------- ##
  2278. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2279. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2280. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2281. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2282. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2283. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2284. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2285. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2286. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2287. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2288. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2289. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2290. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2291. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2292. _ASUNAME
  2293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2294. for as_dir in $PATH
  2295. do
  2296. IFS=$as_save_IFS
  2297. case $as_dir in #(((
  2298. '') as_dir=./ ;;
  2299. */) ;;
  2300. *) as_dir=$as_dir/ ;;
  2301. esac
  2302. printf "%s\n" "PATH: $as_dir"
  2303. done
  2304. IFS=$as_save_IFS
  2305. } >&5
  2306. cat >&5 <<_ACEOF
  2307. ## ----------- ##
  2308. ## Core tests. ##
  2309. ## ----------- ##
  2310. _ACEOF
  2311. # Keep a trace of the command line.
  2312. # Strip out --no-create and --no-recursion so they do not pile up.
  2313. # Strip out --silent because we don't want to record it for future runs.
  2314. # Also quote any args containing shell meta-characters.
  2315. # Make two passes to allow for proper duplicate-argument suppression.
  2316. ac_configure_args=
  2317. ac_configure_args0=
  2318. ac_configure_args1=
  2319. ac_must_keep_next=false
  2320. for ac_pass in 1 2
  2321. do
  2322. for ac_arg
  2323. do
  2324. case $ac_arg in
  2325. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2326. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2327. | -silent | --silent | --silen | --sile | --sil)
  2328. continue ;;
  2329. *\'*)
  2330. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2331. esac
  2332. case $ac_pass in
  2333. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2334. 2)
  2335. as_fn_append ac_configure_args1 " '$ac_arg'"
  2336. if test $ac_must_keep_next = true; then
  2337. ac_must_keep_next=false # Got value, back to normal.
  2338. else
  2339. case $ac_arg in
  2340. *=* | --config-cache | -C | -disable-* | --disable-* \
  2341. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2342. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2343. | -with-* | --with-* | -without-* | --without-* | --x)
  2344. case "$ac_configure_args0 " in
  2345. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2346. esac
  2347. ;;
  2348. -* ) ac_must_keep_next=true ;;
  2349. esac
  2350. fi
  2351. as_fn_append ac_configure_args " '$ac_arg'"
  2352. ;;
  2353. esac
  2354. done
  2355. done
  2356. { ac_configure_args0=; unset ac_configure_args0;}
  2357. { ac_configure_args1=; unset ac_configure_args1;}
  2358. # When interrupted or exit'd, cleanup temporary files, and complete
  2359. # config.log. We remove comments because anyway the quotes in there
  2360. # would cause problems or look ugly.
  2361. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2362. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2363. trap 'exit_status=$?
  2364. # Sanitize IFS.
  2365. IFS=" "" $as_nl"
  2366. # Save into config.log some information that might help in debugging.
  2367. {
  2368. echo
  2369. printf "%s\n" "## ---------------- ##
  2370. ## Cache variables. ##
  2371. ## ---------------- ##"
  2372. echo
  2373. # The following way of writing the cache mishandles newlines in values,
  2374. (
  2375. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2376. eval ac_val=\$$ac_var
  2377. case $ac_val in #(
  2378. *${as_nl}*)
  2379. case $ac_var in #(
  2380. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2381. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2382. esac
  2383. case $ac_var in #(
  2384. _ | IFS | as_nl) ;; #(
  2385. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2386. *) { eval $ac_var=; unset $ac_var;} ;;
  2387. esac ;;
  2388. esac
  2389. done
  2390. (set) 2>&1 |
  2391. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2392. *${as_nl}ac_space=\ *)
  2393. sed -n \
  2394. "s/'\''/'\''\\\\'\'''\''/g;
  2395. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2396. ;; #(
  2397. *)
  2398. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2399. ;;
  2400. esac |
  2401. sort
  2402. )
  2403. echo
  2404. printf "%s\n" "## ----------------- ##
  2405. ## Output variables. ##
  2406. ## ----------------- ##"
  2407. echo
  2408. for ac_var in $ac_subst_vars
  2409. do
  2410. eval ac_val=\$$ac_var
  2411. case $ac_val in
  2412. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2413. esac
  2414. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2415. done | sort
  2416. echo
  2417. if test -n "$ac_subst_files"; then
  2418. printf "%s\n" "## ------------------- ##
  2419. ## File substitutions. ##
  2420. ## ------------------- ##"
  2421. echo
  2422. for ac_var in $ac_subst_files
  2423. do
  2424. eval ac_val=\$$ac_var
  2425. case $ac_val in
  2426. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2427. esac
  2428. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2429. done | sort
  2430. echo
  2431. fi
  2432. if test -s confdefs.h; then
  2433. printf "%s\n" "## ----------- ##
  2434. ## confdefs.h. ##
  2435. ## ----------- ##"
  2436. echo
  2437. cat confdefs.h
  2438. echo
  2439. fi
  2440. test "$ac_signal" != 0 &&
  2441. printf "%s\n" "$as_me: caught signal $ac_signal"
  2442. printf "%s\n" "$as_me: exit $exit_status"
  2443. } >&5
  2444. rm -f core *.core core.conftest.* &&
  2445. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2446. exit $exit_status
  2447. ' 0
  2448. for ac_signal in 1 2 13 15; do
  2449. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2450. done
  2451. ac_signal=0
  2452. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2453. rm -f -r conftest* confdefs.h
  2454. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2455. # Predefined preprocessor variables.
  2456. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2457. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2458. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2459. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2460. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2461. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2462. # Let the site file select an alternate cache file if it wants to.
  2463. # Prefer an explicitly selected file to automatically selected ones.
  2464. if test -n "$CONFIG_SITE"; then
  2465. ac_site_files="$CONFIG_SITE"
  2466. elif test "x$prefix" != xNONE; then
  2467. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2468. else
  2469. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2470. fi
  2471. for ac_site_file in $ac_site_files
  2472. do
  2473. case $ac_site_file in #(
  2474. */*) :
  2475. ;; #(
  2476. *) :
  2477. ac_site_file=./$ac_site_file ;;
  2478. esac
  2479. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2481. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2482. sed 's/^/| /' "$ac_site_file" >&5
  2483. . "$ac_site_file" \
  2484. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2485. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2486. as_fn_error $? "failed to load site script $ac_site_file
  2487. See \`config.log' for more details" "$LINENO" 5; }
  2488. fi
  2489. done
  2490. if test -r "$cache_file"; then
  2491. # Some versions of bash will fail to source /dev/null (special files
  2492. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2493. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2495. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2496. case $cache_file in
  2497. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2498. *) . "./$cache_file";;
  2499. esac
  2500. fi
  2501. else
  2502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2503. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2504. >$cache_file
  2505. fi
  2506. # Test code for whether the C compiler supports C89 (global declarations)
  2507. ac_c_conftest_c89_globals='
  2508. /* Does the compiler advertise C89 conformance?
  2509. Do not test the value of __STDC__, because some compilers set it to 0
  2510. while being otherwise adequately conformant. */
  2511. #if !defined __STDC__
  2512. # error "Compiler does not advertise C89 conformance"
  2513. #endif
  2514. #include <stddef.h>
  2515. #include <stdarg.h>
  2516. struct stat;
  2517. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2518. struct buf { int x; };
  2519. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2520. static char *e (p, i)
  2521. char **p;
  2522. int i;
  2523. {
  2524. return p[i];
  2525. }
  2526. static char *f (char * (*g) (char **, int), char **p, ...)
  2527. {
  2528. char *s;
  2529. va_list v;
  2530. va_start (v,p);
  2531. s = g (p, va_arg (v,int));
  2532. va_end (v);
  2533. return s;
  2534. }
  2535. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2536. function prototypes and stuff, but not \xHH hex character constants.
  2537. These do not provoke an error unfortunately, instead are silently treated
  2538. as an "x". The following induces an error, until -std is added to get
  2539. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2540. array size at least. It is necessary to write \x00 == 0 to get something
  2541. that is true only with -std. */
  2542. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2543. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2544. inside strings and character constants. */
  2545. #define FOO(x) '\''x'\''
  2546. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2547. int test (int i, double x);
  2548. struct s1 {int (*f) (int a);};
  2549. struct s2 {int (*f) (double a);};
  2550. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2551. int, int);'
  2552. # Test code for whether the C compiler supports C89 (body of main).
  2553. ac_c_conftest_c89_main='
  2554. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2555. '
  2556. # Test code for whether the C compiler supports C99 (global declarations)
  2557. ac_c_conftest_c99_globals='
  2558. // Does the compiler advertise C99 conformance?
  2559. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2560. # error "Compiler does not advertise C99 conformance"
  2561. #endif
  2562. #include <stdbool.h>
  2563. extern int puts (const char *);
  2564. extern int printf (const char *, ...);
  2565. extern int dprintf (int, const char *, ...);
  2566. extern void *malloc (size_t);
  2567. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2568. // dprintf is used instead of fprintf to avoid needing to declare
  2569. // FILE and stderr.
  2570. #define debug(...) dprintf (2, __VA_ARGS__)
  2571. #define showlist(...) puts (#__VA_ARGS__)
  2572. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2573. static void
  2574. test_varargs_macros (void)
  2575. {
  2576. int x = 1234;
  2577. int y = 5678;
  2578. debug ("Flag");
  2579. debug ("X = %d\n", x);
  2580. showlist (The first, second, and third items.);
  2581. report (x>y, "x is %d but y is %d", x, y);
  2582. }
  2583. // Check long long types.
  2584. #define BIG64 18446744073709551615ull
  2585. #define BIG32 4294967295ul
  2586. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2587. #if !BIG_OK
  2588. #error "your preprocessor is broken"
  2589. #endif
  2590. #if BIG_OK
  2591. #else
  2592. #error "your preprocessor is broken"
  2593. #endif
  2594. static long long int bignum = -9223372036854775807LL;
  2595. static unsigned long long int ubignum = BIG64;
  2596. struct incomplete_array
  2597. {
  2598. int datasize;
  2599. double data[];
  2600. };
  2601. struct named_init {
  2602. int number;
  2603. const wchar_t *name;
  2604. double average;
  2605. };
  2606. typedef const char *ccp;
  2607. static inline int
  2608. test_restrict (ccp restrict text)
  2609. {
  2610. // See if C++-style comments work.
  2611. // Iterate through items via the restricted pointer.
  2612. // Also check for declarations in for loops.
  2613. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2614. continue;
  2615. return 0;
  2616. }
  2617. // Check varargs and va_copy.
  2618. static bool
  2619. test_varargs (const char *format, ...)
  2620. {
  2621. va_list args;
  2622. va_start (args, format);
  2623. va_list args_copy;
  2624. va_copy (args_copy, args);
  2625. const char *str = "";
  2626. int number = 0;
  2627. float fnumber = 0;
  2628. while (*format)
  2629. {
  2630. switch (*format++)
  2631. {
  2632. case '\''s'\'': // string
  2633. str = va_arg (args_copy, const char *);
  2634. break;
  2635. case '\''d'\'': // int
  2636. number = va_arg (args_copy, int);
  2637. break;
  2638. case '\''f'\'': // float
  2639. fnumber = va_arg (args_copy, double);
  2640. break;
  2641. default:
  2642. break;
  2643. }
  2644. }
  2645. va_end (args_copy);
  2646. va_end (args);
  2647. return *str && number && fnumber;
  2648. }
  2649. '
  2650. # Test code for whether the C compiler supports C99 (body of main).
  2651. ac_c_conftest_c99_main='
  2652. // Check bool.
  2653. _Bool success = false;
  2654. success |= (argc != 0);
  2655. // Check restrict.
  2656. if (test_restrict ("String literal") == 0)
  2657. success = true;
  2658. char *restrict newvar = "Another string";
  2659. // Check varargs.
  2660. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2661. test_varargs_macros ();
  2662. // Check flexible array members.
  2663. struct incomplete_array *ia =
  2664. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2665. ia->datasize = 10;
  2666. for (int i = 0; i < ia->datasize; ++i)
  2667. ia->data[i] = i * 1.234;
  2668. // Check named initializers.
  2669. struct named_init ni = {
  2670. .number = 34,
  2671. .name = L"Test wide string",
  2672. .average = 543.34343,
  2673. };
  2674. ni.number = 58;
  2675. int dynamic_array[ni.number];
  2676. dynamic_array[0] = argv[0][0];
  2677. dynamic_array[ni.number - 1] = 543;
  2678. // work around unused variable warnings
  2679. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2680. || dynamic_array[ni.number - 1] != 543);
  2681. '
  2682. # Test code for whether the C compiler supports C11 (global declarations)
  2683. ac_c_conftest_c11_globals='
  2684. // Does the compiler advertise C11 conformance?
  2685. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2686. # error "Compiler does not advertise C11 conformance"
  2687. #endif
  2688. // Check _Alignas.
  2689. char _Alignas (double) aligned_as_double;
  2690. char _Alignas (0) no_special_alignment;
  2691. extern char aligned_as_int;
  2692. char _Alignas (0) _Alignas (int) aligned_as_int;
  2693. // Check _Alignof.
  2694. enum
  2695. {
  2696. int_alignment = _Alignof (int),
  2697. int_array_alignment = _Alignof (int[100]),
  2698. char_alignment = _Alignof (char)
  2699. };
  2700. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2701. // Check _Noreturn.
  2702. int _Noreturn does_not_return (void) { for (;;) continue; }
  2703. // Check _Static_assert.
  2704. struct test_static_assert
  2705. {
  2706. int x;
  2707. _Static_assert (sizeof (int) <= sizeof (long int),
  2708. "_Static_assert does not work in struct");
  2709. long int y;
  2710. };
  2711. // Check UTF-8 literals.
  2712. #define u8 syntax error!
  2713. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2714. // Check duplicate typedefs.
  2715. typedef long *long_ptr;
  2716. typedef long int *long_ptr;
  2717. typedef long_ptr long_ptr;
  2718. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2719. struct anonymous
  2720. {
  2721. union {
  2722. struct { int i; int j; };
  2723. struct { int k; long int l; } w;
  2724. };
  2725. int m;
  2726. } v1;
  2727. '
  2728. # Test code for whether the C compiler supports C11 (body of main).
  2729. ac_c_conftest_c11_main='
  2730. _Static_assert ((offsetof (struct anonymous, i)
  2731. == offsetof (struct anonymous, w.k)),
  2732. "Anonymous union alignment botch");
  2733. v1.i = 2;
  2734. v1.w.k = 5;
  2735. ok |= v1.i != 5;
  2736. '
  2737. # Test code for whether the C compiler supports C11 (complete).
  2738. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2739. ${ac_c_conftest_c99_globals}
  2740. ${ac_c_conftest_c11_globals}
  2741. int
  2742. main (int argc, char **argv)
  2743. {
  2744. int ok = 0;
  2745. ${ac_c_conftest_c89_main}
  2746. ${ac_c_conftest_c99_main}
  2747. ${ac_c_conftest_c11_main}
  2748. return ok;
  2749. }
  2750. "
  2751. # Test code for whether the C compiler supports C99 (complete).
  2752. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2753. ${ac_c_conftest_c99_globals}
  2754. int
  2755. main (int argc, char **argv)
  2756. {
  2757. int ok = 0;
  2758. ${ac_c_conftest_c89_main}
  2759. ${ac_c_conftest_c99_main}
  2760. return ok;
  2761. }
  2762. "
  2763. # Test code for whether the C compiler supports C89 (complete).
  2764. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2765. int
  2766. main (int argc, char **argv)
  2767. {
  2768. int ok = 0;
  2769. ${ac_c_conftest_c89_main}
  2770. return ok;
  2771. }
  2772. "
  2773. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2774. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2775. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2776. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2777. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2778. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2779. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2780. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2781. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2782. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2783. ac_cxx_conftest_cxx98_globals='
  2784. // Does the compiler advertise C++98 conformance?
  2785. #if !defined __cplusplus || __cplusplus < 199711L
  2786. # error "Compiler does not advertise C++98 conformance"
  2787. #endif
  2788. // These inclusions are to reject old compilers that
  2789. // lack the unsuffixed header files.
  2790. #include <cstdlib>
  2791. #include <exception>
  2792. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2793. extern void assert (int);
  2794. namespace std {
  2795. extern int strcmp (const char *, const char *);
  2796. }
  2797. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2798. using std::exception;
  2799. using std::strcmp;
  2800. namespace {
  2801. void test_exception_syntax()
  2802. {
  2803. try {
  2804. throw "test";
  2805. } catch (const char *s) {
  2806. // Extra parentheses suppress a warning when building autoconf itself,
  2807. // due to lint rules shared with more typical C programs.
  2808. assert (!(strcmp) (s, "test"));
  2809. }
  2810. }
  2811. template <typename T> struct test_template
  2812. {
  2813. T const val;
  2814. explicit test_template(T t) : val(t) {}
  2815. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2816. };
  2817. } // anonymous namespace
  2818. '
  2819. # Test code for whether the C++ compiler supports C++98 (body of main)
  2820. ac_cxx_conftest_cxx98_main='
  2821. assert (argc);
  2822. assert (! argv[0]);
  2823. {
  2824. test_exception_syntax ();
  2825. test_template<double> tt (2.0);
  2826. assert (tt.add (4) == 6.0);
  2827. assert (true && !false);
  2828. }
  2829. '
  2830. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2831. ac_cxx_conftest_cxx11_globals='
  2832. // Does the compiler advertise C++ 2011 conformance?
  2833. #if !defined __cplusplus || __cplusplus < 201103L
  2834. # error "Compiler does not advertise C++11 conformance"
  2835. #endif
  2836. namespace cxx11test
  2837. {
  2838. constexpr int get_val() { return 20; }
  2839. struct testinit
  2840. {
  2841. int i;
  2842. double d;
  2843. };
  2844. class delegate
  2845. {
  2846. public:
  2847. delegate(int n) : n(n) {}
  2848. delegate(): delegate(2354) {}
  2849. virtual int getval() { return this->n; };
  2850. protected:
  2851. int n;
  2852. };
  2853. class overridden : public delegate
  2854. {
  2855. public:
  2856. overridden(int n): delegate(n) {}
  2857. virtual int getval() override final { return this->n * 2; }
  2858. };
  2859. class nocopy
  2860. {
  2861. public:
  2862. nocopy(int i): i(i) {}
  2863. nocopy() = default;
  2864. nocopy(const nocopy&) = delete;
  2865. nocopy & operator=(const nocopy&) = delete;
  2866. private:
  2867. int i;
  2868. };
  2869. // for testing lambda expressions
  2870. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2871. {
  2872. return f(v);
  2873. }
  2874. // for testing variadic templates and trailing return types
  2875. template <typename V> auto sum(V first) -> V
  2876. {
  2877. return first;
  2878. }
  2879. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2880. {
  2881. return first + sum(rest...);
  2882. }
  2883. }
  2884. '
  2885. # Test code for whether the C++ compiler supports C++11 (body of main)
  2886. ac_cxx_conftest_cxx11_main='
  2887. {
  2888. // Test auto and decltype
  2889. auto a1 = 6538;
  2890. auto a2 = 48573953.4;
  2891. auto a3 = "String literal";
  2892. int total = 0;
  2893. for (auto i = a3; *i; ++i) { total += *i; }
  2894. decltype(a2) a4 = 34895.034;
  2895. }
  2896. {
  2897. // Test constexpr
  2898. short sa[cxx11test::get_val()] = { 0 };
  2899. }
  2900. {
  2901. // Test initializer lists
  2902. cxx11test::testinit il = { 4323, 435234.23544 };
  2903. }
  2904. {
  2905. // Test range-based for
  2906. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2907. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2908. for (auto &x : array) { x += 23; }
  2909. }
  2910. {
  2911. // Test lambda expressions
  2912. using cxx11test::eval;
  2913. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2914. double d = 2.0;
  2915. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2916. assert (d == 5.0);
  2917. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2918. assert (d == 5.0);
  2919. }
  2920. {
  2921. // Test use of variadic templates
  2922. using cxx11test::sum;
  2923. auto a = sum(1);
  2924. auto b = sum(1, 2);
  2925. auto c = sum(1.0, 2.0, 3.0);
  2926. }
  2927. {
  2928. // Test constructor delegation
  2929. cxx11test::delegate d1;
  2930. cxx11test::delegate d2();
  2931. cxx11test::delegate d3(45);
  2932. }
  2933. {
  2934. // Test override and final
  2935. cxx11test::overridden o1(55464);
  2936. }
  2937. {
  2938. // Test nullptr
  2939. char *c = nullptr;
  2940. }
  2941. {
  2942. // Test template brackets
  2943. test_template<::test_template<int>> v(test_template<int>(12));
  2944. }
  2945. {
  2946. // Unicode literals
  2947. char const *utf8 = u8"UTF-8 string \u2500";
  2948. char16_t const *utf16 = u"UTF-8 string \u2500";
  2949. char32_t const *utf32 = U"UTF-32 string \u2500";
  2950. }
  2951. '
  2952. # Test code for whether the C compiler supports C++11 (complete).
  2953. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2954. ${ac_cxx_conftest_cxx11_globals}
  2955. int
  2956. main (int argc, char **argv)
  2957. {
  2958. int ok = 0;
  2959. ${ac_cxx_conftest_cxx98_main}
  2960. ${ac_cxx_conftest_cxx11_main}
  2961. return ok;
  2962. }
  2963. "
  2964. # Test code for whether the C compiler supports C++98 (complete).
  2965. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2966. int
  2967. main (int argc, char **argv)
  2968. {
  2969. int ok = 0;
  2970. ${ac_cxx_conftest_cxx98_main}
  2971. return ok;
  2972. }
  2973. "
  2974. # Auxiliary files required by this configure script.
  2975. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2976. # Locations in which to look for auxiliary files.
  2977. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2978. # Search for a directory containing all of the required auxiliary files,
  2979. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2980. # If we don't find one directory that contains all the files we need,
  2981. # we report the set of missing files from the *first* directory in
  2982. # $ac_aux_dir_candidates and give up.
  2983. ac_missing_aux_files=""
  2984. ac_first_candidate=:
  2985. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2987. as_found=false
  2988. for as_dir in $ac_aux_dir_candidates
  2989. do
  2990. IFS=$as_save_IFS
  2991. case $as_dir in #(((
  2992. '') as_dir=./ ;;
  2993. */) ;;
  2994. *) as_dir=$as_dir/ ;;
  2995. esac
  2996. as_found=:
  2997. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2998. ac_aux_dir_found=yes
  2999. ac_install_sh=
  3000. for ac_aux in $ac_aux_files
  3001. do
  3002. # As a special case, if "install-sh" is required, that requirement
  3003. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3004. # and $ac_install_sh is set appropriately for whichever one is found.
  3005. if test x"$ac_aux" = x"install-sh"
  3006. then
  3007. if test -f "${as_dir}install-sh"; then
  3008. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3009. ac_install_sh="${as_dir}install-sh -c"
  3010. elif test -f "${as_dir}install.sh"; then
  3011. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3012. ac_install_sh="${as_dir}install.sh -c"
  3013. elif test -f "${as_dir}shtool"; then
  3014. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3015. ac_install_sh="${as_dir}shtool install -c"
  3016. else
  3017. ac_aux_dir_found=no
  3018. if $ac_first_candidate; then
  3019. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3020. else
  3021. break
  3022. fi
  3023. fi
  3024. else
  3025. if test -f "${as_dir}${ac_aux}"; then
  3026. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3027. else
  3028. ac_aux_dir_found=no
  3029. if $ac_first_candidate; then
  3030. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3031. else
  3032. break
  3033. fi
  3034. fi
  3035. fi
  3036. done
  3037. if test "$ac_aux_dir_found" = yes; then
  3038. ac_aux_dir="$as_dir"
  3039. break
  3040. fi
  3041. ac_first_candidate=false
  3042. as_found=false
  3043. done
  3044. IFS=$as_save_IFS
  3045. if $as_found
  3046. then :
  3047. else $as_nop
  3048. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3049. fi
  3050. # These three variables are undocumented and unsupported,
  3051. # and are intended to be withdrawn in a future Autoconf release.
  3052. # They can cause serious problems if a builder's source tree is in a directory
  3053. # whose full name contains unusual characters.
  3054. if test -f "${ac_aux_dir}config.guess"; then
  3055. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3056. fi
  3057. if test -f "${ac_aux_dir}config.sub"; then
  3058. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3059. fi
  3060. if test -f "$ac_aux_dir/configure"; then
  3061. ac_configure="$SHELL ${ac_aux_dir}configure"
  3062. fi
  3063. # Check that the precious variables saved in the cache have kept the same
  3064. # value.
  3065. ac_cache_corrupted=false
  3066. for ac_var in $ac_precious_vars; do
  3067. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3068. eval ac_new_set=\$ac_env_${ac_var}_set
  3069. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3070. eval ac_new_val=\$ac_env_${ac_var}_value
  3071. case $ac_old_set,$ac_new_set in
  3072. set,)
  3073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3074. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3075. ac_cache_corrupted=: ;;
  3076. ,set)
  3077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3078. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3079. ac_cache_corrupted=: ;;
  3080. ,);;
  3081. *)
  3082. if test "x$ac_old_val" != "x$ac_new_val"; then
  3083. # differences in whitespace do not lead to failure.
  3084. ac_old_val_w=`echo x $ac_old_val`
  3085. ac_new_val_w=`echo x $ac_new_val`
  3086. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3088. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3089. ac_cache_corrupted=:
  3090. else
  3091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3092. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3093. eval $ac_var=\$ac_old_val
  3094. fi
  3095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3096. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3098. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3099. fi;;
  3100. esac
  3101. # Pass precious variables to config.status.
  3102. if test "$ac_new_set" = set; then
  3103. case $ac_new_val in
  3104. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3105. *) ac_arg=$ac_var=$ac_new_val ;;
  3106. esac
  3107. case " $ac_configure_args " in
  3108. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3109. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3110. esac
  3111. fi
  3112. done
  3113. if $ac_cache_corrupted; then
  3114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3115. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3117. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3118. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3119. and start over" "$LINENO" 5
  3120. fi
  3121. ## -------------------- ##
  3122. ## Main body of script. ##
  3123. ## -------------------- ##
  3124. ac_ext=c
  3125. ac_cpp='$CPP $CPPFLAGS'
  3126. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3127. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3128. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3129. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3130. orig_CFLAGS="$CFLAGS"
  3131. # See docs/release_checklist.md
  3132. SDL_MAJOR_VERSION=2
  3133. SDL_MINOR_VERSION=24
  3134. SDL_MICRO_VERSION=1
  3135. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3136. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3137. case "$SDL_MINOR_VERSION" in #(
  3138. *[02468]) :
  3139. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3140. *) :
  3141. SDL_INTERFACE_AGE=0 ;; #(
  3142. *) :
  3143. ;;
  3144. esac
  3145. # libtool versioning
  3146. case `pwd` in
  3147. *\ * | *\ *)
  3148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3149. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3150. esac
  3151. macro_version='2.4.6'
  3152. macro_revision='2.4.6'
  3153. ltmain=$ac_aux_dir/ltmain.sh
  3154. # Make sure we can run config.sub.
  3155. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3156. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3158. printf %s "checking build system type... " >&6; }
  3159. if test ${ac_cv_build+y}
  3160. then :
  3161. printf %s "(cached) " >&6
  3162. else $as_nop
  3163. ac_build_alias=$build_alias
  3164. test "x$ac_build_alias" = x &&
  3165. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3166. test "x$ac_build_alias" = x &&
  3167. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3168. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3169. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3170. fi
  3171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3172. printf "%s\n" "$ac_cv_build" >&6; }
  3173. case $ac_cv_build in
  3174. *-*-*) ;;
  3175. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3176. esac
  3177. build=$ac_cv_build
  3178. ac_save_IFS=$IFS; IFS='-'
  3179. set x $ac_cv_build
  3180. shift
  3181. build_cpu=$1
  3182. build_vendor=$2
  3183. shift; shift
  3184. # Remember, the first character of IFS is used to create $*,
  3185. # except with old shells:
  3186. build_os=$*
  3187. IFS=$ac_save_IFS
  3188. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3190. printf %s "checking host system type... " >&6; }
  3191. if test ${ac_cv_host+y}
  3192. then :
  3193. printf %s "(cached) " >&6
  3194. else $as_nop
  3195. if test "x$host_alias" = x; then
  3196. ac_cv_host=$ac_cv_build
  3197. else
  3198. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3199. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3200. fi
  3201. fi
  3202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3203. printf "%s\n" "$ac_cv_host" >&6; }
  3204. case $ac_cv_host in
  3205. *-*-*) ;;
  3206. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3207. esac
  3208. host=$ac_cv_host
  3209. ac_save_IFS=$IFS; IFS='-'
  3210. set x $ac_cv_host
  3211. shift
  3212. host_cpu=$1
  3213. host_vendor=$2
  3214. shift; shift
  3215. # Remember, the first character of IFS is used to create $*,
  3216. # except with old shells:
  3217. host_os=$*
  3218. IFS=$ac_save_IFS
  3219. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3220. # Backslashify metacharacters that are still active within
  3221. # double-quoted strings.
  3222. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3223. # Same as above, but do not quote variable references.
  3224. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3225. # Sed substitution to delay expansion of an escaped shell variable in a
  3226. # double_quote_subst'ed string.
  3227. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3228. # Sed substitution to delay expansion of an escaped single quote.
  3229. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3230. # Sed substitution to avoid accidental globbing in evaled expressions
  3231. no_glob_subst='s/\*/\\\*/g'
  3232. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3233. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3234. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3236. printf %s "checking how to print strings... " >&6; }
  3237. # Test print first, because it will be a builtin if present.
  3238. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3239. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3240. ECHO='print -r --'
  3241. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3242. ECHO='printf %s\n'
  3243. else
  3244. # Use this function as a fallback that always works.
  3245. func_fallback_echo ()
  3246. {
  3247. eval 'cat <<_LTECHO_EOF
  3248. $1
  3249. _LTECHO_EOF'
  3250. }
  3251. ECHO='func_fallback_echo'
  3252. fi
  3253. # func_echo_all arg...
  3254. # Invoke $ECHO with all args, space-separated.
  3255. func_echo_all ()
  3256. {
  3257. $ECHO ""
  3258. }
  3259. case $ECHO in
  3260. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3261. printf "%s\n" "printf" >&6; } ;;
  3262. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3263. printf "%s\n" "print -r" >&6; } ;;
  3264. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3265. printf "%s\n" "cat" >&6; } ;;
  3266. esac
  3267. ac_ext=c
  3268. ac_cpp='$CPP $CPPFLAGS'
  3269. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3270. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3271. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3272. if test -n "$ac_tool_prefix"; then
  3273. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3274. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3276. printf %s "checking for $ac_word... " >&6; }
  3277. if test ${ac_cv_prog_CC+y}
  3278. then :
  3279. printf %s "(cached) " >&6
  3280. else $as_nop
  3281. if test -n "$CC"; then
  3282. ac_cv_prog_CC="$CC" # Let the user override the test.
  3283. else
  3284. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3285. for as_dir in $PATH
  3286. do
  3287. IFS=$as_save_IFS
  3288. case $as_dir in #(((
  3289. '') as_dir=./ ;;
  3290. */) ;;
  3291. *) as_dir=$as_dir/ ;;
  3292. esac
  3293. for ac_exec_ext in '' $ac_executable_extensions; do
  3294. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3295. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3296. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3297. break 2
  3298. fi
  3299. done
  3300. done
  3301. IFS=$as_save_IFS
  3302. fi
  3303. fi
  3304. CC=$ac_cv_prog_CC
  3305. if test -n "$CC"; then
  3306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3307. printf "%s\n" "$CC" >&6; }
  3308. else
  3309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3310. printf "%s\n" "no" >&6; }
  3311. fi
  3312. fi
  3313. if test -z "$ac_cv_prog_CC"; then
  3314. ac_ct_CC=$CC
  3315. # Extract the first word of "gcc", so it can be a program name with args.
  3316. set dummy gcc; ac_word=$2
  3317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3318. printf %s "checking for $ac_word... " >&6; }
  3319. if test ${ac_cv_prog_ac_ct_CC+y}
  3320. then :
  3321. printf %s "(cached) " >&6
  3322. else $as_nop
  3323. if test -n "$ac_ct_CC"; then
  3324. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3325. else
  3326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3327. for as_dir in $PATH
  3328. do
  3329. IFS=$as_save_IFS
  3330. case $as_dir in #(((
  3331. '') as_dir=./ ;;
  3332. */) ;;
  3333. *) as_dir=$as_dir/ ;;
  3334. esac
  3335. for ac_exec_ext in '' $ac_executable_extensions; do
  3336. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3337. ac_cv_prog_ac_ct_CC="gcc"
  3338. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3339. break 2
  3340. fi
  3341. done
  3342. done
  3343. IFS=$as_save_IFS
  3344. fi
  3345. fi
  3346. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3347. if test -n "$ac_ct_CC"; then
  3348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3349. printf "%s\n" "$ac_ct_CC" >&6; }
  3350. else
  3351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3352. printf "%s\n" "no" >&6; }
  3353. fi
  3354. if test "x$ac_ct_CC" = x; then
  3355. CC=""
  3356. else
  3357. case $cross_compiling:$ac_tool_warned in
  3358. yes:)
  3359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3360. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3361. ac_tool_warned=yes ;;
  3362. esac
  3363. CC=$ac_ct_CC
  3364. fi
  3365. else
  3366. CC="$ac_cv_prog_CC"
  3367. fi
  3368. if test -z "$CC"; then
  3369. if test -n "$ac_tool_prefix"; then
  3370. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3371. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3373. printf %s "checking for $ac_word... " >&6; }
  3374. if test ${ac_cv_prog_CC+y}
  3375. then :
  3376. printf %s "(cached) " >&6
  3377. else $as_nop
  3378. if test -n "$CC"; then
  3379. ac_cv_prog_CC="$CC" # Let the user override the test.
  3380. else
  3381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3382. for as_dir in $PATH
  3383. do
  3384. IFS=$as_save_IFS
  3385. case $as_dir in #(((
  3386. '') as_dir=./ ;;
  3387. */) ;;
  3388. *) as_dir=$as_dir/ ;;
  3389. esac
  3390. for ac_exec_ext in '' $ac_executable_extensions; do
  3391. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3392. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3393. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3394. break 2
  3395. fi
  3396. done
  3397. done
  3398. IFS=$as_save_IFS
  3399. fi
  3400. fi
  3401. CC=$ac_cv_prog_CC
  3402. if test -n "$CC"; then
  3403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3404. printf "%s\n" "$CC" >&6; }
  3405. else
  3406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3407. printf "%s\n" "no" >&6; }
  3408. fi
  3409. fi
  3410. fi
  3411. if test -z "$CC"; then
  3412. # Extract the first word of "cc", so it can be a program name with args.
  3413. set dummy cc; ac_word=$2
  3414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3415. printf %s "checking for $ac_word... " >&6; }
  3416. if test ${ac_cv_prog_CC+y}
  3417. then :
  3418. printf %s "(cached) " >&6
  3419. else $as_nop
  3420. if test -n "$CC"; then
  3421. ac_cv_prog_CC="$CC" # Let the user override the test.
  3422. else
  3423. ac_prog_rejected=no
  3424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3425. for as_dir in $PATH
  3426. do
  3427. IFS=$as_save_IFS
  3428. case $as_dir in #(((
  3429. '') as_dir=./ ;;
  3430. */) ;;
  3431. *) as_dir=$as_dir/ ;;
  3432. esac
  3433. for ac_exec_ext in '' $ac_executable_extensions; do
  3434. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3435. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3436. ac_prog_rejected=yes
  3437. continue
  3438. fi
  3439. ac_cv_prog_CC="cc"
  3440. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3441. break 2
  3442. fi
  3443. done
  3444. done
  3445. IFS=$as_save_IFS
  3446. if test $ac_prog_rejected = yes; then
  3447. # We found a bogon in the path, so make sure we never use it.
  3448. set dummy $ac_cv_prog_CC
  3449. shift
  3450. if test $# != 0; then
  3451. # We chose a different compiler from the bogus one.
  3452. # However, it has the same basename, so the bogon will be chosen
  3453. # first if we set CC to just the basename; use the full file name.
  3454. shift
  3455. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3456. fi
  3457. fi
  3458. fi
  3459. fi
  3460. CC=$ac_cv_prog_CC
  3461. if test -n "$CC"; then
  3462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3463. printf "%s\n" "$CC" >&6; }
  3464. else
  3465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3466. printf "%s\n" "no" >&6; }
  3467. fi
  3468. fi
  3469. if test -z "$CC"; then
  3470. if test -n "$ac_tool_prefix"; then
  3471. for ac_prog in cl.exe
  3472. do
  3473. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3474. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3476. printf %s "checking for $ac_word... " >&6; }
  3477. if test ${ac_cv_prog_CC+y}
  3478. then :
  3479. printf %s "(cached) " >&6
  3480. else $as_nop
  3481. if test -n "$CC"; then
  3482. ac_cv_prog_CC="$CC" # Let the user override the test.
  3483. else
  3484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3485. for as_dir in $PATH
  3486. do
  3487. IFS=$as_save_IFS
  3488. case $as_dir in #(((
  3489. '') as_dir=./ ;;
  3490. */) ;;
  3491. *) as_dir=$as_dir/ ;;
  3492. esac
  3493. for ac_exec_ext in '' $ac_executable_extensions; do
  3494. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3495. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3496. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3497. break 2
  3498. fi
  3499. done
  3500. done
  3501. IFS=$as_save_IFS
  3502. fi
  3503. fi
  3504. CC=$ac_cv_prog_CC
  3505. if test -n "$CC"; then
  3506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3507. printf "%s\n" "$CC" >&6; }
  3508. else
  3509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3510. printf "%s\n" "no" >&6; }
  3511. fi
  3512. test -n "$CC" && break
  3513. done
  3514. fi
  3515. if test -z "$CC"; then
  3516. ac_ct_CC=$CC
  3517. for ac_prog in cl.exe
  3518. do
  3519. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3520. set dummy $ac_prog; ac_word=$2
  3521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3522. printf %s "checking for $ac_word... " >&6; }
  3523. if test ${ac_cv_prog_ac_ct_CC+y}
  3524. then :
  3525. printf %s "(cached) " >&6
  3526. else $as_nop
  3527. if test -n "$ac_ct_CC"; then
  3528. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3529. else
  3530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3531. for as_dir in $PATH
  3532. do
  3533. IFS=$as_save_IFS
  3534. case $as_dir in #(((
  3535. '') as_dir=./ ;;
  3536. */) ;;
  3537. *) as_dir=$as_dir/ ;;
  3538. esac
  3539. for ac_exec_ext in '' $ac_executable_extensions; do
  3540. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3541. ac_cv_prog_ac_ct_CC="$ac_prog"
  3542. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3543. break 2
  3544. fi
  3545. done
  3546. done
  3547. IFS=$as_save_IFS
  3548. fi
  3549. fi
  3550. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3551. if test -n "$ac_ct_CC"; then
  3552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3553. printf "%s\n" "$ac_ct_CC" >&6; }
  3554. else
  3555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3556. printf "%s\n" "no" >&6; }
  3557. fi
  3558. test -n "$ac_ct_CC" && break
  3559. done
  3560. if test "x$ac_ct_CC" = x; then
  3561. CC=""
  3562. else
  3563. case $cross_compiling:$ac_tool_warned in
  3564. yes:)
  3565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3566. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3567. ac_tool_warned=yes ;;
  3568. esac
  3569. CC=$ac_ct_CC
  3570. fi
  3571. fi
  3572. fi
  3573. if test -z "$CC"; then
  3574. if test -n "$ac_tool_prefix"; then
  3575. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3576. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3578. printf %s "checking for $ac_word... " >&6; }
  3579. if test ${ac_cv_prog_CC+y}
  3580. then :
  3581. printf %s "(cached) " >&6
  3582. else $as_nop
  3583. if test -n "$CC"; then
  3584. ac_cv_prog_CC="$CC" # Let the user override the test.
  3585. else
  3586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3587. for as_dir in $PATH
  3588. do
  3589. IFS=$as_save_IFS
  3590. case $as_dir in #(((
  3591. '') as_dir=./ ;;
  3592. */) ;;
  3593. *) as_dir=$as_dir/ ;;
  3594. esac
  3595. for ac_exec_ext in '' $ac_executable_extensions; do
  3596. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3597. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3598. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3599. break 2
  3600. fi
  3601. done
  3602. done
  3603. IFS=$as_save_IFS
  3604. fi
  3605. fi
  3606. CC=$ac_cv_prog_CC
  3607. if test -n "$CC"; then
  3608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3609. printf "%s\n" "$CC" >&6; }
  3610. else
  3611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3612. printf "%s\n" "no" >&6; }
  3613. fi
  3614. fi
  3615. if test -z "$ac_cv_prog_CC"; then
  3616. ac_ct_CC=$CC
  3617. # Extract the first word of "clang", so it can be a program name with args.
  3618. set dummy clang; ac_word=$2
  3619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3620. printf %s "checking for $ac_word... " >&6; }
  3621. if test ${ac_cv_prog_ac_ct_CC+y}
  3622. then :
  3623. printf %s "(cached) " >&6
  3624. else $as_nop
  3625. if test -n "$ac_ct_CC"; then
  3626. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3627. else
  3628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3629. for as_dir in $PATH
  3630. do
  3631. IFS=$as_save_IFS
  3632. case $as_dir in #(((
  3633. '') as_dir=./ ;;
  3634. */) ;;
  3635. *) as_dir=$as_dir/ ;;
  3636. esac
  3637. for ac_exec_ext in '' $ac_executable_extensions; do
  3638. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3639. ac_cv_prog_ac_ct_CC="clang"
  3640. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3641. break 2
  3642. fi
  3643. done
  3644. done
  3645. IFS=$as_save_IFS
  3646. fi
  3647. fi
  3648. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3649. if test -n "$ac_ct_CC"; then
  3650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3651. printf "%s\n" "$ac_ct_CC" >&6; }
  3652. else
  3653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3654. printf "%s\n" "no" >&6; }
  3655. fi
  3656. if test "x$ac_ct_CC" = x; then
  3657. CC=""
  3658. else
  3659. case $cross_compiling:$ac_tool_warned in
  3660. yes:)
  3661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3662. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3663. ac_tool_warned=yes ;;
  3664. esac
  3665. CC=$ac_ct_CC
  3666. fi
  3667. else
  3668. CC="$ac_cv_prog_CC"
  3669. fi
  3670. fi
  3671. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3672. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3673. as_fn_error $? "no acceptable C compiler found in \$PATH
  3674. See \`config.log' for more details" "$LINENO" 5; }
  3675. # Provide some information about the compiler.
  3676. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3677. set X $ac_compile
  3678. ac_compiler=$2
  3679. for ac_option in --version -v -V -qversion -version; do
  3680. { { ac_try="$ac_compiler $ac_option >&5"
  3681. case "(($ac_try" in
  3682. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3683. *) ac_try_echo=$ac_try;;
  3684. esac
  3685. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3686. printf "%s\n" "$ac_try_echo"; } >&5
  3687. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3688. ac_status=$?
  3689. if test -s conftest.err; then
  3690. sed '10a\
  3691. ... rest of stderr output deleted ...
  3692. 10q' conftest.err >conftest.er1
  3693. cat conftest.er1 >&5
  3694. fi
  3695. rm -f conftest.er1 conftest.err
  3696. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3697. test $ac_status = 0; }
  3698. done
  3699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3700. /* end confdefs.h. */
  3701. int
  3702. main (void)
  3703. {
  3704. ;
  3705. return 0;
  3706. }
  3707. _ACEOF
  3708. ac_clean_files_save=$ac_clean_files
  3709. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3710. # Try to create an executable without -o first, disregard a.out.
  3711. # It will help us diagnose broken compilers, and finding out an intuition
  3712. # of exeext.
  3713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3714. printf %s "checking whether the C compiler works... " >&6; }
  3715. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3716. # The possible output files:
  3717. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3718. ac_rmfiles=
  3719. for ac_file in $ac_files
  3720. do
  3721. case $ac_file in
  3722. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3723. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3724. esac
  3725. done
  3726. rm -f $ac_rmfiles
  3727. if { { ac_try="$ac_link_default"
  3728. case "(($ac_try" in
  3729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3730. *) ac_try_echo=$ac_try;;
  3731. esac
  3732. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3733. printf "%s\n" "$ac_try_echo"; } >&5
  3734. (eval "$ac_link_default") 2>&5
  3735. ac_status=$?
  3736. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3737. test $ac_status = 0; }
  3738. then :
  3739. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3740. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3741. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3742. # so that the user can short-circuit this test for compilers unknown to
  3743. # Autoconf.
  3744. for ac_file in $ac_files ''
  3745. do
  3746. test -f "$ac_file" || continue
  3747. case $ac_file in
  3748. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3749. ;;
  3750. [ab].out )
  3751. # We found the default executable, but exeext='' is most
  3752. # certainly right.
  3753. break;;
  3754. *.* )
  3755. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3756. then :; else
  3757. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3758. fi
  3759. # We set ac_cv_exeext here because the later test for it is not
  3760. # safe: cross compilers may not add the suffix if given an `-o'
  3761. # argument, so we may need to know it at that point already.
  3762. # Even if this section looks crufty: it has the advantage of
  3763. # actually working.
  3764. break;;
  3765. * )
  3766. break;;
  3767. esac
  3768. done
  3769. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3770. else $as_nop
  3771. ac_file=''
  3772. fi
  3773. if test -z "$ac_file"
  3774. then :
  3775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3776. printf "%s\n" "no" >&6; }
  3777. printf "%s\n" "$as_me: failed program was:" >&5
  3778. sed 's/^/| /' conftest.$ac_ext >&5
  3779. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3780. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3781. as_fn_error 77 "C compiler cannot create executables
  3782. See \`config.log' for more details" "$LINENO" 5; }
  3783. else $as_nop
  3784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3785. printf "%s\n" "yes" >&6; }
  3786. fi
  3787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3788. printf %s "checking for C compiler default output file name... " >&6; }
  3789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3790. printf "%s\n" "$ac_file" >&6; }
  3791. ac_exeext=$ac_cv_exeext
  3792. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3793. ac_clean_files=$ac_clean_files_save
  3794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3795. printf %s "checking for suffix of executables... " >&6; }
  3796. if { { ac_try="$ac_link"
  3797. case "(($ac_try" in
  3798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3799. *) ac_try_echo=$ac_try;;
  3800. esac
  3801. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3802. printf "%s\n" "$ac_try_echo"; } >&5
  3803. (eval "$ac_link") 2>&5
  3804. ac_status=$?
  3805. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3806. test $ac_status = 0; }
  3807. then :
  3808. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3809. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3810. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3811. # `rm'.
  3812. for ac_file in conftest.exe conftest conftest.*; do
  3813. test -f "$ac_file" || continue
  3814. case $ac_file in
  3815. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3816. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3817. break;;
  3818. * ) break;;
  3819. esac
  3820. done
  3821. else $as_nop
  3822. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3823. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3824. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3825. See \`config.log' for more details" "$LINENO" 5; }
  3826. fi
  3827. rm -f conftest conftest$ac_cv_exeext
  3828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3829. printf "%s\n" "$ac_cv_exeext" >&6; }
  3830. rm -f conftest.$ac_ext
  3831. EXEEXT=$ac_cv_exeext
  3832. ac_exeext=$EXEEXT
  3833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3834. /* end confdefs.h. */
  3835. #include <stdio.h>
  3836. int
  3837. main (void)
  3838. {
  3839. FILE *f = fopen ("conftest.out", "w");
  3840. return ferror (f) || fclose (f) != 0;
  3841. ;
  3842. return 0;
  3843. }
  3844. _ACEOF
  3845. ac_clean_files="$ac_clean_files conftest.out"
  3846. # Check that the compiler produces executables we can run. If not, either
  3847. # the compiler is broken, or we cross compile.
  3848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3849. printf %s "checking whether we are cross compiling... " >&6; }
  3850. if test "$cross_compiling" != yes; then
  3851. { { ac_try="$ac_link"
  3852. case "(($ac_try" in
  3853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3854. *) ac_try_echo=$ac_try;;
  3855. esac
  3856. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3857. printf "%s\n" "$ac_try_echo"; } >&5
  3858. (eval "$ac_link") 2>&5
  3859. ac_status=$?
  3860. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3861. test $ac_status = 0; }
  3862. if { ac_try='./conftest$ac_cv_exeext'
  3863. { { case "(($ac_try" in
  3864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3865. *) ac_try_echo=$ac_try;;
  3866. esac
  3867. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3868. printf "%s\n" "$ac_try_echo"; } >&5
  3869. (eval "$ac_try") 2>&5
  3870. ac_status=$?
  3871. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3872. test $ac_status = 0; }; }; then
  3873. cross_compiling=no
  3874. else
  3875. if test "$cross_compiling" = maybe; then
  3876. cross_compiling=yes
  3877. else
  3878. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3879. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3880. as_fn_error 77 "cannot run C compiled programs.
  3881. If you meant to cross compile, use \`--host'.
  3882. See \`config.log' for more details" "$LINENO" 5; }
  3883. fi
  3884. fi
  3885. fi
  3886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3887. printf "%s\n" "$cross_compiling" >&6; }
  3888. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3889. ac_clean_files=$ac_clean_files_save
  3890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3891. printf %s "checking for suffix of object files... " >&6; }
  3892. if test ${ac_cv_objext+y}
  3893. then :
  3894. printf %s "(cached) " >&6
  3895. else $as_nop
  3896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3897. /* end confdefs.h. */
  3898. int
  3899. main (void)
  3900. {
  3901. ;
  3902. return 0;
  3903. }
  3904. _ACEOF
  3905. rm -f conftest.o conftest.obj
  3906. if { { ac_try="$ac_compile"
  3907. case "(($ac_try" in
  3908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3909. *) ac_try_echo=$ac_try;;
  3910. esac
  3911. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3912. printf "%s\n" "$ac_try_echo"; } >&5
  3913. (eval "$ac_compile") 2>&5
  3914. ac_status=$?
  3915. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3916. test $ac_status = 0; }
  3917. then :
  3918. for ac_file in conftest.o conftest.obj conftest.*; do
  3919. test -f "$ac_file" || continue;
  3920. case $ac_file in
  3921. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3922. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3923. break;;
  3924. esac
  3925. done
  3926. else $as_nop
  3927. printf "%s\n" "$as_me: failed program was:" >&5
  3928. sed 's/^/| /' conftest.$ac_ext >&5
  3929. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3930. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3931. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3932. See \`config.log' for more details" "$LINENO" 5; }
  3933. fi
  3934. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3935. fi
  3936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3937. printf "%s\n" "$ac_cv_objext" >&6; }
  3938. OBJEXT=$ac_cv_objext
  3939. ac_objext=$OBJEXT
  3940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3941. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3942. if test ${ac_cv_c_compiler_gnu+y}
  3943. then :
  3944. printf %s "(cached) " >&6
  3945. else $as_nop
  3946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3947. /* end confdefs.h. */
  3948. int
  3949. main (void)
  3950. {
  3951. #ifndef __GNUC__
  3952. choke me
  3953. #endif
  3954. ;
  3955. return 0;
  3956. }
  3957. _ACEOF
  3958. if ac_fn_c_try_compile "$LINENO"
  3959. then :
  3960. ac_compiler_gnu=yes
  3961. else $as_nop
  3962. ac_compiler_gnu=no
  3963. fi
  3964. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3965. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3966. fi
  3967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3968. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3969. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3970. if test $ac_compiler_gnu = yes; then
  3971. GCC=yes
  3972. else
  3973. GCC=
  3974. fi
  3975. ac_test_CFLAGS=${CFLAGS+y}
  3976. ac_save_CFLAGS=$CFLAGS
  3977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3978. printf %s "checking whether $CC accepts -g... " >&6; }
  3979. if test ${ac_cv_prog_cc_g+y}
  3980. then :
  3981. printf %s "(cached) " >&6
  3982. else $as_nop
  3983. ac_save_c_werror_flag=$ac_c_werror_flag
  3984. ac_c_werror_flag=yes
  3985. ac_cv_prog_cc_g=no
  3986. CFLAGS="-g"
  3987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3988. /* end confdefs.h. */
  3989. int
  3990. main (void)
  3991. {
  3992. ;
  3993. return 0;
  3994. }
  3995. _ACEOF
  3996. if ac_fn_c_try_compile "$LINENO"
  3997. then :
  3998. ac_cv_prog_cc_g=yes
  3999. else $as_nop
  4000. CFLAGS=""
  4001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4002. /* end confdefs.h. */
  4003. int
  4004. main (void)
  4005. {
  4006. ;
  4007. return 0;
  4008. }
  4009. _ACEOF
  4010. if ac_fn_c_try_compile "$LINENO"
  4011. then :
  4012. else $as_nop
  4013. ac_c_werror_flag=$ac_save_c_werror_flag
  4014. CFLAGS="-g"
  4015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4016. /* end confdefs.h. */
  4017. int
  4018. main (void)
  4019. {
  4020. ;
  4021. return 0;
  4022. }
  4023. _ACEOF
  4024. if ac_fn_c_try_compile "$LINENO"
  4025. then :
  4026. ac_cv_prog_cc_g=yes
  4027. fi
  4028. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4029. fi
  4030. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4031. fi
  4032. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4033. ac_c_werror_flag=$ac_save_c_werror_flag
  4034. fi
  4035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4036. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4037. if test $ac_test_CFLAGS; then
  4038. CFLAGS=$ac_save_CFLAGS
  4039. elif test $ac_cv_prog_cc_g = yes; then
  4040. if test "$GCC" = yes; then
  4041. CFLAGS="-g -O2"
  4042. else
  4043. CFLAGS="-g"
  4044. fi
  4045. else
  4046. if test "$GCC" = yes; then
  4047. CFLAGS="-O2"
  4048. else
  4049. CFLAGS=
  4050. fi
  4051. fi
  4052. ac_prog_cc_stdc=no
  4053. if test x$ac_prog_cc_stdc = xno
  4054. then :
  4055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4056. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4057. if test ${ac_cv_prog_cc_c11+y}
  4058. then :
  4059. printf %s "(cached) " >&6
  4060. else $as_nop
  4061. ac_cv_prog_cc_c11=no
  4062. ac_save_CC=$CC
  4063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4064. /* end confdefs.h. */
  4065. $ac_c_conftest_c11_program
  4066. _ACEOF
  4067. for ac_arg in '' -std=gnu11
  4068. do
  4069. CC="$ac_save_CC $ac_arg"
  4070. if ac_fn_c_try_compile "$LINENO"
  4071. then :
  4072. ac_cv_prog_cc_c11=$ac_arg
  4073. fi
  4074. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4075. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4076. done
  4077. rm -f conftest.$ac_ext
  4078. CC=$ac_save_CC
  4079. fi
  4080. if test "x$ac_cv_prog_cc_c11" = xno
  4081. then :
  4082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4083. printf "%s\n" "unsupported" >&6; }
  4084. else $as_nop
  4085. if test "x$ac_cv_prog_cc_c11" = x
  4086. then :
  4087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4088. printf "%s\n" "none needed" >&6; }
  4089. else $as_nop
  4090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4091. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4092. CC="$CC $ac_cv_prog_cc_c11"
  4093. fi
  4094. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4095. ac_prog_cc_stdc=c11
  4096. fi
  4097. fi
  4098. if test x$ac_prog_cc_stdc = xno
  4099. then :
  4100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4101. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4102. if test ${ac_cv_prog_cc_c99+y}
  4103. then :
  4104. printf %s "(cached) " >&6
  4105. else $as_nop
  4106. ac_cv_prog_cc_c99=no
  4107. ac_save_CC=$CC
  4108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4109. /* end confdefs.h. */
  4110. $ac_c_conftest_c99_program
  4111. _ACEOF
  4112. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4113. do
  4114. CC="$ac_save_CC $ac_arg"
  4115. if ac_fn_c_try_compile "$LINENO"
  4116. then :
  4117. ac_cv_prog_cc_c99=$ac_arg
  4118. fi
  4119. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4120. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4121. done
  4122. rm -f conftest.$ac_ext
  4123. CC=$ac_save_CC
  4124. fi
  4125. if test "x$ac_cv_prog_cc_c99" = xno
  4126. then :
  4127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4128. printf "%s\n" "unsupported" >&6; }
  4129. else $as_nop
  4130. if test "x$ac_cv_prog_cc_c99" = x
  4131. then :
  4132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4133. printf "%s\n" "none needed" >&6; }
  4134. else $as_nop
  4135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4136. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4137. CC="$CC $ac_cv_prog_cc_c99"
  4138. fi
  4139. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4140. ac_prog_cc_stdc=c99
  4141. fi
  4142. fi
  4143. if test x$ac_prog_cc_stdc = xno
  4144. then :
  4145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4146. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4147. if test ${ac_cv_prog_cc_c89+y}
  4148. then :
  4149. printf %s "(cached) " >&6
  4150. else $as_nop
  4151. ac_cv_prog_cc_c89=no
  4152. ac_save_CC=$CC
  4153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4154. /* end confdefs.h. */
  4155. $ac_c_conftest_c89_program
  4156. _ACEOF
  4157. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4158. do
  4159. CC="$ac_save_CC $ac_arg"
  4160. if ac_fn_c_try_compile "$LINENO"
  4161. then :
  4162. ac_cv_prog_cc_c89=$ac_arg
  4163. fi
  4164. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4165. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4166. done
  4167. rm -f conftest.$ac_ext
  4168. CC=$ac_save_CC
  4169. fi
  4170. if test "x$ac_cv_prog_cc_c89" = xno
  4171. then :
  4172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4173. printf "%s\n" "unsupported" >&6; }
  4174. else $as_nop
  4175. if test "x$ac_cv_prog_cc_c89" = x
  4176. then :
  4177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4178. printf "%s\n" "none needed" >&6; }
  4179. else $as_nop
  4180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4181. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4182. CC="$CC $ac_cv_prog_cc_c89"
  4183. fi
  4184. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4185. ac_prog_cc_stdc=c89
  4186. fi
  4187. fi
  4188. ac_ext=c
  4189. ac_cpp='$CPP $CPPFLAGS'
  4190. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4191. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4192. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4194. printf %s "checking for a sed that does not truncate output... " >&6; }
  4195. if test ${ac_cv_path_SED+y}
  4196. then :
  4197. printf %s "(cached) " >&6
  4198. else $as_nop
  4199. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4200. for ac_i in 1 2 3 4 5 6 7; do
  4201. ac_script="$ac_script$as_nl$ac_script"
  4202. done
  4203. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4204. { ac_script=; unset ac_script;}
  4205. if test -z "$SED"; then
  4206. ac_path_SED_found=false
  4207. # Loop through the user's path and test for each of PROGNAME-LIST
  4208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4209. for as_dir in $PATH
  4210. do
  4211. IFS=$as_save_IFS
  4212. case $as_dir in #(((
  4213. '') as_dir=./ ;;
  4214. */) ;;
  4215. *) as_dir=$as_dir/ ;;
  4216. esac
  4217. for ac_prog in sed gsed
  4218. do
  4219. for ac_exec_ext in '' $ac_executable_extensions; do
  4220. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4221. as_fn_executable_p "$ac_path_SED" || continue
  4222. # Check for GNU ac_path_SED and select it if it is found.
  4223. # Check for GNU $ac_path_SED
  4224. case `"$ac_path_SED" --version 2>&1` in
  4225. *GNU*)
  4226. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4227. *)
  4228. ac_count=0
  4229. printf %s 0123456789 >"conftest.in"
  4230. while :
  4231. do
  4232. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4233. mv "conftest.tmp" "conftest.in"
  4234. cp "conftest.in" "conftest.nl"
  4235. printf "%s\n" '' >> "conftest.nl"
  4236. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4237. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4238. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4239. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4240. # Best one so far, save it but keep looking for a better one
  4241. ac_cv_path_SED="$ac_path_SED"
  4242. ac_path_SED_max=$ac_count
  4243. fi
  4244. # 10*(2^10) chars as input seems more than enough
  4245. test $ac_count -gt 10 && break
  4246. done
  4247. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4248. esac
  4249. $ac_path_SED_found && break 3
  4250. done
  4251. done
  4252. done
  4253. IFS=$as_save_IFS
  4254. if test -z "$ac_cv_path_SED"; then
  4255. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4256. fi
  4257. else
  4258. ac_cv_path_SED=$SED
  4259. fi
  4260. fi
  4261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4262. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4263. SED="$ac_cv_path_SED"
  4264. rm -f conftest.sed
  4265. test -z "$SED" && SED=sed
  4266. Xsed="$SED -e 1s/^X//"
  4267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4268. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4269. if test ${ac_cv_path_GREP+y}
  4270. then :
  4271. printf %s "(cached) " >&6
  4272. else $as_nop
  4273. if test -z "$GREP"; then
  4274. ac_path_GREP_found=false
  4275. # Loop through the user's path and test for each of PROGNAME-LIST
  4276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4277. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4278. do
  4279. IFS=$as_save_IFS
  4280. case $as_dir in #(((
  4281. '') as_dir=./ ;;
  4282. */) ;;
  4283. *) as_dir=$as_dir/ ;;
  4284. esac
  4285. for ac_prog in grep ggrep
  4286. do
  4287. for ac_exec_ext in '' $ac_executable_extensions; do
  4288. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4289. as_fn_executable_p "$ac_path_GREP" || continue
  4290. # Check for GNU ac_path_GREP and select it if it is found.
  4291. # Check for GNU $ac_path_GREP
  4292. case `"$ac_path_GREP" --version 2>&1` in
  4293. *GNU*)
  4294. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4295. *)
  4296. ac_count=0
  4297. printf %s 0123456789 >"conftest.in"
  4298. while :
  4299. do
  4300. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4301. mv "conftest.tmp" "conftest.in"
  4302. cp "conftest.in" "conftest.nl"
  4303. printf "%s\n" 'GREP' >> "conftest.nl"
  4304. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4305. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4306. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4307. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4308. # Best one so far, save it but keep looking for a better one
  4309. ac_cv_path_GREP="$ac_path_GREP"
  4310. ac_path_GREP_max=$ac_count
  4311. fi
  4312. # 10*(2^10) chars as input seems more than enough
  4313. test $ac_count -gt 10 && break
  4314. done
  4315. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4316. esac
  4317. $ac_path_GREP_found && break 3
  4318. done
  4319. done
  4320. done
  4321. IFS=$as_save_IFS
  4322. if test -z "$ac_cv_path_GREP"; then
  4323. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4324. fi
  4325. else
  4326. ac_cv_path_GREP=$GREP
  4327. fi
  4328. fi
  4329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4330. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4331. GREP="$ac_cv_path_GREP"
  4332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4333. printf %s "checking for egrep... " >&6; }
  4334. if test ${ac_cv_path_EGREP+y}
  4335. then :
  4336. printf %s "(cached) " >&6
  4337. else $as_nop
  4338. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4339. then ac_cv_path_EGREP="$GREP -E"
  4340. else
  4341. if test -z "$EGREP"; then
  4342. ac_path_EGREP_found=false
  4343. # Loop through the user's path and test for each of PROGNAME-LIST
  4344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4345. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4346. do
  4347. IFS=$as_save_IFS
  4348. case $as_dir in #(((
  4349. '') as_dir=./ ;;
  4350. */) ;;
  4351. *) as_dir=$as_dir/ ;;
  4352. esac
  4353. for ac_prog in egrep
  4354. do
  4355. for ac_exec_ext in '' $ac_executable_extensions; do
  4356. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4357. as_fn_executable_p "$ac_path_EGREP" || continue
  4358. # Check for GNU ac_path_EGREP and select it if it is found.
  4359. # Check for GNU $ac_path_EGREP
  4360. case `"$ac_path_EGREP" --version 2>&1` in
  4361. *GNU*)
  4362. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4363. *)
  4364. ac_count=0
  4365. printf %s 0123456789 >"conftest.in"
  4366. while :
  4367. do
  4368. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4369. mv "conftest.tmp" "conftest.in"
  4370. cp "conftest.in" "conftest.nl"
  4371. printf "%s\n" 'EGREP' >> "conftest.nl"
  4372. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4373. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4374. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4375. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4376. # Best one so far, save it but keep looking for a better one
  4377. ac_cv_path_EGREP="$ac_path_EGREP"
  4378. ac_path_EGREP_max=$ac_count
  4379. fi
  4380. # 10*(2^10) chars as input seems more than enough
  4381. test $ac_count -gt 10 && break
  4382. done
  4383. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4384. esac
  4385. $ac_path_EGREP_found && break 3
  4386. done
  4387. done
  4388. done
  4389. IFS=$as_save_IFS
  4390. if test -z "$ac_cv_path_EGREP"; then
  4391. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4392. fi
  4393. else
  4394. ac_cv_path_EGREP=$EGREP
  4395. fi
  4396. fi
  4397. fi
  4398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4399. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4400. EGREP="$ac_cv_path_EGREP"
  4401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4402. printf %s "checking for fgrep... " >&6; }
  4403. if test ${ac_cv_path_FGREP+y}
  4404. then :
  4405. printf %s "(cached) " >&6
  4406. else $as_nop
  4407. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4408. then ac_cv_path_FGREP="$GREP -F"
  4409. else
  4410. if test -z "$FGREP"; then
  4411. ac_path_FGREP_found=false
  4412. # Loop through the user's path and test for each of PROGNAME-LIST
  4413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4414. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4415. do
  4416. IFS=$as_save_IFS
  4417. case $as_dir in #(((
  4418. '') as_dir=./ ;;
  4419. */) ;;
  4420. *) as_dir=$as_dir/ ;;
  4421. esac
  4422. for ac_prog in fgrep
  4423. do
  4424. for ac_exec_ext in '' $ac_executable_extensions; do
  4425. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4426. as_fn_executable_p "$ac_path_FGREP" || continue
  4427. # Check for GNU ac_path_FGREP and select it if it is found.
  4428. # Check for GNU $ac_path_FGREP
  4429. case `"$ac_path_FGREP" --version 2>&1` in
  4430. *GNU*)
  4431. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4432. *)
  4433. ac_count=0
  4434. printf %s 0123456789 >"conftest.in"
  4435. while :
  4436. do
  4437. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4438. mv "conftest.tmp" "conftest.in"
  4439. cp "conftest.in" "conftest.nl"
  4440. printf "%s\n" 'FGREP' >> "conftest.nl"
  4441. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4442. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4443. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4444. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4445. # Best one so far, save it but keep looking for a better one
  4446. ac_cv_path_FGREP="$ac_path_FGREP"
  4447. ac_path_FGREP_max=$ac_count
  4448. fi
  4449. # 10*(2^10) chars as input seems more than enough
  4450. test $ac_count -gt 10 && break
  4451. done
  4452. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4453. esac
  4454. $ac_path_FGREP_found && break 3
  4455. done
  4456. done
  4457. done
  4458. IFS=$as_save_IFS
  4459. if test -z "$ac_cv_path_FGREP"; then
  4460. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4461. fi
  4462. else
  4463. ac_cv_path_FGREP=$FGREP
  4464. fi
  4465. fi
  4466. fi
  4467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4468. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4469. FGREP="$ac_cv_path_FGREP"
  4470. test -z "$GREP" && GREP=grep
  4471. # Check whether --with-gnu-ld was given.
  4472. if test ${with_gnu_ld+y}
  4473. then :
  4474. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4475. else $as_nop
  4476. with_gnu_ld=no
  4477. fi
  4478. ac_prog=ld
  4479. if test yes = "$GCC"; then
  4480. # Check if gcc -print-prog-name=ld gives a path.
  4481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4482. printf %s "checking for ld used by $CC... " >&6; }
  4483. case $host in
  4484. *-*-mingw*)
  4485. # gcc leaves a trailing carriage return, which upsets mingw
  4486. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4487. *)
  4488. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4489. esac
  4490. case $ac_prog in
  4491. # Accept absolute paths.
  4492. [\\/]* | ?:[\\/]*)
  4493. re_direlt='/[^/][^/]*/\.\./'
  4494. # Canonicalize the pathname of ld
  4495. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4496. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4497. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4498. done
  4499. test -z "$LD" && LD=$ac_prog
  4500. ;;
  4501. "")
  4502. # If it fails, then pretend we aren't using GCC.
  4503. ac_prog=ld
  4504. ;;
  4505. *)
  4506. # If it is relative, then search for the first ld in PATH.
  4507. with_gnu_ld=unknown
  4508. ;;
  4509. esac
  4510. elif test yes = "$with_gnu_ld"; then
  4511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4512. printf %s "checking for GNU ld... " >&6; }
  4513. else
  4514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4515. printf %s "checking for non-GNU ld... " >&6; }
  4516. fi
  4517. if test ${lt_cv_path_LD+y}
  4518. then :
  4519. printf %s "(cached) " >&6
  4520. else $as_nop
  4521. if test -z "$LD"; then
  4522. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4523. for ac_dir in $PATH; do
  4524. IFS=$lt_save_ifs
  4525. test -z "$ac_dir" && ac_dir=.
  4526. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4527. lt_cv_path_LD=$ac_dir/$ac_prog
  4528. # Check to see if the program is GNU ld. I'd rather use --version,
  4529. # but apparently some variants of GNU ld only accept -v.
  4530. # Break only if it was the GNU/non-GNU ld that we prefer.
  4531. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4532. *GNU* | *'with BFD'*)
  4533. test no != "$with_gnu_ld" && break
  4534. ;;
  4535. *)
  4536. test yes != "$with_gnu_ld" && break
  4537. ;;
  4538. esac
  4539. fi
  4540. done
  4541. IFS=$lt_save_ifs
  4542. else
  4543. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4544. fi
  4545. fi
  4546. LD=$lt_cv_path_LD
  4547. if test -n "$LD"; then
  4548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4549. printf "%s\n" "$LD" >&6; }
  4550. else
  4551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4552. printf "%s\n" "no" >&6; }
  4553. fi
  4554. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4556. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4557. if test ${lt_cv_prog_gnu_ld+y}
  4558. then :
  4559. printf %s "(cached) " >&6
  4560. else $as_nop
  4561. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4562. case `$LD -v 2>&1 </dev/null` in
  4563. *GNU* | *'with BFD'*)
  4564. lt_cv_prog_gnu_ld=yes
  4565. ;;
  4566. *)
  4567. lt_cv_prog_gnu_ld=no
  4568. ;;
  4569. esac
  4570. fi
  4571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4572. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4573. with_gnu_ld=$lt_cv_prog_gnu_ld
  4574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4575. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4576. if test ${lt_cv_path_NM+y}
  4577. then :
  4578. printf %s "(cached) " >&6
  4579. else $as_nop
  4580. if test -n "$NM"; then
  4581. # Let the user override the test.
  4582. lt_cv_path_NM=$NM
  4583. else
  4584. lt_nm_to_check=${ac_tool_prefix}nm
  4585. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4586. lt_nm_to_check="$lt_nm_to_check nm"
  4587. fi
  4588. for lt_tmp_nm in $lt_nm_to_check; do
  4589. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4590. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4591. IFS=$lt_save_ifs
  4592. test -z "$ac_dir" && ac_dir=.
  4593. tmp_nm=$ac_dir/$lt_tmp_nm
  4594. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4595. # Check to see if the nm accepts a BSD-compat flag.
  4596. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4597. # nm: unknown option "B" ignored
  4598. # Tru64's nm complains that /dev/null is an invalid object file
  4599. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4600. case $build_os in
  4601. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4602. *) lt_bad_file=/dev/null ;;
  4603. esac
  4604. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4605. *$lt_bad_file* | *'Invalid file or object type'*)
  4606. lt_cv_path_NM="$tmp_nm -B"
  4607. break 2
  4608. ;;
  4609. *)
  4610. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4611. */dev/null*)
  4612. lt_cv_path_NM="$tmp_nm -p"
  4613. break 2
  4614. ;;
  4615. *)
  4616. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4617. continue # so that we can try to find one that supports BSD flags
  4618. ;;
  4619. esac
  4620. ;;
  4621. esac
  4622. fi
  4623. done
  4624. IFS=$lt_save_ifs
  4625. done
  4626. : ${lt_cv_path_NM=no}
  4627. fi
  4628. fi
  4629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4630. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4631. if test no != "$lt_cv_path_NM"; then
  4632. NM=$lt_cv_path_NM
  4633. else
  4634. # Didn't find any BSD compatible name lister, look for dumpbin.
  4635. if test -n "$DUMPBIN"; then :
  4636. # Let the user override the test.
  4637. else
  4638. if test -n "$ac_tool_prefix"; then
  4639. for ac_prog in dumpbin "link -dump"
  4640. do
  4641. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4642. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4644. printf %s "checking for $ac_word... " >&6; }
  4645. if test ${ac_cv_prog_DUMPBIN+y}
  4646. then :
  4647. printf %s "(cached) " >&6
  4648. else $as_nop
  4649. if test -n "$DUMPBIN"; then
  4650. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4651. else
  4652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4653. for as_dir in $PATH
  4654. do
  4655. IFS=$as_save_IFS
  4656. case $as_dir in #(((
  4657. '') as_dir=./ ;;
  4658. */) ;;
  4659. *) as_dir=$as_dir/ ;;
  4660. esac
  4661. for ac_exec_ext in '' $ac_executable_extensions; do
  4662. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4663. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4664. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4665. break 2
  4666. fi
  4667. done
  4668. done
  4669. IFS=$as_save_IFS
  4670. fi
  4671. fi
  4672. DUMPBIN=$ac_cv_prog_DUMPBIN
  4673. if test -n "$DUMPBIN"; then
  4674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4675. printf "%s\n" "$DUMPBIN" >&6; }
  4676. else
  4677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4678. printf "%s\n" "no" >&6; }
  4679. fi
  4680. test -n "$DUMPBIN" && break
  4681. done
  4682. fi
  4683. if test -z "$DUMPBIN"; then
  4684. ac_ct_DUMPBIN=$DUMPBIN
  4685. for ac_prog in dumpbin "link -dump"
  4686. do
  4687. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4688. set dummy $ac_prog; ac_word=$2
  4689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4690. printf %s "checking for $ac_word... " >&6; }
  4691. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4692. then :
  4693. printf %s "(cached) " >&6
  4694. else $as_nop
  4695. if test -n "$ac_ct_DUMPBIN"; then
  4696. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4697. else
  4698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4699. for as_dir in $PATH
  4700. do
  4701. IFS=$as_save_IFS
  4702. case $as_dir in #(((
  4703. '') as_dir=./ ;;
  4704. */) ;;
  4705. *) as_dir=$as_dir/ ;;
  4706. esac
  4707. for ac_exec_ext in '' $ac_executable_extensions; do
  4708. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4709. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4710. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4711. break 2
  4712. fi
  4713. done
  4714. done
  4715. IFS=$as_save_IFS
  4716. fi
  4717. fi
  4718. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4719. if test -n "$ac_ct_DUMPBIN"; then
  4720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4721. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4722. else
  4723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4724. printf "%s\n" "no" >&6; }
  4725. fi
  4726. test -n "$ac_ct_DUMPBIN" && break
  4727. done
  4728. if test "x$ac_ct_DUMPBIN" = x; then
  4729. DUMPBIN=":"
  4730. else
  4731. case $cross_compiling:$ac_tool_warned in
  4732. yes:)
  4733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4734. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4735. ac_tool_warned=yes ;;
  4736. esac
  4737. DUMPBIN=$ac_ct_DUMPBIN
  4738. fi
  4739. fi
  4740. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4741. *COFF*)
  4742. DUMPBIN="$DUMPBIN -symbols -headers"
  4743. ;;
  4744. *)
  4745. DUMPBIN=:
  4746. ;;
  4747. esac
  4748. fi
  4749. if test : != "$DUMPBIN"; then
  4750. NM=$DUMPBIN
  4751. fi
  4752. fi
  4753. test -z "$NM" && NM=nm
  4754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4755. printf %s "checking the name lister ($NM) interface... " >&6; }
  4756. if test ${lt_cv_nm_interface+y}
  4757. then :
  4758. printf %s "(cached) " >&6
  4759. else $as_nop
  4760. lt_cv_nm_interface="BSD nm"
  4761. echo "int some_variable = 0;" > conftest.$ac_ext
  4762. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4763. (eval "$ac_compile" 2>conftest.err)
  4764. cat conftest.err >&5
  4765. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4766. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4767. cat conftest.err >&5
  4768. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4769. cat conftest.out >&5
  4770. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4771. lt_cv_nm_interface="MS dumpbin"
  4772. fi
  4773. rm -f conftest*
  4774. fi
  4775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4776. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4778. printf %s "checking whether ln -s works... " >&6; }
  4779. LN_S=$as_ln_s
  4780. if test "$LN_S" = "ln -s"; then
  4781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4782. printf "%s\n" "yes" >&6; }
  4783. else
  4784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4785. printf "%s\n" "no, using $LN_S" >&6; }
  4786. fi
  4787. # find the maximum length of command line arguments
  4788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4789. printf %s "checking the maximum length of command line arguments... " >&6; }
  4790. if test ${lt_cv_sys_max_cmd_len+y}
  4791. then :
  4792. printf %s "(cached) " >&6
  4793. else $as_nop
  4794. i=0
  4795. teststring=ABCD
  4796. case $build_os in
  4797. msdosdjgpp*)
  4798. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4799. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4800. # during glob expansion). Even if it were fixed, the result of this
  4801. # check would be larger than it should be.
  4802. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4803. ;;
  4804. gnu*)
  4805. # Under GNU Hurd, this test is not required because there is
  4806. # no limit to the length of command line arguments.
  4807. # Libtool will interpret -1 as no limit whatsoever
  4808. lt_cv_sys_max_cmd_len=-1;
  4809. ;;
  4810. cygwin* | mingw* | cegcc*)
  4811. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4812. # about 5 minutes as the teststring grows exponentially.
  4813. # Worse, since 9x/ME are not pre-emptively multitasking,
  4814. # you end up with a "frozen" computer, even though with patience
  4815. # the test eventually succeeds (with a max line length of 256k).
  4816. # Instead, let's just punt: use the minimum linelength reported by
  4817. # all of the supported platforms: 8192 (on NT/2K/XP).
  4818. lt_cv_sys_max_cmd_len=8192;
  4819. ;;
  4820. mint*)
  4821. # On MiNT this can take a long time and run out of memory.
  4822. lt_cv_sys_max_cmd_len=8192;
  4823. ;;
  4824. amigaos*)
  4825. # On AmigaOS with pdksh, this test takes hours, literally.
  4826. # So we just punt and use a minimum line length of 8192.
  4827. lt_cv_sys_max_cmd_len=8192;
  4828. ;;
  4829. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4830. # This has been around since 386BSD, at least. Likely further.
  4831. if test -x /sbin/sysctl; then
  4832. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4833. elif test -x /usr/sbin/sysctl; then
  4834. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4835. else
  4836. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4837. fi
  4838. # And add a safety zone
  4839. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4840. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4841. ;;
  4842. interix*)
  4843. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4844. lt_cv_sys_max_cmd_len=196608
  4845. ;;
  4846. os2*)
  4847. # The test takes a long time on OS/2.
  4848. lt_cv_sys_max_cmd_len=8192
  4849. ;;
  4850. osf*)
  4851. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4852. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4853. # nice to cause kernel panics so lets avoid the loop below.
  4854. # First set a reasonable default.
  4855. lt_cv_sys_max_cmd_len=16384
  4856. #
  4857. if test -x /sbin/sysconfig; then
  4858. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4859. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4860. esac
  4861. fi
  4862. ;;
  4863. sco3.2v5*)
  4864. lt_cv_sys_max_cmd_len=102400
  4865. ;;
  4866. sysv5* | sco5v6* | sysv4.2uw2*)
  4867. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4868. if test -n "$kargmax"; then
  4869. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4870. else
  4871. lt_cv_sys_max_cmd_len=32768
  4872. fi
  4873. ;;
  4874. *)
  4875. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4876. if test -n "$lt_cv_sys_max_cmd_len" && \
  4877. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4878. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4879. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4880. else
  4881. # Make teststring a little bigger before we do anything with it.
  4882. # a 1K string should be a reasonable start.
  4883. for i in 1 2 3 4 5 6 7 8; do
  4884. teststring=$teststring$teststring
  4885. done
  4886. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4887. # If test is not a shell built-in, we'll probably end up computing a
  4888. # maximum length that is only half of the actual maximum length, but
  4889. # we can't tell.
  4890. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4891. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4892. test 17 != "$i" # 1/2 MB should be enough
  4893. do
  4894. i=`expr $i + 1`
  4895. teststring=$teststring$teststring
  4896. done
  4897. # Only check the string length outside the loop.
  4898. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4899. teststring=
  4900. # Add a significant safety factor because C++ compilers can tack on
  4901. # massive amounts of additional arguments before passing them to the
  4902. # linker. It appears as though 1/2 is a usable value.
  4903. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4904. fi
  4905. ;;
  4906. esac
  4907. fi
  4908. if test -n "$lt_cv_sys_max_cmd_len"; then
  4909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4910. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4911. else
  4912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4913. printf "%s\n" "none" >&6; }
  4914. fi
  4915. max_cmd_len=$lt_cv_sys_max_cmd_len
  4916. : ${CP="cp -f"}
  4917. : ${MV="mv -f"}
  4918. : ${RM="rm -f"}
  4919. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4920. lt_unset=unset
  4921. else
  4922. lt_unset=false
  4923. fi
  4924. # test EBCDIC or ASCII
  4925. case `echo X|tr X '\101'` in
  4926. A) # ASCII based system
  4927. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4928. lt_SP2NL='tr \040 \012'
  4929. lt_NL2SP='tr \015\012 \040\040'
  4930. ;;
  4931. *) # EBCDIC based system
  4932. lt_SP2NL='tr \100 \n'
  4933. lt_NL2SP='tr \r\n \100\100'
  4934. ;;
  4935. esac
  4936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4937. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4938. if test ${lt_cv_to_host_file_cmd+y}
  4939. then :
  4940. printf %s "(cached) " >&6
  4941. else $as_nop
  4942. case $host in
  4943. *-*-mingw* )
  4944. case $build in
  4945. *-*-mingw* ) # actually msys
  4946. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4947. ;;
  4948. *-*-cygwin* )
  4949. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4950. ;;
  4951. * ) # otherwise, assume *nix
  4952. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4953. ;;
  4954. esac
  4955. ;;
  4956. *-*-cygwin* )
  4957. case $build in
  4958. *-*-mingw* ) # actually msys
  4959. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4960. ;;
  4961. *-*-cygwin* )
  4962. lt_cv_to_host_file_cmd=func_convert_file_noop
  4963. ;;
  4964. * ) # otherwise, assume *nix
  4965. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4966. ;;
  4967. esac
  4968. ;;
  4969. * ) # unhandled hosts (and "normal" native builds)
  4970. lt_cv_to_host_file_cmd=func_convert_file_noop
  4971. ;;
  4972. esac
  4973. fi
  4974. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4976. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4978. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4979. if test ${lt_cv_to_tool_file_cmd+y}
  4980. then :
  4981. printf %s "(cached) " >&6
  4982. else $as_nop
  4983. #assume ordinary cross tools, or native build.
  4984. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4985. case $host in
  4986. *-*-mingw* )
  4987. case $build in
  4988. *-*-mingw* ) # actually msys
  4989. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4990. ;;
  4991. esac
  4992. ;;
  4993. esac
  4994. fi
  4995. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4997. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  4998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4999. printf %s "checking for $LD option to reload object files... " >&6; }
  5000. if test ${lt_cv_ld_reload_flag+y}
  5001. then :
  5002. printf %s "(cached) " >&6
  5003. else $as_nop
  5004. lt_cv_ld_reload_flag='-r'
  5005. fi
  5006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5007. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5008. reload_flag=$lt_cv_ld_reload_flag
  5009. case $reload_flag in
  5010. "" | " "*) ;;
  5011. *) reload_flag=" $reload_flag" ;;
  5012. esac
  5013. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5014. case $host_os in
  5015. cygwin* | mingw* | pw32* | cegcc*)
  5016. if test yes != "$GCC"; then
  5017. reload_cmds=false
  5018. fi
  5019. ;;
  5020. darwin*)
  5021. if test yes = "$GCC"; then
  5022. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5023. else
  5024. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5025. fi
  5026. ;;
  5027. esac
  5028. if test -n "$ac_tool_prefix"; then
  5029. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5030. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5032. printf %s "checking for $ac_word... " >&6; }
  5033. if test ${ac_cv_prog_OBJDUMP+y}
  5034. then :
  5035. printf %s "(cached) " >&6
  5036. else $as_nop
  5037. if test -n "$OBJDUMP"; then
  5038. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5039. else
  5040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5041. for as_dir in $PATH
  5042. do
  5043. IFS=$as_save_IFS
  5044. case $as_dir in #(((
  5045. '') as_dir=./ ;;
  5046. */) ;;
  5047. *) as_dir=$as_dir/ ;;
  5048. esac
  5049. for ac_exec_ext in '' $ac_executable_extensions; do
  5050. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5051. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5052. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5053. break 2
  5054. fi
  5055. done
  5056. done
  5057. IFS=$as_save_IFS
  5058. fi
  5059. fi
  5060. OBJDUMP=$ac_cv_prog_OBJDUMP
  5061. if test -n "$OBJDUMP"; then
  5062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5063. printf "%s\n" "$OBJDUMP" >&6; }
  5064. else
  5065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5066. printf "%s\n" "no" >&6; }
  5067. fi
  5068. fi
  5069. if test -z "$ac_cv_prog_OBJDUMP"; then
  5070. ac_ct_OBJDUMP=$OBJDUMP
  5071. # Extract the first word of "objdump", so it can be a program name with args.
  5072. set dummy objdump; ac_word=$2
  5073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5074. printf %s "checking for $ac_word... " >&6; }
  5075. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5076. then :
  5077. printf %s "(cached) " >&6
  5078. else $as_nop
  5079. if test -n "$ac_ct_OBJDUMP"; then
  5080. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5081. else
  5082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5083. for as_dir in $PATH
  5084. do
  5085. IFS=$as_save_IFS
  5086. case $as_dir in #(((
  5087. '') as_dir=./ ;;
  5088. */) ;;
  5089. *) as_dir=$as_dir/ ;;
  5090. esac
  5091. for ac_exec_ext in '' $ac_executable_extensions; do
  5092. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5093. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5094. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5095. break 2
  5096. fi
  5097. done
  5098. done
  5099. IFS=$as_save_IFS
  5100. fi
  5101. fi
  5102. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5103. if test -n "$ac_ct_OBJDUMP"; then
  5104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5105. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5106. else
  5107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5108. printf "%s\n" "no" >&6; }
  5109. fi
  5110. if test "x$ac_ct_OBJDUMP" = x; then
  5111. OBJDUMP="false"
  5112. else
  5113. case $cross_compiling:$ac_tool_warned in
  5114. yes:)
  5115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5116. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5117. ac_tool_warned=yes ;;
  5118. esac
  5119. OBJDUMP=$ac_ct_OBJDUMP
  5120. fi
  5121. else
  5122. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5123. fi
  5124. test -z "$OBJDUMP" && OBJDUMP=objdump
  5125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5126. printf %s "checking how to recognize dependent libraries... " >&6; }
  5127. if test ${lt_cv_deplibs_check_method+y}
  5128. then :
  5129. printf %s "(cached) " >&6
  5130. else $as_nop
  5131. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5132. lt_cv_file_magic_test_file=
  5133. lt_cv_deplibs_check_method='unknown'
  5134. # Need to set the preceding variable on all platforms that support
  5135. # interlibrary dependencies.
  5136. # 'none' -- dependencies not supported.
  5137. # 'unknown' -- same as none, but documents that we really don't know.
  5138. # 'pass_all' -- all dependencies passed with no checks.
  5139. # 'test_compile' -- check by making test program.
  5140. # 'file_magic [[regex]]' -- check by looking for files in library path
  5141. # that responds to the $file_magic_cmd with a given extended regex.
  5142. # If you have 'file' or equivalent on your system and you're not sure
  5143. # whether 'pass_all' will *always* work, you probably want this one.
  5144. case $host_os in
  5145. aix[4-9]*)
  5146. lt_cv_deplibs_check_method=pass_all
  5147. ;;
  5148. beos*)
  5149. lt_cv_deplibs_check_method=pass_all
  5150. ;;
  5151. bsdi[45]*)
  5152. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5153. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5154. lt_cv_file_magic_test_file=/shlib/libc.so
  5155. ;;
  5156. cygwin*)
  5157. # func_win32_libid is a shell function defined in ltmain.sh
  5158. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5159. lt_cv_file_magic_cmd='func_win32_libid'
  5160. lt_cv_deplibs_check_method=pass_all # SDL customization
  5161. ;;
  5162. mingw* | pw32*)
  5163. # Base MSYS/MinGW do not provide the 'file' command needed by
  5164. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5165. # unless we find 'file', for example because we are cross-compiling.
  5166. if ( file / ) >/dev/null 2>&1; then
  5167. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5168. lt_cv_file_magic_cmd='func_win32_libid'
  5169. else
  5170. # Keep this pattern in sync with the one in func_win32_libid.
  5171. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5172. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5173. fi
  5174. lt_cv_deplibs_check_method=pass_all # SDL customization
  5175. ;;
  5176. cegcc*)
  5177. # use the weaker test based on 'objdump'. See mingw*.
  5178. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5179. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5180. ;;
  5181. darwin* | rhapsody*)
  5182. lt_cv_deplibs_check_method=pass_all
  5183. ;;
  5184. freebsd* | dragonfly* | midnightbsd*)
  5185. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5186. case $host_cpu in
  5187. i*86 )
  5188. # Not sure whether the presence of OpenBSD here was a mistake.
  5189. # Let's accept both of them until this is cleared up.
  5190. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5191. lt_cv_file_magic_cmd=/usr/bin/file
  5192. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5193. ;;
  5194. esac
  5195. else
  5196. lt_cv_deplibs_check_method=pass_all
  5197. fi
  5198. ;;
  5199. haiku*)
  5200. lt_cv_deplibs_check_method=pass_all
  5201. ;;
  5202. hpux10.20* | hpux11*)
  5203. lt_cv_file_magic_cmd=/usr/bin/file
  5204. case $host_cpu in
  5205. ia64*)
  5206. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5207. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5208. ;;
  5209. hppa*64*)
  5210. 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]'
  5211. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5212. ;;
  5213. *)
  5214. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5215. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5216. ;;
  5217. esac
  5218. ;;
  5219. interix[3-9]*)
  5220. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5221. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5222. ;;
  5223. irix5* | irix6* | nonstopux*)
  5224. case $LD in
  5225. *-32|*"-32 ") libmagic=32-bit;;
  5226. *-n32|*"-n32 ") libmagic=N32;;
  5227. *-64|*"-64 ") libmagic=64-bit;;
  5228. *) libmagic=never-match;;
  5229. esac
  5230. lt_cv_deplibs_check_method=pass_all
  5231. ;;
  5232. # This must be glibc/ELF.
  5233. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5234. lt_cv_deplibs_check_method=pass_all
  5235. ;;
  5236. netbsd*)
  5237. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5238. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5239. else
  5240. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5241. fi
  5242. ;;
  5243. newos6*)
  5244. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5245. lt_cv_file_magic_cmd=/usr/bin/file
  5246. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5247. ;;
  5248. *nto* | *qnx*)
  5249. lt_cv_deplibs_check_method=pass_all
  5250. ;;
  5251. openbsd* | bitrig*)
  5252. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5253. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5254. else
  5255. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5256. fi
  5257. ;;
  5258. osf3* | osf4* | osf5*)
  5259. lt_cv_deplibs_check_method=pass_all
  5260. ;;
  5261. rdos*)
  5262. lt_cv_deplibs_check_method=pass_all
  5263. ;;
  5264. solaris*)
  5265. lt_cv_deplibs_check_method=pass_all
  5266. ;;
  5267. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5268. lt_cv_deplibs_check_method=pass_all
  5269. ;;
  5270. sysv4 | sysv4.3*)
  5271. case $host_vendor in
  5272. motorola)
  5273. 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]'
  5274. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5275. ;;
  5276. ncr)
  5277. lt_cv_deplibs_check_method=pass_all
  5278. ;;
  5279. sequent)
  5280. lt_cv_file_magic_cmd='/bin/file'
  5281. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5282. ;;
  5283. sni)
  5284. lt_cv_file_magic_cmd='/bin/file'
  5285. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5286. lt_cv_file_magic_test_file=/lib/libc.so
  5287. ;;
  5288. siemens)
  5289. lt_cv_deplibs_check_method=pass_all
  5290. ;;
  5291. pc)
  5292. lt_cv_deplibs_check_method=pass_all
  5293. ;;
  5294. esac
  5295. ;;
  5296. tpf*)
  5297. lt_cv_deplibs_check_method=pass_all
  5298. ;;
  5299. os2*)
  5300. lt_cv_deplibs_check_method=pass_all
  5301. ;;
  5302. esac
  5303. fi
  5304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5305. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5306. file_magic_glob=
  5307. want_nocaseglob=no
  5308. if test "$build" = "$host"; then
  5309. case $host_os in
  5310. mingw* | pw32*)
  5311. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5312. want_nocaseglob=yes
  5313. else
  5314. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5315. fi
  5316. ;;
  5317. esac
  5318. fi
  5319. file_magic_cmd=$lt_cv_file_magic_cmd
  5320. deplibs_check_method=$lt_cv_deplibs_check_method
  5321. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5322. if test -n "$ac_tool_prefix"; then
  5323. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5324. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5326. printf %s "checking for $ac_word... " >&6; }
  5327. if test ${ac_cv_prog_DLLTOOL+y}
  5328. then :
  5329. printf %s "(cached) " >&6
  5330. else $as_nop
  5331. if test -n "$DLLTOOL"; then
  5332. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5333. else
  5334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5335. for as_dir in $PATH
  5336. do
  5337. IFS=$as_save_IFS
  5338. case $as_dir in #(((
  5339. '') as_dir=./ ;;
  5340. */) ;;
  5341. *) as_dir=$as_dir/ ;;
  5342. esac
  5343. for ac_exec_ext in '' $ac_executable_extensions; do
  5344. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5345. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5346. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5347. break 2
  5348. fi
  5349. done
  5350. done
  5351. IFS=$as_save_IFS
  5352. fi
  5353. fi
  5354. DLLTOOL=$ac_cv_prog_DLLTOOL
  5355. if test -n "$DLLTOOL"; then
  5356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5357. printf "%s\n" "$DLLTOOL" >&6; }
  5358. else
  5359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5360. printf "%s\n" "no" >&6; }
  5361. fi
  5362. fi
  5363. if test -z "$ac_cv_prog_DLLTOOL"; then
  5364. ac_ct_DLLTOOL=$DLLTOOL
  5365. # Extract the first word of "dlltool", so it can be a program name with args.
  5366. set dummy dlltool; ac_word=$2
  5367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5368. printf %s "checking for $ac_word... " >&6; }
  5369. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5370. then :
  5371. printf %s "(cached) " >&6
  5372. else $as_nop
  5373. if test -n "$ac_ct_DLLTOOL"; then
  5374. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5375. else
  5376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5377. for as_dir in $PATH
  5378. do
  5379. IFS=$as_save_IFS
  5380. case $as_dir in #(((
  5381. '') as_dir=./ ;;
  5382. */) ;;
  5383. *) as_dir=$as_dir/ ;;
  5384. esac
  5385. for ac_exec_ext in '' $ac_executable_extensions; do
  5386. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5387. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5388. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5389. break 2
  5390. fi
  5391. done
  5392. done
  5393. IFS=$as_save_IFS
  5394. fi
  5395. fi
  5396. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5397. if test -n "$ac_ct_DLLTOOL"; then
  5398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5399. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5400. else
  5401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5402. printf "%s\n" "no" >&6; }
  5403. fi
  5404. if test "x$ac_ct_DLLTOOL" = x; then
  5405. DLLTOOL="false"
  5406. else
  5407. case $cross_compiling:$ac_tool_warned in
  5408. yes:)
  5409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5410. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5411. ac_tool_warned=yes ;;
  5412. esac
  5413. DLLTOOL=$ac_ct_DLLTOOL
  5414. fi
  5415. else
  5416. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5417. fi
  5418. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5420. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5421. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5422. then :
  5423. printf %s "(cached) " >&6
  5424. else $as_nop
  5425. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5426. case $host_os in
  5427. cygwin* | mingw* | pw32* | cegcc*)
  5428. # two different shell functions defined in ltmain.sh;
  5429. # decide which one to use based on capabilities of $DLLTOOL
  5430. case `$DLLTOOL --help 2>&1` in
  5431. *--identify-strict*)
  5432. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5433. ;;
  5434. *)
  5435. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5436. ;;
  5437. esac
  5438. ;;
  5439. *)
  5440. # fallback: assume linklib IS sharedlib
  5441. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5442. ;;
  5443. esac
  5444. fi
  5445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5446. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5447. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5448. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5449. if test -n "$ac_tool_prefix"; then
  5450. for ac_prog in ar
  5451. do
  5452. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5453. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5455. printf %s "checking for $ac_word... " >&6; }
  5456. if test ${ac_cv_prog_AR+y}
  5457. then :
  5458. printf %s "(cached) " >&6
  5459. else $as_nop
  5460. if test -n "$AR"; then
  5461. ac_cv_prog_AR="$AR" # Let the user override the test.
  5462. else
  5463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5464. for as_dir in $PATH
  5465. do
  5466. IFS=$as_save_IFS
  5467. case $as_dir in #(((
  5468. '') as_dir=./ ;;
  5469. */) ;;
  5470. *) as_dir=$as_dir/ ;;
  5471. esac
  5472. for ac_exec_ext in '' $ac_executable_extensions; do
  5473. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5474. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5475. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5476. break 2
  5477. fi
  5478. done
  5479. done
  5480. IFS=$as_save_IFS
  5481. fi
  5482. fi
  5483. AR=$ac_cv_prog_AR
  5484. if test -n "$AR"; then
  5485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5486. printf "%s\n" "$AR" >&6; }
  5487. else
  5488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5489. printf "%s\n" "no" >&6; }
  5490. fi
  5491. test -n "$AR" && break
  5492. done
  5493. fi
  5494. if test -z "$AR"; then
  5495. ac_ct_AR=$AR
  5496. for ac_prog in ar
  5497. do
  5498. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5499. set dummy $ac_prog; ac_word=$2
  5500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5501. printf %s "checking for $ac_word... " >&6; }
  5502. if test ${ac_cv_prog_ac_ct_AR+y}
  5503. then :
  5504. printf %s "(cached) " >&6
  5505. else $as_nop
  5506. if test -n "$ac_ct_AR"; then
  5507. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5508. else
  5509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5510. for as_dir in $PATH
  5511. do
  5512. IFS=$as_save_IFS
  5513. case $as_dir in #(((
  5514. '') as_dir=./ ;;
  5515. */) ;;
  5516. *) as_dir=$as_dir/ ;;
  5517. esac
  5518. for ac_exec_ext in '' $ac_executable_extensions; do
  5519. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5520. ac_cv_prog_ac_ct_AR="$ac_prog"
  5521. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5522. break 2
  5523. fi
  5524. done
  5525. done
  5526. IFS=$as_save_IFS
  5527. fi
  5528. fi
  5529. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5530. if test -n "$ac_ct_AR"; then
  5531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5532. printf "%s\n" "$ac_ct_AR" >&6; }
  5533. else
  5534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5535. printf "%s\n" "no" >&6; }
  5536. fi
  5537. test -n "$ac_ct_AR" && break
  5538. done
  5539. if test "x$ac_ct_AR" = x; then
  5540. AR="false"
  5541. else
  5542. case $cross_compiling:$ac_tool_warned in
  5543. yes:)
  5544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5545. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5546. ac_tool_warned=yes ;;
  5547. esac
  5548. AR=$ac_ct_AR
  5549. fi
  5550. fi
  5551. : ${AR=ar}
  5552. : ${AR_FLAGS=cru}
  5553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5554. printf %s "checking for archiver @FILE support... " >&6; }
  5555. if test ${lt_cv_ar_at_file+y}
  5556. then :
  5557. printf %s "(cached) " >&6
  5558. else $as_nop
  5559. lt_cv_ar_at_file=no
  5560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5561. /* end confdefs.h. */
  5562. int
  5563. main (void)
  5564. {
  5565. ;
  5566. return 0;
  5567. }
  5568. _ACEOF
  5569. if ac_fn_c_try_compile "$LINENO"
  5570. then :
  5571. echo conftest.$ac_objext > conftest.lst
  5572. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5573. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5574. (eval $lt_ar_try) 2>&5
  5575. ac_status=$?
  5576. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5577. test $ac_status = 0; }
  5578. if test 0 -eq "$ac_status"; then
  5579. # Ensure the archiver fails upon bogus file names.
  5580. rm -f conftest.$ac_objext libconftest.a
  5581. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5582. (eval $lt_ar_try) 2>&5
  5583. ac_status=$?
  5584. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5585. test $ac_status = 0; }
  5586. if test 0 -ne "$ac_status"; then
  5587. lt_cv_ar_at_file=@
  5588. fi
  5589. fi
  5590. rm -f conftest.* libconftest.a
  5591. fi
  5592. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5593. fi
  5594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5595. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5596. if test no = "$lt_cv_ar_at_file"; then
  5597. archiver_list_spec=
  5598. else
  5599. archiver_list_spec=$lt_cv_ar_at_file
  5600. fi
  5601. if test -n "$ac_tool_prefix"; then
  5602. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5603. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5605. printf %s "checking for $ac_word... " >&6; }
  5606. if test ${ac_cv_prog_STRIP+y}
  5607. then :
  5608. printf %s "(cached) " >&6
  5609. else $as_nop
  5610. if test -n "$STRIP"; then
  5611. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5612. else
  5613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5614. for as_dir in $PATH
  5615. do
  5616. IFS=$as_save_IFS
  5617. case $as_dir in #(((
  5618. '') as_dir=./ ;;
  5619. */) ;;
  5620. *) as_dir=$as_dir/ ;;
  5621. esac
  5622. for ac_exec_ext in '' $ac_executable_extensions; do
  5623. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5624. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5625. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5626. break 2
  5627. fi
  5628. done
  5629. done
  5630. IFS=$as_save_IFS
  5631. fi
  5632. fi
  5633. STRIP=$ac_cv_prog_STRIP
  5634. if test -n "$STRIP"; then
  5635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5636. printf "%s\n" "$STRIP" >&6; }
  5637. else
  5638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5639. printf "%s\n" "no" >&6; }
  5640. fi
  5641. fi
  5642. if test -z "$ac_cv_prog_STRIP"; then
  5643. ac_ct_STRIP=$STRIP
  5644. # Extract the first word of "strip", so it can be a program name with args.
  5645. set dummy strip; ac_word=$2
  5646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5647. printf %s "checking for $ac_word... " >&6; }
  5648. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5649. then :
  5650. printf %s "(cached) " >&6
  5651. else $as_nop
  5652. if test -n "$ac_ct_STRIP"; then
  5653. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5654. else
  5655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5656. for as_dir in $PATH
  5657. do
  5658. IFS=$as_save_IFS
  5659. case $as_dir in #(((
  5660. '') as_dir=./ ;;
  5661. */) ;;
  5662. *) as_dir=$as_dir/ ;;
  5663. esac
  5664. for ac_exec_ext in '' $ac_executable_extensions; do
  5665. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5666. ac_cv_prog_ac_ct_STRIP="strip"
  5667. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5668. break 2
  5669. fi
  5670. done
  5671. done
  5672. IFS=$as_save_IFS
  5673. fi
  5674. fi
  5675. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5676. if test -n "$ac_ct_STRIP"; then
  5677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5678. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5679. else
  5680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5681. printf "%s\n" "no" >&6; }
  5682. fi
  5683. if test "x$ac_ct_STRIP" = x; then
  5684. STRIP=":"
  5685. else
  5686. case $cross_compiling:$ac_tool_warned in
  5687. yes:)
  5688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5689. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5690. ac_tool_warned=yes ;;
  5691. esac
  5692. STRIP=$ac_ct_STRIP
  5693. fi
  5694. else
  5695. STRIP="$ac_cv_prog_STRIP"
  5696. fi
  5697. test -z "$STRIP" && STRIP=:
  5698. if test -n "$ac_tool_prefix"; then
  5699. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5700. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5702. printf %s "checking for $ac_word... " >&6; }
  5703. if test ${ac_cv_prog_RANLIB+y}
  5704. then :
  5705. printf %s "(cached) " >&6
  5706. else $as_nop
  5707. if test -n "$RANLIB"; then
  5708. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5709. else
  5710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5711. for as_dir in $PATH
  5712. do
  5713. IFS=$as_save_IFS
  5714. case $as_dir in #(((
  5715. '') as_dir=./ ;;
  5716. */) ;;
  5717. *) as_dir=$as_dir/ ;;
  5718. esac
  5719. for ac_exec_ext in '' $ac_executable_extensions; do
  5720. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5721. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5722. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5723. break 2
  5724. fi
  5725. done
  5726. done
  5727. IFS=$as_save_IFS
  5728. fi
  5729. fi
  5730. RANLIB=$ac_cv_prog_RANLIB
  5731. if test -n "$RANLIB"; then
  5732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5733. printf "%s\n" "$RANLIB" >&6; }
  5734. else
  5735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5736. printf "%s\n" "no" >&6; }
  5737. fi
  5738. fi
  5739. if test -z "$ac_cv_prog_RANLIB"; then
  5740. ac_ct_RANLIB=$RANLIB
  5741. # Extract the first word of "ranlib", so it can be a program name with args.
  5742. set dummy ranlib; ac_word=$2
  5743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5744. printf %s "checking for $ac_word... " >&6; }
  5745. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5746. then :
  5747. printf %s "(cached) " >&6
  5748. else $as_nop
  5749. if test -n "$ac_ct_RANLIB"; then
  5750. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5751. else
  5752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5753. for as_dir in $PATH
  5754. do
  5755. IFS=$as_save_IFS
  5756. case $as_dir in #(((
  5757. '') as_dir=./ ;;
  5758. */) ;;
  5759. *) as_dir=$as_dir/ ;;
  5760. esac
  5761. for ac_exec_ext in '' $ac_executable_extensions; do
  5762. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5763. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5764. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5765. break 2
  5766. fi
  5767. done
  5768. done
  5769. IFS=$as_save_IFS
  5770. fi
  5771. fi
  5772. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5773. if test -n "$ac_ct_RANLIB"; then
  5774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5775. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5776. else
  5777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5778. printf "%s\n" "no" >&6; }
  5779. fi
  5780. if test "x$ac_ct_RANLIB" = x; then
  5781. RANLIB=":"
  5782. else
  5783. case $cross_compiling:$ac_tool_warned in
  5784. yes:)
  5785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5786. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5787. ac_tool_warned=yes ;;
  5788. esac
  5789. RANLIB=$ac_ct_RANLIB
  5790. fi
  5791. else
  5792. RANLIB="$ac_cv_prog_RANLIB"
  5793. fi
  5794. test -z "$RANLIB" && RANLIB=:
  5795. # Determine commands to create old-style static archives.
  5796. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5797. old_postinstall_cmds='chmod 644 $oldlib'
  5798. old_postuninstall_cmds=
  5799. if test -n "$RANLIB"; then
  5800. case $host_os in
  5801. bitrig* | openbsd*)
  5802. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5803. ;;
  5804. *)
  5805. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5806. ;;
  5807. esac
  5808. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5809. fi
  5810. case $host_os in
  5811. darwin*)
  5812. lock_old_archive_extraction=yes ;;
  5813. *)
  5814. lock_old_archive_extraction=no ;;
  5815. esac
  5816. for ac_prog in gawk mawk nawk awk
  5817. do
  5818. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5819. set dummy $ac_prog; ac_word=$2
  5820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5821. printf %s "checking for $ac_word... " >&6; }
  5822. if test ${ac_cv_prog_AWK+y}
  5823. then :
  5824. printf %s "(cached) " >&6
  5825. else $as_nop
  5826. if test -n "$AWK"; then
  5827. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5828. else
  5829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5830. for as_dir in $PATH
  5831. do
  5832. IFS=$as_save_IFS
  5833. case $as_dir in #(((
  5834. '') as_dir=./ ;;
  5835. */) ;;
  5836. *) as_dir=$as_dir/ ;;
  5837. esac
  5838. for ac_exec_ext in '' $ac_executable_extensions; do
  5839. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5840. ac_cv_prog_AWK="$ac_prog"
  5841. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5842. break 2
  5843. fi
  5844. done
  5845. done
  5846. IFS=$as_save_IFS
  5847. fi
  5848. fi
  5849. AWK=$ac_cv_prog_AWK
  5850. if test -n "$AWK"; then
  5851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5852. printf "%s\n" "$AWK" >&6; }
  5853. else
  5854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5855. printf "%s\n" "no" >&6; }
  5856. fi
  5857. test -n "$AWK" && break
  5858. done
  5859. # If no C compiler was specified, use CC.
  5860. LTCC=${LTCC-"$CC"}
  5861. # If no C compiler flags were specified, use CFLAGS.
  5862. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5863. # Allow CC to be a program name with arguments.
  5864. compiler=$CC
  5865. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5867. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5868. if test ${lt_cv_sys_global_symbol_pipe+y}
  5869. then :
  5870. printf %s "(cached) " >&6
  5871. else $as_nop
  5872. # These are sane defaults that work on at least a few old systems.
  5873. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5874. # Character class describing NM global symbol codes.
  5875. symcode='[BCDEGRST]'
  5876. # Regexp to match symbols that can be accessed directly from C.
  5877. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5878. # Define system-specific variables.
  5879. case $host_os in
  5880. aix*)
  5881. symcode='[BCDT]'
  5882. ;;
  5883. cygwin* | mingw* | pw32* | cegcc*)
  5884. symcode='[ABCDGISTW]'
  5885. ;;
  5886. hpux*)
  5887. if test ia64 = "$host_cpu"; then
  5888. symcode='[ABCDEGRST]'
  5889. fi
  5890. ;;
  5891. irix* | nonstopux*)
  5892. symcode='[BCDEGRST]'
  5893. ;;
  5894. osf*)
  5895. symcode='[BCDEGQRST]'
  5896. ;;
  5897. solaris*)
  5898. symcode='[BCDRT]'
  5899. ;;
  5900. sco3.2v5*)
  5901. symcode='[DT]'
  5902. ;;
  5903. sysv4.2uw2*)
  5904. symcode='[DT]'
  5905. ;;
  5906. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5907. symcode='[ABDT]'
  5908. ;;
  5909. sysv4)
  5910. symcode='[DFNSTU]'
  5911. ;;
  5912. esac
  5913. # If we're using GNU nm, then use its standard symbol codes.
  5914. case `$NM -V 2>&1` in
  5915. *GNU* | *'with BFD'*)
  5916. symcode='[ABCDGIRSTW]' ;;
  5917. esac
  5918. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5919. # Gets list of data symbols to import.
  5920. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5921. # Adjust the below global symbol transforms to fixup imported variables.
  5922. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5923. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5924. lt_c_name_lib_hook="\
  5925. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5926. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5927. else
  5928. # Disable hooks by default.
  5929. lt_cv_sys_global_symbol_to_import=
  5930. lt_cdecl_hook=
  5931. lt_c_name_hook=
  5932. lt_c_name_lib_hook=
  5933. fi
  5934. # Transform an extracted symbol line into a proper C declaration.
  5935. # Some systems (esp. on ia64) link data and code symbols differently,
  5936. # so use this general approach.
  5937. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5938. $lt_cdecl_hook\
  5939. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5940. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5941. # Transform an extracted symbol line into symbol name and symbol address
  5942. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5943. $lt_c_name_hook\
  5944. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5945. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5946. # Transform an extracted symbol line into symbol name with lib prefix and
  5947. # symbol address.
  5948. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5949. $lt_c_name_lib_hook\
  5950. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5951. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5952. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5953. # Handle CRLF in mingw tool chain
  5954. opt_cr=
  5955. case $build_os in
  5956. mingw*)
  5957. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5958. ;;
  5959. esac
  5960. # Try without a prefix underscore, then with it.
  5961. for ac_symprfx in "" "_"; do
  5962. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5963. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5964. # Write the raw and C identifiers.
  5965. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5966. # Fake it for dumpbin and say T for any non-static function,
  5967. # D for any global variable and I for any imported variable.
  5968. # Also find C++ and __fastcall symbols from MSVC++,
  5969. # which start with @ or ?.
  5970. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5971. " {last_section=section; section=\$ 3};"\
  5972. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5973. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5974. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5975. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5976. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5977. " \$ 0!~/External *\|/{next};"\
  5978. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5979. " {if(hide[section]) next};"\
  5980. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5981. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5982. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5983. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5984. " ' prfx=^$ac_symprfx"
  5985. else
  5986. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5987. fi
  5988. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5989. # Check to see that the pipe works correctly.
  5990. pipe_works=no
  5991. rm -f conftest*
  5992. cat > conftest.$ac_ext <<_LT_EOF
  5993. #ifdef __cplusplus
  5994. extern "C" {
  5995. #endif
  5996. char nm_test_var;
  5997. void nm_test_func(void);
  5998. void nm_test_func(void){}
  5999. #ifdef __cplusplus
  6000. }
  6001. #endif
  6002. int main(){nm_test_var='a';nm_test_func();return(0);}
  6003. _LT_EOF
  6004. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6005. (eval $ac_compile) 2>&5
  6006. ac_status=$?
  6007. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6008. test $ac_status = 0; }; then
  6009. # Now try to grab the symbols.
  6010. nlist=conftest.nm
  6011. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6012. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6013. ac_status=$?
  6014. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6015. test $ac_status = 0; } && test -s "$nlist"; then
  6016. # Try sorting and uniquifying the output.
  6017. if sort "$nlist" | uniq > "$nlist"T; then
  6018. mv -f "$nlist"T "$nlist"
  6019. else
  6020. rm -f "$nlist"T
  6021. fi
  6022. # Make sure that we snagged all the symbols we need.
  6023. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6024. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6025. cat <<_LT_EOF > conftest.$ac_ext
  6026. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6027. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6028. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6029. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6030. # define LT_DLSYM_CONST
  6031. #elif defined __osf__
  6032. /* This system does not cope well with relocations in const data. */
  6033. # define LT_DLSYM_CONST
  6034. #else
  6035. # define LT_DLSYM_CONST const
  6036. #endif
  6037. #ifdef __cplusplus
  6038. extern "C" {
  6039. #endif
  6040. _LT_EOF
  6041. # Now generate the symbol file.
  6042. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6043. cat <<_LT_EOF >> conftest.$ac_ext
  6044. /* The mapping between symbol names and symbols. */
  6045. LT_DLSYM_CONST struct {
  6046. const char *name;
  6047. void *address;
  6048. }
  6049. lt__PROGRAM__LTX_preloaded_symbols[] =
  6050. {
  6051. { "@PROGRAM@", (void *) 0 },
  6052. _LT_EOF
  6053. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6054. cat <<\_LT_EOF >> conftest.$ac_ext
  6055. {0, (void *) 0}
  6056. };
  6057. /* This works around a problem in FreeBSD linker */
  6058. #ifdef FREEBSD_WORKAROUND
  6059. static const void *lt_preloaded_setup() {
  6060. return lt__PROGRAM__LTX_preloaded_symbols;
  6061. }
  6062. #endif
  6063. #ifdef __cplusplus
  6064. }
  6065. #endif
  6066. _LT_EOF
  6067. # Now try linking the two files.
  6068. mv conftest.$ac_objext conftstm.$ac_objext
  6069. lt_globsym_save_LIBS=$LIBS
  6070. lt_globsym_save_CFLAGS=$CFLAGS
  6071. LIBS=conftstm.$ac_objext
  6072. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6073. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6074. (eval $ac_link) 2>&5
  6075. ac_status=$?
  6076. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6077. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6078. pipe_works=yes
  6079. fi
  6080. LIBS=$lt_globsym_save_LIBS
  6081. CFLAGS=$lt_globsym_save_CFLAGS
  6082. else
  6083. echo "cannot find nm_test_func in $nlist" >&5
  6084. fi
  6085. else
  6086. echo "cannot find nm_test_var in $nlist" >&5
  6087. fi
  6088. else
  6089. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6090. fi
  6091. else
  6092. echo "$progname: failed program was:" >&5
  6093. cat conftest.$ac_ext >&5
  6094. fi
  6095. rm -rf conftest* conftst*
  6096. # Do not use the global_symbol_pipe unless it works.
  6097. if test yes = "$pipe_works"; then
  6098. break
  6099. else
  6100. lt_cv_sys_global_symbol_pipe=
  6101. fi
  6102. done
  6103. fi
  6104. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6105. lt_cv_sys_global_symbol_to_cdecl=
  6106. fi
  6107. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6109. printf "%s\n" "failed" >&6; }
  6110. else
  6111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6112. printf "%s\n" "ok" >&6; }
  6113. fi
  6114. # Response file support.
  6115. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6116. nm_file_list_spec='@'
  6117. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6118. nm_file_list_spec='@'
  6119. fi
  6120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6121. printf %s "checking for sysroot... " >&6; }
  6122. # Check whether --with-sysroot was given.
  6123. if test ${with_sysroot+y}
  6124. then :
  6125. withval=$with_sysroot;
  6126. else $as_nop
  6127. with_sysroot=no
  6128. fi
  6129. lt_sysroot=
  6130. case $with_sysroot in #(
  6131. yes)
  6132. if test yes = "$GCC"; then
  6133. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6134. fi
  6135. ;; #(
  6136. /*)
  6137. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6138. ;; #(
  6139. no|'')
  6140. ;; #(
  6141. *)
  6142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6143. printf "%s\n" "$with_sysroot" >&6; }
  6144. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6145. ;;
  6146. esac
  6147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6148. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6150. printf %s "checking for a working dd... " >&6; }
  6151. if test ${ac_cv_path_lt_DD+y}
  6152. then :
  6153. printf %s "(cached) " >&6
  6154. else $as_nop
  6155. printf 0123456789abcdef0123456789abcdef >conftest.i
  6156. cat conftest.i conftest.i >conftest2.i
  6157. : ${lt_DD:=$DD}
  6158. if test -z "$lt_DD"; then
  6159. ac_path_lt_DD_found=false
  6160. # Loop through the user's path and test for each of PROGNAME-LIST
  6161. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6162. for as_dir in $PATH
  6163. do
  6164. IFS=$as_save_IFS
  6165. case $as_dir in #(((
  6166. '') as_dir=./ ;;
  6167. */) ;;
  6168. *) as_dir=$as_dir/ ;;
  6169. esac
  6170. for ac_prog in dd
  6171. do
  6172. for ac_exec_ext in '' $ac_executable_extensions; do
  6173. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6174. as_fn_executable_p "$ac_path_lt_DD" || continue
  6175. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6176. cmp -s conftest.i conftest.out \
  6177. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6178. fi
  6179. $ac_path_lt_DD_found && break 3
  6180. done
  6181. done
  6182. done
  6183. IFS=$as_save_IFS
  6184. if test -z "$ac_cv_path_lt_DD"; then
  6185. :
  6186. fi
  6187. else
  6188. ac_cv_path_lt_DD=$lt_DD
  6189. fi
  6190. rm -f conftest.i conftest2.i conftest.out
  6191. fi
  6192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6193. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6195. printf %s "checking how to truncate binary pipes... " >&6; }
  6196. if test ${lt_cv_truncate_bin+y}
  6197. then :
  6198. printf %s "(cached) " >&6
  6199. else $as_nop
  6200. printf 0123456789abcdef0123456789abcdef >conftest.i
  6201. cat conftest.i conftest.i >conftest2.i
  6202. lt_cv_truncate_bin=
  6203. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6204. cmp -s conftest.i conftest.out \
  6205. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6206. fi
  6207. rm -f conftest.i conftest2.i conftest.out
  6208. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6209. fi
  6210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6211. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6212. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6213. func_cc_basename ()
  6214. {
  6215. for cc_temp in $*""; do
  6216. case $cc_temp in
  6217. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6218. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6219. \-*) ;;
  6220. *) break;;
  6221. esac
  6222. done
  6223. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6224. }
  6225. # Check whether --enable-libtool-lock was given.
  6226. if test ${enable_libtool_lock+y}
  6227. then :
  6228. enableval=$enable_libtool_lock;
  6229. fi
  6230. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6231. # Some flags need to be propagated to the compiler or linker for good
  6232. # libtool support.
  6233. case $host in
  6234. ia64-*-hpux*)
  6235. # Find out what ABI is being produced by ac_compile, and set mode
  6236. # options accordingly.
  6237. echo 'int i;' > conftest.$ac_ext
  6238. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6239. (eval $ac_compile) 2>&5
  6240. ac_status=$?
  6241. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6242. test $ac_status = 0; }; then
  6243. case `/usr/bin/file conftest.$ac_objext` in
  6244. *ELF-32*)
  6245. HPUX_IA64_MODE=32
  6246. ;;
  6247. *ELF-64*)
  6248. HPUX_IA64_MODE=64
  6249. ;;
  6250. esac
  6251. fi
  6252. rm -rf conftest*
  6253. ;;
  6254. *-*-irix6*)
  6255. # Find out what ABI is being produced by ac_compile, and set linker
  6256. # options accordingly.
  6257. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6258. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6259. (eval $ac_compile) 2>&5
  6260. ac_status=$?
  6261. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6262. test $ac_status = 0; }; then
  6263. if test yes = "$lt_cv_prog_gnu_ld"; then
  6264. case `/usr/bin/file conftest.$ac_objext` in
  6265. *32-bit*)
  6266. LD="${LD-ld} -melf32bsmip"
  6267. ;;
  6268. *N32*)
  6269. LD="${LD-ld} -melf32bmipn32"
  6270. ;;
  6271. *64-bit*)
  6272. LD="${LD-ld} -melf64bmip"
  6273. ;;
  6274. esac
  6275. else
  6276. case `/usr/bin/file conftest.$ac_objext` in
  6277. *32-bit*)
  6278. LD="${LD-ld} -32"
  6279. ;;
  6280. *N32*)
  6281. LD="${LD-ld} -n32"
  6282. ;;
  6283. *64-bit*)
  6284. LD="${LD-ld} -64"
  6285. ;;
  6286. esac
  6287. fi
  6288. fi
  6289. rm -rf conftest*
  6290. ;;
  6291. mips64*-*linux*)
  6292. # Find out what ABI is being produced by ac_compile, and set linker
  6293. # options accordingly.
  6294. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6295. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6296. (eval $ac_compile) 2>&5
  6297. ac_status=$?
  6298. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6299. test $ac_status = 0; }; then
  6300. emul=elf
  6301. case `/usr/bin/file conftest.$ac_objext` in
  6302. *32-bit*)
  6303. emul="${emul}32"
  6304. ;;
  6305. *64-bit*)
  6306. emul="${emul}64"
  6307. ;;
  6308. esac
  6309. case `/usr/bin/file conftest.$ac_objext` in
  6310. *MSB*)
  6311. emul="${emul}btsmip"
  6312. ;;
  6313. *LSB*)
  6314. emul="${emul}ltsmip"
  6315. ;;
  6316. esac
  6317. case `/usr/bin/file conftest.$ac_objext` in
  6318. *N32*)
  6319. emul="${emul}n32"
  6320. ;;
  6321. esac
  6322. LD="${LD-ld} -m $emul"
  6323. fi
  6324. rm -rf conftest*
  6325. ;;
  6326. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6327. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6328. # Find out what ABI is being produced by ac_compile, and set linker
  6329. # options accordingly. Note that the listed cases only cover the
  6330. # situations where additional linker options are needed (such as when
  6331. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6332. # vice versa); the common cases where no linker options are needed do
  6333. # not appear in the list.
  6334. echo 'int i;' > conftest.$ac_ext
  6335. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6336. (eval $ac_compile) 2>&5
  6337. ac_status=$?
  6338. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6339. test $ac_status = 0; }; then
  6340. case `/usr/bin/file conftest.o` in
  6341. *32-bit*)
  6342. case $host in
  6343. x86_64-*kfreebsd*-gnu)
  6344. LD="${LD-ld} -m elf_i386_fbsd"
  6345. ;;
  6346. x86_64-*linux*)
  6347. case `/usr/bin/file conftest.o` in
  6348. *x86-64*)
  6349. LD="${LD-ld} -m elf32_x86_64"
  6350. ;;
  6351. *)
  6352. LD="${LD-ld} -m elf_i386"
  6353. ;;
  6354. esac
  6355. ;;
  6356. powerpc64le-*linux*)
  6357. LD="${LD-ld} -m elf32lppclinux"
  6358. ;;
  6359. powerpc64-*linux*)
  6360. LD="${LD-ld} -m elf32ppclinux"
  6361. ;;
  6362. s390x-*linux*)
  6363. LD="${LD-ld} -m elf_s390"
  6364. ;;
  6365. sparc64-*linux*)
  6366. LD="${LD-ld} -m elf32_sparc"
  6367. ;;
  6368. esac
  6369. ;;
  6370. *64-bit*)
  6371. case $host in
  6372. x86_64-*kfreebsd*-gnu)
  6373. LD="${LD-ld} -m elf_x86_64_fbsd"
  6374. ;;
  6375. x86_64-*linux*)
  6376. LD="${LD-ld} -m elf_x86_64"
  6377. ;;
  6378. powerpcle-*linux*|powerpc64le-*linux*)
  6379. LD="${LD-ld} -m elf64lppc"
  6380. ;;
  6381. powerpc-*linux*|powerpc64-*linux*)
  6382. LD="${LD-ld} -m elf64ppc"
  6383. ;;
  6384. s390*-*linux*|s390*-*tpf*)
  6385. LD="${LD-ld} -m elf64_s390"
  6386. ;;
  6387. sparc*-*linux*)
  6388. LD="${LD-ld} -m elf64_sparc"
  6389. ;;
  6390. esac
  6391. ;;
  6392. esac
  6393. fi
  6394. rm -rf conftest*
  6395. ;;
  6396. *-*-sco3.2v5*)
  6397. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6398. SAVE_CFLAGS=$CFLAGS
  6399. CFLAGS="$CFLAGS -belf"
  6400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6401. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6402. if test ${lt_cv_cc_needs_belf+y}
  6403. then :
  6404. printf %s "(cached) " >&6
  6405. else $as_nop
  6406. ac_ext=c
  6407. ac_cpp='$CPP $CPPFLAGS'
  6408. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6409. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6410. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6412. /* end confdefs.h. */
  6413. int
  6414. main (void)
  6415. {
  6416. ;
  6417. return 0;
  6418. }
  6419. _ACEOF
  6420. if ac_fn_c_try_link "$LINENO"
  6421. then :
  6422. lt_cv_cc_needs_belf=yes
  6423. else $as_nop
  6424. lt_cv_cc_needs_belf=no
  6425. fi
  6426. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6427. conftest$ac_exeext conftest.$ac_ext
  6428. ac_ext=c
  6429. ac_cpp='$CPP $CPPFLAGS'
  6430. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6431. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6432. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6433. fi
  6434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6435. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6436. if test yes != "$lt_cv_cc_needs_belf"; then
  6437. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6438. CFLAGS=$SAVE_CFLAGS
  6439. fi
  6440. ;;
  6441. *-*solaris*)
  6442. # Find out what ABI is being produced by ac_compile, and set linker
  6443. # options accordingly.
  6444. echo 'int i;' > conftest.$ac_ext
  6445. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6446. (eval $ac_compile) 2>&5
  6447. ac_status=$?
  6448. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6449. test $ac_status = 0; }; then
  6450. case `/usr/bin/file conftest.o` in
  6451. *64-bit*)
  6452. case $lt_cv_prog_gnu_ld in
  6453. yes*)
  6454. case $host in
  6455. i?86-*-solaris*|x86_64-*-solaris*)
  6456. LD="${LD-ld} -m elf_x86_64"
  6457. ;;
  6458. sparc*-*-solaris*)
  6459. LD="${LD-ld} -m elf64_sparc"
  6460. ;;
  6461. esac
  6462. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6463. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6464. LD=${LD-ld}_sol2
  6465. fi
  6466. ;;
  6467. *)
  6468. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6469. LD="${LD-ld} -64"
  6470. fi
  6471. ;;
  6472. esac
  6473. ;;
  6474. esac
  6475. fi
  6476. rm -rf conftest*
  6477. ;;
  6478. esac
  6479. need_locks=$enable_libtool_lock
  6480. if test -n "$ac_tool_prefix"; then
  6481. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6482. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6484. printf %s "checking for $ac_word... " >&6; }
  6485. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6486. then :
  6487. printf %s "(cached) " >&6
  6488. else $as_nop
  6489. if test -n "$MANIFEST_TOOL"; then
  6490. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6491. else
  6492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6493. for as_dir in $PATH
  6494. do
  6495. IFS=$as_save_IFS
  6496. case $as_dir in #(((
  6497. '') as_dir=./ ;;
  6498. */) ;;
  6499. *) as_dir=$as_dir/ ;;
  6500. esac
  6501. for ac_exec_ext in '' $ac_executable_extensions; do
  6502. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6503. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6504. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6505. break 2
  6506. fi
  6507. done
  6508. done
  6509. IFS=$as_save_IFS
  6510. fi
  6511. fi
  6512. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6513. if test -n "$MANIFEST_TOOL"; then
  6514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6515. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6516. else
  6517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6518. printf "%s\n" "no" >&6; }
  6519. fi
  6520. fi
  6521. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6522. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6523. # Extract the first word of "mt", so it can be a program name with args.
  6524. set dummy mt; ac_word=$2
  6525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6526. printf %s "checking for $ac_word... " >&6; }
  6527. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6528. then :
  6529. printf %s "(cached) " >&6
  6530. else $as_nop
  6531. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6532. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6533. else
  6534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6535. for as_dir in $PATH
  6536. do
  6537. IFS=$as_save_IFS
  6538. case $as_dir in #(((
  6539. '') as_dir=./ ;;
  6540. */) ;;
  6541. *) as_dir=$as_dir/ ;;
  6542. esac
  6543. for ac_exec_ext in '' $ac_executable_extensions; do
  6544. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6545. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6546. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6547. break 2
  6548. fi
  6549. done
  6550. done
  6551. IFS=$as_save_IFS
  6552. fi
  6553. fi
  6554. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6555. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6557. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6558. else
  6559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6560. printf "%s\n" "no" >&6; }
  6561. fi
  6562. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6563. MANIFEST_TOOL=":"
  6564. else
  6565. case $cross_compiling:$ac_tool_warned in
  6566. yes:)
  6567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6568. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6569. ac_tool_warned=yes ;;
  6570. esac
  6571. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6572. fi
  6573. else
  6574. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6575. fi
  6576. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6578. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6579. if test ${lt_cv_path_mainfest_tool+y}
  6580. then :
  6581. printf %s "(cached) " >&6
  6582. else $as_nop
  6583. lt_cv_path_mainfest_tool=no
  6584. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6585. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6586. cat conftest.err >&5
  6587. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6588. lt_cv_path_mainfest_tool=yes
  6589. fi
  6590. rm -f conftest*
  6591. fi
  6592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6593. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6594. if test yes != "$lt_cv_path_mainfest_tool"; then
  6595. MANIFEST_TOOL=:
  6596. fi
  6597. case $host_os in
  6598. rhapsody* | darwin*)
  6599. if test -n "$ac_tool_prefix"; then
  6600. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6601. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6603. printf %s "checking for $ac_word... " >&6; }
  6604. if test ${ac_cv_prog_DSYMUTIL+y}
  6605. then :
  6606. printf %s "(cached) " >&6
  6607. else $as_nop
  6608. if test -n "$DSYMUTIL"; then
  6609. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6610. else
  6611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6612. for as_dir in $PATH
  6613. do
  6614. IFS=$as_save_IFS
  6615. case $as_dir in #(((
  6616. '') as_dir=./ ;;
  6617. */) ;;
  6618. *) as_dir=$as_dir/ ;;
  6619. esac
  6620. for ac_exec_ext in '' $ac_executable_extensions; do
  6621. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6622. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6623. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6624. break 2
  6625. fi
  6626. done
  6627. done
  6628. IFS=$as_save_IFS
  6629. fi
  6630. fi
  6631. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6632. if test -n "$DSYMUTIL"; then
  6633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6634. printf "%s\n" "$DSYMUTIL" >&6; }
  6635. else
  6636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6637. printf "%s\n" "no" >&6; }
  6638. fi
  6639. fi
  6640. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6641. ac_ct_DSYMUTIL=$DSYMUTIL
  6642. # Extract the first word of "dsymutil", so it can be a program name with args.
  6643. set dummy dsymutil; ac_word=$2
  6644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6645. printf %s "checking for $ac_word... " >&6; }
  6646. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6647. then :
  6648. printf %s "(cached) " >&6
  6649. else $as_nop
  6650. if test -n "$ac_ct_DSYMUTIL"; then
  6651. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6652. else
  6653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6654. for as_dir in $PATH
  6655. do
  6656. IFS=$as_save_IFS
  6657. case $as_dir in #(((
  6658. '') as_dir=./ ;;
  6659. */) ;;
  6660. *) as_dir=$as_dir/ ;;
  6661. esac
  6662. for ac_exec_ext in '' $ac_executable_extensions; do
  6663. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6664. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6665. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6666. break 2
  6667. fi
  6668. done
  6669. done
  6670. IFS=$as_save_IFS
  6671. fi
  6672. fi
  6673. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6674. if test -n "$ac_ct_DSYMUTIL"; then
  6675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6676. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6677. else
  6678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6679. printf "%s\n" "no" >&6; }
  6680. fi
  6681. if test "x$ac_ct_DSYMUTIL" = x; then
  6682. DSYMUTIL=":"
  6683. else
  6684. case $cross_compiling:$ac_tool_warned in
  6685. yes:)
  6686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6687. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6688. ac_tool_warned=yes ;;
  6689. esac
  6690. DSYMUTIL=$ac_ct_DSYMUTIL
  6691. fi
  6692. else
  6693. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6694. fi
  6695. if test -n "$ac_tool_prefix"; then
  6696. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6697. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6699. printf %s "checking for $ac_word... " >&6; }
  6700. if test ${ac_cv_prog_NMEDIT+y}
  6701. then :
  6702. printf %s "(cached) " >&6
  6703. else $as_nop
  6704. if test -n "$NMEDIT"; then
  6705. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6706. else
  6707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6708. for as_dir in $PATH
  6709. do
  6710. IFS=$as_save_IFS
  6711. case $as_dir in #(((
  6712. '') as_dir=./ ;;
  6713. */) ;;
  6714. *) as_dir=$as_dir/ ;;
  6715. esac
  6716. for ac_exec_ext in '' $ac_executable_extensions; do
  6717. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6718. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6719. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6720. break 2
  6721. fi
  6722. done
  6723. done
  6724. IFS=$as_save_IFS
  6725. fi
  6726. fi
  6727. NMEDIT=$ac_cv_prog_NMEDIT
  6728. if test -n "$NMEDIT"; then
  6729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6730. printf "%s\n" "$NMEDIT" >&6; }
  6731. else
  6732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6733. printf "%s\n" "no" >&6; }
  6734. fi
  6735. fi
  6736. if test -z "$ac_cv_prog_NMEDIT"; then
  6737. ac_ct_NMEDIT=$NMEDIT
  6738. # Extract the first word of "nmedit", so it can be a program name with args.
  6739. set dummy nmedit; ac_word=$2
  6740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6741. printf %s "checking for $ac_word... " >&6; }
  6742. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6743. then :
  6744. printf %s "(cached) " >&6
  6745. else $as_nop
  6746. if test -n "$ac_ct_NMEDIT"; then
  6747. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6748. else
  6749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6750. for as_dir in $PATH
  6751. do
  6752. IFS=$as_save_IFS
  6753. case $as_dir in #(((
  6754. '') as_dir=./ ;;
  6755. */) ;;
  6756. *) as_dir=$as_dir/ ;;
  6757. esac
  6758. for ac_exec_ext in '' $ac_executable_extensions; do
  6759. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6760. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6761. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6762. break 2
  6763. fi
  6764. done
  6765. done
  6766. IFS=$as_save_IFS
  6767. fi
  6768. fi
  6769. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6770. if test -n "$ac_ct_NMEDIT"; then
  6771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6772. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6773. else
  6774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6775. printf "%s\n" "no" >&6; }
  6776. fi
  6777. if test "x$ac_ct_NMEDIT" = x; then
  6778. NMEDIT=":"
  6779. else
  6780. case $cross_compiling:$ac_tool_warned in
  6781. yes:)
  6782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6783. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6784. ac_tool_warned=yes ;;
  6785. esac
  6786. NMEDIT=$ac_ct_NMEDIT
  6787. fi
  6788. else
  6789. NMEDIT="$ac_cv_prog_NMEDIT"
  6790. fi
  6791. if test -n "$ac_tool_prefix"; then
  6792. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6793. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6795. printf %s "checking for $ac_word... " >&6; }
  6796. if test ${ac_cv_prog_LIPO+y}
  6797. then :
  6798. printf %s "(cached) " >&6
  6799. else $as_nop
  6800. if test -n "$LIPO"; then
  6801. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6802. else
  6803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6804. for as_dir in $PATH
  6805. do
  6806. IFS=$as_save_IFS
  6807. case $as_dir in #(((
  6808. '') as_dir=./ ;;
  6809. */) ;;
  6810. *) as_dir=$as_dir/ ;;
  6811. esac
  6812. for ac_exec_ext in '' $ac_executable_extensions; do
  6813. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6814. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6815. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6816. break 2
  6817. fi
  6818. done
  6819. done
  6820. IFS=$as_save_IFS
  6821. fi
  6822. fi
  6823. LIPO=$ac_cv_prog_LIPO
  6824. if test -n "$LIPO"; then
  6825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6826. printf "%s\n" "$LIPO" >&6; }
  6827. else
  6828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6829. printf "%s\n" "no" >&6; }
  6830. fi
  6831. fi
  6832. if test -z "$ac_cv_prog_LIPO"; then
  6833. ac_ct_LIPO=$LIPO
  6834. # Extract the first word of "lipo", so it can be a program name with args.
  6835. set dummy lipo; ac_word=$2
  6836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6837. printf %s "checking for $ac_word... " >&6; }
  6838. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6839. then :
  6840. printf %s "(cached) " >&6
  6841. else $as_nop
  6842. if test -n "$ac_ct_LIPO"; then
  6843. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6844. else
  6845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6846. for as_dir in $PATH
  6847. do
  6848. IFS=$as_save_IFS
  6849. case $as_dir in #(((
  6850. '') as_dir=./ ;;
  6851. */) ;;
  6852. *) as_dir=$as_dir/ ;;
  6853. esac
  6854. for ac_exec_ext in '' $ac_executable_extensions; do
  6855. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6856. ac_cv_prog_ac_ct_LIPO="lipo"
  6857. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6858. break 2
  6859. fi
  6860. done
  6861. done
  6862. IFS=$as_save_IFS
  6863. fi
  6864. fi
  6865. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6866. if test -n "$ac_ct_LIPO"; then
  6867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6868. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6869. else
  6870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6871. printf "%s\n" "no" >&6; }
  6872. fi
  6873. if test "x$ac_ct_LIPO" = x; then
  6874. LIPO=":"
  6875. else
  6876. case $cross_compiling:$ac_tool_warned in
  6877. yes:)
  6878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6879. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6880. ac_tool_warned=yes ;;
  6881. esac
  6882. LIPO=$ac_ct_LIPO
  6883. fi
  6884. else
  6885. LIPO="$ac_cv_prog_LIPO"
  6886. fi
  6887. if test -n "$ac_tool_prefix"; then
  6888. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6889. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6891. printf %s "checking for $ac_word... " >&6; }
  6892. if test ${ac_cv_prog_OTOOL+y}
  6893. then :
  6894. printf %s "(cached) " >&6
  6895. else $as_nop
  6896. if test -n "$OTOOL"; then
  6897. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6898. else
  6899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6900. for as_dir in $PATH
  6901. do
  6902. IFS=$as_save_IFS
  6903. case $as_dir in #(((
  6904. '') as_dir=./ ;;
  6905. */) ;;
  6906. *) as_dir=$as_dir/ ;;
  6907. esac
  6908. for ac_exec_ext in '' $ac_executable_extensions; do
  6909. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6910. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6911. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6912. break 2
  6913. fi
  6914. done
  6915. done
  6916. IFS=$as_save_IFS
  6917. fi
  6918. fi
  6919. OTOOL=$ac_cv_prog_OTOOL
  6920. if test -n "$OTOOL"; then
  6921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6922. printf "%s\n" "$OTOOL" >&6; }
  6923. else
  6924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6925. printf "%s\n" "no" >&6; }
  6926. fi
  6927. fi
  6928. if test -z "$ac_cv_prog_OTOOL"; then
  6929. ac_ct_OTOOL=$OTOOL
  6930. # Extract the first word of "otool", so it can be a program name with args.
  6931. set dummy otool; ac_word=$2
  6932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6933. printf %s "checking for $ac_word... " >&6; }
  6934. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6935. then :
  6936. printf %s "(cached) " >&6
  6937. else $as_nop
  6938. if test -n "$ac_ct_OTOOL"; then
  6939. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6940. else
  6941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6942. for as_dir in $PATH
  6943. do
  6944. IFS=$as_save_IFS
  6945. case $as_dir in #(((
  6946. '') as_dir=./ ;;
  6947. */) ;;
  6948. *) as_dir=$as_dir/ ;;
  6949. esac
  6950. for ac_exec_ext in '' $ac_executable_extensions; do
  6951. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6952. ac_cv_prog_ac_ct_OTOOL="otool"
  6953. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6954. break 2
  6955. fi
  6956. done
  6957. done
  6958. IFS=$as_save_IFS
  6959. fi
  6960. fi
  6961. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6962. if test -n "$ac_ct_OTOOL"; then
  6963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6964. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6965. else
  6966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6967. printf "%s\n" "no" >&6; }
  6968. fi
  6969. if test "x$ac_ct_OTOOL" = x; then
  6970. OTOOL=":"
  6971. else
  6972. case $cross_compiling:$ac_tool_warned in
  6973. yes:)
  6974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6975. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6976. ac_tool_warned=yes ;;
  6977. esac
  6978. OTOOL=$ac_ct_OTOOL
  6979. fi
  6980. else
  6981. OTOOL="$ac_cv_prog_OTOOL"
  6982. fi
  6983. if test -n "$ac_tool_prefix"; then
  6984. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6985. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6987. printf %s "checking for $ac_word... " >&6; }
  6988. if test ${ac_cv_prog_OTOOL64+y}
  6989. then :
  6990. printf %s "(cached) " >&6
  6991. else $as_nop
  6992. if test -n "$OTOOL64"; then
  6993. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6994. else
  6995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6996. for as_dir in $PATH
  6997. do
  6998. IFS=$as_save_IFS
  6999. case $as_dir in #(((
  7000. '') as_dir=./ ;;
  7001. */) ;;
  7002. *) as_dir=$as_dir/ ;;
  7003. esac
  7004. for ac_exec_ext in '' $ac_executable_extensions; do
  7005. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7006. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7007. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7008. break 2
  7009. fi
  7010. done
  7011. done
  7012. IFS=$as_save_IFS
  7013. fi
  7014. fi
  7015. OTOOL64=$ac_cv_prog_OTOOL64
  7016. if test -n "$OTOOL64"; then
  7017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7018. printf "%s\n" "$OTOOL64" >&6; }
  7019. else
  7020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7021. printf "%s\n" "no" >&6; }
  7022. fi
  7023. fi
  7024. if test -z "$ac_cv_prog_OTOOL64"; then
  7025. ac_ct_OTOOL64=$OTOOL64
  7026. # Extract the first word of "otool64", so it can be a program name with args.
  7027. set dummy otool64; ac_word=$2
  7028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7029. printf %s "checking for $ac_word... " >&6; }
  7030. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7031. then :
  7032. printf %s "(cached) " >&6
  7033. else $as_nop
  7034. if test -n "$ac_ct_OTOOL64"; then
  7035. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7036. else
  7037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7038. for as_dir in $PATH
  7039. do
  7040. IFS=$as_save_IFS
  7041. case $as_dir in #(((
  7042. '') as_dir=./ ;;
  7043. */) ;;
  7044. *) as_dir=$as_dir/ ;;
  7045. esac
  7046. for ac_exec_ext in '' $ac_executable_extensions; do
  7047. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7048. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7049. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7050. break 2
  7051. fi
  7052. done
  7053. done
  7054. IFS=$as_save_IFS
  7055. fi
  7056. fi
  7057. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7058. if test -n "$ac_ct_OTOOL64"; then
  7059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7060. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7061. else
  7062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7063. printf "%s\n" "no" >&6; }
  7064. fi
  7065. if test "x$ac_ct_OTOOL64" = x; then
  7066. OTOOL64=":"
  7067. else
  7068. case $cross_compiling:$ac_tool_warned in
  7069. yes:)
  7070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7071. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7072. ac_tool_warned=yes ;;
  7073. esac
  7074. OTOOL64=$ac_ct_OTOOL64
  7075. fi
  7076. else
  7077. OTOOL64="$ac_cv_prog_OTOOL64"
  7078. fi
  7079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7080. printf %s "checking for -single_module linker flag... " >&6; }
  7081. if test ${lt_cv_apple_cc_single_mod+y}
  7082. then :
  7083. printf %s "(cached) " >&6
  7084. else $as_nop
  7085. lt_cv_apple_cc_single_mod=no
  7086. if test -z "$LT_MULTI_MODULE"; then
  7087. # By default we will add the -single_module flag. You can override
  7088. # by either setting the environment variable LT_MULTI_MODULE
  7089. # non-empty at configure time, or by adding -multi_module to the
  7090. # link flags.
  7091. rm -rf libconftest.dylib*
  7092. echo "int foo(void){return 1;}" > conftest.c
  7093. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7094. -dynamiclib -Wl,-single_module conftest.c" >&5
  7095. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7096. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7097. _lt_result=$?
  7098. # If there is a non-empty error log, and "single_module"
  7099. # appears in it, assume the flag caused a linker warning
  7100. if test -s conftest.err && $GREP single_module conftest.err; then
  7101. cat conftest.err >&5
  7102. # Otherwise, if the output was created with a 0 exit code from
  7103. # the compiler, it worked.
  7104. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7105. lt_cv_apple_cc_single_mod=yes
  7106. else
  7107. cat conftest.err >&5
  7108. fi
  7109. rm -rf libconftest.dylib*
  7110. rm -f conftest.*
  7111. fi
  7112. fi
  7113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7114. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7116. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7117. if test ${lt_cv_ld_exported_symbols_list+y}
  7118. then :
  7119. printf %s "(cached) " >&6
  7120. else $as_nop
  7121. lt_cv_ld_exported_symbols_list=no
  7122. save_LDFLAGS=$LDFLAGS
  7123. echo "_main" > conftest.sym
  7124. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7126. /* end confdefs.h. */
  7127. int
  7128. main (void)
  7129. {
  7130. ;
  7131. return 0;
  7132. }
  7133. _ACEOF
  7134. if ac_fn_c_try_link "$LINENO"
  7135. then :
  7136. lt_cv_ld_exported_symbols_list=yes
  7137. else $as_nop
  7138. lt_cv_ld_exported_symbols_list=no
  7139. fi
  7140. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7141. conftest$ac_exeext conftest.$ac_ext
  7142. LDFLAGS=$save_LDFLAGS
  7143. fi
  7144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7145. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7147. printf %s "checking for -force_load linker flag... " >&6; }
  7148. if test ${lt_cv_ld_force_load+y}
  7149. then :
  7150. printf %s "(cached) " >&6
  7151. else $as_nop
  7152. lt_cv_ld_force_load=no
  7153. cat > conftest.c << _LT_EOF
  7154. int forced_loaded() { return 2;}
  7155. _LT_EOF
  7156. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7157. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7158. echo "$AR cru libconftest.a conftest.o" >&5
  7159. $AR cru libconftest.a conftest.o 2>&5
  7160. echo "$RANLIB libconftest.a" >&5
  7161. $RANLIB libconftest.a 2>&5
  7162. cat > conftest.c << _LT_EOF
  7163. int main() { return 0;}
  7164. _LT_EOF
  7165. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7166. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7167. _lt_result=$?
  7168. if test -s conftest.err && $GREP force_load conftest.err; then
  7169. cat conftest.err >&5
  7170. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7171. lt_cv_ld_force_load=yes
  7172. else
  7173. cat conftest.err >&5
  7174. fi
  7175. rm -f conftest.err libconftest.a conftest conftest.c
  7176. rm -rf conftest.dSYM
  7177. fi
  7178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7179. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7180. case $host_os in
  7181. rhapsody* | darwin1.[012])
  7182. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7183. darwin1.*)
  7184. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7185. darwin*)
  7186. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7187. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7188. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7189. *)
  7190. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7191. esac
  7192. ;;
  7193. esac
  7194. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7195. _lt_dar_single_mod='$single_module'
  7196. fi
  7197. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7198. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7199. else
  7200. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7201. fi
  7202. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7203. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7204. else
  7205. _lt_dsymutil=
  7206. fi
  7207. ;;
  7208. esac
  7209. # func_munge_path_list VARIABLE PATH
  7210. # -----------------------------------
  7211. # VARIABLE is name of variable containing _space_ separated list of
  7212. # directories to be munged by the contents of PATH, which is string
  7213. # having a format:
  7214. # "DIR[:DIR]:"
  7215. # string "DIR[ DIR]" will be prepended to VARIABLE
  7216. # ":DIR[:DIR]"
  7217. # string "DIR[ DIR]" will be appended to VARIABLE
  7218. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7219. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7220. # "DIRA[ DIRA]" will be appended to VARIABLE
  7221. # "DIR[:DIR]"
  7222. # VARIABLE will be replaced by "DIR[ DIR]"
  7223. func_munge_path_list ()
  7224. {
  7225. case x$2 in
  7226. x)
  7227. ;;
  7228. *:)
  7229. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7230. ;;
  7231. x:*)
  7232. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7233. ;;
  7234. *::*)
  7235. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7236. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7237. ;;
  7238. *)
  7239. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7240. ;;
  7241. esac
  7242. }
  7243. ac_header= ac_cache=
  7244. for ac_item in $ac_header_c_list
  7245. do
  7246. if test $ac_cache; then
  7247. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7248. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7249. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7250. fi
  7251. ac_header= ac_cache=
  7252. elif test $ac_header; then
  7253. ac_cache=$ac_item
  7254. else
  7255. ac_header=$ac_item
  7256. fi
  7257. done
  7258. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7259. then :
  7260. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7261. fi
  7262. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7263. "
  7264. if test "x$ac_cv_header_dlfcn_h" = xyes
  7265. then :
  7266. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7267. fi
  7268. # Set options
  7269. enable_win32_dll=yes
  7270. case $host in
  7271. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7272. if test -n "$ac_tool_prefix"; then
  7273. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7274. set dummy ${ac_tool_prefix}as; ac_word=$2
  7275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7276. printf %s "checking for $ac_word... " >&6; }
  7277. if test ${ac_cv_prog_AS+y}
  7278. then :
  7279. printf %s "(cached) " >&6
  7280. else $as_nop
  7281. if test -n "$AS"; then
  7282. ac_cv_prog_AS="$AS" # Let the user override the test.
  7283. else
  7284. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7285. for as_dir in $PATH
  7286. do
  7287. IFS=$as_save_IFS
  7288. case $as_dir in #(((
  7289. '') as_dir=./ ;;
  7290. */) ;;
  7291. *) as_dir=$as_dir/ ;;
  7292. esac
  7293. for ac_exec_ext in '' $ac_executable_extensions; do
  7294. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7295. ac_cv_prog_AS="${ac_tool_prefix}as"
  7296. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7297. break 2
  7298. fi
  7299. done
  7300. done
  7301. IFS=$as_save_IFS
  7302. fi
  7303. fi
  7304. AS=$ac_cv_prog_AS
  7305. if test -n "$AS"; then
  7306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7307. printf "%s\n" "$AS" >&6; }
  7308. else
  7309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7310. printf "%s\n" "no" >&6; }
  7311. fi
  7312. fi
  7313. if test -z "$ac_cv_prog_AS"; then
  7314. ac_ct_AS=$AS
  7315. # Extract the first word of "as", so it can be a program name with args.
  7316. set dummy as; ac_word=$2
  7317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7318. printf %s "checking for $ac_word... " >&6; }
  7319. if test ${ac_cv_prog_ac_ct_AS+y}
  7320. then :
  7321. printf %s "(cached) " >&6
  7322. else $as_nop
  7323. if test -n "$ac_ct_AS"; then
  7324. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7325. else
  7326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7327. for as_dir in $PATH
  7328. do
  7329. IFS=$as_save_IFS
  7330. case $as_dir in #(((
  7331. '') as_dir=./ ;;
  7332. */) ;;
  7333. *) as_dir=$as_dir/ ;;
  7334. esac
  7335. for ac_exec_ext in '' $ac_executable_extensions; do
  7336. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7337. ac_cv_prog_ac_ct_AS="as"
  7338. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7339. break 2
  7340. fi
  7341. done
  7342. done
  7343. IFS=$as_save_IFS
  7344. fi
  7345. fi
  7346. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7347. if test -n "$ac_ct_AS"; then
  7348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7349. printf "%s\n" "$ac_ct_AS" >&6; }
  7350. else
  7351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7352. printf "%s\n" "no" >&6; }
  7353. fi
  7354. if test "x$ac_ct_AS" = x; then
  7355. AS="false"
  7356. else
  7357. case $cross_compiling:$ac_tool_warned in
  7358. yes:)
  7359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7360. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7361. ac_tool_warned=yes ;;
  7362. esac
  7363. AS=$ac_ct_AS
  7364. fi
  7365. else
  7366. AS="$ac_cv_prog_AS"
  7367. fi
  7368. if test -n "$ac_tool_prefix"; then
  7369. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7370. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7372. printf %s "checking for $ac_word... " >&6; }
  7373. if test ${ac_cv_prog_DLLTOOL+y}
  7374. then :
  7375. printf %s "(cached) " >&6
  7376. else $as_nop
  7377. if test -n "$DLLTOOL"; then
  7378. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7379. else
  7380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7381. for as_dir in $PATH
  7382. do
  7383. IFS=$as_save_IFS
  7384. case $as_dir in #(((
  7385. '') as_dir=./ ;;
  7386. */) ;;
  7387. *) as_dir=$as_dir/ ;;
  7388. esac
  7389. for ac_exec_ext in '' $ac_executable_extensions; do
  7390. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7391. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7392. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7393. break 2
  7394. fi
  7395. done
  7396. done
  7397. IFS=$as_save_IFS
  7398. fi
  7399. fi
  7400. DLLTOOL=$ac_cv_prog_DLLTOOL
  7401. if test -n "$DLLTOOL"; then
  7402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7403. printf "%s\n" "$DLLTOOL" >&6; }
  7404. else
  7405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7406. printf "%s\n" "no" >&6; }
  7407. fi
  7408. fi
  7409. if test -z "$ac_cv_prog_DLLTOOL"; then
  7410. ac_ct_DLLTOOL=$DLLTOOL
  7411. # Extract the first word of "dlltool", so it can be a program name with args.
  7412. set dummy dlltool; ac_word=$2
  7413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7414. printf %s "checking for $ac_word... " >&6; }
  7415. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7416. then :
  7417. printf %s "(cached) " >&6
  7418. else $as_nop
  7419. if test -n "$ac_ct_DLLTOOL"; then
  7420. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7421. else
  7422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7423. for as_dir in $PATH
  7424. do
  7425. IFS=$as_save_IFS
  7426. case $as_dir in #(((
  7427. '') as_dir=./ ;;
  7428. */) ;;
  7429. *) as_dir=$as_dir/ ;;
  7430. esac
  7431. for ac_exec_ext in '' $ac_executable_extensions; do
  7432. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7433. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7434. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7435. break 2
  7436. fi
  7437. done
  7438. done
  7439. IFS=$as_save_IFS
  7440. fi
  7441. fi
  7442. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7443. if test -n "$ac_ct_DLLTOOL"; then
  7444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7445. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7446. else
  7447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7448. printf "%s\n" "no" >&6; }
  7449. fi
  7450. if test "x$ac_ct_DLLTOOL" = x; then
  7451. DLLTOOL="false"
  7452. else
  7453. case $cross_compiling:$ac_tool_warned in
  7454. yes:)
  7455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7456. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7457. ac_tool_warned=yes ;;
  7458. esac
  7459. DLLTOOL=$ac_ct_DLLTOOL
  7460. fi
  7461. else
  7462. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7463. fi
  7464. if test -n "$ac_tool_prefix"; then
  7465. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7466. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7468. printf %s "checking for $ac_word... " >&6; }
  7469. if test ${ac_cv_prog_OBJDUMP+y}
  7470. then :
  7471. printf %s "(cached) " >&6
  7472. else $as_nop
  7473. if test -n "$OBJDUMP"; then
  7474. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7475. else
  7476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7477. for as_dir in $PATH
  7478. do
  7479. IFS=$as_save_IFS
  7480. case $as_dir in #(((
  7481. '') as_dir=./ ;;
  7482. */) ;;
  7483. *) as_dir=$as_dir/ ;;
  7484. esac
  7485. for ac_exec_ext in '' $ac_executable_extensions; do
  7486. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7487. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7488. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7489. break 2
  7490. fi
  7491. done
  7492. done
  7493. IFS=$as_save_IFS
  7494. fi
  7495. fi
  7496. OBJDUMP=$ac_cv_prog_OBJDUMP
  7497. if test -n "$OBJDUMP"; then
  7498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7499. printf "%s\n" "$OBJDUMP" >&6; }
  7500. else
  7501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7502. printf "%s\n" "no" >&6; }
  7503. fi
  7504. fi
  7505. if test -z "$ac_cv_prog_OBJDUMP"; then
  7506. ac_ct_OBJDUMP=$OBJDUMP
  7507. # Extract the first word of "objdump", so it can be a program name with args.
  7508. set dummy objdump; ac_word=$2
  7509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7510. printf %s "checking for $ac_word... " >&6; }
  7511. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7512. then :
  7513. printf %s "(cached) " >&6
  7514. else $as_nop
  7515. if test -n "$ac_ct_OBJDUMP"; then
  7516. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7517. else
  7518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7519. for as_dir in $PATH
  7520. do
  7521. IFS=$as_save_IFS
  7522. case $as_dir in #(((
  7523. '') as_dir=./ ;;
  7524. */) ;;
  7525. *) as_dir=$as_dir/ ;;
  7526. esac
  7527. for ac_exec_ext in '' $ac_executable_extensions; do
  7528. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7529. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7530. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7531. break 2
  7532. fi
  7533. done
  7534. done
  7535. IFS=$as_save_IFS
  7536. fi
  7537. fi
  7538. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7539. if test -n "$ac_ct_OBJDUMP"; then
  7540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7541. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7542. else
  7543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7544. printf "%s\n" "no" >&6; }
  7545. fi
  7546. if test "x$ac_ct_OBJDUMP" = x; then
  7547. OBJDUMP="false"
  7548. else
  7549. case $cross_compiling:$ac_tool_warned in
  7550. yes:)
  7551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7552. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7553. ac_tool_warned=yes ;;
  7554. esac
  7555. OBJDUMP=$ac_ct_OBJDUMP
  7556. fi
  7557. else
  7558. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7559. fi
  7560. ;;
  7561. esac
  7562. test -z "$AS" && AS=as
  7563. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7564. test -z "$OBJDUMP" && OBJDUMP=objdump
  7565. enable_dlopen=no
  7566. # Check whether --enable-shared was given.
  7567. if test ${enable_shared+y}
  7568. then :
  7569. enableval=$enable_shared; p=${PACKAGE-default}
  7570. case $enableval in
  7571. yes) enable_shared=yes ;;
  7572. no) enable_shared=no ;;
  7573. *)
  7574. enable_shared=no
  7575. # Look at the argument we got. We use all the common list separators.
  7576. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7577. for pkg in $enableval; do
  7578. IFS=$lt_save_ifs
  7579. if test "X$pkg" = "X$p"; then
  7580. enable_shared=yes
  7581. fi
  7582. done
  7583. IFS=$lt_save_ifs
  7584. ;;
  7585. esac
  7586. else $as_nop
  7587. enable_shared=yes
  7588. fi
  7589. # Check whether --enable-static was given.
  7590. if test ${enable_static+y}
  7591. then :
  7592. enableval=$enable_static; p=${PACKAGE-default}
  7593. case $enableval in
  7594. yes) enable_static=yes ;;
  7595. no) enable_static=no ;;
  7596. *)
  7597. enable_static=no
  7598. # Look at the argument we got. We use all the common list separators.
  7599. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7600. for pkg in $enableval; do
  7601. IFS=$lt_save_ifs
  7602. if test "X$pkg" = "X$p"; then
  7603. enable_static=yes
  7604. fi
  7605. done
  7606. IFS=$lt_save_ifs
  7607. ;;
  7608. esac
  7609. else $as_nop
  7610. enable_static=yes
  7611. fi
  7612. # Check whether --with-pic was given.
  7613. if test ${with_pic+y}
  7614. then :
  7615. withval=$with_pic; lt_p=${PACKAGE-default}
  7616. case $withval in
  7617. yes|no) pic_mode=$withval ;;
  7618. *)
  7619. pic_mode=default
  7620. # Look at the argument we got. We use all the common list separators.
  7621. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7622. for lt_pkg in $withval; do
  7623. IFS=$lt_save_ifs
  7624. if test "X$lt_pkg" = "X$lt_p"; then
  7625. pic_mode=yes
  7626. fi
  7627. done
  7628. IFS=$lt_save_ifs
  7629. ;;
  7630. esac
  7631. else $as_nop
  7632. pic_mode=default
  7633. fi
  7634. # Check whether --enable-fast-install was given.
  7635. if test ${enable_fast_install+y}
  7636. then :
  7637. enableval=$enable_fast_install; p=${PACKAGE-default}
  7638. case $enableval in
  7639. yes) enable_fast_install=yes ;;
  7640. no) enable_fast_install=no ;;
  7641. *)
  7642. enable_fast_install=no
  7643. # Look at the argument we got. We use all the common list separators.
  7644. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7645. for pkg in $enableval; do
  7646. IFS=$lt_save_ifs
  7647. if test "X$pkg" = "X$p"; then
  7648. enable_fast_install=yes
  7649. fi
  7650. done
  7651. IFS=$lt_save_ifs
  7652. ;;
  7653. esac
  7654. else $as_nop
  7655. enable_fast_install=yes
  7656. fi
  7657. shared_archive_member_spec=
  7658. case $host,$enable_shared in
  7659. power*-*-aix[5-9]*,yes)
  7660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7661. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7662. # Check whether --with-aix-soname was given.
  7663. if test ${with_aix_soname+y}
  7664. then :
  7665. withval=$with_aix_soname; case $withval in
  7666. aix|svr4|both)
  7667. ;;
  7668. *)
  7669. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7670. ;;
  7671. esac
  7672. lt_cv_with_aix_soname=$with_aix_soname
  7673. else $as_nop
  7674. if test ${lt_cv_with_aix_soname+y}
  7675. then :
  7676. printf %s "(cached) " >&6
  7677. else $as_nop
  7678. lt_cv_with_aix_soname=aix
  7679. fi
  7680. with_aix_soname=$lt_cv_with_aix_soname
  7681. fi
  7682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7683. printf "%s\n" "$with_aix_soname" >&6; }
  7684. if test aix != "$with_aix_soname"; then
  7685. # For the AIX way of multilib, we name the shared archive member
  7686. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7687. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7688. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7689. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7690. if test 64 = "${OBJECT_MODE-32}"; then
  7691. shared_archive_member_spec=shr_64
  7692. else
  7693. shared_archive_member_spec=shr
  7694. fi
  7695. fi
  7696. ;;
  7697. *)
  7698. with_aix_soname=aix
  7699. ;;
  7700. esac
  7701. # This can be used to rebuild libtool when needed
  7702. LIBTOOL_DEPS=$ltmain
  7703. # Always use our own libtool.
  7704. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7705. test -z "$LN_S" && LN_S="ln -s"
  7706. if test -n "${ZSH_VERSION+set}"; then
  7707. setopt NO_GLOB_SUBST
  7708. fi
  7709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7710. printf %s "checking for objdir... " >&6; }
  7711. if test ${lt_cv_objdir+y}
  7712. then :
  7713. printf %s "(cached) " >&6
  7714. else $as_nop
  7715. rm -f .libs 2>/dev/null
  7716. mkdir .libs 2>/dev/null
  7717. if test -d .libs; then
  7718. lt_cv_objdir=.libs
  7719. else
  7720. # MS-DOS does not allow filenames that begin with a dot.
  7721. lt_cv_objdir=_libs
  7722. fi
  7723. rmdir .libs 2>/dev/null
  7724. fi
  7725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7726. printf "%s\n" "$lt_cv_objdir" >&6; }
  7727. objdir=$lt_cv_objdir
  7728. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7729. case $host_os in
  7730. aix3*)
  7731. # AIX sometimes has problems with the GCC collect2 program. For some
  7732. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7733. # vanish in a puff of smoke.
  7734. if test set != "${COLLECT_NAMES+set}"; then
  7735. COLLECT_NAMES=
  7736. export COLLECT_NAMES
  7737. fi
  7738. ;;
  7739. esac
  7740. # Global variables:
  7741. ofile=libtool
  7742. can_build_shared=yes
  7743. # All known linkers require a '.a' archive for static linking (except MSVC,
  7744. # which needs '.lib').
  7745. libext=a
  7746. with_gnu_ld=$lt_cv_prog_gnu_ld
  7747. old_CC=$CC
  7748. old_CFLAGS=$CFLAGS
  7749. # Set sane defaults for various variables
  7750. test -z "$CC" && CC=cc
  7751. test -z "$LTCC" && LTCC=$CC
  7752. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7753. test -z "$LD" && LD=ld
  7754. test -z "$ac_objext" && ac_objext=o
  7755. func_cc_basename $compiler
  7756. cc_basename=$func_cc_basename_result
  7757. # Only perform the check for file, if the check method requires it
  7758. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7759. case $deplibs_check_method in
  7760. file_magic*)
  7761. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7763. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7764. if test ${lt_cv_path_MAGIC_CMD+y}
  7765. then :
  7766. printf %s "(cached) " >&6
  7767. else $as_nop
  7768. case $MAGIC_CMD in
  7769. [\\/*] | ?:[\\/]*)
  7770. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7771. ;;
  7772. *)
  7773. lt_save_MAGIC_CMD=$MAGIC_CMD
  7774. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7775. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7776. for ac_dir in $ac_dummy; do
  7777. IFS=$lt_save_ifs
  7778. test -z "$ac_dir" && ac_dir=.
  7779. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7780. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7781. if test -n "$file_magic_test_file"; then
  7782. case $deplibs_check_method in
  7783. "file_magic "*)
  7784. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7785. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7786. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7787. $EGREP "$file_magic_regex" > /dev/null; then
  7788. :
  7789. else
  7790. cat <<_LT_EOF 1>&2
  7791. *** Warning: the command libtool uses to detect shared libraries,
  7792. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7793. *** The result is that libtool may fail to recognize shared libraries
  7794. *** as such. This will affect the creation of libtool libraries that
  7795. *** depend on shared libraries, but programs linked with such libtool
  7796. *** libraries will work regardless of this problem. Nevertheless, you
  7797. *** may want to report the problem to your system manager and/or to
  7798. *** bug-libtool@gnu.org
  7799. _LT_EOF
  7800. fi ;;
  7801. esac
  7802. fi
  7803. break
  7804. fi
  7805. done
  7806. IFS=$lt_save_ifs
  7807. MAGIC_CMD=$lt_save_MAGIC_CMD
  7808. ;;
  7809. esac
  7810. fi
  7811. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7812. if test -n "$MAGIC_CMD"; then
  7813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7814. printf "%s\n" "$MAGIC_CMD" >&6; }
  7815. else
  7816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7817. printf "%s\n" "no" >&6; }
  7818. fi
  7819. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7820. if test -n "$ac_tool_prefix"; then
  7821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7822. printf %s "checking for file... " >&6; }
  7823. if test ${lt_cv_path_MAGIC_CMD+y}
  7824. then :
  7825. printf %s "(cached) " >&6
  7826. else $as_nop
  7827. case $MAGIC_CMD in
  7828. [\\/*] | ?:[\\/]*)
  7829. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7830. ;;
  7831. *)
  7832. lt_save_MAGIC_CMD=$MAGIC_CMD
  7833. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7834. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7835. for ac_dir in $ac_dummy; do
  7836. IFS=$lt_save_ifs
  7837. test -z "$ac_dir" && ac_dir=.
  7838. if test -f "$ac_dir/file"; then
  7839. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7840. if test -n "$file_magic_test_file"; then
  7841. case $deplibs_check_method in
  7842. "file_magic "*)
  7843. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7844. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7845. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7846. $EGREP "$file_magic_regex" > /dev/null; then
  7847. :
  7848. else
  7849. cat <<_LT_EOF 1>&2
  7850. *** Warning: the command libtool uses to detect shared libraries,
  7851. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7852. *** The result is that libtool may fail to recognize shared libraries
  7853. *** as such. This will affect the creation of libtool libraries that
  7854. *** depend on shared libraries, but programs linked with such libtool
  7855. *** libraries will work regardless of this problem. Nevertheless, you
  7856. *** may want to report the problem to your system manager and/or to
  7857. *** bug-libtool@gnu.org
  7858. _LT_EOF
  7859. fi ;;
  7860. esac
  7861. fi
  7862. break
  7863. fi
  7864. done
  7865. IFS=$lt_save_ifs
  7866. MAGIC_CMD=$lt_save_MAGIC_CMD
  7867. ;;
  7868. esac
  7869. fi
  7870. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7871. if test -n "$MAGIC_CMD"; then
  7872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7873. printf "%s\n" "$MAGIC_CMD" >&6; }
  7874. else
  7875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7876. printf "%s\n" "no" >&6; }
  7877. fi
  7878. else
  7879. MAGIC_CMD=:
  7880. fi
  7881. fi
  7882. fi
  7883. ;;
  7884. esac
  7885. # Use C for the default configuration in the libtool script
  7886. lt_save_CC=$CC
  7887. ac_ext=c
  7888. ac_cpp='$CPP $CPPFLAGS'
  7889. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7890. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7891. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7892. # Source file extension for C test sources.
  7893. ac_ext=c
  7894. # Object file extension for compiled C test sources.
  7895. objext=o
  7896. objext=$objext
  7897. # Code to be used in simple compile tests
  7898. lt_simple_compile_test_code="int some_variable = 0;"
  7899. # Code to be used in simple link tests
  7900. lt_simple_link_test_code='int main(){return(0);}'
  7901. # If no C compiler was specified, use CC.
  7902. LTCC=${LTCC-"$CC"}
  7903. # If no C compiler flags were specified, use CFLAGS.
  7904. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7905. # Allow CC to be a program name with arguments.
  7906. compiler=$CC
  7907. # Save the default compiler, since it gets overwritten when the other
  7908. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7909. compiler_DEFAULT=$CC
  7910. # save warnings/boilerplate of simple test code
  7911. ac_outfile=conftest.$ac_objext
  7912. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7913. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7914. _lt_compiler_boilerplate=`cat conftest.err`
  7915. $RM conftest*
  7916. ac_outfile=conftest.$ac_objext
  7917. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7918. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7919. _lt_linker_boilerplate=`cat conftest.err`
  7920. $RM -r conftest*
  7921. ## CAVEAT EMPTOR:
  7922. ## There is no encapsulation within the following macros, do not change
  7923. ## the running order or otherwise move them around unless you know exactly
  7924. ## what you are doing...
  7925. if test -n "$compiler"; then
  7926. lt_prog_compiler_no_builtin_flag=
  7927. if test yes = "$GCC"; then
  7928. case $cc_basename in
  7929. nvcc*)
  7930. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7931. *)
  7932. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7933. esac
  7934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7935. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7936. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7937. then :
  7938. printf %s "(cached) " >&6
  7939. else $as_nop
  7940. lt_cv_prog_compiler_rtti_exceptions=no
  7941. ac_outfile=conftest.$ac_objext
  7942. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7943. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7944. # Insert the option either (1) after the last *FLAGS variable, or
  7945. # (2) before a word containing "conftest.", or (3) at the end.
  7946. # Note that $ac_compile itself does not contain backslashes and begins
  7947. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7948. # The option is referenced via a variable to avoid confusing sed.
  7949. lt_compile=`echo "$ac_compile" | $SED \
  7950. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7951. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7952. -e 's:$: $lt_compiler_flag:'`
  7953. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7954. (eval "$lt_compile" 2>conftest.err)
  7955. ac_status=$?
  7956. cat conftest.err >&5
  7957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7958. if (exit $ac_status) && test -s "$ac_outfile"; then
  7959. # The compiler can only warn and ignore the option if not recognized
  7960. # So say no if there are warnings other than the usual output.
  7961. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7962. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7963. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7964. lt_cv_prog_compiler_rtti_exceptions=yes
  7965. fi
  7966. fi
  7967. $RM conftest*
  7968. fi
  7969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7970. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7971. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7972. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7973. else
  7974. :
  7975. fi
  7976. fi
  7977. lt_prog_compiler_wl=
  7978. lt_prog_compiler_pic=
  7979. lt_prog_compiler_static=
  7980. if test yes = "$GCC"; then
  7981. lt_prog_compiler_wl='-Wl,'
  7982. lt_prog_compiler_static='-static'
  7983. case $host_os in
  7984. aix*)
  7985. # All AIX code is PIC.
  7986. if test ia64 = "$host_cpu"; then
  7987. # AIX 5 now supports IA64 processor
  7988. lt_prog_compiler_static='-Bstatic'
  7989. fi
  7990. lt_prog_compiler_pic='-fPIC'
  7991. ;;
  7992. amigaos*)
  7993. case $host_cpu in
  7994. powerpc)
  7995. # see comment about AmigaOS4 .so support
  7996. lt_prog_compiler_pic='-fPIC'
  7997. ;;
  7998. m68k)
  7999. # FIXME: we need at least 68020 code to build shared libraries, but
  8000. # adding the '-m68020' flag to GCC prevents building anything better,
  8001. # like '-m68040'.
  8002. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8003. ;;
  8004. esac
  8005. ;;
  8006. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8007. # PIC is the default for these OSes.
  8008. ;;
  8009. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8010. # This hack is so that the source file can tell whether it is being
  8011. # built for inclusion in a dll (and should export symbols for example).
  8012. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8013. # (--disable-auto-import) libraries
  8014. lt_prog_compiler_pic='-DDLL_EXPORT'
  8015. case $host_os in
  8016. os2*)
  8017. lt_prog_compiler_static='$wl-static'
  8018. ;;
  8019. esac
  8020. ;;
  8021. darwin* | rhapsody*)
  8022. # PIC is the default on this platform
  8023. # Common symbols not allowed in MH_DYLIB files
  8024. lt_prog_compiler_pic='-fno-common'
  8025. ;;
  8026. haiku*)
  8027. # PIC is the default for Haiku.
  8028. # The "-static" flag exists, but is broken.
  8029. lt_prog_compiler_static=
  8030. ;;
  8031. hpux*)
  8032. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8033. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8034. # sets the default TLS model and affects inlining.
  8035. case $host_cpu in
  8036. hppa*64*)
  8037. # +Z the default
  8038. ;;
  8039. *)
  8040. lt_prog_compiler_pic='-fPIC'
  8041. ;;
  8042. esac
  8043. ;;
  8044. interix[3-9]*)
  8045. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8046. # Instead, we relocate shared libraries at runtime.
  8047. ;;
  8048. msdosdjgpp*)
  8049. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8050. # on systems that don't support them.
  8051. lt_prog_compiler_can_build_shared=no
  8052. enable_shared=no
  8053. ;;
  8054. *nto* | *qnx*)
  8055. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8056. # it will coredump.
  8057. lt_prog_compiler_pic='-fPIC -shared'
  8058. ;;
  8059. sysv4*MP*)
  8060. if test -d /usr/nec; then
  8061. lt_prog_compiler_pic=-Kconform_pic
  8062. fi
  8063. ;;
  8064. *)
  8065. lt_prog_compiler_pic='-fPIC'
  8066. ;;
  8067. esac
  8068. case $cc_basename in
  8069. nvcc*) # Cuda Compiler Driver 2.2
  8070. lt_prog_compiler_wl='-Xlinker '
  8071. if test -n "$lt_prog_compiler_pic"; then
  8072. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8073. fi
  8074. ;;
  8075. esac
  8076. else
  8077. # PORTME Check for flag to pass linker flags through the system compiler.
  8078. case $host_os in
  8079. aix*)
  8080. lt_prog_compiler_wl='-Wl,'
  8081. if test ia64 = "$host_cpu"; then
  8082. # AIX 5 now supports IA64 processor
  8083. lt_prog_compiler_static='-Bstatic'
  8084. else
  8085. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8086. fi
  8087. ;;
  8088. darwin* | rhapsody*)
  8089. # PIC is the default on this platform
  8090. # Common symbols not allowed in MH_DYLIB files
  8091. lt_prog_compiler_pic='-fno-common'
  8092. case $cc_basename in
  8093. nagfor*)
  8094. # NAG Fortran compiler
  8095. lt_prog_compiler_wl='-Wl,-Wl,,'
  8096. lt_prog_compiler_pic='-PIC'
  8097. lt_prog_compiler_static='-Bstatic'
  8098. ;;
  8099. esac
  8100. ;;
  8101. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8102. # This hack is so that the source file can tell whether it is being
  8103. # built for inclusion in a dll (and should export symbols for example).
  8104. lt_prog_compiler_pic='-DDLL_EXPORT'
  8105. case $host_os in
  8106. os2*)
  8107. lt_prog_compiler_static='$wl-static'
  8108. ;;
  8109. esac
  8110. ;;
  8111. hpux9* | hpux10* | hpux11*)
  8112. lt_prog_compiler_wl='-Wl,'
  8113. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8114. # not for PA HP-UX.
  8115. case $host_cpu in
  8116. hppa*64*|ia64*)
  8117. # +Z the default
  8118. ;;
  8119. *)
  8120. lt_prog_compiler_pic='+Z'
  8121. ;;
  8122. esac
  8123. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8124. lt_prog_compiler_static='$wl-a ${wl}archive'
  8125. ;;
  8126. irix5* | irix6* | nonstopux*)
  8127. lt_prog_compiler_wl='-Wl,'
  8128. # PIC (with -KPIC) is the default.
  8129. lt_prog_compiler_static='-non_shared'
  8130. ;;
  8131. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8132. case $cc_basename in
  8133. # old Intel for x86_64, which still supported -KPIC.
  8134. ecc*)
  8135. lt_prog_compiler_wl='-Wl,'
  8136. lt_prog_compiler_pic='-KPIC'
  8137. lt_prog_compiler_static='-static'
  8138. ;;
  8139. # icc used to be incompatible with GCC.
  8140. # ICC 10 doesn't accept -KPIC any more.
  8141. icc* | ifort*)
  8142. lt_prog_compiler_wl='-Wl,'
  8143. lt_prog_compiler_pic='-fPIC'
  8144. lt_prog_compiler_static='-static'
  8145. ;;
  8146. # Lahey Fortran 8.1.
  8147. lf95*)
  8148. lt_prog_compiler_wl='-Wl,'
  8149. lt_prog_compiler_pic='--shared'
  8150. lt_prog_compiler_static='--static'
  8151. ;;
  8152. nagfor*)
  8153. # NAG Fortran compiler
  8154. lt_prog_compiler_wl='-Wl,-Wl,,'
  8155. lt_prog_compiler_pic='-PIC'
  8156. lt_prog_compiler_static='-Bstatic'
  8157. ;;
  8158. tcc*)
  8159. # Fabrice Bellard et al's Tiny C Compiler
  8160. lt_prog_compiler_wl='-Wl,'
  8161. lt_prog_compiler_pic='-fPIC'
  8162. lt_prog_compiler_static='-static'
  8163. ;;
  8164. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8165. # Portland Group compilers (*not* the Pentium gcc compiler,
  8166. # which looks to be a dead project)
  8167. lt_prog_compiler_wl='-Wl,'
  8168. lt_prog_compiler_pic='-fpic'
  8169. lt_prog_compiler_static='-Bstatic'
  8170. ;;
  8171. ccc*)
  8172. lt_prog_compiler_wl='-Wl,'
  8173. # All Alpha code is PIC.
  8174. lt_prog_compiler_static='-non_shared'
  8175. ;;
  8176. xl* | bgxl* | bgf* | mpixl*)
  8177. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8178. lt_prog_compiler_wl='-Wl,'
  8179. lt_prog_compiler_pic='-qpic'
  8180. lt_prog_compiler_static='-qstaticlink'
  8181. ;;
  8182. *)
  8183. case `$CC -V 2>&1 | sed 5q` in
  8184. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8185. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8186. lt_prog_compiler_pic='-KPIC'
  8187. lt_prog_compiler_static='-Bstatic'
  8188. lt_prog_compiler_wl=''
  8189. ;;
  8190. *Sun\ F* | *Sun*Fortran*)
  8191. lt_prog_compiler_pic='-KPIC'
  8192. lt_prog_compiler_static='-Bstatic'
  8193. lt_prog_compiler_wl='-Qoption ld '
  8194. ;;
  8195. *Sun\ C*)
  8196. # Sun C 5.9
  8197. lt_prog_compiler_pic='-KPIC'
  8198. lt_prog_compiler_static='-Bstatic'
  8199. lt_prog_compiler_wl='-Wl,'
  8200. ;;
  8201. *Intel*\ [CF]*Compiler*)
  8202. lt_prog_compiler_wl='-Wl,'
  8203. lt_prog_compiler_pic='-fPIC'
  8204. lt_prog_compiler_static='-static'
  8205. ;;
  8206. *Portland\ Group*)
  8207. lt_prog_compiler_wl='-Wl,'
  8208. lt_prog_compiler_pic='-fpic'
  8209. lt_prog_compiler_static='-Bstatic'
  8210. ;;
  8211. esac
  8212. ;;
  8213. esac
  8214. ;;
  8215. newsos6)
  8216. lt_prog_compiler_pic='-KPIC'
  8217. lt_prog_compiler_static='-Bstatic'
  8218. ;;
  8219. *nto* | *qnx*)
  8220. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8221. # it will coredump.
  8222. lt_prog_compiler_pic='-fPIC -shared'
  8223. ;;
  8224. osf3* | osf4* | osf5*)
  8225. lt_prog_compiler_wl='-Wl,'
  8226. # All OSF/1 code is PIC.
  8227. lt_prog_compiler_static='-non_shared'
  8228. ;;
  8229. rdos*)
  8230. lt_prog_compiler_static='-non_shared'
  8231. ;;
  8232. solaris*)
  8233. lt_prog_compiler_pic='-KPIC'
  8234. lt_prog_compiler_static='-Bstatic'
  8235. case $cc_basename in
  8236. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8237. lt_prog_compiler_wl='-Qoption ld ';;
  8238. *)
  8239. lt_prog_compiler_wl='-Wl,';;
  8240. esac
  8241. ;;
  8242. sunos4*)
  8243. lt_prog_compiler_wl='-Qoption ld '
  8244. lt_prog_compiler_pic='-PIC'
  8245. lt_prog_compiler_static='-Bstatic'
  8246. ;;
  8247. sysv4 | sysv4.2uw2* | sysv4.3*)
  8248. lt_prog_compiler_wl='-Wl,'
  8249. lt_prog_compiler_pic='-KPIC'
  8250. lt_prog_compiler_static='-Bstatic'
  8251. ;;
  8252. sysv4*MP*)
  8253. if test -d /usr/nec; then
  8254. lt_prog_compiler_pic='-Kconform_pic'
  8255. lt_prog_compiler_static='-Bstatic'
  8256. fi
  8257. ;;
  8258. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8259. lt_prog_compiler_wl='-Wl,'
  8260. lt_prog_compiler_pic='-KPIC'
  8261. lt_prog_compiler_static='-Bstatic'
  8262. ;;
  8263. unicos*)
  8264. lt_prog_compiler_wl='-Wl,'
  8265. lt_prog_compiler_can_build_shared=no
  8266. ;;
  8267. uts4*)
  8268. lt_prog_compiler_pic='-pic'
  8269. lt_prog_compiler_static='-Bstatic'
  8270. ;;
  8271. *)
  8272. lt_prog_compiler_can_build_shared=no
  8273. ;;
  8274. esac
  8275. fi
  8276. case $host_os in
  8277. # For platforms that do not support PIC, -DPIC is meaningless:
  8278. *djgpp*)
  8279. lt_prog_compiler_pic=
  8280. ;;
  8281. *)
  8282. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8283. ;;
  8284. esac
  8285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8286. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8287. if test ${lt_cv_prog_compiler_pic+y}
  8288. then :
  8289. printf %s "(cached) " >&6
  8290. else $as_nop
  8291. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8292. fi
  8293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8294. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8295. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8296. #
  8297. # Check to make sure the PIC flag actually works.
  8298. #
  8299. if test -n "$lt_prog_compiler_pic"; then
  8300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8301. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8302. if test ${lt_cv_prog_compiler_pic_works+y}
  8303. then :
  8304. printf %s "(cached) " >&6
  8305. else $as_nop
  8306. lt_cv_prog_compiler_pic_works=no
  8307. ac_outfile=conftest.$ac_objext
  8308. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8309. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8310. # Insert the option either (1) after the last *FLAGS variable, or
  8311. # (2) before a word containing "conftest.", or (3) at the end.
  8312. # Note that $ac_compile itself does not contain backslashes and begins
  8313. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8314. # The option is referenced via a variable to avoid confusing sed.
  8315. lt_compile=`echo "$ac_compile" | $SED \
  8316. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8317. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8318. -e 's:$: $lt_compiler_flag:'`
  8319. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8320. (eval "$lt_compile" 2>conftest.err)
  8321. ac_status=$?
  8322. cat conftest.err >&5
  8323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8324. if (exit $ac_status) && test -s "$ac_outfile"; then
  8325. # The compiler can only warn and ignore the option if not recognized
  8326. # So say no if there are warnings other than the usual output.
  8327. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8328. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8329. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8330. lt_cv_prog_compiler_pic_works=yes
  8331. fi
  8332. fi
  8333. $RM conftest*
  8334. fi
  8335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8336. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8337. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8338. case $lt_prog_compiler_pic in
  8339. "" | " "*) ;;
  8340. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8341. esac
  8342. else
  8343. lt_prog_compiler_pic=
  8344. lt_prog_compiler_can_build_shared=no
  8345. fi
  8346. fi
  8347. #
  8348. # Check to make sure the static flag actually works.
  8349. #
  8350. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8352. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8353. if test ${lt_cv_prog_compiler_static_works+y}
  8354. then :
  8355. printf %s "(cached) " >&6
  8356. else $as_nop
  8357. lt_cv_prog_compiler_static_works=no
  8358. save_LDFLAGS=$LDFLAGS
  8359. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8360. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8361. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8362. # The linker can only warn and ignore the option if not recognized
  8363. # So say no if there are warnings
  8364. if test -s conftest.err; then
  8365. # Append any errors to the config.log.
  8366. cat conftest.err 1>&5
  8367. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8368. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8369. if diff conftest.exp conftest.er2 >/dev/null; then
  8370. lt_cv_prog_compiler_static_works=yes
  8371. fi
  8372. else
  8373. lt_cv_prog_compiler_static_works=yes
  8374. fi
  8375. fi
  8376. $RM -r conftest*
  8377. LDFLAGS=$save_LDFLAGS
  8378. fi
  8379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8380. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8381. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8382. :
  8383. else
  8384. lt_prog_compiler_static=
  8385. fi
  8386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8387. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8388. if test ${lt_cv_prog_compiler_c_o+y}
  8389. then :
  8390. printf %s "(cached) " >&6
  8391. else $as_nop
  8392. lt_cv_prog_compiler_c_o=no
  8393. $RM -r conftest 2>/dev/null
  8394. mkdir conftest
  8395. cd conftest
  8396. mkdir out
  8397. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8398. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8399. # Insert the option either (1) after the last *FLAGS variable, or
  8400. # (2) before a word containing "conftest.", or (3) at the end.
  8401. # Note that $ac_compile itself does not contain backslashes and begins
  8402. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8403. lt_compile=`echo "$ac_compile" | $SED \
  8404. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8405. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8406. -e 's:$: $lt_compiler_flag:'`
  8407. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8408. (eval "$lt_compile" 2>out/conftest.err)
  8409. ac_status=$?
  8410. cat out/conftest.err >&5
  8411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8412. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8413. then
  8414. # The compiler can only warn and ignore the option if not recognized
  8415. # So say no if there are warnings
  8416. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8417. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8418. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8419. lt_cv_prog_compiler_c_o=yes
  8420. fi
  8421. fi
  8422. chmod u+w . 2>&5
  8423. $RM conftest*
  8424. # SGI C++ compiler will create directory out/ii_files/ for
  8425. # template instantiation
  8426. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8427. $RM out/* && rmdir out
  8428. cd ..
  8429. $RM -r conftest
  8430. $RM conftest*
  8431. fi
  8432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8433. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8435. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8436. if test ${lt_cv_prog_compiler_c_o+y}
  8437. then :
  8438. printf %s "(cached) " >&6
  8439. else $as_nop
  8440. lt_cv_prog_compiler_c_o=no
  8441. $RM -r conftest 2>/dev/null
  8442. mkdir conftest
  8443. cd conftest
  8444. mkdir out
  8445. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8446. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8447. # Insert the option either (1) after the last *FLAGS variable, or
  8448. # (2) before a word containing "conftest.", or (3) at the end.
  8449. # Note that $ac_compile itself does not contain backslashes and begins
  8450. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8451. lt_compile=`echo "$ac_compile" | $SED \
  8452. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8453. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8454. -e 's:$: $lt_compiler_flag:'`
  8455. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8456. (eval "$lt_compile" 2>out/conftest.err)
  8457. ac_status=$?
  8458. cat out/conftest.err >&5
  8459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8460. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8461. then
  8462. # The compiler can only warn and ignore the option if not recognized
  8463. # So say no if there are warnings
  8464. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8465. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8466. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8467. lt_cv_prog_compiler_c_o=yes
  8468. fi
  8469. fi
  8470. chmod u+w . 2>&5
  8471. $RM conftest*
  8472. # SGI C++ compiler will create directory out/ii_files/ for
  8473. # template instantiation
  8474. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8475. $RM out/* && rmdir out
  8476. cd ..
  8477. $RM -r conftest
  8478. $RM conftest*
  8479. fi
  8480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8481. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8482. hard_links=nottested
  8483. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8484. # do not overwrite the value of need_locks provided by the user
  8485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8486. printf %s "checking if we can lock with hard links... " >&6; }
  8487. hard_links=yes
  8488. $RM conftest*
  8489. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8490. touch conftest.a
  8491. ln conftest.a conftest.b 2>&5 || hard_links=no
  8492. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8494. printf "%s\n" "$hard_links" >&6; }
  8495. if test no = "$hard_links"; then
  8496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8497. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8498. need_locks=warn
  8499. fi
  8500. else
  8501. need_locks=no
  8502. fi
  8503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8504. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8505. runpath_var=
  8506. allow_undefined_flag=
  8507. always_export_symbols=no
  8508. archive_cmds=
  8509. archive_expsym_cmds=
  8510. compiler_needs_object=no
  8511. enable_shared_with_static_runtimes=no
  8512. export_dynamic_flag_spec=
  8513. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8514. hardcode_automatic=no
  8515. hardcode_direct=no
  8516. hardcode_direct_absolute=no
  8517. hardcode_libdir_flag_spec=
  8518. hardcode_libdir_separator=
  8519. hardcode_minus_L=no
  8520. hardcode_shlibpath_var=unsupported
  8521. inherit_rpath=no
  8522. link_all_deplibs=unknown
  8523. module_cmds=
  8524. module_expsym_cmds=
  8525. old_archive_from_new_cmds=
  8526. old_archive_from_expsyms_cmds=
  8527. thread_safe_flag_spec=
  8528. whole_archive_flag_spec=
  8529. # include_expsyms should be a list of space-separated symbols to be *always*
  8530. # included in the symbol list
  8531. include_expsyms=
  8532. # exclude_expsyms can be an extended regexp of symbols to exclude
  8533. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8534. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8535. # as well as any symbol that contains 'd'.
  8536. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8537. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8538. # platforms (ab)use it in PIC code, but their linkers get confused if
  8539. # the symbol is explicitly referenced. Since portable code cannot
  8540. # rely on this symbol name, it's probably fine to never include it in
  8541. # preloaded symbol tables.
  8542. # Exclude shared library initialization/finalization symbols.
  8543. extract_expsyms_cmds=
  8544. case $host_os in
  8545. cygwin* | mingw* | pw32* | cegcc*)
  8546. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8547. # When not using gcc, we currently assume that we are using
  8548. # Microsoft Visual C++.
  8549. if test yes != "$GCC"; then
  8550. with_gnu_ld=no
  8551. fi
  8552. ;;
  8553. interix*)
  8554. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8555. with_gnu_ld=yes
  8556. ;;
  8557. openbsd* | bitrig*)
  8558. with_gnu_ld=no
  8559. ;;
  8560. esac
  8561. ld_shlibs=yes
  8562. # On some targets, GNU ld is compatible enough with the native linker
  8563. # that we're better off using the native interface for both.
  8564. lt_use_gnu_ld_interface=no
  8565. if test yes = "$with_gnu_ld"; then
  8566. case $host_os in
  8567. aix*)
  8568. # The AIX port of GNU ld has always aspired to compatibility
  8569. # with the native linker. However, as the warning in the GNU ld
  8570. # block says, versions before 2.19.5* couldn't really create working
  8571. # shared libraries, regardless of the interface used.
  8572. case `$LD -v 2>&1` in
  8573. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8574. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8575. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8576. *)
  8577. lt_use_gnu_ld_interface=yes
  8578. ;;
  8579. esac
  8580. ;;
  8581. *)
  8582. lt_use_gnu_ld_interface=yes
  8583. ;;
  8584. esac
  8585. fi
  8586. if test yes = "$lt_use_gnu_ld_interface"; then
  8587. # If archive_cmds runs LD, not CC, wlarc should be empty
  8588. wlarc='$wl'
  8589. # Set some defaults for GNU ld with shared library support. These
  8590. # are reset later if shared libraries are not supported. Putting them
  8591. # here allows them to be overridden if necessary.
  8592. runpath_var=LD_RUN_PATH
  8593. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8594. export_dynamic_flag_spec='$wl--export-dynamic'
  8595. # ancient GNU ld didn't support --whole-archive et. al.
  8596. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8597. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8598. else
  8599. whole_archive_flag_spec=
  8600. fi
  8601. supports_anon_versioning=no
  8602. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8603. *GNU\ gold*) supports_anon_versioning=yes ;;
  8604. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8605. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8606. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8607. *\ 2.11.*) ;; # other 2.11 versions
  8608. *) supports_anon_versioning=yes ;;
  8609. esac
  8610. # See if GNU ld supports shared libraries.
  8611. case $host_os in
  8612. aix[3-9]*)
  8613. # On AIX/PPC, the GNU linker is very broken
  8614. if test ia64 != "$host_cpu"; then
  8615. ld_shlibs=no
  8616. cat <<_LT_EOF 1>&2
  8617. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8618. *** to be unable to reliably create shared libraries on AIX.
  8619. *** Therefore, libtool is disabling shared libraries support. If you
  8620. *** really care for shared libraries, you may want to install binutils
  8621. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8622. *** You will then need to restart the configuration process.
  8623. _LT_EOF
  8624. fi
  8625. ;;
  8626. amigaos*)
  8627. case $host_cpu in
  8628. powerpc)
  8629. # see comment about AmigaOS4 .so support
  8630. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8631. archive_expsym_cmds=''
  8632. ;;
  8633. m68k)
  8634. 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)'
  8635. hardcode_libdir_flag_spec='-L$libdir'
  8636. hardcode_minus_L=yes
  8637. ;;
  8638. esac
  8639. ;;
  8640. beos*)
  8641. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8642. allow_undefined_flag=unsupported
  8643. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8644. # support --undefined. This deserves some investigation. FIXME
  8645. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8646. else
  8647. ld_shlibs=no
  8648. fi
  8649. ;;
  8650. cygwin* | mingw* | pw32* | cegcc*)
  8651. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8652. # as there is no search path for DLLs.
  8653. hardcode_libdir_flag_spec='-L$libdir'
  8654. export_dynamic_flag_spec='$wl--export-all-symbols'
  8655. allow_undefined_flag=unsupported
  8656. always_export_symbols=no
  8657. enable_shared_with_static_runtimes=yes
  8658. 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'
  8659. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8660. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8661. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8662. # If the export-symbols file already is a .def file, use it as
  8663. # is; otherwise, prepend EXPORTS...
  8664. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8665. cp $export_symbols $output_objdir/$soname.def;
  8666. else
  8667. echo EXPORTS > $output_objdir/$soname.def;
  8668. cat $export_symbols >> $output_objdir/$soname.def;
  8669. fi~
  8670. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8671. else
  8672. ld_shlibs=no
  8673. fi
  8674. ;;
  8675. haiku*)
  8676. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8677. link_all_deplibs=yes
  8678. ;;
  8679. os2*)
  8680. hardcode_libdir_flag_spec='-L$libdir'
  8681. hardcode_minus_L=yes
  8682. allow_undefined_flag=unsupported
  8683. shrext_cmds=.dll
  8684. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8685. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8686. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8687. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8688. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8689. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8690. emximp -o $lib $output_objdir/$libname.def'
  8691. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8692. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8693. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8694. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8695. prefix_cmds="$SED"~
  8696. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8697. prefix_cmds="$prefix_cmds -e 1d";
  8698. fi~
  8699. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8700. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8701. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8702. emximp -o $lib $output_objdir/$libname.def'
  8703. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8704. enable_shared_with_static_runtimes=yes
  8705. file_list_spec='@'
  8706. ;;
  8707. interix[3-9]*)
  8708. hardcode_direct=no
  8709. hardcode_shlibpath_var=no
  8710. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8711. export_dynamic_flag_spec='$wl-E'
  8712. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8713. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8714. # default) and relocated if they conflict, which is a slow very memory
  8715. # consuming and fragmenting process. To avoid this, we pick a random,
  8716. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8717. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8718. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8719. 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'
  8720. ;;
  8721. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8722. tmp_diet=no
  8723. if test linux-dietlibc = "$host_os"; then
  8724. case $cc_basename in
  8725. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8726. esac
  8727. fi
  8728. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8729. && test no = "$tmp_diet"
  8730. then
  8731. tmp_addflag=' $pic_flag'
  8732. tmp_sharedflag='-shared'
  8733. case $cc_basename,$host_cpu in
  8734. pgcc*) # Portland Group C compiler
  8735. 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'
  8736. tmp_addflag=' $pic_flag'
  8737. ;;
  8738. pgf77* | pgf90* | pgf95* | pgfortran*)
  8739. # Portland Group f77 and f90 compilers
  8740. 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'
  8741. tmp_addflag=' $pic_flag -Mnomain' ;;
  8742. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8743. tmp_addflag=' -i_dynamic' ;;
  8744. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8745. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8746. ifc* | ifort*) # Intel Fortran compiler
  8747. tmp_addflag=' -nofor_main' ;;
  8748. lf95*) # Lahey Fortran 8.1
  8749. whole_archive_flag_spec=
  8750. tmp_sharedflag='--shared' ;;
  8751. nagfor*) # NAGFOR 5.3
  8752. tmp_sharedflag='-Wl,-shared' ;;
  8753. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8754. tmp_sharedflag='-qmkshrobj'
  8755. tmp_addflag= ;;
  8756. nvcc*) # Cuda Compiler Driver 2.2
  8757. 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'
  8758. compiler_needs_object=yes
  8759. ;;
  8760. esac
  8761. case `$CC -V 2>&1 | sed 5q` in
  8762. *Sun\ C*) # Sun C 5.9
  8763. 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'
  8764. compiler_needs_object=yes
  8765. tmp_sharedflag='-G' ;;
  8766. *Sun\ F*) # Sun Fortran 8.3
  8767. tmp_sharedflag='-G' ;;
  8768. esac
  8769. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8770. if test yes = "$supports_anon_versioning"; then
  8771. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8772. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8773. echo "local: *; };" >> $output_objdir/$libname.ver~
  8774. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8775. fi
  8776. case $cc_basename in
  8777. tcc*)
  8778. export_dynamic_flag_spec='-rdynamic'
  8779. ;;
  8780. xlf* | bgf* | bgxlf* | mpixlf*)
  8781. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8782. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8783. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8784. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8785. if test yes = "$supports_anon_versioning"; then
  8786. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8787. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8788. echo "local: *; };" >> $output_objdir/$libname.ver~
  8789. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8790. fi
  8791. ;;
  8792. esac
  8793. else
  8794. ld_shlibs=no
  8795. fi
  8796. ;;
  8797. netbsd*)
  8798. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8799. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8800. wlarc=
  8801. else
  8802. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8803. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8804. fi
  8805. ;;
  8806. solaris*)
  8807. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8808. ld_shlibs=no
  8809. cat <<_LT_EOF 1>&2
  8810. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8811. *** create shared libraries on Solaris systems. Therefore, libtool
  8812. *** is disabling shared libraries support. We urge you to upgrade GNU
  8813. *** binutils to release 2.9.1 or newer. Another option is to modify
  8814. *** your PATH or compiler configuration so that the native linker is
  8815. *** used, and then restart.
  8816. _LT_EOF
  8817. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  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. else
  8821. ld_shlibs=no
  8822. fi
  8823. ;;
  8824. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8825. case `$LD -v 2>&1` in
  8826. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8827. ld_shlibs=no
  8828. cat <<_LT_EOF 1>&2
  8829. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8830. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8831. *** is disabling shared libraries support. We urge you to upgrade GNU
  8832. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8833. *** your PATH or compiler configuration so that the native linker is
  8834. *** used, and then restart.
  8835. _LT_EOF
  8836. ;;
  8837. *)
  8838. # For security reasons, it is highly recommended that you always
  8839. # use absolute paths for naming shared libraries, and exclude the
  8840. # DT_RUNPATH tag from executables and libraries. But doing so
  8841. # requires that you compile everything twice, which is a pain.
  8842. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8843. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8844. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8845. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8846. else
  8847. ld_shlibs=no
  8848. fi
  8849. ;;
  8850. esac
  8851. ;;
  8852. sunos4*)
  8853. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8854. wlarc=
  8855. hardcode_direct=yes
  8856. hardcode_shlibpath_var=no
  8857. ;;
  8858. *)
  8859. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8860. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8861. archive_expsym_cmds='$CC -shared $pic_flag $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. if test no = "$ld_shlibs"; then
  8868. runpath_var=
  8869. hardcode_libdir_flag_spec=
  8870. export_dynamic_flag_spec=
  8871. whole_archive_flag_spec=
  8872. fi
  8873. else
  8874. # PORTME fill in a description of your system's linker (not GNU ld)
  8875. case $host_os in
  8876. aix3*)
  8877. allow_undefined_flag=unsupported
  8878. always_export_symbols=yes
  8879. 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'
  8880. # Note: this linker hardcodes the directories in LIBPATH if there
  8881. # are no directories specified by -L.
  8882. hardcode_minus_L=yes
  8883. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8884. # Neither direct hardcoding nor static linking is supported with a
  8885. # broken collect2.
  8886. hardcode_direct=unsupported
  8887. fi
  8888. ;;
  8889. aix[4-9]*)
  8890. if test ia64 = "$host_cpu"; then
  8891. # On IA64, the linker does run time linking by default, so we don't
  8892. # have to do anything special.
  8893. aix_use_runtimelinking=no
  8894. exp_sym_flag='-Bexport'
  8895. no_entry_flag=
  8896. else
  8897. # If we're using GNU nm, then we don't want the "-C" option.
  8898. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8899. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8900. # weak defined symbols like other global defined symbols, whereas
  8901. # GNU nm marks them as "W".
  8902. # While the 'weak' keyword is ignored in the Export File, we need
  8903. # it in the Import File for the 'aix-soname' feature, so we have
  8904. # to replace the "-B" option with "-P" for AIX nm.
  8905. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8906. 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'
  8907. else
  8908. 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'
  8909. fi
  8910. aix_use_runtimelinking=no
  8911. # Test if we are trying to use run time linking or normal
  8912. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8913. # have runtime linking enabled, and use it for executables.
  8914. # For shared libraries, we enable/disable runtime linking
  8915. # depending on the kind of the shared library created -
  8916. # when "with_aix_soname,aix_use_runtimelinking" is:
  8917. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8918. # "aix,yes" lib.so shared, rtl:yes, for executables
  8919. # lib.a static archive
  8920. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8921. # lib.a(lib.so.V) shared, rtl:no, for executables
  8922. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8923. # lib.a(lib.so.V) shared, rtl:no
  8924. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8925. # lib.a static archive
  8926. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8927. for ld_flag in $LDFLAGS; do
  8928. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8929. aix_use_runtimelinking=yes
  8930. break
  8931. fi
  8932. done
  8933. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8934. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8935. # so we don't have lib.a shared libs to link our executables.
  8936. # We have to force runtime linking in this case.
  8937. aix_use_runtimelinking=yes
  8938. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8939. fi
  8940. ;;
  8941. esac
  8942. exp_sym_flag='-bexport'
  8943. no_entry_flag='-bnoentry'
  8944. fi
  8945. # When large executables or shared objects are built, AIX ld can
  8946. # have problems creating the table of contents. If linking a library
  8947. # or program results in "error TOC overflow" add -mminimal-toc to
  8948. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8949. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8950. archive_cmds=''
  8951. hardcode_direct=yes
  8952. hardcode_direct_absolute=yes
  8953. hardcode_libdir_separator=':'
  8954. link_all_deplibs=yes
  8955. file_list_spec='$wl-f,'
  8956. case $with_aix_soname,$aix_use_runtimelinking in
  8957. aix,*) ;; # traditional, no import file
  8958. svr4,* | *,yes) # use import file
  8959. # The Import File defines what to hardcode.
  8960. hardcode_direct=no
  8961. hardcode_direct_absolute=no
  8962. ;;
  8963. esac
  8964. if test yes = "$GCC"; then
  8965. case $host_os in aix4.[012]|aix4.[012].*)
  8966. # We only want to do this on AIX 4.2 and lower, the check
  8967. # below for broken collect2 doesn't work under 4.3+
  8968. collect2name=`$CC -print-prog-name=collect2`
  8969. if test -f "$collect2name" &&
  8970. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8971. then
  8972. # We have reworked collect2
  8973. :
  8974. else
  8975. # We have old collect2
  8976. hardcode_direct=unsupported
  8977. # It fails to find uninstalled libraries when the uninstalled
  8978. # path is not listed in the libpath. Setting hardcode_minus_L
  8979. # to unsupported forces relinking
  8980. hardcode_minus_L=yes
  8981. hardcode_libdir_flag_spec='-L$libdir'
  8982. hardcode_libdir_separator=
  8983. fi
  8984. ;;
  8985. esac
  8986. shared_flag='-shared'
  8987. if test yes = "$aix_use_runtimelinking"; then
  8988. shared_flag="$shared_flag "'$wl-G'
  8989. fi
  8990. # Need to ensure runtime linking is disabled for the traditional
  8991. # shared library, or the linker may eventually find shared libraries
  8992. # /with/ Import File - we do not want to mix them.
  8993. shared_flag_aix='-shared'
  8994. shared_flag_svr4='-shared $wl-G'
  8995. else
  8996. # not using gcc
  8997. if test ia64 = "$host_cpu"; then
  8998. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8999. # chokes on -Wl,-G. The following line is correct:
  9000. shared_flag='-G'
  9001. else
  9002. if test yes = "$aix_use_runtimelinking"; then
  9003. shared_flag='$wl-G'
  9004. else
  9005. shared_flag='$wl-bM:SRE'
  9006. fi
  9007. shared_flag_aix='$wl-bM:SRE'
  9008. shared_flag_svr4='$wl-G'
  9009. fi
  9010. fi
  9011. export_dynamic_flag_spec='$wl-bexpall'
  9012. # It seems that -bexpall does not export symbols beginning with
  9013. # underscore (_), so it is better to generate a list of symbols to export.
  9014. always_export_symbols=yes
  9015. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9016. # Warning - without using the other runtime loading flags (-brtl),
  9017. # -berok will link without error, but may produce a broken library.
  9018. allow_undefined_flag='-berok'
  9019. # Determine the default libpath from the value encoded in an
  9020. # empty executable.
  9021. if test set = "${lt_cv_aix_libpath+set}"; then
  9022. aix_libpath=$lt_cv_aix_libpath
  9023. else
  9024. if test ${lt_cv_aix_libpath_+y}
  9025. then :
  9026. printf %s "(cached) " >&6
  9027. else $as_nop
  9028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9029. /* end confdefs.h. */
  9030. int
  9031. main (void)
  9032. {
  9033. ;
  9034. return 0;
  9035. }
  9036. _ACEOF
  9037. if ac_fn_c_try_link "$LINENO"
  9038. then :
  9039. lt_aix_libpath_sed='
  9040. /Import File Strings/,/^$/ {
  9041. /^0/ {
  9042. s/^0 *\([^ ]*\) *$/\1/
  9043. p
  9044. }
  9045. }'
  9046. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9047. # Check for a 64-bit object if we didn't find anything.
  9048. if test -z "$lt_cv_aix_libpath_"; then
  9049. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9050. fi
  9051. fi
  9052. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9053. conftest$ac_exeext conftest.$ac_ext
  9054. if test -z "$lt_cv_aix_libpath_"; then
  9055. lt_cv_aix_libpath_=/usr/lib:/lib
  9056. fi
  9057. fi
  9058. aix_libpath=$lt_cv_aix_libpath_
  9059. fi
  9060. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9061. 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
  9062. else
  9063. if test ia64 = "$host_cpu"; then
  9064. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9065. allow_undefined_flag="-z nodefs"
  9066. 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"
  9067. else
  9068. # Determine the default libpath from the value encoded in an
  9069. # empty executable.
  9070. if test set = "${lt_cv_aix_libpath+set}"; then
  9071. aix_libpath=$lt_cv_aix_libpath
  9072. else
  9073. if test ${lt_cv_aix_libpath_+y}
  9074. then :
  9075. printf %s "(cached) " >&6
  9076. else $as_nop
  9077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9078. /* end confdefs.h. */
  9079. int
  9080. main (void)
  9081. {
  9082. ;
  9083. return 0;
  9084. }
  9085. _ACEOF
  9086. if ac_fn_c_try_link "$LINENO"
  9087. then :
  9088. lt_aix_libpath_sed='
  9089. /Import File Strings/,/^$/ {
  9090. /^0/ {
  9091. s/^0 *\([^ ]*\) *$/\1/
  9092. p
  9093. }
  9094. }'
  9095. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9096. # Check for a 64-bit object if we didn't find anything.
  9097. if test -z "$lt_cv_aix_libpath_"; then
  9098. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9099. fi
  9100. fi
  9101. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9102. conftest$ac_exeext conftest.$ac_ext
  9103. if test -z "$lt_cv_aix_libpath_"; then
  9104. lt_cv_aix_libpath_=/usr/lib:/lib
  9105. fi
  9106. fi
  9107. aix_libpath=$lt_cv_aix_libpath_
  9108. fi
  9109. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9110. # Warning - without using the other run time loading flags,
  9111. # -berok will link without error, but may produce a broken library.
  9112. no_undefined_flag=' $wl-bernotok'
  9113. allow_undefined_flag=' $wl-berok'
  9114. if test yes = "$with_gnu_ld"; then
  9115. # We only use this code for GNU lds that support --whole-archive.
  9116. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9117. else
  9118. # Exported symbols can be pulled into shared objects from archives
  9119. whole_archive_flag_spec='$convenience'
  9120. fi
  9121. archive_cmds_need_lc=yes
  9122. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9123. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9124. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9125. if test svr4 != "$with_aix_soname"; then
  9126. # This is similar to how AIX traditionally builds its shared libraries.
  9127. 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'
  9128. fi
  9129. if test aix != "$with_aix_soname"; then
  9130. 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'
  9131. else
  9132. # used by -dlpreopen to get the symbols
  9133. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9134. fi
  9135. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9136. fi
  9137. fi
  9138. ;;
  9139. amigaos*)
  9140. case $host_cpu in
  9141. powerpc)
  9142. # see comment about AmigaOS4 .so support
  9143. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9144. archive_expsym_cmds=''
  9145. ;;
  9146. m68k)
  9147. 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)'
  9148. hardcode_libdir_flag_spec='-L$libdir'
  9149. hardcode_minus_L=yes
  9150. ;;
  9151. esac
  9152. ;;
  9153. bsdi[45]*)
  9154. export_dynamic_flag_spec=-rdynamic
  9155. ;;
  9156. cygwin* | mingw* | pw32* | cegcc*)
  9157. # When not using gcc, we currently assume that we are using
  9158. # Microsoft Visual C++.
  9159. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9160. # no search path for DLLs.
  9161. case $cc_basename in
  9162. cl*)
  9163. # Native MSVC
  9164. hardcode_libdir_flag_spec=' '
  9165. allow_undefined_flag=unsupported
  9166. always_export_symbols=yes
  9167. file_list_spec='@'
  9168. # Tell ltmain to make .lib files, not .a files.
  9169. libext=lib
  9170. # Tell ltmain to make .dll files, not .so files.
  9171. shrext_cmds=.dll
  9172. # FIXME: Setting linknames here is a bad hack.
  9173. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9174. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9175. cp "$export_symbols" "$output_objdir/$soname.def";
  9176. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9177. else
  9178. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9179. fi~
  9180. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9181. linknames='
  9182. # The linker will not automatically build a static lib if we build a DLL.
  9183. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9184. enable_shared_with_static_runtimes=yes
  9185. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9186. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9187. # Don't use ranlib
  9188. old_postinstall_cmds='chmod 644 $oldlib'
  9189. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9190. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9191. case $lt_outputfile in
  9192. *.exe|*.EXE) ;;
  9193. *)
  9194. lt_outputfile=$lt_outputfile.exe
  9195. lt_tool_outputfile=$lt_tool_outputfile.exe
  9196. ;;
  9197. esac~
  9198. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9199. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9200. $RM "$lt_outputfile.manifest";
  9201. fi'
  9202. ;;
  9203. *)
  9204. # Assume MSVC wrapper
  9205. hardcode_libdir_flag_spec=' '
  9206. allow_undefined_flag=unsupported
  9207. # Tell ltmain to make .lib files, not .a files.
  9208. libext=lib
  9209. # Tell ltmain to make .dll files, not .so files.
  9210. shrext_cmds=.dll
  9211. # FIXME: Setting linknames here is a bad hack.
  9212. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9213. # The linker will automatically build a .lib file if we build a DLL.
  9214. old_archive_from_new_cmds='true'
  9215. # FIXME: Should let the user specify the lib program.
  9216. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9217. enable_shared_with_static_runtimes=yes
  9218. ;;
  9219. esac
  9220. ;;
  9221. darwin* | rhapsody*)
  9222. archive_cmds_need_lc=no
  9223. hardcode_direct=no
  9224. hardcode_automatic=yes
  9225. hardcode_shlibpath_var=unsupported
  9226. if test yes = "$lt_cv_ld_force_load"; then
  9227. 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\"`'
  9228. else
  9229. whole_archive_flag_spec=''
  9230. fi
  9231. link_all_deplibs=yes
  9232. allow_undefined_flag=$_lt_dar_allow_undefined
  9233. case $cc_basename in
  9234. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9235. *) _lt_dar_can_shared=$GCC ;;
  9236. esac
  9237. if test yes = "$_lt_dar_can_shared"; then
  9238. output_verbose_link_cmd=func_echo_all
  9239. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9240. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9241. 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"
  9242. 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"
  9243. else
  9244. ld_shlibs=no
  9245. fi
  9246. ;;
  9247. dgux*)
  9248. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9249. hardcode_libdir_flag_spec='-L$libdir'
  9250. hardcode_shlibpath_var=no
  9251. ;;
  9252. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9253. # support. Future versions do this automatically, but an explicit c++rt0.o
  9254. # does not break anything, and helps significantly (at the cost of a little
  9255. # extra space).
  9256. freebsd2.2*)
  9257. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9258. hardcode_libdir_flag_spec='-R$libdir'
  9259. hardcode_direct=yes
  9260. hardcode_shlibpath_var=no
  9261. ;;
  9262. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9263. freebsd2.*)
  9264. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9265. hardcode_direct=yes
  9266. hardcode_minus_L=yes
  9267. hardcode_shlibpath_var=no
  9268. ;;
  9269. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9270. freebsd* | dragonfly* | midnightbsd*)
  9271. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9272. hardcode_libdir_flag_spec='-R$libdir'
  9273. hardcode_direct=yes
  9274. hardcode_shlibpath_var=no
  9275. ;;
  9276. hpux9*)
  9277. if test yes = "$GCC"; then
  9278. 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'
  9279. else
  9280. 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'
  9281. fi
  9282. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9283. hardcode_libdir_separator=:
  9284. hardcode_direct=yes
  9285. # hardcode_minus_L: Not really in the search PATH,
  9286. # but as the default location of the library.
  9287. hardcode_minus_L=yes
  9288. export_dynamic_flag_spec='$wl-E'
  9289. ;;
  9290. hpux10*)
  9291. if test yes,no = "$GCC,$with_gnu_ld"; then
  9292. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9293. else
  9294. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9295. fi
  9296. if test no = "$with_gnu_ld"; then
  9297. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9298. hardcode_libdir_separator=:
  9299. hardcode_direct=yes
  9300. hardcode_direct_absolute=yes
  9301. export_dynamic_flag_spec='$wl-E'
  9302. # hardcode_minus_L: Not really in the search PATH,
  9303. # but as the default location of the library.
  9304. hardcode_minus_L=yes
  9305. fi
  9306. ;;
  9307. hpux11*)
  9308. if test yes,no = "$GCC,$with_gnu_ld"; then
  9309. case $host_cpu in
  9310. hppa*64*)
  9311. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9312. ;;
  9313. ia64*)
  9314. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9315. ;;
  9316. *)
  9317. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9318. ;;
  9319. esac
  9320. else
  9321. case $host_cpu in
  9322. hppa*64*)
  9323. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9324. ;;
  9325. ia64*)
  9326. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9327. ;;
  9328. *)
  9329. # Older versions of the 11.00 compiler do not understand -b yet
  9330. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9332. printf %s "checking if $CC understands -b... " >&6; }
  9333. if test ${lt_cv_prog_compiler__b+y}
  9334. then :
  9335. printf %s "(cached) " >&6
  9336. else $as_nop
  9337. lt_cv_prog_compiler__b=no
  9338. save_LDFLAGS=$LDFLAGS
  9339. LDFLAGS="$LDFLAGS -b"
  9340. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9341. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9342. # The linker can only warn and ignore the option if not recognized
  9343. # So say no if there are warnings
  9344. if test -s conftest.err; then
  9345. # Append any errors to the config.log.
  9346. cat conftest.err 1>&5
  9347. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9348. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9349. if diff conftest.exp conftest.er2 >/dev/null; then
  9350. lt_cv_prog_compiler__b=yes
  9351. fi
  9352. else
  9353. lt_cv_prog_compiler__b=yes
  9354. fi
  9355. fi
  9356. $RM -r conftest*
  9357. LDFLAGS=$save_LDFLAGS
  9358. fi
  9359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9360. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9361. if test yes = "$lt_cv_prog_compiler__b"; then
  9362. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9363. else
  9364. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9365. fi
  9366. ;;
  9367. esac
  9368. fi
  9369. if test no = "$with_gnu_ld"; then
  9370. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9371. hardcode_libdir_separator=:
  9372. case $host_cpu in
  9373. hppa*64*|ia64*)
  9374. hardcode_direct=no
  9375. hardcode_shlibpath_var=no
  9376. ;;
  9377. *)
  9378. hardcode_direct=yes
  9379. hardcode_direct_absolute=yes
  9380. export_dynamic_flag_spec='$wl-E'
  9381. # hardcode_minus_L: Not really in the search PATH,
  9382. # but as the default location of the library.
  9383. hardcode_minus_L=yes
  9384. ;;
  9385. esac
  9386. fi
  9387. ;;
  9388. irix5* | irix6* | nonstopux*)
  9389. if test yes = "$GCC"; then
  9390. 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'
  9391. # Try to use the -exported_symbol ld option, if it does not
  9392. # work, assume that -exports_file does not work either and
  9393. # implicitly export all symbols.
  9394. # This should be the same for all languages, so no per-tag cache variable.
  9395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9396. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9397. if test ${lt_cv_irix_exported_symbol+y}
  9398. then :
  9399. printf %s "(cached) " >&6
  9400. else $as_nop
  9401. save_LDFLAGS=$LDFLAGS
  9402. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9404. /* end confdefs.h. */
  9405. int foo (void) { return 0; }
  9406. _ACEOF
  9407. if ac_fn_c_try_link "$LINENO"
  9408. then :
  9409. lt_cv_irix_exported_symbol=yes
  9410. else $as_nop
  9411. lt_cv_irix_exported_symbol=no
  9412. fi
  9413. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9414. conftest$ac_exeext conftest.$ac_ext
  9415. LDFLAGS=$save_LDFLAGS
  9416. fi
  9417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9418. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9419. if test yes = "$lt_cv_irix_exported_symbol"; then
  9420. 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'
  9421. fi
  9422. else
  9423. 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'
  9424. 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'
  9425. fi
  9426. archive_cmds_need_lc='no'
  9427. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9428. hardcode_libdir_separator=:
  9429. inherit_rpath=yes
  9430. link_all_deplibs=yes
  9431. ;;
  9432. linux*)
  9433. case $cc_basename in
  9434. tcc*)
  9435. # Fabrice Bellard et al's Tiny C Compiler
  9436. ld_shlibs=yes
  9437. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9438. ;;
  9439. esac
  9440. ;;
  9441. netbsd*)
  9442. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9443. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9444. else
  9445. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9446. fi
  9447. hardcode_libdir_flag_spec='-R$libdir'
  9448. hardcode_direct=yes
  9449. hardcode_shlibpath_var=no
  9450. ;;
  9451. newsos6)
  9452. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9453. hardcode_direct=yes
  9454. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9455. hardcode_libdir_separator=:
  9456. hardcode_shlibpath_var=no
  9457. ;;
  9458. *nto* | *qnx*)
  9459. ;;
  9460. openbsd* | bitrig*)
  9461. if test -f /usr/libexec/ld.so; then
  9462. hardcode_direct=yes
  9463. hardcode_shlibpath_var=no
  9464. hardcode_direct_absolute=yes
  9465. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9466. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9467. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9468. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9469. export_dynamic_flag_spec='$wl-E'
  9470. else
  9471. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9472. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9473. fi
  9474. else
  9475. ld_shlibs=no
  9476. fi
  9477. ;;
  9478. os2*)
  9479. hardcode_libdir_flag_spec='-L$libdir'
  9480. hardcode_minus_L=yes
  9481. allow_undefined_flag=unsupported
  9482. shrext_cmds=.dll
  9483. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9484. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9485. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9486. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9487. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9488. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9489. emximp -o $lib $output_objdir/$libname.def'
  9490. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9491. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9492. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9493. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9494. prefix_cmds="$SED"~
  9495. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9496. prefix_cmds="$prefix_cmds -e 1d";
  9497. fi~
  9498. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9499. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9500. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9501. emximp -o $lib $output_objdir/$libname.def'
  9502. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9503. enable_shared_with_static_runtimes=yes
  9504. file_list_spec='@'
  9505. ;;
  9506. osf3*)
  9507. if test yes = "$GCC"; then
  9508. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9509. 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'
  9510. else
  9511. allow_undefined_flag=' -expect_unresolved \*'
  9512. 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'
  9513. fi
  9514. archive_cmds_need_lc='no'
  9515. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9516. hardcode_libdir_separator=:
  9517. ;;
  9518. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9519. if test yes = "$GCC"; then
  9520. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9521. 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'
  9522. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9523. else
  9524. allow_undefined_flag=' -expect_unresolved \*'
  9525. 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'
  9526. 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~
  9527. $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'
  9528. # Both c and cxx compiler support -rpath directly
  9529. hardcode_libdir_flag_spec='-rpath $libdir'
  9530. fi
  9531. archive_cmds_need_lc='no'
  9532. hardcode_libdir_separator=:
  9533. ;;
  9534. solaris*)
  9535. no_undefined_flag=' -z defs'
  9536. if test yes = "$GCC"; then
  9537. wlarc='$wl'
  9538. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9539. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9540. $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'
  9541. else
  9542. case `$CC -V 2>&1` in
  9543. *"Compilers 5.0"*)
  9544. wlarc=''
  9545. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9546. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9547. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9548. ;;
  9549. *)
  9550. wlarc='$wl'
  9551. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9552. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9553. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9554. ;;
  9555. esac
  9556. fi
  9557. hardcode_libdir_flag_spec='-R$libdir'
  9558. hardcode_shlibpath_var=no
  9559. case $host_os in
  9560. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9561. *)
  9562. # The compiler driver will combine and reorder linker options,
  9563. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9564. # but is careful enough not to reorder.
  9565. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9566. if test yes = "$GCC"; then
  9567. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9568. else
  9569. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9570. fi
  9571. ;;
  9572. esac
  9573. link_all_deplibs=yes
  9574. ;;
  9575. sunos4*)
  9576. if test sequent = "$host_vendor"; then
  9577. # Use $CC to link under sequent, because it throws in some extra .o
  9578. # files that make .init and .fini sections work.
  9579. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9580. else
  9581. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9582. fi
  9583. hardcode_libdir_flag_spec='-L$libdir'
  9584. hardcode_direct=yes
  9585. hardcode_minus_L=yes
  9586. hardcode_shlibpath_var=no
  9587. ;;
  9588. sysv4)
  9589. case $host_vendor in
  9590. sni)
  9591. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9592. hardcode_direct=yes # is this really true???
  9593. ;;
  9594. siemens)
  9595. ## LD is ld it makes a PLAMLIB
  9596. ## CC just makes a GrossModule.
  9597. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9598. reload_cmds='$CC -r -o $output$reload_objs'
  9599. hardcode_direct=no
  9600. ;;
  9601. motorola)
  9602. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9603. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9604. ;;
  9605. esac
  9606. runpath_var='LD_RUN_PATH'
  9607. hardcode_shlibpath_var=no
  9608. ;;
  9609. sysv4.3*)
  9610. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9611. hardcode_shlibpath_var=no
  9612. export_dynamic_flag_spec='-Bexport'
  9613. ;;
  9614. sysv4*MP*)
  9615. if test -d /usr/nec; then
  9616. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9617. hardcode_shlibpath_var=no
  9618. runpath_var=LD_RUN_PATH
  9619. hardcode_runpath_var=yes
  9620. ld_shlibs=yes
  9621. fi
  9622. ;;
  9623. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9624. no_undefined_flag='$wl-z,text'
  9625. archive_cmds_need_lc=no
  9626. hardcode_shlibpath_var=no
  9627. runpath_var='LD_RUN_PATH'
  9628. if test yes = "$GCC"; then
  9629. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9630. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9631. else
  9632. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9633. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9634. fi
  9635. ;;
  9636. sysv5* | sco3.2v5* | sco5v6*)
  9637. # Note: We CANNOT use -z defs as we might desire, because we do not
  9638. # link with -lc, and that would cause any symbols used from libc to
  9639. # always be unresolved, which means just about no library would
  9640. # ever link correctly. If we're not using GNU ld we use -z text
  9641. # though, which does catch some bad symbols but isn't as heavy-handed
  9642. # as -z defs.
  9643. no_undefined_flag='$wl-z,text'
  9644. allow_undefined_flag='$wl-z,nodefs'
  9645. archive_cmds_need_lc=no
  9646. hardcode_shlibpath_var=no
  9647. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9648. hardcode_libdir_separator=':'
  9649. link_all_deplibs=yes
  9650. export_dynamic_flag_spec='$wl-Bexport'
  9651. runpath_var='LD_RUN_PATH'
  9652. if test yes = "$GCC"; then
  9653. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9654. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9655. else
  9656. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9657. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9658. fi
  9659. ;;
  9660. uts4*)
  9661. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9662. hardcode_libdir_flag_spec='-L$libdir'
  9663. hardcode_shlibpath_var=no
  9664. ;;
  9665. *)
  9666. ld_shlibs=no
  9667. ;;
  9668. esac
  9669. if test sni = "$host_vendor"; then
  9670. case $host in
  9671. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9672. export_dynamic_flag_spec='$wl-Blargedynsym'
  9673. ;;
  9674. esac
  9675. fi
  9676. fi
  9677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9678. printf "%s\n" "$ld_shlibs" >&6; }
  9679. test no = "$ld_shlibs" && can_build_shared=no
  9680. with_gnu_ld=$with_gnu_ld
  9681. #
  9682. # Do we need to explicitly link libc?
  9683. #
  9684. case "x$archive_cmds_need_lc" in
  9685. x|xyes)
  9686. # Assume -lc should be added
  9687. archive_cmds_need_lc=yes
  9688. if test yes,yes = "$GCC,$enable_shared"; then
  9689. case $archive_cmds in
  9690. *'~'*)
  9691. # FIXME: we may have to deal with multi-command sequences.
  9692. ;;
  9693. '$CC '*)
  9694. # Test whether the compiler implicitly links with -lc since on some
  9695. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9696. # to ld, don't add -lc before -lgcc.
  9697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9698. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9699. if test ${lt_cv_archive_cmds_need_lc+y}
  9700. then :
  9701. printf %s "(cached) " >&6
  9702. else $as_nop
  9703. $RM conftest*
  9704. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9705. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9706. (eval $ac_compile) 2>&5
  9707. ac_status=$?
  9708. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9709. test $ac_status = 0; } 2>conftest.err; then
  9710. soname=conftest
  9711. lib=conftest
  9712. libobjs=conftest.$ac_objext
  9713. deplibs=
  9714. wl=$lt_prog_compiler_wl
  9715. pic_flag=$lt_prog_compiler_pic
  9716. compiler_flags=-v
  9717. linker_flags=-v
  9718. verstring=
  9719. output_objdir=.
  9720. libname=conftest
  9721. lt_save_allow_undefined_flag=$allow_undefined_flag
  9722. allow_undefined_flag=
  9723. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9724. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9725. ac_status=$?
  9726. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9727. test $ac_status = 0; }
  9728. then
  9729. lt_cv_archive_cmds_need_lc=no
  9730. else
  9731. lt_cv_archive_cmds_need_lc=yes
  9732. fi
  9733. allow_undefined_flag=$lt_save_allow_undefined_flag
  9734. else
  9735. cat conftest.err 1>&5
  9736. fi
  9737. $RM conftest*
  9738. fi
  9739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9740. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9741. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9742. ;;
  9743. esac
  9744. fi
  9745. ;;
  9746. esac
  9747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9748. printf %s "checking dynamic linker characteristics... " >&6; }
  9749. if test yes = "$GCC"; then
  9750. case $host_os in
  9751. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9752. *) lt_awk_arg='/^libraries:/' ;;
  9753. esac
  9754. case $host_os in
  9755. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9756. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9757. esac
  9758. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9759. case $lt_search_path_spec in
  9760. *\;*)
  9761. # if the path contains ";" then we assume it to be the separator
  9762. # otherwise default to the standard path separator (i.e. ":") - it is
  9763. # assumed that no part of a normal pathname contains ";" but that should
  9764. # okay in the real world where ";" in dirpaths is itself problematic.
  9765. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9766. ;;
  9767. *)
  9768. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9769. ;;
  9770. esac
  9771. # Ok, now we have the path, separated by spaces, we can step through it
  9772. # and add multilib dir if necessary...
  9773. lt_tmp_lt_search_path_spec=
  9774. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9775. # ...but if some path component already ends with the multilib dir we assume
  9776. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9777. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9778. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9779. lt_multi_os_dir=
  9780. ;;
  9781. esac
  9782. for lt_sys_path in $lt_search_path_spec; do
  9783. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9784. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9785. elif test -n "$lt_multi_os_dir"; then
  9786. test -d "$lt_sys_path" && \
  9787. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9788. fi
  9789. done
  9790. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9791. BEGIN {RS = " "; FS = "/|\n";} {
  9792. lt_foo = "";
  9793. lt_count = 0;
  9794. for (lt_i = NF; lt_i > 0; lt_i--) {
  9795. if ($lt_i != "" && $lt_i != ".") {
  9796. if ($lt_i == "..") {
  9797. lt_count++;
  9798. } else {
  9799. if (lt_count == 0) {
  9800. lt_foo = "/" $lt_i lt_foo;
  9801. } else {
  9802. lt_count--;
  9803. }
  9804. }
  9805. }
  9806. }
  9807. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9808. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9809. }'`
  9810. # AWK program above erroneously prepends '/' to C:/dos/paths
  9811. # for these hosts.
  9812. case $host_os in
  9813. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9814. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9815. esac
  9816. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9817. else
  9818. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9819. fi
  9820. library_names_spec=
  9821. libname_spec='lib$name'
  9822. soname_spec=
  9823. shrext_cmds=.so
  9824. postinstall_cmds=
  9825. postuninstall_cmds=
  9826. finish_cmds=
  9827. finish_eval=
  9828. shlibpath_var=
  9829. shlibpath_overrides_runpath=unknown
  9830. version_type=none
  9831. dynamic_linker="$host_os ld.so"
  9832. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9833. need_lib_prefix=unknown
  9834. hardcode_into_libs=no
  9835. # when you set need_version to no, make sure it does not cause -set_version
  9836. # flags to be left without arguments
  9837. need_version=unknown
  9838. case $host_os in
  9839. aix3*)
  9840. version_type=linux # correct to gnu/linux during the next big refactor
  9841. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9842. shlibpath_var=LIBPATH
  9843. # AIX 3 has no versioning support, so we append a major version to the name.
  9844. soname_spec='$libname$release$shared_ext$major'
  9845. ;;
  9846. aix[4-9]*)
  9847. version_type=linux # correct to gnu/linux during the next big refactor
  9848. need_lib_prefix=no
  9849. need_version=no
  9850. hardcode_into_libs=yes
  9851. if test ia64 = "$host_cpu"; then
  9852. # AIX 5 supports IA64
  9853. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9854. shlibpath_var=LD_LIBRARY_PATH
  9855. else
  9856. # With GCC up to 2.95.x, collect2 would create an import file
  9857. # for dependence libraries. The import file would start with
  9858. # the line '#! .'. This would cause the generated library to
  9859. # depend on '.', always an invalid library. This was fixed in
  9860. # development snapshots of GCC prior to 3.0.
  9861. case $host_os in
  9862. aix4 | aix4.[01] | aix4.[01].*)
  9863. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9864. echo ' yes '
  9865. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9866. :
  9867. else
  9868. can_build_shared=no
  9869. fi
  9870. ;;
  9871. esac
  9872. # Using Import Files as archive members, it is possible to support
  9873. # filename-based versioning of shared library archives on AIX. While
  9874. # this would work for both with and without runtime linking, it will
  9875. # prevent static linking of such archives. So we do filename-based
  9876. # shared library versioning with .so extension only, which is used
  9877. # when both runtime linking and shared linking is enabled.
  9878. # Unfortunately, runtime linking may impact performance, so we do
  9879. # not want this to be the default eventually. Also, we use the
  9880. # versioned .so libs for executables only if there is the -brtl
  9881. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9882. # To allow for filename-based versioning support, we need to create
  9883. # libNAME.so.V as an archive file, containing:
  9884. # *) an Import File, referring to the versioned filename of the
  9885. # archive as well as the shared archive member, telling the
  9886. # bitwidth (32 or 64) of that shared object, and providing the
  9887. # list of exported symbols of that shared object, eventually
  9888. # decorated with the 'weak' keyword
  9889. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9890. # it being seen by the linker.
  9891. # At run time we better use the real file rather than another symlink,
  9892. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9893. case $with_aix_soname,$aix_use_runtimelinking in
  9894. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9895. # soname into executable. Probably we can add versioning support to
  9896. # collect2, so additional links can be useful in future.
  9897. aix,yes) # traditional libtool
  9898. dynamic_linker='AIX unversionable lib.so'
  9899. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9900. # instead of lib<name>.a to let people know that these are not
  9901. # typical AIX shared libraries.
  9902. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9903. ;;
  9904. aix,no) # traditional AIX only
  9905. dynamic_linker='AIX lib.a(lib.so.V)'
  9906. # We preserve .a as extension for shared libraries through AIX4.2
  9907. # and later when we are not doing run time linking.
  9908. library_names_spec='$libname$release.a $libname.a'
  9909. soname_spec='$libname$release$shared_ext$major'
  9910. ;;
  9911. svr4,*) # full svr4 only
  9912. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9913. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9914. # We do not specify a path in Import Files, so LIBPATH fires.
  9915. shlibpath_overrides_runpath=yes
  9916. ;;
  9917. *,yes) # both, prefer svr4
  9918. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9919. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9920. # unpreferred sharedlib libNAME.a needs extra handling
  9921. 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"'
  9922. 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"'
  9923. # We do not specify a path in Import Files, so LIBPATH fires.
  9924. shlibpath_overrides_runpath=yes
  9925. ;;
  9926. *,no) # both, prefer aix
  9927. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9928. library_names_spec='$libname$release.a $libname.a'
  9929. soname_spec='$libname$release$shared_ext$major'
  9930. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9931. 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)'
  9932. 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"'
  9933. ;;
  9934. esac
  9935. shlibpath_var=LIBPATH
  9936. fi
  9937. ;;
  9938. amigaos*)
  9939. case $host_cpu in
  9940. powerpc)
  9941. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9942. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9943. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9944. ;;
  9945. m68k)
  9946. library_names_spec='$libname.ixlibrary $libname.a'
  9947. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9948. 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'
  9949. ;;
  9950. esac
  9951. ;;
  9952. beos*)
  9953. library_names_spec='$libname$shared_ext'
  9954. dynamic_linker="$host_os ld.so"
  9955. shlibpath_var=LIBRARY_PATH
  9956. ;;
  9957. bsdi[45]*)
  9958. version_type=linux # correct to gnu/linux during the next big refactor
  9959. need_version=no
  9960. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9961. soname_spec='$libname$release$shared_ext$major'
  9962. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9963. shlibpath_var=LD_LIBRARY_PATH
  9964. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9965. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9966. # the default ld.so.conf also contains /usr/contrib/lib and
  9967. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9968. # libtool to hard-code these into programs
  9969. ;;
  9970. cygwin* | mingw* | pw32* | cegcc*)
  9971. version_type=windows
  9972. shrext_cmds=.dll
  9973. need_version=no
  9974. need_lib_prefix=no
  9975. case $GCC,$cc_basename in
  9976. yes,*)
  9977. # gcc
  9978. library_names_spec='$libname.dll.a'
  9979. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9980. postinstall_cmds='base_file=`basename \$file`~
  9981. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9982. dldir=$destdir/`dirname \$dlpath`~
  9983. test -d \$dldir || mkdir -p \$dldir~
  9984. $install_prog $dir/$dlname \$dldir/$dlname~
  9985. chmod a+x \$dldir/$dlname~
  9986. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9987. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9988. fi'
  9989. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9990. dlpath=$dir/\$dldll~
  9991. $RM \$dlpath'
  9992. shlibpath_overrides_runpath=yes
  9993. case $host_os in
  9994. cygwin*)
  9995. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9996. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9997. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9998. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9999. ;;
  10000. mingw* | cegcc*)
  10001. # MinGW DLLs use traditional 'lib' prefix
  10002. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10003. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  10004. ;;
  10005. pw32*)
  10006. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10007. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10008. ;;
  10009. esac
  10010. dynamic_linker='Win32 ld.exe'
  10011. ;;
  10012. *,cl*)
  10013. # Native MSVC
  10014. libname_spec='$name'
  10015. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10016. library_names_spec='$libname.dll.lib'
  10017. case $build_os in
  10018. mingw*)
  10019. sys_lib_search_path_spec=
  10020. lt_save_ifs=$IFS
  10021. IFS=';'
  10022. for lt_path in $LIB
  10023. do
  10024. IFS=$lt_save_ifs
  10025. # Let DOS variable expansion print the short 8.3 style file name.
  10026. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10027. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10028. done
  10029. IFS=$lt_save_ifs
  10030. # Convert to MSYS style.
  10031. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10032. ;;
  10033. cygwin*)
  10034. # Convert to unix form, then to dos form, then back to unix form
  10035. # but this time dos style (no spaces!) so that the unix form looks
  10036. # like /cygdrive/c/PROGRA~1:/cygdr...
  10037. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10038. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10039. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10040. ;;
  10041. *)
  10042. sys_lib_search_path_spec=$LIB
  10043. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10044. # It is most probably a Windows format PATH.
  10045. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10046. else
  10047. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10048. fi
  10049. # FIXME: find the short name or the path components, as spaces are
  10050. # common. (e.g. "Program Files" -> "PROGRA~1")
  10051. ;;
  10052. esac
  10053. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10054. postinstall_cmds='base_file=`basename \$file`~
  10055. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10056. dldir=$destdir/`dirname \$dlpath`~
  10057. test -d \$dldir || mkdir -p \$dldir~
  10058. $install_prog $dir/$dlname \$dldir/$dlname'
  10059. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10060. dlpath=$dir/\$dldll~
  10061. $RM \$dlpath'
  10062. shlibpath_overrides_runpath=yes
  10063. dynamic_linker='Win32 link.exe'
  10064. ;;
  10065. *)
  10066. # Assume MSVC wrapper
  10067. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10068. dynamic_linker='Win32 ld.exe'
  10069. ;;
  10070. esac
  10071. # FIXME: first we should search . and the directory the executable is in
  10072. shlibpath_var=PATH
  10073. ;;
  10074. darwin* | rhapsody*)
  10075. dynamic_linker="$host_os dyld"
  10076. version_type=darwin
  10077. need_lib_prefix=no
  10078. need_version=no
  10079. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10080. soname_spec='$libname$release$major$shared_ext'
  10081. shlibpath_overrides_runpath=yes
  10082. shlibpath_var=DYLD_LIBRARY_PATH
  10083. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10084. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10085. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10086. ;;
  10087. dgux*)
  10088. version_type=linux # correct to gnu/linux during the next big refactor
  10089. need_lib_prefix=no
  10090. need_version=no
  10091. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10092. soname_spec='$libname$release$shared_ext$major'
  10093. shlibpath_var=LD_LIBRARY_PATH
  10094. ;;
  10095. freebsd* | dragonfly* | midnightbsd*)
  10096. # DragonFly does not have aout. When/if they implement a new
  10097. # versioning mechanism, adjust this.
  10098. if test -x /usr/bin/objformat; then
  10099. objformat=`/usr/bin/objformat`
  10100. else
  10101. case $host_os in
  10102. freebsd[23].*) objformat=aout ;;
  10103. *) objformat=elf ;;
  10104. esac
  10105. fi
  10106. version_type=freebsd-$objformat
  10107. case $version_type in
  10108. freebsd-elf*)
  10109. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10110. soname_spec='$libname$release$shared_ext$major'
  10111. need_version=no
  10112. need_lib_prefix=no
  10113. ;;
  10114. freebsd-*)
  10115. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10116. need_version=yes
  10117. ;;
  10118. esac
  10119. shlibpath_var=LD_LIBRARY_PATH
  10120. case $host_os in
  10121. freebsd2.*)
  10122. shlibpath_overrides_runpath=yes
  10123. ;;
  10124. freebsd3.[01]* | freebsdelf3.[01]*)
  10125. shlibpath_overrides_runpath=yes
  10126. hardcode_into_libs=yes
  10127. ;;
  10128. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10129. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10130. shlibpath_overrides_runpath=no
  10131. hardcode_into_libs=yes
  10132. ;;
  10133. *) # from 4.6 on, and DragonFly
  10134. shlibpath_overrides_runpath=yes
  10135. hardcode_into_libs=yes
  10136. ;;
  10137. esac
  10138. ;;
  10139. haiku*)
  10140. version_type=linux # correct to gnu/linux during the next big refactor
  10141. need_lib_prefix=no
  10142. need_version=no
  10143. dynamic_linker="$host_os runtime_loader"
  10144. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10145. soname_spec='$libname$release$shared_ext$major'
  10146. shlibpath_var=LIBRARY_PATH
  10147. shlibpath_overrides_runpath=no
  10148. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10149. hardcode_into_libs=yes
  10150. ;;
  10151. hpux9* | hpux10* | hpux11*)
  10152. # Give a soname corresponding to the major version so that dld.sl refuses to
  10153. # link against other versions.
  10154. version_type=sunos
  10155. need_lib_prefix=no
  10156. need_version=no
  10157. case $host_cpu in
  10158. ia64*)
  10159. shrext_cmds='.so'
  10160. hardcode_into_libs=yes
  10161. dynamic_linker="$host_os dld.so"
  10162. shlibpath_var=LD_LIBRARY_PATH
  10163. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10164. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10165. soname_spec='$libname$release$shared_ext$major'
  10166. if test 32 = "$HPUX_IA64_MODE"; then
  10167. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10168. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10169. else
  10170. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10171. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10172. fi
  10173. ;;
  10174. hppa*64*)
  10175. shrext_cmds='.sl'
  10176. hardcode_into_libs=yes
  10177. dynamic_linker="$host_os dld.sl"
  10178. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10183. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10184. ;;
  10185. *)
  10186. shrext_cmds='.sl'
  10187. dynamic_linker="$host_os dld.sl"
  10188. shlibpath_var=SHLIB_PATH
  10189. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10190. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10191. soname_spec='$libname$release$shared_ext$major'
  10192. ;;
  10193. esac
  10194. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10195. postinstall_cmds='chmod 555 $lib'
  10196. # or fails outright, so override atomically:
  10197. install_override_mode=555
  10198. ;;
  10199. interix[3-9]*)
  10200. version_type=linux # correct to gnu/linux during the next big refactor
  10201. need_lib_prefix=no
  10202. need_version=no
  10203. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10204. soname_spec='$libname$release$shared_ext$major'
  10205. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10206. shlibpath_var=LD_LIBRARY_PATH
  10207. shlibpath_overrides_runpath=no
  10208. hardcode_into_libs=yes
  10209. ;;
  10210. irix5* | irix6* | nonstopux*)
  10211. case $host_os in
  10212. nonstopux*) version_type=nonstopux ;;
  10213. *)
  10214. if test yes = "$lt_cv_prog_gnu_ld"; then
  10215. version_type=linux # correct to gnu/linux during the next big refactor
  10216. else
  10217. version_type=irix
  10218. fi ;;
  10219. esac
  10220. need_lib_prefix=no
  10221. need_version=no
  10222. soname_spec='$libname$release$shared_ext$major'
  10223. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10224. case $host_os in
  10225. irix5* | nonstopux*)
  10226. libsuff= shlibsuff=
  10227. ;;
  10228. *)
  10229. case $LD in # libtool.m4 will add one of these switches to LD
  10230. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10231. libsuff= shlibsuff= libmagic=32-bit;;
  10232. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10233. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10234. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10235. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10236. *) libsuff= shlibsuff= libmagic=never-match;;
  10237. esac
  10238. ;;
  10239. esac
  10240. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10241. shlibpath_overrides_runpath=no
  10242. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10243. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10244. hardcode_into_libs=yes
  10245. ;;
  10246. # No shared lib support for Linux oldld, aout, or coff.
  10247. linux*oldld* | linux*aout* | linux*coff*)
  10248. dynamic_linker=no
  10249. ;;
  10250. linux*android*)
  10251. version_type=none # Android doesn't support versioned libraries.
  10252. need_lib_prefix=no
  10253. need_version=no
  10254. library_names_spec='$libname$release$shared_ext'
  10255. soname_spec='$libname$release$shared_ext'
  10256. finish_cmds=
  10257. shlibpath_var=LD_LIBRARY_PATH
  10258. shlibpath_overrides_runpath=yes
  10259. # This implies no fast_install, which is unacceptable.
  10260. # Some rework will be needed to allow for fast_install
  10261. # before this can be enabled.
  10262. hardcode_into_libs=yes
  10263. dynamic_linker='Android linker'
  10264. # Don't embed -rpath directories since the linker doesn't support them.
  10265. hardcode_libdir_flag_spec='-L$libdir'
  10266. ;;
  10267. # This must be glibc/ELF.
  10268. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10269. version_type=linux # correct to gnu/linux during the next big refactor
  10270. need_lib_prefix=no
  10271. need_version=no
  10272. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10273. soname_spec='$libname$release$shared_ext$major'
  10274. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10275. shlibpath_var=LD_LIBRARY_PATH
  10276. shlibpath_overrides_runpath=no
  10277. # Some binutils ld are patched to set DT_RUNPATH
  10278. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10279. then :
  10280. printf %s "(cached) " >&6
  10281. else $as_nop
  10282. lt_cv_shlibpath_overrides_runpath=no
  10283. save_LDFLAGS=$LDFLAGS
  10284. save_libdir=$libdir
  10285. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10286. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10288. /* end confdefs.h. */
  10289. int
  10290. main (void)
  10291. {
  10292. ;
  10293. return 0;
  10294. }
  10295. _ACEOF
  10296. if ac_fn_c_try_link "$LINENO"
  10297. then :
  10298. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10299. then :
  10300. lt_cv_shlibpath_overrides_runpath=yes
  10301. fi
  10302. fi
  10303. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10304. conftest$ac_exeext conftest.$ac_ext
  10305. LDFLAGS=$save_LDFLAGS
  10306. libdir=$save_libdir
  10307. fi
  10308. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10309. # This implies no fast_install, which is unacceptable.
  10310. # Some rework will be needed to allow for fast_install
  10311. # before this can be enabled.
  10312. hardcode_into_libs=yes
  10313. # Add ABI-specific directories to the system library path.
  10314. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10315. # Ideally, we could use ldconfig to report *all* directores which are
  10316. # searched for libraries, however this is still not possible. Aside from not
  10317. # being certain /sbin/ldconfig is available, command
  10318. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10319. # even though it is searched at run-time. Try to do the best guess by
  10320. # appending ld.so.conf contents (and includes) to the search path.
  10321. if test -f /etc/ld.so.conf; then
  10322. 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' ' '`
  10323. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10324. fi
  10325. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10326. # powerpc, because MkLinux only supported shared libraries with the
  10327. # GNU dynamic linker. Since this was broken with cross compilers,
  10328. # most powerpc-linux boxes support dynamic linking these days and
  10329. # people can always --disable-shared, the test was removed, and we
  10330. # assume the GNU/Linux dynamic linker is in use.
  10331. dynamic_linker='GNU/Linux ld.so'
  10332. ;;
  10333. netbsd*)
  10334. version_type=sunos
  10335. need_lib_prefix=no
  10336. need_version=no
  10337. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10338. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10339. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10340. dynamic_linker='NetBSD (a.out) ld.so'
  10341. else
  10342. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10343. soname_spec='$libname$release$shared_ext$major'
  10344. dynamic_linker='NetBSD ld.elf_so'
  10345. fi
  10346. shlibpath_var=LD_LIBRARY_PATH
  10347. shlibpath_overrides_runpath=yes
  10348. hardcode_into_libs=yes
  10349. ;;
  10350. newsos6)
  10351. version_type=linux # correct to gnu/linux during the next big refactor
  10352. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10353. shlibpath_var=LD_LIBRARY_PATH
  10354. shlibpath_overrides_runpath=yes
  10355. ;;
  10356. *nto* | *qnx*)
  10357. version_type=qnx
  10358. need_lib_prefix=no
  10359. need_version=no
  10360. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10361. soname_spec='$libname$release$shared_ext$major'
  10362. shlibpath_var=LD_LIBRARY_PATH
  10363. shlibpath_overrides_runpath=no
  10364. hardcode_into_libs=yes
  10365. dynamic_linker='ldqnx.so'
  10366. ;;
  10367. openbsd* | bitrig*)
  10368. version_type=sunos
  10369. sys_lib_dlsearch_path_spec=/usr/lib
  10370. need_lib_prefix=no
  10371. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10372. need_version=no
  10373. else
  10374. need_version=yes
  10375. fi
  10376. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10377. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10378. shlibpath_var=LD_LIBRARY_PATH
  10379. shlibpath_overrides_runpath=yes
  10380. ;;
  10381. os2*)
  10382. libname_spec='$name'
  10383. shrext_cmds=.dll
  10384. need_lib_prefix=no
  10385. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10386. # SDL customization: removed versioning support.
  10387. # version_type=windows
  10388. # need_version=no
  10389. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10390. # v=$($ECHO $release$versuffix | tr -d .-);
  10391. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10392. # $ECHO $n$v`$shared_ext'
  10393. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10394. library_names_spec='${libname}_dll.$libext'
  10395. dynamic_linker='OS/2 ld.exe'
  10396. shlibpath_var=BEGINLIBPATH
  10397. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10398. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10399. postinstall_cmds='base_file=`basename \$file`~
  10400. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10401. dldir=$destdir/`dirname \$dlpath`~
  10402. test -d \$dldir || mkdir -p \$dldir~
  10403. $install_prog $dir/$dlname \$dldir/$dlname~
  10404. chmod a+x \$dldir/$dlname~
  10405. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10406. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10407. fi'
  10408. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10409. dlpath=$dir/\$dldll~
  10410. $RM \$dlpath'
  10411. ;;
  10412. osf3* | osf4* | osf5*)
  10413. version_type=osf
  10414. need_lib_prefix=no
  10415. need_version=no
  10416. soname_spec='$libname$release$shared_ext$major'
  10417. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10418. shlibpath_var=LD_LIBRARY_PATH
  10419. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10420. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10421. ;;
  10422. rdos*)
  10423. dynamic_linker=no
  10424. ;;
  10425. solaris*)
  10426. version_type=linux # correct to gnu/linux during the next big refactor
  10427. need_lib_prefix=no
  10428. need_version=no
  10429. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10430. soname_spec='$libname$release$shared_ext$major'
  10431. shlibpath_var=LD_LIBRARY_PATH
  10432. shlibpath_overrides_runpath=yes
  10433. hardcode_into_libs=yes
  10434. # ldd complains unless libraries are executable
  10435. postinstall_cmds='chmod +x $lib'
  10436. ;;
  10437. sunos4*)
  10438. version_type=sunos
  10439. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10440. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10441. shlibpath_var=LD_LIBRARY_PATH
  10442. shlibpath_overrides_runpath=yes
  10443. if test yes = "$with_gnu_ld"; then
  10444. need_lib_prefix=no
  10445. fi
  10446. need_version=yes
  10447. ;;
  10448. sysv4 | sysv4.3*)
  10449. version_type=linux # correct to gnu/linux during the next big refactor
  10450. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10451. soname_spec='$libname$release$shared_ext$major'
  10452. shlibpath_var=LD_LIBRARY_PATH
  10453. case $host_vendor in
  10454. sni)
  10455. shlibpath_overrides_runpath=no
  10456. need_lib_prefix=no
  10457. runpath_var=LD_RUN_PATH
  10458. ;;
  10459. siemens)
  10460. need_lib_prefix=no
  10461. ;;
  10462. motorola)
  10463. need_lib_prefix=no
  10464. need_version=no
  10465. shlibpath_overrides_runpath=no
  10466. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10467. ;;
  10468. esac
  10469. ;;
  10470. sysv4*MP*)
  10471. if test -d /usr/nec; then
  10472. version_type=linux # correct to gnu/linux during the next big refactor
  10473. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10474. soname_spec='$libname$shared_ext.$major'
  10475. shlibpath_var=LD_LIBRARY_PATH
  10476. fi
  10477. ;;
  10478. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10479. version_type=sco
  10480. need_lib_prefix=no
  10481. need_version=no
  10482. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10483. soname_spec='$libname$release$shared_ext$major'
  10484. shlibpath_var=LD_LIBRARY_PATH
  10485. shlibpath_overrides_runpath=yes
  10486. hardcode_into_libs=yes
  10487. if test yes = "$with_gnu_ld"; then
  10488. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10489. else
  10490. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10491. case $host_os in
  10492. sco3.2v5*)
  10493. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10494. ;;
  10495. esac
  10496. fi
  10497. sys_lib_dlsearch_path_spec='/usr/lib'
  10498. ;;
  10499. tpf*)
  10500. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10501. version_type=linux # correct to gnu/linux during the next big refactor
  10502. need_lib_prefix=no
  10503. need_version=no
  10504. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10505. shlibpath_var=LD_LIBRARY_PATH
  10506. shlibpath_overrides_runpath=no
  10507. hardcode_into_libs=yes
  10508. ;;
  10509. uts4*)
  10510. version_type=linux # correct to gnu/linux during the next big refactor
  10511. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10512. soname_spec='$libname$release$shared_ext$major'
  10513. shlibpath_var=LD_LIBRARY_PATH
  10514. ;;
  10515. *)
  10516. dynamic_linker=no
  10517. ;;
  10518. esac
  10519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10520. printf "%s\n" "$dynamic_linker" >&6; }
  10521. test no = "$dynamic_linker" && can_build_shared=no
  10522. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10523. if test yes = "$GCC"; then
  10524. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10525. fi
  10526. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10527. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10528. fi
  10529. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10530. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10531. fi
  10532. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10533. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10534. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10535. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10536. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10537. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10539. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10540. hardcode_action=
  10541. if test -n "$hardcode_libdir_flag_spec" ||
  10542. test -n "$runpath_var" ||
  10543. test yes = "$hardcode_automatic"; then
  10544. # We can hardcode non-existent directories.
  10545. if test no != "$hardcode_direct" &&
  10546. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10547. # have to relink, otherwise we might link with an installed library
  10548. # when we should be linking with a yet-to-be-installed one
  10549. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10550. test no != "$hardcode_minus_L"; then
  10551. # Linking always hardcodes the temporary library directory.
  10552. hardcode_action=relink
  10553. else
  10554. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10555. hardcode_action=immediate
  10556. fi
  10557. else
  10558. # We cannot hardcode anything, or else we can only hardcode existing
  10559. # directories.
  10560. hardcode_action=unsupported
  10561. fi
  10562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10563. printf "%s\n" "$hardcode_action" >&6; }
  10564. if test relink = "$hardcode_action" ||
  10565. test yes = "$inherit_rpath"; then
  10566. # Fast installation is not supported
  10567. enable_fast_install=no
  10568. elif test yes = "$shlibpath_overrides_runpath" ||
  10569. test no = "$enable_shared"; then
  10570. # Fast installation is not necessary
  10571. enable_fast_install=needless
  10572. fi
  10573. if test yes != "$enable_dlopen"; then
  10574. enable_dlopen=unknown
  10575. enable_dlopen_self=unknown
  10576. enable_dlopen_self_static=unknown
  10577. else
  10578. lt_cv_dlopen=no
  10579. lt_cv_dlopen_libs=
  10580. case $host_os in
  10581. beos*)
  10582. lt_cv_dlopen=load_add_on
  10583. lt_cv_dlopen_libs=
  10584. lt_cv_dlopen_self=yes
  10585. ;;
  10586. mingw* | pw32* | cegcc*)
  10587. lt_cv_dlopen=LoadLibrary
  10588. lt_cv_dlopen_libs=
  10589. ;;
  10590. cygwin*)
  10591. lt_cv_dlopen=dlopen
  10592. lt_cv_dlopen_libs=
  10593. ;;
  10594. darwin*)
  10595. # if libdl is installed we need to link against it
  10596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10597. printf %s "checking for dlopen in -ldl... " >&6; }
  10598. if test ${ac_cv_lib_dl_dlopen+y}
  10599. then :
  10600. printf %s "(cached) " >&6
  10601. else $as_nop
  10602. ac_check_lib_save_LIBS=$LIBS
  10603. LIBS="-ldl $LIBS"
  10604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10605. /* end confdefs.h. */
  10606. /* Override any GCC internal prototype to avoid an error.
  10607. Use char because int might match the return type of a GCC
  10608. builtin and then its argument prototype would still apply. */
  10609. char dlopen ();
  10610. int
  10611. main (void)
  10612. {
  10613. return dlopen ();
  10614. ;
  10615. return 0;
  10616. }
  10617. _ACEOF
  10618. if ac_fn_c_try_link "$LINENO"
  10619. then :
  10620. ac_cv_lib_dl_dlopen=yes
  10621. else $as_nop
  10622. ac_cv_lib_dl_dlopen=no
  10623. fi
  10624. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10625. conftest$ac_exeext conftest.$ac_ext
  10626. LIBS=$ac_check_lib_save_LIBS
  10627. fi
  10628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10629. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10630. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10631. then :
  10632. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10633. else $as_nop
  10634. lt_cv_dlopen=dyld
  10635. lt_cv_dlopen_libs=
  10636. lt_cv_dlopen_self=yes
  10637. fi
  10638. ;;
  10639. tpf*)
  10640. # Don't try to run any link tests for TPF. We know it's impossible
  10641. # because TPF is a cross-compiler, and we know how we open DSOs.
  10642. lt_cv_dlopen=dlopen
  10643. lt_cv_dlopen_libs=
  10644. lt_cv_dlopen_self=no
  10645. ;;
  10646. *)
  10647. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10648. if test "x$ac_cv_func_shl_load" = xyes
  10649. then :
  10650. lt_cv_dlopen=shl_load
  10651. else $as_nop
  10652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10653. printf %s "checking for shl_load in -ldld... " >&6; }
  10654. if test ${ac_cv_lib_dld_shl_load+y}
  10655. then :
  10656. printf %s "(cached) " >&6
  10657. else $as_nop
  10658. ac_check_lib_save_LIBS=$LIBS
  10659. LIBS="-ldld $LIBS"
  10660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10661. /* end confdefs.h. */
  10662. /* Override any GCC internal prototype to avoid an error.
  10663. Use char because int might match the return type of a GCC
  10664. builtin and then its argument prototype would still apply. */
  10665. char shl_load ();
  10666. int
  10667. main (void)
  10668. {
  10669. return shl_load ();
  10670. ;
  10671. return 0;
  10672. }
  10673. _ACEOF
  10674. if ac_fn_c_try_link "$LINENO"
  10675. then :
  10676. ac_cv_lib_dld_shl_load=yes
  10677. else $as_nop
  10678. ac_cv_lib_dld_shl_load=no
  10679. fi
  10680. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10681. conftest$ac_exeext conftest.$ac_ext
  10682. LIBS=$ac_check_lib_save_LIBS
  10683. fi
  10684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10685. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10686. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10687. then :
  10688. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10689. else $as_nop
  10690. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10691. if test "x$ac_cv_func_dlopen" = xyes
  10692. then :
  10693. lt_cv_dlopen=dlopen
  10694. else $as_nop
  10695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10696. printf %s "checking for dlopen in -ldl... " >&6; }
  10697. if test ${ac_cv_lib_dl_dlopen+y}
  10698. then :
  10699. printf %s "(cached) " >&6
  10700. else $as_nop
  10701. ac_check_lib_save_LIBS=$LIBS
  10702. LIBS="-ldl $LIBS"
  10703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10704. /* end confdefs.h. */
  10705. /* Override any GCC internal prototype to avoid an error.
  10706. Use char because int might match the return type of a GCC
  10707. builtin and then its argument prototype would still apply. */
  10708. char dlopen ();
  10709. int
  10710. main (void)
  10711. {
  10712. return dlopen ();
  10713. ;
  10714. return 0;
  10715. }
  10716. _ACEOF
  10717. if ac_fn_c_try_link "$LINENO"
  10718. then :
  10719. ac_cv_lib_dl_dlopen=yes
  10720. else $as_nop
  10721. ac_cv_lib_dl_dlopen=no
  10722. fi
  10723. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10724. conftest$ac_exeext conftest.$ac_ext
  10725. LIBS=$ac_check_lib_save_LIBS
  10726. fi
  10727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10728. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10729. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10730. then :
  10731. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10732. else $as_nop
  10733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10734. printf %s "checking for dlopen in -lsvld... " >&6; }
  10735. if test ${ac_cv_lib_svld_dlopen+y}
  10736. then :
  10737. printf %s "(cached) " >&6
  10738. else $as_nop
  10739. ac_check_lib_save_LIBS=$LIBS
  10740. LIBS="-lsvld $LIBS"
  10741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10742. /* end confdefs.h. */
  10743. /* Override any GCC internal prototype to avoid an error.
  10744. Use char because int might match the return type of a GCC
  10745. builtin and then its argument prototype would still apply. */
  10746. char dlopen ();
  10747. int
  10748. main (void)
  10749. {
  10750. return dlopen ();
  10751. ;
  10752. return 0;
  10753. }
  10754. _ACEOF
  10755. if ac_fn_c_try_link "$LINENO"
  10756. then :
  10757. ac_cv_lib_svld_dlopen=yes
  10758. else $as_nop
  10759. ac_cv_lib_svld_dlopen=no
  10760. fi
  10761. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10762. conftest$ac_exeext conftest.$ac_ext
  10763. LIBS=$ac_check_lib_save_LIBS
  10764. fi
  10765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10766. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10767. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10768. then :
  10769. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10770. else $as_nop
  10771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10772. printf %s "checking for dld_link in -ldld... " >&6; }
  10773. if test ${ac_cv_lib_dld_dld_link+y}
  10774. then :
  10775. printf %s "(cached) " >&6
  10776. else $as_nop
  10777. ac_check_lib_save_LIBS=$LIBS
  10778. LIBS="-ldld $LIBS"
  10779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10780. /* end confdefs.h. */
  10781. /* Override any GCC internal prototype to avoid an error.
  10782. Use char because int might match the return type of a GCC
  10783. builtin and then its argument prototype would still apply. */
  10784. char dld_link ();
  10785. int
  10786. main (void)
  10787. {
  10788. return dld_link ();
  10789. ;
  10790. return 0;
  10791. }
  10792. _ACEOF
  10793. if ac_fn_c_try_link "$LINENO"
  10794. then :
  10795. ac_cv_lib_dld_dld_link=yes
  10796. else $as_nop
  10797. ac_cv_lib_dld_dld_link=no
  10798. fi
  10799. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10800. conftest$ac_exeext conftest.$ac_ext
  10801. LIBS=$ac_check_lib_save_LIBS
  10802. fi
  10803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10804. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10805. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10806. then :
  10807. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10808. fi
  10809. fi
  10810. fi
  10811. fi
  10812. fi
  10813. fi
  10814. ;;
  10815. esac
  10816. if test no = "$lt_cv_dlopen"; then
  10817. enable_dlopen=no
  10818. else
  10819. enable_dlopen=yes
  10820. fi
  10821. case $lt_cv_dlopen in
  10822. dlopen)
  10823. save_CPPFLAGS=$CPPFLAGS
  10824. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10825. save_LDFLAGS=$LDFLAGS
  10826. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10827. save_LIBS=$LIBS
  10828. LIBS="$lt_cv_dlopen_libs $LIBS"
  10829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10830. printf %s "checking whether a program can dlopen itself... " >&6; }
  10831. if test ${lt_cv_dlopen_self+y}
  10832. then :
  10833. printf %s "(cached) " >&6
  10834. else $as_nop
  10835. if test yes = "$cross_compiling"; then :
  10836. lt_cv_dlopen_self=cross
  10837. else
  10838. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10839. lt_status=$lt_dlunknown
  10840. cat > conftest.$ac_ext <<_LT_EOF
  10841. #line $LINENO "configure"
  10842. #include "confdefs.h"
  10843. #if HAVE_DLFCN_H
  10844. #include <dlfcn.h>
  10845. #endif
  10846. #include <stdio.h>
  10847. #ifdef RTLD_GLOBAL
  10848. # define LT_DLGLOBAL RTLD_GLOBAL
  10849. #else
  10850. # ifdef DL_GLOBAL
  10851. # define LT_DLGLOBAL DL_GLOBAL
  10852. # else
  10853. # define LT_DLGLOBAL 0
  10854. # endif
  10855. #endif
  10856. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10857. find out it does not work in some platform. */
  10858. #ifndef LT_DLLAZY_OR_NOW
  10859. # ifdef RTLD_LAZY
  10860. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10861. # else
  10862. # ifdef DL_LAZY
  10863. # define LT_DLLAZY_OR_NOW DL_LAZY
  10864. # else
  10865. # ifdef RTLD_NOW
  10866. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10867. # else
  10868. # ifdef DL_NOW
  10869. # define LT_DLLAZY_OR_NOW DL_NOW
  10870. # else
  10871. # define LT_DLLAZY_OR_NOW 0
  10872. # endif
  10873. # endif
  10874. # endif
  10875. # endif
  10876. #endif
  10877. /* When -fvisibility=hidden is used, assume the code has been annotated
  10878. correspondingly for the symbols needed. */
  10879. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10880. int fnord () __attribute__((visibility("default")));
  10881. #endif
  10882. int fnord () { return 42; }
  10883. int main ()
  10884. {
  10885. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10886. int status = $lt_dlunknown;
  10887. if (self)
  10888. {
  10889. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10890. else
  10891. {
  10892. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10893. else puts (dlerror ());
  10894. }
  10895. /* dlclose (self); */
  10896. }
  10897. else
  10898. puts (dlerror ());
  10899. return status;
  10900. }
  10901. _LT_EOF
  10902. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10903. (eval $ac_link) 2>&5
  10904. ac_status=$?
  10905. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10906. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10907. (./conftest; exit; ) >&5 2>/dev/null
  10908. lt_status=$?
  10909. case x$lt_status in
  10910. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10911. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10912. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10913. esac
  10914. else :
  10915. # compilation failed
  10916. lt_cv_dlopen_self=no
  10917. fi
  10918. fi
  10919. rm -fr conftest*
  10920. fi
  10921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10922. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10923. if test yes = "$lt_cv_dlopen_self"; then
  10924. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10926. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10927. if test ${lt_cv_dlopen_self_static+y}
  10928. then :
  10929. printf %s "(cached) " >&6
  10930. else $as_nop
  10931. if test yes = "$cross_compiling"; then :
  10932. lt_cv_dlopen_self_static=cross
  10933. else
  10934. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10935. lt_status=$lt_dlunknown
  10936. cat > conftest.$ac_ext <<_LT_EOF
  10937. #line $LINENO "configure"
  10938. #include "confdefs.h"
  10939. #if HAVE_DLFCN_H
  10940. #include <dlfcn.h>
  10941. #endif
  10942. #include <stdio.h>
  10943. #ifdef RTLD_GLOBAL
  10944. # define LT_DLGLOBAL RTLD_GLOBAL
  10945. #else
  10946. # ifdef DL_GLOBAL
  10947. # define LT_DLGLOBAL DL_GLOBAL
  10948. # else
  10949. # define LT_DLGLOBAL 0
  10950. # endif
  10951. #endif
  10952. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10953. find out it does not work in some platform. */
  10954. #ifndef LT_DLLAZY_OR_NOW
  10955. # ifdef RTLD_LAZY
  10956. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10957. # else
  10958. # ifdef DL_LAZY
  10959. # define LT_DLLAZY_OR_NOW DL_LAZY
  10960. # else
  10961. # ifdef RTLD_NOW
  10962. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10963. # else
  10964. # ifdef DL_NOW
  10965. # define LT_DLLAZY_OR_NOW DL_NOW
  10966. # else
  10967. # define LT_DLLAZY_OR_NOW 0
  10968. # endif
  10969. # endif
  10970. # endif
  10971. # endif
  10972. #endif
  10973. /* When -fvisibility=hidden is used, assume the code has been annotated
  10974. correspondingly for the symbols needed. */
  10975. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10976. int fnord () __attribute__((visibility("default")));
  10977. #endif
  10978. int fnord () { return 42; }
  10979. int main ()
  10980. {
  10981. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10982. int status = $lt_dlunknown;
  10983. if (self)
  10984. {
  10985. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10986. else
  10987. {
  10988. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10989. else puts (dlerror ());
  10990. }
  10991. /* dlclose (self); */
  10992. }
  10993. else
  10994. puts (dlerror ());
  10995. return status;
  10996. }
  10997. _LT_EOF
  10998. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10999. (eval $ac_link) 2>&5
  11000. ac_status=$?
  11001. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11002. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11003. (./conftest; exit; ) >&5 2>/dev/null
  11004. lt_status=$?
  11005. case x$lt_status in
  11006. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11007. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11008. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11009. esac
  11010. else :
  11011. # compilation failed
  11012. lt_cv_dlopen_self_static=no
  11013. fi
  11014. fi
  11015. rm -fr conftest*
  11016. fi
  11017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11018. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11019. fi
  11020. CPPFLAGS=$save_CPPFLAGS
  11021. LDFLAGS=$save_LDFLAGS
  11022. LIBS=$save_LIBS
  11023. ;;
  11024. esac
  11025. case $lt_cv_dlopen_self in
  11026. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11027. *) enable_dlopen_self=unknown ;;
  11028. esac
  11029. case $lt_cv_dlopen_self_static in
  11030. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11031. *) enable_dlopen_self_static=unknown ;;
  11032. esac
  11033. fi
  11034. striplib=
  11035. old_striplib=
  11036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11037. printf %s "checking whether stripping libraries is possible... " >&6; }
  11038. if test -z "$STRIP"; then
  11039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11040. printf "%s\n" "no" >&6; }
  11041. else
  11042. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11043. old_striplib="$STRIP --strip-debug"
  11044. striplib="$STRIP --strip-unneeded"
  11045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11046. printf "%s\n" "yes" >&6; }
  11047. else
  11048. case $host_os in
  11049. darwin*)
  11050. # FIXME - insert some real tests, host_os isn't really good enough
  11051. striplib="$STRIP -x"
  11052. old_striplib="$STRIP -S"
  11053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11054. printf "%s\n" "yes" >&6; }
  11055. ;;
  11056. freebsd*)
  11057. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11058. old_striplib="$STRIP --strip-debug"
  11059. striplib="$STRIP --strip-unneeded"
  11060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11061. printf "%s\n" "yes" >&6; }
  11062. else
  11063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11064. printf "%s\n" "no" >&6; }
  11065. fi
  11066. ;;
  11067. *)
  11068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11069. printf "%s\n" "no" >&6; }
  11070. ;;
  11071. esac
  11072. fi
  11073. fi
  11074. # Report what library types will actually be built
  11075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11076. printf %s "checking if libtool supports shared libraries... " >&6; }
  11077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11078. printf "%s\n" "$can_build_shared" >&6; }
  11079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11080. printf %s "checking whether to build shared libraries... " >&6; }
  11081. test no = "$can_build_shared" && enable_shared=no
  11082. # On AIX, shared libraries and static libraries use the same namespace, and
  11083. # are all built from PIC.
  11084. case $host_os in
  11085. aix3*)
  11086. test yes = "$enable_shared" && enable_static=no
  11087. if test -n "$RANLIB"; then
  11088. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11089. postinstall_cmds='$RANLIB $lib'
  11090. fi
  11091. ;;
  11092. aix[4-9]*)
  11093. if test ia64 != "$host_cpu"; then
  11094. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11095. yes,aix,yes) ;; # shared object as lib.so file only
  11096. yes,svr4,*) ;; # shared object as lib.so archive member only
  11097. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11098. esac
  11099. fi
  11100. ;;
  11101. esac
  11102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11103. printf "%s\n" "$enable_shared" >&6; }
  11104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11105. printf %s "checking whether to build static libraries... " >&6; }
  11106. # Make sure either enable_shared or enable_static is yes.
  11107. test yes = "$enable_shared" || enable_static=yes
  11108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11109. printf "%s\n" "$enable_static" >&6; }
  11110. fi
  11111. ac_ext=c
  11112. ac_cpp='$CPP $CPPFLAGS'
  11113. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11114. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11115. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11116. CC=$lt_save_CC
  11117. ac_config_commands="$ac_config_commands libtool"
  11118. # Only expand once:
  11119. if test -n "$ac_tool_prefix"; then
  11120. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11121. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11123. printf %s "checking for $ac_word... " >&6; }
  11124. if test ${ac_cv_prog_RC+y}
  11125. then :
  11126. printf %s "(cached) " >&6
  11127. else $as_nop
  11128. if test -n "$RC"; then
  11129. ac_cv_prog_RC="$RC" # Let the user override the test.
  11130. else
  11131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11132. for as_dir in $PATH
  11133. do
  11134. IFS=$as_save_IFS
  11135. case $as_dir in #(((
  11136. '') as_dir=./ ;;
  11137. */) ;;
  11138. *) as_dir=$as_dir/ ;;
  11139. esac
  11140. for ac_exec_ext in '' $ac_executable_extensions; do
  11141. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11142. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11143. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11144. break 2
  11145. fi
  11146. done
  11147. done
  11148. IFS=$as_save_IFS
  11149. fi
  11150. fi
  11151. RC=$ac_cv_prog_RC
  11152. if test -n "$RC"; then
  11153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11154. printf "%s\n" "$RC" >&6; }
  11155. else
  11156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11157. printf "%s\n" "no" >&6; }
  11158. fi
  11159. fi
  11160. if test -z "$ac_cv_prog_RC"; then
  11161. ac_ct_RC=$RC
  11162. # Extract the first word of "windres", so it can be a program name with args.
  11163. set dummy windres; ac_word=$2
  11164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11165. printf %s "checking for $ac_word... " >&6; }
  11166. if test ${ac_cv_prog_ac_ct_RC+y}
  11167. then :
  11168. printf %s "(cached) " >&6
  11169. else $as_nop
  11170. if test -n "$ac_ct_RC"; then
  11171. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11172. else
  11173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11174. for as_dir in $PATH
  11175. do
  11176. IFS=$as_save_IFS
  11177. case $as_dir in #(((
  11178. '') as_dir=./ ;;
  11179. */) ;;
  11180. *) as_dir=$as_dir/ ;;
  11181. esac
  11182. for ac_exec_ext in '' $ac_executable_extensions; do
  11183. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11184. ac_cv_prog_ac_ct_RC="windres"
  11185. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11186. break 2
  11187. fi
  11188. done
  11189. done
  11190. IFS=$as_save_IFS
  11191. fi
  11192. fi
  11193. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11194. if test -n "$ac_ct_RC"; then
  11195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11196. printf "%s\n" "$ac_ct_RC" >&6; }
  11197. else
  11198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11199. printf "%s\n" "no" >&6; }
  11200. fi
  11201. if test "x$ac_ct_RC" = x; then
  11202. RC=""
  11203. else
  11204. case $cross_compiling:$ac_tool_warned in
  11205. yes:)
  11206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11207. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11208. ac_tool_warned=yes ;;
  11209. esac
  11210. RC=$ac_ct_RC
  11211. fi
  11212. else
  11213. RC="$ac_cv_prog_RC"
  11214. fi
  11215. # Source file extension for RC test sources.
  11216. ac_ext=rc
  11217. # Object file extension for compiled RC test sources.
  11218. objext=o
  11219. objext_RC=$objext
  11220. # Code to be used in simple compile tests
  11221. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11222. # Code to be used in simple link tests
  11223. lt_simple_link_test_code=$lt_simple_compile_test_code
  11224. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11225. # If no C compiler was specified, use CC.
  11226. LTCC=${LTCC-"$CC"}
  11227. # If no C compiler flags were specified, use CFLAGS.
  11228. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11229. # Allow CC to be a program name with arguments.
  11230. compiler=$CC
  11231. # save warnings/boilerplate of simple test code
  11232. ac_outfile=conftest.$ac_objext
  11233. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11234. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11235. _lt_compiler_boilerplate=`cat conftest.err`
  11236. $RM conftest*
  11237. ac_outfile=conftest.$ac_objext
  11238. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11239. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11240. _lt_linker_boilerplate=`cat conftest.err`
  11241. $RM -r conftest*
  11242. # Allow CC to be a program name with arguments.
  11243. lt_save_CC=$CC
  11244. lt_save_CFLAGS=$CFLAGS
  11245. lt_save_GCC=$GCC
  11246. GCC=
  11247. CC=${RC-"windres"}
  11248. CFLAGS=
  11249. compiler=$CC
  11250. compiler_RC=$CC
  11251. func_cc_basename $compiler
  11252. cc_basename=$func_cc_basename_result
  11253. lt_cv_prog_compiler_c_o_RC=yes
  11254. if test -n "$compiler"; then
  11255. :
  11256. fi
  11257. GCC=$lt_save_GCC
  11258. ac_ext=c
  11259. ac_cpp='$CPP $CPPFLAGS'
  11260. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11261. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11262. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11263. CC=$lt_save_CC
  11264. CFLAGS=$lt_save_CFLAGS
  11265. # For historical reasons, the library name redundantly includes the major
  11266. # version twice: libSDL2-2.0.so.0.
  11267. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11268. LT_RELEASE=2.0
  11269. # Increment this if there is an incompatible change - but if that happens,
  11270. # we should rename the library from SDL2 to SDL3, at which point this would
  11271. # reset to 0 anyway.
  11272. LT_MAJOR=0
  11273. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11274. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11275. LT_REVISION=$SDL_INTERFACE_AGE
  11276. for ac_prog in gawk mawk nawk awk
  11277. do
  11278. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11279. set dummy $ac_prog; ac_word=$2
  11280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11281. printf %s "checking for $ac_word... " >&6; }
  11282. if test ${ac_cv_prog_AWK+y}
  11283. then :
  11284. printf %s "(cached) " >&6
  11285. else $as_nop
  11286. if test -n "$AWK"; then
  11287. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11288. else
  11289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11290. for as_dir in $PATH
  11291. do
  11292. IFS=$as_save_IFS
  11293. case $as_dir in #(((
  11294. '') as_dir=./ ;;
  11295. */) ;;
  11296. *) as_dir=$as_dir/ ;;
  11297. esac
  11298. for ac_exec_ext in '' $ac_executable_extensions; do
  11299. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11300. ac_cv_prog_AWK="$ac_prog"
  11301. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11302. break 2
  11303. fi
  11304. done
  11305. done
  11306. IFS=$as_save_IFS
  11307. fi
  11308. fi
  11309. AWK=$ac_cv_prog_AWK
  11310. if test -n "$AWK"; then
  11311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11312. printf "%s\n" "$AWK" >&6; }
  11313. else
  11314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11315. printf "%s\n" "no" >&6; }
  11316. fi
  11317. test -n "$AWK" && break
  11318. done
  11319. ac_ext=c
  11320. ac_cpp='$CPP $CPPFLAGS'
  11321. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11322. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11323. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11324. if test -n "$ac_tool_prefix"; then
  11325. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11326. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11328. printf %s "checking for $ac_word... " >&6; }
  11329. if test ${ac_cv_prog_CC+y}
  11330. then :
  11331. printf %s "(cached) " >&6
  11332. else $as_nop
  11333. if test -n "$CC"; then
  11334. ac_cv_prog_CC="$CC" # Let the user override the test.
  11335. else
  11336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11337. for as_dir in $PATH
  11338. do
  11339. IFS=$as_save_IFS
  11340. case $as_dir in #(((
  11341. '') as_dir=./ ;;
  11342. */) ;;
  11343. *) as_dir=$as_dir/ ;;
  11344. esac
  11345. for ac_exec_ext in '' $ac_executable_extensions; do
  11346. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11347. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11348. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11349. break 2
  11350. fi
  11351. done
  11352. done
  11353. IFS=$as_save_IFS
  11354. fi
  11355. fi
  11356. CC=$ac_cv_prog_CC
  11357. if test -n "$CC"; then
  11358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11359. printf "%s\n" "$CC" >&6; }
  11360. else
  11361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11362. printf "%s\n" "no" >&6; }
  11363. fi
  11364. fi
  11365. if test -z "$ac_cv_prog_CC"; then
  11366. ac_ct_CC=$CC
  11367. # Extract the first word of "gcc", so it can be a program name with args.
  11368. set dummy gcc; ac_word=$2
  11369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11370. printf %s "checking for $ac_word... " >&6; }
  11371. if test ${ac_cv_prog_ac_ct_CC+y}
  11372. then :
  11373. printf %s "(cached) " >&6
  11374. else $as_nop
  11375. if test -n "$ac_ct_CC"; then
  11376. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11377. else
  11378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11379. for as_dir in $PATH
  11380. do
  11381. IFS=$as_save_IFS
  11382. case $as_dir in #(((
  11383. '') as_dir=./ ;;
  11384. */) ;;
  11385. *) as_dir=$as_dir/ ;;
  11386. esac
  11387. for ac_exec_ext in '' $ac_executable_extensions; do
  11388. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11389. ac_cv_prog_ac_ct_CC="gcc"
  11390. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11391. break 2
  11392. fi
  11393. done
  11394. done
  11395. IFS=$as_save_IFS
  11396. fi
  11397. fi
  11398. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11399. if test -n "$ac_ct_CC"; then
  11400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11401. printf "%s\n" "$ac_ct_CC" >&6; }
  11402. else
  11403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11404. printf "%s\n" "no" >&6; }
  11405. fi
  11406. if test "x$ac_ct_CC" = x; then
  11407. CC=""
  11408. else
  11409. case $cross_compiling:$ac_tool_warned in
  11410. yes:)
  11411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11412. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11413. ac_tool_warned=yes ;;
  11414. esac
  11415. CC=$ac_ct_CC
  11416. fi
  11417. else
  11418. CC="$ac_cv_prog_CC"
  11419. fi
  11420. if test -z "$CC"; then
  11421. if test -n "$ac_tool_prefix"; then
  11422. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11423. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11425. printf %s "checking for $ac_word... " >&6; }
  11426. if test ${ac_cv_prog_CC+y}
  11427. then :
  11428. printf %s "(cached) " >&6
  11429. else $as_nop
  11430. if test -n "$CC"; then
  11431. ac_cv_prog_CC="$CC" # Let the user override the test.
  11432. else
  11433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11434. for as_dir in $PATH
  11435. do
  11436. IFS=$as_save_IFS
  11437. case $as_dir in #(((
  11438. '') as_dir=./ ;;
  11439. */) ;;
  11440. *) as_dir=$as_dir/ ;;
  11441. esac
  11442. for ac_exec_ext in '' $ac_executable_extensions; do
  11443. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11444. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11445. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11446. break 2
  11447. fi
  11448. done
  11449. done
  11450. IFS=$as_save_IFS
  11451. fi
  11452. fi
  11453. CC=$ac_cv_prog_CC
  11454. if test -n "$CC"; then
  11455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11456. printf "%s\n" "$CC" >&6; }
  11457. else
  11458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11459. printf "%s\n" "no" >&6; }
  11460. fi
  11461. fi
  11462. fi
  11463. if test -z "$CC"; then
  11464. # Extract the first word of "cc", so it can be a program name with args.
  11465. set dummy cc; ac_word=$2
  11466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11467. printf %s "checking for $ac_word... " >&6; }
  11468. if test ${ac_cv_prog_CC+y}
  11469. then :
  11470. printf %s "(cached) " >&6
  11471. else $as_nop
  11472. if test -n "$CC"; then
  11473. ac_cv_prog_CC="$CC" # Let the user override the test.
  11474. else
  11475. ac_prog_rejected=no
  11476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11477. for as_dir in $PATH
  11478. do
  11479. IFS=$as_save_IFS
  11480. case $as_dir in #(((
  11481. '') as_dir=./ ;;
  11482. */) ;;
  11483. *) as_dir=$as_dir/ ;;
  11484. esac
  11485. for ac_exec_ext in '' $ac_executable_extensions; do
  11486. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11487. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11488. ac_prog_rejected=yes
  11489. continue
  11490. fi
  11491. ac_cv_prog_CC="cc"
  11492. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11493. break 2
  11494. fi
  11495. done
  11496. done
  11497. IFS=$as_save_IFS
  11498. if test $ac_prog_rejected = yes; then
  11499. # We found a bogon in the path, so make sure we never use it.
  11500. set dummy $ac_cv_prog_CC
  11501. shift
  11502. if test $# != 0; then
  11503. # We chose a different compiler from the bogus one.
  11504. # However, it has the same basename, so the bogon will be chosen
  11505. # first if we set CC to just the basename; use the full file name.
  11506. shift
  11507. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11508. fi
  11509. fi
  11510. fi
  11511. fi
  11512. CC=$ac_cv_prog_CC
  11513. if test -n "$CC"; then
  11514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11515. printf "%s\n" "$CC" >&6; }
  11516. else
  11517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11518. printf "%s\n" "no" >&6; }
  11519. fi
  11520. fi
  11521. if test -z "$CC"; then
  11522. if test -n "$ac_tool_prefix"; then
  11523. for ac_prog in cl.exe
  11524. do
  11525. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11526. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11528. printf %s "checking for $ac_word... " >&6; }
  11529. if test ${ac_cv_prog_CC+y}
  11530. then :
  11531. printf %s "(cached) " >&6
  11532. else $as_nop
  11533. if test -n "$CC"; then
  11534. ac_cv_prog_CC="$CC" # Let the user override the test.
  11535. else
  11536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11537. for as_dir in $PATH
  11538. do
  11539. IFS=$as_save_IFS
  11540. case $as_dir in #(((
  11541. '') as_dir=./ ;;
  11542. */) ;;
  11543. *) as_dir=$as_dir/ ;;
  11544. esac
  11545. for ac_exec_ext in '' $ac_executable_extensions; do
  11546. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11547. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11548. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11549. break 2
  11550. fi
  11551. done
  11552. done
  11553. IFS=$as_save_IFS
  11554. fi
  11555. fi
  11556. CC=$ac_cv_prog_CC
  11557. if test -n "$CC"; then
  11558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11559. printf "%s\n" "$CC" >&6; }
  11560. else
  11561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11562. printf "%s\n" "no" >&6; }
  11563. fi
  11564. test -n "$CC" && break
  11565. done
  11566. fi
  11567. if test -z "$CC"; then
  11568. ac_ct_CC=$CC
  11569. for ac_prog in cl.exe
  11570. do
  11571. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11572. set dummy $ac_prog; ac_word=$2
  11573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11574. printf %s "checking for $ac_word... " >&6; }
  11575. if test ${ac_cv_prog_ac_ct_CC+y}
  11576. then :
  11577. printf %s "(cached) " >&6
  11578. else $as_nop
  11579. if test -n "$ac_ct_CC"; then
  11580. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11581. else
  11582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11583. for as_dir in $PATH
  11584. do
  11585. IFS=$as_save_IFS
  11586. case $as_dir in #(((
  11587. '') as_dir=./ ;;
  11588. */) ;;
  11589. *) as_dir=$as_dir/ ;;
  11590. esac
  11591. for ac_exec_ext in '' $ac_executable_extensions; do
  11592. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11593. ac_cv_prog_ac_ct_CC="$ac_prog"
  11594. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11595. break 2
  11596. fi
  11597. done
  11598. done
  11599. IFS=$as_save_IFS
  11600. fi
  11601. fi
  11602. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11603. if test -n "$ac_ct_CC"; then
  11604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11605. printf "%s\n" "$ac_ct_CC" >&6; }
  11606. else
  11607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11608. printf "%s\n" "no" >&6; }
  11609. fi
  11610. test -n "$ac_ct_CC" && break
  11611. done
  11612. if test "x$ac_ct_CC" = x; then
  11613. CC=""
  11614. else
  11615. case $cross_compiling:$ac_tool_warned in
  11616. yes:)
  11617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11618. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11619. ac_tool_warned=yes ;;
  11620. esac
  11621. CC=$ac_ct_CC
  11622. fi
  11623. fi
  11624. fi
  11625. if test -z "$CC"; then
  11626. if test -n "$ac_tool_prefix"; then
  11627. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11628. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11630. printf %s "checking for $ac_word... " >&6; }
  11631. if test ${ac_cv_prog_CC+y}
  11632. then :
  11633. printf %s "(cached) " >&6
  11634. else $as_nop
  11635. if test -n "$CC"; then
  11636. ac_cv_prog_CC="$CC" # Let the user override the test.
  11637. else
  11638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11639. for as_dir in $PATH
  11640. do
  11641. IFS=$as_save_IFS
  11642. case $as_dir in #(((
  11643. '') as_dir=./ ;;
  11644. */) ;;
  11645. *) as_dir=$as_dir/ ;;
  11646. esac
  11647. for ac_exec_ext in '' $ac_executable_extensions; do
  11648. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11649. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11650. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11651. break 2
  11652. fi
  11653. done
  11654. done
  11655. IFS=$as_save_IFS
  11656. fi
  11657. fi
  11658. CC=$ac_cv_prog_CC
  11659. if test -n "$CC"; then
  11660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11661. printf "%s\n" "$CC" >&6; }
  11662. else
  11663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11664. printf "%s\n" "no" >&6; }
  11665. fi
  11666. fi
  11667. if test -z "$ac_cv_prog_CC"; then
  11668. ac_ct_CC=$CC
  11669. # Extract the first word of "clang", so it can be a program name with args.
  11670. set dummy clang; ac_word=$2
  11671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11672. printf %s "checking for $ac_word... " >&6; }
  11673. if test ${ac_cv_prog_ac_ct_CC+y}
  11674. then :
  11675. printf %s "(cached) " >&6
  11676. else $as_nop
  11677. if test -n "$ac_ct_CC"; then
  11678. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11679. else
  11680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11681. for as_dir in $PATH
  11682. do
  11683. IFS=$as_save_IFS
  11684. case $as_dir in #(((
  11685. '') as_dir=./ ;;
  11686. */) ;;
  11687. *) as_dir=$as_dir/ ;;
  11688. esac
  11689. for ac_exec_ext in '' $ac_executable_extensions; do
  11690. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11691. ac_cv_prog_ac_ct_CC="clang"
  11692. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11693. break 2
  11694. fi
  11695. done
  11696. done
  11697. IFS=$as_save_IFS
  11698. fi
  11699. fi
  11700. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11701. if test -n "$ac_ct_CC"; then
  11702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11703. printf "%s\n" "$ac_ct_CC" >&6; }
  11704. else
  11705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11706. printf "%s\n" "no" >&6; }
  11707. fi
  11708. if test "x$ac_ct_CC" = x; then
  11709. CC=""
  11710. else
  11711. case $cross_compiling:$ac_tool_warned in
  11712. yes:)
  11713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11714. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11715. ac_tool_warned=yes ;;
  11716. esac
  11717. CC=$ac_ct_CC
  11718. fi
  11719. else
  11720. CC="$ac_cv_prog_CC"
  11721. fi
  11722. fi
  11723. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11724. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11725. as_fn_error $? "no acceptable C compiler found in \$PATH
  11726. See \`config.log' for more details" "$LINENO" 5; }
  11727. # Provide some information about the compiler.
  11728. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11729. set X $ac_compile
  11730. ac_compiler=$2
  11731. for ac_option in --version -v -V -qversion -version; do
  11732. { { ac_try="$ac_compiler $ac_option >&5"
  11733. case "(($ac_try" in
  11734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11735. *) ac_try_echo=$ac_try;;
  11736. esac
  11737. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11738. printf "%s\n" "$ac_try_echo"; } >&5
  11739. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11740. ac_status=$?
  11741. if test -s conftest.err; then
  11742. sed '10a\
  11743. ... rest of stderr output deleted ...
  11744. 10q' conftest.err >conftest.er1
  11745. cat conftest.er1 >&5
  11746. fi
  11747. rm -f conftest.er1 conftest.err
  11748. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11749. test $ac_status = 0; }
  11750. done
  11751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11752. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11753. if test ${ac_cv_c_compiler_gnu+y}
  11754. then :
  11755. printf %s "(cached) " >&6
  11756. else $as_nop
  11757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11758. /* end confdefs.h. */
  11759. int
  11760. main (void)
  11761. {
  11762. #ifndef __GNUC__
  11763. choke me
  11764. #endif
  11765. ;
  11766. return 0;
  11767. }
  11768. _ACEOF
  11769. if ac_fn_c_try_compile "$LINENO"
  11770. then :
  11771. ac_compiler_gnu=yes
  11772. else $as_nop
  11773. ac_compiler_gnu=no
  11774. fi
  11775. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11776. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11777. fi
  11778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11779. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11780. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11781. if test $ac_compiler_gnu = yes; then
  11782. GCC=yes
  11783. else
  11784. GCC=
  11785. fi
  11786. ac_test_CFLAGS=${CFLAGS+y}
  11787. ac_save_CFLAGS=$CFLAGS
  11788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11789. printf %s "checking whether $CC accepts -g... " >&6; }
  11790. if test ${ac_cv_prog_cc_g+y}
  11791. then :
  11792. printf %s "(cached) " >&6
  11793. else $as_nop
  11794. ac_save_c_werror_flag=$ac_c_werror_flag
  11795. ac_c_werror_flag=yes
  11796. ac_cv_prog_cc_g=no
  11797. CFLAGS="-g"
  11798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11799. /* end confdefs.h. */
  11800. int
  11801. main (void)
  11802. {
  11803. ;
  11804. return 0;
  11805. }
  11806. _ACEOF
  11807. if ac_fn_c_try_compile "$LINENO"
  11808. then :
  11809. ac_cv_prog_cc_g=yes
  11810. else $as_nop
  11811. CFLAGS=""
  11812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11813. /* end confdefs.h. */
  11814. int
  11815. main (void)
  11816. {
  11817. ;
  11818. return 0;
  11819. }
  11820. _ACEOF
  11821. if ac_fn_c_try_compile "$LINENO"
  11822. then :
  11823. else $as_nop
  11824. ac_c_werror_flag=$ac_save_c_werror_flag
  11825. CFLAGS="-g"
  11826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11827. /* end confdefs.h. */
  11828. int
  11829. main (void)
  11830. {
  11831. ;
  11832. return 0;
  11833. }
  11834. _ACEOF
  11835. if ac_fn_c_try_compile "$LINENO"
  11836. then :
  11837. ac_cv_prog_cc_g=yes
  11838. fi
  11839. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11840. fi
  11841. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11842. fi
  11843. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11844. ac_c_werror_flag=$ac_save_c_werror_flag
  11845. fi
  11846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11847. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11848. if test $ac_test_CFLAGS; then
  11849. CFLAGS=$ac_save_CFLAGS
  11850. elif test $ac_cv_prog_cc_g = yes; then
  11851. if test "$GCC" = yes; then
  11852. CFLAGS="-g -O2"
  11853. else
  11854. CFLAGS="-g"
  11855. fi
  11856. else
  11857. if test "$GCC" = yes; then
  11858. CFLAGS="-O2"
  11859. else
  11860. CFLAGS=
  11861. fi
  11862. fi
  11863. ac_prog_cc_stdc=no
  11864. if test x$ac_prog_cc_stdc = xno
  11865. then :
  11866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11867. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11868. if test ${ac_cv_prog_cc_c11+y}
  11869. then :
  11870. printf %s "(cached) " >&6
  11871. else $as_nop
  11872. ac_cv_prog_cc_c11=no
  11873. ac_save_CC=$CC
  11874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11875. /* end confdefs.h. */
  11876. $ac_c_conftest_c11_program
  11877. _ACEOF
  11878. for ac_arg in '' -std=gnu11
  11879. do
  11880. CC="$ac_save_CC $ac_arg"
  11881. if ac_fn_c_try_compile "$LINENO"
  11882. then :
  11883. ac_cv_prog_cc_c11=$ac_arg
  11884. fi
  11885. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11886. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11887. done
  11888. rm -f conftest.$ac_ext
  11889. CC=$ac_save_CC
  11890. fi
  11891. if test "x$ac_cv_prog_cc_c11" = xno
  11892. then :
  11893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11894. printf "%s\n" "unsupported" >&6; }
  11895. else $as_nop
  11896. if test "x$ac_cv_prog_cc_c11" = x
  11897. then :
  11898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11899. printf "%s\n" "none needed" >&6; }
  11900. else $as_nop
  11901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11902. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11903. CC="$CC $ac_cv_prog_cc_c11"
  11904. fi
  11905. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11906. ac_prog_cc_stdc=c11
  11907. fi
  11908. fi
  11909. if test x$ac_prog_cc_stdc = xno
  11910. then :
  11911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11912. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11913. if test ${ac_cv_prog_cc_c99+y}
  11914. then :
  11915. printf %s "(cached) " >&6
  11916. else $as_nop
  11917. ac_cv_prog_cc_c99=no
  11918. ac_save_CC=$CC
  11919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11920. /* end confdefs.h. */
  11921. $ac_c_conftest_c99_program
  11922. _ACEOF
  11923. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11924. do
  11925. CC="$ac_save_CC $ac_arg"
  11926. if ac_fn_c_try_compile "$LINENO"
  11927. then :
  11928. ac_cv_prog_cc_c99=$ac_arg
  11929. fi
  11930. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11931. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11932. done
  11933. rm -f conftest.$ac_ext
  11934. CC=$ac_save_CC
  11935. fi
  11936. if test "x$ac_cv_prog_cc_c99" = xno
  11937. then :
  11938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11939. printf "%s\n" "unsupported" >&6; }
  11940. else $as_nop
  11941. if test "x$ac_cv_prog_cc_c99" = x
  11942. then :
  11943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11944. printf "%s\n" "none needed" >&6; }
  11945. else $as_nop
  11946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11947. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11948. CC="$CC $ac_cv_prog_cc_c99"
  11949. fi
  11950. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11951. ac_prog_cc_stdc=c99
  11952. fi
  11953. fi
  11954. if test x$ac_prog_cc_stdc = xno
  11955. then :
  11956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11957. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11958. if test ${ac_cv_prog_cc_c89+y}
  11959. then :
  11960. printf %s "(cached) " >&6
  11961. else $as_nop
  11962. ac_cv_prog_cc_c89=no
  11963. ac_save_CC=$CC
  11964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11965. /* end confdefs.h. */
  11966. $ac_c_conftest_c89_program
  11967. _ACEOF
  11968. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11969. do
  11970. CC="$ac_save_CC $ac_arg"
  11971. if ac_fn_c_try_compile "$LINENO"
  11972. then :
  11973. ac_cv_prog_cc_c89=$ac_arg
  11974. fi
  11975. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11976. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11977. done
  11978. rm -f conftest.$ac_ext
  11979. CC=$ac_save_CC
  11980. fi
  11981. if test "x$ac_cv_prog_cc_c89" = xno
  11982. then :
  11983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11984. printf "%s\n" "unsupported" >&6; }
  11985. else $as_nop
  11986. if test "x$ac_cv_prog_cc_c89" = x
  11987. then :
  11988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11989. printf "%s\n" "none needed" >&6; }
  11990. else $as_nop
  11991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11992. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  11993. CC="$CC $ac_cv_prog_cc_c89"
  11994. fi
  11995. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  11996. ac_prog_cc_stdc=c89
  11997. fi
  11998. fi
  11999. ac_ext=c
  12000. ac_cpp='$CPP $CPPFLAGS'
  12001. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12002. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12003. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12004. ac_ext=cpp
  12005. ac_cpp='$CXXCPP $CPPFLAGS'
  12006. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12007. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12008. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12009. if test -z "$CXX"; then
  12010. if test -n "$CCC"; then
  12011. CXX=$CCC
  12012. else
  12013. if test -n "$ac_tool_prefix"; then
  12014. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12015. do
  12016. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12017. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12019. printf %s "checking for $ac_word... " >&6; }
  12020. if test ${ac_cv_prog_CXX+y}
  12021. then :
  12022. printf %s "(cached) " >&6
  12023. else $as_nop
  12024. if test -n "$CXX"; then
  12025. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12026. else
  12027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12028. for as_dir in $PATH
  12029. do
  12030. IFS=$as_save_IFS
  12031. case $as_dir in #(((
  12032. '') as_dir=./ ;;
  12033. */) ;;
  12034. *) as_dir=$as_dir/ ;;
  12035. esac
  12036. for ac_exec_ext in '' $ac_executable_extensions; do
  12037. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12038. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12039. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12040. break 2
  12041. fi
  12042. done
  12043. done
  12044. IFS=$as_save_IFS
  12045. fi
  12046. fi
  12047. CXX=$ac_cv_prog_CXX
  12048. if test -n "$CXX"; then
  12049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12050. printf "%s\n" "$CXX" >&6; }
  12051. else
  12052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12053. printf "%s\n" "no" >&6; }
  12054. fi
  12055. test -n "$CXX" && break
  12056. done
  12057. fi
  12058. if test -z "$CXX"; then
  12059. ac_ct_CXX=$CXX
  12060. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12061. do
  12062. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12063. set dummy $ac_prog; ac_word=$2
  12064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12065. printf %s "checking for $ac_word... " >&6; }
  12066. if test ${ac_cv_prog_ac_ct_CXX+y}
  12067. then :
  12068. printf %s "(cached) " >&6
  12069. else $as_nop
  12070. if test -n "$ac_ct_CXX"; then
  12071. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12072. else
  12073. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12074. for as_dir in $PATH
  12075. do
  12076. IFS=$as_save_IFS
  12077. case $as_dir in #(((
  12078. '') as_dir=./ ;;
  12079. */) ;;
  12080. *) as_dir=$as_dir/ ;;
  12081. esac
  12082. for ac_exec_ext in '' $ac_executable_extensions; do
  12083. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12084. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12085. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12086. break 2
  12087. fi
  12088. done
  12089. done
  12090. IFS=$as_save_IFS
  12091. fi
  12092. fi
  12093. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12094. if test -n "$ac_ct_CXX"; then
  12095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12096. printf "%s\n" "$ac_ct_CXX" >&6; }
  12097. else
  12098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12099. printf "%s\n" "no" >&6; }
  12100. fi
  12101. test -n "$ac_ct_CXX" && break
  12102. done
  12103. if test "x$ac_ct_CXX" = x; then
  12104. CXX="g++"
  12105. else
  12106. case $cross_compiling:$ac_tool_warned in
  12107. yes:)
  12108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12109. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12110. ac_tool_warned=yes ;;
  12111. esac
  12112. CXX=$ac_ct_CXX
  12113. fi
  12114. fi
  12115. fi
  12116. fi
  12117. # Provide some information about the compiler.
  12118. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12119. set X $ac_compile
  12120. ac_compiler=$2
  12121. for ac_option in --version -v -V -qversion; do
  12122. { { ac_try="$ac_compiler $ac_option >&5"
  12123. case "(($ac_try" in
  12124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12125. *) ac_try_echo=$ac_try;;
  12126. esac
  12127. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12128. printf "%s\n" "$ac_try_echo"; } >&5
  12129. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12130. ac_status=$?
  12131. if test -s conftest.err; then
  12132. sed '10a\
  12133. ... rest of stderr output deleted ...
  12134. 10q' conftest.err >conftest.er1
  12135. cat conftest.er1 >&5
  12136. fi
  12137. rm -f conftest.er1 conftest.err
  12138. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12139. test $ac_status = 0; }
  12140. done
  12141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12142. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12143. if test ${ac_cv_cxx_compiler_gnu+y}
  12144. then :
  12145. printf %s "(cached) " >&6
  12146. else $as_nop
  12147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12148. /* end confdefs.h. */
  12149. int
  12150. main (void)
  12151. {
  12152. #ifndef __GNUC__
  12153. choke me
  12154. #endif
  12155. ;
  12156. return 0;
  12157. }
  12158. _ACEOF
  12159. if ac_fn_cxx_try_compile "$LINENO"
  12160. then :
  12161. ac_compiler_gnu=yes
  12162. else $as_nop
  12163. ac_compiler_gnu=no
  12164. fi
  12165. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12166. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12167. fi
  12168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12169. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12170. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12171. if test $ac_compiler_gnu = yes; then
  12172. GXX=yes
  12173. else
  12174. GXX=
  12175. fi
  12176. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12177. ac_save_CXXFLAGS=$CXXFLAGS
  12178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12179. printf %s "checking whether $CXX accepts -g... " >&6; }
  12180. if test ${ac_cv_prog_cxx_g+y}
  12181. then :
  12182. printf %s "(cached) " >&6
  12183. else $as_nop
  12184. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12185. ac_cxx_werror_flag=yes
  12186. ac_cv_prog_cxx_g=no
  12187. CXXFLAGS="-g"
  12188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12189. /* end confdefs.h. */
  12190. int
  12191. main (void)
  12192. {
  12193. ;
  12194. return 0;
  12195. }
  12196. _ACEOF
  12197. if ac_fn_cxx_try_compile "$LINENO"
  12198. then :
  12199. ac_cv_prog_cxx_g=yes
  12200. else $as_nop
  12201. CXXFLAGS=""
  12202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12203. /* end confdefs.h. */
  12204. int
  12205. main (void)
  12206. {
  12207. ;
  12208. return 0;
  12209. }
  12210. _ACEOF
  12211. if ac_fn_cxx_try_compile "$LINENO"
  12212. then :
  12213. else $as_nop
  12214. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12215. CXXFLAGS="-g"
  12216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12217. /* end confdefs.h. */
  12218. int
  12219. main (void)
  12220. {
  12221. ;
  12222. return 0;
  12223. }
  12224. _ACEOF
  12225. if ac_fn_cxx_try_compile "$LINENO"
  12226. then :
  12227. ac_cv_prog_cxx_g=yes
  12228. fi
  12229. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12230. fi
  12231. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12232. fi
  12233. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12234. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12235. fi
  12236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12237. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12238. if test $ac_test_CXXFLAGS; then
  12239. CXXFLAGS=$ac_save_CXXFLAGS
  12240. elif test $ac_cv_prog_cxx_g = yes; then
  12241. if test "$GXX" = yes; then
  12242. CXXFLAGS="-g -O2"
  12243. else
  12244. CXXFLAGS="-g"
  12245. fi
  12246. else
  12247. if test "$GXX" = yes; then
  12248. CXXFLAGS="-O2"
  12249. else
  12250. CXXFLAGS=
  12251. fi
  12252. fi
  12253. ac_prog_cxx_stdcxx=no
  12254. if test x$ac_prog_cxx_stdcxx = xno
  12255. then :
  12256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12257. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12258. if test ${ac_cv_prog_cxx_11+y}
  12259. then :
  12260. printf %s "(cached) " >&6
  12261. else $as_nop
  12262. ac_cv_prog_cxx_11=no
  12263. ac_save_CXX=$CXX
  12264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12265. /* end confdefs.h. */
  12266. $ac_cxx_conftest_cxx11_program
  12267. _ACEOF
  12268. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12269. do
  12270. CXX="$ac_save_CXX $ac_arg"
  12271. if ac_fn_cxx_try_compile "$LINENO"
  12272. then :
  12273. ac_cv_prog_cxx_cxx11=$ac_arg
  12274. fi
  12275. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12276. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12277. done
  12278. rm -f conftest.$ac_ext
  12279. CXX=$ac_save_CXX
  12280. fi
  12281. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12282. then :
  12283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12284. printf "%s\n" "unsupported" >&6; }
  12285. else $as_nop
  12286. if test "x$ac_cv_prog_cxx_cxx11" = x
  12287. then :
  12288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12289. printf "%s\n" "none needed" >&6; }
  12290. else $as_nop
  12291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12292. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12293. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12294. fi
  12295. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12296. ac_prog_cxx_stdcxx=cxx11
  12297. fi
  12298. fi
  12299. if test x$ac_prog_cxx_stdcxx = xno
  12300. then :
  12301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12302. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12303. if test ${ac_cv_prog_cxx_98+y}
  12304. then :
  12305. printf %s "(cached) " >&6
  12306. else $as_nop
  12307. ac_cv_prog_cxx_98=no
  12308. ac_save_CXX=$CXX
  12309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12310. /* end confdefs.h. */
  12311. $ac_cxx_conftest_cxx98_program
  12312. _ACEOF
  12313. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12314. do
  12315. CXX="$ac_save_CXX $ac_arg"
  12316. if ac_fn_cxx_try_compile "$LINENO"
  12317. then :
  12318. ac_cv_prog_cxx_cxx98=$ac_arg
  12319. fi
  12320. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12321. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12322. done
  12323. rm -f conftest.$ac_ext
  12324. CXX=$ac_save_CXX
  12325. fi
  12326. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12327. then :
  12328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12329. printf "%s\n" "unsupported" >&6; }
  12330. else $as_nop
  12331. if test "x$ac_cv_prog_cxx_cxx98" = x
  12332. then :
  12333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12334. printf "%s\n" "none needed" >&6; }
  12335. else $as_nop
  12336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12337. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12338. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12339. fi
  12340. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12341. ac_prog_cxx_stdcxx=cxx98
  12342. fi
  12343. fi
  12344. ac_ext=c
  12345. ac_cpp='$CPP $CPPFLAGS'
  12346. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12347. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12348. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12349. func_stripname_cnf ()
  12350. {
  12351. case $2 in
  12352. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12353. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12354. esac
  12355. } # func_stripname_cnf
  12356. if test -n "$CXX" && ( test no != "$CXX" &&
  12357. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12358. (test g++ != "$CXX"))); then
  12359. ac_ext=cpp
  12360. ac_cpp='$CXXCPP $CPPFLAGS'
  12361. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12362. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12363. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12365. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12366. if test -z "$CXXCPP"; then
  12367. if test ${ac_cv_prog_CXXCPP+y}
  12368. then :
  12369. printf %s "(cached) " >&6
  12370. else $as_nop
  12371. # Double quotes because $CXX needs to be expanded
  12372. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12373. do
  12374. ac_preproc_ok=false
  12375. for ac_cxx_preproc_warn_flag in '' yes
  12376. do
  12377. # Use a header file that comes with gcc, so configuring glibc
  12378. # with a fresh cross-compiler works.
  12379. # On the NeXT, cc -E runs the code through the compiler's parser,
  12380. # not just through cpp. "Syntax error" is here to catch this case.
  12381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12382. /* end confdefs.h. */
  12383. #include <limits.h>
  12384. Syntax error
  12385. _ACEOF
  12386. if ac_fn_cxx_try_cpp "$LINENO"
  12387. then :
  12388. else $as_nop
  12389. # Broken: fails on valid input.
  12390. continue
  12391. fi
  12392. rm -f conftest.err conftest.i conftest.$ac_ext
  12393. # OK, works on sane cases. Now check whether nonexistent headers
  12394. # can be detected and how.
  12395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12396. /* end confdefs.h. */
  12397. #include <ac_nonexistent.h>
  12398. _ACEOF
  12399. if ac_fn_cxx_try_cpp "$LINENO"
  12400. then :
  12401. # Broken: success on invalid input.
  12402. continue
  12403. else $as_nop
  12404. # Passes both tests.
  12405. ac_preproc_ok=:
  12406. break
  12407. fi
  12408. rm -f conftest.err conftest.i conftest.$ac_ext
  12409. done
  12410. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12411. rm -f conftest.i conftest.err conftest.$ac_ext
  12412. if $ac_preproc_ok
  12413. then :
  12414. break
  12415. fi
  12416. done
  12417. ac_cv_prog_CXXCPP=$CXXCPP
  12418. fi
  12419. CXXCPP=$ac_cv_prog_CXXCPP
  12420. else
  12421. ac_cv_prog_CXXCPP=$CXXCPP
  12422. fi
  12423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12424. printf "%s\n" "$CXXCPP" >&6; }
  12425. ac_preproc_ok=false
  12426. for ac_cxx_preproc_warn_flag in '' yes
  12427. do
  12428. # Use a header file that comes with gcc, so configuring glibc
  12429. # with a fresh cross-compiler works.
  12430. # On the NeXT, cc -E runs the code through the compiler's parser,
  12431. # not just through cpp. "Syntax error" is here to catch this case.
  12432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12433. /* end confdefs.h. */
  12434. #include <limits.h>
  12435. Syntax error
  12436. _ACEOF
  12437. if ac_fn_cxx_try_cpp "$LINENO"
  12438. then :
  12439. else $as_nop
  12440. # Broken: fails on valid input.
  12441. continue
  12442. fi
  12443. rm -f conftest.err conftest.i conftest.$ac_ext
  12444. # OK, works on sane cases. Now check whether nonexistent headers
  12445. # can be detected and how.
  12446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12447. /* end confdefs.h. */
  12448. #include <ac_nonexistent.h>
  12449. _ACEOF
  12450. if ac_fn_cxx_try_cpp "$LINENO"
  12451. then :
  12452. # Broken: success on invalid input.
  12453. continue
  12454. else $as_nop
  12455. # Passes both tests.
  12456. ac_preproc_ok=:
  12457. break
  12458. fi
  12459. rm -f conftest.err conftest.i conftest.$ac_ext
  12460. done
  12461. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12462. rm -f conftest.i conftest.err conftest.$ac_ext
  12463. if $ac_preproc_ok
  12464. then :
  12465. else $as_nop
  12466. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12467. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12468. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12469. See \`config.log' for more details" "$LINENO" 5; }
  12470. fi
  12471. ac_ext=c
  12472. ac_cpp='$CPP $CPPFLAGS'
  12473. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12474. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12475. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12476. else
  12477. _lt_caught_CXX_error=yes
  12478. fi
  12479. ac_ext=cpp
  12480. ac_cpp='$CXXCPP $CPPFLAGS'
  12481. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12482. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12483. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12484. archive_cmds_need_lc_CXX=no
  12485. allow_undefined_flag_CXX=
  12486. always_export_symbols_CXX=no
  12487. archive_expsym_cmds_CXX=
  12488. compiler_needs_object_CXX=no
  12489. export_dynamic_flag_spec_CXX=
  12490. hardcode_direct_CXX=no
  12491. hardcode_direct_absolute_CXX=no
  12492. hardcode_libdir_flag_spec_CXX=
  12493. hardcode_libdir_separator_CXX=
  12494. hardcode_minus_L_CXX=no
  12495. hardcode_shlibpath_var_CXX=unsupported
  12496. hardcode_automatic_CXX=no
  12497. inherit_rpath_CXX=no
  12498. module_cmds_CXX=
  12499. module_expsym_cmds_CXX=
  12500. link_all_deplibs_CXX=unknown
  12501. old_archive_cmds_CXX=$old_archive_cmds
  12502. reload_flag_CXX=$reload_flag
  12503. reload_cmds_CXX=$reload_cmds
  12504. no_undefined_flag_CXX=
  12505. whole_archive_flag_spec_CXX=
  12506. enable_shared_with_static_runtimes_CXX=no
  12507. # Source file extension for C++ test sources.
  12508. ac_ext=cpp
  12509. # Object file extension for compiled C++ test sources.
  12510. objext=o
  12511. objext_CXX=$objext
  12512. # No sense in running all these tests if we already determined that
  12513. # the CXX compiler isn't working. Some variables (like enable_shared)
  12514. # are currently assumed to apply to all compilers on this platform,
  12515. # and will be corrupted by setting them based on a non-working compiler.
  12516. if test yes != "$_lt_caught_CXX_error"; then
  12517. # Code to be used in simple compile tests
  12518. lt_simple_compile_test_code="int some_variable = 0;"
  12519. # Code to be used in simple link tests
  12520. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12521. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12522. # If no C compiler was specified, use CC.
  12523. LTCC=${LTCC-"$CC"}
  12524. # If no C compiler flags were specified, use CFLAGS.
  12525. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12526. # Allow CC to be a program name with arguments.
  12527. compiler=$CC
  12528. # save warnings/boilerplate of simple test code
  12529. ac_outfile=conftest.$ac_objext
  12530. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12531. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12532. _lt_compiler_boilerplate=`cat conftest.err`
  12533. $RM conftest*
  12534. ac_outfile=conftest.$ac_objext
  12535. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12536. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12537. _lt_linker_boilerplate=`cat conftest.err`
  12538. $RM -r conftest*
  12539. # Allow CC to be a program name with arguments.
  12540. lt_save_CC=$CC
  12541. lt_save_CFLAGS=$CFLAGS
  12542. lt_save_LD=$LD
  12543. lt_save_GCC=$GCC
  12544. GCC=$GXX
  12545. lt_save_with_gnu_ld=$with_gnu_ld
  12546. lt_save_path_LD=$lt_cv_path_LD
  12547. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12548. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12549. else
  12550. $as_unset lt_cv_prog_gnu_ld
  12551. fi
  12552. if test -n "${lt_cv_path_LDCXX+set}"; then
  12553. lt_cv_path_LD=$lt_cv_path_LDCXX
  12554. else
  12555. $as_unset lt_cv_path_LD
  12556. fi
  12557. test -z "${LDCXX+set}" || LD=$LDCXX
  12558. CC=${CXX-"c++"}
  12559. CFLAGS=$CXXFLAGS
  12560. compiler=$CC
  12561. compiler_CXX=$CC
  12562. func_cc_basename $compiler
  12563. cc_basename=$func_cc_basename_result
  12564. if test -n "$compiler"; then
  12565. # We don't want -fno-exception when compiling C++ code, so set the
  12566. # no_builtin_flag separately
  12567. if test yes = "$GXX"; then
  12568. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12569. else
  12570. lt_prog_compiler_no_builtin_flag_CXX=
  12571. fi
  12572. if test yes = "$GXX"; then
  12573. # Set up default GNU C++ configuration
  12574. # Check whether --with-gnu-ld was given.
  12575. if test ${with_gnu_ld+y}
  12576. then :
  12577. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12578. else $as_nop
  12579. with_gnu_ld=no
  12580. fi
  12581. ac_prog=ld
  12582. if test yes = "$GCC"; then
  12583. # Check if gcc -print-prog-name=ld gives a path.
  12584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12585. printf %s "checking for ld used by $CC... " >&6; }
  12586. case $host in
  12587. *-*-mingw*)
  12588. # gcc leaves a trailing carriage return, which upsets mingw
  12589. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12590. *)
  12591. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12592. esac
  12593. case $ac_prog in
  12594. # Accept absolute paths.
  12595. [\\/]* | ?:[\\/]*)
  12596. re_direlt='/[^/][^/]*/\.\./'
  12597. # Canonicalize the pathname of ld
  12598. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12599. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12600. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12601. done
  12602. test -z "$LD" && LD=$ac_prog
  12603. ;;
  12604. "")
  12605. # If it fails, then pretend we aren't using GCC.
  12606. ac_prog=ld
  12607. ;;
  12608. *)
  12609. # If it is relative, then search for the first ld in PATH.
  12610. with_gnu_ld=unknown
  12611. ;;
  12612. esac
  12613. elif test yes = "$with_gnu_ld"; then
  12614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12615. printf %s "checking for GNU ld... " >&6; }
  12616. else
  12617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12618. printf %s "checking for non-GNU ld... " >&6; }
  12619. fi
  12620. if test ${lt_cv_path_LD+y}
  12621. then :
  12622. printf %s "(cached) " >&6
  12623. else $as_nop
  12624. if test -z "$LD"; then
  12625. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12626. for ac_dir in $PATH; do
  12627. IFS=$lt_save_ifs
  12628. test -z "$ac_dir" && ac_dir=.
  12629. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12630. lt_cv_path_LD=$ac_dir/$ac_prog
  12631. # Check to see if the program is GNU ld. I'd rather use --version,
  12632. # but apparently some variants of GNU ld only accept -v.
  12633. # Break only if it was the GNU/non-GNU ld that we prefer.
  12634. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12635. *GNU* | *'with BFD'*)
  12636. test no != "$with_gnu_ld" && break
  12637. ;;
  12638. *)
  12639. test yes != "$with_gnu_ld" && break
  12640. ;;
  12641. esac
  12642. fi
  12643. done
  12644. IFS=$lt_save_ifs
  12645. else
  12646. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12647. fi
  12648. fi
  12649. LD=$lt_cv_path_LD
  12650. if test -n "$LD"; then
  12651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12652. printf "%s\n" "$LD" >&6; }
  12653. else
  12654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12655. printf "%s\n" "no" >&6; }
  12656. fi
  12657. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12659. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12660. if test ${lt_cv_prog_gnu_ld+y}
  12661. then :
  12662. printf %s "(cached) " >&6
  12663. else $as_nop
  12664. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12665. case `$LD -v 2>&1 </dev/null` in
  12666. *GNU* | *'with BFD'*)
  12667. lt_cv_prog_gnu_ld=yes
  12668. ;;
  12669. *)
  12670. lt_cv_prog_gnu_ld=no
  12671. ;;
  12672. esac
  12673. fi
  12674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12675. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12676. with_gnu_ld=$lt_cv_prog_gnu_ld
  12677. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12678. # archiving commands below assume that GNU ld is being used.
  12679. if test yes = "$with_gnu_ld"; then
  12680. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12681. 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'
  12682. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12683. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12684. # If archive_cmds runs LD, not CC, wlarc should be empty
  12685. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12686. # investigate it a little bit more. (MM)
  12687. wlarc='$wl'
  12688. # ancient GNU ld didn't support --whole-archive et. al.
  12689. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12690. $GREP 'no-whole-archive' > /dev/null; then
  12691. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12692. else
  12693. whole_archive_flag_spec_CXX=
  12694. fi
  12695. else
  12696. with_gnu_ld=no
  12697. wlarc=
  12698. # A generic and very simple default shared library creation
  12699. # command for GNU C++ for the case where it uses the native
  12700. # linker, instead of GNU ld. If possible, this setting should
  12701. # overridden to take advantage of the native linker features on
  12702. # the platform it is being used on.
  12703. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12704. fi
  12705. # Commands to make compiler produce verbose output that lists
  12706. # what "hidden" libraries, object files and flags are used when
  12707. # linking a shared library.
  12708. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12709. else
  12710. GXX=no
  12711. with_gnu_ld=no
  12712. wlarc=
  12713. fi
  12714. # PORTME: fill in a description of your system's C++ link characteristics
  12715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12716. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12717. ld_shlibs_CXX=yes
  12718. case $host_os in
  12719. aix3*)
  12720. # FIXME: insert proper C++ library support
  12721. ld_shlibs_CXX=no
  12722. ;;
  12723. aix[4-9]*)
  12724. if test ia64 = "$host_cpu"; then
  12725. # On IA64, the linker does run time linking by default, so we don't
  12726. # have to do anything special.
  12727. aix_use_runtimelinking=no
  12728. exp_sym_flag='-Bexport'
  12729. no_entry_flag=
  12730. else
  12731. aix_use_runtimelinking=no
  12732. # Test if we are trying to use run time linking or normal
  12733. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12734. # have runtime linking enabled, and use it for executables.
  12735. # For shared libraries, we enable/disable runtime linking
  12736. # depending on the kind of the shared library created -
  12737. # when "with_aix_soname,aix_use_runtimelinking" is:
  12738. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12739. # "aix,yes" lib.so shared, rtl:yes, for executables
  12740. # lib.a static archive
  12741. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12742. # lib.a(lib.so.V) shared, rtl:no, for executables
  12743. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12744. # lib.a(lib.so.V) shared, rtl:no
  12745. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12746. # lib.a static archive
  12747. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12748. for ld_flag in $LDFLAGS; do
  12749. case $ld_flag in
  12750. *-brtl*)
  12751. aix_use_runtimelinking=yes
  12752. break
  12753. ;;
  12754. esac
  12755. done
  12756. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12757. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12758. # so we don't have lib.a shared libs to link our executables.
  12759. # We have to force runtime linking in this case.
  12760. aix_use_runtimelinking=yes
  12761. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12762. fi
  12763. ;;
  12764. esac
  12765. exp_sym_flag='-bexport'
  12766. no_entry_flag='-bnoentry'
  12767. fi
  12768. # When large executables or shared objects are built, AIX ld can
  12769. # have problems creating the table of contents. If linking a library
  12770. # or program results in "error TOC overflow" add -mminimal-toc to
  12771. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12772. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12773. archive_cmds_CXX=''
  12774. hardcode_direct_CXX=yes
  12775. hardcode_direct_absolute_CXX=yes
  12776. hardcode_libdir_separator_CXX=':'
  12777. link_all_deplibs_CXX=yes
  12778. file_list_spec_CXX='$wl-f,'
  12779. case $with_aix_soname,$aix_use_runtimelinking in
  12780. aix,*) ;; # no import file
  12781. svr4,* | *,yes) # use import file
  12782. # The Import File defines what to hardcode.
  12783. hardcode_direct_CXX=no
  12784. hardcode_direct_absolute_CXX=no
  12785. ;;
  12786. esac
  12787. if test yes = "$GXX"; then
  12788. case $host_os in aix4.[012]|aix4.[012].*)
  12789. # We only want to do this on AIX 4.2 and lower, the check
  12790. # below for broken collect2 doesn't work under 4.3+
  12791. collect2name=`$CC -print-prog-name=collect2`
  12792. if test -f "$collect2name" &&
  12793. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12794. then
  12795. # We have reworked collect2
  12796. :
  12797. else
  12798. # We have old collect2
  12799. hardcode_direct_CXX=unsupported
  12800. # It fails to find uninstalled libraries when the uninstalled
  12801. # path is not listed in the libpath. Setting hardcode_minus_L
  12802. # to unsupported forces relinking
  12803. hardcode_minus_L_CXX=yes
  12804. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12805. hardcode_libdir_separator_CXX=
  12806. fi
  12807. esac
  12808. shared_flag='-shared'
  12809. if test yes = "$aix_use_runtimelinking"; then
  12810. shared_flag=$shared_flag' $wl-G'
  12811. fi
  12812. # Need to ensure runtime linking is disabled for the traditional
  12813. # shared library, or the linker may eventually find shared libraries
  12814. # /with/ Import File - we do not want to mix them.
  12815. shared_flag_aix='-shared'
  12816. shared_flag_svr4='-shared $wl-G'
  12817. else
  12818. # not using gcc
  12819. if test ia64 = "$host_cpu"; then
  12820. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12821. # chokes on -Wl,-G. The following line is correct:
  12822. shared_flag='-G'
  12823. else
  12824. if test yes = "$aix_use_runtimelinking"; then
  12825. shared_flag='$wl-G'
  12826. else
  12827. shared_flag='$wl-bM:SRE'
  12828. fi
  12829. shared_flag_aix='$wl-bM:SRE'
  12830. shared_flag_svr4='$wl-G'
  12831. fi
  12832. fi
  12833. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12834. # It seems that -bexpall does not export symbols beginning with
  12835. # underscore (_), so it is better to generate a list of symbols to
  12836. # export.
  12837. always_export_symbols_CXX=yes
  12838. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12839. # Warning - without using the other runtime loading flags (-brtl),
  12840. # -berok will link without error, but may produce a broken library.
  12841. # The "-G" linker flag allows undefined symbols.
  12842. no_undefined_flag_CXX='-bernotok'
  12843. # Determine the default libpath from the value encoded in an empty
  12844. # executable.
  12845. if test set = "${lt_cv_aix_libpath+set}"; then
  12846. aix_libpath=$lt_cv_aix_libpath
  12847. else
  12848. if test ${lt_cv_aix_libpath__CXX+y}
  12849. then :
  12850. printf %s "(cached) " >&6
  12851. else $as_nop
  12852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12853. /* end confdefs.h. */
  12854. int
  12855. main (void)
  12856. {
  12857. ;
  12858. return 0;
  12859. }
  12860. _ACEOF
  12861. if ac_fn_cxx_try_link "$LINENO"
  12862. then :
  12863. lt_aix_libpath_sed='
  12864. /Import File Strings/,/^$/ {
  12865. /^0/ {
  12866. s/^0 *\([^ ]*\) *$/\1/
  12867. p
  12868. }
  12869. }'
  12870. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12871. # Check for a 64-bit object if we didn't find anything.
  12872. if test -z "$lt_cv_aix_libpath__CXX"; then
  12873. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12874. fi
  12875. fi
  12876. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12877. conftest$ac_exeext conftest.$ac_ext
  12878. if test -z "$lt_cv_aix_libpath__CXX"; then
  12879. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12880. fi
  12881. fi
  12882. aix_libpath=$lt_cv_aix_libpath__CXX
  12883. fi
  12884. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12885. 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
  12886. else
  12887. if test ia64 = "$host_cpu"; then
  12888. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12889. allow_undefined_flag_CXX="-z nodefs"
  12890. 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"
  12891. else
  12892. # Determine the default libpath from the value encoded in an
  12893. # empty executable.
  12894. if test set = "${lt_cv_aix_libpath+set}"; then
  12895. aix_libpath=$lt_cv_aix_libpath
  12896. else
  12897. if test ${lt_cv_aix_libpath__CXX+y}
  12898. then :
  12899. printf %s "(cached) " >&6
  12900. else $as_nop
  12901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12902. /* end confdefs.h. */
  12903. int
  12904. main (void)
  12905. {
  12906. ;
  12907. return 0;
  12908. }
  12909. _ACEOF
  12910. if ac_fn_cxx_try_link "$LINENO"
  12911. then :
  12912. lt_aix_libpath_sed='
  12913. /Import File Strings/,/^$/ {
  12914. /^0/ {
  12915. s/^0 *\([^ ]*\) *$/\1/
  12916. p
  12917. }
  12918. }'
  12919. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12920. # Check for a 64-bit object if we didn't find anything.
  12921. if test -z "$lt_cv_aix_libpath__CXX"; then
  12922. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12923. fi
  12924. fi
  12925. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12926. conftest$ac_exeext conftest.$ac_ext
  12927. if test -z "$lt_cv_aix_libpath__CXX"; then
  12928. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12929. fi
  12930. fi
  12931. aix_libpath=$lt_cv_aix_libpath__CXX
  12932. fi
  12933. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12934. # Warning - without using the other run time loading flags,
  12935. # -berok will link without error, but may produce a broken library.
  12936. no_undefined_flag_CXX=' $wl-bernotok'
  12937. allow_undefined_flag_CXX=' $wl-berok'
  12938. if test yes = "$with_gnu_ld"; then
  12939. # We only use this code for GNU lds that support --whole-archive.
  12940. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12941. else
  12942. # Exported symbols can be pulled into shared objects from archives
  12943. whole_archive_flag_spec_CXX='$convenience'
  12944. fi
  12945. archive_cmds_need_lc_CXX=yes
  12946. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12947. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12948. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12949. if test svr4 != "$with_aix_soname"; then
  12950. # This is similar to how AIX traditionally builds its shared
  12951. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12952. 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'
  12953. fi
  12954. if test aix != "$with_aix_soname"; then
  12955. 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'
  12956. else
  12957. # used by -dlpreopen to get the symbols
  12958. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12959. fi
  12960. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12961. fi
  12962. fi
  12963. ;;
  12964. beos*)
  12965. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12966. allow_undefined_flag_CXX=unsupported
  12967. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12968. # support --undefined. This deserves some investigation. FIXME
  12969. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12970. else
  12971. ld_shlibs_CXX=no
  12972. fi
  12973. ;;
  12974. chorus*)
  12975. case $cc_basename in
  12976. *)
  12977. # FIXME: insert proper C++ library support
  12978. ld_shlibs_CXX=no
  12979. ;;
  12980. esac
  12981. ;;
  12982. cygwin* | mingw* | pw32* | cegcc*)
  12983. case $GXX,$cc_basename in
  12984. ,cl* | no,cl*)
  12985. # Native MSVC
  12986. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12987. # no search path for DLLs.
  12988. hardcode_libdir_flag_spec_CXX=' '
  12989. allow_undefined_flag_CXX=unsupported
  12990. always_export_symbols_CXX=yes
  12991. file_list_spec_CXX='@'
  12992. # Tell ltmain to make .lib files, not .a files.
  12993. libext=lib
  12994. # Tell ltmain to make .dll files, not .so files.
  12995. shrext_cmds=.dll
  12996. # FIXME: Setting linknames here is a bad hack.
  12997. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12998. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12999. cp "$export_symbols" "$output_objdir/$soname.def";
  13000. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13001. else
  13002. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13003. fi~
  13004. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13005. linknames='
  13006. # The linker will not automatically build a static lib if we build a DLL.
  13007. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13008. enable_shared_with_static_runtimes_CXX=yes
  13009. # Don't use ranlib
  13010. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13011. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13012. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13013. case $lt_outputfile in
  13014. *.exe|*.EXE) ;;
  13015. *)
  13016. lt_outputfile=$lt_outputfile.exe
  13017. lt_tool_outputfile=$lt_tool_outputfile.exe
  13018. ;;
  13019. esac~
  13020. func_to_tool_file "$lt_outputfile"~
  13021. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13022. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13023. $RM "$lt_outputfile.manifest";
  13024. fi'
  13025. ;;
  13026. *)
  13027. # g++
  13028. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13029. # as there is no search path for DLLs.
  13030. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13031. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13032. allow_undefined_flag_CXX=unsupported
  13033. always_export_symbols_CXX=no
  13034. enable_shared_with_static_runtimes_CXX=yes
  13035. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13036. 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'
  13037. # If the export-symbols file already is a .def file, use it as
  13038. # is; otherwise, prepend EXPORTS...
  13039. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13040. cp $export_symbols $output_objdir/$soname.def;
  13041. else
  13042. echo EXPORTS > $output_objdir/$soname.def;
  13043. cat $export_symbols >> $output_objdir/$soname.def;
  13044. fi~
  13045. $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'
  13046. else
  13047. ld_shlibs_CXX=no
  13048. fi
  13049. ;;
  13050. esac
  13051. ;;
  13052. darwin* | rhapsody*)
  13053. archive_cmds_need_lc_CXX=no
  13054. hardcode_direct_CXX=no
  13055. hardcode_automatic_CXX=yes
  13056. hardcode_shlibpath_var_CXX=unsupported
  13057. if test yes = "$lt_cv_ld_force_load"; then
  13058. 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\"`'
  13059. else
  13060. whole_archive_flag_spec_CXX=''
  13061. fi
  13062. link_all_deplibs_CXX=yes
  13063. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13064. case $cc_basename in
  13065. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13066. *) _lt_dar_can_shared=$GCC ;;
  13067. esac
  13068. if test yes = "$_lt_dar_can_shared"; then
  13069. output_verbose_link_cmd=func_echo_all
  13070. 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"
  13071. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13072. 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"
  13073. 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"
  13074. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13075. 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"
  13076. 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"
  13077. fi
  13078. else
  13079. ld_shlibs_CXX=no
  13080. fi
  13081. ;;
  13082. os2*)
  13083. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13084. hardcode_minus_L_CXX=yes
  13085. allow_undefined_flag_CXX=unsupported
  13086. shrext_cmds=.dll
  13087. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13088. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13089. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13090. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13091. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13092. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13093. emximp -o $lib $output_objdir/$libname.def'
  13094. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13095. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13096. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13097. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13098. prefix_cmds="$SED"~
  13099. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13100. prefix_cmds="$prefix_cmds -e 1d";
  13101. fi~
  13102. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13103. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13104. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13105. emximp -o $lib $output_objdir/$libname.def'
  13106. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13107. enable_shared_with_static_runtimes_CXX=yes
  13108. file_list_spec_CXX='@'
  13109. ;;
  13110. dgux*)
  13111. case $cc_basename in
  13112. ec++*)
  13113. # FIXME: insert proper C++ library support
  13114. ld_shlibs_CXX=no
  13115. ;;
  13116. ghcx*)
  13117. # Green Hills C++ Compiler
  13118. # FIXME: insert proper C++ library support
  13119. ld_shlibs_CXX=no
  13120. ;;
  13121. *)
  13122. # FIXME: insert proper C++ library support
  13123. ld_shlibs_CXX=no
  13124. ;;
  13125. esac
  13126. ;;
  13127. freebsd2.*)
  13128. # C++ shared libraries reported to be fairly broken before
  13129. # switch to ELF
  13130. ld_shlibs_CXX=no
  13131. ;;
  13132. freebsd-elf*)
  13133. archive_cmds_need_lc_CXX=no
  13134. ;;
  13135. freebsd* | dragonfly* | midnightbsd*)
  13136. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13137. # conventions
  13138. ld_shlibs_CXX=yes
  13139. ;;
  13140. haiku*)
  13141. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13142. link_all_deplibs_CXX=yes
  13143. ;;
  13144. hpux9*)
  13145. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13146. hardcode_libdir_separator_CXX=:
  13147. export_dynamic_flag_spec_CXX='$wl-E'
  13148. hardcode_direct_CXX=yes
  13149. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13150. # but as the default
  13151. # location of the library.
  13152. case $cc_basename in
  13153. CC*)
  13154. # FIXME: insert proper C++ library support
  13155. ld_shlibs_CXX=no
  13156. ;;
  13157. aCC*)
  13158. 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'
  13159. # Commands to make compiler produce verbose output that lists
  13160. # what "hidden" libraries, object files and flags are used when
  13161. # linking a shared library.
  13162. #
  13163. # There doesn't appear to be a way to prevent this compiler from
  13164. # explicitly linking system object files so we need to strip them
  13165. # from the output so that they don't get included in the library
  13166. # dependencies.
  13167. 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"'
  13168. ;;
  13169. *)
  13170. if test yes = "$GXX"; then
  13171. 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'
  13172. else
  13173. # FIXME: insert proper C++ library support
  13174. ld_shlibs_CXX=no
  13175. fi
  13176. ;;
  13177. esac
  13178. ;;
  13179. hpux10*|hpux11*)
  13180. if test no = "$with_gnu_ld"; then
  13181. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13182. hardcode_libdir_separator_CXX=:
  13183. case $host_cpu in
  13184. hppa*64*|ia64*)
  13185. ;;
  13186. *)
  13187. export_dynamic_flag_spec_CXX='$wl-E'
  13188. ;;
  13189. esac
  13190. fi
  13191. case $host_cpu in
  13192. hppa*64*|ia64*)
  13193. hardcode_direct_CXX=no
  13194. hardcode_shlibpath_var_CXX=no
  13195. ;;
  13196. *)
  13197. hardcode_direct_CXX=yes
  13198. hardcode_direct_absolute_CXX=yes
  13199. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13200. # but as the default
  13201. # location of the library.
  13202. ;;
  13203. esac
  13204. case $cc_basename in
  13205. CC*)
  13206. # FIXME: insert proper C++ library support
  13207. ld_shlibs_CXX=no
  13208. ;;
  13209. aCC*)
  13210. case $host_cpu in
  13211. hppa*64*)
  13212. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13213. ;;
  13214. ia64*)
  13215. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13216. ;;
  13217. *)
  13218. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13219. ;;
  13220. esac
  13221. # Commands to make compiler produce verbose output that lists
  13222. # what "hidden" libraries, object files and flags are used when
  13223. # linking a shared library.
  13224. #
  13225. # There doesn't appear to be a way to prevent this compiler from
  13226. # explicitly linking system object files so we need to strip them
  13227. # from the output so that they don't get included in the library
  13228. # dependencies.
  13229. 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"'
  13230. ;;
  13231. *)
  13232. if test yes = "$GXX"; then
  13233. if test no = "$with_gnu_ld"; then
  13234. case $host_cpu in
  13235. hppa*64*)
  13236. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13237. ;;
  13238. ia64*)
  13239. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13240. ;;
  13241. *)
  13242. 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'
  13243. ;;
  13244. esac
  13245. fi
  13246. else
  13247. # FIXME: insert proper C++ library support
  13248. ld_shlibs_CXX=no
  13249. fi
  13250. ;;
  13251. esac
  13252. ;;
  13253. interix[3-9]*)
  13254. hardcode_direct_CXX=no
  13255. hardcode_shlibpath_var_CXX=no
  13256. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13257. export_dynamic_flag_spec_CXX='$wl-E'
  13258. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13259. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13260. # default) and relocated if they conflict, which is a slow very memory
  13261. # consuming and fragmenting process. To avoid this, we pick a random,
  13262. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13263. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13264. 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'
  13265. 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'
  13266. ;;
  13267. irix5* | irix6*)
  13268. case $cc_basename in
  13269. CC*)
  13270. # SGI C++
  13271. 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'
  13272. # Archives containing C++ object files must be created using
  13273. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13274. # necessary to make sure instantiated templates are included
  13275. # in the archive.
  13276. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13277. ;;
  13278. *)
  13279. if test yes = "$GXX"; then
  13280. if test no = "$with_gnu_ld"; then
  13281. 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'
  13282. else
  13283. 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'
  13284. fi
  13285. fi
  13286. link_all_deplibs_CXX=yes
  13287. ;;
  13288. esac
  13289. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13290. hardcode_libdir_separator_CXX=:
  13291. inherit_rpath_CXX=yes
  13292. ;;
  13293. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13294. case $cc_basename in
  13295. KCC*)
  13296. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13297. # KCC will only create a shared library if the output file
  13298. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13299. # to its proper name (with version) after linking.
  13300. 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'
  13301. 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'
  13302. # Commands to make compiler produce verbose output that lists
  13303. # what "hidden" libraries, object files and flags are used when
  13304. # linking a shared library.
  13305. #
  13306. # There doesn't appear to be a way to prevent this compiler from
  13307. # explicitly linking system object files so we need to strip them
  13308. # from the output so that they don't get included in the library
  13309. # dependencies.
  13310. 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"'
  13311. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13312. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13313. # Archives containing C++ object files must be created using
  13314. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13315. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13316. ;;
  13317. icpc* | ecpc* )
  13318. # Intel C++
  13319. with_gnu_ld=yes
  13320. # version 8.0 and above of icpc choke on multiply defined symbols
  13321. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13322. # earlier do not add the objects themselves.
  13323. case `$CC -V 2>&1` in
  13324. *"Version 7."*)
  13325. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13326. 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'
  13327. ;;
  13328. *) # Version 8.0 or newer
  13329. tmp_idyn=
  13330. case $host_cpu in
  13331. ia64*) tmp_idyn=' -i_dynamic';;
  13332. esac
  13333. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13334. 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'
  13335. ;;
  13336. esac
  13337. archive_cmds_need_lc_CXX=no
  13338. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13339. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13340. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13341. ;;
  13342. pgCC* | pgcpp*)
  13343. # Portland Group C++ compiler
  13344. case `$CC -V` in
  13345. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13346. prelink_cmds_CXX='tpldir=Template.dir~
  13347. rm -rf $tpldir~
  13348. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13349. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13350. old_archive_cmds_CXX='tpldir=Template.dir~
  13351. rm -rf $tpldir~
  13352. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13353. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13354. $RANLIB $oldlib'
  13355. archive_cmds_CXX='tpldir=Template.dir~
  13356. rm -rf $tpldir~
  13357. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13358. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13359. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13360. rm -rf $tpldir~
  13361. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13362. $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'
  13363. ;;
  13364. *) # Version 6 and above use weak symbols
  13365. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13366. 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'
  13367. ;;
  13368. esac
  13369. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13370. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13371. 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'
  13372. ;;
  13373. cxx*)
  13374. # Compaq C++
  13375. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13376. 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'
  13377. runpath_var=LD_RUN_PATH
  13378. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13379. hardcode_libdir_separator_CXX=:
  13380. # Commands to make compiler produce verbose output that lists
  13381. # what "hidden" libraries, object files and flags are used when
  13382. # linking a shared library.
  13383. #
  13384. # There doesn't appear to be a way to prevent this compiler from
  13385. # explicitly linking system object files so we need to strip them
  13386. # from the output so that they don't get included in the library
  13387. # dependencies.
  13388. 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'
  13389. ;;
  13390. xl* | mpixl* | bgxl*)
  13391. # IBM XL 8.0 on PPC, with GNU ld
  13392. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13393. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13394. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13395. if test yes = "$supports_anon_versioning"; then
  13396. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13397. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13398. echo "local: *; };" >> $output_objdir/$libname.ver~
  13399. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13400. fi
  13401. ;;
  13402. *)
  13403. case `$CC -V 2>&1 | sed 5q` in
  13404. *Sun\ C*)
  13405. # Sun C++ 5.9
  13406. no_undefined_flag_CXX=' -zdefs'
  13407. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13408. 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'
  13409. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13410. 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'
  13411. compiler_needs_object_CXX=yes
  13412. # Not sure whether something based on
  13413. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13414. # would be better.
  13415. output_verbose_link_cmd='func_echo_all'
  13416. # Archives containing C++ object files must be created using
  13417. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13418. # necessary to make sure instantiated templates are included
  13419. # in the archive.
  13420. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13421. ;;
  13422. esac
  13423. ;;
  13424. esac
  13425. ;;
  13426. lynxos*)
  13427. # FIXME: insert proper C++ library support
  13428. ld_shlibs_CXX=no
  13429. ;;
  13430. m88k*)
  13431. # FIXME: insert proper C++ library support
  13432. ld_shlibs_CXX=no
  13433. ;;
  13434. mvs*)
  13435. case $cc_basename in
  13436. cxx*)
  13437. # FIXME: insert proper C++ library support
  13438. ld_shlibs_CXX=no
  13439. ;;
  13440. *)
  13441. # FIXME: insert proper C++ library support
  13442. ld_shlibs_CXX=no
  13443. ;;
  13444. esac
  13445. ;;
  13446. netbsd*)
  13447. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13448. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13449. wlarc=
  13450. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13451. hardcode_direct_CXX=yes
  13452. hardcode_shlibpath_var_CXX=no
  13453. fi
  13454. # Workaround some broken pre-1.5 toolchains
  13455. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13456. ;;
  13457. *nto* | *qnx*)
  13458. ld_shlibs_CXX=yes
  13459. ;;
  13460. openbsd* | bitrig*)
  13461. if test -f /usr/libexec/ld.so; then
  13462. hardcode_direct_CXX=yes
  13463. hardcode_shlibpath_var_CXX=no
  13464. hardcode_direct_absolute_CXX=yes
  13465. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13466. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13467. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13468. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13469. export_dynamic_flag_spec_CXX='$wl-E'
  13470. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13471. fi
  13472. output_verbose_link_cmd=func_echo_all
  13473. else
  13474. ld_shlibs_CXX=no
  13475. fi
  13476. ;;
  13477. osf3* | osf4* | osf5*)
  13478. case $cc_basename in
  13479. KCC*)
  13480. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13481. # KCC will only create a shared library if the output file
  13482. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13483. # to its proper name (with version) after linking.
  13484. 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'
  13485. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13486. hardcode_libdir_separator_CXX=:
  13487. # Archives containing C++ object files must be created using
  13488. # the KAI C++ compiler.
  13489. case $host in
  13490. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13491. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13492. esac
  13493. ;;
  13494. RCC*)
  13495. # Rational C++ 2.4.1
  13496. # FIXME: insert proper C++ library support
  13497. ld_shlibs_CXX=no
  13498. ;;
  13499. cxx*)
  13500. case $host in
  13501. osf3*)
  13502. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13503. 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'
  13504. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13505. ;;
  13506. *)
  13507. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13508. 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'
  13509. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13510. echo "-hidden">> $lib.exp~
  13511. $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~
  13512. $RM $lib.exp'
  13513. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13514. ;;
  13515. esac
  13516. hardcode_libdir_separator_CXX=:
  13517. # Commands to make compiler produce verbose output that lists
  13518. # what "hidden" libraries, object files and flags are used when
  13519. # linking a shared library.
  13520. #
  13521. # There doesn't appear to be a way to prevent this compiler from
  13522. # explicitly linking system object files so we need to strip them
  13523. # from the output so that they don't get included in the library
  13524. # dependencies.
  13525. 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"'
  13526. ;;
  13527. *)
  13528. if test yes,no = "$GXX,$with_gnu_ld"; then
  13529. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13530. case $host in
  13531. osf3*)
  13532. 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'
  13533. ;;
  13534. *)
  13535. 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'
  13536. ;;
  13537. esac
  13538. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13539. hardcode_libdir_separator_CXX=:
  13540. # Commands to make compiler produce verbose output that lists
  13541. # what "hidden" libraries, object files and flags are used when
  13542. # linking a shared library.
  13543. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13544. else
  13545. # FIXME: insert proper C++ library support
  13546. ld_shlibs_CXX=no
  13547. fi
  13548. ;;
  13549. esac
  13550. ;;
  13551. psos*)
  13552. # FIXME: insert proper C++ library support
  13553. ld_shlibs_CXX=no
  13554. ;;
  13555. sunos4*)
  13556. case $cc_basename in
  13557. CC*)
  13558. # Sun C++ 4.x
  13559. # FIXME: insert proper C++ library support
  13560. ld_shlibs_CXX=no
  13561. ;;
  13562. lcc*)
  13563. # Lucid
  13564. # FIXME: insert proper C++ library support
  13565. ld_shlibs_CXX=no
  13566. ;;
  13567. *)
  13568. # FIXME: insert proper C++ library support
  13569. ld_shlibs_CXX=no
  13570. ;;
  13571. esac
  13572. ;;
  13573. solaris*)
  13574. case $cc_basename in
  13575. CC* | sunCC*)
  13576. # Sun C++ 4.2, 5.x and Centerline C++
  13577. archive_cmds_need_lc_CXX=yes
  13578. no_undefined_flag_CXX=' -zdefs'
  13579. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13580. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13581. $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'
  13582. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13583. hardcode_shlibpath_var_CXX=no
  13584. case $host_os in
  13585. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13586. *)
  13587. # The compiler driver will combine and reorder linker options,
  13588. # but understands '-z linker_flag'.
  13589. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13590. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13591. ;;
  13592. esac
  13593. link_all_deplibs_CXX=yes
  13594. output_verbose_link_cmd='func_echo_all'
  13595. # Archives containing C++ object files must be created using
  13596. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13597. # necessary to make sure instantiated templates are included
  13598. # in the archive.
  13599. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13600. ;;
  13601. gcx*)
  13602. # Green Hills C++ Compiler
  13603. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13604. # The C++ compiler must be used to create the archive.
  13605. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13606. ;;
  13607. *)
  13608. # GNU C++ compiler with Solaris linker
  13609. if test yes,no = "$GXX,$with_gnu_ld"; then
  13610. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13611. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13612. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13613. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13614. $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'
  13615. # Commands to make compiler produce verbose output that lists
  13616. # what "hidden" libraries, object files and flags are used when
  13617. # linking a shared library.
  13618. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13619. else
  13620. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13621. # platform.
  13622. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13623. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13624. $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'
  13625. # Commands to make compiler produce verbose output that lists
  13626. # what "hidden" libraries, object files and flags are used when
  13627. # linking a shared library.
  13628. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13629. fi
  13630. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13631. case $host_os in
  13632. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13633. *)
  13634. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13635. ;;
  13636. esac
  13637. fi
  13638. ;;
  13639. esac
  13640. ;;
  13641. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13642. no_undefined_flag_CXX='$wl-z,text'
  13643. archive_cmds_need_lc_CXX=no
  13644. hardcode_shlibpath_var_CXX=no
  13645. runpath_var='LD_RUN_PATH'
  13646. case $cc_basename in
  13647. CC*)
  13648. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13649. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13650. ;;
  13651. *)
  13652. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13653. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13654. ;;
  13655. esac
  13656. ;;
  13657. sysv5* | sco3.2v5* | sco5v6*)
  13658. # Note: We CANNOT use -z defs as we might desire, because we do not
  13659. # link with -lc, and that would cause any symbols used from libc to
  13660. # always be unresolved, which means just about no library would
  13661. # ever link correctly. If we're not using GNU ld we use -z text
  13662. # though, which does catch some bad symbols but isn't as heavy-handed
  13663. # as -z defs.
  13664. no_undefined_flag_CXX='$wl-z,text'
  13665. allow_undefined_flag_CXX='$wl-z,nodefs'
  13666. archive_cmds_need_lc_CXX=no
  13667. hardcode_shlibpath_var_CXX=no
  13668. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13669. hardcode_libdir_separator_CXX=':'
  13670. link_all_deplibs_CXX=yes
  13671. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13672. runpath_var='LD_RUN_PATH'
  13673. case $cc_basename in
  13674. CC*)
  13675. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13676. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13677. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13678. '"$old_archive_cmds_CXX"
  13679. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13680. '"$reload_cmds_CXX"
  13681. ;;
  13682. *)
  13683. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13684. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13685. ;;
  13686. esac
  13687. ;;
  13688. tandem*)
  13689. case $cc_basename in
  13690. NCC*)
  13691. # NonStop-UX NCC 3.20
  13692. # FIXME: insert proper C++ library support
  13693. ld_shlibs_CXX=no
  13694. ;;
  13695. *)
  13696. # FIXME: insert proper C++ library support
  13697. ld_shlibs_CXX=no
  13698. ;;
  13699. esac
  13700. ;;
  13701. vxworks*)
  13702. # FIXME: insert proper C++ library support
  13703. ld_shlibs_CXX=no
  13704. ;;
  13705. *)
  13706. # FIXME: insert proper C++ library support
  13707. ld_shlibs_CXX=no
  13708. ;;
  13709. esac
  13710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13711. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13712. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13713. GCC_CXX=$GXX
  13714. LD_CXX=$LD
  13715. ## CAVEAT EMPTOR:
  13716. ## There is no encapsulation within the following macros, do not change
  13717. ## the running order or otherwise move them around unless you know exactly
  13718. ## what you are doing...
  13719. # Dependencies to place before and after the object being linked:
  13720. predep_objects_CXX=
  13721. postdep_objects_CXX=
  13722. predeps_CXX=
  13723. postdeps_CXX=
  13724. compiler_lib_search_path_CXX=
  13725. cat > conftest.$ac_ext <<_LT_EOF
  13726. class Foo
  13727. {
  13728. public:
  13729. Foo (void) { a = 0; }
  13730. private:
  13731. int a;
  13732. };
  13733. _LT_EOF
  13734. _lt_libdeps_save_CFLAGS=$CFLAGS
  13735. case "$CC $CFLAGS " in #(
  13736. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13737. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13738. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13739. esac
  13740. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13741. (eval $ac_compile) 2>&5
  13742. ac_status=$?
  13743. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13744. test $ac_status = 0; }; then
  13745. # Parse the compiler output and extract the necessary
  13746. # objects, libraries and library flags.
  13747. # Sentinel used to keep track of whether or not we are before
  13748. # the conftest object file.
  13749. pre_test_object_deps_done=no
  13750. for p in `eval "$output_verbose_link_cmd"`; do
  13751. case $prev$p in
  13752. -L* | -R* | -l*)
  13753. # Some compilers place space between "-{L,R}" and the path.
  13754. # Remove the space.
  13755. if test x-L = "x$p" ||
  13756. test x-R = "x$p" ||
  13757. test x-l = "x$p"; then
  13758. prev=$p
  13759. continue
  13760. fi
  13761. # Expand the sysroot to ease extracting the directories later.
  13762. if test -z "$prev"; then
  13763. case $p in
  13764. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13765. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13766. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13767. esac
  13768. fi
  13769. case $p in
  13770. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13771. esac
  13772. if test no = "$pre_test_object_deps_done"; then
  13773. case $prev in
  13774. -L | -R)
  13775. # Internal compiler library paths should come after those
  13776. # provided the user. The postdeps already come after the
  13777. # user supplied libs so there is no need to process them.
  13778. if test -z "$compiler_lib_search_path_CXX"; then
  13779. compiler_lib_search_path_CXX=$prev$p
  13780. else
  13781. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13782. fi
  13783. ;;
  13784. # The "-l" case would never come before the object being
  13785. # linked, so don't bother handling this case.
  13786. esac
  13787. else
  13788. if test -z "$postdeps_CXX"; then
  13789. postdeps_CXX=$prev$p
  13790. else
  13791. postdeps_CXX="${postdeps_CXX} $prev$p"
  13792. fi
  13793. fi
  13794. prev=
  13795. ;;
  13796. *.lto.$objext) ;; # Ignore GCC LTO objects
  13797. *.$objext)
  13798. # This assumes that the test object file only shows up
  13799. # once in the compiler output.
  13800. if test "$p" = "conftest.$objext"; then
  13801. pre_test_object_deps_done=yes
  13802. continue
  13803. fi
  13804. if test no = "$pre_test_object_deps_done"; then
  13805. if test -z "$predep_objects_CXX"; then
  13806. predep_objects_CXX=$p
  13807. else
  13808. predep_objects_CXX="$predep_objects_CXX $p"
  13809. fi
  13810. else
  13811. if test -z "$postdep_objects_CXX"; then
  13812. postdep_objects_CXX=$p
  13813. else
  13814. postdep_objects_CXX="$postdep_objects_CXX $p"
  13815. fi
  13816. fi
  13817. ;;
  13818. *) ;; # Ignore the rest.
  13819. esac
  13820. done
  13821. # Clean up.
  13822. rm -f a.out a.exe
  13823. else
  13824. echo "libtool.m4: error: problem compiling CXX test program"
  13825. fi
  13826. $RM -f confest.$objext
  13827. CFLAGS=$_lt_libdeps_save_CFLAGS
  13828. # PORTME: override above test on systems where it is broken
  13829. case $host_os in
  13830. interix[3-9]*)
  13831. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13832. # hack all around it, let's just trust "g++" to DTRT.
  13833. predep_objects_CXX=
  13834. postdep_objects_CXX=
  13835. postdeps_CXX=
  13836. ;;
  13837. esac
  13838. case " $postdeps_CXX " in
  13839. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13840. esac
  13841. compiler_lib_search_dirs_CXX=
  13842. if test -n "${compiler_lib_search_path_CXX}"; then
  13843. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13844. fi
  13845. lt_prog_compiler_wl_CXX=
  13846. lt_prog_compiler_pic_CXX=
  13847. lt_prog_compiler_static_CXX=
  13848. # C++ specific cases for pic, static, wl, etc.
  13849. if test yes = "$GXX"; then
  13850. lt_prog_compiler_wl_CXX='-Wl,'
  13851. lt_prog_compiler_static_CXX='-static'
  13852. case $host_os in
  13853. aix*)
  13854. # All AIX code is PIC.
  13855. if test ia64 = "$host_cpu"; then
  13856. # AIX 5 now supports IA64 processor
  13857. lt_prog_compiler_static_CXX='-Bstatic'
  13858. fi
  13859. lt_prog_compiler_pic_CXX='-fPIC'
  13860. ;;
  13861. amigaos*)
  13862. case $host_cpu in
  13863. powerpc)
  13864. # see comment about AmigaOS4 .so support
  13865. lt_prog_compiler_pic_CXX='-fPIC'
  13866. ;;
  13867. m68k)
  13868. # FIXME: we need at least 68020 code to build shared libraries, but
  13869. # adding the '-m68020' flag to GCC prevents building anything better,
  13870. # like '-m68040'.
  13871. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13872. ;;
  13873. esac
  13874. ;;
  13875. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13876. # PIC is the default for these OSes.
  13877. ;;
  13878. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13879. # This hack is so that the source file can tell whether it is being
  13880. # built for inclusion in a dll (and should export symbols for example).
  13881. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13882. # (--disable-auto-import) libraries
  13883. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13884. case $host_os in
  13885. os2*)
  13886. lt_prog_compiler_static_CXX='$wl-static'
  13887. ;;
  13888. esac
  13889. ;;
  13890. darwin* | rhapsody*)
  13891. # PIC is the default on this platform
  13892. # Common symbols not allowed in MH_DYLIB files
  13893. lt_prog_compiler_pic_CXX='-fno-common'
  13894. ;;
  13895. *djgpp*)
  13896. # DJGPP does not support shared libraries at all
  13897. lt_prog_compiler_pic_CXX=
  13898. ;;
  13899. haiku*)
  13900. # PIC is the default for Haiku.
  13901. # The "-static" flag exists, but is broken.
  13902. lt_prog_compiler_static_CXX=
  13903. ;;
  13904. interix[3-9]*)
  13905. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13906. # Instead, we relocate shared libraries at runtime.
  13907. ;;
  13908. sysv4*MP*)
  13909. if test -d /usr/nec; then
  13910. lt_prog_compiler_pic_CXX=-Kconform_pic
  13911. fi
  13912. ;;
  13913. hpux*)
  13914. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13915. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13916. # sets the default TLS model and affects inlining.
  13917. case $host_cpu in
  13918. hppa*64*)
  13919. ;;
  13920. *)
  13921. lt_prog_compiler_pic_CXX='-fPIC'
  13922. ;;
  13923. esac
  13924. ;;
  13925. *qnx* | *nto*)
  13926. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13927. # it will coredump.
  13928. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13929. ;;
  13930. *)
  13931. lt_prog_compiler_pic_CXX='-fPIC'
  13932. ;;
  13933. esac
  13934. else
  13935. case $host_os in
  13936. aix[4-9]*)
  13937. # All AIX code is PIC.
  13938. if test ia64 = "$host_cpu"; then
  13939. # AIX 5 now supports IA64 processor
  13940. lt_prog_compiler_static_CXX='-Bstatic'
  13941. else
  13942. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13943. fi
  13944. ;;
  13945. chorus*)
  13946. case $cc_basename in
  13947. cxch68*)
  13948. # Green Hills C++ Compiler
  13949. # _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"
  13950. ;;
  13951. esac
  13952. ;;
  13953. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13954. # This hack is so that the source file can tell whether it is being
  13955. # built for inclusion in a dll (and should export symbols for example).
  13956. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13957. ;;
  13958. dgux*)
  13959. case $cc_basename in
  13960. ec++*)
  13961. lt_prog_compiler_pic_CXX='-KPIC'
  13962. ;;
  13963. ghcx*)
  13964. # Green Hills C++ Compiler
  13965. lt_prog_compiler_pic_CXX='-pic'
  13966. ;;
  13967. *)
  13968. ;;
  13969. esac
  13970. ;;
  13971. freebsd* | dragonfly* | midnightbsd*)
  13972. # FreeBSD uses GNU C++
  13973. ;;
  13974. hpux9* | hpux10* | hpux11*)
  13975. case $cc_basename in
  13976. CC*)
  13977. lt_prog_compiler_wl_CXX='-Wl,'
  13978. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13979. if test ia64 != "$host_cpu"; then
  13980. lt_prog_compiler_pic_CXX='+Z'
  13981. fi
  13982. ;;
  13983. aCC*)
  13984. lt_prog_compiler_wl_CXX='-Wl,'
  13985. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13986. case $host_cpu in
  13987. hppa*64*|ia64*)
  13988. # +Z the default
  13989. ;;
  13990. *)
  13991. lt_prog_compiler_pic_CXX='+Z'
  13992. ;;
  13993. esac
  13994. ;;
  13995. *)
  13996. ;;
  13997. esac
  13998. ;;
  13999. interix*)
  14000. # This is c89, which is MS Visual C++ (no shared libs)
  14001. # Anyone wants to do a port?
  14002. ;;
  14003. irix5* | irix6* | nonstopux*)
  14004. case $cc_basename in
  14005. CC*)
  14006. lt_prog_compiler_wl_CXX='-Wl,'
  14007. lt_prog_compiler_static_CXX='-non_shared'
  14008. # CC pic flag -KPIC is the default.
  14009. ;;
  14010. *)
  14011. ;;
  14012. esac
  14013. ;;
  14014. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14015. case $cc_basename in
  14016. KCC*)
  14017. # KAI C++ Compiler
  14018. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14019. lt_prog_compiler_pic_CXX='-fPIC'
  14020. ;;
  14021. ecpc* )
  14022. # old Intel C++ for x86_64, which still supported -KPIC.
  14023. lt_prog_compiler_wl_CXX='-Wl,'
  14024. lt_prog_compiler_pic_CXX='-KPIC'
  14025. lt_prog_compiler_static_CXX='-static'
  14026. ;;
  14027. icpc* )
  14028. # Intel C++, used to be incompatible with GCC.
  14029. # ICC 10 doesn't accept -KPIC any more.
  14030. lt_prog_compiler_wl_CXX='-Wl,'
  14031. lt_prog_compiler_pic_CXX='-fPIC'
  14032. lt_prog_compiler_static_CXX='-static'
  14033. ;;
  14034. pgCC* | pgcpp*)
  14035. # Portland Group C++ compiler
  14036. lt_prog_compiler_wl_CXX='-Wl,'
  14037. lt_prog_compiler_pic_CXX='-fpic'
  14038. lt_prog_compiler_static_CXX='-Bstatic'
  14039. ;;
  14040. cxx*)
  14041. # Compaq C++
  14042. # Make sure the PIC flag is empty. It appears that all Alpha
  14043. # Linux and Compaq Tru64 Unix objects are PIC.
  14044. lt_prog_compiler_pic_CXX=
  14045. lt_prog_compiler_static_CXX='-non_shared'
  14046. ;;
  14047. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14048. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14049. lt_prog_compiler_wl_CXX='-Wl,'
  14050. lt_prog_compiler_pic_CXX='-qpic'
  14051. lt_prog_compiler_static_CXX='-qstaticlink'
  14052. ;;
  14053. *)
  14054. case `$CC -V 2>&1 | sed 5q` in
  14055. *Sun\ C*)
  14056. # Sun C++ 5.9
  14057. lt_prog_compiler_pic_CXX='-KPIC'
  14058. lt_prog_compiler_static_CXX='-Bstatic'
  14059. lt_prog_compiler_wl_CXX='-Qoption ld '
  14060. ;;
  14061. esac
  14062. ;;
  14063. esac
  14064. ;;
  14065. lynxos*)
  14066. ;;
  14067. m88k*)
  14068. ;;
  14069. mvs*)
  14070. case $cc_basename in
  14071. cxx*)
  14072. lt_prog_compiler_pic_CXX='-W c,exportall'
  14073. ;;
  14074. *)
  14075. ;;
  14076. esac
  14077. ;;
  14078. netbsd*)
  14079. ;;
  14080. *qnx* | *nto*)
  14081. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14082. # it will coredump.
  14083. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14084. ;;
  14085. osf3* | osf4* | osf5*)
  14086. case $cc_basename in
  14087. KCC*)
  14088. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14089. ;;
  14090. RCC*)
  14091. # Rational C++ 2.4.1
  14092. lt_prog_compiler_pic_CXX='-pic'
  14093. ;;
  14094. cxx*)
  14095. # Digital/Compaq C++
  14096. lt_prog_compiler_wl_CXX='-Wl,'
  14097. # Make sure the PIC flag is empty. It appears that all Alpha
  14098. # Linux and Compaq Tru64 Unix objects are PIC.
  14099. lt_prog_compiler_pic_CXX=
  14100. lt_prog_compiler_static_CXX='-non_shared'
  14101. ;;
  14102. *)
  14103. ;;
  14104. esac
  14105. ;;
  14106. psos*)
  14107. ;;
  14108. solaris*)
  14109. case $cc_basename in
  14110. CC* | sunCC*)
  14111. # Sun C++ 4.2, 5.x and Centerline C++
  14112. lt_prog_compiler_pic_CXX='-KPIC'
  14113. lt_prog_compiler_static_CXX='-Bstatic'
  14114. lt_prog_compiler_wl_CXX='-Qoption ld '
  14115. ;;
  14116. gcx*)
  14117. # Green Hills C++ Compiler
  14118. lt_prog_compiler_pic_CXX='-PIC'
  14119. ;;
  14120. *)
  14121. ;;
  14122. esac
  14123. ;;
  14124. sunos4*)
  14125. case $cc_basename in
  14126. CC*)
  14127. # Sun C++ 4.x
  14128. lt_prog_compiler_pic_CXX='-pic'
  14129. lt_prog_compiler_static_CXX='-Bstatic'
  14130. ;;
  14131. lcc*)
  14132. # Lucid
  14133. lt_prog_compiler_pic_CXX='-pic'
  14134. ;;
  14135. *)
  14136. ;;
  14137. esac
  14138. ;;
  14139. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14140. case $cc_basename in
  14141. CC*)
  14142. lt_prog_compiler_wl_CXX='-Wl,'
  14143. lt_prog_compiler_pic_CXX='-KPIC'
  14144. lt_prog_compiler_static_CXX='-Bstatic'
  14145. ;;
  14146. esac
  14147. ;;
  14148. tandem*)
  14149. case $cc_basename in
  14150. NCC*)
  14151. # NonStop-UX NCC 3.20
  14152. lt_prog_compiler_pic_CXX='-KPIC'
  14153. ;;
  14154. *)
  14155. ;;
  14156. esac
  14157. ;;
  14158. vxworks*)
  14159. ;;
  14160. *)
  14161. lt_prog_compiler_can_build_shared_CXX=no
  14162. ;;
  14163. esac
  14164. fi
  14165. case $host_os in
  14166. # For platforms that do not support PIC, -DPIC is meaningless:
  14167. *djgpp*)
  14168. lt_prog_compiler_pic_CXX=
  14169. ;;
  14170. *)
  14171. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14172. ;;
  14173. esac
  14174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14175. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14176. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14177. then :
  14178. printf %s "(cached) " >&6
  14179. else $as_nop
  14180. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14181. fi
  14182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14183. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14184. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14185. #
  14186. # Check to make sure the PIC flag actually works.
  14187. #
  14188. if test -n "$lt_prog_compiler_pic_CXX"; then
  14189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14190. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14191. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14192. then :
  14193. printf %s "(cached) " >&6
  14194. else $as_nop
  14195. lt_cv_prog_compiler_pic_works_CXX=no
  14196. ac_outfile=conftest.$ac_objext
  14197. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14198. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14199. # Insert the option either (1) after the last *FLAGS variable, or
  14200. # (2) before a word containing "conftest.", or (3) at the end.
  14201. # Note that $ac_compile itself does not contain backslashes and begins
  14202. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14203. # The option is referenced via a variable to avoid confusing sed.
  14204. lt_compile=`echo "$ac_compile" | $SED \
  14205. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14206. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14207. -e 's:$: $lt_compiler_flag:'`
  14208. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14209. (eval "$lt_compile" 2>conftest.err)
  14210. ac_status=$?
  14211. cat conftest.err >&5
  14212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14213. if (exit $ac_status) && test -s "$ac_outfile"; then
  14214. # The compiler can only warn and ignore the option if not recognized
  14215. # So say no if there are warnings other than the usual output.
  14216. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14217. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14218. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14219. lt_cv_prog_compiler_pic_works_CXX=yes
  14220. fi
  14221. fi
  14222. $RM conftest*
  14223. fi
  14224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14225. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14226. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14227. case $lt_prog_compiler_pic_CXX in
  14228. "" | " "*) ;;
  14229. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14230. esac
  14231. else
  14232. lt_prog_compiler_pic_CXX=
  14233. lt_prog_compiler_can_build_shared_CXX=no
  14234. fi
  14235. fi
  14236. #
  14237. # Check to make sure the static flag actually works.
  14238. #
  14239. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14241. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14242. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14243. then :
  14244. printf %s "(cached) " >&6
  14245. else $as_nop
  14246. lt_cv_prog_compiler_static_works_CXX=no
  14247. save_LDFLAGS=$LDFLAGS
  14248. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14249. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14250. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14251. # The linker can only warn and ignore the option if not recognized
  14252. # So say no if there are warnings
  14253. if test -s conftest.err; then
  14254. # Append any errors to the config.log.
  14255. cat conftest.err 1>&5
  14256. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14257. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14258. if diff conftest.exp conftest.er2 >/dev/null; then
  14259. lt_cv_prog_compiler_static_works_CXX=yes
  14260. fi
  14261. else
  14262. lt_cv_prog_compiler_static_works_CXX=yes
  14263. fi
  14264. fi
  14265. $RM -r conftest*
  14266. LDFLAGS=$save_LDFLAGS
  14267. fi
  14268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14269. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14270. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14271. :
  14272. else
  14273. lt_prog_compiler_static_CXX=
  14274. fi
  14275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14276. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14277. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14278. then :
  14279. printf %s "(cached) " >&6
  14280. else $as_nop
  14281. lt_cv_prog_compiler_c_o_CXX=no
  14282. $RM -r conftest 2>/dev/null
  14283. mkdir conftest
  14284. cd conftest
  14285. mkdir out
  14286. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14287. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14288. # Insert the option either (1) after the last *FLAGS variable, or
  14289. # (2) before a word containing "conftest.", or (3) at the end.
  14290. # Note that $ac_compile itself does not contain backslashes and begins
  14291. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14292. lt_compile=`echo "$ac_compile" | $SED \
  14293. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14294. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14295. -e 's:$: $lt_compiler_flag:'`
  14296. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14297. (eval "$lt_compile" 2>out/conftest.err)
  14298. ac_status=$?
  14299. cat out/conftest.err >&5
  14300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14301. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14302. then
  14303. # The compiler can only warn and ignore the option if not recognized
  14304. # So say no if there are warnings
  14305. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14306. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14307. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14308. lt_cv_prog_compiler_c_o_CXX=yes
  14309. fi
  14310. fi
  14311. chmod u+w . 2>&5
  14312. $RM conftest*
  14313. # SGI C++ compiler will create directory out/ii_files/ for
  14314. # template instantiation
  14315. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14316. $RM out/* && rmdir out
  14317. cd ..
  14318. $RM -r conftest
  14319. $RM conftest*
  14320. fi
  14321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14322. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14324. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14325. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14326. then :
  14327. printf %s "(cached) " >&6
  14328. else $as_nop
  14329. lt_cv_prog_compiler_c_o_CXX=no
  14330. $RM -r conftest 2>/dev/null
  14331. mkdir conftest
  14332. cd conftest
  14333. mkdir out
  14334. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14335. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14336. # Insert the option either (1) after the last *FLAGS variable, or
  14337. # (2) before a word containing "conftest.", or (3) at the end.
  14338. # Note that $ac_compile itself does not contain backslashes and begins
  14339. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14340. lt_compile=`echo "$ac_compile" | $SED \
  14341. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14342. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14343. -e 's:$: $lt_compiler_flag:'`
  14344. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14345. (eval "$lt_compile" 2>out/conftest.err)
  14346. ac_status=$?
  14347. cat out/conftest.err >&5
  14348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14349. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14350. then
  14351. # The compiler can only warn and ignore the option if not recognized
  14352. # So say no if there are warnings
  14353. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14354. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14355. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14356. lt_cv_prog_compiler_c_o_CXX=yes
  14357. fi
  14358. fi
  14359. chmod u+w . 2>&5
  14360. $RM conftest*
  14361. # SGI C++ compiler will create directory out/ii_files/ for
  14362. # template instantiation
  14363. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14364. $RM out/* && rmdir out
  14365. cd ..
  14366. $RM -r conftest
  14367. $RM conftest*
  14368. fi
  14369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14370. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14371. hard_links=nottested
  14372. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14373. # do not overwrite the value of need_locks provided by the user
  14374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14375. printf %s "checking if we can lock with hard links... " >&6; }
  14376. hard_links=yes
  14377. $RM conftest*
  14378. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14379. touch conftest.a
  14380. ln conftest.a conftest.b 2>&5 || hard_links=no
  14381. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14383. printf "%s\n" "$hard_links" >&6; }
  14384. if test no = "$hard_links"; then
  14385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14386. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14387. need_locks=warn
  14388. fi
  14389. else
  14390. need_locks=no
  14391. fi
  14392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14393. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14394. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14395. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14396. case $host_os in
  14397. aix[4-9]*)
  14398. # If we're using GNU nm, then we don't want the "-C" option.
  14399. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14400. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14401. # weak defined symbols like other global defined symbols, whereas
  14402. # GNU nm marks them as "W".
  14403. # While the 'weak' keyword is ignored in the Export File, we need
  14404. # it in the Import File for the 'aix-soname' feature, so we have
  14405. # to replace the "-B" option with "-P" for AIX nm.
  14406. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14407. 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'
  14408. else
  14409. 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'
  14410. fi
  14411. ;;
  14412. pw32*)
  14413. export_symbols_cmds_CXX=$ltdll_cmds
  14414. ;;
  14415. cygwin* | mingw* | cegcc*)
  14416. case $cc_basename in
  14417. cl*)
  14418. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14419. ;;
  14420. *)
  14421. 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'
  14422. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14423. ;;
  14424. esac
  14425. ;;
  14426. *)
  14427. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14428. ;;
  14429. esac
  14430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14431. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14432. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14433. with_gnu_ld_CXX=$with_gnu_ld
  14434. #
  14435. # Do we need to explicitly link libc?
  14436. #
  14437. case "x$archive_cmds_need_lc_CXX" in
  14438. x|xyes)
  14439. # Assume -lc should be added
  14440. archive_cmds_need_lc_CXX=yes
  14441. if test yes,yes = "$GCC,$enable_shared"; then
  14442. case $archive_cmds_CXX in
  14443. *'~'*)
  14444. # FIXME: we may have to deal with multi-command sequences.
  14445. ;;
  14446. '$CC '*)
  14447. # Test whether the compiler implicitly links with -lc since on some
  14448. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14449. # to ld, don't add -lc before -lgcc.
  14450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14451. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14452. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14453. then :
  14454. printf %s "(cached) " >&6
  14455. else $as_nop
  14456. $RM conftest*
  14457. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14458. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14459. (eval $ac_compile) 2>&5
  14460. ac_status=$?
  14461. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14462. test $ac_status = 0; } 2>conftest.err; then
  14463. soname=conftest
  14464. lib=conftest
  14465. libobjs=conftest.$ac_objext
  14466. deplibs=
  14467. wl=$lt_prog_compiler_wl_CXX
  14468. pic_flag=$lt_prog_compiler_pic_CXX
  14469. compiler_flags=-v
  14470. linker_flags=-v
  14471. verstring=
  14472. output_objdir=.
  14473. libname=conftest
  14474. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14475. allow_undefined_flag_CXX=
  14476. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14477. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14478. ac_status=$?
  14479. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14480. test $ac_status = 0; }
  14481. then
  14482. lt_cv_archive_cmds_need_lc_CXX=no
  14483. else
  14484. lt_cv_archive_cmds_need_lc_CXX=yes
  14485. fi
  14486. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14487. else
  14488. cat conftest.err 1>&5
  14489. fi
  14490. $RM conftest*
  14491. fi
  14492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14493. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14494. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14495. ;;
  14496. esac
  14497. fi
  14498. ;;
  14499. esac
  14500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14501. printf %s "checking dynamic linker characteristics... " >&6; }
  14502. library_names_spec=
  14503. libname_spec='lib$name'
  14504. soname_spec=
  14505. shrext_cmds=.so
  14506. postinstall_cmds=
  14507. postuninstall_cmds=
  14508. finish_cmds=
  14509. finish_eval=
  14510. shlibpath_var=
  14511. shlibpath_overrides_runpath=unknown
  14512. version_type=none
  14513. dynamic_linker="$host_os ld.so"
  14514. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14515. need_lib_prefix=unknown
  14516. hardcode_into_libs=no
  14517. # when you set need_version to no, make sure it does not cause -set_version
  14518. # flags to be left without arguments
  14519. need_version=unknown
  14520. case $host_os in
  14521. aix3*)
  14522. version_type=linux # correct to gnu/linux during the next big refactor
  14523. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14524. shlibpath_var=LIBPATH
  14525. # AIX 3 has no versioning support, so we append a major version to the name.
  14526. soname_spec='$libname$release$shared_ext$major'
  14527. ;;
  14528. aix[4-9]*)
  14529. version_type=linux # correct to gnu/linux during the next big refactor
  14530. need_lib_prefix=no
  14531. need_version=no
  14532. hardcode_into_libs=yes
  14533. if test ia64 = "$host_cpu"; then
  14534. # AIX 5 supports IA64
  14535. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14536. shlibpath_var=LD_LIBRARY_PATH
  14537. else
  14538. # With GCC up to 2.95.x, collect2 would create an import file
  14539. # for dependence libraries. The import file would start with
  14540. # the line '#! .'. This would cause the generated library to
  14541. # depend on '.', always an invalid library. This was fixed in
  14542. # development snapshots of GCC prior to 3.0.
  14543. case $host_os in
  14544. aix4 | aix4.[01] | aix4.[01].*)
  14545. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14546. echo ' yes '
  14547. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14548. :
  14549. else
  14550. can_build_shared=no
  14551. fi
  14552. ;;
  14553. esac
  14554. # Using Import Files as archive members, it is possible to support
  14555. # filename-based versioning of shared library archives on AIX. While
  14556. # this would work for both with and without runtime linking, it will
  14557. # prevent static linking of such archives. So we do filename-based
  14558. # shared library versioning with .so extension only, which is used
  14559. # when both runtime linking and shared linking is enabled.
  14560. # Unfortunately, runtime linking may impact performance, so we do
  14561. # not want this to be the default eventually. Also, we use the
  14562. # versioned .so libs for executables only if there is the -brtl
  14563. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14564. # To allow for filename-based versioning support, we need to create
  14565. # libNAME.so.V as an archive file, containing:
  14566. # *) an Import File, referring to the versioned filename of the
  14567. # archive as well as the shared archive member, telling the
  14568. # bitwidth (32 or 64) of that shared object, and providing the
  14569. # list of exported symbols of that shared object, eventually
  14570. # decorated with the 'weak' keyword
  14571. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14572. # it being seen by the linker.
  14573. # At run time we better use the real file rather than another symlink,
  14574. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14575. case $with_aix_soname,$aix_use_runtimelinking in
  14576. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14577. # soname into executable. Probably we can add versioning support to
  14578. # collect2, so additional links can be useful in future.
  14579. aix,yes) # traditional libtool
  14580. dynamic_linker='AIX unversionable lib.so'
  14581. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14582. # instead of lib<name>.a to let people know that these are not
  14583. # typical AIX shared libraries.
  14584. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14585. ;;
  14586. aix,no) # traditional AIX only
  14587. dynamic_linker='AIX lib.a(lib.so.V)'
  14588. # We preserve .a as extension for shared libraries through AIX4.2
  14589. # and later when we are not doing run time linking.
  14590. library_names_spec='$libname$release.a $libname.a'
  14591. soname_spec='$libname$release$shared_ext$major'
  14592. ;;
  14593. svr4,*) # full svr4 only
  14594. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14595. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14596. # We do not specify a path in Import Files, so LIBPATH fires.
  14597. shlibpath_overrides_runpath=yes
  14598. ;;
  14599. *,yes) # both, prefer svr4
  14600. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14601. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14602. # unpreferred sharedlib libNAME.a needs extra handling
  14603. 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"'
  14604. 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"'
  14605. # We do not specify a path in Import Files, so LIBPATH fires.
  14606. shlibpath_overrides_runpath=yes
  14607. ;;
  14608. *,no) # both, prefer aix
  14609. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14610. library_names_spec='$libname$release.a $libname.a'
  14611. soname_spec='$libname$release$shared_ext$major'
  14612. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14613. 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)'
  14614. 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"'
  14615. ;;
  14616. esac
  14617. shlibpath_var=LIBPATH
  14618. fi
  14619. ;;
  14620. amigaos*)
  14621. case $host_cpu in
  14622. powerpc)
  14623. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14624. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14625. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14626. ;;
  14627. m68k)
  14628. library_names_spec='$libname.ixlibrary $libname.a'
  14629. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14630. 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'
  14631. ;;
  14632. esac
  14633. ;;
  14634. beos*)
  14635. library_names_spec='$libname$shared_ext'
  14636. dynamic_linker="$host_os ld.so"
  14637. shlibpath_var=LIBRARY_PATH
  14638. ;;
  14639. bsdi[45]*)
  14640. version_type=linux # correct to gnu/linux during the next big refactor
  14641. need_version=no
  14642. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14643. soname_spec='$libname$release$shared_ext$major'
  14644. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14645. shlibpath_var=LD_LIBRARY_PATH
  14646. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14647. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14648. # the default ld.so.conf also contains /usr/contrib/lib and
  14649. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14650. # libtool to hard-code these into programs
  14651. ;;
  14652. cygwin* | mingw* | pw32* | cegcc*)
  14653. version_type=windows
  14654. shrext_cmds=.dll
  14655. need_version=no
  14656. need_lib_prefix=no
  14657. case $GCC,$cc_basename in
  14658. yes,*)
  14659. # gcc
  14660. library_names_spec='$libname.dll.a'
  14661. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14662. postinstall_cmds='base_file=`basename \$file`~
  14663. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14664. dldir=$destdir/`dirname \$dlpath`~
  14665. test -d \$dldir || mkdir -p \$dldir~
  14666. $install_prog $dir/$dlname \$dldir/$dlname~
  14667. chmod a+x \$dldir/$dlname~
  14668. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14669. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14670. fi'
  14671. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14672. dlpath=$dir/\$dldll~
  14673. $RM \$dlpath'
  14674. shlibpath_overrides_runpath=yes
  14675. case $host_os in
  14676. cygwin*)
  14677. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14678. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14679. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14680. ;;
  14681. mingw* | cegcc*)
  14682. # MinGW DLLs use traditional 'lib' prefix
  14683. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14684. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14685. ;;
  14686. pw32*)
  14687. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14688. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14689. ;;
  14690. esac
  14691. dynamic_linker='Win32 ld.exe'
  14692. ;;
  14693. *,cl*)
  14694. # Native MSVC
  14695. libname_spec='$name'
  14696. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14697. library_names_spec='$libname.dll.lib'
  14698. case $build_os in
  14699. mingw*)
  14700. sys_lib_search_path_spec=
  14701. lt_save_ifs=$IFS
  14702. IFS=';'
  14703. for lt_path in $LIB
  14704. do
  14705. IFS=$lt_save_ifs
  14706. # Let DOS variable expansion print the short 8.3 style file name.
  14707. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14708. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14709. done
  14710. IFS=$lt_save_ifs
  14711. # Convert to MSYS style.
  14712. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14713. ;;
  14714. cygwin*)
  14715. # Convert to unix form, then to dos form, then back to unix form
  14716. # but this time dos style (no spaces!) so that the unix form looks
  14717. # like /cygdrive/c/PROGRA~1:/cygdr...
  14718. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14719. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14720. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14721. ;;
  14722. *)
  14723. sys_lib_search_path_spec=$LIB
  14724. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14725. # It is most probably a Windows format PATH.
  14726. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14727. else
  14728. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14729. fi
  14730. # FIXME: find the short name or the path components, as spaces are
  14731. # common. (e.g. "Program Files" -> "PROGRA~1")
  14732. ;;
  14733. esac
  14734. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14735. postinstall_cmds='base_file=`basename \$file`~
  14736. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14737. dldir=$destdir/`dirname \$dlpath`~
  14738. test -d \$dldir || mkdir -p \$dldir~
  14739. $install_prog $dir/$dlname \$dldir/$dlname'
  14740. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14741. dlpath=$dir/\$dldll~
  14742. $RM \$dlpath'
  14743. shlibpath_overrides_runpath=yes
  14744. dynamic_linker='Win32 link.exe'
  14745. ;;
  14746. *)
  14747. # Assume MSVC wrapper
  14748. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14749. dynamic_linker='Win32 ld.exe'
  14750. ;;
  14751. esac
  14752. # FIXME: first we should search . and the directory the executable is in
  14753. shlibpath_var=PATH
  14754. ;;
  14755. darwin* | rhapsody*)
  14756. dynamic_linker="$host_os dyld"
  14757. version_type=darwin
  14758. need_lib_prefix=no
  14759. need_version=no
  14760. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14761. soname_spec='$libname$release$major$shared_ext'
  14762. shlibpath_overrides_runpath=yes
  14763. shlibpath_var=DYLD_LIBRARY_PATH
  14764. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14765. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14766. ;;
  14767. dgux*)
  14768. version_type=linux # correct to gnu/linux during the next big refactor
  14769. need_lib_prefix=no
  14770. need_version=no
  14771. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14772. soname_spec='$libname$release$shared_ext$major'
  14773. shlibpath_var=LD_LIBRARY_PATH
  14774. ;;
  14775. freebsd* | dragonfly* | midnightbsd*)
  14776. # DragonFly does not have aout. When/if they implement a new
  14777. # versioning mechanism, adjust this.
  14778. if test -x /usr/bin/objformat; then
  14779. objformat=`/usr/bin/objformat`
  14780. else
  14781. case $host_os in
  14782. freebsd[23].*) objformat=aout ;;
  14783. *) objformat=elf ;;
  14784. esac
  14785. fi
  14786. version_type=freebsd-$objformat
  14787. case $version_type in
  14788. freebsd-elf*)
  14789. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14790. soname_spec='$libname$release$shared_ext$major'
  14791. need_version=no
  14792. need_lib_prefix=no
  14793. ;;
  14794. freebsd-*)
  14795. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14796. need_version=yes
  14797. ;;
  14798. esac
  14799. shlibpath_var=LD_LIBRARY_PATH
  14800. case $host_os in
  14801. freebsd2.*)
  14802. shlibpath_overrides_runpath=yes
  14803. ;;
  14804. freebsd3.[01]* | freebsdelf3.[01]*)
  14805. shlibpath_overrides_runpath=yes
  14806. hardcode_into_libs=yes
  14807. ;;
  14808. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14809. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14810. shlibpath_overrides_runpath=no
  14811. hardcode_into_libs=yes
  14812. ;;
  14813. *) # from 4.6 on, and DragonFly
  14814. shlibpath_overrides_runpath=yes
  14815. hardcode_into_libs=yes
  14816. ;;
  14817. esac
  14818. ;;
  14819. haiku*)
  14820. version_type=linux # correct to gnu/linux during the next big refactor
  14821. need_lib_prefix=no
  14822. need_version=no
  14823. dynamic_linker="$host_os runtime_loader"
  14824. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14825. soname_spec='$libname$release$shared_ext$major'
  14826. shlibpath_var=LIBRARY_PATH
  14827. shlibpath_overrides_runpath=no
  14828. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14829. hardcode_into_libs=yes
  14830. ;;
  14831. hpux9* | hpux10* | hpux11*)
  14832. # Give a soname corresponding to the major version so that dld.sl refuses to
  14833. # link against other versions.
  14834. version_type=sunos
  14835. need_lib_prefix=no
  14836. need_version=no
  14837. case $host_cpu in
  14838. ia64*)
  14839. shrext_cmds='.so'
  14840. hardcode_into_libs=yes
  14841. dynamic_linker="$host_os dld.so"
  14842. shlibpath_var=LD_LIBRARY_PATH
  14843. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14844. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14845. soname_spec='$libname$release$shared_ext$major'
  14846. if test 32 = "$HPUX_IA64_MODE"; then
  14847. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14848. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14849. else
  14850. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14851. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14852. fi
  14853. ;;
  14854. hppa*64*)
  14855. shrext_cmds='.sl'
  14856. hardcode_into_libs=yes
  14857. dynamic_linker="$host_os dld.sl"
  14858. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14863. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14864. ;;
  14865. *)
  14866. shrext_cmds='.sl'
  14867. dynamic_linker="$host_os dld.sl"
  14868. shlibpath_var=SHLIB_PATH
  14869. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14870. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14871. soname_spec='$libname$release$shared_ext$major'
  14872. ;;
  14873. esac
  14874. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14875. postinstall_cmds='chmod 555 $lib'
  14876. # or fails outright, so override atomically:
  14877. install_override_mode=555
  14878. ;;
  14879. interix[3-9]*)
  14880. version_type=linux # correct to gnu/linux during the next big refactor
  14881. need_lib_prefix=no
  14882. need_version=no
  14883. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14884. soname_spec='$libname$release$shared_ext$major'
  14885. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14886. shlibpath_var=LD_LIBRARY_PATH
  14887. shlibpath_overrides_runpath=no
  14888. hardcode_into_libs=yes
  14889. ;;
  14890. irix5* | irix6* | nonstopux*)
  14891. case $host_os in
  14892. nonstopux*) version_type=nonstopux ;;
  14893. *)
  14894. if test yes = "$lt_cv_prog_gnu_ld"; then
  14895. version_type=linux # correct to gnu/linux during the next big refactor
  14896. else
  14897. version_type=irix
  14898. fi ;;
  14899. esac
  14900. need_lib_prefix=no
  14901. need_version=no
  14902. soname_spec='$libname$release$shared_ext$major'
  14903. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14904. case $host_os in
  14905. irix5* | nonstopux*)
  14906. libsuff= shlibsuff=
  14907. ;;
  14908. *)
  14909. case $LD in # libtool.m4 will add one of these switches to LD
  14910. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14911. libsuff= shlibsuff= libmagic=32-bit;;
  14912. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14913. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14914. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14915. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14916. *) libsuff= shlibsuff= libmagic=never-match;;
  14917. esac
  14918. ;;
  14919. esac
  14920. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14921. shlibpath_overrides_runpath=no
  14922. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14923. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14924. hardcode_into_libs=yes
  14925. ;;
  14926. # No shared lib support for Linux oldld, aout, or coff.
  14927. linux*oldld* | linux*aout* | linux*coff*)
  14928. dynamic_linker=no
  14929. ;;
  14930. linux*android*)
  14931. version_type=none # Android doesn't support versioned libraries.
  14932. need_lib_prefix=no
  14933. need_version=no
  14934. library_names_spec='$libname$release$shared_ext'
  14935. soname_spec='$libname$release$shared_ext'
  14936. finish_cmds=
  14937. shlibpath_var=LD_LIBRARY_PATH
  14938. shlibpath_overrides_runpath=yes
  14939. # This implies no fast_install, which is unacceptable.
  14940. # Some rework will be needed to allow for fast_install
  14941. # before this can be enabled.
  14942. hardcode_into_libs=yes
  14943. dynamic_linker='Android linker'
  14944. # Don't embed -rpath directories since the linker doesn't support them.
  14945. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14946. ;;
  14947. # This must be glibc/ELF.
  14948. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14949. version_type=linux # correct to gnu/linux during the next big refactor
  14950. need_lib_prefix=no
  14951. need_version=no
  14952. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14953. soname_spec='$libname$release$shared_ext$major'
  14954. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14955. shlibpath_var=LD_LIBRARY_PATH
  14956. shlibpath_overrides_runpath=no
  14957. # Some binutils ld are patched to set DT_RUNPATH
  14958. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14959. then :
  14960. printf %s "(cached) " >&6
  14961. else $as_nop
  14962. lt_cv_shlibpath_overrides_runpath=no
  14963. save_LDFLAGS=$LDFLAGS
  14964. save_libdir=$libdir
  14965. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14966. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14968. /* end confdefs.h. */
  14969. int
  14970. main (void)
  14971. {
  14972. ;
  14973. return 0;
  14974. }
  14975. _ACEOF
  14976. if ac_fn_cxx_try_link "$LINENO"
  14977. then :
  14978. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14979. then :
  14980. lt_cv_shlibpath_overrides_runpath=yes
  14981. fi
  14982. fi
  14983. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14984. conftest$ac_exeext conftest.$ac_ext
  14985. LDFLAGS=$save_LDFLAGS
  14986. libdir=$save_libdir
  14987. fi
  14988. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14989. # This implies no fast_install, which is unacceptable.
  14990. # Some rework will be needed to allow for fast_install
  14991. # before this can be enabled.
  14992. hardcode_into_libs=yes
  14993. # Add ABI-specific directories to the system library path.
  14994. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  14995. # Ideally, we could use ldconfig to report *all* directores which are
  14996. # searched for libraries, however this is still not possible. Aside from not
  14997. # being certain /sbin/ldconfig is available, command
  14998. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14999. # even though it is searched at run-time. Try to do the best guess by
  15000. # appending ld.so.conf contents (and includes) to the search path.
  15001. if test -f /etc/ld.so.conf; then
  15002. 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' ' '`
  15003. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15004. fi
  15005. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15006. # powerpc, because MkLinux only supported shared libraries with the
  15007. # GNU dynamic linker. Since this was broken with cross compilers,
  15008. # most powerpc-linux boxes support dynamic linking these days and
  15009. # people can always --disable-shared, the test was removed, and we
  15010. # assume the GNU/Linux dynamic linker is in use.
  15011. dynamic_linker='GNU/Linux ld.so'
  15012. ;;
  15013. netbsd*)
  15014. version_type=sunos
  15015. need_lib_prefix=no
  15016. need_version=no
  15017. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15018. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15019. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15020. dynamic_linker='NetBSD (a.out) ld.so'
  15021. else
  15022. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15023. soname_spec='$libname$release$shared_ext$major'
  15024. dynamic_linker='NetBSD ld.elf_so'
  15025. fi
  15026. shlibpath_var=LD_LIBRARY_PATH
  15027. shlibpath_overrides_runpath=yes
  15028. hardcode_into_libs=yes
  15029. ;;
  15030. newsos6)
  15031. version_type=linux # correct to gnu/linux during the next big refactor
  15032. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15033. shlibpath_var=LD_LIBRARY_PATH
  15034. shlibpath_overrides_runpath=yes
  15035. ;;
  15036. *nto* | *qnx*)
  15037. version_type=qnx
  15038. need_lib_prefix=no
  15039. need_version=no
  15040. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15041. soname_spec='$libname$release$shared_ext$major'
  15042. shlibpath_var=LD_LIBRARY_PATH
  15043. shlibpath_overrides_runpath=no
  15044. hardcode_into_libs=yes
  15045. dynamic_linker='ldqnx.so'
  15046. ;;
  15047. openbsd* | bitrig*)
  15048. version_type=sunos
  15049. sys_lib_dlsearch_path_spec=/usr/lib
  15050. need_lib_prefix=no
  15051. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15052. need_version=no
  15053. else
  15054. need_version=yes
  15055. fi
  15056. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15057. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15058. shlibpath_var=LD_LIBRARY_PATH
  15059. shlibpath_overrides_runpath=yes
  15060. ;;
  15061. os2*)
  15062. libname_spec='$name'
  15063. shrext_cmds=.dll
  15064. need_lib_prefix=no
  15065. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15066. # SDL customization: removed versioning support.
  15067. # version_type=windows
  15068. # need_version=no
  15069. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15070. # v=$($ECHO $release$versuffix | tr -d .-);
  15071. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15072. # $ECHO $n$v`$shared_ext'
  15073. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15074. library_names_spec='${libname}_dll.$libext'
  15075. dynamic_linker='OS/2 ld.exe'
  15076. shlibpath_var=BEGINLIBPATH
  15077. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15078. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15079. postinstall_cmds='base_file=`basename \$file`~
  15080. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15081. dldir=$destdir/`dirname \$dlpath`~
  15082. test -d \$dldir || mkdir -p \$dldir~
  15083. $install_prog $dir/$dlname \$dldir/$dlname~
  15084. chmod a+x \$dldir/$dlname~
  15085. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15086. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15087. fi'
  15088. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15089. dlpath=$dir/\$dldll~
  15090. $RM \$dlpath'
  15091. ;;
  15092. osf3* | osf4* | osf5*)
  15093. version_type=osf
  15094. need_lib_prefix=no
  15095. need_version=no
  15096. soname_spec='$libname$release$shared_ext$major'
  15097. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15098. shlibpath_var=LD_LIBRARY_PATH
  15099. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15100. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15101. ;;
  15102. rdos*)
  15103. dynamic_linker=no
  15104. ;;
  15105. solaris*)
  15106. version_type=linux # correct to gnu/linux during the next big refactor
  15107. need_lib_prefix=no
  15108. need_version=no
  15109. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15110. soname_spec='$libname$release$shared_ext$major'
  15111. shlibpath_var=LD_LIBRARY_PATH
  15112. shlibpath_overrides_runpath=yes
  15113. hardcode_into_libs=yes
  15114. # ldd complains unless libraries are executable
  15115. postinstall_cmds='chmod +x $lib'
  15116. ;;
  15117. sunos4*)
  15118. version_type=sunos
  15119. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15120. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15121. shlibpath_var=LD_LIBRARY_PATH
  15122. shlibpath_overrides_runpath=yes
  15123. if test yes = "$with_gnu_ld"; then
  15124. need_lib_prefix=no
  15125. fi
  15126. need_version=yes
  15127. ;;
  15128. sysv4 | sysv4.3*)
  15129. version_type=linux # correct to gnu/linux during the next big refactor
  15130. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15131. soname_spec='$libname$release$shared_ext$major'
  15132. shlibpath_var=LD_LIBRARY_PATH
  15133. case $host_vendor in
  15134. sni)
  15135. shlibpath_overrides_runpath=no
  15136. need_lib_prefix=no
  15137. runpath_var=LD_RUN_PATH
  15138. ;;
  15139. siemens)
  15140. need_lib_prefix=no
  15141. ;;
  15142. motorola)
  15143. need_lib_prefix=no
  15144. need_version=no
  15145. shlibpath_overrides_runpath=no
  15146. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15147. ;;
  15148. esac
  15149. ;;
  15150. sysv4*MP*)
  15151. if test -d /usr/nec; then
  15152. version_type=linux # correct to gnu/linux during the next big refactor
  15153. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15154. soname_spec='$libname$shared_ext.$major'
  15155. shlibpath_var=LD_LIBRARY_PATH
  15156. fi
  15157. ;;
  15158. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15159. version_type=sco
  15160. need_lib_prefix=no
  15161. need_version=no
  15162. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15163. soname_spec='$libname$release$shared_ext$major'
  15164. shlibpath_var=LD_LIBRARY_PATH
  15165. shlibpath_overrides_runpath=yes
  15166. hardcode_into_libs=yes
  15167. if test yes = "$with_gnu_ld"; then
  15168. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15169. else
  15170. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15171. case $host_os in
  15172. sco3.2v5*)
  15173. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15174. ;;
  15175. esac
  15176. fi
  15177. sys_lib_dlsearch_path_spec='/usr/lib'
  15178. ;;
  15179. tpf*)
  15180. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15181. version_type=linux # correct to gnu/linux during the next big refactor
  15182. need_lib_prefix=no
  15183. need_version=no
  15184. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15185. shlibpath_var=LD_LIBRARY_PATH
  15186. shlibpath_overrides_runpath=no
  15187. hardcode_into_libs=yes
  15188. ;;
  15189. uts4*)
  15190. version_type=linux # correct to gnu/linux during the next big refactor
  15191. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15192. soname_spec='$libname$release$shared_ext$major'
  15193. shlibpath_var=LD_LIBRARY_PATH
  15194. ;;
  15195. *)
  15196. dynamic_linker=no
  15197. ;;
  15198. esac
  15199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15200. printf "%s\n" "$dynamic_linker" >&6; }
  15201. test no = "$dynamic_linker" && can_build_shared=no
  15202. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15203. if test yes = "$GCC"; then
  15204. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15205. fi
  15206. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15207. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15208. fi
  15209. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15210. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15211. fi
  15212. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15213. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15214. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15215. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15216. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15217. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15219. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15220. hardcode_action_CXX=
  15221. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15222. test -n "$runpath_var_CXX" ||
  15223. test yes = "$hardcode_automatic_CXX"; then
  15224. # We can hardcode non-existent directories.
  15225. if test no != "$hardcode_direct_CXX" &&
  15226. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15227. # have to relink, otherwise we might link with an installed library
  15228. # when we should be linking with a yet-to-be-installed one
  15229. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15230. test no != "$hardcode_minus_L_CXX"; then
  15231. # Linking always hardcodes the temporary library directory.
  15232. hardcode_action_CXX=relink
  15233. else
  15234. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15235. hardcode_action_CXX=immediate
  15236. fi
  15237. else
  15238. # We cannot hardcode anything, or else we can only hardcode existing
  15239. # directories.
  15240. hardcode_action_CXX=unsupported
  15241. fi
  15242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15243. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15244. if test relink = "$hardcode_action_CXX" ||
  15245. test yes = "$inherit_rpath_CXX"; then
  15246. # Fast installation is not supported
  15247. enable_fast_install=no
  15248. elif test yes = "$shlibpath_overrides_runpath" ||
  15249. test no = "$enable_shared"; then
  15250. # Fast installation is not necessary
  15251. enable_fast_install=needless
  15252. fi
  15253. fi # test -n "$compiler"
  15254. CC=$lt_save_CC
  15255. CFLAGS=$lt_save_CFLAGS
  15256. LDCXX=$LD
  15257. LD=$lt_save_LD
  15258. GCC=$lt_save_GCC
  15259. with_gnu_ld=$lt_save_with_gnu_ld
  15260. lt_cv_path_LDCXX=$lt_cv_path_LD
  15261. lt_cv_path_LD=$lt_save_path_LD
  15262. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15263. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15264. fi # test yes != "$_lt_caught_CXX_error"
  15265. ac_ext=c
  15266. ac_cpp='$CPP $CPPFLAGS'
  15267. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15268. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15269. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15271. printf %s "checking for egrep... " >&6; }
  15272. if test ${ac_cv_path_EGREP+y}
  15273. then :
  15274. printf %s "(cached) " >&6
  15275. else $as_nop
  15276. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15277. then ac_cv_path_EGREP="$GREP -E"
  15278. else
  15279. if test -z "$EGREP"; then
  15280. ac_path_EGREP_found=false
  15281. # Loop through the user's path and test for each of PROGNAME-LIST
  15282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15283. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15284. do
  15285. IFS=$as_save_IFS
  15286. case $as_dir in #(((
  15287. '') as_dir=./ ;;
  15288. */) ;;
  15289. *) as_dir=$as_dir/ ;;
  15290. esac
  15291. for ac_prog in egrep
  15292. do
  15293. for ac_exec_ext in '' $ac_executable_extensions; do
  15294. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15295. as_fn_executable_p "$ac_path_EGREP" || continue
  15296. # Check for GNU ac_path_EGREP and select it if it is found.
  15297. # Check for GNU $ac_path_EGREP
  15298. case `"$ac_path_EGREP" --version 2>&1` in
  15299. *GNU*)
  15300. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15301. *)
  15302. ac_count=0
  15303. printf %s 0123456789 >"conftest.in"
  15304. while :
  15305. do
  15306. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15307. mv "conftest.tmp" "conftest.in"
  15308. cp "conftest.in" "conftest.nl"
  15309. printf "%s\n" 'EGREP' >> "conftest.nl"
  15310. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15311. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15312. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15313. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15314. # Best one so far, save it but keep looking for a better one
  15315. ac_cv_path_EGREP="$ac_path_EGREP"
  15316. ac_path_EGREP_max=$ac_count
  15317. fi
  15318. # 10*(2^10) chars as input seems more than enough
  15319. test $ac_count -gt 10 && break
  15320. done
  15321. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15322. esac
  15323. $ac_path_EGREP_found && break 3
  15324. done
  15325. done
  15326. done
  15327. IFS=$as_save_IFS
  15328. if test -z "$ac_cv_path_EGREP"; then
  15329. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15330. fi
  15331. else
  15332. ac_cv_path_EGREP=$EGREP
  15333. fi
  15334. fi
  15335. fi
  15336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15337. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15338. EGREP="$ac_cv_path_EGREP"
  15339. # Find a good install program. We prefer a C program (faster),
  15340. # so one script is as good as another. But avoid the broken or
  15341. # incompatible versions:
  15342. # SysV /etc/install, /usr/sbin/install
  15343. # SunOS /usr/etc/install
  15344. # IRIX /sbin/install
  15345. # AIX /bin/install
  15346. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15347. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15348. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15349. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15350. # OS/2's system install, which has a completely different semantic
  15351. # ./install, which can be erroneously created by make from ./install.sh.
  15352. # Reject install programs that cannot install multiple files.
  15353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15354. printf %s "checking for a BSD-compatible install... " >&6; }
  15355. if test -z "$INSTALL"; then
  15356. if test ${ac_cv_path_install+y}
  15357. then :
  15358. printf %s "(cached) " >&6
  15359. else $as_nop
  15360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15361. for as_dir in $PATH
  15362. do
  15363. IFS=$as_save_IFS
  15364. case $as_dir in #(((
  15365. '') as_dir=./ ;;
  15366. */) ;;
  15367. *) as_dir=$as_dir/ ;;
  15368. esac
  15369. # Account for fact that we put trailing slashes in our PATH walk.
  15370. case $as_dir in #((
  15371. ./ | /[cC]/* | \
  15372. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15373. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15374. /usr/ucb/* ) ;;
  15375. *)
  15376. # OSF1 and SCO ODT 3.0 have their own names for install.
  15377. # Don't use installbsd from OSF since it installs stuff as root
  15378. # by default.
  15379. for ac_prog in ginstall scoinst install; do
  15380. for ac_exec_ext in '' $ac_executable_extensions; do
  15381. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15382. if test $ac_prog = install &&
  15383. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15384. # AIX install. It has an incompatible calling convention.
  15385. :
  15386. elif test $ac_prog = install &&
  15387. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15388. # program-specific install script used by HP pwplus--don't use.
  15389. :
  15390. else
  15391. rm -rf conftest.one conftest.two conftest.dir
  15392. echo one > conftest.one
  15393. echo two > conftest.two
  15394. mkdir conftest.dir
  15395. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15396. test -s conftest.one && test -s conftest.two &&
  15397. test -s conftest.dir/conftest.one &&
  15398. test -s conftest.dir/conftest.two
  15399. then
  15400. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15401. break 3
  15402. fi
  15403. fi
  15404. fi
  15405. done
  15406. done
  15407. ;;
  15408. esac
  15409. done
  15410. IFS=$as_save_IFS
  15411. rm -rf conftest.one conftest.two conftest.dir
  15412. fi
  15413. if test ${ac_cv_path_install+y}; then
  15414. INSTALL=$ac_cv_path_install
  15415. else
  15416. # As a last resort, use the slow shell script. Don't cache a
  15417. # value for INSTALL within a source directory, because that will
  15418. # break other packages using the cache if that directory is
  15419. # removed, or if the value is a relative name.
  15420. INSTALL=$ac_install_sh
  15421. fi
  15422. fi
  15423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15424. printf "%s\n" "$INSTALL" >&6; }
  15425. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15426. # It thinks the first close brace ends the variable substitution.
  15427. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15428. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15429. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15431. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15432. set x ${MAKE-make}
  15433. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15434. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15435. then :
  15436. printf %s "(cached) " >&6
  15437. else $as_nop
  15438. cat >conftest.make <<\_ACEOF
  15439. SHELL = /bin/sh
  15440. all:
  15441. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15442. _ACEOF
  15443. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15444. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15445. *@@@%%%=?*=@@@%%%*)
  15446. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15447. *)
  15448. eval ac_cv_prog_make_${ac_make}_set=no;;
  15449. esac
  15450. rm -f conftest.make
  15451. fi
  15452. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15454. printf "%s\n" "yes" >&6; }
  15455. SET_MAKE=
  15456. else
  15457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15458. printf "%s\n" "no" >&6; }
  15459. SET_MAKE="MAKE=${MAKE-make}"
  15460. fi
  15461. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15462. if test -n "$ac_tool_prefix"; then
  15463. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15464. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15466. printf %s "checking for $ac_word... " >&6; }
  15467. if test ${ac_cv_path_PKG_CONFIG+y}
  15468. then :
  15469. printf %s "(cached) " >&6
  15470. else $as_nop
  15471. case $PKG_CONFIG in
  15472. [\\/]* | ?:[\\/]*)
  15473. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15474. ;;
  15475. *)
  15476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15477. for as_dir in $PATH
  15478. do
  15479. IFS=$as_save_IFS
  15480. case $as_dir in #(((
  15481. '') as_dir=./ ;;
  15482. */) ;;
  15483. *) as_dir=$as_dir/ ;;
  15484. esac
  15485. for ac_exec_ext in '' $ac_executable_extensions; do
  15486. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15487. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15488. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15489. break 2
  15490. fi
  15491. done
  15492. done
  15493. IFS=$as_save_IFS
  15494. ;;
  15495. esac
  15496. fi
  15497. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15498. if test -n "$PKG_CONFIG"; then
  15499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15500. printf "%s\n" "$PKG_CONFIG" >&6; }
  15501. else
  15502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15503. printf "%s\n" "no" >&6; }
  15504. fi
  15505. fi
  15506. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15507. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15508. # Extract the first word of "pkg-config", so it can be a program name with args.
  15509. set dummy pkg-config; ac_word=$2
  15510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15511. printf %s "checking for $ac_word... " >&6; }
  15512. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15513. then :
  15514. printf %s "(cached) " >&6
  15515. else $as_nop
  15516. case $ac_pt_PKG_CONFIG in
  15517. [\\/]* | ?:[\\/]*)
  15518. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15519. ;;
  15520. *)
  15521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15522. for as_dir in $PATH
  15523. do
  15524. IFS=$as_save_IFS
  15525. case $as_dir in #(((
  15526. '') as_dir=./ ;;
  15527. */) ;;
  15528. *) as_dir=$as_dir/ ;;
  15529. esac
  15530. for ac_exec_ext in '' $ac_executable_extensions; do
  15531. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15532. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15533. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15534. break 2
  15535. fi
  15536. done
  15537. done
  15538. IFS=$as_save_IFS
  15539. ;;
  15540. esac
  15541. fi
  15542. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15543. if test -n "$ac_pt_PKG_CONFIG"; then
  15544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15545. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15546. else
  15547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15548. printf "%s\n" "no" >&6; }
  15549. fi
  15550. if test "x$ac_pt_PKG_CONFIG" = x; then
  15551. PKG_CONFIG=""
  15552. else
  15553. case $cross_compiling:$ac_tool_warned in
  15554. yes:)
  15555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15556. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15557. ac_tool_warned=yes ;;
  15558. esac
  15559. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15560. fi
  15561. else
  15562. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15563. fi
  15564. fi
  15565. if test -n "$PKG_CONFIG"; then
  15566. _pkg_min_version=0.9.0
  15567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15568. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15569. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15571. printf "%s\n" "yes" >&6; }
  15572. else
  15573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15574. printf "%s\n" "no" >&6; }
  15575. PKG_CONFIG=""
  15576. fi
  15577. fi
  15578. if test -z "$AWK" ; then
  15579. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15580. fi
  15581. for ac_prog in gsort sort
  15582. do
  15583. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15584. set dummy $ac_prog; ac_word=$2
  15585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15586. printf %s "checking for $ac_word... " >&6; }
  15587. if test ${ac_cv_prog_SORT+y}
  15588. then :
  15589. printf %s "(cached) " >&6
  15590. else $as_nop
  15591. if test -n "$SORT"; then
  15592. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15593. else
  15594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15595. for as_dir in $PATH
  15596. do
  15597. IFS=$as_save_IFS
  15598. case $as_dir in #(((
  15599. '') as_dir=./ ;;
  15600. */) ;;
  15601. *) as_dir=$as_dir/ ;;
  15602. esac
  15603. for ac_exec_ext in '' $ac_executable_extensions; do
  15604. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15605. ac_cv_prog_SORT="$ac_prog"
  15606. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15607. break 2
  15608. fi
  15609. done
  15610. done
  15611. IFS=$as_save_IFS
  15612. fi
  15613. fi
  15614. SORT=$ac_cv_prog_SORT
  15615. if test -n "$SORT"; then
  15616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15617. printf "%s\n" "$SORT" >&6; }
  15618. else
  15619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15620. printf "%s\n" "no" >&6; }
  15621. fi
  15622. test -n "$SORT" && break
  15623. done
  15624. test -n "$SORT" || SORT="false"
  15625. if ! "$SORT" -V </dev/null >/dev/null
  15626. then :
  15627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GNU sort(1) is required to find dynamic libraries" >&5
  15628. printf "%s\n" "$as_me: WARNING: GNU sort(1) is required to find dynamic libraries" >&2;}
  15629. fi
  15630. # Check whether --enable-largefile was given.
  15631. if test ${enable_largefile+y}
  15632. then :
  15633. enableval=$enable_largefile;
  15634. fi
  15635. if test "$enable_largefile" != no; then
  15636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15637. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15638. if test ${ac_cv_sys_largefile_CC+y}
  15639. then :
  15640. printf %s "(cached) " >&6
  15641. else $as_nop
  15642. ac_cv_sys_largefile_CC=no
  15643. if test "$GCC" != yes; then
  15644. ac_save_CC=$CC
  15645. while :; do
  15646. # IRIX 6.2 and later do not support large files by default,
  15647. # so use the C compiler's -n32 option if that helps.
  15648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15649. /* end confdefs.h. */
  15650. #include <sys/types.h>
  15651. /* Check that off_t can represent 2**63 - 1 correctly.
  15652. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15653. since some C++ compilers masquerading as C compilers
  15654. incorrectly reject 9223372036854775807. */
  15655. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15656. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15657. && LARGE_OFF_T % 2147483647 == 1)
  15658. ? 1 : -1];
  15659. int
  15660. main (void)
  15661. {
  15662. ;
  15663. return 0;
  15664. }
  15665. _ACEOF
  15666. if ac_fn_c_try_compile "$LINENO"
  15667. then :
  15668. break
  15669. fi
  15670. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15671. CC="$CC -n32"
  15672. if ac_fn_c_try_compile "$LINENO"
  15673. then :
  15674. ac_cv_sys_largefile_CC=' -n32'; break
  15675. fi
  15676. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15677. break
  15678. done
  15679. CC=$ac_save_CC
  15680. rm -f conftest.$ac_ext
  15681. fi
  15682. fi
  15683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15684. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15685. if test "$ac_cv_sys_largefile_CC" != no; then
  15686. CC=$CC$ac_cv_sys_largefile_CC
  15687. fi
  15688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15689. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15690. if test ${ac_cv_sys_file_offset_bits+y}
  15691. then :
  15692. printf %s "(cached) " >&6
  15693. else $as_nop
  15694. while :; do
  15695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15696. /* end confdefs.h. */
  15697. #include <sys/types.h>
  15698. /* Check that off_t can represent 2**63 - 1 correctly.
  15699. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15700. since some C++ compilers masquerading as C compilers
  15701. incorrectly reject 9223372036854775807. */
  15702. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15703. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15704. && LARGE_OFF_T % 2147483647 == 1)
  15705. ? 1 : -1];
  15706. int
  15707. main (void)
  15708. {
  15709. ;
  15710. return 0;
  15711. }
  15712. _ACEOF
  15713. if ac_fn_c_try_compile "$LINENO"
  15714. then :
  15715. ac_cv_sys_file_offset_bits=no; break
  15716. fi
  15717. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15719. /* end confdefs.h. */
  15720. #define _FILE_OFFSET_BITS 64
  15721. #include <sys/types.h>
  15722. /* Check that off_t can represent 2**63 - 1 correctly.
  15723. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15724. since some C++ compilers masquerading as C compilers
  15725. incorrectly reject 9223372036854775807. */
  15726. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15727. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15728. && LARGE_OFF_T % 2147483647 == 1)
  15729. ? 1 : -1];
  15730. int
  15731. main (void)
  15732. {
  15733. ;
  15734. return 0;
  15735. }
  15736. _ACEOF
  15737. if ac_fn_c_try_compile "$LINENO"
  15738. then :
  15739. ac_cv_sys_file_offset_bits=64; break
  15740. fi
  15741. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15742. ac_cv_sys_file_offset_bits=unknown
  15743. break
  15744. done
  15745. fi
  15746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15747. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15748. case $ac_cv_sys_file_offset_bits in #(
  15749. no | unknown) ;;
  15750. *)
  15751. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15752. ;;
  15753. esac
  15754. rm -rf conftest*
  15755. if test $ac_cv_sys_file_offset_bits = unknown; then
  15756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15757. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15758. if test ${ac_cv_sys_large_files+y}
  15759. then :
  15760. printf %s "(cached) " >&6
  15761. else $as_nop
  15762. while :; do
  15763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15764. /* end confdefs.h. */
  15765. #include <sys/types.h>
  15766. /* Check that off_t can represent 2**63 - 1 correctly.
  15767. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15768. since some C++ compilers masquerading as C compilers
  15769. incorrectly reject 9223372036854775807. */
  15770. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15771. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15772. && LARGE_OFF_T % 2147483647 == 1)
  15773. ? 1 : -1];
  15774. int
  15775. main (void)
  15776. {
  15777. ;
  15778. return 0;
  15779. }
  15780. _ACEOF
  15781. if ac_fn_c_try_compile "$LINENO"
  15782. then :
  15783. ac_cv_sys_large_files=no; break
  15784. fi
  15785. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15787. /* end confdefs.h. */
  15788. #define _LARGE_FILES 1
  15789. #include <sys/types.h>
  15790. /* Check that off_t can represent 2**63 - 1 correctly.
  15791. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15792. since some C++ compilers masquerading as C compilers
  15793. incorrectly reject 9223372036854775807. */
  15794. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15795. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15796. && LARGE_OFF_T % 2147483647 == 1)
  15797. ? 1 : -1];
  15798. int
  15799. main (void)
  15800. {
  15801. ;
  15802. return 0;
  15803. }
  15804. _ACEOF
  15805. if ac_fn_c_try_compile "$LINENO"
  15806. then :
  15807. ac_cv_sys_large_files=1; break
  15808. fi
  15809. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15810. ac_cv_sys_large_files=unknown
  15811. break
  15812. done
  15813. fi
  15814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15815. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15816. case $ac_cv_sys_large_files in #(
  15817. no | unknown) ;;
  15818. *)
  15819. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15820. ;;
  15821. esac
  15822. rm -rf conftest*
  15823. fi
  15824. fi
  15825. case "$host" in
  15826. *-*-mingw*)
  15827. # Except on msys, where make can't handle full pathnames (bug 1972)
  15828. ;;
  15829. *)
  15830. srcdir=`cd $srcdir && pwd`
  15831. ;;
  15832. esac
  15833. INCLUDE="-I$srcdir/include"
  15834. case "$host" in
  15835. *-*-nto-qnx*)
  15836. ;;
  15837. *)
  15838. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15839. ;;
  15840. esac
  15841. case "$host" in
  15842. *-*-haiku*)
  15843. LINKER='$(CXX)'
  15844. LIBTOOLLINKERTAG='CXX'
  15845. ;;
  15846. *)
  15847. LINKER='$(CC)'
  15848. LIBTOOLLINKERTAG='CC'
  15849. ;;
  15850. esac
  15851. if test x$srcdir != x.; then
  15852. INCLUDE="-Iinclude $INCLUDE"
  15853. elif test -d .git; then
  15854. as_fn_error $? "
  15855. *** When building from a git clone you should configure and build in a
  15856. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15857. " "$LINENO" 5
  15858. fi
  15859. BASE_CFLAGS=""
  15860. BASE_LDFLAGS=""
  15861. case "$host" in
  15862. *-*-cygwin*)
  15863. # We build SDL on cygwin without the UNIX emulation layer
  15864. save_CFLAGS="$CFLAGS"
  15865. have_no_cygwin=no
  15866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15867. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15868. CFLAGS="$save_CFLAGS -mno-cygwin"
  15869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15870. /* end confdefs.h. */
  15871. int
  15872. main (void)
  15873. {
  15874. ;
  15875. return 0;
  15876. }
  15877. _ACEOF
  15878. if ac_fn_c_try_compile "$LINENO"
  15879. then :
  15880. have_no_cygwin=yes
  15881. fi
  15882. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15884. printf "%s\n" "$have_no_cygwin" >&6; }
  15885. CFLAGS="$save_CFLAGS"
  15886. if test x$have_no_cygwin = xyes; then
  15887. BASE_CFLAGS="-mno-cygwin"
  15888. BASE_LDFLAGS="-mno-cygwin"
  15889. fi
  15890. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15891. ;;
  15892. esac
  15893. # Uncomment the following line if you want to force SDL and applications
  15894. # built with it to be compiled for a particular architecture.
  15895. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15896. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15897. # The default optimization for SDL is -O3 (Bug #31)
  15898. if test "x$orig_CFLAGS" = x; then
  15899. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15900. fi
  15901. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15902. BUILD_LDFLAGS="$LDFLAGS"
  15903. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15904. ## These are common directories to find software packages
  15905. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15906. # if test -d $path/include; then
  15907. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15908. # fi
  15909. # if test -d $path/lib; then
  15910. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15911. # fi
  15912. #done
  15913. SDL_CFLAGS="$BASE_CFLAGS"
  15914. SDL_LIBS="-lSDL2"
  15915. if test "x$BASE_LDFLAGS" != x; then
  15916. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15917. fi
  15918. if test "x$EXTRA_CFLAGS" != x; then
  15919. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15920. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15921. fi
  15922. if test "x$EXTRA_LDFLAGS" != x; then
  15923. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15924. fi
  15925. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15926. find_lib()
  15927. {
  15928. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15929. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15930. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15931. if test "$cross_compiling" = yes; then
  15932. host_lib_path=""
  15933. else
  15934. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15935. fi
  15936. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15937. 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`
  15938. if test x$lib != x; then
  15939. echo $lib
  15940. return
  15941. fi
  15942. done
  15943. }
  15944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15945. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15946. if test ${ac_cv_c_const+y}
  15947. then :
  15948. printf %s "(cached) " >&6
  15949. else $as_nop
  15950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15951. /* end confdefs.h. */
  15952. int
  15953. main (void)
  15954. {
  15955. #ifndef __cplusplus
  15956. /* Ultrix mips cc rejects this sort of thing. */
  15957. typedef int charset[2];
  15958. const charset cs = { 0, 0 };
  15959. /* SunOS 4.1.1 cc rejects this. */
  15960. char const *const *pcpcc;
  15961. char **ppc;
  15962. /* NEC SVR4.0.2 mips cc rejects this. */
  15963. struct point {int x, y;};
  15964. static struct point const zero = {0,0};
  15965. /* IBM XL C 1.02.0.0 rejects this.
  15966. It does not let you subtract one const X* pointer from another in
  15967. an arm of an if-expression whose if-part is not a constant
  15968. expression */
  15969. const char *g = "string";
  15970. pcpcc = &g + (g ? g-g : 0);
  15971. /* HPUX 7.0 cc rejects these. */
  15972. ++pcpcc;
  15973. ppc = (char**) pcpcc;
  15974. pcpcc = (char const *const *) ppc;
  15975. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15976. char tx;
  15977. char *t = &tx;
  15978. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15979. *t++ = 0;
  15980. if (s) return 0;
  15981. }
  15982. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15983. int x[] = {25, 17};
  15984. const int *foo = &x[0];
  15985. ++foo;
  15986. }
  15987. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15988. typedef const int *iptr;
  15989. iptr p = 0;
  15990. ++p;
  15991. }
  15992. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  15993. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15994. struct s { int j; const int *ap[3]; } bx;
  15995. struct s *b = &bx; b->j = 5;
  15996. }
  15997. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15998. const int foo = 10;
  15999. if (!foo) return 0;
  16000. }
  16001. return !cs[0] && !zero.x;
  16002. #endif
  16003. ;
  16004. return 0;
  16005. }
  16006. _ACEOF
  16007. if ac_fn_c_try_compile "$LINENO"
  16008. then :
  16009. ac_cv_c_const=yes
  16010. else $as_nop
  16011. ac_cv_c_const=no
  16012. fi
  16013. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16014. fi
  16015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16016. printf "%s\n" "$ac_cv_c_const" >&6; }
  16017. if test $ac_cv_c_const = no; then
  16018. printf "%s\n" "#define const /**/" >>confdefs.h
  16019. fi
  16020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16021. printf %s "checking for inline... " >&6; }
  16022. if test ${ac_cv_c_inline+y}
  16023. then :
  16024. printf %s "(cached) " >&6
  16025. else $as_nop
  16026. ac_cv_c_inline=no
  16027. for ac_kw in inline __inline__ __inline; do
  16028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16029. /* end confdefs.h. */
  16030. #ifndef __cplusplus
  16031. typedef int foo_t;
  16032. static $ac_kw foo_t static_foo (void) {return 0; }
  16033. $ac_kw foo_t foo (void) {return 0; }
  16034. #endif
  16035. _ACEOF
  16036. if ac_fn_c_try_compile "$LINENO"
  16037. then :
  16038. ac_cv_c_inline=$ac_kw
  16039. fi
  16040. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16041. test "$ac_cv_c_inline" != no && break
  16042. done
  16043. fi
  16044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16045. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16046. case $ac_cv_c_inline in
  16047. inline | yes) ;;
  16048. *)
  16049. case $ac_cv_c_inline in
  16050. no) ac_val=;;
  16051. *) ac_val=$ac_cv_c_inline;;
  16052. esac
  16053. cat >>confdefs.h <<_ACEOF
  16054. #ifndef __cplusplus
  16055. #define inline $ac_val
  16056. #endif
  16057. _ACEOF
  16058. ;;
  16059. esac
  16060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16061. printf %s "checking for working volatile... " >&6; }
  16062. if test ${ac_cv_c_volatile+y}
  16063. then :
  16064. printf %s "(cached) " >&6
  16065. else $as_nop
  16066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16067. /* end confdefs.h. */
  16068. int
  16069. main (void)
  16070. {
  16071. volatile int x;
  16072. int * volatile y = (int *) 0;
  16073. return !x && !y;
  16074. ;
  16075. return 0;
  16076. }
  16077. _ACEOF
  16078. if ac_fn_c_try_compile "$LINENO"
  16079. then :
  16080. ac_cv_c_volatile=yes
  16081. else $as_nop
  16082. ac_cv_c_volatile=no
  16083. fi
  16084. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16085. fi
  16086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16087. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16088. if test $ac_cv_c_volatile = no; then
  16089. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16090. fi
  16091. # Check whether --enable-assertions was given.
  16092. if test ${enable_assertions+y}
  16093. then :
  16094. enableval=$enable_assertions;
  16095. else $as_nop
  16096. enable_assertions=auto
  16097. fi
  16098. case "$enable_assertions" in
  16099. auto) # Use optimization settings to determine assertion level
  16100. ;;
  16101. disabled)
  16102. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16103. ;;
  16104. release)
  16105. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16106. ;;
  16107. enabled)
  16108. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16109. ;;
  16110. paranoid)
  16111. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16112. ;;
  16113. *)
  16114. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16115. ;;
  16116. esac
  16117. 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"
  16118. # Check whether --enable-dependency-tracking was given.
  16119. if test ${enable_dependency_tracking+y}
  16120. then :
  16121. enableval=$enable_dependency_tracking;
  16122. else $as_nop
  16123. enable_dependency_tracking=yes
  16124. fi
  16125. if test x$enable_dependency_tracking = xyes; then
  16126. have_gcc_mmd_mt=no
  16127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16128. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16130. /* end confdefs.h. */
  16131. #if !defined(__GNUC__) || __GNUC__ < 3
  16132. #error Dependency tracking requires GCC 3.0 or newer
  16133. #endif
  16134. int
  16135. main (void)
  16136. {
  16137. ;
  16138. return 0;
  16139. }
  16140. _ACEOF
  16141. if ac_fn_c_try_compile "$LINENO"
  16142. then :
  16143. have_gcc_mmd_mt=yes
  16144. fi
  16145. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16147. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16148. if test x$have_gcc_mmd_mt = xyes; then
  16149. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16150. fi
  16151. fi
  16152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16153. printf %s "checking for linker option --no-undefined... " >&6; }
  16154. have_no_undefined=no
  16155. case "$host" in
  16156. *-*-openbsd*)
  16157. ;;
  16158. *)
  16159. save_LDFLAGS="$LDFLAGS"
  16160. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16162. /* end confdefs.h. */
  16163. int
  16164. main (void)
  16165. {
  16166. ;
  16167. return 0;
  16168. }
  16169. _ACEOF
  16170. if ac_fn_c_try_link "$LINENO"
  16171. then :
  16172. have_no_undefined=yes
  16173. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16174. fi
  16175. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16176. conftest$ac_exeext conftest.$ac_ext
  16177. LDFLAGS="$save_LDFLAGS"
  16178. ;;
  16179. esac
  16180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16181. printf "%s\n" "$have_no_undefined" >&6; }
  16182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16183. printf %s "checking for linker option --dynamicbase... " >&6; }
  16184. have_dynamicbase=no
  16185. case "$host" in
  16186. *)
  16187. save_LDFLAGS="$LDFLAGS"
  16188. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16190. /* end confdefs.h. */
  16191. int
  16192. main (void)
  16193. {
  16194. ;
  16195. return 0;
  16196. }
  16197. _ACEOF
  16198. if ac_fn_c_try_link "$LINENO"
  16199. then :
  16200. have_dynamicbase=yes
  16201. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16202. fi
  16203. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16204. conftest$ac_exeext conftest.$ac_ext
  16205. LDFLAGS="$save_LDFLAGS"
  16206. ;;
  16207. esac
  16208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16209. printf "%s\n" "$have_dynamicbase" >&6; }
  16210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16211. printf %s "checking for linker option --nxcompat... " >&6; }
  16212. have_nxcompat=no
  16213. case "$host" in
  16214. *)
  16215. save_LDFLAGS="$LDFLAGS"
  16216. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16218. /* end confdefs.h. */
  16219. int
  16220. main (void)
  16221. {
  16222. ;
  16223. return 0;
  16224. }
  16225. _ACEOF
  16226. if ac_fn_c_try_link "$LINENO"
  16227. then :
  16228. have_nxcompat=yes
  16229. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16230. fi
  16231. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16232. conftest$ac_exeext conftest.$ac_ext
  16233. LDFLAGS="$save_LDFLAGS"
  16234. ;;
  16235. esac
  16236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16237. printf "%s\n" "$have_nxcompat" >&6; }
  16238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16239. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16240. have_high_entropy_va=no
  16241. case "$host" in
  16242. *)
  16243. save_LDFLAGS="$LDFLAGS"
  16244. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16246. /* end confdefs.h. */
  16247. int
  16248. main (void)
  16249. {
  16250. ;
  16251. return 0;
  16252. }
  16253. _ACEOF
  16254. if ac_fn_c_try_link "$LINENO"
  16255. then :
  16256. have_high_entropy_va=yes
  16257. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16258. fi
  16259. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16260. conftest$ac_exeext conftest.$ac_ext
  16261. LDFLAGS="$save_LDFLAGS"
  16262. ;;
  16263. esac
  16264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16265. printf "%s\n" "$have_high_entropy_va" >&6; }
  16266. # Check whether --enable-libc was given.
  16267. if test ${enable_libc+y}
  16268. then :
  16269. enableval=$enable_libc;
  16270. else $as_nop
  16271. enable_libc=yes
  16272. fi
  16273. if test x$enable_libc = xyes; then
  16274. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16275. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16276. if test "x$ac_cv_header_sys_types_h" = xyes
  16277. then :
  16278. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16279. fi
  16280. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16281. if test "x$ac_cv_header_stdio_h" = xyes
  16282. then :
  16283. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16284. fi
  16285. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16286. if test "x$ac_cv_header_stdlib_h" = xyes
  16287. then :
  16288. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16289. fi
  16290. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16291. if test "x$ac_cv_header_stddef_h" = xyes
  16292. then :
  16293. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16294. fi
  16295. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16296. if test "x$ac_cv_header_stdarg_h" = xyes
  16297. then :
  16298. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16299. fi
  16300. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16301. if test "x$ac_cv_header_malloc_h" = xyes
  16302. then :
  16303. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16304. fi
  16305. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16306. if test "x$ac_cv_header_memory_h" = xyes
  16307. then :
  16308. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16309. fi
  16310. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16311. if test "x$ac_cv_header_string_h" = xyes
  16312. then :
  16313. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16314. fi
  16315. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16316. if test "x$ac_cv_header_strings_h" = xyes
  16317. then :
  16318. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16319. fi
  16320. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16321. if test "x$ac_cv_header_wchar_h" = xyes
  16322. then :
  16323. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16324. fi
  16325. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16326. if test "x$ac_cv_header_inttypes_h" = xyes
  16327. then :
  16328. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16329. fi
  16330. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16331. if test "x$ac_cv_header_stdint_h" = xyes
  16332. then :
  16333. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16334. fi
  16335. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16336. if test "x$ac_cv_header_limits_h" = xyes
  16337. then :
  16338. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16339. fi
  16340. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16341. if test "x$ac_cv_header_ctype_h" = xyes
  16342. then :
  16343. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16344. fi
  16345. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16346. if test "x$ac_cv_header_math_h" = xyes
  16347. then :
  16348. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16349. fi
  16350. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16351. if test "x$ac_cv_header_float_h" = xyes
  16352. then :
  16353. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16354. fi
  16355. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16356. if test "x$ac_cv_header_iconv_h" = xyes
  16357. then :
  16358. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16359. fi
  16360. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16361. if test "x$ac_cv_header_signal_h" = xyes
  16362. then :
  16363. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16364. fi
  16365. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16366. if test "x$ac_cv_type_size_t" = xyes
  16367. then :
  16368. else $as_nop
  16369. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16370. fi
  16371. ac_ext=c
  16372. ac_cpp='$CPP $CPPFLAGS'
  16373. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16374. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16375. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16377. printf %s "checking how to run the C preprocessor... " >&6; }
  16378. # On Suns, sometimes $CPP names a directory.
  16379. if test -n "$CPP" && test -d "$CPP"; then
  16380. CPP=
  16381. fi
  16382. if test -z "$CPP"; then
  16383. if test ${ac_cv_prog_CPP+y}
  16384. then :
  16385. printf %s "(cached) " >&6
  16386. else $as_nop
  16387. # Double quotes because $CC needs to be expanded
  16388. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16389. do
  16390. ac_preproc_ok=false
  16391. for ac_c_preproc_warn_flag in '' yes
  16392. do
  16393. # Use a header file that comes with gcc, so configuring glibc
  16394. # with a fresh cross-compiler works.
  16395. # On the NeXT, cc -E runs the code through the compiler's parser,
  16396. # not just through cpp. "Syntax error" is here to catch this case.
  16397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16398. /* end confdefs.h. */
  16399. #include <limits.h>
  16400. Syntax error
  16401. _ACEOF
  16402. if ac_fn_c_try_cpp "$LINENO"
  16403. then :
  16404. else $as_nop
  16405. # Broken: fails on valid input.
  16406. continue
  16407. fi
  16408. rm -f conftest.err conftest.i conftest.$ac_ext
  16409. # OK, works on sane cases. Now check whether nonexistent headers
  16410. # can be detected and how.
  16411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16412. /* end confdefs.h. */
  16413. #include <ac_nonexistent.h>
  16414. _ACEOF
  16415. if ac_fn_c_try_cpp "$LINENO"
  16416. then :
  16417. # Broken: success on invalid input.
  16418. continue
  16419. else $as_nop
  16420. # Passes both tests.
  16421. ac_preproc_ok=:
  16422. break
  16423. fi
  16424. rm -f conftest.err conftest.i conftest.$ac_ext
  16425. done
  16426. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16427. rm -f conftest.i conftest.err conftest.$ac_ext
  16428. if $ac_preproc_ok
  16429. then :
  16430. break
  16431. fi
  16432. done
  16433. ac_cv_prog_CPP=$CPP
  16434. fi
  16435. CPP=$ac_cv_prog_CPP
  16436. else
  16437. ac_cv_prog_CPP=$CPP
  16438. fi
  16439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16440. printf "%s\n" "$CPP" >&6; }
  16441. ac_preproc_ok=false
  16442. for ac_c_preproc_warn_flag in '' yes
  16443. do
  16444. # Use a header file that comes with gcc, so configuring glibc
  16445. # with a fresh cross-compiler works.
  16446. # On the NeXT, cc -E runs the code through the compiler's parser,
  16447. # not just through cpp. "Syntax error" is here to catch this case.
  16448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16449. /* end confdefs.h. */
  16450. #include <limits.h>
  16451. Syntax error
  16452. _ACEOF
  16453. if ac_fn_c_try_cpp "$LINENO"
  16454. then :
  16455. else $as_nop
  16456. # Broken: fails on valid input.
  16457. continue
  16458. fi
  16459. rm -f conftest.err conftest.i conftest.$ac_ext
  16460. # OK, works on sane cases. Now check whether nonexistent headers
  16461. # can be detected and how.
  16462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16463. /* end confdefs.h. */
  16464. #include <ac_nonexistent.h>
  16465. _ACEOF
  16466. if ac_fn_c_try_cpp "$LINENO"
  16467. then :
  16468. # Broken: success on invalid input.
  16469. continue
  16470. else $as_nop
  16471. # Passes both tests.
  16472. ac_preproc_ok=:
  16473. break
  16474. fi
  16475. rm -f conftest.err conftest.i conftest.$ac_ext
  16476. done
  16477. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16478. rm -f conftest.i conftest.err conftest.$ac_ext
  16479. if $ac_preproc_ok
  16480. then :
  16481. else $as_nop
  16482. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16483. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16484. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16485. See \`config.log' for more details" "$LINENO" 5; }
  16486. fi
  16487. ac_ext=c
  16488. ac_cpp='$CPP $CPPFLAGS'
  16489. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16490. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16491. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16493. printf %s "checking for M_PI in math.h... " >&6; }
  16494. if test ${ac_cv_define_M_PI+y}
  16495. then :
  16496. printf %s "(cached) " >&6
  16497. else $as_nop
  16498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16499. /* end confdefs.h. */
  16500. #include <math.h>
  16501. #ifdef M_PI
  16502. YES_IS_DEFINED
  16503. #endif
  16504. _ACEOF
  16505. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16506. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16507. then :
  16508. ac_cv_define_M_PI=yes
  16509. else $as_nop
  16510. ac_cv_define_M_PI=no
  16511. fi
  16512. rm -rf conftest*
  16513. fi
  16514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16515. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16516. if test "$ac_cv_define_M_PI" = "yes" ; then
  16517. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16518. fi
  16519. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16520. # for constant arguments. Useless!
  16521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16522. printf %s "checking for working alloca.h... " >&6; }
  16523. if test ${ac_cv_working_alloca_h+y}
  16524. then :
  16525. printf %s "(cached) " >&6
  16526. else $as_nop
  16527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16528. /* end confdefs.h. */
  16529. #include <alloca.h>
  16530. int
  16531. main (void)
  16532. {
  16533. char *p = (char *) alloca (2 * sizeof (int));
  16534. if (p) return 0;
  16535. ;
  16536. return 0;
  16537. }
  16538. _ACEOF
  16539. if ac_fn_c_try_link "$LINENO"
  16540. then :
  16541. ac_cv_working_alloca_h=yes
  16542. else $as_nop
  16543. ac_cv_working_alloca_h=no
  16544. fi
  16545. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16546. conftest$ac_exeext conftest.$ac_ext
  16547. fi
  16548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16549. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16550. if test $ac_cv_working_alloca_h = yes; then
  16551. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16552. fi
  16553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16554. printf %s "checking for alloca... " >&6; }
  16555. if test ${ac_cv_func_alloca_works+y}
  16556. then :
  16557. printf %s "(cached) " >&6
  16558. else $as_nop
  16559. if test $ac_cv_working_alloca_h = yes; then
  16560. ac_cv_func_alloca_works=yes
  16561. else
  16562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16563. /* end confdefs.h. */
  16564. #include <stdlib.h>
  16565. #include <stddef.h>
  16566. #ifndef alloca
  16567. # ifdef __GNUC__
  16568. # define alloca __builtin_alloca
  16569. # elif defined _MSC_VER
  16570. # include <malloc.h>
  16571. # define alloca _alloca
  16572. # else
  16573. # ifdef __cplusplus
  16574. extern "C"
  16575. # endif
  16576. void *alloca (size_t);
  16577. # endif
  16578. #endif
  16579. int
  16580. main (void)
  16581. {
  16582. char *p = (char *) alloca (1);
  16583. if (p) return 0;
  16584. ;
  16585. return 0;
  16586. }
  16587. _ACEOF
  16588. if ac_fn_c_try_link "$LINENO"
  16589. then :
  16590. ac_cv_func_alloca_works=yes
  16591. else $as_nop
  16592. ac_cv_func_alloca_works=no
  16593. fi
  16594. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16595. conftest$ac_exeext conftest.$ac_ext
  16596. fi
  16597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16598. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16599. fi
  16600. if test $ac_cv_func_alloca_works = yes; then
  16601. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16602. else
  16603. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16604. # that cause trouble. Some versions do not even contain alloca or
  16605. # contain a buggy version. If you still want to use their alloca,
  16606. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16607. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16608. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16610. printf %s "checking stack direction for C alloca... " >&6; }
  16611. if test ${ac_cv_c_stack_direction+y}
  16612. then :
  16613. printf %s "(cached) " >&6
  16614. else $as_nop
  16615. if test "$cross_compiling" = yes
  16616. then :
  16617. ac_cv_c_stack_direction=0
  16618. else $as_nop
  16619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16620. /* end confdefs.h. */
  16621. $ac_includes_default
  16622. int
  16623. find_stack_direction (int *addr, int depth)
  16624. {
  16625. int dir, dummy = 0;
  16626. if (! addr)
  16627. addr = &dummy;
  16628. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16629. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16630. return dir + dummy;
  16631. }
  16632. int
  16633. main (int argc, char **argv)
  16634. {
  16635. return find_stack_direction (0, argc + !argv + 20) < 0;
  16636. }
  16637. _ACEOF
  16638. if ac_fn_c_try_run "$LINENO"
  16639. then :
  16640. ac_cv_c_stack_direction=1
  16641. else $as_nop
  16642. ac_cv_c_stack_direction=-1
  16643. fi
  16644. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16645. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16646. fi
  16647. fi
  16648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16649. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16650. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16651. fi
  16652. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16653. if test "x$ac_cv_func_mprotect" = xyes
  16654. then :
  16655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16656. /* end confdefs.h. */
  16657. #include <sys/types.h>
  16658. #include <sys/mman.h>
  16659. int
  16660. main (void)
  16661. {
  16662. ;
  16663. return 0;
  16664. }
  16665. _ACEOF
  16666. if ac_fn_c_try_compile "$LINENO"
  16667. then :
  16668. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16669. fi
  16670. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16671. fi
  16672. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16673. if test "x$ac_cv_func_malloc" = xyes
  16674. then :
  16675. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16676. fi
  16677. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16678. if test "x$ac_cv_func_calloc" = xyes
  16679. then :
  16680. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16681. fi
  16682. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16683. if test "x$ac_cv_func_realloc" = xyes
  16684. then :
  16685. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16686. fi
  16687. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16688. if test "x$ac_cv_func_free" = xyes
  16689. then :
  16690. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16691. fi
  16692. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16693. if test "x$ac_cv_func_getenv" = xyes
  16694. then :
  16695. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16696. fi
  16697. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16698. if test "x$ac_cv_func_setenv" = xyes
  16699. then :
  16700. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16701. fi
  16702. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16703. if test "x$ac_cv_func_putenv" = xyes
  16704. then :
  16705. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16706. fi
  16707. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16708. if test "x$ac_cv_func_unsetenv" = xyes
  16709. then :
  16710. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16711. fi
  16712. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16713. if test "x$ac_cv_func_bsearch" = xyes
  16714. then :
  16715. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16716. fi
  16717. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16718. if test "x$ac_cv_func_qsort" = xyes
  16719. then :
  16720. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16721. fi
  16722. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16723. if test "x$ac_cv_func_abs" = xyes
  16724. then :
  16725. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16726. fi
  16727. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16728. if test "x$ac_cv_func_bcopy" = xyes
  16729. then :
  16730. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16731. fi
  16732. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16733. if test "x$ac_cv_func_memset" = xyes
  16734. then :
  16735. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16736. fi
  16737. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16738. if test "x$ac_cv_func_memcmp" = xyes
  16739. then :
  16740. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16741. fi
  16742. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16743. if test "x$ac_cv_func_memcpy" = xyes
  16744. then :
  16745. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16746. fi
  16747. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16748. if test "x$ac_cv_func_memmove" = xyes
  16749. then :
  16750. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16751. fi
  16752. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16753. if test "x$ac_cv_func_wcslen" = xyes
  16754. then :
  16755. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16756. fi
  16757. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16758. if test "x$ac_cv_func_wcslcpy" = xyes
  16759. then :
  16760. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16761. fi
  16762. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16763. if test "x$ac_cv_func_wcslcat" = xyes
  16764. then :
  16765. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16766. fi
  16767. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16768. if test "x$ac_cv_func__wcsdup" = xyes
  16769. then :
  16770. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16771. fi
  16772. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16773. if test "x$ac_cv_func_wcsdup" = xyes
  16774. then :
  16775. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16776. fi
  16777. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16778. if test "x$ac_cv_func_wcsstr" = xyes
  16779. then :
  16780. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16781. fi
  16782. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16783. if test "x$ac_cv_func_wcscmp" = xyes
  16784. then :
  16785. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16786. fi
  16787. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16788. if test "x$ac_cv_func_wcsncmp" = xyes
  16789. then :
  16790. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16791. fi
  16792. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16793. if test "x$ac_cv_func_wcscasecmp" = xyes
  16794. then :
  16795. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16796. fi
  16797. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16798. if test "x$ac_cv_func__wcsicmp" = xyes
  16799. then :
  16800. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16801. fi
  16802. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16803. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16804. then :
  16805. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16806. fi
  16807. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16808. if test "x$ac_cv_func__wcsnicmp" = xyes
  16809. then :
  16810. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16811. fi
  16812. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16813. if test "x$ac_cv_func_strlen" = xyes
  16814. then :
  16815. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16816. fi
  16817. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16818. if test "x$ac_cv_func_strlcpy" = xyes
  16819. then :
  16820. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16821. fi
  16822. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16823. if test "x$ac_cv_func_strlcat" = xyes
  16824. then :
  16825. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16826. fi
  16827. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16828. if test "x$ac_cv_func__strrev" = xyes
  16829. then :
  16830. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16831. fi
  16832. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16833. if test "x$ac_cv_func__strupr" = xyes
  16834. then :
  16835. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16836. fi
  16837. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16838. if test "x$ac_cv_func__strlwr" = xyes
  16839. then :
  16840. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16841. fi
  16842. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16843. if test "x$ac_cv_func_index" = xyes
  16844. then :
  16845. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16846. fi
  16847. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16848. if test "x$ac_cv_func_rindex" = xyes
  16849. then :
  16850. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16851. fi
  16852. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16853. if test "x$ac_cv_func_strchr" = xyes
  16854. then :
  16855. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16856. fi
  16857. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16858. if test "x$ac_cv_func_strrchr" = xyes
  16859. then :
  16860. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16861. fi
  16862. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16863. if test "x$ac_cv_func_strstr" = xyes
  16864. then :
  16865. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16866. fi
  16867. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16868. if test "x$ac_cv_func_strtok_r" = xyes
  16869. then :
  16870. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16871. fi
  16872. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16873. if test "x$ac_cv_func_itoa" = xyes
  16874. then :
  16875. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16876. fi
  16877. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16878. if test "x$ac_cv_func__ltoa" = xyes
  16879. then :
  16880. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16881. fi
  16882. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16883. if test "x$ac_cv_func__uitoa" = xyes
  16884. then :
  16885. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16886. fi
  16887. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16888. if test "x$ac_cv_func__ultoa" = xyes
  16889. then :
  16890. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16891. fi
  16892. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  16893. if test "x$ac_cv_func_strtod" = xyes
  16894. then :
  16895. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16896. fi
  16897. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16898. if test "x$ac_cv_func_strtol" = xyes
  16899. then :
  16900. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16901. fi
  16902. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  16903. if test "x$ac_cv_func_strtoul" = xyes
  16904. then :
  16905. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  16906. fi
  16907. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  16908. if test "x$ac_cv_func__i64toa" = xyes
  16909. then :
  16910. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  16911. fi
  16912. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  16913. if test "x$ac_cv_func__ui64toa" = xyes
  16914. then :
  16915. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  16916. fi
  16917. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  16918. if test "x$ac_cv_func_strtoll" = xyes
  16919. then :
  16920. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  16921. fi
  16922. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  16923. if test "x$ac_cv_func_strtoull" = xyes
  16924. then :
  16925. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  16926. fi
  16927. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  16928. if test "x$ac_cv_func_atoi" = xyes
  16929. then :
  16930. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  16931. fi
  16932. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  16933. if test "x$ac_cv_func_atof" = xyes
  16934. then :
  16935. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  16936. fi
  16937. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  16938. if test "x$ac_cv_func_strcmp" = xyes
  16939. then :
  16940. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  16941. fi
  16942. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  16943. if test "x$ac_cv_func_strncmp" = xyes
  16944. then :
  16945. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  16946. fi
  16947. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  16948. if test "x$ac_cv_func__stricmp" = xyes
  16949. then :
  16950. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  16951. fi
  16952. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  16953. if test "x$ac_cv_func_strcasecmp" = xyes
  16954. then :
  16955. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  16956. fi
  16957. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  16958. if test "x$ac_cv_func__strnicmp" = xyes
  16959. then :
  16960. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  16961. fi
  16962. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  16963. if test "x$ac_cv_func_strncasecmp" = xyes
  16964. then :
  16965. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  16966. fi
  16967. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  16968. if test "x$ac_cv_func_vsscanf" = xyes
  16969. then :
  16970. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  16971. fi
  16972. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  16973. if test "x$ac_cv_func_vsnprintf" = xyes
  16974. then :
  16975. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  16976. fi
  16977. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  16978. if test "x$ac_cv_func_fopen64" = xyes
  16979. then :
  16980. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  16981. fi
  16982. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  16983. if test "x$ac_cv_func_fseeko" = xyes
  16984. then :
  16985. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  16986. fi
  16987. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  16988. if test "x$ac_cv_func_fseeko64" = xyes
  16989. then :
  16990. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  16991. fi
  16992. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  16993. if test "x$ac_cv_func_sigaction" = xyes
  16994. then :
  16995. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  16996. fi
  16997. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  16998. if test "x$ac_cv_func_setjmp" = xyes
  16999. then :
  17000. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17001. fi
  17002. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17003. if test "x$ac_cv_func_nanosleep" = xyes
  17004. then :
  17005. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17006. fi
  17007. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17008. if test "x$ac_cv_func_sysconf" = xyes
  17009. then :
  17010. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17011. fi
  17012. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17013. if test "x$ac_cv_func_sysctlbyname" = xyes
  17014. then :
  17015. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17016. fi
  17017. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17018. if test "x$ac_cv_func_getauxval" = xyes
  17019. then :
  17020. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17021. fi
  17022. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17023. if test "x$ac_cv_func_elf_aux_info" = xyes
  17024. then :
  17025. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17026. fi
  17027. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17028. if test "x$ac_cv_func_poll" = xyes
  17029. then :
  17030. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17031. fi
  17032. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17033. if test "x$ac_cv_func__Exit" = xyes
  17034. then :
  17035. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17036. fi
  17037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17038. printf %s "checking for pow in -lm... " >&6; }
  17039. if test ${ac_cv_lib_m_pow+y}
  17040. then :
  17041. printf %s "(cached) " >&6
  17042. else $as_nop
  17043. ac_check_lib_save_LIBS=$LIBS
  17044. LIBS="-lm $LIBS"
  17045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17046. /* end confdefs.h. */
  17047. /* Override any GCC internal prototype to avoid an error.
  17048. Use char because int might match the return type of a GCC
  17049. builtin and then its argument prototype would still apply. */
  17050. char pow ();
  17051. int
  17052. main (void)
  17053. {
  17054. return pow ();
  17055. ;
  17056. return 0;
  17057. }
  17058. _ACEOF
  17059. if ac_fn_c_try_link "$LINENO"
  17060. then :
  17061. ac_cv_lib_m_pow=yes
  17062. else $as_nop
  17063. ac_cv_lib_m_pow=no
  17064. fi
  17065. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17066. conftest$ac_exeext conftest.$ac_ext
  17067. LIBS=$ac_check_lib_save_LIBS
  17068. fi
  17069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17070. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17071. if test "x$ac_cv_lib_m_pow" = xyes
  17072. then :
  17073. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17074. fi
  17075. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17076. if test "x$ac_cv_func_acos" = xyes
  17077. then :
  17078. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17079. fi
  17080. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17081. if test "x$ac_cv_func_acosf" = xyes
  17082. then :
  17083. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17084. fi
  17085. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17086. if test "x$ac_cv_func_asin" = xyes
  17087. then :
  17088. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17089. fi
  17090. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17091. if test "x$ac_cv_func_asinf" = xyes
  17092. then :
  17093. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17094. fi
  17095. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17096. if test "x$ac_cv_func_atan" = xyes
  17097. then :
  17098. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17099. fi
  17100. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17101. if test "x$ac_cv_func_atanf" = xyes
  17102. then :
  17103. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17104. fi
  17105. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17106. if test "x$ac_cv_func_atan2" = xyes
  17107. then :
  17108. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17109. fi
  17110. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17111. if test "x$ac_cv_func_atan2f" = xyes
  17112. then :
  17113. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17114. fi
  17115. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17116. if test "x$ac_cv_func_ceil" = xyes
  17117. then :
  17118. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17119. fi
  17120. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17121. if test "x$ac_cv_func_ceilf" = xyes
  17122. then :
  17123. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17124. fi
  17125. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17126. if test "x$ac_cv_func_copysign" = xyes
  17127. then :
  17128. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17129. fi
  17130. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17131. if test "x$ac_cv_func_copysignf" = xyes
  17132. then :
  17133. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17134. fi
  17135. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17136. if test "x$ac_cv_func_cos" = xyes
  17137. then :
  17138. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17139. fi
  17140. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17141. if test "x$ac_cv_func_cosf" = xyes
  17142. then :
  17143. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17144. fi
  17145. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17146. if test "x$ac_cv_func_exp" = xyes
  17147. then :
  17148. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17149. fi
  17150. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17151. if test "x$ac_cv_func_expf" = xyes
  17152. then :
  17153. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17154. fi
  17155. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17156. if test "x$ac_cv_func_fabs" = xyes
  17157. then :
  17158. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17159. fi
  17160. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17161. if test "x$ac_cv_func_fabsf" = xyes
  17162. then :
  17163. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17164. fi
  17165. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17166. if test "x$ac_cv_func_floor" = xyes
  17167. then :
  17168. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17169. fi
  17170. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17171. if test "x$ac_cv_func_floorf" = xyes
  17172. then :
  17173. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17174. fi
  17175. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17176. if test "x$ac_cv_func_trunc" = xyes
  17177. then :
  17178. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17179. fi
  17180. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17181. if test "x$ac_cv_func_truncf" = xyes
  17182. then :
  17183. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17184. fi
  17185. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17186. if test "x$ac_cv_func_fmod" = xyes
  17187. then :
  17188. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17189. fi
  17190. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17191. if test "x$ac_cv_func_fmodf" = xyes
  17192. then :
  17193. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17194. fi
  17195. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17196. if test "x$ac_cv_func_log" = xyes
  17197. then :
  17198. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17199. fi
  17200. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17201. if test "x$ac_cv_func_logf" = xyes
  17202. then :
  17203. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17204. fi
  17205. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17206. if test "x$ac_cv_func_log10" = xyes
  17207. then :
  17208. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17209. fi
  17210. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17211. if test "x$ac_cv_func_log10f" = xyes
  17212. then :
  17213. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17214. fi
  17215. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17216. if test "x$ac_cv_func_lround" = xyes
  17217. then :
  17218. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17219. fi
  17220. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17221. if test "x$ac_cv_func_lroundf" = xyes
  17222. then :
  17223. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17224. fi
  17225. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17226. if test "x$ac_cv_func_pow" = xyes
  17227. then :
  17228. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17229. fi
  17230. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17231. if test "x$ac_cv_func_powf" = xyes
  17232. then :
  17233. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17234. fi
  17235. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17236. if test "x$ac_cv_func_round" = xyes
  17237. then :
  17238. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17239. fi
  17240. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17241. if test "x$ac_cv_func_roundf" = xyes
  17242. then :
  17243. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17244. fi
  17245. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17246. if test "x$ac_cv_func_scalbn" = xyes
  17247. then :
  17248. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17249. fi
  17250. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17251. if test "x$ac_cv_func_scalbnf" = xyes
  17252. then :
  17253. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17254. fi
  17255. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17256. if test "x$ac_cv_func_sin" = xyes
  17257. then :
  17258. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17259. fi
  17260. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17261. if test "x$ac_cv_func_sinf" = xyes
  17262. then :
  17263. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17264. fi
  17265. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17266. if test "x$ac_cv_func_sqrt" = xyes
  17267. then :
  17268. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17269. fi
  17270. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17271. if test "x$ac_cv_func_sqrtf" = xyes
  17272. then :
  17273. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17274. fi
  17275. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17276. if test "x$ac_cv_func_tan" = xyes
  17277. then :
  17278. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17279. fi
  17280. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17281. if test "x$ac_cv_func_tanf" = xyes
  17282. then :
  17283. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17284. fi
  17285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17286. printf %s "checking for iconv_open in -liconv... " >&6; }
  17287. if test ${ac_cv_lib_iconv_iconv_open+y}
  17288. then :
  17289. printf %s "(cached) " >&6
  17290. else $as_nop
  17291. ac_check_lib_save_LIBS=$LIBS
  17292. LIBS="-liconv $LIBS"
  17293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17294. /* end confdefs.h. */
  17295. /* Override any GCC internal prototype to avoid an error.
  17296. Use char because int might match the return type of a GCC
  17297. builtin and then its argument prototype would still apply. */
  17298. char iconv_open ();
  17299. int
  17300. main (void)
  17301. {
  17302. return iconv_open ();
  17303. ;
  17304. return 0;
  17305. }
  17306. _ACEOF
  17307. if ac_fn_c_try_link "$LINENO"
  17308. then :
  17309. ac_cv_lib_iconv_iconv_open=yes
  17310. else $as_nop
  17311. ac_cv_lib_iconv_iconv_open=no
  17312. fi
  17313. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17314. conftest$ac_exeext conftest.$ac_ext
  17315. LIBS=$ac_check_lib_save_LIBS
  17316. fi
  17317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17318. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17319. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17320. then :
  17321. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17322. fi
  17323. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17324. if test "x$ac_cv_func_iconv" = xyes
  17325. then :
  17326. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17327. fi
  17328. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17329. "
  17330. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17331. then :
  17332. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17333. fi
  17334. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17335. if test "x$ac_cv_header_libunwind_h" = xyes
  17336. then :
  17337. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17338. fi
  17339. fi
  17340. # Check whether --enable-gcc-atomics was given.
  17341. if test ${enable_gcc_atomics+y}
  17342. then :
  17343. enableval=$enable_gcc_atomics;
  17344. else $as_nop
  17345. enable_gcc_atomics=yes
  17346. fi
  17347. if test x$enable_gcc_atomics = xyes; then
  17348. have_gcc_atomics=no
  17349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17350. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17352. /* end confdefs.h. */
  17353. int
  17354. main (void)
  17355. {
  17356. int a;
  17357. void *x, *y, *z;
  17358. __sync_lock_test_and_set(&a, 4);
  17359. __sync_lock_test_and_set(&x, y);
  17360. __sync_fetch_and_add(&a, 1);
  17361. __sync_bool_compare_and_swap(&a, 5, 10);
  17362. __sync_bool_compare_and_swap(&x, y, z);
  17363. ;
  17364. return 0;
  17365. }
  17366. _ACEOF
  17367. if ac_fn_c_try_link "$LINENO"
  17368. then :
  17369. have_gcc_atomics=yes
  17370. fi
  17371. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17372. conftest$ac_exeext conftest.$ac_ext
  17373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17374. printf "%s\n" "$have_gcc_atomics" >&6; }
  17375. if test x$have_gcc_atomics = xyes; then
  17376. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17377. else
  17378. # See if we have the minimum operation needed for GCC atomics
  17379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17380. /* end confdefs.h. */
  17381. int
  17382. main (void)
  17383. {
  17384. int a;
  17385. __sync_lock_test_and_set(&a, 1);
  17386. __sync_lock_release(&a);
  17387. ;
  17388. return 0;
  17389. }
  17390. _ACEOF
  17391. if ac_fn_c_try_link "$LINENO"
  17392. then :
  17393. have_gcc_sync_lock_test_and_set=yes
  17394. fi
  17395. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17396. conftest$ac_exeext conftest.$ac_ext
  17397. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17398. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17399. fi
  17400. fi
  17401. fi
  17402. # Standard C sources
  17403. SOURCES="$SOURCES $srcdir/src/*.c"
  17404. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17405. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17406. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17407. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17408. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17409. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17410. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17411. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17412. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17413. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17414. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17415. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17416. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17417. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17418. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17419. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17420. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17421. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17422. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17423. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17424. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17425. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17426. case "$host" in
  17427. *-*-emscripten*)
  17428. default_atomic=no
  17429. ;;
  17430. *)
  17431. default_atomic=yes
  17432. ;;
  17433. esac
  17434. # Check whether --enable-atomic was given.
  17435. if test ${enable_atomic+y}
  17436. then :
  17437. enableval=$enable_atomic;
  17438. else $as_nop
  17439. enable_atomic=$default_atomic
  17440. fi
  17441. if test x$enable_atomic != xyes; then
  17442. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17443. else
  17444. SUMMARY_modules="${SUMMARY_modules} atomic"
  17445. fi
  17446. # Check whether --enable-audio was given.
  17447. if test ${enable_audio+y}
  17448. then :
  17449. enableval=$enable_audio;
  17450. else $as_nop
  17451. enable_audio=yes
  17452. fi
  17453. if test x$enable_audio != xyes; then
  17454. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17455. else
  17456. SUMMARY_modules="${SUMMARY_modules} audio"
  17457. fi
  17458. # Check whether --enable-video was given.
  17459. if test ${enable_video+y}
  17460. then :
  17461. enableval=$enable_video;
  17462. else $as_nop
  17463. enable_video=yes
  17464. fi
  17465. if test x$enable_video != xyes; then
  17466. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17467. else
  17468. SUMMARY_modules="${SUMMARY_modules} video"
  17469. fi
  17470. # Check whether --enable-render was given.
  17471. if test ${enable_render+y}
  17472. then :
  17473. enableval=$enable_render;
  17474. else $as_nop
  17475. enable_render=yes
  17476. fi
  17477. if test x$enable_render != xyes; then
  17478. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17479. else
  17480. SUMMARY_modules="${SUMMARY_modules} render"
  17481. fi
  17482. # Check whether --enable-events was given.
  17483. if test ${enable_events+y}
  17484. then :
  17485. enableval=$enable_events;
  17486. else $as_nop
  17487. enable_events=yes
  17488. fi
  17489. if test x$enable_events != xyes; then
  17490. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17491. else
  17492. SUMMARY_modules="${SUMMARY_modules} events"
  17493. fi
  17494. # Check whether --enable-joystick was given.
  17495. if test ${enable_joystick+y}
  17496. then :
  17497. enableval=$enable_joystick;
  17498. else $as_nop
  17499. enable_joystick=yes
  17500. fi
  17501. if test x$enable_joystick != xyes; then
  17502. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17503. else
  17504. SUMMARY_modules="${SUMMARY_modules} joystick"
  17505. fi
  17506. # Check whether --enable-haptic was given.
  17507. if test ${enable_haptic+y}
  17508. then :
  17509. enableval=$enable_haptic;
  17510. else $as_nop
  17511. enable_haptic=yes
  17512. fi
  17513. if test x$enable_haptic != xyes; then
  17514. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17515. else
  17516. SUMMARY_modules="${SUMMARY_modules} haptic"
  17517. fi
  17518. # Check whether --enable-hidapi was given.
  17519. if test ${enable_hidapi+y}
  17520. then :
  17521. enableval=$enable_hidapi;
  17522. else $as_nop
  17523. enable_hidapi=yes
  17524. fi
  17525. if test x$enable_hidapi != xyes; then
  17526. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17527. else
  17528. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17529. fi
  17530. # Check whether --enable-sensor was given.
  17531. if test ${enable_sensor+y}
  17532. then :
  17533. enableval=$enable_sensor;
  17534. else $as_nop
  17535. enable_sensor=yes
  17536. fi
  17537. if test x$enable_sensor != xyes; then
  17538. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17539. else
  17540. SUMMARY_modules="${SUMMARY_modules} sensor"
  17541. fi
  17542. # Check whether --enable-power was given.
  17543. if test ${enable_power+y}
  17544. then :
  17545. enableval=$enable_power;
  17546. else $as_nop
  17547. enable_power=yes
  17548. fi
  17549. if test x$enable_power != xyes; then
  17550. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17551. else
  17552. SUMMARY_modules="${SUMMARY_modules} power"
  17553. fi
  17554. # Check whether --enable-filesystem was given.
  17555. if test ${enable_filesystem+y}
  17556. then :
  17557. enableval=$enable_filesystem;
  17558. else $as_nop
  17559. enable_filesystem=yes
  17560. fi
  17561. if test x$enable_filesystem != xyes; then
  17562. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17563. else
  17564. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17565. fi
  17566. # Many subsystems depend on threads, so leave them enabled by default
  17567. #AC_ARG_ENABLE(threads,
  17568. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17569. # , enable_threads=yes)
  17570. enable_threads=yes
  17571. if test x$enable_threads != xyes; then
  17572. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17573. else
  17574. SUMMARY_modules="${SUMMARY_modules} threads"
  17575. fi
  17576. # Check whether --enable-timers was given.
  17577. if test ${enable_timers+y}
  17578. then :
  17579. enableval=$enable_timers;
  17580. else $as_nop
  17581. enable_timers=yes
  17582. fi
  17583. if test x$enable_timers != xyes; then
  17584. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17585. else
  17586. SUMMARY_modules="${SUMMARY_modules} timers"
  17587. fi
  17588. # Check whether --enable-file was given.
  17589. if test ${enable_file+y}
  17590. then :
  17591. enableval=$enable_file;
  17592. else $as_nop
  17593. enable_file=yes
  17594. fi
  17595. if test x$enable_file != xyes; then
  17596. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17597. else
  17598. SUMMARY_modules="${SUMMARY_modules} file"
  17599. fi
  17600. # Check whether --enable-misc was given.
  17601. if test ${enable_misc+y}
  17602. then :
  17603. enableval=$enable_misc;
  17604. else $as_nop
  17605. enable_misc=yes
  17606. fi
  17607. if test x$enable_misc != xyes; then
  17608. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17609. else
  17610. SUMMARY_modules="${SUMMARY_modules} misc"
  17611. fi
  17612. # Check whether --enable-locale was given.
  17613. if test ${enable_locale+y}
  17614. then :
  17615. enableval=$enable_locale;
  17616. else $as_nop
  17617. enable_locale=yes
  17618. fi
  17619. if test x$enable_locale != xyes; then
  17620. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17621. else
  17622. SUMMARY_modules="${SUMMARY_modules} locale"
  17623. fi
  17624. # Check whether --enable-loadso was given.
  17625. if test ${enable_loadso+y}
  17626. then :
  17627. enableval=$enable_loadso;
  17628. else $as_nop
  17629. enable_loadso=yes
  17630. fi
  17631. if test x$enable_loadso != xyes; then
  17632. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17633. else
  17634. SUMMARY_modules="${SUMMARY_modules} loadso"
  17635. fi
  17636. # Check whether --enable-cpuinfo was given.
  17637. if test ${enable_cpuinfo+y}
  17638. then :
  17639. enableval=$enable_cpuinfo;
  17640. else $as_nop
  17641. enable_cpuinfo=yes
  17642. fi
  17643. if test x$enable_cpuinfo != xyes; then
  17644. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17645. else
  17646. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17647. fi
  17648. # Check whether --enable-assembly was given.
  17649. if test ${enable_assembly+y}
  17650. then :
  17651. enableval=$enable_assembly;
  17652. else $as_nop
  17653. enable_assembly=yes
  17654. fi
  17655. if test x$enable_assembly = xyes; then
  17656. SUMMARY_modules="${SUMMARY_modules} assembly"
  17657. # Make sure that we don't generate floating point code that would
  17658. # cause illegal instruction exceptions on older processors
  17659. case "$host" in
  17660. *-*-darwin*)
  17661. # Don't need to worry about Apple hardware, it's all SSE capable
  17662. default_ssemath=yes
  17663. ;;
  17664. *64-*-*)
  17665. # x86 64-bit architectures all have SSE instructions
  17666. default_ssemath=yes
  17667. ;;
  17668. *)
  17669. default_ssemath=no
  17670. ;;
  17671. esac
  17672. # Check whether --enable-ssemath was given.
  17673. if test ${enable_ssemath+y}
  17674. then :
  17675. enableval=$enable_ssemath;
  17676. else $as_nop
  17677. enable_ssemath=$default_ssemath
  17678. fi
  17679. if test x$enable_ssemath = xno; then
  17680. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17681. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17682. fi
  17683. fi
  17684. # Check whether --enable-mmx was given.
  17685. if test ${enable_mmx+y}
  17686. then :
  17687. enableval=$enable_mmx;
  17688. else $as_nop
  17689. enable_mmx=yes
  17690. fi
  17691. if test x$enable_mmx = xyes; then
  17692. save_CFLAGS="$CFLAGS"
  17693. have_gcc_mmx=no
  17694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17695. printf %s "checking for GCC -mmmx option... " >&6; }
  17696. mmx_CFLAGS="-mmmx"
  17697. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17699. /* end confdefs.h. */
  17700. #ifdef __MINGW32__
  17701. #include <_mingw.h>
  17702. #ifdef __MINGW64_VERSION_MAJOR
  17703. #include <intrin.h>
  17704. #else
  17705. #include <mmintrin.h>
  17706. #endif
  17707. #else
  17708. #include <mmintrin.h>
  17709. #endif
  17710. #ifndef __MMX__
  17711. #error Assembler CPP flag not enabled
  17712. #endif
  17713. int
  17714. main (void)
  17715. {
  17716. ;
  17717. return 0;
  17718. }
  17719. _ACEOF
  17720. if ac_fn_c_try_compile "$LINENO"
  17721. then :
  17722. have_gcc_mmx=yes
  17723. fi
  17724. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17726. printf "%s\n" "$have_gcc_mmx" >&6; }
  17727. CFLAGS="$save_CFLAGS"
  17728. if test x$have_gcc_mmx = xyes; then
  17729. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17730. SUMMARY_math="${SUMMARY_math} mmx"
  17731. fi
  17732. fi
  17733. # Check whether --enable-3dnow was given.
  17734. if test ${enable_3dnow+y}
  17735. then :
  17736. enableval=$enable_3dnow;
  17737. else $as_nop
  17738. enable_3dnow=yes
  17739. fi
  17740. if test x$enable_3dnow = xyes; then
  17741. save_CFLAGS="$CFLAGS"
  17742. have_gcc_3dnow=no
  17743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17744. printf %s "checking for GCC -m3dnow option... " >&6; }
  17745. amd3dnow_CFLAGS="-m3dnow"
  17746. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17748. /* end confdefs.h. */
  17749. #include <mm3dnow.h>
  17750. #ifndef __3dNOW__
  17751. #error Assembler CPP flag not enabled
  17752. #endif
  17753. int
  17754. main (void)
  17755. {
  17756. void *p = 0;
  17757. _m_prefetch(p);
  17758. ;
  17759. return 0;
  17760. }
  17761. _ACEOF
  17762. if ac_fn_c_try_link "$LINENO"
  17763. then :
  17764. have_gcc_3dnow=yes
  17765. fi
  17766. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17767. conftest$ac_exeext conftest.$ac_ext
  17768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17769. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17770. CFLAGS="$save_CFLAGS"
  17771. if test x$have_gcc_3dnow = xyes; then
  17772. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17773. SUMMARY_math="${SUMMARY_math} 3dnow"
  17774. fi
  17775. fi
  17776. # Check whether --enable-sse was given.
  17777. if test ${enable_sse+y}
  17778. then :
  17779. enableval=$enable_sse;
  17780. else $as_nop
  17781. enable_sse=yes
  17782. fi
  17783. if test x$enable_sse = xyes; then
  17784. save_CFLAGS="$CFLAGS"
  17785. have_gcc_sse=no
  17786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17787. printf %s "checking for GCC -msse option... " >&6; }
  17788. sse_CFLAGS="-msse"
  17789. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17791. /* end confdefs.h. */
  17792. #ifdef __MINGW32__
  17793. #include <_mingw.h>
  17794. #ifdef __MINGW64_VERSION_MAJOR
  17795. #include <intrin.h>
  17796. #else
  17797. #include <xmmintrin.h>
  17798. #endif
  17799. #else
  17800. #include <xmmintrin.h>
  17801. #endif
  17802. #ifndef __SSE__
  17803. #error Assembler CPP flag not enabled
  17804. #endif
  17805. int
  17806. main (void)
  17807. {
  17808. ;
  17809. return 0;
  17810. }
  17811. _ACEOF
  17812. if ac_fn_c_try_compile "$LINENO"
  17813. then :
  17814. have_gcc_sse=yes
  17815. fi
  17816. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17818. printf "%s\n" "$have_gcc_sse" >&6; }
  17819. CFLAGS="$save_CFLAGS"
  17820. if test x$have_gcc_sse = xyes; then
  17821. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17822. SUMMARY_math="${SUMMARY_math} sse"
  17823. fi
  17824. fi
  17825. # Check whether --enable-sse2 was given.
  17826. if test ${enable_sse2+y}
  17827. then :
  17828. enableval=$enable_sse2;
  17829. else $as_nop
  17830. enable_sse2=$default_ssemath
  17831. fi
  17832. if test x$enable_sse2 = xyes; then
  17833. save_CFLAGS="$CFLAGS"
  17834. have_gcc_sse2=no
  17835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17836. printf %s "checking for GCC -msse2 option... " >&6; }
  17837. sse2_CFLAGS="-msse2"
  17838. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17840. /* end confdefs.h. */
  17841. #ifdef __MINGW32__
  17842. #include <_mingw.h>
  17843. #ifdef __MINGW64_VERSION_MAJOR
  17844. #include <intrin.h>
  17845. #else
  17846. #include <emmintrin.h>
  17847. #endif
  17848. #else
  17849. #include <emmintrin.h>
  17850. #endif
  17851. #ifndef __SSE2__
  17852. #error Assembler CPP flag not enabled
  17853. #endif
  17854. int
  17855. main (void)
  17856. {
  17857. ;
  17858. return 0;
  17859. }
  17860. _ACEOF
  17861. if ac_fn_c_try_compile "$LINENO"
  17862. then :
  17863. have_gcc_sse2=yes
  17864. fi
  17865. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17867. printf "%s\n" "$have_gcc_sse2" >&6; }
  17868. CFLAGS="$save_CFLAGS"
  17869. if test x$have_gcc_sse2 = xyes; then
  17870. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17871. SUMMARY_math="${SUMMARY_math} sse2"
  17872. fi
  17873. fi
  17874. # Check whether --enable-sse3 was given.
  17875. if test ${enable_sse3+y}
  17876. then :
  17877. enableval=$enable_sse3;
  17878. else $as_nop
  17879. enable_sse3=$default_ssemath
  17880. fi
  17881. if test x$enable_sse3 = xyes; then
  17882. save_CFLAGS="$CFLAGS"
  17883. have_gcc_sse3=no
  17884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17885. printf %s "checking for GCC -msse3 option... " >&6; }
  17886. sse3_CFLAGS="-msse3"
  17887. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17889. /* end confdefs.h. */
  17890. #ifdef __MINGW32__
  17891. #include <_mingw.h>
  17892. #ifdef __MINGW64_VERSION_MAJOR
  17893. #include <intrin.h>
  17894. #else
  17895. #include <pmmintrin.h>
  17896. #endif
  17897. #else
  17898. #include <pmmintrin.h>
  17899. #endif
  17900. #ifndef __SSE2__
  17901. #error Assembler CPP flag not enabled
  17902. #endif
  17903. int
  17904. main (void)
  17905. {
  17906. ;
  17907. return 0;
  17908. }
  17909. _ACEOF
  17910. if ac_fn_c_try_compile "$LINENO"
  17911. then :
  17912. have_gcc_sse3=yes
  17913. fi
  17914. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  17916. printf "%s\n" "$have_gcc_sse3" >&6; }
  17917. CFLAGS="$save_CFLAGS"
  17918. if test x$have_gcc_sse3 = xyes; then
  17919. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  17920. SUMMARY_math="${SUMMARY_math} sse3"
  17921. fi
  17922. fi
  17923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  17924. printf %s "checking for immintrin.h... " >&6; }
  17925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17926. /* end confdefs.h. */
  17927. #include <immintrin.h>
  17928. int
  17929. main (void)
  17930. {
  17931. ;
  17932. return 0;
  17933. }
  17934. _ACEOF
  17935. if ac_fn_c_try_compile "$LINENO"
  17936. then :
  17937. have_immintrin_h_hdr=yes
  17938. else $as_nop
  17939. have_immintrin_h_hdr=no
  17940. fi
  17941. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  17943. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  17944. if test x$have_immintrin_h_hdr = xyes; then
  17945. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  17946. fi
  17947. # Check whether --enable-altivec was given.
  17948. if test ${enable_altivec+y}
  17949. then :
  17950. enableval=$enable_altivec;
  17951. else $as_nop
  17952. enable_altivec=yes
  17953. fi
  17954. if test x$enable_altivec = xyes; then
  17955. save_CFLAGS="$CFLAGS"
  17956. have_gcc_altivec=no
  17957. have_altivec_h_hdr=no
  17958. altivec_CFLAGS="-maltivec"
  17959. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  17961. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  17962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17963. /* end confdefs.h. */
  17964. #include <altivec.h>
  17965. vector unsigned int vzero() {
  17966. return vec_splat_u32(0);
  17967. }
  17968. int
  17969. main (void)
  17970. {
  17971. ;
  17972. return 0;
  17973. }
  17974. _ACEOF
  17975. if ac_fn_c_try_compile "$LINENO"
  17976. then :
  17977. have_gcc_altivec=yes
  17978. have_altivec_h_hdr=yes
  17979. fi
  17980. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17982. printf "%s\n" "$have_gcc_altivec" >&6; }
  17983. if test x$have_gcc_altivec = xno; then
  17984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  17985. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  17986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17987. /* end confdefs.h. */
  17988. vector unsigned int vzero() {
  17989. return vec_splat_u32(0);
  17990. }
  17991. int
  17992. main (void)
  17993. {
  17994. ;
  17995. return 0;
  17996. }
  17997. _ACEOF
  17998. if ac_fn_c_try_compile "$LINENO"
  17999. then :
  18000. have_gcc_altivec=yes
  18001. fi
  18002. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18004. printf "%s\n" "$have_gcc_altivec" >&6; }
  18005. fi
  18006. if test x$have_gcc_altivec = xno; then
  18007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18008. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18009. altivec_CFLAGS="-faltivec"
  18010. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18012. /* end confdefs.h. */
  18013. #include <altivec.h>
  18014. vector unsigned int vzero() {
  18015. return vec_splat_u32(0);
  18016. }
  18017. int
  18018. main (void)
  18019. {
  18020. ;
  18021. return 0;
  18022. }
  18023. _ACEOF
  18024. if ac_fn_c_try_compile "$LINENO"
  18025. then :
  18026. have_gcc_altivec=yes
  18027. have_altivec_h_hdr=yes
  18028. fi
  18029. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18031. printf "%s\n" "$have_gcc_altivec" >&6; }
  18032. fi
  18033. if test x$have_gcc_altivec = xno; then
  18034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18035. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18037. /* end confdefs.h. */
  18038. vector unsigned int vzero() {
  18039. return vec_splat_u32(0);
  18040. }
  18041. int
  18042. main (void)
  18043. {
  18044. ;
  18045. return 0;
  18046. }
  18047. _ACEOF
  18048. if ac_fn_c_try_compile "$LINENO"
  18049. then :
  18050. have_gcc_altivec=yes
  18051. fi
  18052. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18054. printf "%s\n" "$have_gcc_altivec" >&6; }
  18055. fi
  18056. CFLAGS="$save_CFLAGS"
  18057. if test x$have_gcc_altivec = xyes; then
  18058. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18059. if test x$have_altivec_h_hdr = xyes; then
  18060. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18061. fi
  18062. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18063. SUMMARY_math="${SUMMARY_math} altivec"
  18064. fi
  18065. fi
  18066. fi
  18067. # Check whether --enable-lsx was given.
  18068. if test ${enable_lsx+y}
  18069. then :
  18070. enableval=$enable_lsx;
  18071. else $as_nop
  18072. enable_lsx=yes
  18073. fi
  18074. if test x$enable_lsx = xyes; then
  18075. save_CFLAGS="$CFLAGS"
  18076. have_gcc_lsx=no
  18077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18078. printf %s "checking for GCC -mlsx option... " >&6; }
  18079. lsx_CFLAGS="-mlsx"
  18080. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18082. /* end confdefs.h. */
  18083. #ifndef __loongarch_sx
  18084. #error Assembler CPP flag not enabled
  18085. #endif
  18086. int
  18087. main (void)
  18088. {
  18089. ;
  18090. return 0;
  18091. }
  18092. _ACEOF
  18093. if ac_fn_c_try_compile "$LINENO"
  18094. then :
  18095. have_gcc_lsx=yes
  18096. fi
  18097. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18099. printf "%s\n" "$have_gcc_lsx" >&6; }
  18100. CFLAGS="$save_CFLAGS"
  18101. if test x$have_gcc_lsx = xyes; then
  18102. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18103. SUMMARY_math="${SUMMARY_math} lsx"
  18104. fi
  18105. fi
  18106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18107. printf %s "checking for lsxintrin.h... " >&6; }
  18108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18109. /* end confdefs.h. */
  18110. #include <lsxintrin.h>
  18111. int
  18112. main (void)
  18113. {
  18114. ;
  18115. return 0;
  18116. }
  18117. _ACEOF
  18118. if ac_fn_c_try_compile "$LINENO"
  18119. then :
  18120. have_lsxintrin_h_hdr=yes
  18121. else $as_nop
  18122. have_lsxintrin_h_hdr=no
  18123. fi
  18124. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18126. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18127. if test x$have_lsxintrin_h_hdr = xyes; then
  18128. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18129. fi
  18130. # Check whether --enable-lasx was given.
  18131. if test ${enable_lasx+y}
  18132. then :
  18133. enableval=$enable_lasx;
  18134. else $as_nop
  18135. enable_LASX=yes
  18136. fi
  18137. if test x$enable_LASX = xyes; then
  18138. save_CFLAGS="$CFLAGS"
  18139. have_gcc_lasx=no
  18140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18141. printf %s "checking for GCC -mlasx option... " >&6; }
  18142. lasx_CFLAGS="-mlasx"
  18143. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18145. /* end confdefs.h. */
  18146. #ifndef __loongarch_asx
  18147. #error Assembler CPP flag not enabled
  18148. #endif
  18149. int
  18150. main (void)
  18151. {
  18152. ;
  18153. return 0;
  18154. }
  18155. _ACEOF
  18156. if ac_fn_c_try_compile "$LINENO"
  18157. then :
  18158. have_gcc_lasx=yes
  18159. fi
  18160. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18162. printf "%s\n" "$have_gcc_lasx" >&6; }
  18163. CFLAGS="$save_CFLAGS"
  18164. if test x$have_gcc_lasx = xyes; then
  18165. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18166. SUMMARY_math="${SUMMARY_math} lasx"
  18167. fi
  18168. fi
  18169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18170. printf %s "checking for lasxintrin.h... " >&6; }
  18171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18172. /* end confdefs.h. */
  18173. #include <lasxintrin.h>
  18174. int
  18175. main (void)
  18176. {
  18177. ;
  18178. return 0;
  18179. }
  18180. _ACEOF
  18181. if ac_fn_c_try_compile "$LINENO"
  18182. then :
  18183. have_lasxintrin_h_hdr=yes
  18184. else $as_nop
  18185. have_lasxintrin_h_hdr=no
  18186. fi
  18187. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18189. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18190. if test x$have_lasxintrin_h_hdr = xyes; then
  18191. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18192. fi
  18193. CheckOSS()
  18194. {
  18195. # Check whether --enable-oss was given.
  18196. if test ${enable_oss+y}
  18197. then :
  18198. enableval=$enable_oss;
  18199. else $as_nop
  18200. enable_oss=maybe
  18201. fi
  18202. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  18203. # use sndio instead. So on there, we default to disabled. You can force
  18204. # it on if you really want, though.
  18205. if test x$enable_oss = xmaybe; then
  18206. enable_oss=yes
  18207. case "$host" in
  18208. *-*-openbsd*)
  18209. enable_oss=no;;
  18210. esac
  18211. fi
  18212. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18214. printf %s "checking for OSS audio support... " >&6; }
  18215. have_oss=no
  18216. if test x$have_oss != xyes; then
  18217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18218. /* end confdefs.h. */
  18219. #include <sys/soundcard.h>
  18220. int
  18221. main (void)
  18222. {
  18223. int arg = SNDCTL_DSP_SETFRAGMENT;
  18224. ;
  18225. return 0;
  18226. }
  18227. _ACEOF
  18228. if ac_fn_c_try_compile "$LINENO"
  18229. then :
  18230. have_oss=yes
  18231. fi
  18232. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18233. fi
  18234. if test x$have_oss != xyes; then
  18235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18236. /* end confdefs.h. */
  18237. #include <soundcard.h>
  18238. int
  18239. main (void)
  18240. {
  18241. int arg = SNDCTL_DSP_SETFRAGMENT;
  18242. ;
  18243. return 0;
  18244. }
  18245. _ACEOF
  18246. if ac_fn_c_try_compile "$LINENO"
  18247. then :
  18248. have_oss=yes
  18249. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  18250. fi
  18251. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18252. fi
  18253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18254. printf "%s\n" "$have_oss" >&6; }
  18255. if test x$have_oss = xyes; then
  18256. SUMMARY_audio="${SUMMARY_audio} oss"
  18257. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18258. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18259. have_audio=yes
  18260. # We may need to link with ossaudio emulation library
  18261. case "$host" in
  18262. *-*-openbsd*|*-*-netbsd*)
  18263. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18264. esac
  18265. fi
  18266. fi
  18267. }
  18268. CheckALSA()
  18269. {
  18270. # Check whether --enable-alsa was given.
  18271. if test ${enable_alsa+y}
  18272. then :
  18273. enableval=$enable_alsa;
  18274. else $as_nop
  18275. enable_alsa=yes
  18276. fi
  18277. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18278. alsa_save_CFLAGS="$CFLAGS"
  18279. alsa_save_LDFLAGS="$LDFLAGS"
  18280. alsa_save_LIBS="$LIBS"
  18281. alsa_found=yes
  18282. # Check whether --with-alsa-prefix was given.
  18283. if test ${with_alsa_prefix+y}
  18284. then :
  18285. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18286. else $as_nop
  18287. alsa_prefix=""
  18288. fi
  18289. # Check whether --with-alsa-inc-prefix was given.
  18290. if test ${with_alsa_inc_prefix+y}
  18291. then :
  18292. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18293. else $as_nop
  18294. alsa_inc_prefix=""
  18295. fi
  18296. # Check whether --enable-alsatest was given.
  18297. if test ${enable_alsatest+y}
  18298. then :
  18299. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18300. else $as_nop
  18301. enable_alsatest=yes
  18302. fi
  18303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18304. printf %s "checking for ALSA CFLAGS... " >&6; }
  18305. if test "$alsa_inc_prefix" != "" ; then
  18306. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18307. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18308. fi
  18309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18310. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18312. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18313. if test "$alsa_prefix" != "" ; then
  18314. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18315. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18316. fi
  18317. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18318. LIBS=`echo $LIBS | sed 's/-lm//'`
  18319. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18320. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18321. LIBS=`echo $LIBS | sed 's/ //'`
  18322. LIBS="$ALSA_LIBS $LIBS"
  18323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18324. printf "%s\n" "$ALSA_LIBS" >&6; }
  18325. min_alsa_version=1.0.11
  18326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18327. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18328. no_alsa=""
  18329. alsa_min_major_version=`echo $min_alsa_version | \
  18330. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18331. alsa_min_minor_version=`echo $min_alsa_version | \
  18332. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18333. alsa_min_micro_version=`echo $min_alsa_version | \
  18334. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18335. ac_ext=c
  18336. ac_cpp='$CPP $CPPFLAGS'
  18337. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18338. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18339. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18341. /* end confdefs.h. */
  18342. #include <alsa/asoundlib.h>
  18343. int
  18344. main (void)
  18345. {
  18346. /* ensure backward compatibility */
  18347. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18348. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18349. #endif
  18350. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18351. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18352. #endif
  18353. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18354. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18355. #endif
  18356. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18357. exit(0);
  18358. # else
  18359. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18360. # error not present
  18361. # endif
  18362. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18363. exit(0);
  18364. # else
  18365. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18366. # error not present
  18367. # endif
  18368. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18369. # error not present
  18370. # endif
  18371. # endif
  18372. # endif
  18373. exit(0);
  18374. ;
  18375. return 0;
  18376. }
  18377. _ACEOF
  18378. if ac_fn_c_try_compile "$LINENO"
  18379. then :
  18380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18381. printf "%s\n" "found." >&6; }
  18382. else $as_nop
  18383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18384. printf "%s\n" "not present." >&6; }
  18385. alsa_found=no
  18386. fi
  18387. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18388. ac_ext=c
  18389. ac_cpp='$CPP $CPPFLAGS'
  18390. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18391. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18392. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18393. if test "x$enable_alsatest" = "xyes"; then
  18394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18395. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18396. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18397. then :
  18398. printf %s "(cached) " >&6
  18399. else $as_nop
  18400. ac_check_lib_save_LIBS=$LIBS
  18401. LIBS="-lasound $LIBS"
  18402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18403. /* end confdefs.h. */
  18404. /* Override any GCC internal prototype to avoid an error.
  18405. Use char because int might match the return type of a GCC
  18406. builtin and then its argument prototype would still apply. */
  18407. char snd_ctl_open ();
  18408. int
  18409. main (void)
  18410. {
  18411. return snd_ctl_open ();
  18412. ;
  18413. return 0;
  18414. }
  18415. _ACEOF
  18416. if ac_fn_c_try_link "$LINENO"
  18417. then :
  18418. ac_cv_lib_asound_snd_ctl_open=yes
  18419. else $as_nop
  18420. ac_cv_lib_asound_snd_ctl_open=no
  18421. fi
  18422. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18423. conftest$ac_exeext conftest.$ac_ext
  18424. LIBS=$ac_check_lib_save_LIBS
  18425. fi
  18426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18427. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18428. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18429. then :
  18430. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18431. LIBS="-lasound $LIBS"
  18432. else $as_nop
  18433. alsa_found=no
  18434. fi
  18435. fi
  18436. if test "x$alsa_found" = "xyes" ; then
  18437. have_alsa=yes
  18438. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18439. LIBS=`echo $LIBS | sed 's/ //'`
  18440. LIBS="-lasound $LIBS"
  18441. fi
  18442. if test "x$alsa_found" = "xno" ; then
  18443. have_alsa=no
  18444. CFLAGS="$alsa_save_CFLAGS"
  18445. LDFLAGS="$alsa_save_LDFLAGS"
  18446. LIBS="$alsa_save_LIBS"
  18447. ALSA_CFLAGS=""
  18448. ALSA_LIBS=""
  18449. fi
  18450. # Restore all flags from before the ALSA detection runs
  18451. CFLAGS="$alsa_save_CFLAGS"
  18452. LDFLAGS="$alsa_save_LDFLAGS"
  18453. LIBS="$alsa_save_LIBS"
  18454. if test x$have_alsa = xyes; then
  18455. # Check whether --enable-alsa-shared was given.
  18456. if test ${enable_alsa_shared+y}
  18457. then :
  18458. enableval=$enable_alsa_shared;
  18459. else $as_nop
  18460. enable_alsa_shared=yes
  18461. fi
  18462. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18463. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18464. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18465. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18466. if test x$have_loadso != xyes && \
  18467. test x$enable_alsa_shared = xyes; then
  18468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18469. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18470. fi
  18471. if test x$have_loadso = xyes && \
  18472. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18473. echo "-- dynamic libasound -> $alsa_lib"
  18474. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18475. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18476. else
  18477. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18478. SUMMARY_audio="${SUMMARY_audio} alsa"
  18479. fi
  18480. have_audio=yes
  18481. fi
  18482. fi
  18483. }
  18484. CheckJACK()
  18485. {
  18486. # Check whether --enable-jack was given.
  18487. if test ${enable_jack+y}
  18488. then :
  18489. enableval=$enable_jack;
  18490. else $as_nop
  18491. enable_jack=yes
  18492. fi
  18493. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18494. pkg_failed=no
  18495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18496. printf %s "checking for jack >= 0.125... " >&6; }
  18497. if test -n "$JACK_CFLAGS"; then
  18498. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18499. elif test -n "$PKG_CONFIG"; then
  18500. if test -n "$PKG_CONFIG" && \
  18501. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18502. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18503. ac_status=$?
  18504. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18505. test $ac_status = 0; }; then
  18506. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18507. test "x$?" != "x0" && pkg_failed=yes
  18508. else
  18509. pkg_failed=yes
  18510. fi
  18511. else
  18512. pkg_failed=untried
  18513. fi
  18514. if test -n "$JACK_LIBS"; then
  18515. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18516. elif test -n "$PKG_CONFIG"; then
  18517. if test -n "$PKG_CONFIG" && \
  18518. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18519. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18520. ac_status=$?
  18521. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18522. test $ac_status = 0; }; then
  18523. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18524. test "x$?" != "x0" && pkg_failed=yes
  18525. else
  18526. pkg_failed=yes
  18527. fi
  18528. else
  18529. pkg_failed=untried
  18530. fi
  18531. if test $pkg_failed = yes; then
  18532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18533. printf "%s\n" "no" >&6; }
  18534. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18535. _pkg_short_errors_supported=yes
  18536. else
  18537. _pkg_short_errors_supported=no
  18538. fi
  18539. if test $_pkg_short_errors_supported = yes; then
  18540. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18541. else
  18542. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18543. fi
  18544. # Put the nasty error message in config.log where it belongs
  18545. echo "$JACK_PKG_ERRORS" >&5
  18546. audio_jack=no
  18547. elif test $pkg_failed = untried; then
  18548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18549. printf "%s\n" "no" >&6; }
  18550. audio_jack=no
  18551. else
  18552. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18553. JACK_LIBS=$pkg_cv_JACK_LIBS
  18554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18555. printf "%s\n" "yes" >&6; }
  18556. audio_jack=yes
  18557. fi
  18558. if test x$audio_jack = xyes; then
  18559. # Check whether --enable-jack-shared was given.
  18560. if test ${enable_jack_shared+y}
  18561. then :
  18562. enableval=$enable_jack_shared;
  18563. else $as_nop
  18564. enable_jack_shared=yes
  18565. fi
  18566. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18567. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18568. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18569. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18570. if test x$have_loadso != xyes && \
  18571. test x$enable_jack_shared = xyes; then
  18572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18573. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18574. fi
  18575. if test x$have_loadso = xyes && \
  18576. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18577. echo "-- dynamic libjack -> $jack_lib"
  18578. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18579. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18580. case "$host" in
  18581. # On Solaris, jack must be linked deferred explicitly
  18582. # to prevent undefined symbol failures.
  18583. *-*-solaris*)
  18584. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18585. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18586. esac
  18587. else
  18588. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18589. SUMMARY_audio="${SUMMARY_audio} jack"
  18590. fi
  18591. have_audio=yes
  18592. fi
  18593. fi
  18594. }
  18595. CheckESD()
  18596. {
  18597. # Check whether --enable-esd was given.
  18598. if test ${enable_esd+y}
  18599. then :
  18600. enableval=$enable_esd;
  18601. else $as_nop
  18602. enable_esd=yes
  18603. fi
  18604. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18605. pkg_failed=no
  18606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18607. printf %s "checking for esound >= 0.2.8... " >&6; }
  18608. if test -n "$ESD_CFLAGS"; then
  18609. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18610. elif test -n "$PKG_CONFIG"; then
  18611. if test -n "$PKG_CONFIG" && \
  18612. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18613. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18614. ac_status=$?
  18615. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18616. test $ac_status = 0; }; then
  18617. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18618. test "x$?" != "x0" && pkg_failed=yes
  18619. else
  18620. pkg_failed=yes
  18621. fi
  18622. else
  18623. pkg_failed=untried
  18624. fi
  18625. if test -n "$ESD_LIBS"; then
  18626. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18627. elif test -n "$PKG_CONFIG"; then
  18628. if test -n "$PKG_CONFIG" && \
  18629. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18630. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18631. ac_status=$?
  18632. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18633. test $ac_status = 0; }; then
  18634. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18635. test "x$?" != "x0" && pkg_failed=yes
  18636. else
  18637. pkg_failed=yes
  18638. fi
  18639. else
  18640. pkg_failed=untried
  18641. fi
  18642. if test $pkg_failed = yes; then
  18643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18644. printf "%s\n" "no" >&6; }
  18645. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18646. _pkg_short_errors_supported=yes
  18647. else
  18648. _pkg_short_errors_supported=no
  18649. fi
  18650. if test $_pkg_short_errors_supported = yes; then
  18651. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18652. else
  18653. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18654. fi
  18655. # Put the nasty error message in config.log where it belongs
  18656. echo "$ESD_PKG_ERRORS" >&5
  18657. have_esd=no
  18658. elif test $pkg_failed = untried; then
  18659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18660. printf "%s\n" "no" >&6; }
  18661. have_esd=no
  18662. else
  18663. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18664. ESD_LIBS=$pkg_cv_ESD_LIBS
  18665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18666. printf "%s\n" "yes" >&6; }
  18667. have_esd=yes
  18668. fi
  18669. if test x$have_esd = xno; then
  18670. # Check whether --with-esd-prefix was given.
  18671. if test ${with_esd_prefix+y}
  18672. then :
  18673. withval=$with_esd_prefix; esd_prefix="$withval"
  18674. else $as_nop
  18675. esd_prefix=""
  18676. fi
  18677. # Check whether --with-esd-exec-prefix was given.
  18678. if test ${with_esd_exec_prefix+y}
  18679. then :
  18680. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18681. else $as_nop
  18682. esd_exec_prefix=""
  18683. fi
  18684. # Check whether --enable-esdtest was given.
  18685. if test ${enable_esdtest+y}
  18686. then :
  18687. enableval=$enable_esdtest;
  18688. else $as_nop
  18689. enable_esdtest=yes
  18690. fi
  18691. if test x$esd_exec_prefix != x ; then
  18692. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18693. if test x${ESD_CONFIG+set} != xset ; then
  18694. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18695. fi
  18696. fi
  18697. if test x$esd_prefix != x ; then
  18698. esd_args="$esd_args --prefix=$esd_prefix"
  18699. if test x${ESD_CONFIG+set} != xset ; then
  18700. ESD_CONFIG=$esd_prefix/bin/esd-config
  18701. fi
  18702. fi
  18703. # Extract the first word of "esd-config", so it can be a program name with args.
  18704. set dummy esd-config; ac_word=$2
  18705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18706. printf %s "checking for $ac_word... " >&6; }
  18707. if test ${ac_cv_path_ESD_CONFIG+y}
  18708. then :
  18709. printf %s "(cached) " >&6
  18710. else $as_nop
  18711. case $ESD_CONFIG in
  18712. [\\/]* | ?:[\\/]*)
  18713. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18714. ;;
  18715. *)
  18716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18717. for as_dir in $PATH
  18718. do
  18719. IFS=$as_save_IFS
  18720. case $as_dir in #(((
  18721. '') as_dir=./ ;;
  18722. */) ;;
  18723. *) as_dir=$as_dir/ ;;
  18724. esac
  18725. for ac_exec_ext in '' $ac_executable_extensions; do
  18726. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18727. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18728. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18729. break 2
  18730. fi
  18731. done
  18732. done
  18733. IFS=$as_save_IFS
  18734. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18735. ;;
  18736. esac
  18737. fi
  18738. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18739. if test -n "$ESD_CONFIG"; then
  18740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18741. printf "%s\n" "$ESD_CONFIG" >&6; }
  18742. else
  18743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18744. printf "%s\n" "no" >&6; }
  18745. fi
  18746. min_esd_version=0.2.8
  18747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18748. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18749. no_esd=""
  18750. if test "$ESD_CONFIG" = "no" ; then
  18751. no_esd=yes
  18752. else
  18753. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18754. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18755. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18756. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18757. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18758. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18759. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18760. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18761. if test "x$enable_esdtest" = "xyes" ; then
  18762. ac_ext=c
  18763. ac_cpp='$CPP $CPPFLAGS'
  18764. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18765. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18766. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18767. ac_save_CFLAGS="$CFLAGS"
  18768. ac_save_LIBS="$LIBS"
  18769. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18770. LIBS="$LIBS $ESD_LIBS"
  18771. rm -f conf.esdtest
  18772. if test "$cross_compiling" = yes
  18773. then :
  18774. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18775. else $as_nop
  18776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18777. /* end confdefs.h. */
  18778. #include <stdio.h>
  18779. #include <stdlib.h>
  18780. #include <esd.h>
  18781. int main (void)
  18782. {
  18783. int major, minor, micro;
  18784. FILE *fp = fopen("conf.esdtest", "w");
  18785. if (fp) fclose(fp);
  18786. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18787. printf("%s, bad version string\n", "$min_esd_version");
  18788. exit(1);
  18789. }
  18790. if (($esd_major_version > major) ||
  18791. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18792. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18793. {
  18794. return 0;
  18795. }
  18796. else
  18797. {
  18798. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18799. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18800. printf("*** best to upgrade to the required version.\n");
  18801. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18802. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18803. printf("*** config.cache before re-running configure\n");
  18804. return 1;
  18805. }
  18806. }
  18807. _ACEOF
  18808. if ac_fn_c_try_run "$LINENO"
  18809. then :
  18810. else $as_nop
  18811. no_esd=yes
  18812. fi
  18813. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18814. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18815. fi
  18816. CFLAGS="$ac_save_CFLAGS"
  18817. LIBS="$ac_save_LIBS"
  18818. ac_ext=c
  18819. ac_cpp='$CPP $CPPFLAGS'
  18820. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18821. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18822. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18823. fi
  18824. fi
  18825. if test "x$no_esd" = x ; then
  18826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18827. printf "%s\n" "yes" >&6; }
  18828. have_esd=yes
  18829. else
  18830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18831. printf "%s\n" "no" >&6; }
  18832. if test "$ESD_CONFIG" = "no" ; then
  18833. :
  18834. else
  18835. if test -f conf.esdtest ; then
  18836. :
  18837. else
  18838. echo "*** Could not run ESD test program, checking why..."
  18839. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18840. LIBS="$LIBS $ESD_LIBS"
  18841. ac_ext=c
  18842. ac_cpp='$CPP $CPPFLAGS'
  18843. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18844. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18845. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18847. /* end confdefs.h. */
  18848. #include <stdio.h>
  18849. #include <esd.h>
  18850. int
  18851. main (void)
  18852. {
  18853. return 0;
  18854. ;
  18855. return 0;
  18856. }
  18857. _ACEOF
  18858. if ac_fn_c_try_link "$LINENO"
  18859. then :
  18860. echo "*** The test program compiled, but did not run. This usually means"
  18861. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18862. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18863. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18864. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18865. echo "*** is required on your system"
  18866. echo "***"
  18867. echo "*** If you have an old version installed, it is best to remove it, although"
  18868. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18869. else $as_nop
  18870. echo "*** The test program failed to compile or link. See the file config.log for the"
  18871. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18872. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18873. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18874. fi
  18875. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18876. conftest$ac_exeext conftest.$ac_ext
  18877. CFLAGS="$ac_save_CFLAGS"
  18878. LIBS="$ac_save_LIBS"
  18879. ac_ext=c
  18880. ac_cpp='$CPP $CPPFLAGS'
  18881. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18882. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18883. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18884. fi
  18885. fi
  18886. ESD_CFLAGS=""
  18887. ESD_LIBS=""
  18888. have_esd=no
  18889. fi
  18890. rm -f conf.esdtest
  18891. fi
  18892. if test x$have_esd = xyes; then
  18893. # Check whether --enable-esd-shared was given.
  18894. if test ${enable_esd_shared+y}
  18895. then :
  18896. enableval=$enable_esd_shared;
  18897. else $as_nop
  18898. enable_esd_shared=yes
  18899. fi
  18900. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18901. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  18902. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  18903. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  18904. if test x$have_loadso != xyes && \
  18905. test x$enable_esd_shared = xyes; then
  18906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  18907. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  18908. fi
  18909. if test x$have_loadso = xyes && \
  18910. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  18911. echo "-- dynamic libesd -> $esd_lib"
  18912. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  18913. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  18914. else
  18915. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  18916. SUMMARY_audio="${SUMMARY_audio} esd"
  18917. fi
  18918. have_audio=yes
  18919. fi
  18920. fi
  18921. }
  18922. CheckPipewire()
  18923. {
  18924. # Check whether --enable-pipewire was given.
  18925. if test ${enable_pipewire+y}
  18926. then :
  18927. enableval=$enable_pipewire;
  18928. else $as_nop
  18929. enable_pipewire=yes
  18930. fi
  18931. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18932. pkg_failed=no
  18933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18934. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18935. if test -n "$PIPEWIRE_CFLAGS"; then
  18936. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18937. elif test -n "$PKG_CONFIG"; then
  18938. if test -n "$PKG_CONFIG" && \
  18939. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18940. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18941. ac_status=$?
  18942. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18943. test $ac_status = 0; }; then
  18944. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18945. test "x$?" != "x0" && pkg_failed=yes
  18946. else
  18947. pkg_failed=yes
  18948. fi
  18949. else
  18950. pkg_failed=untried
  18951. fi
  18952. if test -n "$PIPEWIRE_LIBS"; then
  18953. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  18954. elif test -n "$PKG_CONFIG"; then
  18955. if test -n "$PKG_CONFIG" && \
  18956. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18957. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18958. ac_status=$?
  18959. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18960. test $ac_status = 0; }; then
  18961. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18962. test "x$?" != "x0" && pkg_failed=yes
  18963. else
  18964. pkg_failed=yes
  18965. fi
  18966. else
  18967. pkg_failed=untried
  18968. fi
  18969. if test $pkg_failed = yes; then
  18970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18971. printf "%s\n" "no" >&6; }
  18972. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18973. _pkg_short_errors_supported=yes
  18974. else
  18975. _pkg_short_errors_supported=no
  18976. fi
  18977. if test $_pkg_short_errors_supported = yes; then
  18978. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18979. else
  18980. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18981. fi
  18982. # Put the nasty error message in config.log where it belongs
  18983. echo "$PIPEWIRE_PKG_ERRORS" >&5
  18984. audio_pipewire=no
  18985. elif test $pkg_failed = untried; then
  18986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18987. printf "%s\n" "no" >&6; }
  18988. audio_pipewire=no
  18989. else
  18990. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  18991. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  18992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18993. printf "%s\n" "yes" >&6; }
  18994. audio_pipewire=yes
  18995. fi
  18996. if test x$audio_pipewire = xyes; then
  18997. # Check whether --enable-pipewire-shared was given.
  18998. if test ${enable_pipewire_shared+y}
  18999. then :
  19000. enableval=$enable_pipewire_shared;
  19001. else $as_nop
  19002. enable_pipewire_shared=yes
  19003. fi
  19004. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19005. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19006. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19007. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19008. if test x$have_loadso != xyes && \
  19009. test x$enable_pipewire_shared = xyes; then
  19010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19011. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19012. fi
  19013. if test x$have_loadso = xyes && \
  19014. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19015. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19016. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19017. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19018. else
  19019. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19020. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19021. fi
  19022. have_audio=yes
  19023. fi
  19024. fi
  19025. }
  19026. CheckPulseAudio()
  19027. {
  19028. # Check whether --enable-pulseaudio was given.
  19029. if test ${enable_pulseaudio+y}
  19030. then :
  19031. enableval=$enable_pulseaudio;
  19032. else $as_nop
  19033. enable_pulseaudio=yes
  19034. fi
  19035. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19036. pkg_failed=no
  19037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  19038. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  19039. if test -n "$PULSEAUDIO_CFLAGS"; then
  19040. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19041. elif test -n "$PKG_CONFIG"; then
  19042. if test -n "$PKG_CONFIG" && \
  19043. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19044. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19045. ac_status=$?
  19046. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19047. test $ac_status = 0; }; then
  19048. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  19049. test "x$?" != "x0" && pkg_failed=yes
  19050. else
  19051. pkg_failed=yes
  19052. fi
  19053. else
  19054. pkg_failed=untried
  19055. fi
  19056. if test -n "$PULSEAUDIO_LIBS"; then
  19057. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19058. elif test -n "$PKG_CONFIG"; then
  19059. if test -n "$PKG_CONFIG" && \
  19060. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19061. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19062. ac_status=$?
  19063. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19064. test $ac_status = 0; }; then
  19065. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  19066. test "x$?" != "x0" && pkg_failed=yes
  19067. else
  19068. pkg_failed=yes
  19069. fi
  19070. else
  19071. pkg_failed=untried
  19072. fi
  19073. if test $pkg_failed = yes; then
  19074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19075. printf "%s\n" "no" >&6; }
  19076. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19077. _pkg_short_errors_supported=yes
  19078. else
  19079. _pkg_short_errors_supported=no
  19080. fi
  19081. if test $_pkg_short_errors_supported = yes; then
  19082. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19083. else
  19084. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19085. fi
  19086. # Put the nasty error message in config.log where it belongs
  19087. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19088. audio_pulseaudio=no
  19089. elif test $pkg_failed = untried; then
  19090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19091. printf "%s\n" "no" >&6; }
  19092. audio_pulseaudio=no
  19093. else
  19094. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19095. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19097. printf "%s\n" "yes" >&6; }
  19098. audio_pulseaudio=yes
  19099. fi
  19100. if test x$audio_pulseaudio = xyes; then
  19101. # Check whether --enable-pulseaudio-shared was given.
  19102. if test ${enable_pulseaudio_shared+y}
  19103. then :
  19104. enableval=$enable_pulseaudio_shared;
  19105. else $as_nop
  19106. enable_pulseaudio_shared=yes
  19107. fi
  19108. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19109. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19110. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19111. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19112. if test x$have_loadso != xyes && \
  19113. test x$enable_pulseaudio_shared = xyes; then
  19114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19115. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19116. fi
  19117. if test x$have_loadso = xyes && \
  19118. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19119. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  19120. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19121. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19122. case "$host" in
  19123. # On Solaris, pulseaudio must be linked deferred explicitly
  19124. # to prevent undefined symbol failures.
  19125. *-*-solaris*)
  19126. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19127. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19128. esac
  19129. else
  19130. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19131. SUMMARY_audio="${SUMMARY_audio} pulse"
  19132. fi
  19133. have_audio=yes
  19134. fi
  19135. fi
  19136. }
  19137. CheckARTSC()
  19138. {
  19139. # Check whether --enable-arts was given.
  19140. if test ${enable_arts+y}
  19141. then :
  19142. enableval=$enable_arts;
  19143. else $as_nop
  19144. enable_arts=yes
  19145. fi
  19146. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19147. # Extract the first word of "artsc-config", so it can be a program name with args.
  19148. set dummy artsc-config; ac_word=$2
  19149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19150. printf %s "checking for $ac_word... " >&6; }
  19151. if test ${ac_cv_path_ARTSCONFIG+y}
  19152. then :
  19153. printf %s "(cached) " >&6
  19154. else $as_nop
  19155. case $ARTSCONFIG in
  19156. [\\/]* | ?:[\\/]*)
  19157. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19158. ;;
  19159. *)
  19160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19161. for as_dir in $PATH
  19162. do
  19163. IFS=$as_save_IFS
  19164. case $as_dir in #(((
  19165. '') as_dir=./ ;;
  19166. */) ;;
  19167. *) as_dir=$as_dir/ ;;
  19168. esac
  19169. for ac_exec_ext in '' $ac_executable_extensions; do
  19170. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19171. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19172. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19173. break 2
  19174. fi
  19175. done
  19176. done
  19177. IFS=$as_save_IFS
  19178. ;;
  19179. esac
  19180. fi
  19181. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19182. if test -n "$ARTSCONFIG"; then
  19183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19184. printf "%s\n" "$ARTSCONFIG" >&6; }
  19185. else
  19186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19187. printf "%s\n" "no" >&6; }
  19188. fi
  19189. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19190. : # arts isn't installed
  19191. else
  19192. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19193. ARTS_LIBS=`$ARTSCONFIG --libs`
  19194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19195. printf %s "checking for aRts development environment... " >&6; }
  19196. audio_arts=no
  19197. save_CFLAGS="$CFLAGS"
  19198. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19200. /* end confdefs.h. */
  19201. #include <artsc.h>
  19202. int
  19203. main (void)
  19204. {
  19205. arts_stream_t stream;
  19206. ;
  19207. return 0;
  19208. }
  19209. _ACEOF
  19210. if ac_fn_c_try_compile "$LINENO"
  19211. then :
  19212. audio_arts=yes
  19213. fi
  19214. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19215. CFLAGS="$save_CFLAGS"
  19216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19217. printf "%s\n" "$audio_arts" >&6; }
  19218. if test x$audio_arts = xyes; then
  19219. # Check whether --enable-arts-shared was given.
  19220. if test ${enable_arts_shared+y}
  19221. then :
  19222. enableval=$enable_arts_shared;
  19223. else $as_nop
  19224. enable_arts_shared=yes
  19225. fi
  19226. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19227. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19228. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19229. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19230. if test x$have_loadso != xyes && \
  19231. test x$enable_arts_shared = xyes; then
  19232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19233. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19234. fi
  19235. if test x$have_loadso = xyes && \
  19236. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19237. echo "-- dynamic libartsc -> $arts_lib"
  19238. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19239. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19240. else
  19241. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19242. SUMMARY_audio="${SUMMARY_audio} arts"
  19243. fi
  19244. have_audio=yes
  19245. fi
  19246. fi
  19247. fi
  19248. }
  19249. CheckNAS()
  19250. {
  19251. # Check whether --enable-nas was given.
  19252. if test ${enable_nas+y}
  19253. then :
  19254. enableval=$enable_nas;
  19255. else $as_nop
  19256. enable_nas=yes
  19257. fi
  19258. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19259. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19260. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19261. then :
  19262. have_nas_hdr=yes
  19263. fi
  19264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19265. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19266. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19267. then :
  19268. printf %s "(cached) " >&6
  19269. else $as_nop
  19270. ac_check_lib_save_LIBS=$LIBS
  19271. LIBS="-laudio $LIBS"
  19272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19273. /* end confdefs.h. */
  19274. /* Override any GCC internal prototype to avoid an error.
  19275. Use char because int might match the return type of a GCC
  19276. builtin and then its argument prototype would still apply. */
  19277. char AuOpenServer ();
  19278. int
  19279. main (void)
  19280. {
  19281. return AuOpenServer ();
  19282. ;
  19283. return 0;
  19284. }
  19285. _ACEOF
  19286. if ac_fn_c_try_link "$LINENO"
  19287. then :
  19288. ac_cv_lib_audio_AuOpenServer=yes
  19289. else $as_nop
  19290. ac_cv_lib_audio_AuOpenServer=no
  19291. fi
  19292. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19293. conftest$ac_exeext conftest.$ac_ext
  19294. LIBS=$ac_check_lib_save_LIBS
  19295. fi
  19296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19297. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19298. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19299. then :
  19300. have_nas_lib=yes
  19301. fi
  19302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19303. printf %s "checking for NAS audio support... " >&6; }
  19304. have_nas=no
  19305. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19306. have_nas=yes
  19307. NAS_LIBS="-laudio"
  19308. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19309. have_nas=yes
  19310. NAS_CFLAGS="-I/usr/X11R6/include/"
  19311. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19312. fi
  19313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19314. printf "%s\n" "$have_nas" >&6; }
  19315. if test x$have_nas = xyes; then
  19316. # Check whether --enable-nas-shared was given.
  19317. if test ${enable_nas_shared+y}
  19318. then :
  19319. enableval=$enable_nas_shared;
  19320. else $as_nop
  19321. enable_nas_shared=yes
  19322. fi
  19323. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19324. if test x$have_loadso != xyes && \
  19325. test x$enable_nas_shared = xyes; then
  19326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19327. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19328. fi
  19329. if test x$have_loadso = xyes && \
  19330. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19331. echo "-- dynamic libaudio -> $nas_lib"
  19332. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19333. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19334. else
  19335. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19336. SUMMARY_audio="${SUMMARY_audio} nas"
  19337. fi
  19338. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19339. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19340. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19341. have_audio=yes
  19342. fi
  19343. fi
  19344. }
  19345. CheckSNDIO()
  19346. {
  19347. # Check whether --enable-sndio was given.
  19348. if test ${enable_sndio+y}
  19349. then :
  19350. enableval=$enable_sndio;
  19351. else $as_nop
  19352. enable_sndio=yes
  19353. fi
  19354. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19355. ac_fn_c_check_header_compile "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  19356. if test "x$ac_cv_header_sndio_h" = xyes
  19357. then :
  19358. have_sndio_hdr=yes
  19359. fi
  19360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  19361. printf %s "checking for sio_open in -lsndio... " >&6; }
  19362. if test ${ac_cv_lib_sndio_sio_open+y}
  19363. then :
  19364. printf %s "(cached) " >&6
  19365. else $as_nop
  19366. ac_check_lib_save_LIBS=$LIBS
  19367. LIBS="-lsndio $LIBS"
  19368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19369. /* end confdefs.h. */
  19370. /* Override any GCC internal prototype to avoid an error.
  19371. Use char because int might match the return type of a GCC
  19372. builtin and then its argument prototype would still apply. */
  19373. char sio_open ();
  19374. int
  19375. main (void)
  19376. {
  19377. return sio_open ();
  19378. ;
  19379. return 0;
  19380. }
  19381. _ACEOF
  19382. if ac_fn_c_try_link "$LINENO"
  19383. then :
  19384. ac_cv_lib_sndio_sio_open=yes
  19385. else $as_nop
  19386. ac_cv_lib_sndio_sio_open=no
  19387. fi
  19388. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19389. conftest$ac_exeext conftest.$ac_ext
  19390. LIBS=$ac_check_lib_save_LIBS
  19391. fi
  19392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  19393. printf "%s\n" "$ac_cv_lib_sndio_sio_open" >&6; }
  19394. if test "x$ac_cv_lib_sndio_sio_open" = xyes
  19395. then :
  19396. have_sndio_lib=yes
  19397. fi
  19398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  19399. printf %s "checking for sndio audio support... " >&6; }
  19400. have_sndio=no
  19401. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  19402. have_sndio=yes
  19403. SNDIO_LIBS="-lsndio"
  19404. fi
  19405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  19406. printf "%s\n" "$have_sndio" >&6; }
  19407. if test x$have_sndio = xyes; then
  19408. # Check whether --enable-sndio-shared was given.
  19409. if test ${enable_sndio_shared+y}
  19410. then :
  19411. enableval=$enable_sndio_shared;
  19412. else $as_nop
  19413. enable_sndio_shared=yes
  19414. fi
  19415. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19416. if test x$have_loadso != xyes && \
  19417. test x$enable_sndio_shared = xyes; then
  19418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19419. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19420. fi
  19421. if test x$have_loadso = xyes && \
  19422. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19423. echo "-- dynamic libsndio -> $sndio_lib"
  19424. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19425. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19426. else
  19427. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19428. SUMMARY_audio="${SUMMARY_audio} sndio"
  19429. fi
  19430. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19431. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19432. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19433. have_audio=yes
  19434. fi
  19435. fi
  19436. }
  19437. CheckFusionSound()
  19438. {
  19439. # Check whether --enable-fusionsound was given.
  19440. if test ${enable_fusionsound+y}
  19441. then :
  19442. enableval=$enable_fusionsound;
  19443. else $as_nop
  19444. enable_fusionsound=no
  19445. fi
  19446. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19447. pkg_failed=no
  19448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19449. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19450. if test -n "$FUSIONSOUND_CFLAGS"; then
  19451. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19452. elif test -n "$PKG_CONFIG"; then
  19453. if test -n "$PKG_CONFIG" && \
  19454. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19455. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19456. ac_status=$?
  19457. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19458. test $ac_status = 0; }; then
  19459. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19460. test "x$?" != "x0" && pkg_failed=yes
  19461. else
  19462. pkg_failed=yes
  19463. fi
  19464. else
  19465. pkg_failed=untried
  19466. fi
  19467. if test -n "$FUSIONSOUND_LIBS"; then
  19468. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19469. elif test -n "$PKG_CONFIG"; then
  19470. if test -n "$PKG_CONFIG" && \
  19471. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19472. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19473. ac_status=$?
  19474. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19475. test $ac_status = 0; }; then
  19476. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19477. test "x$?" != "x0" && pkg_failed=yes
  19478. else
  19479. pkg_failed=yes
  19480. fi
  19481. else
  19482. pkg_failed=untried
  19483. fi
  19484. if test $pkg_failed = yes; then
  19485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19486. printf "%s\n" "no" >&6; }
  19487. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19488. _pkg_short_errors_supported=yes
  19489. else
  19490. _pkg_short_errors_supported=no
  19491. fi
  19492. if test $_pkg_short_errors_supported = yes; then
  19493. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19494. else
  19495. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19496. fi
  19497. # Put the nasty error message in config.log where it belongs
  19498. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19499. fusionsound=no
  19500. elif test $pkg_failed = untried; then
  19501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19502. printf "%s\n" "no" >&6; }
  19503. fusionsound=no
  19504. else
  19505. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19506. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19508. printf "%s\n" "yes" >&6; }
  19509. fusionsound=yes
  19510. fi
  19511. if test x$fusionsound = xyes; then
  19512. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19513. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19514. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19515. # Check whether --enable-fusionsound-shared was given.
  19516. if test ${enable_fusionsound_shared+y}
  19517. then :
  19518. enableval=$enable_fusionsound_shared;
  19519. else $as_nop
  19520. enable_fusionsound_shared=yes
  19521. fi
  19522. fusionsound_shared=no
  19523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19524. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19525. if test x$have_loadso != xyes && \
  19526. test x$enable_fusionsound_shared = xyes; then
  19527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19528. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19529. fi
  19530. if test x$have_loadso = xyes && \
  19531. test x$enable_fusionsound_shared = xyes; then
  19532. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19533. fusionsound_shared=yes
  19534. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19535. else
  19536. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19537. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19538. fi
  19539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19540. printf "%s\n" "$fusionsound_shared" >&6; }
  19541. have_audio=yes
  19542. fi
  19543. fi
  19544. }
  19545. CheckDiskAudio()
  19546. {
  19547. # Check whether --enable-diskaudio was given.
  19548. if test ${enable_diskaudio+y}
  19549. then :
  19550. enableval=$enable_diskaudio;
  19551. else $as_nop
  19552. enable_diskaudio=yes
  19553. fi
  19554. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19555. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19556. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19557. SUMMARY_audio="${SUMMARY_audio} disk"
  19558. have_audio=yes
  19559. fi
  19560. }
  19561. CheckDummyAudio()
  19562. {
  19563. # Check whether --enable-dummyaudio was given.
  19564. if test ${enable_dummyaudio+y}
  19565. then :
  19566. enableval=$enable_dummyaudio;
  19567. else $as_nop
  19568. enable_dummyaudio=yes
  19569. fi
  19570. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19571. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19572. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19573. SUMMARY_audio="${SUMMARY_audio} dummy"
  19574. have_audio=yes
  19575. fi
  19576. }
  19577. CheckLibSampleRate()
  19578. {
  19579. # Check whether --enable-libsamplerate was given.
  19580. if test ${enable_libsamplerate+y}
  19581. then :
  19582. enableval=$enable_libsamplerate;
  19583. else $as_nop
  19584. enable_libsamplerate=yes
  19585. fi
  19586. if test x$enable_libsamplerate = xyes; then
  19587. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19588. if test "x$ac_cv_header_samplerate_h" = xyes
  19589. then :
  19590. have_samplerate_h_hdr=yes
  19591. else $as_nop
  19592. have_samplerate_h_hdr=no
  19593. fi
  19594. if test x$have_samplerate_h_hdr = xyes; then
  19595. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19596. # Check whether --enable-libsamplerate-shared was given.
  19597. if test ${enable_libsamplerate_shared+y}
  19598. then :
  19599. enableval=$enable_libsamplerate_shared;
  19600. else $as_nop
  19601. enable_libsamplerate_shared=yes
  19602. fi
  19603. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19604. if test x$have_loadso != xyes && \
  19605. test x$enable_libsamplerate_shared = xyes; then
  19606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19607. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19608. fi
  19609. if test x$have_loadso = xyes && \
  19610. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19611. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19612. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19613. else
  19614. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19615. fi
  19616. fi
  19617. fi
  19618. }
  19619. CheckARM()
  19620. {
  19621. # Check whether --enable-arm-simd was given.
  19622. if test ${enable_arm_simd+y}
  19623. then :
  19624. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19625. else $as_nop
  19626. enable_arm_simd=no
  19627. fi
  19628. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19629. save_CFLAGS="$CFLAGS"
  19630. have_arm_simd=no
  19631. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19633. printf %s "checking for ARM SIMD... " >&6; }
  19634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19635. /* end confdefs.h. */
  19636. .text
  19637. .arch armv6
  19638. .object_arch armv4
  19639. .arm
  19640. .altmacro
  19641. #ifndef __ARM_EABI__
  19642. #error EABI is required (to be sure that calling conventions are compatible)
  19643. #endif
  19644. pld [r0]
  19645. uqadd8 r0, r0, r0
  19646. _ACEOF
  19647. if ac_fn_c_try_compile "$LINENO"
  19648. then :
  19649. have_arm_simd=yes
  19650. fi
  19651. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19653. printf "%s\n" "$have_arm_simd" >&6; }
  19654. CFLAGS="$save_CFLAGS"
  19655. if test x$have_arm_simd = xyes; then
  19656. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19657. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19658. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19659. fi
  19660. fi
  19661. }
  19662. CheckNEON()
  19663. {
  19664. # Check whether --enable-arm-neon was given.
  19665. if test ${enable_arm_neon+y}
  19666. then :
  19667. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19668. else $as_nop
  19669. enable_arm_neon=no
  19670. fi
  19671. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19672. save_CFLAGS="$CFLAGS"
  19673. have_arm_neon=no
  19674. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19676. printf %s "checking for ARM NEON... " >&6; }
  19677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19678. /* end confdefs.h. */
  19679. .text
  19680. .fpu neon
  19681. .arch armv7a
  19682. .object_arch armv4
  19683. .eabi_attribute 10, 0
  19684. .arm
  19685. .altmacro
  19686. #ifndef __ARM_EABI__
  19687. #error EABI is required (to be sure that calling conventions are compatible)
  19688. #endif
  19689. pld [r0]
  19690. vmovn.u16 d0, q0
  19691. _ACEOF
  19692. if ac_fn_c_try_compile "$LINENO"
  19693. then :
  19694. have_arm_neon=yes
  19695. fi
  19696. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19698. printf "%s\n" "$have_arm_neon" >&6; }
  19699. CFLAGS="$save_CFLAGS"
  19700. if test x$have_arm_neon = xyes; then
  19701. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19702. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19703. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19704. fi
  19705. fi
  19706. }
  19707. CheckObjectiveCARC()
  19708. {
  19709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19710. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19711. have_clang_objc_arc=no
  19712. save_CFLAGS="$CFLAGS"
  19713. CFLAGS="$save_CFLAGS -fobjc-arc"
  19714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19715. /* end confdefs.h. */
  19716. int x = 0;
  19717. int
  19718. main (void)
  19719. {
  19720. ;
  19721. return 0;
  19722. }
  19723. _ACEOF
  19724. if ac_fn_c_try_compile "$LINENO"
  19725. then :
  19726. have_clang_objc_arc=yes
  19727. fi
  19728. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19730. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19731. CFLAGS="$save_CFLAGS"
  19732. if test x$have_clang_objc_arc = xyes; then
  19733. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19734. fi
  19735. }
  19736. CheckGDwarf4()
  19737. {
  19738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19739. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19740. have_gcc_gdwarf4=no
  19741. save_CFLAGS="$CFLAGS"
  19742. CFLAGS="$save_CFLAGS -gdwarf-4"
  19743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19744. /* end confdefs.h. */
  19745. int x = 0;
  19746. int
  19747. main (void)
  19748. {
  19749. ;
  19750. return 0;
  19751. }
  19752. _ACEOF
  19753. if ac_fn_c_try_compile "$LINENO"
  19754. then :
  19755. have_gcc_gdwarf4=yes
  19756. fi
  19757. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19759. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19760. CFLAGS="$save_CFLAGS"
  19761. if test x$have_gcc_gdwarf4 = xyes; then
  19762. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19763. fi
  19764. }
  19765. CheckVisibilityHidden()
  19766. {
  19767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19768. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19769. have_gcc_fvisibility=no
  19770. visibility_CFLAGS="-fvisibility=hidden"
  19771. save_CFLAGS="$CFLAGS"
  19772. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19774. /* end confdefs.h. */
  19775. #if !defined(__GNUC__) || __GNUC__ < 4
  19776. #error SDL only uses visibility attributes in GCC 4 or newer
  19777. #endif
  19778. int
  19779. main (void)
  19780. {
  19781. ;
  19782. return 0;
  19783. }
  19784. _ACEOF
  19785. if ac_fn_c_try_compile "$LINENO"
  19786. then :
  19787. have_gcc_fvisibility=yes
  19788. fi
  19789. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19791. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19792. CFLAGS="$save_CFLAGS"
  19793. if test x$have_gcc_fvisibility = xyes; then
  19794. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19795. fi
  19796. }
  19797. CheckNoStrictAliasing()
  19798. {
  19799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19800. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19801. have_gcc_no_strict_aliasing=no
  19802. save_CFLAGS="$CFLAGS"
  19803. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  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_gcc_no_strict_aliasing=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_gcc_no_strict_aliasing" >&5
  19820. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19821. CFLAGS="$save_CFLAGS"
  19822. if test x$have_gcc_no_strict_aliasing = xyes; then
  19823. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19824. fi
  19825. }
  19826. CheckStackBoundary()
  19827. {
  19828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19829. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19830. have_gcc_preferred_stack_boundary=no
  19831. save_CFLAGS="$CFLAGS"
  19832. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  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_preferred_stack_boundary=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_preferred_stack_boundary" >&5
  19849. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19850. CFLAGS="$save_CFLAGS"
  19851. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19852. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19853. fi
  19854. }
  19855. CheckDeclarationAfterStatement()
  19856. {
  19857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19858. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19859. have_gcc_declaration_after_statement=no
  19860. save_CFLAGS="$CFLAGS"
  19861. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19863. /* end confdefs.h. */
  19864. int x = 0;
  19865. int
  19866. main (void)
  19867. {
  19868. ;
  19869. return 0;
  19870. }
  19871. _ACEOF
  19872. if ac_fn_c_try_compile "$LINENO"
  19873. then :
  19874. have_gcc_declaration_after_statement=yes
  19875. fi
  19876. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19878. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19879. CFLAGS="$save_CFLAGS"
  19880. if test x$have_gcc_declaration_after_statement = xyes; then
  19881. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19882. fi
  19883. }
  19884. CheckWarnAll()
  19885. {
  19886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19887. printf %s "checking for GCC -Wall option... " >&6; }
  19888. have_gcc_Wall=no
  19889. save_CFLAGS="$CFLAGS"
  19890. CFLAGS="$save_CFLAGS -Wall"
  19891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19892. /* end confdefs.h. */
  19893. int x = 0;
  19894. int
  19895. main (void)
  19896. {
  19897. ;
  19898. return 0;
  19899. }
  19900. _ACEOF
  19901. if ac_fn_c_try_compile "$LINENO"
  19902. then :
  19903. have_gcc_Wall=yes
  19904. fi
  19905. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19907. printf "%s\n" "$have_gcc_Wall" >&6; }
  19908. CFLAGS="$save_CFLAGS"
  19909. if test x$have_gcc_Wall = xyes; then
  19910. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19912. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19913. need_gcc_Wno_multichar=no
  19914. case "$host" in
  19915. *-*-haiku*)
  19916. need_gcc_Wno_multichar=yes
  19917. ;;
  19918. esac
  19919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  19920. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  19921. if test x$need_gcc_Wno_multichar = xyes; then
  19922. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  19923. fi
  19924. fi
  19925. }
  19926. CheckWayland()
  19927. {
  19928. # Check whether --enable-video-wayland was given.
  19929. if test ${enable_video_wayland+y}
  19930. then :
  19931. enableval=$enable_video_wayland;
  19932. else $as_nop
  19933. enable_video_wayland=yes
  19934. fi
  19935. # Check whether --enable-video-wayland-qt-touch was given.
  19936. if test ${enable_video_wayland_qt_touch+y}
  19937. then :
  19938. enableval=$enable_video_wayland_qt_touch;
  19939. else $as_nop
  19940. enable_video_wayland_qt_touch=yes
  19941. fi
  19942. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  19943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  19944. printf %s "checking for Wayland support... " >&6; }
  19945. video_wayland=no
  19946. if test x$video_opengl_egl = xyes && \
  19947. test x$video_opengles_v2 = xyes; then
  19948. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  19949. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  19950. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  19951. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  19952. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  19953. then :
  19954. WAYLAND_SCANNER_CODE_MODE=private-code
  19955. else $as_nop
  19956. WAYLAND_SCANNER_CODE_MODE=code
  19957. fi
  19958. video_wayland=yes
  19959. fi
  19960. fi
  19961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  19962. printf "%s\n" "$video_wayland" >&6; }
  19963. if test x$video_wayland = xyes; then
  19964. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  19965. if test x$enable_video_wayland_qt_touch = xyes; then
  19966. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  19967. fi
  19968. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  19969. SOURCES="$SOURCES $WAYLAND_SOURCES"
  19970. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  19971. # Check whether --enable-wayland-shared was given.
  19972. if test ${enable_wayland_shared+y}
  19973. then :
  19974. enableval=$enable_wayland_shared;
  19975. else $as_nop
  19976. enable_wayland_shared=maybe
  19977. fi
  19978. case "$host" in
  19979. *)
  19980. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19981. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19982. if test x$wayland_egl_lib = x; then
  19983. # This works in Ubuntu 13.10, maybe others
  19984. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19985. fi
  19986. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19987. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19988. ;;
  19989. esac
  19990. if test x$enable_wayland_shared = xmaybe; then
  19991. enable_wayland_shared=yes
  19992. fi
  19993. if test x$have_loadso != xyes && \
  19994. test x$enable_wayland_shared = xyes; then
  19995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  19996. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  19997. enable_wayland_shared=no
  19998. fi
  19999. if test x$have_loadso = xyes && \
  20000. test x$enable_wayland_shared = xyes && \
  20001. test x$wayland_client_lib != x && \
  20002. test x$wayland_egl_lib != x && \
  20003. test x$wayland_cursor_lib != x && \
  20004. test x$xkbcommon_lib != x; then
  20005. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20006. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20007. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20008. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20009. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20010. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20011. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20012. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20013. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20014. else
  20015. enable_wayland_shared=no
  20016. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20017. SUMMARY_video="${SUMMARY_video} wayland"
  20018. fi
  20019. have_video=yes
  20020. # Check whether --enable-libdecor was given.
  20021. if test ${enable_libdecor+y}
  20022. then :
  20023. enableval=$enable_libdecor;
  20024. else $as_nop
  20025. enable_libdecor=yes
  20026. fi
  20027. if test x$enable_libdecor = xyes; then
  20028. pkg_failed=no
  20029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20030. printf %s "checking for libdecor-0... " >&6; }
  20031. if test -n "$DECOR_CFLAGS"; then
  20032. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20033. elif test -n "$PKG_CONFIG"; then
  20034. if test -n "$PKG_CONFIG" && \
  20035. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20036. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20037. ac_status=$?
  20038. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20039. test $ac_status = 0; }; then
  20040. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20041. test "x$?" != "x0" && pkg_failed=yes
  20042. else
  20043. pkg_failed=yes
  20044. fi
  20045. else
  20046. pkg_failed=untried
  20047. fi
  20048. if test -n "$DECOR_LIBS"; then
  20049. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20050. elif test -n "$PKG_CONFIG"; then
  20051. if test -n "$PKG_CONFIG" && \
  20052. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20053. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20054. ac_status=$?
  20055. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20056. test $ac_status = 0; }; then
  20057. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20058. test "x$?" != "x0" && pkg_failed=yes
  20059. else
  20060. pkg_failed=yes
  20061. fi
  20062. else
  20063. pkg_failed=untried
  20064. fi
  20065. if test $pkg_failed = yes; then
  20066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20067. printf "%s\n" "no" >&6; }
  20068. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20069. _pkg_short_errors_supported=yes
  20070. else
  20071. _pkg_short_errors_supported=no
  20072. fi
  20073. if test $_pkg_short_errors_supported = yes; then
  20074. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20075. else
  20076. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20077. fi
  20078. # Put the nasty error message in config.log where it belongs
  20079. echo "$DECOR_PKG_ERRORS" >&5
  20080. video_libdecor=no
  20081. elif test $pkg_failed = untried; then
  20082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20083. printf "%s\n" "no" >&6; }
  20084. video_libdecor=no
  20085. else
  20086. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20087. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20089. printf "%s\n" "yes" >&6; }
  20090. video_libdecor=yes
  20091. fi
  20092. if test x$video_libdecor = xyes; then
  20093. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20094. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20095. # Check whether --enable-libdecor-shared was given.
  20096. if test ${enable_libdecor_shared+y}
  20097. then :
  20098. enableval=$enable_libdecor_shared;
  20099. else $as_nop
  20100. enable_libdecor_shared=yes
  20101. fi
  20102. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20103. if test x$enable_wayland_shared != xyes; then
  20104. enable_libdecor_shared=no
  20105. fi
  20106. if test x$have_loadso != xyes && \
  20107. test x$enable_libdecor_shared = xyes; then
  20108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20109. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20110. fi
  20111. if test x$have_loadso = xyes && \
  20112. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20113. echo "-- dynamic libdecor -> $decor_lib"
  20114. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20115. else
  20116. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20117. fi
  20118. fi
  20119. fi
  20120. fi
  20121. fi
  20122. }
  20123. CheckNativeClient()
  20124. {
  20125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20126. /* end confdefs.h. */
  20127. #if !defined(__native_client__)
  20128. #error "NO NACL"
  20129. #endif
  20130. int
  20131. main (void)
  20132. {
  20133. ;
  20134. return 0;
  20135. }
  20136. _ACEOF
  20137. if ac_fn_c_try_compile "$LINENO"
  20138. then :
  20139. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20140. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20141. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20142. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20143. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20144. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20145. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20146. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20147. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20148. SUMMARY_audio="${SUMMARY_audio} nacl"
  20149. have_audio=yes
  20150. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20151. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20152. have_video=yes
  20153. fi
  20154. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20155. }
  20156. CheckRPI()
  20157. {
  20158. # Check whether --enable-video-rpi was given.
  20159. if test ${enable_video_rpi+y}
  20160. then :
  20161. enableval=$enable_video_rpi;
  20162. else $as_nop
  20163. enable_video_rpi=yes
  20164. fi
  20165. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20166. pkg_failed=no
  20167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20168. printf %s "checking for bcm_host brcmegl... " >&6; }
  20169. if test -n "$RPI_CFLAGS"; then
  20170. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20171. elif test -n "$PKG_CONFIG"; then
  20172. if test -n "$PKG_CONFIG" && \
  20173. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20174. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20175. ac_status=$?
  20176. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20177. test $ac_status = 0; }; then
  20178. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20179. test "x$?" != "x0" && pkg_failed=yes
  20180. else
  20181. pkg_failed=yes
  20182. fi
  20183. else
  20184. pkg_failed=untried
  20185. fi
  20186. if test -n "$RPI_LIBS"; then
  20187. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20188. elif test -n "$PKG_CONFIG"; then
  20189. if test -n "$PKG_CONFIG" && \
  20190. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20191. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20192. ac_status=$?
  20193. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20194. test $ac_status = 0; }; then
  20195. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  20196. test "x$?" != "x0" && pkg_failed=yes
  20197. else
  20198. pkg_failed=yes
  20199. fi
  20200. else
  20201. pkg_failed=untried
  20202. fi
  20203. if test $pkg_failed = yes; then
  20204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20205. printf "%s\n" "no" >&6; }
  20206. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20207. _pkg_short_errors_supported=yes
  20208. else
  20209. _pkg_short_errors_supported=no
  20210. fi
  20211. if test $_pkg_short_errors_supported = yes; then
  20212. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20213. else
  20214. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20215. fi
  20216. # Put the nasty error message in config.log where it belongs
  20217. echo "$RPI_PKG_ERRORS" >&5
  20218. video_rpi=no
  20219. elif test $pkg_failed = untried; then
  20220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20221. printf "%s\n" "no" >&6; }
  20222. video_rpi=no
  20223. else
  20224. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20225. RPI_LIBS=$pkg_cv_RPI_LIBS
  20226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20227. printf "%s\n" "yes" >&6; }
  20228. video_rpi=yes
  20229. fi
  20230. if test x$video_rpi = xno; then
  20231. if test x$ARCH = xnetbsd; then
  20232. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20233. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20234. else
  20235. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20236. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20237. fi
  20238. fi
  20239. # Save the original compiler flags and libraries
  20240. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20241. # Add the Raspberry Pi compiler flags and libraries
  20242. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20244. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20245. have_video_rpi=no
  20246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20247. /* end confdefs.h. */
  20248. #include <bcm_host.h>
  20249. #include <EGL/eglplatform.h>
  20250. int
  20251. main (void)
  20252. {
  20253. EGL_DISPMANX_WINDOW_T window;
  20254. bcm_host_init();
  20255. ;
  20256. return 0;
  20257. }
  20258. _ACEOF
  20259. if ac_fn_c_try_link "$LINENO"
  20260. then :
  20261. have_video_rpi=yes
  20262. fi
  20263. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20264. conftest$ac_exeext conftest.$ac_ext
  20265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20266. printf "%s\n" "$have_video_rpi" >&6; }
  20267. # Restore the compiler flags and libraries
  20268. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20269. if test x$have_video_rpi = xyes; then
  20270. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20271. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20272. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20273. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20274. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20275. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20276. SUMMARY_video="${SUMMARY_video} rpi"
  20277. have_video=yes
  20278. fi
  20279. fi
  20280. }
  20281. CheckX11()
  20282. {
  20283. # Check whether --enable-video-x11 was given.
  20284. if test ${enable_video_x11+y}
  20285. then :
  20286. enableval=$enable_video_x11;
  20287. else $as_nop
  20288. enable_video_x11=yes
  20289. fi
  20290. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20291. case "$host" in
  20292. *-*-darwin*)
  20293. # This isn't necessary for X11, but fixes GLX detection
  20294. if test "x$x_includes" = xNONE && \
  20295. test "x$x_libraries" = xNONE && \
  20296. test -d /opt/X11/include && \
  20297. test -d /opt/X11/lib; then
  20298. x_includes="/opt/X11/include"
  20299. x_libraries="/opt/X11/lib"
  20300. fi
  20301. ;;
  20302. esac
  20303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20304. printf %s "checking for X... " >&6; }
  20305. # Check whether --with-x was given.
  20306. if test ${with_x+y}
  20307. then :
  20308. withval=$with_x;
  20309. fi
  20310. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20311. if test "x$with_x" = xno; then
  20312. # The user explicitly disabled X.
  20313. have_x=disabled
  20314. else
  20315. case $x_includes,$x_libraries in #(
  20316. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20317. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20318. then :
  20319. printf %s "(cached) " >&6
  20320. else $as_nop
  20321. # One or both of the vars are not set, and there is no cached value.
  20322. ac_x_includes=no
  20323. ac_x_libraries=no
  20324. # Do we need to do anything special at all?
  20325. ac_save_LIBS=$LIBS
  20326. LIBS="-lX11 $LIBS"
  20327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20328. /* end confdefs.h. */
  20329. #include <X11/Xlib.h>
  20330. int
  20331. main (void)
  20332. {
  20333. XrmInitialize ()
  20334. ;
  20335. return 0;
  20336. }
  20337. _ACEOF
  20338. if ac_fn_c_try_link "$LINENO"
  20339. then :
  20340. # We can compile and link X programs with no special options.
  20341. ac_x_includes=
  20342. ac_x_libraries=
  20343. fi
  20344. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20345. conftest$ac_exeext conftest.$ac_ext
  20346. LIBS="$ac_save_LIBS"
  20347. # If that didn't work, only try xmkmf and file system searches
  20348. # for native compilation.
  20349. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20350. then :
  20351. rm -f -r conftest.dir
  20352. if mkdir conftest.dir; then
  20353. cd conftest.dir
  20354. cat >Imakefile <<'_ACEOF'
  20355. incroot:
  20356. @echo incroot='${INCROOT}'
  20357. usrlibdir:
  20358. @echo usrlibdir='${USRLIBDIR}'
  20359. libdir:
  20360. @echo libdir='${LIBDIR}'
  20361. _ACEOF
  20362. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20363. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20364. for ac_var in incroot usrlibdir libdir; do
  20365. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20366. done
  20367. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20368. for ac_extension in a so sl dylib la dll; do
  20369. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20370. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20371. ac_im_usrlibdir=$ac_im_libdir; break
  20372. fi
  20373. done
  20374. # Screen out bogus values from the imake configuration. They are
  20375. # bogus both because they are the default anyway, and because
  20376. # using them would break gcc on systems where it needs fixed includes.
  20377. case $ac_im_incroot in
  20378. /usr/include) ac_x_includes= ;;
  20379. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20380. esac
  20381. case $ac_im_usrlibdir in
  20382. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20383. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20384. esac
  20385. fi
  20386. cd ..
  20387. rm -f -r conftest.dir
  20388. fi
  20389. # Standard set of common directories for X headers.
  20390. # Check X11 before X11Rn because it is often a symlink to the current release.
  20391. ac_x_header_dirs='
  20392. /usr/X11/include
  20393. /usr/X11R7/include
  20394. /usr/X11R6/include
  20395. /usr/X11R5/include
  20396. /usr/X11R4/include
  20397. /usr/include/X11
  20398. /usr/include/X11R7
  20399. /usr/include/X11R6
  20400. /usr/include/X11R5
  20401. /usr/include/X11R4
  20402. /usr/local/X11/include
  20403. /usr/local/X11R7/include
  20404. /usr/local/X11R6/include
  20405. /usr/local/X11R5/include
  20406. /usr/local/X11R4/include
  20407. /usr/local/include/X11
  20408. /usr/local/include/X11R7
  20409. /usr/local/include/X11R6
  20410. /usr/local/include/X11R5
  20411. /usr/local/include/X11R4
  20412. /opt/X11/include
  20413. /usr/X386/include
  20414. /usr/x386/include
  20415. /usr/XFree86/include/X11
  20416. /usr/include
  20417. /usr/local/include
  20418. /usr/unsupported/include
  20419. /usr/athena/include
  20420. /usr/local/x11r5/include
  20421. /usr/lpp/Xamples/include
  20422. /usr/openwin/include
  20423. /usr/openwin/share/include'
  20424. if test "$ac_x_includes" = no; then
  20425. # Guess where to find include files, by looking for Xlib.h.
  20426. # First, try using that file with no special directory specified.
  20427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20428. /* end confdefs.h. */
  20429. #include <X11/Xlib.h>
  20430. _ACEOF
  20431. if ac_fn_c_try_cpp "$LINENO"
  20432. then :
  20433. # We can compile using X headers with no special include directory.
  20434. ac_x_includes=
  20435. else $as_nop
  20436. for ac_dir in $ac_x_header_dirs; do
  20437. if test -r "$ac_dir/X11/Xlib.h"; then
  20438. ac_x_includes=$ac_dir
  20439. break
  20440. fi
  20441. done
  20442. fi
  20443. rm -f conftest.err conftest.i conftest.$ac_ext
  20444. fi # $ac_x_includes = no
  20445. if test "$ac_x_libraries" = no; then
  20446. # Check for the libraries.
  20447. # See if we find them without any special options.
  20448. # Don't add to $LIBS permanently.
  20449. ac_save_LIBS=$LIBS
  20450. LIBS="-lX11 $LIBS"
  20451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20452. /* end confdefs.h. */
  20453. #include <X11/Xlib.h>
  20454. int
  20455. main (void)
  20456. {
  20457. XrmInitialize ()
  20458. ;
  20459. return 0;
  20460. }
  20461. _ACEOF
  20462. if ac_fn_c_try_link "$LINENO"
  20463. then :
  20464. LIBS=$ac_save_LIBS
  20465. # We can link X programs with no special library path.
  20466. ac_x_libraries=
  20467. else $as_nop
  20468. LIBS=$ac_save_LIBS
  20469. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20470. do
  20471. # Don't even attempt the hair of trying to link an X program!
  20472. for ac_extension in a so sl dylib la dll; do
  20473. if test -r "$ac_dir/libX11.$ac_extension"; then
  20474. ac_x_libraries=$ac_dir
  20475. break 2
  20476. fi
  20477. done
  20478. done
  20479. fi
  20480. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20481. conftest$ac_exeext conftest.$ac_ext
  20482. fi # $ac_x_libraries = no
  20483. fi
  20484. # Record the results.
  20485. case $ac_x_includes,$ac_x_libraries in #(
  20486. no,* | *,no | *\'*) :
  20487. # Didn't find X, or a directory has "'" in its name.
  20488. ac_cv_have_x="have_x=no" ;; #(
  20489. *) :
  20490. # Record where we found X for the cache.
  20491. ac_cv_have_x="have_x=yes\
  20492. ac_x_includes='$ac_x_includes'\
  20493. ac_x_libraries='$ac_x_libraries'" ;;
  20494. esac
  20495. fi
  20496. ;; #(
  20497. *) have_x=yes;;
  20498. esac
  20499. eval "$ac_cv_have_x"
  20500. fi # $with_x != no
  20501. if test "$have_x" != yes; then
  20502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20503. printf "%s\n" "$have_x" >&6; }
  20504. no_x=yes
  20505. else
  20506. # If each of the values was on the command line, it overrides each guess.
  20507. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20508. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20509. # Update the cache value to reflect the command line values.
  20510. ac_cv_have_x="have_x=yes\
  20511. ac_x_includes='$x_includes'\
  20512. ac_x_libraries='$x_libraries'"
  20513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20514. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20515. fi
  20516. if test "$no_x" = yes; then
  20517. # Not all programs may use this symbol, but it does not hurt to define it.
  20518. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20519. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20520. else
  20521. if test -n "$x_includes"; then
  20522. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20523. fi
  20524. # It would also be nice to do this for all -L options, not just this one.
  20525. if test -n "$x_libraries"; then
  20526. X_LIBS="$X_LIBS -L$x_libraries"
  20527. # For Solaris; some versions of Sun CC require a space after -R and
  20528. # others require no space. Words are not sufficient . . . .
  20529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20530. printf %s "checking whether -R must be followed by a space... " >&6; }
  20531. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20532. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20533. ac_c_werror_flag=yes
  20534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20535. /* end confdefs.h. */
  20536. int
  20537. main (void)
  20538. {
  20539. ;
  20540. return 0;
  20541. }
  20542. _ACEOF
  20543. if ac_fn_c_try_link "$LINENO"
  20544. then :
  20545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20546. printf "%s\n" "no" >&6; }
  20547. X_LIBS="$X_LIBS -R$x_libraries"
  20548. else $as_nop
  20549. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20551. /* end confdefs.h. */
  20552. int
  20553. main (void)
  20554. {
  20555. ;
  20556. return 0;
  20557. }
  20558. _ACEOF
  20559. if ac_fn_c_try_link "$LINENO"
  20560. then :
  20561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20562. printf "%s\n" "yes" >&6; }
  20563. X_LIBS="$X_LIBS -R $x_libraries"
  20564. else $as_nop
  20565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20566. printf "%s\n" "neither works" >&6; }
  20567. fi
  20568. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20569. conftest$ac_exeext conftest.$ac_ext
  20570. fi
  20571. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20572. conftest$ac_exeext conftest.$ac_ext
  20573. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20574. LIBS=$ac_xsave_LIBS
  20575. fi
  20576. # Check for system-dependent libraries X programs must link with.
  20577. # Do this before checking for the system-independent R6 libraries
  20578. # (-lICE), since we may need -lsocket or whatever for X linking.
  20579. if test "$ISC" = yes; then
  20580. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20581. else
  20582. # Martyn Johnson says this is needed for Ultrix, if the X
  20583. # libraries were built with DECnet support. And Karl Berry says
  20584. # the Alpha needs dnet_stub (dnet does not exist).
  20585. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20587. /* end confdefs.h. */
  20588. /* Override any GCC internal prototype to avoid an error.
  20589. Use char because int might match the return type of a GCC
  20590. builtin and then its argument prototype would still apply. */
  20591. char XOpenDisplay ();
  20592. int
  20593. main (void)
  20594. {
  20595. return XOpenDisplay ();
  20596. ;
  20597. return 0;
  20598. }
  20599. _ACEOF
  20600. if ac_fn_c_try_link "$LINENO"
  20601. then :
  20602. else $as_nop
  20603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20604. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20605. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20606. then :
  20607. printf %s "(cached) " >&6
  20608. else $as_nop
  20609. ac_check_lib_save_LIBS=$LIBS
  20610. LIBS="-ldnet $LIBS"
  20611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20612. /* end confdefs.h. */
  20613. /* Override any GCC internal prototype to avoid an error.
  20614. Use char because int might match the return type of a GCC
  20615. builtin and then its argument prototype would still apply. */
  20616. char dnet_ntoa ();
  20617. int
  20618. main (void)
  20619. {
  20620. return dnet_ntoa ();
  20621. ;
  20622. return 0;
  20623. }
  20624. _ACEOF
  20625. if ac_fn_c_try_link "$LINENO"
  20626. then :
  20627. ac_cv_lib_dnet_dnet_ntoa=yes
  20628. else $as_nop
  20629. ac_cv_lib_dnet_dnet_ntoa=no
  20630. fi
  20631. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20632. conftest$ac_exeext conftest.$ac_ext
  20633. LIBS=$ac_check_lib_save_LIBS
  20634. fi
  20635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20636. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20637. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20638. then :
  20639. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20640. fi
  20641. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20643. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20644. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20645. then :
  20646. printf %s "(cached) " >&6
  20647. else $as_nop
  20648. ac_check_lib_save_LIBS=$LIBS
  20649. LIBS="-ldnet_stub $LIBS"
  20650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20651. /* end confdefs.h. */
  20652. /* Override any GCC internal prototype to avoid an error.
  20653. Use char because int might match the return type of a GCC
  20654. builtin and then its argument prototype would still apply. */
  20655. char dnet_ntoa ();
  20656. int
  20657. main (void)
  20658. {
  20659. return dnet_ntoa ();
  20660. ;
  20661. return 0;
  20662. }
  20663. _ACEOF
  20664. if ac_fn_c_try_link "$LINENO"
  20665. then :
  20666. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20667. else $as_nop
  20668. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20669. fi
  20670. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20671. conftest$ac_exeext conftest.$ac_ext
  20672. LIBS=$ac_check_lib_save_LIBS
  20673. fi
  20674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20675. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20676. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20677. then :
  20678. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20679. fi
  20680. fi
  20681. fi
  20682. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20683. conftest$ac_exeext conftest.$ac_ext
  20684. LIBS="$ac_xsave_LIBS"
  20685. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20686. # to get the SysV transport functions.
  20687. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20688. # needs -lnsl.
  20689. # The nsl library prevents programs from opening the X display
  20690. # on Irix 5.2, according to T.E. Dickey.
  20691. # The functions gethostbyname, getservbyname, and inet_addr are
  20692. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20693. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20694. if test "x$ac_cv_func_gethostbyname" = xyes
  20695. then :
  20696. fi
  20697. if test $ac_cv_func_gethostbyname = no; then
  20698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20699. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20700. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20701. then :
  20702. printf %s "(cached) " >&6
  20703. else $as_nop
  20704. ac_check_lib_save_LIBS=$LIBS
  20705. LIBS="-lnsl $LIBS"
  20706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20707. /* end confdefs.h. */
  20708. /* Override any GCC internal prototype to avoid an error.
  20709. Use char because int might match the return type of a GCC
  20710. builtin and then its argument prototype would still apply. */
  20711. char gethostbyname ();
  20712. int
  20713. main (void)
  20714. {
  20715. return gethostbyname ();
  20716. ;
  20717. return 0;
  20718. }
  20719. _ACEOF
  20720. if ac_fn_c_try_link "$LINENO"
  20721. then :
  20722. ac_cv_lib_nsl_gethostbyname=yes
  20723. else $as_nop
  20724. ac_cv_lib_nsl_gethostbyname=no
  20725. fi
  20726. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20727. conftest$ac_exeext conftest.$ac_ext
  20728. LIBS=$ac_check_lib_save_LIBS
  20729. fi
  20730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20731. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20732. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  20733. then :
  20734. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20735. fi
  20736. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20738. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  20739. if test ${ac_cv_lib_bsd_gethostbyname+y}
  20740. then :
  20741. printf %s "(cached) " >&6
  20742. else $as_nop
  20743. ac_check_lib_save_LIBS=$LIBS
  20744. LIBS="-lbsd $LIBS"
  20745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20746. /* end confdefs.h. */
  20747. /* Override any GCC internal prototype to avoid an error.
  20748. Use char because int might match the return type of a GCC
  20749. builtin and then its argument prototype would still apply. */
  20750. char gethostbyname ();
  20751. int
  20752. main (void)
  20753. {
  20754. return gethostbyname ();
  20755. ;
  20756. return 0;
  20757. }
  20758. _ACEOF
  20759. if ac_fn_c_try_link "$LINENO"
  20760. then :
  20761. ac_cv_lib_bsd_gethostbyname=yes
  20762. else $as_nop
  20763. ac_cv_lib_bsd_gethostbyname=no
  20764. fi
  20765. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20766. conftest$ac_exeext conftest.$ac_ext
  20767. LIBS=$ac_check_lib_save_LIBS
  20768. fi
  20769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20770. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20771. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20772. then :
  20773. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20774. fi
  20775. fi
  20776. fi
  20777. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20778. # socket/setsockopt and other routines are undefined under SCO ODT
  20779. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20780. # on later versions), says Simon Leinen: it contains gethostby*
  20781. # variants that don't use the name server (or something). -lsocket
  20782. # must be given before -lnsl if both are needed. We assume that
  20783. # if connect needs -lnsl, so does gethostbyname.
  20784. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20785. if test "x$ac_cv_func_connect" = xyes
  20786. then :
  20787. fi
  20788. if test $ac_cv_func_connect = no; then
  20789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20790. printf %s "checking for connect in -lsocket... " >&6; }
  20791. if test ${ac_cv_lib_socket_connect+y}
  20792. then :
  20793. printf %s "(cached) " >&6
  20794. else $as_nop
  20795. ac_check_lib_save_LIBS=$LIBS
  20796. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20798. /* end confdefs.h. */
  20799. /* Override any GCC internal prototype to avoid an error.
  20800. Use char because int might match the return type of a GCC
  20801. builtin and then its argument prototype would still apply. */
  20802. char connect ();
  20803. int
  20804. main (void)
  20805. {
  20806. return connect ();
  20807. ;
  20808. return 0;
  20809. }
  20810. _ACEOF
  20811. if ac_fn_c_try_link "$LINENO"
  20812. then :
  20813. ac_cv_lib_socket_connect=yes
  20814. else $as_nop
  20815. ac_cv_lib_socket_connect=no
  20816. fi
  20817. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20818. conftest$ac_exeext conftest.$ac_ext
  20819. LIBS=$ac_check_lib_save_LIBS
  20820. fi
  20821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20822. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20823. if test "x$ac_cv_lib_socket_connect" = xyes
  20824. then :
  20825. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20826. fi
  20827. fi
  20828. # Guillermo Gomez says -lposix is necessary on A/UX.
  20829. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20830. if test "x$ac_cv_func_remove" = xyes
  20831. then :
  20832. fi
  20833. if test $ac_cv_func_remove = no; then
  20834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20835. printf %s "checking for remove in -lposix... " >&6; }
  20836. if test ${ac_cv_lib_posix_remove+y}
  20837. then :
  20838. printf %s "(cached) " >&6
  20839. else $as_nop
  20840. ac_check_lib_save_LIBS=$LIBS
  20841. LIBS="-lposix $LIBS"
  20842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20843. /* end confdefs.h. */
  20844. /* Override any GCC internal prototype to avoid an error.
  20845. Use char because int might match the return type of a GCC
  20846. builtin and then its argument prototype would still apply. */
  20847. char remove ();
  20848. int
  20849. main (void)
  20850. {
  20851. return remove ();
  20852. ;
  20853. return 0;
  20854. }
  20855. _ACEOF
  20856. if ac_fn_c_try_link "$LINENO"
  20857. then :
  20858. ac_cv_lib_posix_remove=yes
  20859. else $as_nop
  20860. ac_cv_lib_posix_remove=no
  20861. fi
  20862. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20863. conftest$ac_exeext conftest.$ac_ext
  20864. LIBS=$ac_check_lib_save_LIBS
  20865. fi
  20866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20867. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20868. if test "x$ac_cv_lib_posix_remove" = xyes
  20869. then :
  20870. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20871. fi
  20872. fi
  20873. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20874. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20875. if test "x$ac_cv_func_shmat" = xyes
  20876. then :
  20877. fi
  20878. if test $ac_cv_func_shmat = no; then
  20879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20880. printf %s "checking for shmat in -lipc... " >&6; }
  20881. if test ${ac_cv_lib_ipc_shmat+y}
  20882. then :
  20883. printf %s "(cached) " >&6
  20884. else $as_nop
  20885. ac_check_lib_save_LIBS=$LIBS
  20886. LIBS="-lipc $LIBS"
  20887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20888. /* end confdefs.h. */
  20889. /* Override any GCC internal prototype to avoid an error.
  20890. Use char because int might match the return type of a GCC
  20891. builtin and then its argument prototype would still apply. */
  20892. char shmat ();
  20893. int
  20894. main (void)
  20895. {
  20896. return shmat ();
  20897. ;
  20898. return 0;
  20899. }
  20900. _ACEOF
  20901. if ac_fn_c_try_link "$LINENO"
  20902. then :
  20903. ac_cv_lib_ipc_shmat=yes
  20904. else $as_nop
  20905. ac_cv_lib_ipc_shmat=no
  20906. fi
  20907. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20908. conftest$ac_exeext conftest.$ac_ext
  20909. LIBS=$ac_check_lib_save_LIBS
  20910. fi
  20911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20912. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  20913. if test "x$ac_cv_lib_ipc_shmat" = xyes
  20914. then :
  20915. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20916. fi
  20917. fi
  20918. fi
  20919. # Check for libraries that X11R6 Xt/Xaw programs need.
  20920. ac_save_LDFLAGS=$LDFLAGS
  20921. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  20922. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  20923. # check for ICE first), but we must link in the order -lSM -lICE or
  20924. # we get undefined symbols. So assume we have SM if we have ICE.
  20925. # These have to be linked with before -lX11, unlike the other
  20926. # libraries we check for below, so use a different variable.
  20927. # John Interrante, Karl Berry
  20928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  20929. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  20930. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  20931. then :
  20932. printf %s "(cached) " >&6
  20933. else $as_nop
  20934. ac_check_lib_save_LIBS=$LIBS
  20935. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  20936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20937. /* end confdefs.h. */
  20938. /* Override any GCC internal prototype to avoid an error.
  20939. Use char because int might match the return type of a GCC
  20940. builtin and then its argument prototype would still apply. */
  20941. char IceConnectionNumber ();
  20942. int
  20943. main (void)
  20944. {
  20945. return IceConnectionNumber ();
  20946. ;
  20947. return 0;
  20948. }
  20949. _ACEOF
  20950. if ac_fn_c_try_link "$LINENO"
  20951. then :
  20952. ac_cv_lib_ICE_IceConnectionNumber=yes
  20953. else $as_nop
  20954. ac_cv_lib_ICE_IceConnectionNumber=no
  20955. fi
  20956. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20957. conftest$ac_exeext conftest.$ac_ext
  20958. LIBS=$ac_check_lib_save_LIBS
  20959. fi
  20960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  20961. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  20962. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  20963. then :
  20964. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  20965. fi
  20966. LDFLAGS=$ac_save_LDFLAGS
  20967. fi
  20968. if test x$have_x = xyes; then
  20969. # Check whether --enable-x11-shared was given.
  20970. if test ${enable_x11_shared+y}
  20971. then :
  20972. enableval=$enable_x11_shared;
  20973. else $as_nop
  20974. enable_x11_shared=maybe
  20975. fi
  20976. case "$host" in
  20977. *-*-darwin*)
  20978. # Apple now puts this in /opt/X11
  20979. x11_lib='/opt/X11/lib/libX11.6.dylib'
  20980. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  20981. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  20982. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  20983. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  20984. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  20985. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  20986. xss_lib='/opt/X11/lib/libXss.1.dylib'
  20987. ;;
  20988. *-*-openbsd*)
  20989. x11_lib='libX11.so'
  20990. x11ext_lib='libXext.so'
  20991. xcursor_lib='libXcursor.so'
  20992. xinput_lib='libXi.so'
  20993. xfixes_lib='libXfixes.so'
  20994. xrandr_lib='libXrandr.so'
  20995. xrender_lib='libXrender.so'
  20996. xss_lib='libXss.so'
  20997. ;;
  20998. *)
  20999. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21000. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21001. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21002. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21003. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21004. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21005. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21006. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21007. ;;
  21008. esac
  21009. if test x$ac_cv_func_shmat != xyes; then
  21010. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21011. fi
  21012. CFLAGS="$CFLAGS $X_CFLAGS"
  21013. LDFLAGS="$LDFLAGS $X_LIBS"
  21014. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21015. #include <X11/Xproto.h>
  21016. "
  21017. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21018. then :
  21019. have_xext_h_hdr=yes
  21020. else $as_nop
  21021. have_xext_h_hdr=no
  21022. fi
  21023. if test x$have_xext_h_hdr != xyes; then
  21024. as_fn_error $? "
  21025. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21026. " "$LINENO" 5
  21027. fi
  21028. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21029. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21030. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21031. # Needed so SDL applications can include SDL_syswm.h
  21032. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21033. if test x$enable_x11_shared = xmaybe; then
  21034. enable_x11_shared=yes
  21035. fi
  21036. if test x$have_loadso != xyes && \
  21037. test x$enable_x11_shared = xyes; then
  21038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21039. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21040. enable_x11_shared=no
  21041. fi
  21042. if test x$have_loadso = xyes && \
  21043. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21044. echo "-- dynamic libX11 -> $x11_lib"
  21045. echo "-- dynamic libX11ext -> $x11ext_lib"
  21046. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21047. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21048. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21049. else
  21050. enable_x11_shared=no
  21051. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21052. SUMMARY_video="${SUMMARY_video} x11"
  21053. fi
  21054. have_video=yes
  21055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21056. printf %s "checking for XGenericEvent... " >&6; }
  21057. have_XGenericEvent=no
  21058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21059. /* end confdefs.h. */
  21060. #include <X11/Xlib.h>
  21061. int
  21062. main (void)
  21063. {
  21064. Display *display;
  21065. XEvent event;
  21066. XGenericEventCookie *cookie = &event.xcookie;
  21067. XNextEvent(display, &event);
  21068. XGetEventData(display, cookie);
  21069. XFreeEventData(display, cookie);
  21070. ;
  21071. return 0;
  21072. }
  21073. _ACEOF
  21074. if ac_fn_c_try_compile "$LINENO"
  21075. then :
  21076. have_XGenericEvent=yes
  21077. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21078. fi
  21079. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21081. printf "%s\n" "$have_XGenericEvent" >&6; }
  21082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21083. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21084. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21085. then :
  21086. printf %s "(cached) " >&6
  21087. else $as_nop
  21088. ac_check_lib_save_LIBS=$LIBS
  21089. LIBS="-lX11 $LIBS"
  21090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21091. /* end confdefs.h. */
  21092. /* Override any GCC internal prototype to avoid an error.
  21093. Use char because int might match the return type of a GCC
  21094. builtin and then its argument prototype would still apply. */
  21095. char XkbKeycodeToKeysym ();
  21096. int
  21097. main (void)
  21098. {
  21099. return XkbKeycodeToKeysym ();
  21100. ;
  21101. return 0;
  21102. }
  21103. _ACEOF
  21104. if ac_fn_c_try_link "$LINENO"
  21105. then :
  21106. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21107. else $as_nop
  21108. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21109. fi
  21110. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21111. conftest$ac_exeext conftest.$ac_ext
  21112. LIBS=$ac_check_lib_save_LIBS
  21113. fi
  21114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21115. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21116. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21117. then :
  21118. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21119. fi
  21120. # Check whether --enable-video-x11-xcursor was given.
  21121. if test ${enable_video_x11_xcursor+y}
  21122. then :
  21123. enableval=$enable_video_x11_xcursor;
  21124. else $as_nop
  21125. enable_video_x11_xcursor=yes
  21126. fi
  21127. if test x$enable_video_x11_xcursor = xyes; then
  21128. definitely_enable_video_x11_xcursor=no
  21129. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21130. "
  21131. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21132. then :
  21133. have_xcursor_h_hdr=yes
  21134. else $as_nop
  21135. have_xcursor_h_hdr=no
  21136. fi
  21137. if test x$have_xcursor_h_hdr = xyes; then
  21138. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21139. echo "-- dynamic libXcursor -> $xcursor_lib"
  21140. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21141. definitely_enable_video_x11_xcursor=yes
  21142. else
  21143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21144. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21145. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21146. then :
  21147. printf %s "(cached) " >&6
  21148. else $as_nop
  21149. ac_check_lib_save_LIBS=$LIBS
  21150. LIBS="-lXcursor $LIBS"
  21151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21152. /* end confdefs.h. */
  21153. /* Override any GCC internal prototype to avoid an error.
  21154. Use char because int might match the return type of a GCC
  21155. builtin and then its argument prototype would still apply. */
  21156. char XcursorImageCreate ();
  21157. int
  21158. main (void)
  21159. {
  21160. return XcursorImageCreate ();
  21161. ;
  21162. return 0;
  21163. }
  21164. _ACEOF
  21165. if ac_fn_c_try_link "$LINENO"
  21166. then :
  21167. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21168. else $as_nop
  21169. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21170. fi
  21171. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21172. conftest$ac_exeext conftest.$ac_ext
  21173. LIBS=$ac_check_lib_save_LIBS
  21174. fi
  21175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21176. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21177. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21178. then :
  21179. have_xcursor_lib=yes
  21180. fi
  21181. if test x$have_xcursor_lib = xyes ; then
  21182. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21183. definitely_enable_video_x11_xcursor=yes
  21184. fi
  21185. fi
  21186. fi
  21187. fi
  21188. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21189. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21190. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21191. fi
  21192. # Check whether --enable-video-x11-xdbe was given.
  21193. if test ${enable_video_x11_xdbe+y}
  21194. then :
  21195. enableval=$enable_video_x11_xdbe;
  21196. else $as_nop
  21197. enable_video_x11_xdbe=yes
  21198. fi
  21199. if test x$enable_video_x11_xdbe = xyes; then
  21200. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21201. "
  21202. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21203. then :
  21204. have_dbe_h_hdr=yes
  21205. else $as_nop
  21206. have_dbe_h_hdr=no
  21207. fi
  21208. if test x$have_dbe_h_hdr = xyes; then
  21209. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21210. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21211. fi
  21212. fi
  21213. # Check whether --enable-video-x11-xinput was given.
  21214. if test ${enable_video_x11_xinput+y}
  21215. then :
  21216. enableval=$enable_video_x11_xinput;
  21217. else $as_nop
  21218. enable_video_x11_xinput=yes
  21219. fi
  21220. if test x$enable_video_x11_xinput = xyes; then
  21221. definitely_enable_video_x11_xinput=no
  21222. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21223. "
  21224. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21225. then :
  21226. have_xinput_h_hdr=yes
  21227. else $as_nop
  21228. have_xinput_h_hdr=no
  21229. fi
  21230. if test x$have_xinput_h_hdr = xyes; then
  21231. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21232. echo "-- dynamic libXi -> $xinput_lib"
  21233. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21234. definitely_enable_video_x11_xinput=yes
  21235. else
  21236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21237. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21238. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21239. then :
  21240. printf %s "(cached) " >&6
  21241. else $as_nop
  21242. ac_check_lib_save_LIBS=$LIBS
  21243. LIBS="-lXi $LIBS"
  21244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21245. /* end confdefs.h. */
  21246. /* Override any GCC internal prototype to avoid an error.
  21247. Use char because int might match the return type of a GCC
  21248. builtin and then its argument prototype would still apply. */
  21249. char XOpenDevice ();
  21250. int
  21251. main (void)
  21252. {
  21253. return XOpenDevice ();
  21254. ;
  21255. return 0;
  21256. }
  21257. _ACEOF
  21258. if ac_fn_c_try_link "$LINENO"
  21259. then :
  21260. ac_cv_lib_Xi_XOpenDevice=yes
  21261. else $as_nop
  21262. ac_cv_lib_Xi_XOpenDevice=no
  21263. fi
  21264. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21265. conftest$ac_exeext conftest.$ac_ext
  21266. LIBS=$ac_check_lib_save_LIBS
  21267. fi
  21268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21269. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21270. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21271. then :
  21272. have_xinput_lib=yes
  21273. fi
  21274. if test x$have_xinput_lib = xyes ; then
  21275. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21276. definitely_enable_video_x11_xinput=yes
  21277. fi
  21278. fi
  21279. fi
  21280. fi
  21281. if test x$definitely_enable_video_x11_xinput = xyes; then
  21282. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21283. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21285. printf %s "checking for xinput2 multitouch... " >&6; }
  21286. have_xinput2_multitouch=no
  21287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21288. /* end confdefs.h. */
  21289. #include <X11/Xlib.h>
  21290. #include <X11/Xproto.h>
  21291. #include <X11/extensions/XInput2.h>
  21292. int
  21293. main (void)
  21294. {
  21295. int event_type = XI_TouchBegin;
  21296. XITouchClassInfo *t;
  21297. ;
  21298. return 0;
  21299. }
  21300. _ACEOF
  21301. if ac_fn_c_try_compile "$LINENO"
  21302. then :
  21303. have_xinput2_multitouch=yes
  21304. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21305. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21306. fi
  21307. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21309. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21310. fi
  21311. # Check whether --enable-video-x11-xfixes was given.
  21312. if test ${enable_video_x11_xfixes+y}
  21313. then :
  21314. enableval=$enable_video_x11_xfixes;
  21315. else $as_nop
  21316. enable_video_x11_xfixes=yes
  21317. fi
  21318. if test x$enable_video_x11_xfixes = xyes; then
  21319. definitely_enable_video_x11_xfixes=no
  21320. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21322. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21324. /* end confdefs.h. */
  21325. #include <X11/Xlib.h>
  21326. #include <X11/Xproto.h>
  21327. #include <X11/extensions/XInput2.h>
  21328. #include <X11/extensions/Xfixes.h>
  21329. int
  21330. main (void)
  21331. {
  21332. BarrierEventID b;
  21333. ;
  21334. return 0;
  21335. }
  21336. _ACEOF
  21337. if ac_fn_c_try_compile "$LINENO"
  21338. then :
  21339. have_xfixes_h_hdr=yes
  21340. else $as_nop
  21341. have_xfixes_h_hdr=no
  21342. fi
  21343. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21345. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21346. if test x$have_xfixes_h_hdr = xyes; then
  21347. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21348. echo "-- dynamic libXfixes -> $xfixes_lib"
  21349. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21350. definitely_enable_video_x11_xfixes=yes
  21351. else
  21352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21353. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21354. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21355. then :
  21356. printf %s "(cached) " >&6
  21357. else $as_nop
  21358. ac_check_lib_save_LIBS=$LIBS
  21359. LIBS="-lXfixes $LIBS"
  21360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21361. /* end confdefs.h. */
  21362. /* Override any GCC internal prototype to avoid an error.
  21363. Use char because int might match the return type of a GCC
  21364. builtin and then its argument prototype would still apply. */
  21365. char XFixesCreatePointerBarrier ();
  21366. int
  21367. main (void)
  21368. {
  21369. return XFixesCreatePointerBarrier ();
  21370. ;
  21371. return 0;
  21372. }
  21373. _ACEOF
  21374. if ac_fn_c_try_link "$LINENO"
  21375. then :
  21376. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21377. else $as_nop
  21378. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21379. fi
  21380. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21381. conftest$ac_exeext conftest.$ac_ext
  21382. LIBS=$ac_check_lib_save_LIBS
  21383. fi
  21384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21385. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21386. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21387. then :
  21388. have_xfixes_lib=yes
  21389. fi
  21390. if test x$have_xfixes_lib = xyes ; then
  21391. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21392. definitely_enable_video_x11_xfixes=yes
  21393. fi
  21394. fi
  21395. fi
  21396. fi
  21397. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21398. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21399. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21400. fi
  21401. # Check whether --enable-video-x11-xrandr was given.
  21402. if test ${enable_video_x11_xrandr+y}
  21403. then :
  21404. enableval=$enable_video_x11_xrandr;
  21405. else $as_nop
  21406. enable_video_x11_xrandr=yes
  21407. fi
  21408. if test x$enable_video_x11_xrandr = xyes; then
  21409. definitely_enable_video_x11_xrandr=no
  21410. have_xrandr_h_hdr=no
  21411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21412. /* end confdefs.h. */
  21413. #include <X11/Xlib.h>
  21414. #include <X11/extensions/Xrandr.h>
  21415. int
  21416. main (void)
  21417. {
  21418. XRRScreenResources *res = NULL;
  21419. ;
  21420. return 0;
  21421. }
  21422. _ACEOF
  21423. if ac_fn_c_try_compile "$LINENO"
  21424. then :
  21425. have_xrandr_h_hdr=yes
  21426. fi
  21427. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21428. if test x$have_xrandr_h_hdr = xyes; then
  21429. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21430. echo "-- dynamic libXrandr -> $xrandr_lib"
  21431. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21432. definitely_enable_video_x11_xrandr=yes
  21433. else
  21434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21435. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21436. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21437. then :
  21438. printf %s "(cached) " >&6
  21439. else $as_nop
  21440. ac_check_lib_save_LIBS=$LIBS
  21441. LIBS="-lXrandr $LIBS"
  21442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21443. /* end confdefs.h. */
  21444. /* Override any GCC internal prototype to avoid an error.
  21445. Use char because int might match the return type of a GCC
  21446. builtin and then its argument prototype would still apply. */
  21447. char XRRQueryExtension ();
  21448. int
  21449. main (void)
  21450. {
  21451. return XRRQueryExtension ();
  21452. ;
  21453. return 0;
  21454. }
  21455. _ACEOF
  21456. if ac_fn_c_try_link "$LINENO"
  21457. then :
  21458. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21459. else $as_nop
  21460. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21461. fi
  21462. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21463. conftest$ac_exeext conftest.$ac_ext
  21464. LIBS=$ac_check_lib_save_LIBS
  21465. fi
  21466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21467. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21468. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21469. then :
  21470. have_xrandr_lib=yes
  21471. fi
  21472. if test x$have_xrandr_lib = xyes ; then
  21473. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21474. definitely_enable_video_x11_xrandr=yes
  21475. fi
  21476. fi
  21477. fi
  21478. fi
  21479. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21480. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21481. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21482. fi
  21483. # Check whether --enable-video-x11-scrnsaver was given.
  21484. if test ${enable_video_x11_scrnsaver+y}
  21485. then :
  21486. enableval=$enable_video_x11_scrnsaver;
  21487. else $as_nop
  21488. enable_video_x11_scrnsaver=yes
  21489. fi
  21490. if test x$enable_video_x11_scrnsaver = xyes; then
  21491. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21492. "
  21493. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21494. then :
  21495. have_scrnsaver_h_hdr=yes
  21496. else $as_nop
  21497. have_scrnsaver_h_hdr=no
  21498. fi
  21499. if test x$have_scrnsaver_h_hdr = xyes; then
  21500. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21501. echo "-- dynamic libXss -> $xss_lib"
  21502. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21503. definitely_enable_video_x11_scrnsaver=yes
  21504. else
  21505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21506. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21507. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21508. then :
  21509. printf %s "(cached) " >&6
  21510. else $as_nop
  21511. ac_check_lib_save_LIBS=$LIBS
  21512. LIBS="-lXss $LIBS"
  21513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21514. /* end confdefs.h. */
  21515. /* Override any GCC internal prototype to avoid an error.
  21516. Use char because int might match the return type of a GCC
  21517. builtin and then its argument prototype would still apply. */
  21518. char XScreenSaverSuspend ();
  21519. int
  21520. main (void)
  21521. {
  21522. return XScreenSaverSuspend ();
  21523. ;
  21524. return 0;
  21525. }
  21526. _ACEOF
  21527. if ac_fn_c_try_link "$LINENO"
  21528. then :
  21529. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21530. else $as_nop
  21531. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21532. fi
  21533. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21534. conftest$ac_exeext conftest.$ac_ext
  21535. LIBS=$ac_check_lib_save_LIBS
  21536. fi
  21537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21538. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21539. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21540. then :
  21541. have_xss_lib=yes
  21542. fi
  21543. if test x$have_xss_lib = xyes ; then
  21544. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21545. definitely_enable_video_x11_scrnsaver=yes
  21546. fi
  21547. fi
  21548. fi
  21549. fi
  21550. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21551. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21552. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21553. fi
  21554. # Check whether --enable-video-x11-xshape was given.
  21555. if test ${enable_video_x11_xshape+y}
  21556. then :
  21557. enableval=$enable_video_x11_xshape;
  21558. else $as_nop
  21559. enable_video_x11_xshape=yes
  21560. fi
  21561. if test x$enable_video_x11_xshape = xyes; then
  21562. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21563. "
  21564. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21565. then :
  21566. have_shape_h_hdr=yes
  21567. else $as_nop
  21568. have_shape_h_hdr=no
  21569. fi
  21570. if test x$have_shape_h_hdr = xyes; then
  21571. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21572. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21573. fi
  21574. fi
  21575. fi
  21576. fi
  21577. if test x$have_x != xyes; then
  21578. # Prevent Mesa from including X11 headers
  21579. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21580. fi
  21581. }
  21582. CheckVivanteVideo()
  21583. {
  21584. # Check whether --enable-video-vivante was given.
  21585. if test ${enable_video_vivante+y}
  21586. then :
  21587. enableval=$enable_video_vivante;
  21588. else $as_nop
  21589. enable_video_vivante=yes
  21590. fi
  21591. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21593. printf %s "checking for Vivante VDK API... " >&6; }
  21594. have_vivante_vdk=no
  21595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21596. /* end confdefs.h. */
  21597. #define LINUX
  21598. #define EGL_API_FB
  21599. #include <gc_vdk.h>
  21600. int
  21601. main (void)
  21602. {
  21603. ;
  21604. return 0;
  21605. }
  21606. _ACEOF
  21607. if ac_fn_c_try_compile "$LINENO"
  21608. then :
  21609. have_vivante_vdk=yes
  21610. fi
  21611. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21613. printf "%s\n" "$have_vivante_vdk" >&6; }
  21614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21615. printf %s "checking for Vivante FB API... " >&6; }
  21616. have_vivante_egl=no
  21617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21618. /* end confdefs.h. */
  21619. #define LINUX
  21620. #define EGL_API_FB
  21621. #include <EGL/eglvivante.h>
  21622. int
  21623. main (void)
  21624. {
  21625. ;
  21626. return 0;
  21627. }
  21628. _ACEOF
  21629. if ac_fn_c_try_compile "$LINENO"
  21630. then :
  21631. have_vivante_egl=yes
  21632. fi
  21633. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21635. printf "%s\n" "$have_vivante_egl" >&6; }
  21636. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21637. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21638. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21639. if test x$have_vivante_vdk = xyes; then
  21640. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21641. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21642. fi
  21643. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21644. SUMMARY_video="${SUMMARY_video} vivante"
  21645. have_video=yes
  21646. fi
  21647. fi
  21648. }
  21649. CheckHaikuVideo()
  21650. {
  21651. if test x$enable_video = xyes; then
  21652. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21653. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21654. have_video=yes
  21655. SUMMARY_video="${SUMMARY_video} haiku"
  21656. fi
  21657. }
  21658. CheckCOCOA()
  21659. {
  21660. # Check whether --enable-video-cocoa was given.
  21661. if test ${enable_video_cocoa+y}
  21662. then :
  21663. enableval=$enable_video_cocoa;
  21664. else $as_nop
  21665. enable_video_cocoa=yes
  21666. fi
  21667. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21668. save_CFLAGS="$CFLAGS"
  21669. CFLAGS="$CFLAGS -x objective-c"
  21670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21671. printf %s "checking for Cocoa framework... " >&6; }
  21672. have_cocoa=no
  21673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21674. /* end confdefs.h. */
  21675. #import <Cocoa/Cocoa.h>
  21676. int
  21677. main (void)
  21678. {
  21679. ;
  21680. return 0;
  21681. }
  21682. _ACEOF
  21683. if ac_fn_c_try_compile "$LINENO"
  21684. then :
  21685. have_cocoa=yes
  21686. fi
  21687. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21689. printf "%s\n" "$have_cocoa" >&6; }
  21690. CFLAGS="$save_CFLAGS"
  21691. if test x$have_cocoa = xyes; then
  21692. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21693. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21694. SUMMARY_video="${SUMMARY_video} cocoa"
  21695. have_video=yes
  21696. fi
  21697. fi
  21698. }
  21699. CheckMETAL()
  21700. {
  21701. # Check whether --enable-video-metal was given.
  21702. if test ${enable_video_metal+y}
  21703. then :
  21704. enableval=$enable_video_metal;
  21705. else $as_nop
  21706. enable_video_metal=yes
  21707. fi
  21708. # Check whether --enable-render-metal was given.
  21709. if test ${enable_render_metal+y}
  21710. then :
  21711. enableval=$enable_render_metal;
  21712. else $as_nop
  21713. enable_render_metal=yes
  21714. fi
  21715. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  21716. save_CFLAGS="$CFLAGS"
  21717. CFLAGS="$CFLAGS -x objective-c"
  21718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  21719. printf %s "checking for Metal framework... " >&6; }
  21720. have_metal=no
  21721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21722. /* end confdefs.h. */
  21723. #import <Cocoa/Cocoa.h>
  21724. #import <Metal/Metal.h>
  21725. #import <QuartzCore/CAMetalLayer.h>
  21726. #if TARGET_CPU_X86
  21727. #error Metal doesn't work on this configuration
  21728. #endif
  21729. int
  21730. main (void)
  21731. {
  21732. ;
  21733. return 0;
  21734. }
  21735. _ACEOF
  21736. if ac_fn_c_try_compile "$LINENO"
  21737. then :
  21738. have_metal=yes
  21739. fi
  21740. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21741. CFLAGS="$save_CFLAGS"
  21742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  21743. printf "%s\n" "$have_metal" >&6; }
  21744. if test x$have_metal = xyes; then
  21745. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  21746. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21747. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  21748. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  21749. fi
  21750. SUMMARY_video="${SUMMARY_video} metal"
  21751. else
  21752. enable_video_metal=no
  21753. enable_render_metal=no
  21754. fi
  21755. fi
  21756. }
  21757. CheckDirectFB()
  21758. {
  21759. # Check whether --enable-video-directfb was given.
  21760. if test ${enable_video_directfb+y}
  21761. then :
  21762. enableval=$enable_video_directfb;
  21763. else $as_nop
  21764. enable_video_directfb=no
  21765. fi
  21766. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  21767. pkg_failed=no
  21768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  21769. printf %s "checking for directfb >= 1.0.0... " >&6; }
  21770. if test -n "$DIRECTFB_CFLAGS"; then
  21771. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  21772. elif test -n "$PKG_CONFIG"; then
  21773. if test -n "$PKG_CONFIG" && \
  21774. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21775. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21776. ac_status=$?
  21777. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21778. test $ac_status = 0; }; then
  21779. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  21780. test "x$?" != "x0" && pkg_failed=yes
  21781. else
  21782. pkg_failed=yes
  21783. fi
  21784. else
  21785. pkg_failed=untried
  21786. fi
  21787. if test -n "$DIRECTFB_LIBS"; then
  21788. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  21789. elif test -n "$PKG_CONFIG"; then
  21790. if test -n "$PKG_CONFIG" && \
  21791. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21792. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21793. ac_status=$?
  21794. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21795. test $ac_status = 0; }; then
  21796. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  21797. test "x$?" != "x0" && pkg_failed=yes
  21798. else
  21799. pkg_failed=yes
  21800. fi
  21801. else
  21802. pkg_failed=untried
  21803. fi
  21804. if test $pkg_failed = yes; then
  21805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21806. printf "%s\n" "no" >&6; }
  21807. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21808. _pkg_short_errors_supported=yes
  21809. else
  21810. _pkg_short_errors_supported=no
  21811. fi
  21812. if test $_pkg_short_errors_supported = yes; then
  21813. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21814. else
  21815. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21816. fi
  21817. # Put the nasty error message in config.log where it belongs
  21818. echo "$DIRECTFB_PKG_ERRORS" >&5
  21819. video_directfb=no
  21820. elif test $pkg_failed = untried; then
  21821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21822. printf "%s\n" "no" >&6; }
  21823. video_directfb=no
  21824. else
  21825. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  21826. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  21827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21828. printf "%s\n" "yes" >&6; }
  21829. video_directfb=yes
  21830. fi
  21831. if test x$video_directfb = xyes; then
  21832. # SuSE 11.1 installs directfb-config without directfb-devel
  21833. save_CPPFLAGS="$CPPFLAGS"
  21834. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  21835. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  21836. if test "x$ac_cv_header_directfb_h" = xyes
  21837. then :
  21838. have_directfb_hdr=yes
  21839. else $as_nop
  21840. have_directfb_hdr=no
  21841. fi
  21842. CPPFLAGS="$save_CPPFLAGS"
  21843. video_directfb=$have_directfb_hdr
  21844. fi
  21845. if test x$video_directfb = xyes; then
  21846. # Check whether --enable-directfb-shared was given.
  21847. if test ${enable_directfb_shared+y}
  21848. then :
  21849. enableval=$enable_directfb_shared;
  21850. else $as_nop
  21851. enable_directfb_shared=yes
  21852. fi
  21853. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  21854. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  21855. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  21856. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  21857. directfb_shared=no
  21858. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  21859. if test x$have_loadso != xyes && \
  21860. test x$enable_directfb_shared = xyes; then
  21861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  21862. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  21863. fi
  21864. if test x$have_loadso = xyes && \
  21865. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  21866. directfb_shared=yes
  21867. echo "-- dynamic libdirectfb -> $directfb_lib"
  21868. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  21869. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  21870. else
  21871. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  21872. SUMMARY_video="${SUMMARY_video} directfb"
  21873. fi
  21874. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  21875. have_video=yes
  21876. fi
  21877. fi
  21878. }
  21879. CheckKMSDRM()
  21880. {
  21881. # Check whether --enable-video-kmsdrm was given.
  21882. if test ${enable_video_kmsdrm+y}
  21883. then :
  21884. enableval=$enable_video_kmsdrm;
  21885. else $as_nop
  21886. enable_video_kmsdrm=yes
  21887. fi
  21888. if test x$enable_video = xyes && \
  21889. test x$enable_video_kmsdrm = xyes && \
  21890. test x$video_opengl_egl = xyes; then
  21891. video_kmsdrm=no
  21892. pkg_failed=no
  21893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21894. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  21895. if test -n "$LIBDRM_CFLAGS"; then
  21896. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21897. elif test -n "$PKG_CONFIG"; then
  21898. if test -n "$PKG_CONFIG" && \
  21899. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21900. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21901. ac_status=$?
  21902. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21903. test $ac_status = 0; }; then
  21904. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  21905. test "x$?" != "x0" && pkg_failed=yes
  21906. else
  21907. pkg_failed=yes
  21908. fi
  21909. else
  21910. pkg_failed=untried
  21911. fi
  21912. if test -n "$LIBDRM_LIBS"; then
  21913. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  21914. elif test -n "$PKG_CONFIG"; then
  21915. if test -n "$PKG_CONFIG" && \
  21916. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21917. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21918. ac_status=$?
  21919. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21920. test $ac_status = 0; }; then
  21921. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  21922. test "x$?" != "x0" && pkg_failed=yes
  21923. else
  21924. pkg_failed=yes
  21925. fi
  21926. else
  21927. pkg_failed=untried
  21928. fi
  21929. if test $pkg_failed = yes; then
  21930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21931. printf "%s\n" "no" >&6; }
  21932. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21933. _pkg_short_errors_supported=yes
  21934. else
  21935. _pkg_short_errors_supported=no
  21936. fi
  21937. if test $_pkg_short_errors_supported = yes; then
  21938. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21939. else
  21940. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21941. fi
  21942. # Put the nasty error message in config.log where it belongs
  21943. echo "$LIBDRM_PKG_ERRORS" >&5
  21944. libdrm_avail=no
  21945. elif test $pkg_failed = untried; then
  21946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21947. printf "%s\n" "no" >&6; }
  21948. libdrm_avail=no
  21949. else
  21950. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  21951. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  21952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21953. printf "%s\n" "yes" >&6; }
  21954. libdrm_avail=yes
  21955. fi
  21956. pkg_failed=no
  21957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  21958. printf %s "checking for gbm >= 11.1.0... " >&6; }
  21959. if test -n "$LIBGBM_CFLAGS"; then
  21960. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  21961. elif test -n "$PKG_CONFIG"; then
  21962. if test -n "$PKG_CONFIG" && \
  21963. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21964. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21965. ac_status=$?
  21966. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21967. test $ac_status = 0; }; then
  21968. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  21969. test "x$?" != "x0" && pkg_failed=yes
  21970. else
  21971. pkg_failed=yes
  21972. fi
  21973. else
  21974. pkg_failed=untried
  21975. fi
  21976. if test -n "$LIBGBM_LIBS"; then
  21977. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  21978. elif test -n "$PKG_CONFIG"; then
  21979. if test -n "$PKG_CONFIG" && \
  21980. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21981. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21982. ac_status=$?
  21983. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21984. test $ac_status = 0; }; then
  21985. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  21986. test "x$?" != "x0" && pkg_failed=yes
  21987. else
  21988. pkg_failed=yes
  21989. fi
  21990. else
  21991. pkg_failed=untried
  21992. fi
  21993. if test $pkg_failed = yes; then
  21994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21995. printf "%s\n" "no" >&6; }
  21996. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21997. _pkg_short_errors_supported=yes
  21998. else
  21999. _pkg_short_errors_supported=no
  22000. fi
  22001. if test $_pkg_short_errors_supported = yes; then
  22002. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22003. else
  22004. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22005. fi
  22006. # Put the nasty error message in config.log where it belongs
  22007. echo "$LIBGBM_PKG_ERRORS" >&5
  22008. libgbm_avail=no
  22009. elif test $pkg_failed = untried; then
  22010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22011. printf "%s\n" "no" >&6; }
  22012. libgbm_avail=no
  22013. else
  22014. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22015. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22017. printf "%s\n" "yes" >&6; }
  22018. libgbm_avail=yes
  22019. fi
  22020. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22021. video_kmsdrm=yes
  22022. fi
  22023. if test x$video_kmsdrm = xyes; then
  22024. # Check whether --enable-kmsdrm-shared was given.
  22025. if test ${enable_kmsdrm_shared+y}
  22026. then :
  22027. enableval=$enable_kmsdrm_shared;
  22028. else $as_nop
  22029. enable_kmsdrm_shared=yes
  22030. fi
  22031. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22032. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22033. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22035. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22036. kmsdrm_shared=no
  22037. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22038. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22039. if test x$have_loadso != xyes && \
  22040. test x$enable_kmsdrm_shared = xyes; then
  22041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22042. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22043. fi
  22044. if test x$have_loadso = xyes && \
  22045. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22046. kmsdrm_shared=yes
  22047. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22048. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22049. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22050. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22051. else
  22052. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22053. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22054. fi
  22055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22056. printf "%s\n" "$kmsdrm_shared" >&6; }
  22057. if test x$kmsdrm_shared = xyes; then
  22058. echo "-- dynamic libdrm -> $drm_lib"
  22059. echo "-- dynamic libgbm -> $gbm_lib"
  22060. fi
  22061. have_video=yes
  22062. fi
  22063. fi
  22064. }
  22065. CheckDummyVideo()
  22066. {
  22067. # Check whether --enable-video-dummy was given.
  22068. if test ${enable_video_dummy+y}
  22069. then :
  22070. enableval=$enable_video_dummy;
  22071. else $as_nop
  22072. enable_video_dummy=yes
  22073. fi
  22074. if test x$enable_video_dummy = xyes; then
  22075. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22076. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22077. have_video=yes
  22078. SUMMARY_video="${SUMMARY_video} dummy"
  22079. fi
  22080. }
  22081. CheckOffscreenVideo()
  22082. {
  22083. # Check whether --enable-video-offscreen was given.
  22084. if test ${enable_video_offscreen+y}
  22085. then :
  22086. enableval=$enable_video_offscreen;
  22087. else $as_nop
  22088. enable_video_offscreen=no
  22089. fi
  22090. if test x$enable_video_offscreen = xyes; then
  22091. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22092. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22093. have_video=yes
  22094. SUMMARY_video="${SUMMARY_video} offscreen"
  22095. fi
  22096. }
  22097. CheckQNXVideo()
  22098. {
  22099. if test x$enable_video = xyes; then
  22100. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22101. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22102. have_video=yes
  22103. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22104. SUMMARY_video="${SUMMARY_video} qnx"
  22105. fi
  22106. }
  22107. CheckQNXAudio()
  22108. {
  22109. if test x$enable_audio = xyes; then
  22110. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22111. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22112. have_audio=yes
  22113. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22114. SUMMARY_audio="${SUMMARY_audio} qsa"
  22115. fi
  22116. }
  22117. # Check whether --enable-video-opengl was given.
  22118. if test ${enable_video_opengl+y}
  22119. then :
  22120. enableval=$enable_video_opengl;
  22121. else $as_nop
  22122. enable_video_opengl=yes
  22123. fi
  22124. CheckGLX()
  22125. {
  22126. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22128. printf %s "checking for GLX support... " >&6; }
  22129. video_opengl_glx=no
  22130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22131. /* end confdefs.h. */
  22132. #include <GL/glx.h>
  22133. int
  22134. main (void)
  22135. {
  22136. ;
  22137. return 0;
  22138. }
  22139. _ACEOF
  22140. if ac_fn_c_try_compile "$LINENO"
  22141. then :
  22142. video_opengl_glx=yes
  22143. fi
  22144. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22146. printf "%s\n" "$video_opengl_glx" >&6; }
  22147. if test x$video_opengl_glx = xyes; then
  22148. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22149. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22150. fi
  22151. fi
  22152. }
  22153. # Check whether --enable-video-opengles was given.
  22154. if test ${enable_video_opengles+y}
  22155. then :
  22156. enableval=$enable_video_opengles;
  22157. else $as_nop
  22158. enable_video_opengles=yes
  22159. fi
  22160. # Check whether --enable-video-opengles1 was given.
  22161. if test ${enable_video_opengles1+y}
  22162. then :
  22163. enableval=$enable_video_opengles1;
  22164. else $as_nop
  22165. enable_video_opengles1=yes
  22166. fi
  22167. # Check whether --enable-video-opengles2 was given.
  22168. if test ${enable_video_opengles2+y}
  22169. then :
  22170. enableval=$enable_video_opengles2;
  22171. else $as_nop
  22172. enable_video_opengles2=yes
  22173. fi
  22174. CheckEGL()
  22175. {
  22176. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22178. printf %s "checking for EGL support... " >&6; }
  22179. video_opengl_egl=no
  22180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22181. /* end confdefs.h. */
  22182. #define LINUX
  22183. #define EGL_API_FB
  22184. #define MESA_EGL_NO_X11_HEADERS
  22185. #define EGL_NO_X11
  22186. #include <EGL/egl.h>
  22187. #include <EGL/eglext.h>
  22188. int
  22189. main (void)
  22190. {
  22191. ;
  22192. return 0;
  22193. }
  22194. _ACEOF
  22195. if ac_fn_c_try_compile "$LINENO"
  22196. then :
  22197. video_opengl_egl=yes
  22198. fi
  22199. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22201. printf "%s\n" "$video_opengl_egl" >&6; }
  22202. if test x$video_opengl_egl = xyes; then
  22203. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22204. fi
  22205. fi
  22206. }
  22207. CheckOpenGL()
  22208. {
  22209. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22211. printf %s "checking for OpenGL headers... " >&6; }
  22212. video_opengl=no
  22213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22214. /* end confdefs.h. */
  22215. #include <GL/gl.h>
  22216. #include <GL/glext.h>
  22217. int
  22218. main (void)
  22219. {
  22220. ;
  22221. return 0;
  22222. }
  22223. _ACEOF
  22224. if ac_fn_c_try_compile "$LINENO"
  22225. then :
  22226. video_opengl=yes
  22227. fi
  22228. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22230. printf "%s\n" "$video_opengl" >&6; }
  22231. if test x$video_opengl = xyes; then
  22232. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22233. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22234. SUMMARY_video="${SUMMARY_video} opengl"
  22235. fi
  22236. fi
  22237. }
  22238. CheckOpenGLES()
  22239. {
  22240. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22241. if test x$enable_video_opengles1 = xyes; then
  22242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22243. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22244. video_opengles_v1=no
  22245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22246. /* end confdefs.h. */
  22247. #include <GLES/gl.h>
  22248. #include <GLES/glext.h>
  22249. int
  22250. main (void)
  22251. {
  22252. ;
  22253. return 0;
  22254. }
  22255. _ACEOF
  22256. if ac_fn_c_try_compile "$LINENO"
  22257. then :
  22258. video_opengles_v1=yes
  22259. fi
  22260. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22262. printf "%s\n" "$video_opengles_v1" >&6; }
  22263. if test x$video_opengles_v1 = xyes; then
  22264. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22265. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22266. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22267. fi
  22268. fi
  22269. if test x$enable_video_opengles2 = xyes; then
  22270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22271. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22272. video_opengles_v2=no
  22273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22274. /* end confdefs.h. */
  22275. #include <GLES2/gl2.h>
  22276. #include <GLES2/gl2ext.h>
  22277. int
  22278. main (void)
  22279. {
  22280. ;
  22281. return 0;
  22282. }
  22283. _ACEOF
  22284. if ac_fn_c_try_compile "$LINENO"
  22285. then :
  22286. video_opengles_v2=yes
  22287. fi
  22288. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22290. printf "%s\n" "$video_opengles_v2" >&6; }
  22291. if test x$video_opengles_v2 = xyes; then
  22292. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22293. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22294. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22295. fi
  22296. fi
  22297. fi
  22298. }
  22299. CheckWINDOWSGL()
  22300. {
  22301. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22302. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22303. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22304. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22305. SUMMARY_video="${SUMMARY_video} opengl"
  22306. fi
  22307. }
  22308. CheckWINDOWSGLES()
  22309. {
  22310. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22312. printf %s "checking for EGL support... " >&6; }
  22313. video_opengl_egl=no
  22314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22315. /* end confdefs.h. */
  22316. #include <EGL/egl.h>
  22317. int
  22318. main (void)
  22319. {
  22320. ;
  22321. return 0;
  22322. }
  22323. _ACEOF
  22324. if ac_fn_c_try_compile "$LINENO"
  22325. then :
  22326. video_opengl_egl=yes
  22327. fi
  22328. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22330. printf "%s\n" "$video_opengl_egl" >&6; }
  22331. if test x$video_opengl_egl = xyes; then
  22332. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22333. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22334. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22335. fi
  22336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22337. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22338. video_opengles_v2=no
  22339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22340. /* end confdefs.h. */
  22341. #include <GLES2/gl2.h>
  22342. #include <GLES2/gl2ext.h>
  22343. int
  22344. main (void)
  22345. {
  22346. ;
  22347. return 0;
  22348. }
  22349. _ACEOF
  22350. if ac_fn_c_try_compile "$LINENO"
  22351. then :
  22352. video_opengles_v2=yes
  22353. fi
  22354. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22356. printf "%s\n" "$video_opengles_v2" >&6; }
  22357. if test x$video_opengles_v2 = xyes; then
  22358. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22359. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22360. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22361. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22362. fi
  22363. fi
  22364. }
  22365. CheckHaikuGL()
  22366. {
  22367. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22368. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22369. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22370. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22371. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22372. SUMMARY_video="${SUMMARY_video} opengl"
  22373. fi
  22374. }
  22375. CheckMacGL()
  22376. {
  22377. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22378. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22379. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22380. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22381. SUMMARY_video="${SUMMARY_video} opengl"
  22382. fi
  22383. }
  22384. CheckMacGLES()
  22385. {
  22386. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22387. video_opengl_egl=yes
  22388. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22389. video_opengles_v2=yes
  22390. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22391. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22392. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22393. fi
  22394. }
  22395. CheckEmscriptenGLES()
  22396. {
  22397. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22399. printf %s "checking for EGL support... " >&6; }
  22400. video_opengl_egl=no
  22401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22402. /* end confdefs.h. */
  22403. #include <EGL/egl.h>
  22404. int
  22405. main (void)
  22406. {
  22407. ;
  22408. return 0;
  22409. }
  22410. _ACEOF
  22411. if ac_fn_c_try_compile "$LINENO"
  22412. then :
  22413. video_opengl_egl=yes
  22414. fi
  22415. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22417. printf "%s\n" "$video_opengl_egl" >&6; }
  22418. if test x$video_opengl_egl = xyes; then
  22419. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22420. fi
  22421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22422. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22423. video_opengles_v2=no
  22424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22425. /* end confdefs.h. */
  22426. #include <GLES2/gl2.h>
  22427. #include <GLES2/gl2ext.h>
  22428. int
  22429. main (void)
  22430. {
  22431. ;
  22432. return 0;
  22433. }
  22434. _ACEOF
  22435. if ac_fn_c_try_compile "$LINENO"
  22436. then :
  22437. video_opengles_v2=yes
  22438. fi
  22439. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22441. printf "%s\n" "$video_opengles_v2" >&6; }
  22442. if test x$video_opengles_v2 = xyes; then
  22443. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22444. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22445. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22446. fi
  22447. fi
  22448. }
  22449. # Check whether --enable-video-vulkan was given.
  22450. if test ${enable_video_vulkan+y}
  22451. then :
  22452. enableval=$enable_video_vulkan;
  22453. else $as_nop
  22454. enable_video_vulkan=yes
  22455. fi
  22456. CheckVulkan()
  22457. {
  22458. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22459. case "$host" in
  22460. *-*-android*)
  22461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22462. /* end confdefs.h. */
  22463. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22464. #error Vulkan doesn't work on this configuration
  22465. #endif
  22466. int
  22467. main (void)
  22468. {
  22469. ;
  22470. return 0;
  22471. }
  22472. _ACEOF
  22473. if ac_fn_c_try_compile "$LINENO"
  22474. then :
  22475. else $as_nop
  22476. enable_video_vulkan=no
  22477. fi
  22478. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22479. ;;
  22480. *-*-darwin*)
  22481. save_CFLAGS="$CFLAGS"
  22482. CFLAGS="$CFLAGS -x objective-c"
  22483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22484. /* end confdefs.h. */
  22485. #include <Cocoa/Cocoa.h>
  22486. #include <Metal/Metal.h>
  22487. #include <QuartzCore/CAMetalLayer.h>
  22488. #if TARGET_CPU_X86
  22489. #error Vulkan doesn't work on this configuration
  22490. #endif
  22491. int
  22492. main (void)
  22493. {
  22494. ;
  22495. return 0;
  22496. }
  22497. _ACEOF
  22498. if ac_fn_c_try_compile "$LINENO"
  22499. then :
  22500. else $as_nop
  22501. enable_video_vulkan=no
  22502. fi
  22503. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22504. CFLAGS="$save_CFLAGS"
  22505. ;;
  22506. *)
  22507. ;;
  22508. esac
  22509. if test x$enable_video_vulkan = xno; then
  22510. # For reasons I am totally unable to see, I get an undefined macro error if
  22511. # I put this in the AC_TRY_COMPILE.
  22512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22513. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22514. fi
  22515. fi
  22516. if test x$have_loadso != xyes; then
  22517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22518. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22519. enable_video_vulkan=no
  22520. fi
  22521. if test x$enable_video_vulkan = xyes; then
  22522. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22523. SUMMARY_video="${SUMMARY_video} vulkan"
  22524. fi
  22525. }
  22526. CheckInputEvents()
  22527. {
  22528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22529. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22530. use_input_events=no
  22531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22532. /* end confdefs.h. */
  22533. #include <linux/input.h>
  22534. int
  22535. main (void)
  22536. {
  22537. #ifndef EVIOCGNAME
  22538. #error EVIOCGNAME() ioctl not available
  22539. #endif
  22540. ;
  22541. return 0;
  22542. }
  22543. _ACEOF
  22544. if ac_fn_c_try_compile "$LINENO"
  22545. then :
  22546. use_input_events=yes
  22547. fi
  22548. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22550. printf "%s\n" "$use_input_events" >&6; }
  22551. if test x$use_input_events = xyes; then
  22552. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22553. SUMMARY_input="${SUMMARY_input} linuxev"
  22554. fi
  22555. }
  22556. CheckInputKD()
  22557. {
  22558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22559. printf %s "checking for Linux kd.h... " >&6; }
  22560. use_input_kd=no
  22561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22562. /* end confdefs.h. */
  22563. #include <linux/kd.h>
  22564. #include <linux/keyboard.h>
  22565. #include <sys/ioctl.h>
  22566. int
  22567. main (void)
  22568. {
  22569. struct kbentry kbe;
  22570. kbe.kb_table = KG_CTRL;
  22571. ioctl(0, KDGKBENT, &kbe);
  22572. ;
  22573. return 0;
  22574. }
  22575. _ACEOF
  22576. if ac_fn_c_try_compile "$LINENO"
  22577. then :
  22578. use_input_kd=yes
  22579. fi
  22580. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22582. printf "%s\n" "$use_input_kd" >&6; }
  22583. if test x$use_input_kd = xyes; then
  22584. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22585. SUMMARY_input="${SUMMARY_input} linuxkd"
  22586. fi
  22587. }
  22588. CheckInputKBIO()
  22589. {
  22590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22591. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22592. use_input_kbio=no
  22593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22594. /* end confdefs.h. */
  22595. #include <sys/kbio.h>
  22596. #include <sys/ioctl.h>
  22597. int
  22598. main (void)
  22599. {
  22600. accentmap_t accTable;
  22601. ioctl(0, KDENABIO, 1);
  22602. ;
  22603. return 0;
  22604. }
  22605. _ACEOF
  22606. if ac_fn_c_try_compile "$LINENO"
  22607. then :
  22608. use_input_kbio=yes
  22609. fi
  22610. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22612. printf "%s\n" "$use_input_kbio" >&6; }
  22613. if test x$use_input_kbio = xyes; then
  22614. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22615. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22616. fi
  22617. }
  22618. CheckInputWSCONS()
  22619. {
  22620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22621. printf %s "checking for OpenBSD wscons... " >&6; }
  22622. use_input_wscons=no
  22623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22624. /* end confdefs.h. */
  22625. #include <sys/time.h>
  22626. #include <dev/wscons/wsconsio.h>
  22627. #include <dev/wscons/wsksymdef.h>
  22628. #include <dev/wscons/wsksymvar.h>
  22629. #include <sys/ioctl.h>
  22630. int
  22631. main (void)
  22632. {
  22633. struct wskbd_map_data data;
  22634. ioctl(0, WSKBDIO_GETMAP, &data);
  22635. ;
  22636. return 0;
  22637. }
  22638. _ACEOF
  22639. if ac_fn_c_try_compile "$LINENO"
  22640. then :
  22641. use_input_wscons=yes
  22642. fi
  22643. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  22645. printf "%s\n" "$use_input_wscons" >&6; }
  22646. if test x$use_input_wscons = xyes; then
  22647. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  22648. SUMMARY_input="${SUMMARY_input} wscons"
  22649. fi
  22650. }
  22651. CheckLibUDev()
  22652. {
  22653. # Check whether --enable-libudev was given.
  22654. if test ${enable_libudev+y}
  22655. then :
  22656. enableval=$enable_libudev;
  22657. else $as_nop
  22658. enable_libudev=yes
  22659. fi
  22660. if test x$enable_libudev = xyes; then
  22661. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  22662. if test "x$ac_cv_header_libudev_h" = xyes
  22663. then :
  22664. have_libudev_h_hdr=yes
  22665. else $as_nop
  22666. have_libudev_h_hdr=no
  22667. fi
  22668. if test x$have_libudev_h_hdr = xyes; then
  22669. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  22670. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22671. if test x$udev_lib != x; then
  22672. echo "-- dynamic udev -> $udev_lib"
  22673. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  22674. fi
  22675. fi
  22676. fi
  22677. }
  22678. CheckDBus()
  22679. {
  22680. # Check whether --enable-dbus was given.
  22681. if test ${enable_dbus+y}
  22682. then :
  22683. enableval=$enable_dbus;
  22684. else $as_nop
  22685. enable_dbus=yes
  22686. fi
  22687. if test x$enable_dbus = xyes; then
  22688. pkg_failed=no
  22689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  22690. printf %s "checking for dbus-1... " >&6; }
  22691. if test -n "$DBUS_CFLAGS"; then
  22692. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  22693. elif test -n "$PKG_CONFIG"; then
  22694. if test -n "$PKG_CONFIG" && \
  22695. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22696. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22697. ac_status=$?
  22698. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22699. test $ac_status = 0; }; then
  22700. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  22701. test "x$?" != "x0" && pkg_failed=yes
  22702. else
  22703. pkg_failed=yes
  22704. fi
  22705. else
  22706. pkg_failed=untried
  22707. fi
  22708. if test -n "$DBUS_LIBS"; then
  22709. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  22710. elif test -n "$PKG_CONFIG"; then
  22711. if test -n "$PKG_CONFIG" && \
  22712. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22713. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22714. ac_status=$?
  22715. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22716. test $ac_status = 0; }; then
  22717. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  22718. test "x$?" != "x0" && pkg_failed=yes
  22719. else
  22720. pkg_failed=yes
  22721. fi
  22722. else
  22723. pkg_failed=untried
  22724. fi
  22725. if test $pkg_failed = yes; then
  22726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22727. printf "%s\n" "no" >&6; }
  22728. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22729. _pkg_short_errors_supported=yes
  22730. else
  22731. _pkg_short_errors_supported=no
  22732. fi
  22733. if test $_pkg_short_errors_supported = yes; then
  22734. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  22735. else
  22736. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  22737. fi
  22738. # Put the nasty error message in config.log where it belongs
  22739. echo "$DBUS_PKG_ERRORS" >&5
  22740. have_dbus=no
  22741. elif test $pkg_failed = untried; then
  22742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22743. printf "%s\n" "no" >&6; }
  22744. have_dbus=no
  22745. else
  22746. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  22747. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  22748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22749. printf "%s\n" "yes" >&6; }
  22750. have_dbus=yes
  22751. fi
  22752. save_CPPFLAGS="$CPPFLAGS"
  22753. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  22754. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  22755. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  22756. then :
  22757. have_dbus_dbus_h_hdr=yes
  22758. else $as_nop
  22759. have_dbus_dbus_h_hdr=no
  22760. fi
  22761. CPPFLAGS="$save_CPPFLAGS"
  22762. if test x$have_dbus_dbus_h_hdr = xyes; then
  22763. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  22764. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  22765. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  22766. fi
  22767. fi
  22768. }
  22769. CheckIME()
  22770. {
  22771. # Check whether --enable-ime was given.
  22772. if test ${enable_ime+y}
  22773. then :
  22774. enableval=$enable_ime;
  22775. else $as_nop
  22776. enable_ime=yes
  22777. fi
  22778. if test x$enable_ime = xyes; then
  22779. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  22780. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  22781. fi
  22782. }
  22783. CheckInotify()
  22784. {
  22785. save_LIBS="$LIBS"
  22786. case "$host" in
  22787. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  22788. ;;
  22789. esac
  22790. for ac_header in sys/inotify.h
  22791. do :
  22792. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  22793. if test "x$ac_cv_header_sys_inotify_h" = xyes
  22794. then :
  22795. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  22796. have_inotify_inotify_h_hdr=yes
  22797. fi
  22798. done
  22799. for ac_func in inotify_init
  22800. do :
  22801. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  22802. if test "x$ac_cv_func_inotify_init" = xyes
  22803. then :
  22804. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  22805. have_inotify=yes
  22806. fi
  22807. done
  22808. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  22809. if test "x$ac_cv_func_inotify_init1" = xyes
  22810. then :
  22811. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  22812. fi
  22813. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  22814. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  22815. case "$host" in
  22816. *-*-freebsd*|*-*-dragonfly*)
  22817. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  22818. ;;
  22819. esac
  22820. fi
  22821. LIBS="$save_LIBS"
  22822. }
  22823. CheckIBus()
  22824. {
  22825. # Check whether --enable-ibus was given.
  22826. if test ${enable_ibus+y}
  22827. then :
  22828. enableval=$enable_ibus;
  22829. else $as_nop
  22830. enable_ibus=yes
  22831. fi
  22832. if test x$enable_ibus = xyes; then
  22833. pkg_failed=no
  22834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22835. printf %s "checking for ibus-1.0... " >&6; }
  22836. if test -n "$IBUS_CFLAGS"; then
  22837. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  22838. elif test -n "$PKG_CONFIG"; then
  22839. if test -n "$PKG_CONFIG" && \
  22840. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22841. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22842. ac_status=$?
  22843. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22844. test $ac_status = 0; }; then
  22845. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  22846. test "x$?" != "x0" && pkg_failed=yes
  22847. else
  22848. pkg_failed=yes
  22849. fi
  22850. else
  22851. pkg_failed=untried
  22852. fi
  22853. if test -n "$IBUS_LIBS"; then
  22854. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  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 \"ibus-1.0\""; } >&5
  22858. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 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_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 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 $pkg_failed = yes; then
  22871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22872. printf "%s\n" "no" >&6; }
  22873. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22874. _pkg_short_errors_supported=yes
  22875. else
  22876. _pkg_short_errors_supported=no
  22877. fi
  22878. if test $_pkg_short_errors_supported = yes; then
  22879. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22880. else
  22881. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22882. fi
  22883. # Put the nasty error message in config.log where it belongs
  22884. echo "$IBUS_PKG_ERRORS" >&5
  22885. have_ibus=no
  22886. elif test $pkg_failed = untried; then
  22887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22888. printf "%s\n" "no" >&6; }
  22889. have_ibus=no
  22890. else
  22891. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  22892. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  22893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22894. printf "%s\n" "yes" >&6; }
  22895. have_ibus=yes
  22896. fi
  22897. save_CPPFLAGS="$CPPFLAGS"
  22898. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  22899. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  22900. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  22901. then :
  22902. have_ibus_ibus_h_hdr=yes
  22903. else $as_nop
  22904. have_ibus_ibus_h_hdr=no
  22905. fi
  22906. CPPFLAGS="$save_CPPFLAGS"
  22907. if test x$have_ibus_ibus_h_hdr = xyes; then
  22908. if test x$enable_ime != xyes; then
  22909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  22910. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  22911. have_ibus_ibus_h_hdr=no
  22912. elif test x$enable_dbus != xyes; then
  22913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  22914. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  22915. have_ibus_ibus_h_hdr=no
  22916. elif test x$have_inotify_inotify_h_hdr != xyes; then
  22917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  22918. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  22919. have_ibus_ibus_h_hdr=no
  22920. else
  22921. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  22922. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  22923. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  22924. fi
  22925. fi
  22926. fi
  22927. }
  22928. CheckFcitx()
  22929. {
  22930. # Check whether --enable-fcitx was given.
  22931. if test ${enable_fcitx+y}
  22932. then :
  22933. enableval=$enable_fcitx;
  22934. else $as_nop
  22935. enable_fcitx=yes
  22936. fi
  22937. if test x$enable_fcitx = xyes; then
  22938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  22939. printf %s "checking for fcitx support... " >&6; }
  22940. have_fcitx=no
  22941. if test x$enable_ime != xyes; then
  22942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  22943. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  22944. elif test x$have_dbus_dbus_h_hdr != xyes; then
  22945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  22946. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  22947. else
  22948. have_fcitx=yes
  22949. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  22950. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  22951. fi
  22952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  22953. printf "%s\n" "$have_fcitx" >&6; }
  22954. fi
  22955. }
  22956. CheckJoystickMFI()
  22957. {
  22958. # Check whether --enable-joystick-mfi was given.
  22959. if test ${enable_joystick_mfi+y}
  22960. then :
  22961. enableval=$enable_joystick_mfi;
  22962. else $as_nop
  22963. enable_joystick_mfi=yes
  22964. fi
  22965. if test x$enable_joystick_mfi = xyes; then
  22966. save_CFLAGS="$CFLAGS"
  22967. save_LDFLAGS="$LDFLAGS"
  22968. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  22969. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  22971. printf %s "checking for GameController framework... " >&6; }
  22972. enable_joystick_mfi=no
  22973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22974. /* end confdefs.h. */
  22975. #include <AvailabilityMacros.h>
  22976. #include <TargetConditionals.h>
  22977. #import <GameController/GameController.h>
  22978. int
  22979. main (void)
  22980. {
  22981. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  22982. #error GameController framework doesn't work on this configuration
  22983. #endif
  22984. #if TARGET_CPU_X86
  22985. #error GameController framework doesn't work on this configuration
  22986. #endif
  22987. ;
  22988. return 0;
  22989. }
  22990. _ACEOF
  22991. if ac_fn_c_try_link "$LINENO"
  22992. then :
  22993. enable_joystick_mfi=yes
  22994. fi
  22995. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22996. conftest$ac_exeext conftest.$ac_ext
  22997. CFLAGS="$save_CFLAGS"
  22998. LDFLAGS="$save_LDFLAGS"
  22999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23000. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23001. if test x$enable_joystick_mfi = xyes; then
  23002. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23003. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23004. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23005. fi
  23006. fi
  23007. }
  23008. CheckPTHREAD()
  23009. {
  23010. case "$host" in
  23011. *-*-emscripten*)
  23012. enable_pthreads_default=no
  23013. ;;
  23014. *)
  23015. enable_pthreads_default=yes
  23016. ;;
  23017. esac
  23018. # Check whether --enable-pthreads was given.
  23019. if test ${enable_pthreads+y}
  23020. then :
  23021. enableval=$enable_pthreads;
  23022. else $as_nop
  23023. enable_pthreads=maybe
  23024. fi
  23025. # Check whether --enable-pthread-sem was given.
  23026. if test ${enable_pthread_sem+y}
  23027. then :
  23028. enableval=$enable_pthread_sem;
  23029. else $as_nop
  23030. enable_pthread_sem=maybe
  23031. fi
  23032. if test x$enable_pthreads = xmaybe; then
  23033. enable_pthreads=$enable_pthreads_default
  23034. fi
  23035. if test x$enable_pthread_sem = xmaybe; then
  23036. enable_pthread_sem=$enable_pthreads
  23037. fi
  23038. case "$host" in
  23039. *-*-android*)
  23040. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23041. pthread_lib=""
  23042. ;;
  23043. *-*-linux*|*-*-uclinux*)
  23044. pthread_cflags="-D_REENTRANT"
  23045. pthread_lib="-lpthread"
  23046. ;;
  23047. *-*-bsdi*)
  23048. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23049. pthread_lib=""
  23050. ;;
  23051. *-*-darwin*)
  23052. pthread_cflags="-D_THREAD_SAFE"
  23053. # causes Carbon.p complaints?
  23054. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23055. ;;
  23056. *-*-freebsd*|*-*-dragonfly*)
  23057. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23058. pthread_lib="-pthread"
  23059. ;;
  23060. *-*-netbsd*)
  23061. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23062. pthread_lib="-lpthread"
  23063. ;;
  23064. *-*-openbsd*)
  23065. pthread_cflags="-D_REENTRANT"
  23066. pthread_lib="-pthread"
  23067. ;;
  23068. *-*-solaris2.9)
  23069. # From Solaris 9+, posix4's preferred name is rt.
  23070. pthread_cflags="-D_REENTRANT"
  23071. pthread_lib="-lpthread -lrt"
  23072. ;;
  23073. *-*-solaris2.10)
  23074. # Solaris 10+ merged pthread into libc.
  23075. pthread_cflags="-D_REENTRANT"
  23076. pthread_lib="-lrt"
  23077. ;;
  23078. *-*-solaris*)
  23079. # Solaris 11+ merged rt into libc.
  23080. pthread_cflags="-D_REENTRANT"
  23081. pthread_lib=""
  23082. ;;
  23083. *-*-sysv5*)
  23084. pthread_cflags="-D_REENTRANT -Kthread"
  23085. pthread_lib=""
  23086. ;;
  23087. *-*-aix*)
  23088. pthread_cflags="-D_REENTRANT -mthreads"
  23089. pthread_lib="-lpthread"
  23090. ;;
  23091. *-*-hpux11*)
  23092. pthread_cflags="-D_REENTRANT"
  23093. pthread_lib="-L/usr/lib -lpthread"
  23094. ;;
  23095. *-*-haiku*)
  23096. pthread_cflags="-D_REENTRANT"
  23097. pthread_lib=""
  23098. ;;
  23099. *-*-nto*)
  23100. pthread_cflags="-D_REENTRANT"
  23101. pthread_lib=""
  23102. ;;
  23103. *-*-emscripten*)
  23104. pthread_cflags="-D_REENTRANT -pthread"
  23105. pthread_lib="-pthread"
  23106. ;;
  23107. *)
  23108. pthread_cflags="-D_REENTRANT"
  23109. pthread_lib="-lpthread"
  23110. ;;
  23111. esac
  23112. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23113. # Save the original compiler flags and libraries
  23114. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23115. # Add the pthread compiler flags and libraries
  23116. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23117. # Check to see if we have pthread support on this system
  23118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23119. printf %s "checking for pthreads... " >&6; }
  23120. use_pthreads=no
  23121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23122. /* end confdefs.h. */
  23123. #include <pthread.h>
  23124. int
  23125. main (void)
  23126. {
  23127. pthread_attr_t type;
  23128. pthread_attr_init(&type);
  23129. ;
  23130. return 0;
  23131. }
  23132. _ACEOF
  23133. if ac_fn_c_try_link "$LINENO"
  23134. then :
  23135. use_pthreads=yes
  23136. fi
  23137. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23138. conftest$ac_exeext conftest.$ac_ext
  23139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23140. printf "%s\n" "$use_pthreads" >&6; }
  23141. # Restore the compiler flags and libraries
  23142. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23143. # Do futher testing if we have pthread support...
  23144. if test x$use_pthreads = xyes; then
  23145. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23146. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23147. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23148. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23149. # Save the original compiler flags and libraries
  23150. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23151. # Add the pthread compiler flags and libraries
  23152. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23153. # Check to see if recursive mutexes are available
  23154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23155. printf %s "checking for recursive mutexes... " >&6; }
  23156. has_recursive_mutexes=no
  23157. if test x$has_recursive_mutexes = xno; then
  23158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23159. /* end confdefs.h. */
  23160. #define _GNU_SOURCE 1
  23161. #include <pthread.h>
  23162. int
  23163. main (void)
  23164. {
  23165. pthread_mutexattr_t attr;
  23166. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23167. ;
  23168. return 0;
  23169. }
  23170. _ACEOF
  23171. if ac_fn_c_try_link "$LINENO"
  23172. then :
  23173. has_recursive_mutexes=yes
  23174. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23175. fi
  23176. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23177. conftest$ac_exeext conftest.$ac_ext
  23178. fi
  23179. if test x$has_recursive_mutexes = xno; then
  23180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23181. /* end confdefs.h. */
  23182. #define _GNU_SOURCE 1
  23183. #include <pthread.h>
  23184. int
  23185. main (void)
  23186. {
  23187. pthread_mutexattr_t attr;
  23188. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23189. ;
  23190. return 0;
  23191. }
  23192. _ACEOF
  23193. if ac_fn_c_try_link "$LINENO"
  23194. then :
  23195. has_recursive_mutexes=yes
  23196. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23197. fi
  23198. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23199. conftest$ac_exeext conftest.$ac_ext
  23200. fi
  23201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23202. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23203. # Check to see if pthread semaphore support is missing
  23204. if test x$enable_pthread_sem = xyes; then
  23205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23206. printf %s "checking for pthread semaphores... " >&6; }
  23207. have_pthread_sem=no
  23208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23209. /* end confdefs.h. */
  23210. #include <pthread.h>
  23211. #include <semaphore.h>
  23212. int
  23213. main (void)
  23214. {
  23215. ;
  23216. return 0;
  23217. }
  23218. _ACEOF
  23219. if ac_fn_c_try_compile "$LINENO"
  23220. then :
  23221. have_pthread_sem=yes
  23222. fi
  23223. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23225. printf "%s\n" "$have_pthread_sem" >&6; }
  23226. fi
  23227. if test x$have_pthread_sem = xyes; then
  23228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23229. printf %s "checking for sem_timedwait... " >&6; }
  23230. have_sem_timedwait=no
  23231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23232. /* end confdefs.h. */
  23233. #include <pthread.h>
  23234. #include <semaphore.h>
  23235. int
  23236. main (void)
  23237. {
  23238. sem_timedwait(NULL, NULL);
  23239. ;
  23240. return 0;
  23241. }
  23242. _ACEOF
  23243. if ac_fn_c_try_link "$LINENO"
  23244. then :
  23245. have_sem_timedwait=yes
  23246. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23247. fi
  23248. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23249. conftest$ac_exeext conftest.$ac_ext
  23250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23251. printf "%s\n" "$have_sem_timedwait" >&6; }
  23252. fi
  23253. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23254. "
  23255. if test "x$ac_cv_header_pthread_np_h" = xyes
  23256. then :
  23257. have_pthread_np_h=yes
  23258. else $as_nop
  23259. have_pthread_np_h=no
  23260. fi
  23261. if test x$have_pthread_np_h = xyes; then
  23262. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23263. fi
  23264. # Check to see if pthread naming is available
  23265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23266. printf %s "checking for pthread_setname_np... " >&6; }
  23267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23268. /* end confdefs.h. */
  23269. /* Override any GCC internal prototype to avoid an error.
  23270. Use char because int might match the return type of a GCC
  23271. builtin and then its argument prototype would still apply. */
  23272. char pthread_setname_np ();
  23273. int
  23274. main (void)
  23275. {
  23276. return pthread_setname_np ();
  23277. ;
  23278. return 0;
  23279. }
  23280. _ACEOF
  23281. if ac_fn_c_try_link "$LINENO"
  23282. then :
  23283. has_pthread_setname_np=yes
  23284. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23285. else $as_nop
  23286. has_pthread_setname_np=no
  23287. fi
  23288. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23289. conftest$ac_exeext conftest.$ac_ext
  23290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23291. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23293. printf %s "checking for pthread_set_name_np... " >&6; }
  23294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23295. /* end confdefs.h. */
  23296. /* Override any GCC internal prototype to avoid an error.
  23297. Use char because int might match the return type of a GCC
  23298. builtin and then its argument prototype would still apply. */
  23299. char pthread_set_name_np ();
  23300. int
  23301. main (void)
  23302. {
  23303. return pthread_set_name_np ();
  23304. ;
  23305. return 0;
  23306. }
  23307. _ACEOF
  23308. if ac_fn_c_try_link "$LINENO"
  23309. then :
  23310. has_pthread_set_name_np=yes
  23311. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23312. else $as_nop
  23313. has_pthread_set_name_np=no
  23314. fi
  23315. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23316. conftest$ac_exeext conftest.$ac_ext
  23317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23318. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23319. # Restore the compiler flags and libraries
  23320. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23321. # Basic thread creation functions
  23322. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23323. # Semaphores
  23324. # We can fake these with mutexes and condition variables if necessary
  23325. if test x$have_pthread_sem = xyes; then
  23326. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23327. else
  23328. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23329. fi
  23330. # Mutexes
  23331. # We can fake these with semaphores if necessary
  23332. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23333. # Condition variables
  23334. # We can fake these with semaphores and mutexes if necessary
  23335. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23336. # Thread local storage
  23337. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23338. have_threads=yes
  23339. fi
  23340. fi
  23341. }
  23342. CheckWINDOWS()
  23343. {
  23344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23345. printf %s "checking Windows compiler... " >&6; }
  23346. have_win32_gcc=no
  23347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23348. /* end confdefs.h. */
  23349. #include <windows.h>
  23350. int
  23351. main (void)
  23352. {
  23353. ;
  23354. return 0;
  23355. }
  23356. _ACEOF
  23357. if ac_fn_c_try_compile "$LINENO"
  23358. then :
  23359. have_win32_gcc=yes
  23360. fi
  23361. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23363. printf "%s\n" "$have_win32_gcc" >&6; }
  23364. if test x$have_win32_gcc != xyes; then
  23365. as_fn_error $? "
  23366. *** Your compiler ($CC) does not produce Windows executables!
  23367. " "$LINENO" 5
  23368. fi
  23369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23370. printf %s "checking Windows CE... " >&6; }
  23371. have_wince=no
  23372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23373. /* end confdefs.h. */
  23374. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23375. #error This is not Windows CE
  23376. #endif
  23377. int
  23378. main (void)
  23379. {
  23380. ;
  23381. return 0;
  23382. }
  23383. _ACEOF
  23384. if ac_fn_c_try_compile "$LINENO"
  23385. then :
  23386. have_wince=yes
  23387. as_fn_error $? "
  23388. *** Sorry, Windows CE is no longer supported.
  23389. " "$LINENO" 5
  23390. fi
  23391. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23393. printf "%s\n" "$have_wince" >&6; }
  23394. # This fixes Windows stack alignment with newer GCC
  23395. CheckStackBoundary
  23396. # headers needed elsewhere
  23397. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23398. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23399. then :
  23400. have_tpcshrd_h=yes
  23401. fi
  23402. if test x$have_tpcshrd_h = xyes; then
  23403. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23404. fi
  23405. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23406. if test "x$ac_cv_header_roapi_h" = xyes
  23407. then :
  23408. have_roapi_h=yes
  23409. fi
  23410. if test x$have_roapi_h = xyes; then
  23411. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23412. fi
  23413. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23414. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23415. then :
  23416. have_shellscalingapi_h=yes
  23417. fi
  23418. if test x$shellscalingapi_h = xyes; then
  23419. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23420. fi
  23421. }
  23422. CheckOS2()
  23423. {
  23424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23425. printf %s "checking OS/2 compiler... " >&6; }
  23426. have_os2_gcc=no
  23427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23428. /* end confdefs.h. */
  23429. #include <os2.h>
  23430. int
  23431. main (void)
  23432. {
  23433. ;
  23434. return 0;
  23435. }
  23436. _ACEOF
  23437. if ac_fn_c_try_compile "$LINENO"
  23438. then :
  23439. have_os2_gcc=yes
  23440. fi
  23441. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23443. printf "%s\n" "$have_os2_gcc" >&6; }
  23444. if test x$have_os2_gcc != xyes; then
  23445. as_fn_error $? "
  23446. *** Your compiler ($CC) does not produce OS/2 executables!
  23447. " "$LINENO" 5
  23448. fi
  23449. }
  23450. CheckDIRECTX()
  23451. {
  23452. # Check whether --enable-directx was given.
  23453. if test ${enable_directx+y}
  23454. then :
  23455. enableval=$enable_directx;
  23456. else $as_nop
  23457. enable_directx=yes
  23458. fi
  23459. if test x$enable_directx = xyes; then
  23460. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23461. if test "x$ac_cv_header_d3d9_h" = xyes
  23462. then :
  23463. have_d3d=yes
  23464. fi
  23465. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23466. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23467. then :
  23468. have_d3d11=yes
  23469. fi
  23470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  23471. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  23472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23473. /* end confdefs.h. */
  23474. #include <winsdkver.h>
  23475. #include <sdkddkver.h>
  23476. #include <d3d12.h>
  23477. ID3D12Device1 *device;
  23478. #if WDK_NTDDI_VERSION <= 0x0A000008
  23479. asdf
  23480. #endif
  23481. int
  23482. main (void)
  23483. {
  23484. ;
  23485. return 0;
  23486. }
  23487. _ACEOF
  23488. if ac_fn_c_try_compile "$LINENO"
  23489. then :
  23490. have_d3d12=yes
  23491. else $as_nop
  23492. have_d3d12=no
  23493. fi
  23494. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23496. printf "%s\n" "$have_d3d12" >&6; }
  23497. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23498. if test "x$ac_cv_header_ddraw_h" = xyes
  23499. then :
  23500. have_ddraw=yes
  23501. fi
  23502. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23503. if test "x$ac_cv_header_dsound_h" = xyes
  23504. then :
  23505. have_dsound=yes
  23506. fi
  23507. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23508. if test "x$ac_cv_header_dinput_h" = xyes
  23509. then :
  23510. have_dinput=yes
  23511. fi
  23512. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23513. if test "x$ac_cv_header_dxgi_h" = xyes
  23514. then :
  23515. have_dxgi=yes
  23516. fi
  23517. if test x$have_ddraw = xyes; then
  23518. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23519. fi
  23520. if test x$have_dinput = xyes; then
  23521. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23522. fi
  23523. if test x$have_dsound = xyes; then
  23524. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23525. fi
  23526. if test x$have_dxgi = xyes; then
  23527. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23528. fi
  23529. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23530. # FIXME: ...so force it off for now.
  23531. case "$host" in
  23532. *-*-cygwin*)
  23533. have_dinput=false
  23534. ;;
  23535. esac
  23536. fi
  23537. # Check whether --enable-xinput was given.
  23538. if test ${enable_xinput+y}
  23539. then :
  23540. enableval=$enable_xinput;
  23541. else $as_nop
  23542. enable_xinput=yes
  23543. fi
  23544. if test x$enable_xinput = xyes; then
  23545. have_xinput_gamepadex=no
  23546. have_xinput_stateex=no
  23547. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23548. if test "x$ac_cv_header_xinput_h" = xyes
  23549. then :
  23550. have_xinput=yes
  23551. fi
  23552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  23553. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  23554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23555. /* end confdefs.h. */
  23556. #include <windows.h>
  23557. #include <xinput.h>
  23558. XINPUT_GAMEPAD_EX x1;
  23559. int
  23560. main (void)
  23561. {
  23562. ;
  23563. return 0;
  23564. }
  23565. _ACEOF
  23566. if ac_fn_c_try_compile "$LINENO"
  23567. then :
  23568. have_xinput_gamepadex=yes
  23569. fi
  23570. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  23572. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  23573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  23574. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  23575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23576. /* end confdefs.h. */
  23577. #include <windows.h>
  23578. #include <xinput.h>
  23579. XINPUT_STATE_EX s1;
  23580. int
  23581. main (void)
  23582. {
  23583. ;
  23584. return 0;
  23585. }
  23586. _ACEOF
  23587. if ac_fn_c_try_compile "$LINENO"
  23588. then :
  23589. have_xinput_stateex=yes
  23590. fi
  23591. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  23593. printf "%s\n" "$have_xinput_stateex" >&6; }
  23594. if test x$have_xinput = xyes; then
  23595. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23596. fi
  23597. if test x$have_xinput_gamepadex = xyes; then
  23598. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  23599. fi
  23600. if test x$have_xinput_stateex = xyes; then
  23601. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  23602. fi
  23603. fi
  23604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23605. printf %s "checking for windows.gaming.input.h... " >&6; }
  23606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23607. /* end confdefs.h. */
  23608. #define COBJMACROS
  23609. #include <windows.gaming.input.h>
  23610. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23611. int
  23612. main (void)
  23613. {
  23614. ;
  23615. return 0;
  23616. }
  23617. _ACEOF
  23618. if ac_fn_c_try_compile "$LINENO"
  23619. then :
  23620. have_wgi=yes
  23621. else $as_nop
  23622. have_wgi=no
  23623. fi
  23624. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23626. printf "%s\n" "$have_wgi" >&6; }
  23627. if test x$have_wgi = xyes; then
  23628. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23629. fi
  23630. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23631. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23632. then :
  23633. have_wasapi=yes
  23634. fi
  23635. if test x$have_wasapi = xyes; then
  23636. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23637. fi
  23638. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23639. if test "x$ac_cv_header_audioclient_h" = xyes
  23640. then :
  23641. else $as_nop
  23642. have_wasapi=no
  23643. fi
  23644. if test x$have_wasapi = xyes; then
  23645. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23646. fi
  23647. # Check whether --enable-wasapi was given.
  23648. if test ${enable_wasapi+y}
  23649. then :
  23650. enableval=$enable_wasapi;
  23651. else $as_nop
  23652. enable_wasapi=yes
  23653. fi
  23654. }
  23655. CheckDLOPEN()
  23656. {
  23657. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23658. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23659. if test "x$ac_cv_header_dlfcn_h" = xyes
  23660. then :
  23661. have_dlfcn_h=yes
  23662. else $as_nop
  23663. have_dlfcn_h=no
  23664. fi
  23665. have_dlopen=no
  23666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23667. printf %s "checking for dlopen in -lc... " >&6; }
  23668. if test ${ac_cv_lib_c_dlopen+y}
  23669. then :
  23670. printf %s "(cached) " >&6
  23671. else $as_nop
  23672. ac_check_lib_save_LIBS=$LIBS
  23673. LIBS="-lc $LIBS"
  23674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23675. /* end confdefs.h. */
  23676. /* Override any GCC internal prototype to avoid an error.
  23677. Use char because int might match the return type of a GCC
  23678. builtin and then its argument prototype would still apply. */
  23679. char dlopen ();
  23680. int
  23681. main (void)
  23682. {
  23683. return dlopen ();
  23684. ;
  23685. return 0;
  23686. }
  23687. _ACEOF
  23688. if ac_fn_c_try_link "$LINENO"
  23689. then :
  23690. ac_cv_lib_c_dlopen=yes
  23691. else $as_nop
  23692. ac_cv_lib_c_dlopen=no
  23693. fi
  23694. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23695. conftest$ac_exeext conftest.$ac_ext
  23696. LIBS=$ac_check_lib_save_LIBS
  23697. fi
  23698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  23699. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  23700. if test "x$ac_cv_lib_c_dlopen" = xyes
  23701. then :
  23702. have_dlopen=yes
  23703. else $as_nop
  23704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  23705. printf %s "checking for dlopen in -ldl... " >&6; }
  23706. if test ${ac_cv_lib_dl_dlopen+y}
  23707. then :
  23708. printf %s "(cached) " >&6
  23709. else $as_nop
  23710. ac_check_lib_save_LIBS=$LIBS
  23711. LIBS="-ldl $LIBS"
  23712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23713. /* end confdefs.h. */
  23714. /* Override any GCC internal prototype to avoid an error.
  23715. Use char because int might match the return type of a GCC
  23716. builtin and then its argument prototype would still apply. */
  23717. char dlopen ();
  23718. int
  23719. main (void)
  23720. {
  23721. return dlopen ();
  23722. ;
  23723. return 0;
  23724. }
  23725. _ACEOF
  23726. if ac_fn_c_try_link "$LINENO"
  23727. then :
  23728. ac_cv_lib_dl_dlopen=yes
  23729. else $as_nop
  23730. ac_cv_lib_dl_dlopen=no
  23731. fi
  23732. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23733. conftest$ac_exeext conftest.$ac_ext
  23734. LIBS=$ac_check_lib_save_LIBS
  23735. fi
  23736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  23737. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  23738. if test "x$ac_cv_lib_dl_dlopen" = xyes
  23739. then :
  23740. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  23741. fi
  23742. fi
  23743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  23744. printf %s "checking for dlopen... " >&6; }
  23745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  23746. printf "%s\n" "$have_dlopen" >&6; }
  23747. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  23748. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  23749. if test x$enable_loadso = xyes; then
  23750. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  23751. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  23752. have_loadso=yes
  23753. fi
  23754. fi
  23755. }
  23756. CheckO_CLOEXEC()
  23757. {
  23758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  23759. printf %s "checking for O_CLOEXEC... " >&6; }
  23760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23761. /* end confdefs.h. */
  23762. #include <fcntl.h>
  23763. int flag = O_CLOEXEC;
  23764. int
  23765. main (void)
  23766. {
  23767. ;
  23768. return 0;
  23769. }
  23770. _ACEOF
  23771. if ac_fn_c_try_compile "$LINENO"
  23772. then :
  23773. have_o_cloexec=yes
  23774. else $as_nop
  23775. have_o_cloexec=no
  23776. fi
  23777. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  23779. printf "%s\n" "$have_o_cloexec" >&6; }
  23780. if test $have_o_cloexec = yes; then
  23781. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  23782. fi
  23783. }
  23784. CheckUSBHID()
  23785. {
  23786. case "$host" in
  23787. *-*-*bsd*|*-*-dragonfly*)
  23788. if test x$enable_joystick = xyes; then
  23789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  23790. printf %s "checking for hid_init in -lusbhid... " >&6; }
  23791. if test ${ac_cv_lib_usbhid_hid_init+y}
  23792. then :
  23793. printf %s "(cached) " >&6
  23794. else $as_nop
  23795. ac_check_lib_save_LIBS=$LIBS
  23796. LIBS="-lusbhid $LIBS"
  23797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23798. /* end confdefs.h. */
  23799. /* Override any GCC internal prototype to avoid an error.
  23800. Use char because int might match the return type of a GCC
  23801. builtin and then its argument prototype would still apply. */
  23802. char hid_init ();
  23803. int
  23804. main (void)
  23805. {
  23806. return hid_init ();
  23807. ;
  23808. return 0;
  23809. }
  23810. _ACEOF
  23811. if ac_fn_c_try_link "$LINENO"
  23812. then :
  23813. ac_cv_lib_usbhid_hid_init=yes
  23814. else $as_nop
  23815. ac_cv_lib_usbhid_hid_init=no
  23816. fi
  23817. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23818. conftest$ac_exeext conftest.$ac_ext
  23819. LIBS=$ac_check_lib_save_LIBS
  23820. fi
  23821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  23822. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  23823. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  23824. then :
  23825. have_libusbhid=yes
  23826. fi
  23827. if test x$have_libusbhid = xyes; then
  23828. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  23829. if test "x$ac_cv_header_usbhid_h" = xyes
  23830. then :
  23831. USB_CFLAGS="-DHAVE_USBHID_H"
  23832. fi
  23833. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  23834. if test "x$ac_cv_header_libusbhid_h" = xyes
  23835. then :
  23836. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  23837. fi
  23838. USB_LIBS="$USB_LIBS -lusbhid"
  23839. else
  23840. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  23841. if test "x$ac_cv_header_usb_h" = xyes
  23842. then :
  23843. USB_CFLAGS="-DHAVE_USB_H"
  23844. fi
  23845. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23846. if test "x$ac_cv_header_libusb_h" = xyes
  23847. then :
  23848. USB_CFLAGS="-DHAVE_LIBUSB_H"
  23849. fi
  23850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  23851. printf %s "checking for hid_init in -lusb... " >&6; }
  23852. if test ${ac_cv_lib_usb_hid_init+y}
  23853. then :
  23854. printf %s "(cached) " >&6
  23855. else $as_nop
  23856. ac_check_lib_save_LIBS=$LIBS
  23857. LIBS="-lusb $LIBS"
  23858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23859. /* end confdefs.h. */
  23860. /* Override any GCC internal prototype to avoid an error.
  23861. Use char because int might match the return type of a GCC
  23862. builtin and then its argument prototype would still apply. */
  23863. char hid_init ();
  23864. int
  23865. main (void)
  23866. {
  23867. return hid_init ();
  23868. ;
  23869. return 0;
  23870. }
  23871. _ACEOF
  23872. if ac_fn_c_try_link "$LINENO"
  23873. then :
  23874. ac_cv_lib_usb_hid_init=yes
  23875. else $as_nop
  23876. ac_cv_lib_usb_hid_init=no
  23877. fi
  23878. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23879. conftest$ac_exeext conftest.$ac_ext
  23880. LIBS=$ac_check_lib_save_LIBS
  23881. fi
  23882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  23883. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  23884. if test "x$ac_cv_lib_usb_hid_init" = xyes
  23885. then :
  23886. USB_LIBS="$USB_LIBS -lusb"
  23887. fi
  23888. fi
  23889. save_CFLAGS="$CFLAGS"
  23890. CFLAGS="$CFLAGS $USB_CFLAGS"
  23891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  23892. printf %s "checking for usbhid... " >&6; }
  23893. have_usbhid=no
  23894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23895. /* end confdefs.h. */
  23896. #include <sys/types.h>
  23897. #if defined(HAVE_USB_H)
  23898. #include <usb.h>
  23899. #endif
  23900. #ifdef __DragonFly__
  23901. # include <bus/u4b/usb.h>
  23902. # include <bus/u4b/usbhid.h>
  23903. #else
  23904. # include <dev/usb/usb.h>
  23905. # include <dev/usb/usbhid.h>
  23906. #endif
  23907. #if defined(HAVE_USBHID_H)
  23908. #include <usbhid.h>
  23909. #elif defined(HAVE_LIBUSB_H)
  23910. #include <libusb.h>
  23911. #elif defined(HAVE_LIBUSBHID_H)
  23912. #include <libusbhid.h>
  23913. #endif
  23914. int
  23915. main (void)
  23916. {
  23917. struct report_desc *repdesc;
  23918. struct usb_ctl_report *repbuf;
  23919. hid_kind_t hidkind;
  23920. ;
  23921. return 0;
  23922. }
  23923. _ACEOF
  23924. if ac_fn_c_try_compile "$LINENO"
  23925. then :
  23926. have_usbhid=yes
  23927. fi
  23928. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  23930. printf "%s\n" "$have_usbhid" >&6; }
  23931. if test x$have_usbhid = xyes; then
  23932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  23933. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  23934. have_usbhid_ucr_data=no
  23935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23936. /* end confdefs.h. */
  23937. #include <sys/types.h>
  23938. #if defined(HAVE_USB_H)
  23939. #include <usb.h>
  23940. #endif
  23941. #ifdef __DragonFly__
  23942. # include <bus/u4b/usb.h>
  23943. # include <bus/u4b/usbhid.h>
  23944. #else
  23945. # include <dev/usb/usb.h>
  23946. # include <dev/usb/usbhid.h>
  23947. #endif
  23948. #if defined(HAVE_USBHID_H)
  23949. #include <usbhid.h>
  23950. #elif defined(HAVE_LIBUSB_H)
  23951. #include <libusb.h>
  23952. #elif defined(HAVE_LIBUSBHID_H)
  23953. #include <libusbhid.h>
  23954. #endif
  23955. int
  23956. main (void)
  23957. {
  23958. struct usb_ctl_report buf;
  23959. if (buf.ucr_data) { }
  23960. ;
  23961. return 0;
  23962. }
  23963. _ACEOF
  23964. if ac_fn_c_try_compile "$LINENO"
  23965. then :
  23966. have_usbhid_ucr_data=yes
  23967. fi
  23968. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23969. if test x$have_usbhid_ucr_data = xyes; then
  23970. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  23971. fi
  23972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  23973. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  23974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  23975. printf %s "checking for new usbhid API... " >&6; }
  23976. have_usbhid_new=no
  23977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23978. /* end confdefs.h. */
  23979. #include <sys/types.h>
  23980. #if defined(HAVE_USB_H)
  23981. #include <usb.h>
  23982. #endif
  23983. #ifdef __DragonFly__
  23984. #include <bus/u4b/usb.h>
  23985. #include <bus/u4b/usbhid.h>
  23986. #else
  23987. #include <dev/usb/usb.h>
  23988. #include <dev/usb/usbhid.h>
  23989. #endif
  23990. #if defined(HAVE_USBHID_H)
  23991. #include <usbhid.h>
  23992. #elif defined(HAVE_LIBUSB_H)
  23993. #include <libusb.h>
  23994. #elif defined(HAVE_LIBUSBHID_H)
  23995. #include <libusbhid.h>
  23996. #endif
  23997. int
  23998. main (void)
  23999. {
  24000. report_desc_t d;
  24001. hid_start_parse(d, 1, 1);
  24002. ;
  24003. return 0;
  24004. }
  24005. _ACEOF
  24006. if ac_fn_c_try_compile "$LINENO"
  24007. then :
  24008. have_usbhid_new=yes
  24009. fi
  24010. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24011. if test x$have_usbhid_new = xyes; then
  24012. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24013. fi
  24014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24015. printf "%s\n" "$have_usbhid_new" >&6; }
  24016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24017. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24018. have_machine_joystick=no
  24019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24020. /* end confdefs.h. */
  24021. #include <machine/joystick.h>
  24022. int
  24023. main (void)
  24024. {
  24025. struct joystick t;
  24026. ;
  24027. return 0;
  24028. }
  24029. _ACEOF
  24030. if ac_fn_c_try_compile "$LINENO"
  24031. then :
  24032. have_machine_joystick=yes
  24033. fi
  24034. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24035. if test x$have_machine_joystick = xyes; then
  24036. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24037. fi
  24038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24039. printf "%s\n" "$have_machine_joystick" >&6; }
  24040. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24041. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24042. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24043. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24044. have_joystick=yes
  24045. fi
  24046. CFLAGS="$save_CFLAGS"
  24047. fi
  24048. ;;
  24049. esac
  24050. }
  24051. CheckHIDAPI()
  24052. {
  24053. # Check whether --enable-hidapi-joystick was given.
  24054. if test ${enable_hidapi_joystick+y}
  24055. then :
  24056. enableval=$enable_hidapi_joystick;
  24057. else $as_nop
  24058. enable_hidapi_joystick=yes
  24059. fi
  24060. # Check whether --enable-hidapi-libusb was given.
  24061. if test ${enable_hidapi_libusb+y}
  24062. then :
  24063. enableval=$enable_hidapi_libusb;
  24064. else $as_nop
  24065. enable_hidapi_libusb=maybe
  24066. fi
  24067. if test x$enable_hidapi = xyes; then
  24068. case "$host" in
  24069. # libusb does not support iOS
  24070. *-ios-* )
  24071. enable_hidapi_libusb=no
  24072. ;;
  24073. # On the other hand, *BSD specifically uses libusb only
  24074. *-*-*bsd* )
  24075. enable_hidapi_libusb=yes
  24076. require_hidapi_libusb=yes
  24077. ;;
  24078. *-*-os2* )
  24079. enable_hidapi_libusb=yes
  24080. ;;
  24081. esac
  24082. hidapi_support=yes
  24083. if test x$enable_hidapi_libusb = xyes; then
  24084. pkg_failed=no
  24085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24086. printf %s "checking for libusb-1.0... " >&6; }
  24087. if test -n "$LIBUSB_CFLAGS"; then
  24088. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24089. elif test -n "$PKG_CONFIG"; then
  24090. if test -n "$PKG_CONFIG" && \
  24091. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24092. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24093. ac_status=$?
  24094. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24095. test $ac_status = 0; }; then
  24096. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24097. test "x$?" != "x0" && pkg_failed=yes
  24098. else
  24099. pkg_failed=yes
  24100. fi
  24101. else
  24102. pkg_failed=untried
  24103. fi
  24104. if test -n "$LIBUSB_LIBS"; then
  24105. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24106. elif test -n "$PKG_CONFIG"; then
  24107. if test -n "$PKG_CONFIG" && \
  24108. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24109. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24110. ac_status=$?
  24111. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24112. test $ac_status = 0; }; then
  24113. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24114. test "x$?" != "x0" && pkg_failed=yes
  24115. else
  24116. pkg_failed=yes
  24117. fi
  24118. else
  24119. pkg_failed=untried
  24120. fi
  24121. if test $pkg_failed = yes; then
  24122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24123. printf "%s\n" "no" >&6; }
  24124. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24125. _pkg_short_errors_supported=yes
  24126. else
  24127. _pkg_short_errors_supported=no
  24128. fi
  24129. if test $_pkg_short_errors_supported = yes; then
  24130. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24131. else
  24132. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24133. fi
  24134. # Put the nasty error message in config.log where it belongs
  24135. echo "$LIBUSB_PKG_ERRORS" >&5
  24136. have_libusb=no
  24137. elif test $pkg_failed = untried; then
  24138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24139. printf "%s\n" "no" >&6; }
  24140. have_libusb=no
  24141. else
  24142. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24143. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24145. printf "%s\n" "yes" >&6; }
  24146. have_libusb=yes
  24147. fi
  24148. save_CPPFLAGS="$CPPFLAGS"
  24149. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24150. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24151. if test "x$ac_cv_header_libusb_h" = xyes
  24152. then :
  24153. have_libusb_h=yes
  24154. else $as_nop
  24155. have_libusb_h=no
  24156. fi
  24157. CPPFLAGS="$save_CPPFLAGS"
  24158. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24159. hidapi_support=no
  24160. fi
  24161. fi
  24162. if test x$hidapi_support = xyes; then
  24163. if test x$have_libusb_h = xyes; then
  24164. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24165. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24166. if test x$require_hidapi_libusb = xyes; then
  24167. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24168. else
  24169. if test x$have_loadso != xyes; then
  24170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24171. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24172. fi
  24173. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24174. libusb_lib=""
  24175. case "$host" in
  24176. *-*-darwin* )
  24177. libusb_lib="libusb-1.0.0.dylib"
  24178. ;;
  24179. *-*-cygwin* | *-*-mingw* )
  24180. libusb_lib="libusb-1.0.dll"
  24181. ;;
  24182. *-*-os2* )
  24183. libusb_lib="usb100.dll"
  24184. ;;
  24185. esac
  24186. if test x$libusb_lib = x; then
  24187. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24188. fi
  24189. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24190. fi
  24191. fi
  24192. fi
  24193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24194. printf %s "checking for hidapi joystick support... " >&6; }
  24195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24196. printf "%s\n" "$hidapi_support" >&6; }
  24197. fi
  24198. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24199. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24200. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24201. fi
  24202. }
  24203. CheckClockGettime()
  24204. {
  24205. # Check whether --enable-clock_gettime was given.
  24206. if test ${enable_clock_gettime+y}
  24207. then :
  24208. enableval=$enable_clock_gettime;
  24209. else $as_nop
  24210. enable_clock_gettime=yes
  24211. fi
  24212. if test x$enable_clock_gettime = xyes; then
  24213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24214. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24215. if test ${ac_cv_lib_rt_clock_gettime+y}
  24216. then :
  24217. printf %s "(cached) " >&6
  24218. else $as_nop
  24219. ac_check_lib_save_LIBS=$LIBS
  24220. LIBS="-lrt $LIBS"
  24221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24222. /* end confdefs.h. */
  24223. /* Override any GCC internal prototype to avoid an error.
  24224. Use char because int might match the return type of a GCC
  24225. builtin and then its argument prototype would still apply. */
  24226. char clock_gettime ();
  24227. int
  24228. main (void)
  24229. {
  24230. return clock_gettime ();
  24231. ;
  24232. return 0;
  24233. }
  24234. _ACEOF
  24235. if ac_fn_c_try_link "$LINENO"
  24236. then :
  24237. ac_cv_lib_rt_clock_gettime=yes
  24238. else $as_nop
  24239. ac_cv_lib_rt_clock_gettime=no
  24240. fi
  24241. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24242. conftest$ac_exeext conftest.$ac_ext
  24243. LIBS=$ac_check_lib_save_LIBS
  24244. fi
  24245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24246. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24247. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24248. then :
  24249. have_clock_gettime=yes
  24250. fi
  24251. if test x$have_clock_gettime = xyes; then
  24252. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24253. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24254. else
  24255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24256. printf %s "checking for clock_gettime in -lc... " >&6; }
  24257. if test ${ac_cv_lib_c_clock_gettime+y}
  24258. then :
  24259. printf %s "(cached) " >&6
  24260. else $as_nop
  24261. ac_check_lib_save_LIBS=$LIBS
  24262. LIBS="-lc $LIBS"
  24263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24264. /* end confdefs.h. */
  24265. /* Override any GCC internal prototype to avoid an error.
  24266. Use char because int might match the return type of a GCC
  24267. builtin and then its argument prototype would still apply. */
  24268. char clock_gettime ();
  24269. int
  24270. main (void)
  24271. {
  24272. return clock_gettime ();
  24273. ;
  24274. return 0;
  24275. }
  24276. _ACEOF
  24277. if ac_fn_c_try_link "$LINENO"
  24278. then :
  24279. ac_cv_lib_c_clock_gettime=yes
  24280. else $as_nop
  24281. ac_cv_lib_c_clock_gettime=no
  24282. fi
  24283. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24284. conftest$ac_exeext conftest.$ac_ext
  24285. LIBS=$ac_check_lib_save_LIBS
  24286. fi
  24287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24288. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24289. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24290. then :
  24291. have_clock_gettime=yes
  24292. fi
  24293. if test x$have_clock_gettime = xyes; then
  24294. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24295. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  24296. fi
  24297. fi
  24298. fi
  24299. }
  24300. CheckLinuxVersion()
  24301. {
  24302. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24303. if test "x$ac_cv_header_linux_version_h" = xyes
  24304. then :
  24305. have_linux_version_h=yes
  24306. fi
  24307. if test x$have_linux_version_h = xyes; then
  24308. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24309. fi
  24310. }
  24311. CheckRPATH()
  24312. {
  24313. # Check whether --enable-rpath was given.
  24314. if test ${enable_rpath+y}
  24315. then :
  24316. enableval=$enable_rpath;
  24317. else $as_nop
  24318. enable_rpath=yes
  24319. fi
  24320. }
  24321. CheckEventSignals()
  24322. {
  24323. # Check whether --enable-backgrounding-signal was given.
  24324. if test ${enable_backgrounding_signal+y}
  24325. then :
  24326. enableval=$enable_backgrounding_signal;
  24327. else $as_nop
  24328. enable_backgrounding_signal=no
  24329. fi
  24330. if test x$enable_backgrounding_signal != xno; then
  24331. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24332. fi
  24333. # Check whether --enable-foregrounding-signal was given.
  24334. if test ${enable_foregrounding_signal+y}
  24335. then :
  24336. enableval=$enable_foregrounding_signal;
  24337. else $as_nop
  24338. enable_foregrounding_signal=no
  24339. fi
  24340. if test x$enable_foregrounding_signal != xno; then
  24341. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24342. fi
  24343. }
  24344. CheckVirtualJoystick()
  24345. {
  24346. # Check whether --enable-joystick-virtual was given.
  24347. if test ${enable_joystick_virtual+y}
  24348. then :
  24349. enableval=$enable_joystick_virtual;
  24350. else $as_nop
  24351. enable_joystick_virtual=yes
  24352. fi
  24353. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24354. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24355. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24356. have_joystick_virtual=yes
  24357. fi
  24358. }
  24359. CheckWarnAll
  24360. CheckNoStrictAliasing
  24361. CheckEventSignals
  24362. have_locale=no
  24363. case "$host" in
  24364. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24365. case "$host" in
  24366. *-*-android*)
  24367. # Android
  24368. ARCH=android
  24369. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24370. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24371. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24372. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24373. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24374. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24375. if test x$enable_video = xyes; then
  24376. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24377. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24378. SUMMARY_video="${SUMMARY_video} android"
  24379. have_video=yes
  24380. fi
  24381. ;;
  24382. *-*-linux*) ARCH=linux ;;
  24383. *-*-uclinux*) ARCH=linux ;;
  24384. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24385. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24386. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24387. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24388. *-*-bsdi*) ARCH=bsdi ;;
  24389. *-*-freebsd*) ARCH=freebsd ;;
  24390. *-*-dragonfly*) ARCH=freebsd ;;
  24391. *-*-netbsd*) ARCH=netbsd ;;
  24392. *-*-openbsd*) ARCH=openbsd ;;
  24393. *-*-sysv5*) ARCH=sysv5 ;;
  24394. *-*-solaris*) ARCH=solaris ;;
  24395. *-*-hpux*) ARCH=hpux ;;
  24396. *-*-aix*) ARCH=aix ;;
  24397. *-*-minix*) ARCH=minix ;;
  24398. *-*-nto*) ARCH=nto
  24399. CheckQNXVideo
  24400. ;;
  24401. esac
  24402. CheckVisibilityHidden
  24403. CheckDeclarationAfterStatement
  24404. CheckDummyVideo
  24405. CheckOffscreenVideo
  24406. CheckDiskAudio
  24407. CheckDummyAudio
  24408. CheckDLOPEN
  24409. CheckARM
  24410. CheckNEON
  24411. CheckO_CLOEXEC
  24412. CheckOSS
  24413. CheckALSA
  24414. CheckPipewire
  24415. CheckPulseAudio
  24416. CheckJACK
  24417. CheckARTSC
  24418. CheckESD
  24419. CheckNAS
  24420. CheckSNDIO
  24421. CheckFusionSound
  24422. CheckLibSampleRate
  24423. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24424. CheckRPI
  24425. CheckX11
  24426. CheckDirectFB
  24427. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24428. CheckEGL
  24429. CheckKMSDRM
  24430. CheckGLX
  24431. CheckOpenGL
  24432. CheckOpenGLES
  24433. CheckVulkan
  24434. CheckWayland
  24435. CheckInputEvents
  24436. CheckLibUDev
  24437. CheckDBus
  24438. CheckIME
  24439. CheckInotify
  24440. CheckIBus
  24441. CheckFcitx
  24442. case $ARCH in
  24443. linux)
  24444. CheckInputKD
  24445. ;;
  24446. freebsd)
  24447. CheckInputKBIO
  24448. ;;
  24449. openbsd|netbsd)
  24450. CheckInputWSCONS
  24451. ;;
  24452. esac
  24453. CheckUSBHID
  24454. CheckHIDAPI
  24455. CheckPTHREAD
  24456. CheckClockGettime
  24457. CheckLinuxVersion
  24458. CheckRPATH
  24459. CheckVivanteVideo
  24460. # Set up files for the misc library
  24461. if test x$enable_misc = xyes; then
  24462. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24463. have_misc=yes
  24464. fi
  24465. # Set up files for the locale library
  24466. if test x$enable_locale = xyes; then
  24467. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24468. have_locale=yes
  24469. fi
  24470. # Set up files for the audio library
  24471. if test x$enable_audio = xyes; then
  24472. case $ARCH in
  24473. sysv5|solaris|hpux)
  24474. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24475. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24476. SUMMARY_audio="${SUMMARY_audio} sun"
  24477. have_audio=yes
  24478. ;;
  24479. netbsd) # Don't use this on OpenBSD, it's busted.
  24480. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24481. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24482. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24483. have_audio=yes
  24484. ;;
  24485. aix)
  24486. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24487. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24488. SUMMARY_audio="${SUMMARY_audio} paudio"
  24489. have_audio=yes
  24490. ;;
  24491. android)
  24492. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24493. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24494. SUMMARY_audio="${SUMMARY_audio} android"
  24495. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24496. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24497. SUMMARY_audio="${SUMMARY_audio} openslES"
  24498. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24499. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24500. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24501. have_audio=yes
  24502. ;;
  24503. nto)
  24504. CheckQNXAudio
  24505. ;;
  24506. esac
  24507. fi
  24508. # Set up files for the joystick library
  24509. if test x$enable_joystick = xyes; then
  24510. case $ARCH in
  24511. linux)
  24512. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24513. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24514. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24515. have_joystick=yes
  24516. ;;
  24517. freebsd)
  24518. if test x$use_input_events = xyes; then
  24519. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24520. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24521. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24522. have_joystick=yes
  24523. fi
  24524. ;;
  24525. android)
  24526. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24527. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24528. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24529. have_joystick=yes
  24530. ;;
  24531. esac
  24532. fi
  24533. # Set up files for the haptic library
  24534. if test x$enable_haptic = xyes; then
  24535. case $ARCH in
  24536. linux|freebsd)
  24537. if test x$use_input_events = xyes; then
  24538. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24539. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24540. have_haptic=yes
  24541. fi
  24542. ;;
  24543. android)
  24544. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24545. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24546. have_haptic=yes
  24547. ;;
  24548. esac
  24549. fi
  24550. # Set up files for the sensor library
  24551. if test x$enable_sensor = xyes; then
  24552. case $ARCH in
  24553. android)
  24554. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24555. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24556. have_sensor=yes
  24557. ;;
  24558. esac
  24559. fi
  24560. # Set up files for the power library
  24561. if test x$enable_power = xyes; then
  24562. case $ARCH in
  24563. linux)
  24564. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24565. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24566. have_power=yes
  24567. ;;
  24568. android)
  24569. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24570. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24571. have_power=yes
  24572. ;;
  24573. esac
  24574. fi
  24575. # Set up files for the filesystem library
  24576. if test x$enable_filesystem = xyes; then
  24577. case $ARCH in
  24578. android)
  24579. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24580. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24581. have_filesystem=yes
  24582. ;;
  24583. *)
  24584. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24585. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24586. have_filesystem=yes
  24587. ;;
  24588. esac
  24589. fi
  24590. # Set up files for the timer library
  24591. if test x$enable_timers = xyes; then
  24592. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24593. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24594. have_timers=yes
  24595. fi
  24596. # Set up files for udev hotplugging support
  24597. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24598. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24599. fi
  24600. # Set up files for evdev input
  24601. if test x$use_input_events = xyes; then
  24602. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24603. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24604. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24605. fi
  24606. # Set up files for wscons input
  24607. if test x$use_input_wscons = xyes; then
  24608. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24609. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24610. fi
  24611. # Set up other core UNIX files
  24612. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24613. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24614. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24615. ;;
  24616. *-*-cygwin* | *-*-mingw*)
  24617. ARCH=win32
  24618. if test "$build" != "$host"; then # cross-compiling
  24619. # Default cross-compile location
  24620. ac_default_prefix=/usr/local/cross-tools/$host
  24621. else
  24622. # Look for the location of the tools and install there
  24623. if test "$BUILD_PREFIX" != ""; then
  24624. ac_default_prefix=$BUILD_PREFIX
  24625. fi
  24626. fi
  24627. if test x$enable_loadso = xyes; then
  24628. have_loadso=yes
  24629. fi
  24630. CheckGDwarf4
  24631. CheckDeclarationAfterStatement
  24632. CheckDummyVideo
  24633. CheckOffscreenVideo
  24634. CheckDiskAudio
  24635. CheckDummyAudio
  24636. CheckWINDOWS
  24637. CheckWINDOWSGL
  24638. CheckWINDOWSGLES
  24639. CheckVulkan
  24640. CheckDIRECTX
  24641. CheckHIDAPI
  24642. # Set up the core platform files
  24643. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24644. # Set up files for the misc library
  24645. if test x$enable_misc = xyes; then
  24646. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24647. have_misc=yes
  24648. fi
  24649. # Use the Windows locale APIs.
  24650. if test x$enable_locale = xyes; then
  24651. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24652. have_locale=yes
  24653. fi
  24654. # Set up files for the video library
  24655. if test x$enable_video = xyes; then
  24656. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24657. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24658. have_video=yes
  24659. # Check whether --enable-render-d3d was given.
  24660. if test ${enable_render_d3d+y}
  24661. then :
  24662. enableval=$enable_render_d3d;
  24663. else $as_nop
  24664. enable_render_d3d=yes
  24665. fi
  24666. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24667. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24668. SUMMARY_video="${SUMMARY_video} d3d9"
  24669. fi
  24670. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24671. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24672. SUMMARY_video="${SUMMARY_video} d3d11"
  24673. fi
  24674. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24675. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24676. SUMMARY_video="${SUMMARY_video} d3d12"
  24677. fi
  24678. fi
  24679. # Set up files for the audio library
  24680. if test x$enable_audio = xyes; then
  24681. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  24682. SUMMARY_audio="${SUMMARY_audio} winmm"
  24683. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  24684. if test x$have_dsound = xyes; then
  24685. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  24686. SUMMARY_audio="${SUMMARY_audio} directsound"
  24687. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  24688. fi
  24689. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  24690. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  24691. SUMMARY_audio="${SUMMARY_audio} wasapi"
  24692. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  24693. fi
  24694. have_audio=yes
  24695. fi
  24696. # Set up files for the joystick library
  24697. if test x$enable_joystick = xyes; then
  24698. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  24699. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  24700. if test x$have_xinput = xyes; then
  24701. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  24702. fi
  24703. if test x$have_wgi = xyes; then
  24704. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  24705. fi
  24706. if test x$have_dinput = xyes; then
  24707. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  24708. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  24709. fi
  24710. fi
  24711. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  24712. have_joystick=yes
  24713. fi
  24714. if test x$enable_haptic = xyes; then
  24715. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  24716. if test x$have_xinput = xyes; then
  24717. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  24718. fi
  24719. if test x$have_dinput = xyes; then
  24720. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  24721. fi
  24722. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  24723. have_haptic=yes
  24724. fi
  24725. fi
  24726. # Set up files for the sensor library
  24727. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  24728. if test "x$ac_cv_header_sensorsapi_h" = xyes
  24729. then :
  24730. have_winsensors=yes
  24731. else $as_nop
  24732. have_winsensors=no
  24733. fi
  24734. if test x$have_winsensors = xyes; then
  24735. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  24736. fi
  24737. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  24738. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  24739. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  24740. have_sensor=yes
  24741. fi
  24742. # Set up files for the power library
  24743. if test x$enable_power = xyes; then
  24744. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  24745. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  24746. have_power=yes
  24747. fi
  24748. # Set up files for the filesystem library
  24749. if test x$enable_filesystem = xyes; then
  24750. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  24751. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  24752. have_filesystem=yes
  24753. fi
  24754. # Set up files for the thread library
  24755. if test x$enable_threads = xyes; then
  24756. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  24757. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  24758. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  24759. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  24760. have_threads=yes
  24761. fi
  24762. # Set up files for the timer library
  24763. if test x$enable_timers = xyes; then
  24764. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  24765. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  24766. have_timers=yes
  24767. fi
  24768. # Set up files for the shared object loading library
  24769. if test x$enable_loadso = xyes; then
  24770. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  24771. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  24772. fi
  24773. # Set up the system libraries we need
  24774. if test -f /lib/w32api/libuuid.a; then
  24775. LIBUUID=/lib/w32api/libuuid.a
  24776. else
  24777. LIBUUID=-luuid
  24778. fi
  24779. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  24780. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  24781. # The Windows platform requires special setup
  24782. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  24783. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  24784. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  24785. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  24786. # Check to see if this is a mingw or cygwin build
  24787. have_mingw32=
  24788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  24789. printf %s "checking for main in -lmingw32... " >&6; }
  24790. if test ${ac_cv_lib_mingw32_main+y}
  24791. then :
  24792. printf %s "(cached) " >&6
  24793. else $as_nop
  24794. ac_check_lib_save_LIBS=$LIBS
  24795. LIBS="-lmingw32 $LIBS"
  24796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24797. /* end confdefs.h. */
  24798. int
  24799. main (void)
  24800. {
  24801. return main ();
  24802. ;
  24803. return 0;
  24804. }
  24805. _ACEOF
  24806. if ac_fn_c_try_link "$LINENO"
  24807. then :
  24808. ac_cv_lib_mingw32_main=yes
  24809. else $as_nop
  24810. ac_cv_lib_mingw32_main=no
  24811. fi
  24812. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24813. conftest$ac_exeext conftest.$ac_ext
  24814. LIBS=$ac_check_lib_save_LIBS
  24815. fi
  24816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  24817. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  24818. if test "x$ac_cv_lib_mingw32_main" = xyes
  24819. then :
  24820. have_mingw32=yes
  24821. fi
  24822. if test x$have_mingw32 = xyes; then
  24823. SDL_LIBS="-lmingw32 $SDL_LIBS"
  24824. else
  24825. SDL_LIBS="-lcygwin $SDL_LIBS"
  24826. fi
  24827. ;;
  24828. *-*-beos*)
  24829. as_fn_error $? "
  24830. *** BeOS support has been removed as of SDL 2.0.2.
  24831. " "$LINENO" 5
  24832. ;;
  24833. *-*-haiku*)
  24834. ARCH=haiku
  24835. ac_default_prefix=/boot/system
  24836. CheckDummyVideo
  24837. CheckOffscreenVideo
  24838. CheckDiskAudio
  24839. CheckDummyAudio
  24840. CheckDLOPEN
  24841. CheckO_CLOEXEC
  24842. CheckHaikuVideo
  24843. CheckHaikuGL
  24844. CheckPTHREAD
  24845. # Set up files for the audio library
  24846. if test x$enable_audio = xyes; then
  24847. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  24848. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  24849. SUMMARY_audio="${SUMMARY_audio} haiku"
  24850. have_audio=yes
  24851. fi
  24852. # Set up files for the joystick library
  24853. if test x$enable_joystick = xyes; then
  24854. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  24855. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  24856. have_joystick=yes
  24857. fi
  24858. # Set up files for the timer library
  24859. if test x$enable_timers = xyes; then
  24860. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  24861. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  24862. have_timers=yes
  24863. fi
  24864. # Set up files for the system power library
  24865. if test x$enable_power = xyes; then
  24866. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  24867. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  24868. have_power=yes
  24869. fi
  24870. # Set up files for the system filesystem library
  24871. if test x$enable_filesystem = xyes; then
  24872. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  24873. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  24874. have_filesystem=yes
  24875. fi
  24876. # Set up files for the misc library
  24877. if test x$enable_misc = xyes; then
  24878. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  24879. have_misc=yes
  24880. fi
  24881. # Set up files for the locale library
  24882. if test x$enable_locale = xyes; then
  24883. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  24884. have_locale=yes
  24885. fi
  24886. # The Haiku platform requires special setup.
  24887. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  24888. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  24889. ;;
  24890. *-ios-*)
  24891. ARCH=ios
  24892. CheckVisibilityHidden
  24893. CheckDeclarationAfterStatement
  24894. CheckDummyVideo
  24895. CheckOffscreenVideo
  24896. CheckDiskAudio
  24897. CheckDummyAudio
  24898. CheckDLOPEN
  24899. CheckO_CLOEXEC
  24900. CheckMETAL
  24901. CheckVulkan
  24902. CheckPTHREAD
  24903. # Set up files for the misc library
  24904. if test x$enable_misc = xyes; then
  24905. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  24906. have_misc=yes
  24907. fi
  24908. # Set up files for the locale library
  24909. if test x$enable_locale = xyes; then
  24910. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24911. have_locale=yes
  24912. fi
  24913. # Set up files for the audio library
  24914. if test x$enable_audio = xyes; then
  24915. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24916. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24917. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24918. have_audio=yes
  24919. fi
  24920. # Set up files for the joystick library
  24921. if test x$enable_joystick = xyes; then
  24922. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  24923. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24924. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24925. have_joystick=yes
  24926. else
  24927. # Need this code for accelerometer as joystick support
  24928. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24929. fi
  24930. # Set up files for the haptic library
  24931. #if test x$enable_haptic = xyes; then
  24932. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24933. # have_haptic=yes
  24934. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24935. #fi
  24936. # Set up files for the sensor library
  24937. if test x$enable_sensor = xyes; then
  24938. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  24939. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  24940. have_sensor=yes
  24941. fi
  24942. # Set up files for the power library
  24943. if test x$enable_power = xyes; then
  24944. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  24945. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  24946. have_power=yes
  24947. fi
  24948. # Set up files for the filesystem library
  24949. if test x$enable_filesystem = xyes; then
  24950. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24951. have_filesystem=yes
  24952. fi
  24953. # Set up additional files for the file library
  24954. if test x$enable_file = xyes; then
  24955. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24956. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24957. fi
  24958. # Set up files for the timer library
  24959. if test x$enable_timers = xyes; then
  24960. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24961. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24962. have_timers=yes
  24963. fi
  24964. # Set up other core UNIX files
  24965. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24966. # The iOS platform requires special setup.
  24967. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  24968. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  24969. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  24970. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  24971. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  24972. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  24973. SUMMARY_video="${SUMMARY_video} uikit"
  24974. have_video=yes
  24975. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  24976. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  24977. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  24978. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  24979. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  24980. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  24981. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  24982. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  24983. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  24984. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  24985. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  24986. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  24987. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  24988. fi
  24989. ;;
  24990. *-*-darwin* )
  24991. # This could be either full "Mac OS X", or plain "Darwin" which is
  24992. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  24993. # Next line is broken, and a few files below require Mac OS X (full)
  24994. ARCH=macosx
  24995. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  24996. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  24997. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  24998. CheckObjectiveCARC
  24999. CheckVisibilityHidden
  25000. CheckDeclarationAfterStatement
  25001. CheckDummyVideo
  25002. CheckOffscreenVideo
  25003. CheckDiskAudio
  25004. CheckDummyAudio
  25005. CheckDLOPEN
  25006. CheckO_CLOEXEC
  25007. CheckCOCOA
  25008. CheckMETAL
  25009. CheckX11
  25010. CheckMacGL
  25011. CheckMacGLES
  25012. CheckGLX
  25013. CheckOpenGL
  25014. CheckVulkan
  25015. CheckPTHREAD
  25016. CheckHIDAPI
  25017. # Set up files for the misc library
  25018. if test x$enable_misc = xyes; then
  25019. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25020. have_misc=yes
  25021. fi
  25022. # Set up files for the locale library
  25023. if test x$enable_locale = xyes; then
  25024. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25025. have_locale=yes
  25026. fi
  25027. # Set up files for the audio library
  25028. if test x$enable_audio = xyes; then
  25029. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25030. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25031. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25032. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25033. have_audio=yes
  25034. fi
  25035. # Set up files for the joystick library
  25036. if test x$enable_joystick = xyes; then
  25037. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25038. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25039. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25040. CheckJoystickMFI
  25041. have_joystick=yes
  25042. fi
  25043. # Set up files for the haptic library
  25044. if test x$enable_haptic = xyes; then
  25045. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25046. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25047. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25048. have_haptic=yes
  25049. fi
  25050. # Set up files for the power library
  25051. if test x$enable_power = xyes; then
  25052. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25053. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25054. have_power=yes
  25055. fi
  25056. # Set up files for the filesystem library
  25057. if test x$enable_filesystem = xyes; then
  25058. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25059. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25060. have_filesystem=yes
  25061. fi
  25062. # Set up files for the timer library
  25063. if test x$enable_timers = xyes; then
  25064. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25065. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25066. have_timers=yes
  25067. fi
  25068. # Set up additional files for the file library
  25069. if test x$enable_file = xyes; then
  25070. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25071. fi
  25072. # Set up other core UNIX files
  25073. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25074. # The Mac OS X platform requires special setup.
  25075. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25076. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25077. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25078. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25079. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25080. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25081. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25082. fi
  25083. ;;
  25084. *-nacl|*-pnacl)
  25085. ARCH=nacl
  25086. CheckNativeClient
  25087. CheckDummyAudio
  25088. CheckDummyVideo
  25089. CheckOffscreenVideo
  25090. CheckInputEvents
  25091. CheckPTHREAD
  25092. CheckO_CLOEXEC
  25093. # Set up files for the timer library
  25094. if test x$enable_timers = xyes; then
  25095. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25096. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25097. have_timers=yes
  25098. fi
  25099. if test x$enable_filesystem = xyes; then
  25100. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25101. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25102. have_filesystem=yes
  25103. fi
  25104. ;;
  25105. *-*-emscripten* )
  25106. if test x$enable_video = xyes; then
  25107. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25108. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25109. have_video=yes
  25110. SUMMARY_video="${SUMMARY_video} emscripten"
  25111. fi
  25112. if test x$enable_audio = xyes; then
  25113. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25114. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25115. have_audio=yes
  25116. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25117. fi
  25118. CheckVisibilityHidden
  25119. CheckDeclarationAfterStatement
  25120. CheckDummyVideo
  25121. CheckOffscreenVideo
  25122. CheckDiskAudio
  25123. CheckDummyAudio
  25124. CheckPTHREAD
  25125. CheckDLOPEN
  25126. CheckClockGettime
  25127. CheckEmscriptenGLES
  25128. # Set up files for the misc library
  25129. if test x$enable_misc = xyes; then
  25130. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25131. have_misc=yes
  25132. fi
  25133. # Set up files for the power library
  25134. if test x$enable_power = xyes; then
  25135. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25136. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25137. have_power=yes
  25138. fi
  25139. # Set up files for the joystick library
  25140. if test x$enable_joystick = xyes; then
  25141. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25142. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25143. have_joystick=yes
  25144. fi
  25145. # Set up files for the filesystem library
  25146. if test x$enable_filesystem = xyes; then
  25147. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25148. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25149. have_filesystem=yes
  25150. fi
  25151. # Set up files for the timer library
  25152. if test x$enable_timers = xyes; then
  25153. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25154. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25155. have_timers=yes
  25156. fi
  25157. # Set up files for the locale library
  25158. if test x$enable_locale = xyes; then
  25159. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25160. have_locale=yes
  25161. fi
  25162. ;;
  25163. *-*-riscos*)
  25164. ARCH=riscos
  25165. CheckVisibilityHidden
  25166. CheckDeclarationAfterStatement
  25167. CheckDummyVideo
  25168. CheckOffscreenVideo
  25169. CheckDiskAudio
  25170. CheckDummyAudio
  25171. CheckDLOPEN
  25172. CheckO_CLOEXEC
  25173. CheckOSS
  25174. CheckPTHREAD
  25175. CheckClockGettime
  25176. # Set up files for the misc library
  25177. if test x$enable_misc = xyes; then
  25178. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25179. have_misc=yes
  25180. fi
  25181. # Set up files for the video library
  25182. if test x$enable_video = xyes; then
  25183. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25184. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25185. have_video=yes
  25186. SUMMARY_video="${SUMMARY_video} riscos"
  25187. fi
  25188. # Set up files for the filesystem library
  25189. if test x$enable_filesystem = xyes; then
  25190. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25191. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25192. have_filesystem=yes
  25193. fi
  25194. # Set up files for the timer library
  25195. if test x$enable_timers = xyes; then
  25196. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25197. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25198. have_timers=yes
  25199. fi
  25200. ;;
  25201. *-*-os2*)
  25202. ARCH=os2
  25203. if test "$build" != "$host"; then # cross-compiling
  25204. # Default cross-compile location
  25205. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25206. else
  25207. # Look for the location of the tools and install there
  25208. if test "$BUILD_PREFIX" != ""; then
  25209. ac_default_prefix=$BUILD_PREFIX
  25210. fi
  25211. fi
  25212. enable_static=no # disable static builds
  25213. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25214. CheckOS2
  25215. CheckDeclarationAfterStatement
  25216. CheckDummyVideo
  25217. CheckDiskAudio
  25218. CheckDummyAudio
  25219. CheckHIDAPI
  25220. # Set up the core platform files
  25221. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25222. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25223. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25224. fi
  25225. # Use the Unix locale APIs.
  25226. if test x$enable_locale = xyes; then
  25227. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25228. have_locale=yes
  25229. fi
  25230. # Set up files for the video library
  25231. if test x$enable_video = xyes; then
  25232. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25233. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25234. have_video=yes
  25235. SUMMARY_video="${SUMMARY_video} os/2"
  25236. fi
  25237. # Set up files for the audio library
  25238. if test x$enable_audio = xyes; then
  25239. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25240. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25241. have_audio=yes
  25242. SUMMARY_audio="${SUMMARY_audio} os/2"
  25243. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25244. fi
  25245. # Set up files for the thread library
  25246. if test x$enable_threads = xyes; then
  25247. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25248. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25249. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25250. have_threads=yes
  25251. fi
  25252. # Set up files for the timer library
  25253. if test x$enable_timers = xyes; then
  25254. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25255. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25256. have_timers=yes
  25257. fi
  25258. # Set up files for the shared object loading library
  25259. if test x$enable_loadso = xyes; then
  25260. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25261. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25262. have_loadso=yes
  25263. fi
  25264. # Set up files for the filesystem library
  25265. if test x$enable_filesystem = xyes; then
  25266. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25267. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25268. have_filesystem=yes
  25269. fi
  25270. # Set up files for the joystick library
  25271. if test x$enable_joystick = xyes; then
  25272. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25273. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25274. have_joystick=yes
  25275. fi
  25276. ;;
  25277. *)
  25278. as_fn_error $? "
  25279. *** Unsupported host: Please add to configure.ac
  25280. " "$LINENO" 5
  25281. ;;
  25282. esac
  25283. CheckVirtualJoystick
  25284. # Check whether to install sdl2-config
  25285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25286. printf %s "checking whether to install sdl2-config... " >&6; }
  25287. # Check whether --enable-sdl2-config was given.
  25288. if test ${enable_sdl2_config+y}
  25289. then :
  25290. enableval=$enable_sdl2_config; case "${enableval}" in
  25291. yes) enable_sdl2_config="TRUE" ;;
  25292. no) enable_sdl2_config="FALSE" ;;
  25293. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25294. esac
  25295. else $as_nop
  25296. enable_sdl2_config="TRUE"
  25297. fi
  25298. if test "$enable_sdl2_config" = "TRUE"; then
  25299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25300. printf "%s\n" "yes" >&6; }
  25301. else
  25302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25303. printf "%s\n" "no" >&6; }
  25304. fi
  25305. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25306. # Verify that we have all the platform specific files we need
  25307. if test x$have_audio != xyes; then
  25308. if test x$enable_audio = xyes; then
  25309. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25310. fi
  25311. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25312. fi
  25313. if test x$have_video != xyes; then
  25314. if test x$enable_video = xyes; then
  25315. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25316. fi
  25317. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25318. fi
  25319. if test x$have_misc != xyes; then
  25320. if test x$enable_misc = xyes; then
  25321. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25322. fi
  25323. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25324. fi
  25325. if test x$have_locale != xyes; then
  25326. if test x$enable_locale = xyes; then
  25327. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25328. fi
  25329. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25330. fi
  25331. if test x$have_joystick != xyes; then
  25332. if test x$enable_joystick = xyes; then
  25333. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25334. fi
  25335. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25336. fi
  25337. if test x$have_haptic != xyes; then
  25338. if test x$enable_haptic = xyes; then
  25339. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25340. fi
  25341. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25342. fi
  25343. if test x$have_sensor != xyes; then
  25344. if test x$enable_sensor = xyes; then
  25345. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25346. fi
  25347. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25348. fi
  25349. if test x$have_threads != xyes; then
  25350. if test x$enable_threads = xyes; then
  25351. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25352. fi
  25353. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25354. fi
  25355. if test x$have_timers != xyes; then
  25356. if test x$enable_timers = xyes; then
  25357. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25358. fi
  25359. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25360. fi
  25361. if test x$have_filesystem != xyes; then
  25362. if test x$enable_filesystem = xyes; then
  25363. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25364. fi
  25365. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25366. fi
  25367. if test x$have_loadso != xyes; then
  25368. if test x$enable_loadso = xyes; then
  25369. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25370. fi
  25371. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25372. fi
  25373. if test x$SDLMAIN_SOURCES = x; then
  25374. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25375. fi
  25376. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25377. if test x$video_wayland = xyes; then
  25378. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25379. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25380. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25381. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25382. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25383. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25384. echo ;\
  25385. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25386. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25387. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25388. echo ;\
  25389. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25390. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25391. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25392. echo ;\
  25393. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25394. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25395. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25396. done ;\
  25397. echo ;\
  25398. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25399. fi
  25400. OBJECTS=`echo $SOURCES`
  25401. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25402. for EXT in asm cc m c S; do
  25403. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25404. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25405. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25406. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25407. done
  25408. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25409. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25410. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25411. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25412. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25413. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25414. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25415. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25416. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25417. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25418. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25419. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25420. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25421. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25422. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25423. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25424. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25425. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25426. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25427. # Set runtime shared library paths as needed
  25428. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25429. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25430. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25432. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25433. have_enable_new_dtags=no
  25434. save_LDFLAGS="$LDFLAGS"
  25435. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25437. /* end confdefs.h. */
  25438. int
  25439. main (void)
  25440. {
  25441. ;
  25442. return 0;
  25443. }
  25444. _ACEOF
  25445. if ac_fn_c_try_link "$LINENO"
  25446. then :
  25447. have_enable_new_dtags=yes
  25448. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25449. fi
  25450. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25451. conftest$ac_exeext conftest.$ac_ext
  25452. LDFLAGS="$save_LDFLAGS"
  25453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25454. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25455. fi
  25456. if test $ARCH = solaris; then
  25457. SDL_RLD_FLAGS="-R\${libdir}"
  25458. fi
  25459. else
  25460. SDL_RLD_FLAGS=""
  25461. fi
  25462. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25463. pkg_cmakedir='$libdir/cmake/SDL2'
  25464. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25465. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25466. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25467. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25468. _lcl_receval="$_lcl_from"
  25469. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25470. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25471. _lcl_receval_old=''
  25472. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25473. _lcl_receval_old="$_lcl_receval"
  25474. eval _lcl_receval="\"$_lcl_receval\""
  25475. done
  25476. echo "$_lcl_receval")`
  25477. _lcl_receval="$_lcl_to"
  25478. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25479. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25480. _lcl_receval_old=''
  25481. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25482. _lcl_receval_old="$_lcl_receval"
  25483. eval _lcl_receval="\"$_lcl_receval\""
  25484. done
  25485. echo "$_lcl_receval")`
  25486. _lcl_notation="$_lcl_from$_lcl_to"
  25487. case ":$_lcl_from:" in
  25488. # change empty paths to '.'
  25489. ::) _lcl_from='.' ;;
  25490. # strip trailing slashes
  25491. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25492. :*:) ;;
  25493. esac
  25494. # squeeze repeated slashes
  25495. case '/' in
  25496. # if the path contains any backslashes, turn slashes into backslashes
  25497. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25498. # if the path contains slashes, also turn backslashes into slashes
  25499. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25500. esac
  25501. case ":$_lcl_to:" in
  25502. # change empty paths to '.'
  25503. ::) _lcl_to='.' ;;
  25504. # strip trailing slashes
  25505. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25506. :*:) ;;
  25507. esac
  25508. # squeeze repeated slashes
  25509. case '/' in
  25510. # if the path contains any backslashes, turn slashes into backslashes
  25511. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25512. # if the path contains slashes, also turn backslashes into slashes
  25513. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25514. esac
  25515. _lcl_common_prefix=''
  25516. _lcl_second_prefix_match=''
  25517. while test "$_lcl_second_prefix_match" != 0; do
  25518. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25519. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25520. if test "$_lcl_second_prefix_match" != 0; then
  25521. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25522. _lcl_common_prefix="$_lcl_first_prefix"
  25523. else
  25524. _lcl_second_prefix_match=0
  25525. fi
  25526. fi
  25527. done
  25528. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25529. _lcl_first_rel=''
  25530. _lcl_tmp='xxx'
  25531. while test "$_lcl_tmp" != ''; do
  25532. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25533. if test "$_lcl_first_suffix" != ''; then
  25534. _lcl_first_suffix="$_lcl_tmp"
  25535. _lcl_first_rel="../$_lcl_first_rel"
  25536. fi
  25537. done
  25538. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25539. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25540. case ":$_lcl_result_tmp:" in
  25541. # change empty paths to '.'
  25542. ::) _lcl_result_tmp='.' ;;
  25543. # strip trailing slashes
  25544. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25545. :*:) ;;
  25546. esac
  25547. # squeeze repeated slashes
  25548. case "$_lcl_notation" in
  25549. # if the path contains any backslashes, turn slashes into backslashes
  25550. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25551. # if the path contains slashes, also turn backslashes into slashes
  25552. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25553. esac
  25554. eval $_lcl_result_var='$_lcl_result_tmp'
  25555. done
  25556. if test x$enable_shared = xyes; then
  25557. PKGCONFIG_LIBS_PRIV="
  25558. Libs.private:"
  25559. ENABLE_SHARED_TRUE=
  25560. ENABLE_SHARED_FALSE="#"
  25561. else
  25562. PKGCONFIG_LIBS_PRIV=
  25563. ENABLE_SHARED_TRUE="#"
  25564. ENABLE_SHARED_FALSE=
  25565. fi
  25566. if test x$enable_static = xyes; then
  25567. ENABLE_STATIC_TRUE=
  25568. ENABLE_STATIC_FALSE="#"
  25569. else
  25570. ENABLE_STATIC_TRUE="#"
  25571. ENABLE_STATIC_FALSE=
  25572. fi
  25573. cat >Makefile.rules <<__EOF__
  25574. # Build rules for objects
  25575. -include \$(OBJECTS:.lo=.d)
  25576. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25577. $srcdir/src/SDL.c: update-revision
  25578. $DEPENDS
  25579. $VERSION_DEPENDS
  25580. $SDLMAIN_DEPENDS
  25581. $SDLTEST_DEPENDS
  25582. $WAYLAND_PROTOCOLS_DEPENDS
  25583. __EOF__
  25584. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25585. ac_config_commands="$ac_config_commands sdl2_config"
  25586. SUMMARY="SDL2 Configure Summary:\n"
  25587. if test x$enable_shared = xyes; then
  25588. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25589. fi
  25590. if test x$enable_static = xyes; then
  25591. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25592. fi
  25593. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25594. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25595. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25596. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25597. if test x$have_x = xyes; then
  25598. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25599. fi
  25600. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25601. if test x$have_joystick_virtual = xyes; then
  25602. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25603. else
  25604. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25605. fi
  25606. if test x$have_samplerate_h_hdr = xyes; then
  25607. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25608. else
  25609. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25610. fi
  25611. if test x$have_libudev_h_hdr = xyes; then
  25612. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25613. else
  25614. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25615. fi
  25616. if test x$have_dbus_dbus_h_hdr = xyes; then
  25617. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25618. else
  25619. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25620. fi
  25621. if test x$enable_ime = xyes; then
  25622. SUMMARY="${SUMMARY}Using ime : YES\n"
  25623. else
  25624. SUMMARY="${SUMMARY}Using ime : NO\n"
  25625. fi
  25626. if test x$have_ibus_ibus_h_hdr = xyes; then
  25627. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25628. else
  25629. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25630. fi
  25631. if test x$have_fcitx = xyes; then
  25632. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25633. else
  25634. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25635. fi
  25636. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25637. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25638. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25639. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25640. SUMMARY="${SUMMARY}configure script with:\n"
  25641. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25642. fi
  25643. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25644. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25645. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25646. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25647. SUMMARY="${SUMMARY}configure script with:\n"
  25648. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25649. fi
  25650. ac_config_commands="$ac_config_commands summary"
  25651. cat >confcache <<\_ACEOF
  25652. # This file is a shell script that caches the results of configure
  25653. # tests run on this system so they can be shared between configure
  25654. # scripts and configure runs, see configure's option --config-cache.
  25655. # It is not useful on other systems. If it contains results you don't
  25656. # want to keep, you may remove or edit it.
  25657. #
  25658. # config.status only pays attention to the cache file if you give it
  25659. # the --recheck option to rerun configure.
  25660. #
  25661. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25662. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25663. # following values.
  25664. _ACEOF
  25665. # The following way of writing the cache mishandles newlines in values,
  25666. # but we know of no workaround that is simple, portable, and efficient.
  25667. # So, we kill variables containing newlines.
  25668. # Ultrix sh set writes to stderr and can't be redirected directly,
  25669. # and sets the high bit in the cache file unless we assign to the vars.
  25670. (
  25671. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25672. eval ac_val=\$$ac_var
  25673. case $ac_val in #(
  25674. *${as_nl}*)
  25675. case $ac_var in #(
  25676. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25677. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25678. esac
  25679. case $ac_var in #(
  25680. _ | IFS | as_nl) ;; #(
  25681. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25682. *) { eval $ac_var=; unset $ac_var;} ;;
  25683. esac ;;
  25684. esac
  25685. done
  25686. (set) 2>&1 |
  25687. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25688. *${as_nl}ac_space=\ *)
  25689. # `set' does not quote correctly, so add quotes: double-quote
  25690. # substitution turns \\\\ into \\, and sed turns \\ into \.
  25691. sed -n \
  25692. "s/'/'\\\\''/g;
  25693. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25694. ;; #(
  25695. *)
  25696. # `set' quotes correctly as required by POSIX, so do not add quotes.
  25697. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25698. ;;
  25699. esac |
  25700. sort
  25701. ) |
  25702. sed '
  25703. /^ac_cv_env_/b end
  25704. t clear
  25705. :clear
  25706. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  25707. t end
  25708. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25709. :end' >>confcache
  25710. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25711. if test -w "$cache_file"; then
  25712. if test "x$cache_file" != "x/dev/null"; then
  25713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25714. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  25715. if test ! -f "$cache_file" || test -h "$cache_file"; then
  25716. cat confcache >"$cache_file"
  25717. else
  25718. case $cache_file in #(
  25719. */* | ?:*)
  25720. mv -f confcache "$cache_file"$$ &&
  25721. mv -f "$cache_file"$$ "$cache_file" ;; #(
  25722. *)
  25723. mv -f confcache "$cache_file" ;;
  25724. esac
  25725. fi
  25726. fi
  25727. else
  25728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  25729. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  25730. fi
  25731. fi
  25732. rm -f confcache
  25733. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25734. # Let make expand exec_prefix.
  25735. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25736. DEFS=-DHAVE_CONFIG_H
  25737. ac_libobjs=
  25738. ac_ltlibobjs=
  25739. U=
  25740. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25741. # 1. Remove the extension, and $U if already installed.
  25742. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25743. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  25744. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25745. # will be set to the directory where LIBOBJS objects are built.
  25746. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25747. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  25748. done
  25749. LIBOBJS=$ac_libobjs
  25750. LTLIBOBJS=$ac_ltlibobjs
  25751. : "${CONFIG_STATUS=./config.status}"
  25752. ac_write_fail=0
  25753. ac_clean_files_save=$ac_clean_files
  25754. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  25756. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  25757. as_write_fail=0
  25758. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  25759. #! $SHELL
  25760. # Generated by $as_me.
  25761. # Run this file to recreate the current configuration.
  25762. # Compiler output produced by configure, useful for debugging
  25763. # configure, is in config.log if it exists.
  25764. debug=false
  25765. ac_cs_recheck=false
  25766. ac_cs_silent=false
  25767. SHELL=\${CONFIG_SHELL-$SHELL}
  25768. export SHELL
  25769. _ASEOF
  25770. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  25771. ## -------------------- ##
  25772. ## M4sh Initialization. ##
  25773. ## -------------------- ##
  25774. # Be more Bourne compatible
  25775. DUALCASE=1; export DUALCASE # for MKS sh
  25776. as_nop=:
  25777. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  25778. then :
  25779. emulate sh
  25780. NULLCMD=:
  25781. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25782. # is contrary to our usage. Disable this feature.
  25783. alias -g '${1+"$@"}'='"$@"'
  25784. setopt NO_GLOB_SUBST
  25785. else $as_nop
  25786. case `(set -o) 2>/dev/null` in #(
  25787. *posix*) :
  25788. set -o posix ;; #(
  25789. *) :
  25790. ;;
  25791. esac
  25792. fi
  25793. # Reset variables that may have inherited troublesome values from
  25794. # the environment.
  25795. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  25796. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  25797. # side effect of setting IFS to empty, thus disabling word splitting.)
  25798. # Quoting is to prevent editors from complaining about space-tab.
  25799. as_nl='
  25800. '
  25801. export as_nl
  25802. IFS=" "" $as_nl"
  25803. PS1='$ '
  25804. PS2='> '
  25805. PS4='+ '
  25806. # Ensure predictable behavior from utilities with locale-dependent output.
  25807. LC_ALL=C
  25808. export LC_ALL
  25809. LANGUAGE=C
  25810. export LANGUAGE
  25811. # We cannot yet rely on "unset" to work, but we need these variables
  25812. # to be unset--not just set to an empty or harmless value--now, to
  25813. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  25814. # also avoids known problems related to "unset" and subshell syntax
  25815. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  25816. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  25817. do eval test \${$as_var+y} \
  25818. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  25819. done
  25820. # Ensure that fds 0, 1, and 2 are open.
  25821. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  25822. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  25823. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  25824. # The user is always right.
  25825. if ${PATH_SEPARATOR+false} :; then
  25826. PATH_SEPARATOR=:
  25827. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  25828. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  25829. PATH_SEPARATOR=';'
  25830. }
  25831. fi
  25832. # Find who we are. Look in the path if we contain no directory separator.
  25833. as_myself=
  25834. case $0 in #((
  25835. *[\\/]* ) as_myself=$0 ;;
  25836. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25837. for as_dir in $PATH
  25838. do
  25839. IFS=$as_save_IFS
  25840. case $as_dir in #(((
  25841. '') as_dir=./ ;;
  25842. */) ;;
  25843. *) as_dir=$as_dir/ ;;
  25844. esac
  25845. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  25846. done
  25847. IFS=$as_save_IFS
  25848. ;;
  25849. esac
  25850. # We did not find ourselves, most probably we were run as `sh COMMAND'
  25851. # in which case we are not to be found in the path.
  25852. if test "x$as_myself" = x; then
  25853. as_myself=$0
  25854. fi
  25855. if test ! -f "$as_myself"; then
  25856. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  25857. exit 1
  25858. fi
  25859. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  25860. # ----------------------------------------
  25861. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  25862. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  25863. # script with STATUS, using 1 if that was 0.
  25864. as_fn_error ()
  25865. {
  25866. as_status=$1; test $as_status -eq 0 && as_status=1
  25867. if test "$4"; then
  25868. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  25869. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  25870. fi
  25871. printf "%s\n" "$as_me: error: $2" >&2
  25872. as_fn_exit $as_status
  25873. } # as_fn_error
  25874. # as_fn_set_status STATUS
  25875. # -----------------------
  25876. # Set $? to STATUS, without forking.
  25877. as_fn_set_status ()
  25878. {
  25879. return $1
  25880. } # as_fn_set_status
  25881. # as_fn_exit STATUS
  25882. # -----------------
  25883. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  25884. as_fn_exit ()
  25885. {
  25886. set +e
  25887. as_fn_set_status $1
  25888. exit $1
  25889. } # as_fn_exit
  25890. # as_fn_unset VAR
  25891. # ---------------
  25892. # Portably unset VAR.
  25893. as_fn_unset ()
  25894. {
  25895. { eval $1=; unset $1;}
  25896. }
  25897. as_unset=as_fn_unset
  25898. # as_fn_append VAR VALUE
  25899. # ----------------------
  25900. # Append the text in VALUE to the end of the definition contained in VAR. Take
  25901. # advantage of any shell optimizations that allow amortized linear growth over
  25902. # repeated appends, instead of the typical quadratic growth present in naive
  25903. # implementations.
  25904. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  25905. then :
  25906. eval 'as_fn_append ()
  25907. {
  25908. eval $1+=\$2
  25909. }'
  25910. else $as_nop
  25911. as_fn_append ()
  25912. {
  25913. eval $1=\$$1\$2
  25914. }
  25915. fi # as_fn_append
  25916. # as_fn_arith ARG...
  25917. # ------------------
  25918. # Perform arithmetic evaluation on the ARGs, and store the result in the
  25919. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  25920. # must be portable across $(()) and expr.
  25921. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  25922. then :
  25923. eval 'as_fn_arith ()
  25924. {
  25925. as_val=$(( $* ))
  25926. }'
  25927. else $as_nop
  25928. as_fn_arith ()
  25929. {
  25930. as_val=`expr "$@" || test $? -eq 1`
  25931. }
  25932. fi # as_fn_arith
  25933. if expr a : '\(a\)' >/dev/null 2>&1 &&
  25934. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  25935. as_expr=expr
  25936. else
  25937. as_expr=false
  25938. fi
  25939. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  25940. as_basename=basename
  25941. else
  25942. as_basename=false
  25943. fi
  25944. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  25945. as_dirname=dirname
  25946. else
  25947. as_dirname=false
  25948. fi
  25949. as_me=`$as_basename -- "$0" ||
  25950. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  25951. X"$0" : 'X\(//\)$' \| \
  25952. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  25953. printf "%s\n" X/"$0" |
  25954. sed '/^.*\/\([^/][^/]*\)\/*$/{
  25955. s//\1/
  25956. q
  25957. }
  25958. /^X\/\(\/\/\)$/{
  25959. s//\1/
  25960. q
  25961. }
  25962. /^X\/\(\/\).*/{
  25963. s//\1/
  25964. q
  25965. }
  25966. s/.*/./; q'`
  25967. # Avoid depending upon Character Ranges.
  25968. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  25969. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  25970. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  25971. as_cr_digits='0123456789'
  25972. as_cr_alnum=$as_cr_Letters$as_cr_digits
  25973. # Determine whether it's possible to make 'echo' print without a newline.
  25974. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  25975. # for compatibility with existing Makefiles.
  25976. ECHO_C= ECHO_N= ECHO_T=
  25977. case `echo -n x` in #(((((
  25978. -n*)
  25979. case `echo 'xy\c'` in
  25980. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  25981. xy) ECHO_C='\c';;
  25982. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  25983. ECHO_T=' ';;
  25984. esac;;
  25985. *)
  25986. ECHO_N='-n';;
  25987. esac
  25988. # For backward compatibility with old third-party macros, we provide
  25989. # the shell variables $as_echo and $as_echo_n. New code should use
  25990. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  25991. as_echo='printf %s\n'
  25992. as_echo_n='printf %s'
  25993. rm -f conf$$ conf$$.exe conf$$.file
  25994. if test -d conf$$.dir; then
  25995. rm -f conf$$.dir/conf$$.file
  25996. else
  25997. rm -f conf$$.dir
  25998. mkdir conf$$.dir 2>/dev/null
  25999. fi
  26000. if (echo >conf$$.file) 2>/dev/null; then
  26001. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26002. as_ln_s='ln -s'
  26003. # ... but there are two gotchas:
  26004. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26005. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26006. # In both cases, we have to default to `cp -pR'.
  26007. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26008. as_ln_s='cp -pR'
  26009. elif ln conf$$.file conf$$ 2>/dev/null; then
  26010. as_ln_s=ln
  26011. else
  26012. as_ln_s='cp -pR'
  26013. fi
  26014. else
  26015. as_ln_s='cp -pR'
  26016. fi
  26017. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26018. rmdir conf$$.dir 2>/dev/null
  26019. # as_fn_mkdir_p
  26020. # -------------
  26021. # Create "$as_dir" as a directory, including parents if necessary.
  26022. as_fn_mkdir_p ()
  26023. {
  26024. case $as_dir in #(
  26025. -*) as_dir=./$as_dir;;
  26026. esac
  26027. test -d "$as_dir" || eval $as_mkdir_p || {
  26028. as_dirs=
  26029. while :; do
  26030. case $as_dir in #(
  26031. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26032. *) as_qdir=$as_dir;;
  26033. esac
  26034. as_dirs="'$as_qdir' $as_dirs"
  26035. as_dir=`$as_dirname -- "$as_dir" ||
  26036. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26037. X"$as_dir" : 'X\(//\)[^/]' \| \
  26038. X"$as_dir" : 'X\(//\)$' \| \
  26039. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26040. printf "%s\n" X"$as_dir" |
  26041. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26042. s//\1/
  26043. q
  26044. }
  26045. /^X\(\/\/\)[^/].*/{
  26046. s//\1/
  26047. q
  26048. }
  26049. /^X\(\/\/\)$/{
  26050. s//\1/
  26051. q
  26052. }
  26053. /^X\(\/\).*/{
  26054. s//\1/
  26055. q
  26056. }
  26057. s/.*/./; q'`
  26058. test -d "$as_dir" && break
  26059. done
  26060. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26061. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26062. } # as_fn_mkdir_p
  26063. if mkdir -p . 2>/dev/null; then
  26064. as_mkdir_p='mkdir -p "$as_dir"'
  26065. else
  26066. test -d ./-p && rmdir ./-p
  26067. as_mkdir_p=false
  26068. fi
  26069. # as_fn_executable_p FILE
  26070. # -----------------------
  26071. # Test if FILE is an executable regular file.
  26072. as_fn_executable_p ()
  26073. {
  26074. test -f "$1" && test -x "$1"
  26075. } # as_fn_executable_p
  26076. as_test_x='test -x'
  26077. as_executable_p=as_fn_executable_p
  26078. # Sed expression to map a string onto a valid CPP name.
  26079. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26080. # Sed expression to map a string onto a valid variable name.
  26081. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26082. exec 6>&1
  26083. ## ----------------------------------- ##
  26084. ## Main body of $CONFIG_STATUS script. ##
  26085. ## ----------------------------------- ##
  26086. _ASEOF
  26087. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26088. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26089. # Save the log message, to keep $0 and so on meaningful, and to
  26090. # report actual input values of CONFIG_FILES etc. instead of their
  26091. # values after options handling.
  26092. ac_log="
  26093. This file was extended by $as_me, which was
  26094. generated by GNU Autoconf 2.71. Invocation command line was
  26095. CONFIG_FILES = $CONFIG_FILES
  26096. CONFIG_HEADERS = $CONFIG_HEADERS
  26097. CONFIG_LINKS = $CONFIG_LINKS
  26098. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26099. $ $0 $@
  26100. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26101. "
  26102. _ACEOF
  26103. case $ac_config_files in *"
  26104. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26105. esac
  26106. case $ac_config_headers in *"
  26107. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26108. esac
  26109. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26110. # Files that config.status was made for.
  26111. config_files="$ac_config_files"
  26112. config_headers="$ac_config_headers"
  26113. config_commands="$ac_config_commands"
  26114. _ACEOF
  26115. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26116. ac_cs_usage="\
  26117. \`$as_me' instantiates files and other configuration actions
  26118. from templates according to the current configuration. Unless the files
  26119. and actions are specified as TAGs, all are instantiated by default.
  26120. Usage: $0 [OPTION]... [TAG]...
  26121. -h, --help print this help, then exit
  26122. -V, --version print version number and configuration settings, then exit
  26123. --config print configuration, then exit
  26124. -q, --quiet, --silent
  26125. do not print progress messages
  26126. -d, --debug don't remove temporary files
  26127. --recheck update $as_me by reconfiguring in the same conditions
  26128. --file=FILE[:TEMPLATE]
  26129. instantiate the configuration file FILE
  26130. --header=FILE[:TEMPLATE]
  26131. instantiate the configuration header FILE
  26132. Configuration files:
  26133. $config_files
  26134. Configuration headers:
  26135. $config_headers
  26136. Configuration commands:
  26137. $config_commands
  26138. Report bugs to the package provider."
  26139. _ACEOF
  26140. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26141. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26142. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26143. ac_cs_config='$ac_cs_config_escaped'
  26144. ac_cs_version="\\
  26145. config.status
  26146. configured by $0, generated by GNU Autoconf 2.71,
  26147. with options \\"\$ac_cs_config\\"
  26148. Copyright (C) 2021 Free Software Foundation, Inc.
  26149. This config.status script is free software; the Free Software Foundation
  26150. gives unlimited permission to copy, distribute and modify it."
  26151. ac_pwd='$ac_pwd'
  26152. srcdir='$srcdir'
  26153. INSTALL='$INSTALL'
  26154. AWK='$AWK'
  26155. test -n "\$AWK" || AWK=awk
  26156. _ACEOF
  26157. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26158. # The default lists apply if the user does not specify any file.
  26159. ac_need_defaults=:
  26160. while test $# != 0
  26161. do
  26162. case $1 in
  26163. --*=?*)
  26164. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26165. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26166. ac_shift=:
  26167. ;;
  26168. --*=)
  26169. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26170. ac_optarg=
  26171. ac_shift=:
  26172. ;;
  26173. *)
  26174. ac_option=$1
  26175. ac_optarg=$2
  26176. ac_shift=shift
  26177. ;;
  26178. esac
  26179. case $ac_option in
  26180. # Handling of the options.
  26181. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26182. ac_cs_recheck=: ;;
  26183. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26184. printf "%s\n" "$ac_cs_version"; exit ;;
  26185. --config | --confi | --conf | --con | --co | --c )
  26186. printf "%s\n" "$ac_cs_config"; exit ;;
  26187. --debug | --debu | --deb | --de | --d | -d )
  26188. debug=: ;;
  26189. --file | --fil | --fi | --f )
  26190. $ac_shift
  26191. case $ac_optarg in
  26192. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26193. '') as_fn_error $? "missing file argument" ;;
  26194. esac
  26195. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26196. ac_need_defaults=false;;
  26197. --header | --heade | --head | --hea )
  26198. $ac_shift
  26199. case $ac_optarg in
  26200. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26201. esac
  26202. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26203. ac_need_defaults=false;;
  26204. --he | --h)
  26205. # Conflict between --help and --header
  26206. as_fn_error $? "ambiguous option: \`$1'
  26207. Try \`$0 --help' for more information.";;
  26208. --help | --hel | -h )
  26209. printf "%s\n" "$ac_cs_usage"; exit ;;
  26210. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26211. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26212. ac_cs_silent=: ;;
  26213. # This is an error.
  26214. -*) as_fn_error $? "unrecognized option: \`$1'
  26215. Try \`$0 --help' for more information." ;;
  26216. *) as_fn_append ac_config_targets " $1"
  26217. ac_need_defaults=false ;;
  26218. esac
  26219. shift
  26220. done
  26221. ac_configure_extra_args=
  26222. if $ac_cs_silent; then
  26223. exec 6>/dev/null
  26224. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26225. fi
  26226. _ACEOF
  26227. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26228. if \$ac_cs_recheck; then
  26229. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26230. shift
  26231. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26232. CONFIG_SHELL='$SHELL'
  26233. export CONFIG_SHELL
  26234. exec "\$@"
  26235. fi
  26236. _ACEOF
  26237. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26238. exec 5>>config.log
  26239. {
  26240. echo
  26241. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26242. ## Running $as_me. ##
  26243. _ASBOX
  26244. printf "%s\n" "$ac_log"
  26245. } >&5
  26246. _ACEOF
  26247. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26248. #
  26249. # INIT-COMMANDS
  26250. #
  26251. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26252. # if CDPATH is set.
  26253. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26254. sed_quote_subst='$sed_quote_subst'
  26255. double_quote_subst='$double_quote_subst'
  26256. delay_variable_subst='$delay_variable_subst'
  26257. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26258. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26259. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26260. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26261. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26262. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26263. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26264. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26265. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26266. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26267. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26268. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26269. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26270. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26271. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26272. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26273. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26274. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26275. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26276. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26277. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26278. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26279. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26280. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26281. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26282. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26283. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26284. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26285. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26286. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26287. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26288. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26289. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26290. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26291. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26292. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26293. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26294. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26295. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26296. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26297. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26298. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26299. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26300. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26301. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26302. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26303. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26304. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26305. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26306. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26307. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26308. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26309. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26310. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26311. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26312. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26313. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26314. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26315. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26316. 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"`'
  26317. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26318. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26319. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26320. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26321. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26322. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26323. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26324. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26325. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26326. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26327. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26328. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26329. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26330. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26331. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26332. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26333. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26334. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26335. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26336. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26337. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26338. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26339. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26340. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26341. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26342. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26343. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26344. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26345. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26346. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26347. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26348. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26349. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26350. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26351. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26352. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26353. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26354. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26355. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26356. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26357. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26358. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26359. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26360. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26361. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26362. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26363. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26364. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26365. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26366. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26367. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26368. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26369. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26370. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26371. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26372. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26373. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26374. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26375. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26376. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26377. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26378. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26379. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26380. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26381. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26382. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26383. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26384. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26385. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26386. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26387. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26388. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26389. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26390. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26391. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26392. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26393. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26394. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26395. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26396. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26397. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26398. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26399. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26400. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26401. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26402. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26403. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26404. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26405. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26406. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26407. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26408. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26409. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26410. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26411. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26412. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26413. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26414. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26415. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26416. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26417. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26418. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26419. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26420. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26421. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26422. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26423. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26424. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26425. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26426. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26427. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26428. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26429. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26430. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26431. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26432. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26433. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26434. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26435. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26436. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26437. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26438. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26439. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26440. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26441. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26442. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26443. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26444. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26445. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26446. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26447. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26448. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26449. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26450. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26451. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26452. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26453. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26454. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26455. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26456. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26457. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26458. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26459. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26460. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26461. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26462. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26463. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26464. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26465. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26466. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26467. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26468. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26469. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26470. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26471. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26472. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26473. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26474. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26475. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26476. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26477. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26478. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26479. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26480. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26481. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26482. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26483. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26484. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26485. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26486. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26487. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26488. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26489. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26490. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26491. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26492. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26493. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26494. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26495. LTCC='$LTCC'
  26496. LTCFLAGS='$LTCFLAGS'
  26497. compiler='$compiler_DEFAULT'
  26498. # A function that is used when there is no print builtin or printf.
  26499. func_fallback_echo ()
  26500. {
  26501. eval 'cat <<_LTECHO_EOF
  26502. \$1
  26503. _LTECHO_EOF'
  26504. }
  26505. # Quote evaled strings.
  26506. for var in AS \
  26507. DLLTOOL \
  26508. OBJDUMP \
  26509. SHELL \
  26510. ECHO \
  26511. PATH_SEPARATOR \
  26512. SED \
  26513. GREP \
  26514. EGREP \
  26515. FGREP \
  26516. LD \
  26517. NM \
  26518. LN_S \
  26519. lt_SP2NL \
  26520. lt_NL2SP \
  26521. reload_flag \
  26522. deplibs_check_method \
  26523. file_magic_cmd \
  26524. file_magic_glob \
  26525. want_nocaseglob \
  26526. sharedlib_from_linklib_cmd \
  26527. AR \
  26528. AR_FLAGS \
  26529. archiver_list_spec \
  26530. STRIP \
  26531. RANLIB \
  26532. CC \
  26533. CFLAGS \
  26534. compiler \
  26535. lt_cv_sys_global_symbol_pipe \
  26536. lt_cv_sys_global_symbol_to_cdecl \
  26537. lt_cv_sys_global_symbol_to_import \
  26538. lt_cv_sys_global_symbol_to_c_name_address \
  26539. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26540. lt_cv_nm_interface \
  26541. nm_file_list_spec \
  26542. lt_cv_truncate_bin \
  26543. lt_prog_compiler_no_builtin_flag \
  26544. lt_prog_compiler_pic \
  26545. lt_prog_compiler_wl \
  26546. lt_prog_compiler_static \
  26547. lt_cv_prog_compiler_c_o \
  26548. need_locks \
  26549. MANIFEST_TOOL \
  26550. DSYMUTIL \
  26551. NMEDIT \
  26552. LIPO \
  26553. OTOOL \
  26554. OTOOL64 \
  26555. shrext_cmds \
  26556. export_dynamic_flag_spec \
  26557. whole_archive_flag_spec \
  26558. compiler_needs_object \
  26559. with_gnu_ld \
  26560. allow_undefined_flag \
  26561. no_undefined_flag \
  26562. hardcode_libdir_flag_spec \
  26563. hardcode_libdir_separator \
  26564. exclude_expsyms \
  26565. include_expsyms \
  26566. file_list_spec \
  26567. variables_saved_for_relink \
  26568. libname_spec \
  26569. library_names_spec \
  26570. soname_spec \
  26571. install_override_mode \
  26572. finish_eval \
  26573. old_striplib \
  26574. striplib \
  26575. compiler_lib_search_dirs \
  26576. predep_objects \
  26577. postdep_objects \
  26578. predeps \
  26579. postdeps \
  26580. compiler_lib_search_path \
  26581. LD_RC \
  26582. LD_CXX \
  26583. reload_flag_RC \
  26584. reload_flag_CXX \
  26585. compiler_RC \
  26586. compiler_CXX \
  26587. lt_prog_compiler_no_builtin_flag_RC \
  26588. lt_prog_compiler_no_builtin_flag_CXX \
  26589. lt_prog_compiler_pic_RC \
  26590. lt_prog_compiler_pic_CXX \
  26591. lt_prog_compiler_wl_RC \
  26592. lt_prog_compiler_wl_CXX \
  26593. lt_prog_compiler_static_RC \
  26594. lt_prog_compiler_static_CXX \
  26595. lt_cv_prog_compiler_c_o_RC \
  26596. lt_cv_prog_compiler_c_o_CXX \
  26597. export_dynamic_flag_spec_RC \
  26598. export_dynamic_flag_spec_CXX \
  26599. whole_archive_flag_spec_RC \
  26600. whole_archive_flag_spec_CXX \
  26601. compiler_needs_object_RC \
  26602. compiler_needs_object_CXX \
  26603. with_gnu_ld_RC \
  26604. with_gnu_ld_CXX \
  26605. allow_undefined_flag_RC \
  26606. allow_undefined_flag_CXX \
  26607. no_undefined_flag_RC \
  26608. no_undefined_flag_CXX \
  26609. hardcode_libdir_flag_spec_RC \
  26610. hardcode_libdir_flag_spec_CXX \
  26611. hardcode_libdir_separator_RC \
  26612. hardcode_libdir_separator_CXX \
  26613. exclude_expsyms_RC \
  26614. exclude_expsyms_CXX \
  26615. include_expsyms_RC \
  26616. include_expsyms_CXX \
  26617. file_list_spec_RC \
  26618. file_list_spec_CXX \
  26619. compiler_lib_search_dirs_RC \
  26620. compiler_lib_search_dirs_CXX \
  26621. predep_objects_RC \
  26622. predep_objects_CXX \
  26623. postdep_objects_RC \
  26624. postdep_objects_CXX \
  26625. predeps_RC \
  26626. predeps_CXX \
  26627. postdeps_RC \
  26628. postdeps_CXX \
  26629. compiler_lib_search_path_RC \
  26630. compiler_lib_search_path_CXX; do
  26631. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26632. *[\\\\\\\`\\"\\\$]*)
  26633. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26634. ;;
  26635. *)
  26636. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26637. ;;
  26638. esac
  26639. done
  26640. # Double-quote double-evaled strings.
  26641. for var in reload_cmds \
  26642. old_postinstall_cmds \
  26643. old_postuninstall_cmds \
  26644. old_archive_cmds \
  26645. extract_expsyms_cmds \
  26646. old_archive_from_new_cmds \
  26647. old_archive_from_expsyms_cmds \
  26648. archive_cmds \
  26649. archive_expsym_cmds \
  26650. module_cmds \
  26651. module_expsym_cmds \
  26652. export_symbols_cmds \
  26653. prelink_cmds \
  26654. postlink_cmds \
  26655. postinstall_cmds \
  26656. postuninstall_cmds \
  26657. finish_cmds \
  26658. sys_lib_search_path_spec \
  26659. configure_time_dlsearch_path \
  26660. configure_time_lt_sys_library_path \
  26661. reload_cmds_RC \
  26662. reload_cmds_CXX \
  26663. old_archive_cmds_RC \
  26664. old_archive_cmds_CXX \
  26665. old_archive_from_new_cmds_RC \
  26666. old_archive_from_new_cmds_CXX \
  26667. old_archive_from_expsyms_cmds_RC \
  26668. old_archive_from_expsyms_cmds_CXX \
  26669. archive_cmds_RC \
  26670. archive_cmds_CXX \
  26671. archive_expsym_cmds_RC \
  26672. archive_expsym_cmds_CXX \
  26673. module_cmds_RC \
  26674. module_cmds_CXX \
  26675. module_expsym_cmds_RC \
  26676. module_expsym_cmds_CXX \
  26677. export_symbols_cmds_RC \
  26678. export_symbols_cmds_CXX \
  26679. prelink_cmds_RC \
  26680. prelink_cmds_CXX \
  26681. postlink_cmds_RC \
  26682. postlink_cmds_CXX; do
  26683. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26684. *[\\\\\\\`\\"\\\$]*)
  26685. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26686. ;;
  26687. *)
  26688. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26689. ;;
  26690. esac
  26691. done
  26692. ac_aux_dir='$ac_aux_dir'
  26693. # See if we are running on zsh, and set the options that allow our
  26694. # commands through without removal of \ escapes INIT.
  26695. if test -n "\${ZSH_VERSION+set}"; then
  26696. setopt NO_GLOB_SUBST
  26697. fi
  26698. PACKAGE='$PACKAGE'
  26699. VERSION='$VERSION'
  26700. RM='$RM'
  26701. ofile='$ofile'
  26702. SUMMARY="$SUMMARY"
  26703. _ACEOF
  26704. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26705. # Handling of arguments.
  26706. for ac_config_target in $ac_config_targets
  26707. do
  26708. case $ac_config_target in
  26709. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  26710. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26711. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  26712. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  26713. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  26714. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  26715. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  26716. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  26717. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  26718. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  26719. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  26720. esac
  26721. done
  26722. # If the user did not use the arguments to specify the items to instantiate,
  26723. # then the envvar interface is used. Set only those that are not.
  26724. # We use the long form for the default assignment because of an extremely
  26725. # bizarre bug on SunOS 4.1.3.
  26726. if $ac_need_defaults; then
  26727. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  26728. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  26729. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  26730. fi
  26731. # Have a temporary directory for convenience. Make it in the build tree
  26732. # simply because there is no reason against having it here, and in addition,
  26733. # creating and moving files from /tmp can sometimes cause problems.
  26734. # Hook for its removal unless debugging.
  26735. # Note that there is a small window in which the directory will not be cleaned:
  26736. # after its creation but before its name has been assigned to `$tmp'.
  26737. $debug ||
  26738. {
  26739. tmp= ac_tmp=
  26740. trap 'exit_status=$?
  26741. : "${ac_tmp:=$tmp}"
  26742. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  26743. ' 0
  26744. trap 'as_fn_exit 1' 1 2 13 15
  26745. }
  26746. # Create a (secure) tmp directory for tmp files.
  26747. {
  26748. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26749. test -d "$tmp"
  26750. } ||
  26751. {
  26752. tmp=./conf$$-$RANDOM
  26753. (umask 077 && mkdir "$tmp")
  26754. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  26755. ac_tmp=$tmp
  26756. # Set up the scripts for CONFIG_FILES section.
  26757. # No need to generate them if there are no CONFIG_FILES.
  26758. # This happens for instance with `./config.status config.h'.
  26759. if test -n "$CONFIG_FILES"; then
  26760. ac_cr=`echo X | tr X '\015'`
  26761. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  26762. # But we know of no other shell where ac_cr would be empty at this
  26763. # point, so we can use a bashism as a fallback.
  26764. if test "x$ac_cr" = x; then
  26765. eval ac_cr=\$\'\\r\'
  26766. fi
  26767. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26768. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26769. ac_cs_awk_cr='\\r'
  26770. else
  26771. ac_cs_awk_cr=$ac_cr
  26772. fi
  26773. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  26774. _ACEOF
  26775. {
  26776. echo "cat >conf$$subs.awk <<_ACEOF" &&
  26777. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26778. echo "_ACEOF"
  26779. } >conf$$subs.sh ||
  26780. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26781. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  26782. ac_delim='%!_!# '
  26783. for ac_last_try in false false false false false :; do
  26784. . ./conf$$subs.sh ||
  26785. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26786. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26787. if test $ac_delim_n = $ac_delim_num; then
  26788. break
  26789. elif $ac_last_try; then
  26790. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26791. else
  26792. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26793. fi
  26794. done
  26795. rm -f conf$$subs.sh
  26796. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26797. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  26798. _ACEOF
  26799. sed -n '
  26800. h
  26801. s/^/S["/; s/!.*/"]=/
  26802. p
  26803. g
  26804. s/^[^!]*!//
  26805. :repl
  26806. t repl
  26807. s/'"$ac_delim"'$//
  26808. t delim
  26809. :nl
  26810. h
  26811. s/\(.\{148\}\)..*/\1/
  26812. t more1
  26813. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  26814. p
  26815. n
  26816. b repl
  26817. :more1
  26818. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26819. p
  26820. g
  26821. s/.\{148\}//
  26822. t nl
  26823. :delim
  26824. h
  26825. s/\(.\{148\}\)..*/\1/
  26826. t more2
  26827. s/["\\]/\\&/g; s/^/"/; s/$/"/
  26828. p
  26829. b
  26830. :more2
  26831. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26832. p
  26833. g
  26834. s/.\{148\}//
  26835. t delim
  26836. ' <conf$$subs.awk | sed '
  26837. /^[^""]/{
  26838. N
  26839. s/\n//
  26840. }
  26841. ' >>$CONFIG_STATUS || ac_write_fail=1
  26842. rm -f conf$$subs.awk
  26843. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26844. _ACAWK
  26845. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  26846. for (key in S) S_is_set[key] = 1
  26847. FS = ""
  26848. }
  26849. {
  26850. line = $ 0
  26851. nfields = split(line, field, "@")
  26852. substed = 0
  26853. len = length(field[1])
  26854. for (i = 2; i < nfields; i++) {
  26855. key = field[i]
  26856. keylen = length(key)
  26857. if (S_is_set[key]) {
  26858. value = S[key]
  26859. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  26860. len += length(value) + length(field[++i])
  26861. substed = 1
  26862. } else
  26863. len += 1 + keylen
  26864. }
  26865. print line
  26866. }
  26867. _ACAWK
  26868. _ACEOF
  26869. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26870. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  26871. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  26872. else
  26873. cat
  26874. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  26875. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  26876. _ACEOF
  26877. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  26878. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  26879. # trailing colons and then remove the whole line if VPATH becomes empty
  26880. # (actually we leave an empty line to preserve line numbers).
  26881. if test "x$srcdir" = x.; then
  26882. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  26883. h
  26884. s///
  26885. s/^/:/
  26886. s/[ ]*$/:/
  26887. s/:\$(srcdir):/:/g
  26888. s/:\${srcdir}:/:/g
  26889. s/:@srcdir@:/:/g
  26890. s/^:*//
  26891. s/:*$//
  26892. x
  26893. s/\(=[ ]*\).*/\1/
  26894. G
  26895. s/\n//
  26896. s/^[^=]*=[ ]*$//
  26897. }'
  26898. fi
  26899. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26900. fi # test -n "$CONFIG_FILES"
  26901. # Set up the scripts for CONFIG_HEADERS section.
  26902. # No need to generate them if there are no CONFIG_HEADERS.
  26903. # This happens for instance with `./config.status Makefile'.
  26904. if test -n "$CONFIG_HEADERS"; then
  26905. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  26906. BEGIN {
  26907. _ACEOF
  26908. # Transform confdefs.h into an awk script `defines.awk', embedded as
  26909. # here-document in config.status, that substitutes the proper values into
  26910. # config.h.in to produce config.h.
  26911. # Create a delimiter string that does not exist in confdefs.h, to ease
  26912. # handling of long lines.
  26913. ac_delim='%!_!# '
  26914. for ac_last_try in false false :; do
  26915. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  26916. if test -z "$ac_tt"; then
  26917. break
  26918. elif $ac_last_try; then
  26919. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  26920. else
  26921. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26922. fi
  26923. done
  26924. # For the awk script, D is an array of macro values keyed by name,
  26925. # likewise P contains macro parameters if any. Preserve backslash
  26926. # newline sequences.
  26927. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  26928. sed -n '
  26929. s/.\{148\}/&'"$ac_delim"'/g
  26930. t rset
  26931. :rset
  26932. s/^[ ]*#[ ]*define[ ][ ]*/ /
  26933. t def
  26934. d
  26935. :def
  26936. s/\\$//
  26937. t bsnl
  26938. s/["\\]/\\&/g
  26939. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26940. D["\1"]=" \3"/p
  26941. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  26942. d
  26943. :bsnl
  26944. s/["\\]/\\&/g
  26945. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26946. D["\1"]=" \3\\\\\\n"\\/p
  26947. t cont
  26948. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  26949. t cont
  26950. d
  26951. :cont
  26952. n
  26953. s/.\{148\}/&'"$ac_delim"'/g
  26954. t clear
  26955. :clear
  26956. s/\\$//
  26957. t bsnlc
  26958. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  26959. d
  26960. :bsnlc
  26961. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  26962. b cont
  26963. ' <confdefs.h | sed '
  26964. s/'"$ac_delim"'/"\\\
  26965. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  26966. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26967. for (key in D) D_is_set[key] = 1
  26968. FS = ""
  26969. }
  26970. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  26971. line = \$ 0
  26972. split(line, arg, " ")
  26973. if (arg[1] == "#") {
  26974. defundef = arg[2]
  26975. mac1 = arg[3]
  26976. } else {
  26977. defundef = substr(arg[1], 2)
  26978. mac1 = arg[2]
  26979. }
  26980. split(mac1, mac2, "(") #)
  26981. macro = mac2[1]
  26982. prefix = substr(line, 1, index(line, defundef) - 1)
  26983. if (D_is_set[macro]) {
  26984. # Preserve the white space surrounding the "#".
  26985. print prefix "define", macro P[macro] D[macro]
  26986. next
  26987. } else {
  26988. # Replace #undef with comments. This is necessary, for example,
  26989. # in the case of _POSIX_SOURCE, which is predefined and required
  26990. # on some systems where configure will not decide to define it.
  26991. if (defundef == "undef") {
  26992. print "/*", prefix defundef, macro, "*/"
  26993. next
  26994. }
  26995. }
  26996. }
  26997. { print }
  26998. _ACAWK
  26999. _ACEOF
  27000. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27001. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27002. fi # test -n "$CONFIG_HEADERS"
  27003. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27004. shift
  27005. for ac_tag
  27006. do
  27007. case $ac_tag in
  27008. :[FHLC]) ac_mode=$ac_tag; continue;;
  27009. esac
  27010. case $ac_mode$ac_tag in
  27011. :[FHL]*:*);;
  27012. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27013. :[FH]-) ac_tag=-:-;;
  27014. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27015. esac
  27016. ac_save_IFS=$IFS
  27017. IFS=:
  27018. set x $ac_tag
  27019. IFS=$ac_save_IFS
  27020. shift
  27021. ac_file=$1
  27022. shift
  27023. case $ac_mode in
  27024. :L) ac_source=$1;;
  27025. :[FH])
  27026. ac_file_inputs=
  27027. for ac_f
  27028. do
  27029. case $ac_f in
  27030. -) ac_f="$ac_tmp/stdin";;
  27031. *) # Look for the file first in the build tree, then in the source tree
  27032. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27033. # because $ac_f cannot contain `:'.
  27034. test -f "$ac_f" ||
  27035. case $ac_f in
  27036. [\\/$]*) false;;
  27037. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27038. esac ||
  27039. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27040. esac
  27041. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27042. as_fn_append ac_file_inputs " '$ac_f'"
  27043. done
  27044. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27045. # use $as_me), people would be surprised to read:
  27046. # /* config.h. Generated by config.status. */
  27047. configure_input='Generated from '`
  27048. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27049. `' by configure.'
  27050. if test x"$ac_file" != x-; then
  27051. configure_input="$ac_file. $configure_input"
  27052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27053. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27054. fi
  27055. # Neutralize special characters interpreted by sed in replacement strings.
  27056. case $configure_input in #(
  27057. *\&* | *\|* | *\\* )
  27058. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27059. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27060. *) ac_sed_conf_input=$configure_input;;
  27061. esac
  27062. case $ac_tag in
  27063. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27064. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27065. esac
  27066. ;;
  27067. esac
  27068. ac_dir=`$as_dirname -- "$ac_file" ||
  27069. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27070. X"$ac_file" : 'X\(//\)[^/]' \| \
  27071. X"$ac_file" : 'X\(//\)$' \| \
  27072. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27073. printf "%s\n" X"$ac_file" |
  27074. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27075. s//\1/
  27076. q
  27077. }
  27078. /^X\(\/\/\)[^/].*/{
  27079. s//\1/
  27080. q
  27081. }
  27082. /^X\(\/\/\)$/{
  27083. s//\1/
  27084. q
  27085. }
  27086. /^X\(\/\).*/{
  27087. s//\1/
  27088. q
  27089. }
  27090. s/.*/./; q'`
  27091. as_dir="$ac_dir"; as_fn_mkdir_p
  27092. ac_builddir=.
  27093. case "$ac_dir" in
  27094. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27095. *)
  27096. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27097. # A ".." for each directory in $ac_dir_suffix.
  27098. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27099. case $ac_top_builddir_sub in
  27100. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27101. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27102. esac ;;
  27103. esac
  27104. ac_abs_top_builddir=$ac_pwd
  27105. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27106. # for backward compatibility:
  27107. ac_top_builddir=$ac_top_build_prefix
  27108. case $srcdir in
  27109. .) # We are building in place.
  27110. ac_srcdir=.
  27111. ac_top_srcdir=$ac_top_builddir_sub
  27112. ac_abs_top_srcdir=$ac_pwd ;;
  27113. [\\/]* | ?:[\\/]* ) # Absolute name.
  27114. ac_srcdir=$srcdir$ac_dir_suffix;
  27115. ac_top_srcdir=$srcdir
  27116. ac_abs_top_srcdir=$srcdir ;;
  27117. *) # Relative name.
  27118. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27119. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27120. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27121. esac
  27122. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27123. case $ac_mode in
  27124. :F)
  27125. #
  27126. # CONFIG_FILE
  27127. #
  27128. case $INSTALL in
  27129. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27130. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27131. esac
  27132. _ACEOF
  27133. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27134. # If the template does not know about datarootdir, expand it.
  27135. # FIXME: This hack should be removed a few years after 2.60.
  27136. ac_datarootdir_hack=; ac_datarootdir_seen=
  27137. ac_sed_dataroot='
  27138. /datarootdir/ {
  27139. p
  27140. q
  27141. }
  27142. /@datadir@/p
  27143. /@docdir@/p
  27144. /@infodir@/p
  27145. /@localedir@/p
  27146. /@mandir@/p'
  27147. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27148. *datarootdir*) ac_datarootdir_seen=yes;;
  27149. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27151. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27152. _ACEOF
  27153. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27154. ac_datarootdir_hack='
  27155. s&@datadir@&$datadir&g
  27156. s&@docdir@&$docdir&g
  27157. s&@infodir@&$infodir&g
  27158. s&@localedir@&$localedir&g
  27159. s&@mandir@&$mandir&g
  27160. s&\\\${datarootdir}&$datarootdir&g' ;;
  27161. esac
  27162. _ACEOF
  27163. # Neutralize VPATH when `$srcdir' = `.'.
  27164. # Shell code in configure.ac might set extrasub.
  27165. # FIXME: do we really want to maintain this feature?
  27166. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27167. ac_sed_extra="$ac_vpsub
  27168. $extrasub
  27169. _ACEOF
  27170. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27171. :t
  27172. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27173. s|@configure_input@|$ac_sed_conf_input|;t t
  27174. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27175. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27176. s&@srcdir@&$ac_srcdir&;t t
  27177. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27178. s&@top_srcdir@&$ac_top_srcdir&;t t
  27179. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27180. s&@builddir@&$ac_builddir&;t t
  27181. s&@abs_builddir@&$ac_abs_builddir&;t t
  27182. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27183. s&@INSTALL@&$ac_INSTALL&;t t
  27184. $ac_datarootdir_hack
  27185. "
  27186. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27187. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27188. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27189. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27190. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27191. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27193. which seems to be undefined. Please make sure it is defined" >&5
  27194. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27195. which seems to be undefined. Please make sure it is defined" >&2;}
  27196. rm -f "$ac_tmp/stdin"
  27197. case $ac_file in
  27198. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27199. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27200. esac \
  27201. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27202. ;;
  27203. :H)
  27204. #
  27205. # CONFIG_HEADER
  27206. #
  27207. if test x"$ac_file" != x-; then
  27208. {
  27209. printf "%s\n" "/* $configure_input */" >&1 \
  27210. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27211. } >"$ac_tmp/config.h" \
  27212. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27213. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27215. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27216. else
  27217. rm -f "$ac_file"
  27218. mv "$ac_tmp/config.h" "$ac_file" \
  27219. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27220. fi
  27221. else
  27222. printf "%s\n" "/* $configure_input */" >&1 \
  27223. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27224. || as_fn_error $? "could not create -" "$LINENO" 5
  27225. fi
  27226. ;;
  27227. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27228. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27229. ;;
  27230. esac
  27231. case $ac_file$ac_mode in
  27232. "libtool":C)
  27233. # See if we are running on zsh, and set the options that allow our
  27234. # commands through without removal of \ escapes.
  27235. if test -n "${ZSH_VERSION+set}"; then
  27236. setopt NO_GLOB_SUBST
  27237. fi
  27238. cfgfile=${ofile}T
  27239. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27240. $RM "$cfgfile"
  27241. cat <<_LT_EOF >> "$cfgfile"
  27242. #! $SHELL
  27243. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27244. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27245. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27246. # Provide generalized library-building support services.
  27247. # Written by Gordon Matzigkeit, 1996
  27248. # Copyright (C) 2014 Free Software Foundation, Inc.
  27249. # This is free software; see the source for copying conditions. There is NO
  27250. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27251. # GNU Libtool is free software; you can redistribute it and/or modify
  27252. # it under the terms of the GNU General Public License as published by
  27253. # the Free Software Foundation; either version 2 of of the License, or
  27254. # (at your option) any later version.
  27255. #
  27256. # As a special exception to the GNU General Public License, if you
  27257. # distribute this file as part of a program or library that is built
  27258. # using GNU Libtool, you may include this file under the same
  27259. # distribution terms that you use for the rest of that program.
  27260. #
  27261. # GNU Libtool is distributed in the hope that it will be useful, but
  27262. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27263. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27264. # GNU General Public License for more details.
  27265. #
  27266. # You should have received a copy of the GNU General Public License
  27267. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27268. # The names of the tagged configurations supported by this script.
  27269. available_tags='RC CXX '
  27270. # Configured defaults for sys_lib_dlsearch_path munging.
  27271. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27272. # ### BEGIN LIBTOOL CONFIG
  27273. # Which release of libtool.m4 was used?
  27274. macro_version=$macro_version
  27275. macro_revision=$macro_revision
  27276. # Assembler program.
  27277. AS=$lt_AS
  27278. # DLL creation program.
  27279. DLLTOOL=$lt_DLLTOOL
  27280. # Object dumper program.
  27281. OBJDUMP=$lt_OBJDUMP
  27282. # Whether or not to build shared libraries.
  27283. build_libtool_libs=$enable_shared
  27284. # Whether or not to build static libraries.
  27285. build_old_libs=$enable_static
  27286. # What type of objects to build.
  27287. pic_mode=$pic_mode
  27288. # Whether or not to optimize for fast installation.
  27289. fast_install=$enable_fast_install
  27290. # Shared archive member basename,for filename based shared library versioning on AIX.
  27291. shared_archive_member_spec=$shared_archive_member_spec
  27292. # Shell to use when invoking shell scripts.
  27293. SHELL=$lt_SHELL
  27294. # An echo program that protects backslashes.
  27295. ECHO=$lt_ECHO
  27296. # The PATH separator for the build system.
  27297. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27298. # The host system.
  27299. host_alias=$host_alias
  27300. host=$host
  27301. host_os=$host_os
  27302. # The build system.
  27303. build_alias=$build_alias
  27304. build=$build
  27305. build_os=$build_os
  27306. # A sed program that does not truncate output.
  27307. SED=$lt_SED
  27308. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27309. Xsed="\$SED -e 1s/^X//"
  27310. # A grep program that handles long lines.
  27311. GREP=$lt_GREP
  27312. # An ERE matcher.
  27313. EGREP=$lt_EGREP
  27314. # A literal string matcher.
  27315. FGREP=$lt_FGREP
  27316. # A BSD- or MS-compatible name lister.
  27317. NM=$lt_NM
  27318. # Whether we need soft or hard links.
  27319. LN_S=$lt_LN_S
  27320. # What is the maximum length of a command?
  27321. max_cmd_len=$max_cmd_len
  27322. # Object file suffix (normally "o").
  27323. objext=$ac_objext
  27324. # Executable file suffix (normally "").
  27325. exeext=$exeext
  27326. # whether the shell understands "unset".
  27327. lt_unset=$lt_unset
  27328. # turn spaces into newlines.
  27329. SP2NL=$lt_lt_SP2NL
  27330. # turn newlines into spaces.
  27331. NL2SP=$lt_lt_NL2SP
  27332. # convert \$build file names to \$host format.
  27333. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27334. # convert \$build files to toolchain format.
  27335. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27336. # Method to check whether dependent libraries are shared objects.
  27337. deplibs_check_method=$lt_deplibs_check_method
  27338. # Command to use when deplibs_check_method = "file_magic".
  27339. file_magic_cmd=$lt_file_magic_cmd
  27340. # How to find potential files when deplibs_check_method = "file_magic".
  27341. file_magic_glob=$lt_file_magic_glob
  27342. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27343. want_nocaseglob=$lt_want_nocaseglob
  27344. # Command to associate shared and link libraries.
  27345. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27346. # The archiver.
  27347. AR=$lt_AR
  27348. # Flags to create an archive.
  27349. AR_FLAGS=$lt_AR_FLAGS
  27350. # How to feed a file listing to the archiver.
  27351. archiver_list_spec=$lt_archiver_list_spec
  27352. # A symbol stripping program.
  27353. STRIP=$lt_STRIP
  27354. # Commands used to install an old-style archive.
  27355. RANLIB=$lt_RANLIB
  27356. old_postinstall_cmds=$lt_old_postinstall_cmds
  27357. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27358. # Whether to use a lock for old archive extraction.
  27359. lock_old_archive_extraction=$lock_old_archive_extraction
  27360. # A C compiler.
  27361. LTCC=$lt_CC
  27362. # LTCC compiler flags.
  27363. LTCFLAGS=$lt_CFLAGS
  27364. # Take the output of nm and produce a listing of raw symbols and C names.
  27365. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27366. # Transform the output of nm in a proper C declaration.
  27367. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27368. # Transform the output of nm into a list of symbols to manually relocate.
  27369. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27370. # Transform the output of nm in a C name address pair.
  27371. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27372. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27373. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27374. # The name lister interface.
  27375. nm_interface=$lt_lt_cv_nm_interface
  27376. # Specify filename containing input files for \$NM.
  27377. nm_file_list_spec=$lt_nm_file_list_spec
  27378. # The root where to search for dependent libraries,and where our libraries should be installed.
  27379. lt_sysroot=$lt_sysroot
  27380. # Command to truncate a binary pipe.
  27381. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27382. # The name of the directory that contains temporary libtool files.
  27383. objdir=$objdir
  27384. # Used to examine libraries when file_magic_cmd begins with "file".
  27385. MAGIC_CMD=$MAGIC_CMD
  27386. # Must we lock files when doing compilation?
  27387. need_locks=$lt_need_locks
  27388. # Manifest tool.
  27389. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27390. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27391. DSYMUTIL=$lt_DSYMUTIL
  27392. # Tool to change global to local symbols on Mac OS X.
  27393. NMEDIT=$lt_NMEDIT
  27394. # Tool to manipulate fat objects and archives on Mac OS X.
  27395. LIPO=$lt_LIPO
  27396. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27397. OTOOL=$lt_OTOOL
  27398. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27399. OTOOL64=$lt_OTOOL64
  27400. # Old archive suffix (normally "a").
  27401. libext=$libext
  27402. # Shared library suffix (normally ".so").
  27403. shrext_cmds=$lt_shrext_cmds
  27404. # The commands to extract the exported symbol list from a shared archive.
  27405. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27406. # Variables whose values should be saved in libtool wrapper scripts and
  27407. # restored at link time.
  27408. variables_saved_for_relink=$lt_variables_saved_for_relink
  27409. # Do we need the "lib" prefix for modules?
  27410. need_lib_prefix=$need_lib_prefix
  27411. # Do we need a version for libraries?
  27412. need_version=$need_version
  27413. # Library versioning type.
  27414. version_type=$version_type
  27415. # Shared library runtime path variable.
  27416. runpath_var=$runpath_var
  27417. # Shared library path variable.
  27418. shlibpath_var=$shlibpath_var
  27419. # Is shlibpath searched before the hard-coded library search path?
  27420. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27421. # Format of library name prefix.
  27422. libname_spec=$lt_libname_spec
  27423. # List of archive names. First name is the real one, the rest are links.
  27424. # The last name is the one that the linker finds with -lNAME
  27425. library_names_spec=$lt_library_names_spec
  27426. # The coded name of the library, if different from the real name.
  27427. soname_spec=$lt_soname_spec
  27428. # Permission mode override for installation of shared libraries.
  27429. install_override_mode=$lt_install_override_mode
  27430. # Command to use after installation of a shared archive.
  27431. postinstall_cmds=$lt_postinstall_cmds
  27432. # Command to use after uninstallation of a shared archive.
  27433. postuninstall_cmds=$lt_postuninstall_cmds
  27434. # Commands used to finish a libtool library installation in a directory.
  27435. finish_cmds=$lt_finish_cmds
  27436. # As "finish_cmds", except a single script fragment to be evaled but
  27437. # not shown.
  27438. finish_eval=$lt_finish_eval
  27439. # Whether we should hardcode library paths into libraries.
  27440. hardcode_into_libs=$hardcode_into_libs
  27441. # Compile-time system search path for libraries.
  27442. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27443. # Detected run-time system search path for libraries.
  27444. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27445. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27446. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27447. # Whether dlopen is supported.
  27448. dlopen_support=$enable_dlopen
  27449. # Whether dlopen of programs is supported.
  27450. dlopen_self=$enable_dlopen_self
  27451. # Whether dlopen of statically linked programs is supported.
  27452. dlopen_self_static=$enable_dlopen_self_static
  27453. # Commands to strip libraries.
  27454. old_striplib=$lt_old_striplib
  27455. striplib=$lt_striplib
  27456. # The linker used to build libraries.
  27457. LD=$lt_LD
  27458. # How to create reloadable object files.
  27459. reload_flag=$lt_reload_flag
  27460. reload_cmds=$lt_reload_cmds
  27461. # Commands used to build an old-style archive.
  27462. old_archive_cmds=$lt_old_archive_cmds
  27463. # A language specific compiler.
  27464. CC=$lt_compiler
  27465. # Is the compiler the GNU compiler?
  27466. with_gcc=$GCC
  27467. # Compiler flag to turn off builtin functions.
  27468. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27469. # Additional compiler flags for building library objects.
  27470. pic_flag=$lt_lt_prog_compiler_pic
  27471. # How to pass a linker flag through the compiler.
  27472. wl=$lt_lt_prog_compiler_wl
  27473. # Compiler flag to prevent dynamic linking.
  27474. link_static_flag=$lt_lt_prog_compiler_static
  27475. # Does compiler simultaneously support -c and -o options?
  27476. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27477. # Whether or not to add -lc for building shared libraries.
  27478. build_libtool_need_lc=$archive_cmds_need_lc
  27479. # Whether or not to disallow shared libs when runtime libs are static.
  27480. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27481. # Compiler flag to allow reflexive dlopens.
  27482. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27483. # Compiler flag to generate shared objects directly from archives.
  27484. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27485. # Whether the compiler copes with passing no objects directly.
  27486. compiler_needs_object=$lt_compiler_needs_object
  27487. # Create an old-style archive from a shared archive.
  27488. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27489. # Create a temporary old-style archive to link instead of a shared archive.
  27490. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27491. # Commands used to build a shared archive.
  27492. archive_cmds=$lt_archive_cmds
  27493. archive_expsym_cmds=$lt_archive_expsym_cmds
  27494. # Commands used to build a loadable module if different from building
  27495. # a shared archive.
  27496. module_cmds=$lt_module_cmds
  27497. module_expsym_cmds=$lt_module_expsym_cmds
  27498. # Whether we are building with GNU ld or not.
  27499. with_gnu_ld=$lt_with_gnu_ld
  27500. # Flag that allows shared libraries with undefined symbols to be built.
  27501. allow_undefined_flag=$lt_allow_undefined_flag
  27502. # Flag that enforces no undefined symbols.
  27503. no_undefined_flag=$lt_no_undefined_flag
  27504. # Flag to hardcode \$libdir into a binary during linking.
  27505. # This must work even if \$libdir does not exist
  27506. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27507. # Whether we need a single "-rpath" flag with a separated argument.
  27508. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27509. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27510. # DIR into the resulting binary.
  27511. hardcode_direct=$hardcode_direct
  27512. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27513. # DIR into the resulting binary and the resulting library dependency is
  27514. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27515. # library is relocated.
  27516. hardcode_direct_absolute=$hardcode_direct_absolute
  27517. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27518. # into the resulting binary.
  27519. hardcode_minus_L=$hardcode_minus_L
  27520. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27521. # into the resulting binary.
  27522. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27523. # Set to "yes" if building a shared library automatically hardcodes DIR
  27524. # into the library and all subsequent libraries and executables linked
  27525. # against it.
  27526. hardcode_automatic=$hardcode_automatic
  27527. # Set to yes if linker adds runtime paths of dependent libraries
  27528. # to runtime path list.
  27529. inherit_rpath=$inherit_rpath
  27530. # Whether libtool must link a program against all its dependency libraries.
  27531. link_all_deplibs=$link_all_deplibs
  27532. # Set to "yes" if exported symbols are required.
  27533. always_export_symbols=$always_export_symbols
  27534. # The commands to list exported symbols.
  27535. export_symbols_cmds=$lt_export_symbols_cmds
  27536. # Symbols that should not be listed in the preloaded symbols.
  27537. exclude_expsyms=$lt_exclude_expsyms
  27538. # Symbols that must always be exported.
  27539. include_expsyms=$lt_include_expsyms
  27540. # Commands necessary for linking programs (against libraries) with templates.
  27541. prelink_cmds=$lt_prelink_cmds
  27542. # Commands necessary for finishing linking programs.
  27543. postlink_cmds=$lt_postlink_cmds
  27544. # Specify filename containing input files.
  27545. file_list_spec=$lt_file_list_spec
  27546. # How to hardcode a shared library path into an executable.
  27547. hardcode_action=$hardcode_action
  27548. # The directories searched by this compiler when creating a shared library.
  27549. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27550. # Dependencies to place before and after the objects being linked to
  27551. # create a shared library.
  27552. predep_objects=$lt_predep_objects
  27553. postdep_objects=$lt_postdep_objects
  27554. predeps=$lt_predeps
  27555. postdeps=$lt_postdeps
  27556. # The library search path used internally by the compiler when linking
  27557. # a shared library.
  27558. compiler_lib_search_path=$lt_compiler_lib_search_path
  27559. # ### END LIBTOOL CONFIG
  27560. _LT_EOF
  27561. cat <<'_LT_EOF' >> "$cfgfile"
  27562. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27563. # func_munge_path_list VARIABLE PATH
  27564. # -----------------------------------
  27565. # VARIABLE is name of variable containing _space_ separated list of
  27566. # directories to be munged by the contents of PATH, which is string
  27567. # having a format:
  27568. # "DIR[:DIR]:"
  27569. # string "DIR[ DIR]" will be prepended to VARIABLE
  27570. # ":DIR[:DIR]"
  27571. # string "DIR[ DIR]" will be appended to VARIABLE
  27572. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27573. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27574. # "DIRA[ DIRA]" will be appended to VARIABLE
  27575. # "DIR[:DIR]"
  27576. # VARIABLE will be replaced by "DIR[ DIR]"
  27577. func_munge_path_list ()
  27578. {
  27579. case x$2 in
  27580. x)
  27581. ;;
  27582. *:)
  27583. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27584. ;;
  27585. x:*)
  27586. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27587. ;;
  27588. *::*)
  27589. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27590. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27591. ;;
  27592. *)
  27593. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27594. ;;
  27595. esac
  27596. }
  27597. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27598. func_cc_basename ()
  27599. {
  27600. for cc_temp in $*""; do
  27601. case $cc_temp in
  27602. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27603. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27604. \-*) ;;
  27605. *) break;;
  27606. esac
  27607. done
  27608. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27609. }
  27610. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27611. _LT_EOF
  27612. case $host_os in
  27613. aix3*)
  27614. cat <<\_LT_EOF >> "$cfgfile"
  27615. # AIX sometimes has problems with the GCC collect2 program. For some
  27616. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27617. # vanish in a puff of smoke.
  27618. if test set != "${COLLECT_NAMES+set}"; then
  27619. COLLECT_NAMES=
  27620. export COLLECT_NAMES
  27621. fi
  27622. _LT_EOF
  27623. ;;
  27624. esac
  27625. ltmain=$ac_aux_dir/ltmain.sh
  27626. # We use sed instead of cat because bash on DJGPP gets confused if
  27627. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27628. # text mode, it properly converts lines to CR/LF. This bash problem
  27629. # is reportedly fixed, but why not run on old versions too?
  27630. sed '$q' "$ltmain" >> "$cfgfile" \
  27631. || (rm -f "$cfgfile"; exit 1)
  27632. mv -f "$cfgfile" "$ofile" ||
  27633. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27634. chmod +x "$ofile"
  27635. cat <<_LT_EOF >> "$ofile"
  27636. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27637. # The linker used to build libraries.
  27638. LD=$lt_LD_RC
  27639. # How to create reloadable object files.
  27640. reload_flag=$lt_reload_flag_RC
  27641. reload_cmds=$lt_reload_cmds_RC
  27642. # Commands used to build an old-style archive.
  27643. old_archive_cmds=$lt_old_archive_cmds_RC
  27644. # A language specific compiler.
  27645. CC=$lt_compiler_RC
  27646. # Is the compiler the GNU compiler?
  27647. with_gcc=$GCC_RC
  27648. # Compiler flag to turn off builtin functions.
  27649. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27650. # Additional compiler flags for building library objects.
  27651. pic_flag=$lt_lt_prog_compiler_pic_RC
  27652. # How to pass a linker flag through the compiler.
  27653. wl=$lt_lt_prog_compiler_wl_RC
  27654. # Compiler flag to prevent dynamic linking.
  27655. link_static_flag=$lt_lt_prog_compiler_static_RC
  27656. # Does compiler simultaneously support -c and -o options?
  27657. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27658. # Whether or not to add -lc for building shared libraries.
  27659. build_libtool_need_lc=$archive_cmds_need_lc_RC
  27660. # Whether or not to disallow shared libs when runtime libs are static.
  27661. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  27662. # Compiler flag to allow reflexive dlopens.
  27663. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  27664. # Compiler flag to generate shared objects directly from archives.
  27665. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  27666. # Whether the compiler copes with passing no objects directly.
  27667. compiler_needs_object=$lt_compiler_needs_object_RC
  27668. # Create an old-style archive from a shared archive.
  27669. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  27670. # Create a temporary old-style archive to link instead of a shared archive.
  27671. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  27672. # Commands used to build a shared archive.
  27673. archive_cmds=$lt_archive_cmds_RC
  27674. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  27675. # Commands used to build a loadable module if different from building
  27676. # a shared archive.
  27677. module_cmds=$lt_module_cmds_RC
  27678. module_expsym_cmds=$lt_module_expsym_cmds_RC
  27679. # Whether we are building with GNU ld or not.
  27680. with_gnu_ld=$lt_with_gnu_ld_RC
  27681. # Flag that allows shared libraries with undefined symbols to be built.
  27682. allow_undefined_flag=$lt_allow_undefined_flag_RC
  27683. # Flag that enforces no undefined symbols.
  27684. no_undefined_flag=$lt_no_undefined_flag_RC
  27685. # Flag to hardcode \$libdir into a binary during linking.
  27686. # This must work even if \$libdir does not exist
  27687. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  27688. # Whether we need a single "-rpath" flag with a separated argument.
  27689. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  27690. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27691. # DIR into the resulting binary.
  27692. hardcode_direct=$hardcode_direct_RC
  27693. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27694. # DIR into the resulting binary and the resulting library dependency is
  27695. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27696. # library is relocated.
  27697. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  27698. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27699. # into the resulting binary.
  27700. hardcode_minus_L=$hardcode_minus_L_RC
  27701. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27702. # into the resulting binary.
  27703. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  27704. # Set to "yes" if building a shared library automatically hardcodes DIR
  27705. # into the library and all subsequent libraries and executables linked
  27706. # against it.
  27707. hardcode_automatic=$hardcode_automatic_RC
  27708. # Set to yes if linker adds runtime paths of dependent libraries
  27709. # to runtime path list.
  27710. inherit_rpath=$inherit_rpath_RC
  27711. # Whether libtool must link a program against all its dependency libraries.
  27712. link_all_deplibs=$link_all_deplibs_RC
  27713. # Set to "yes" if exported symbols are required.
  27714. always_export_symbols=$always_export_symbols_RC
  27715. # The commands to list exported symbols.
  27716. export_symbols_cmds=$lt_export_symbols_cmds_RC
  27717. # Symbols that should not be listed in the preloaded symbols.
  27718. exclude_expsyms=$lt_exclude_expsyms_RC
  27719. # Symbols that must always be exported.
  27720. include_expsyms=$lt_include_expsyms_RC
  27721. # Commands necessary for linking programs (against libraries) with templates.
  27722. prelink_cmds=$lt_prelink_cmds_RC
  27723. # Commands necessary for finishing linking programs.
  27724. postlink_cmds=$lt_postlink_cmds_RC
  27725. # Specify filename containing input files.
  27726. file_list_spec=$lt_file_list_spec_RC
  27727. # How to hardcode a shared library path into an executable.
  27728. hardcode_action=$hardcode_action_RC
  27729. # The directories searched by this compiler when creating a shared library.
  27730. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  27731. # Dependencies to place before and after the objects being linked to
  27732. # create a shared library.
  27733. predep_objects=$lt_predep_objects_RC
  27734. postdep_objects=$lt_postdep_objects_RC
  27735. predeps=$lt_predeps_RC
  27736. postdeps=$lt_postdeps_RC
  27737. # The library search path used internally by the compiler when linking
  27738. # a shared library.
  27739. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  27740. # ### END LIBTOOL TAG CONFIG: RC
  27741. _LT_EOF
  27742. cat <<_LT_EOF >> "$ofile"
  27743. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  27744. # The linker used to build libraries.
  27745. LD=$lt_LD_CXX
  27746. # How to create reloadable object files.
  27747. reload_flag=$lt_reload_flag_CXX
  27748. reload_cmds=$lt_reload_cmds_CXX
  27749. # Commands used to build an old-style archive.
  27750. old_archive_cmds=$lt_old_archive_cmds_CXX
  27751. # A language specific compiler.
  27752. CC=$lt_compiler_CXX
  27753. # Is the compiler the GNU compiler?
  27754. with_gcc=$GCC_CXX
  27755. # Compiler flag to turn off builtin functions.
  27756. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  27757. # Additional compiler flags for building library objects.
  27758. pic_flag=$lt_lt_prog_compiler_pic_CXX
  27759. # How to pass a linker flag through the compiler.
  27760. wl=$lt_lt_prog_compiler_wl_CXX
  27761. # Compiler flag to prevent dynamic linking.
  27762. link_static_flag=$lt_lt_prog_compiler_static_CXX
  27763. # Does compiler simultaneously support -c and -o options?
  27764. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  27765. # Whether or not to add -lc for building shared libraries.
  27766. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  27767. # Whether or not to disallow shared libs when runtime libs are static.
  27768. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  27769. # Compiler flag to allow reflexive dlopens.
  27770. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  27771. # Compiler flag to generate shared objects directly from archives.
  27772. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  27773. # Whether the compiler copes with passing no objects directly.
  27774. compiler_needs_object=$lt_compiler_needs_object_CXX
  27775. # Create an old-style archive from a shared archive.
  27776. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  27777. # Create a temporary old-style archive to link instead of a shared archive.
  27778. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  27779. # Commands used to build a shared archive.
  27780. archive_cmds=$lt_archive_cmds_CXX
  27781. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  27782. # Commands used to build a loadable module if different from building
  27783. # a shared archive.
  27784. module_cmds=$lt_module_cmds_CXX
  27785. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  27786. # Whether we are building with GNU ld or not.
  27787. with_gnu_ld=$lt_with_gnu_ld_CXX
  27788. # Flag that allows shared libraries with undefined symbols to be built.
  27789. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  27790. # Flag that enforces no undefined symbols.
  27791. no_undefined_flag=$lt_no_undefined_flag_CXX
  27792. # Flag to hardcode \$libdir into a binary during linking.
  27793. # This must work even if \$libdir does not exist
  27794. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  27795. # Whether we need a single "-rpath" flag with a separated argument.
  27796. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  27797. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27798. # DIR into the resulting binary.
  27799. hardcode_direct=$hardcode_direct_CXX
  27800. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27801. # DIR into the resulting binary and the resulting library dependency is
  27802. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27803. # library is relocated.
  27804. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  27805. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27806. # into the resulting binary.
  27807. hardcode_minus_L=$hardcode_minus_L_CXX
  27808. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27809. # into the resulting binary.
  27810. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  27811. # Set to "yes" if building a shared library automatically hardcodes DIR
  27812. # into the library and all subsequent libraries and executables linked
  27813. # against it.
  27814. hardcode_automatic=$hardcode_automatic_CXX
  27815. # Set to yes if linker adds runtime paths of dependent libraries
  27816. # to runtime path list.
  27817. inherit_rpath=$inherit_rpath_CXX
  27818. # Whether libtool must link a program against all its dependency libraries.
  27819. link_all_deplibs=$link_all_deplibs_CXX
  27820. # Set to "yes" if exported symbols are required.
  27821. always_export_symbols=$always_export_symbols_CXX
  27822. # The commands to list exported symbols.
  27823. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  27824. # Symbols that should not be listed in the preloaded symbols.
  27825. exclude_expsyms=$lt_exclude_expsyms_CXX
  27826. # Symbols that must always be exported.
  27827. include_expsyms=$lt_include_expsyms_CXX
  27828. # Commands necessary for linking programs (against libraries) with templates.
  27829. prelink_cmds=$lt_prelink_cmds_CXX
  27830. # Commands necessary for finishing linking programs.
  27831. postlink_cmds=$lt_postlink_cmds_CXX
  27832. # Specify filename containing input files.
  27833. file_list_spec=$lt_file_list_spec_CXX
  27834. # How to hardcode a shared library path into an executable.
  27835. hardcode_action=$hardcode_action_CXX
  27836. # The directories searched by this compiler when creating a shared library.
  27837. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  27838. # Dependencies to place before and after the objects being linked to
  27839. # create a shared library.
  27840. predep_objects=$lt_predep_objects_CXX
  27841. postdep_objects=$lt_postdep_objects_CXX
  27842. predeps=$lt_predeps_CXX
  27843. postdeps=$lt_postdeps_CXX
  27844. # The library search path used internally by the compiler when linking
  27845. # a shared library.
  27846. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  27847. # ### END LIBTOOL TAG CONFIG: CXX
  27848. _LT_EOF
  27849. ;;
  27850. "sdl2_config":C) chmod a+x sdl2-config ;;
  27851. "summary":C) printf "$SUMMARY" ;;
  27852. esac
  27853. done # for ac_tag
  27854. as_fn_exit 0
  27855. _ACEOF
  27856. ac_clean_files=$ac_clean_files_save
  27857. test $ac_write_fail = 0 ||
  27858. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  27859. # configure is writing to config.log, and then calls config.status.
  27860. # config.status does its own redirection, appending to config.log.
  27861. # Unfortunately, on DOS this fails, as config.log is still kept open
  27862. # by configure, so config.status won't be able to write to it; its
  27863. # output is simply discarded. So we exec the FD to /dev/null,
  27864. # effectively closing config.log, so it can be properly (re)opened and
  27865. # appended to by config.status. When coming back to configure, we
  27866. # need to make the FD available again.
  27867. if test "$no_create" != yes; then
  27868. ac_cs_success=:
  27869. ac_config_status_args=
  27870. test "$silent" = yes &&
  27871. ac_config_status_args="$ac_config_status_args --quiet"
  27872. exec 5>/dev/null
  27873. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  27874. exec 5>>config.log
  27875. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  27876. # would make configure fail if this is the last instruction.
  27877. $ac_cs_success || as_fn_exit 1
  27878. fi
  27879. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  27880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  27881. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  27882. fi