configure 951 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426
  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. as_fn_error $? "GNU sort(1) is required" "$LINENO" 5
  15628. fi
  15629. # Check whether --enable-largefile was given.
  15630. if test ${enable_largefile+y}
  15631. then :
  15632. enableval=$enable_largefile;
  15633. fi
  15634. if test "$enable_largefile" != no; then
  15635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15636. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15637. if test ${ac_cv_sys_largefile_CC+y}
  15638. then :
  15639. printf %s "(cached) " >&6
  15640. else $as_nop
  15641. ac_cv_sys_largefile_CC=no
  15642. if test "$GCC" != yes; then
  15643. ac_save_CC=$CC
  15644. while :; do
  15645. # IRIX 6.2 and later do not support large files by default,
  15646. # so use the C compiler's -n32 option if that helps.
  15647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15648. /* end confdefs.h. */
  15649. #include <sys/types.h>
  15650. /* Check that off_t can represent 2**63 - 1 correctly.
  15651. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15652. since some C++ compilers masquerading as C compilers
  15653. incorrectly reject 9223372036854775807. */
  15654. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15655. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15656. && LARGE_OFF_T % 2147483647 == 1)
  15657. ? 1 : -1];
  15658. int
  15659. main (void)
  15660. {
  15661. ;
  15662. return 0;
  15663. }
  15664. _ACEOF
  15665. if ac_fn_c_try_compile "$LINENO"
  15666. then :
  15667. break
  15668. fi
  15669. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15670. CC="$CC -n32"
  15671. if ac_fn_c_try_compile "$LINENO"
  15672. then :
  15673. ac_cv_sys_largefile_CC=' -n32'; break
  15674. fi
  15675. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15676. break
  15677. done
  15678. CC=$ac_save_CC
  15679. rm -f conftest.$ac_ext
  15680. fi
  15681. fi
  15682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15683. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15684. if test "$ac_cv_sys_largefile_CC" != no; then
  15685. CC=$CC$ac_cv_sys_largefile_CC
  15686. fi
  15687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15688. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15689. if test ${ac_cv_sys_file_offset_bits+y}
  15690. then :
  15691. printf %s "(cached) " >&6
  15692. else $as_nop
  15693. while :; do
  15694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15695. /* end confdefs.h. */
  15696. #include <sys/types.h>
  15697. /* Check that off_t can represent 2**63 - 1 correctly.
  15698. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15699. since some C++ compilers masquerading as C compilers
  15700. incorrectly reject 9223372036854775807. */
  15701. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15702. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15703. && LARGE_OFF_T % 2147483647 == 1)
  15704. ? 1 : -1];
  15705. int
  15706. main (void)
  15707. {
  15708. ;
  15709. return 0;
  15710. }
  15711. _ACEOF
  15712. if ac_fn_c_try_compile "$LINENO"
  15713. then :
  15714. ac_cv_sys_file_offset_bits=no; break
  15715. fi
  15716. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15718. /* end confdefs.h. */
  15719. #define _FILE_OFFSET_BITS 64
  15720. #include <sys/types.h>
  15721. /* Check that off_t can represent 2**63 - 1 correctly.
  15722. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15723. since some C++ compilers masquerading as C compilers
  15724. incorrectly reject 9223372036854775807. */
  15725. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15726. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15727. && LARGE_OFF_T % 2147483647 == 1)
  15728. ? 1 : -1];
  15729. int
  15730. main (void)
  15731. {
  15732. ;
  15733. return 0;
  15734. }
  15735. _ACEOF
  15736. if ac_fn_c_try_compile "$LINENO"
  15737. then :
  15738. ac_cv_sys_file_offset_bits=64; break
  15739. fi
  15740. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15741. ac_cv_sys_file_offset_bits=unknown
  15742. break
  15743. done
  15744. fi
  15745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15746. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15747. case $ac_cv_sys_file_offset_bits in #(
  15748. no | unknown) ;;
  15749. *)
  15750. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15751. ;;
  15752. esac
  15753. rm -rf conftest*
  15754. if test $ac_cv_sys_file_offset_bits = unknown; then
  15755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15756. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15757. if test ${ac_cv_sys_large_files+y}
  15758. then :
  15759. printf %s "(cached) " >&6
  15760. else $as_nop
  15761. while :; do
  15762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15763. /* end confdefs.h. */
  15764. #include <sys/types.h>
  15765. /* Check that off_t can represent 2**63 - 1 correctly.
  15766. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15767. since some C++ compilers masquerading as C compilers
  15768. incorrectly reject 9223372036854775807. */
  15769. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15770. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15771. && LARGE_OFF_T % 2147483647 == 1)
  15772. ? 1 : -1];
  15773. int
  15774. main (void)
  15775. {
  15776. ;
  15777. return 0;
  15778. }
  15779. _ACEOF
  15780. if ac_fn_c_try_compile "$LINENO"
  15781. then :
  15782. ac_cv_sys_large_files=no; break
  15783. fi
  15784. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15786. /* end confdefs.h. */
  15787. #define _LARGE_FILES 1
  15788. #include <sys/types.h>
  15789. /* Check that off_t can represent 2**63 - 1 correctly.
  15790. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15791. since some C++ compilers masquerading as C compilers
  15792. incorrectly reject 9223372036854775807. */
  15793. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15794. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15795. && LARGE_OFF_T % 2147483647 == 1)
  15796. ? 1 : -1];
  15797. int
  15798. main (void)
  15799. {
  15800. ;
  15801. return 0;
  15802. }
  15803. _ACEOF
  15804. if ac_fn_c_try_compile "$LINENO"
  15805. then :
  15806. ac_cv_sys_large_files=1; break
  15807. fi
  15808. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15809. ac_cv_sys_large_files=unknown
  15810. break
  15811. done
  15812. fi
  15813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15814. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15815. case $ac_cv_sys_large_files in #(
  15816. no | unknown) ;;
  15817. *)
  15818. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15819. ;;
  15820. esac
  15821. rm -rf conftest*
  15822. fi
  15823. fi
  15824. case "$host" in
  15825. *-*-mingw*)
  15826. # Except on msys, where make can't handle full pathnames (bug 1972)
  15827. ;;
  15828. *)
  15829. srcdir=`cd $srcdir && pwd`
  15830. ;;
  15831. esac
  15832. INCLUDE="-I$srcdir/include"
  15833. case "$host" in
  15834. *-*-nto-qnx*)
  15835. ;;
  15836. *)
  15837. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15838. ;;
  15839. esac
  15840. case "$host" in
  15841. *-*-haiku*)
  15842. LINKER='$(CXX)'
  15843. LIBTOOLLINKERTAG='CXX'
  15844. ;;
  15845. *)
  15846. LINKER='$(CC)'
  15847. LIBTOOLLINKERTAG='CC'
  15848. ;;
  15849. esac
  15850. if test x$srcdir != x.; then
  15851. INCLUDE="-Iinclude $INCLUDE"
  15852. elif test -d .git; then
  15853. as_fn_error $? "
  15854. *** When building from a git clone you should configure and build in a
  15855. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15856. " "$LINENO" 5
  15857. fi
  15858. BASE_CFLAGS=""
  15859. BASE_LDFLAGS=""
  15860. case "$host" in
  15861. *-*-cygwin*)
  15862. # We build SDL on cygwin without the UNIX emulation layer
  15863. save_CFLAGS="$CFLAGS"
  15864. have_no_cygwin=no
  15865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15866. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15867. CFLAGS="$save_CFLAGS -mno-cygwin"
  15868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15869. /* end confdefs.h. */
  15870. int
  15871. main (void)
  15872. {
  15873. ;
  15874. return 0;
  15875. }
  15876. _ACEOF
  15877. if ac_fn_c_try_compile "$LINENO"
  15878. then :
  15879. have_no_cygwin=yes
  15880. fi
  15881. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15883. printf "%s\n" "$have_no_cygwin" >&6; }
  15884. CFLAGS="$save_CFLAGS"
  15885. if test x$have_no_cygwin = xyes; then
  15886. BASE_CFLAGS="-mno-cygwin"
  15887. BASE_LDFLAGS="-mno-cygwin"
  15888. fi
  15889. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15890. ;;
  15891. esac
  15892. # Uncomment the following line if you want to force SDL and applications
  15893. # built with it to be compiled for a particular architecture.
  15894. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15895. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15896. # The default optimization for SDL is -O3 (Bug #31)
  15897. if test "x$orig_CFLAGS" = x; then
  15898. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15899. fi
  15900. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15901. BUILD_LDFLAGS="$LDFLAGS"
  15902. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15903. ## These are common directories to find software packages
  15904. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15905. # if test -d $path/include; then
  15906. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15907. # fi
  15908. # if test -d $path/lib; then
  15909. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15910. # fi
  15911. #done
  15912. SDL_CFLAGS="$BASE_CFLAGS"
  15913. SDL_LIBS="-lSDL2"
  15914. if test "x$BASE_LDFLAGS" != x; then
  15915. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15916. fi
  15917. if test "x$EXTRA_CFLAGS" != x; then
  15918. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15919. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15920. fi
  15921. if test "x$EXTRA_LDFLAGS" != x; then
  15922. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15923. fi
  15924. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15925. find_lib()
  15926. {
  15927. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15928. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15929. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15930. if test "$cross_compiling" = yes; then
  15931. host_lib_path=""
  15932. else
  15933. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15934. fi
  15935. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15936. 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`
  15937. if test x$lib != x; then
  15938. echo $lib
  15939. return
  15940. fi
  15941. done
  15942. }
  15943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15944. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15945. if test ${ac_cv_c_const+y}
  15946. then :
  15947. printf %s "(cached) " >&6
  15948. else $as_nop
  15949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15950. /* end confdefs.h. */
  15951. int
  15952. main (void)
  15953. {
  15954. #ifndef __cplusplus
  15955. /* Ultrix mips cc rejects this sort of thing. */
  15956. typedef int charset[2];
  15957. const charset cs = { 0, 0 };
  15958. /* SunOS 4.1.1 cc rejects this. */
  15959. char const *const *pcpcc;
  15960. char **ppc;
  15961. /* NEC SVR4.0.2 mips cc rejects this. */
  15962. struct point {int x, y;};
  15963. static struct point const zero = {0,0};
  15964. /* IBM XL C 1.02.0.0 rejects this.
  15965. It does not let you subtract one const X* pointer from another in
  15966. an arm of an if-expression whose if-part is not a constant
  15967. expression */
  15968. const char *g = "string";
  15969. pcpcc = &g + (g ? g-g : 0);
  15970. /* HPUX 7.0 cc rejects these. */
  15971. ++pcpcc;
  15972. ppc = (char**) pcpcc;
  15973. pcpcc = (char const *const *) ppc;
  15974. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15975. char tx;
  15976. char *t = &tx;
  15977. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15978. *t++ = 0;
  15979. if (s) return 0;
  15980. }
  15981. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15982. int x[] = {25, 17};
  15983. const int *foo = &x[0];
  15984. ++foo;
  15985. }
  15986. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15987. typedef const int *iptr;
  15988. iptr p = 0;
  15989. ++p;
  15990. }
  15991. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  15992. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15993. struct s { int j; const int *ap[3]; } bx;
  15994. struct s *b = &bx; b->j = 5;
  15995. }
  15996. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15997. const int foo = 10;
  15998. if (!foo) return 0;
  15999. }
  16000. return !cs[0] && !zero.x;
  16001. #endif
  16002. ;
  16003. return 0;
  16004. }
  16005. _ACEOF
  16006. if ac_fn_c_try_compile "$LINENO"
  16007. then :
  16008. ac_cv_c_const=yes
  16009. else $as_nop
  16010. ac_cv_c_const=no
  16011. fi
  16012. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16013. fi
  16014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16015. printf "%s\n" "$ac_cv_c_const" >&6; }
  16016. if test $ac_cv_c_const = no; then
  16017. printf "%s\n" "#define const /**/" >>confdefs.h
  16018. fi
  16019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16020. printf %s "checking for inline... " >&6; }
  16021. if test ${ac_cv_c_inline+y}
  16022. then :
  16023. printf %s "(cached) " >&6
  16024. else $as_nop
  16025. ac_cv_c_inline=no
  16026. for ac_kw in inline __inline__ __inline; do
  16027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16028. /* end confdefs.h. */
  16029. #ifndef __cplusplus
  16030. typedef int foo_t;
  16031. static $ac_kw foo_t static_foo (void) {return 0; }
  16032. $ac_kw foo_t foo (void) {return 0; }
  16033. #endif
  16034. _ACEOF
  16035. if ac_fn_c_try_compile "$LINENO"
  16036. then :
  16037. ac_cv_c_inline=$ac_kw
  16038. fi
  16039. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16040. test "$ac_cv_c_inline" != no && break
  16041. done
  16042. fi
  16043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16044. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16045. case $ac_cv_c_inline in
  16046. inline | yes) ;;
  16047. *)
  16048. case $ac_cv_c_inline in
  16049. no) ac_val=;;
  16050. *) ac_val=$ac_cv_c_inline;;
  16051. esac
  16052. cat >>confdefs.h <<_ACEOF
  16053. #ifndef __cplusplus
  16054. #define inline $ac_val
  16055. #endif
  16056. _ACEOF
  16057. ;;
  16058. esac
  16059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16060. printf %s "checking for working volatile... " >&6; }
  16061. if test ${ac_cv_c_volatile+y}
  16062. then :
  16063. printf %s "(cached) " >&6
  16064. else $as_nop
  16065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16066. /* end confdefs.h. */
  16067. int
  16068. main (void)
  16069. {
  16070. volatile int x;
  16071. int * volatile y = (int *) 0;
  16072. return !x && !y;
  16073. ;
  16074. return 0;
  16075. }
  16076. _ACEOF
  16077. if ac_fn_c_try_compile "$LINENO"
  16078. then :
  16079. ac_cv_c_volatile=yes
  16080. else $as_nop
  16081. ac_cv_c_volatile=no
  16082. fi
  16083. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16084. fi
  16085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16086. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16087. if test $ac_cv_c_volatile = no; then
  16088. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16089. fi
  16090. # Check whether --enable-assertions was given.
  16091. if test ${enable_assertions+y}
  16092. then :
  16093. enableval=$enable_assertions;
  16094. else $as_nop
  16095. enable_assertions=auto
  16096. fi
  16097. case "$enable_assertions" in
  16098. auto) # Use optimization settings to determine assertion level
  16099. ;;
  16100. disabled)
  16101. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16102. ;;
  16103. release)
  16104. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16105. ;;
  16106. enabled)
  16107. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16108. ;;
  16109. paranoid)
  16110. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16111. ;;
  16112. *)
  16113. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16114. ;;
  16115. esac
  16116. 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"
  16117. # Check whether --enable-dependency-tracking was given.
  16118. if test ${enable_dependency_tracking+y}
  16119. then :
  16120. enableval=$enable_dependency_tracking;
  16121. else $as_nop
  16122. enable_dependency_tracking=yes
  16123. fi
  16124. if test x$enable_dependency_tracking = xyes; then
  16125. have_gcc_mmd_mt=no
  16126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16127. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16129. /* end confdefs.h. */
  16130. #if !defined(__GNUC__) || __GNUC__ < 3
  16131. #error Dependency tracking requires GCC 3.0 or newer
  16132. #endif
  16133. int
  16134. main (void)
  16135. {
  16136. ;
  16137. return 0;
  16138. }
  16139. _ACEOF
  16140. if ac_fn_c_try_compile "$LINENO"
  16141. then :
  16142. have_gcc_mmd_mt=yes
  16143. fi
  16144. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16146. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16147. if test x$have_gcc_mmd_mt = xyes; then
  16148. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16149. fi
  16150. fi
  16151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16152. printf %s "checking for linker option --no-undefined... " >&6; }
  16153. have_no_undefined=no
  16154. case "$host" in
  16155. *-*-openbsd*)
  16156. ;;
  16157. *)
  16158. save_LDFLAGS="$LDFLAGS"
  16159. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16161. /* end confdefs.h. */
  16162. int
  16163. main (void)
  16164. {
  16165. ;
  16166. return 0;
  16167. }
  16168. _ACEOF
  16169. if ac_fn_c_try_link "$LINENO"
  16170. then :
  16171. have_no_undefined=yes
  16172. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16173. fi
  16174. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16175. conftest$ac_exeext conftest.$ac_ext
  16176. LDFLAGS="$save_LDFLAGS"
  16177. ;;
  16178. esac
  16179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16180. printf "%s\n" "$have_no_undefined" >&6; }
  16181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16182. printf %s "checking for linker option --dynamicbase... " >&6; }
  16183. have_dynamicbase=no
  16184. case "$host" in
  16185. *)
  16186. save_LDFLAGS="$LDFLAGS"
  16187. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16189. /* end confdefs.h. */
  16190. int
  16191. main (void)
  16192. {
  16193. ;
  16194. return 0;
  16195. }
  16196. _ACEOF
  16197. if ac_fn_c_try_link "$LINENO"
  16198. then :
  16199. have_dynamicbase=yes
  16200. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16201. fi
  16202. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16203. conftest$ac_exeext conftest.$ac_ext
  16204. LDFLAGS="$save_LDFLAGS"
  16205. ;;
  16206. esac
  16207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16208. printf "%s\n" "$have_dynamicbase" >&6; }
  16209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16210. printf %s "checking for linker option --nxcompat... " >&6; }
  16211. have_nxcompat=no
  16212. case "$host" in
  16213. *)
  16214. save_LDFLAGS="$LDFLAGS"
  16215. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16217. /* end confdefs.h. */
  16218. int
  16219. main (void)
  16220. {
  16221. ;
  16222. return 0;
  16223. }
  16224. _ACEOF
  16225. if ac_fn_c_try_link "$LINENO"
  16226. then :
  16227. have_nxcompat=yes
  16228. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16229. fi
  16230. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16231. conftest$ac_exeext conftest.$ac_ext
  16232. LDFLAGS="$save_LDFLAGS"
  16233. ;;
  16234. esac
  16235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16236. printf "%s\n" "$have_nxcompat" >&6; }
  16237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16238. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16239. have_high_entropy_va=no
  16240. case "$host" in
  16241. *)
  16242. save_LDFLAGS="$LDFLAGS"
  16243. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16245. /* end confdefs.h. */
  16246. int
  16247. main (void)
  16248. {
  16249. ;
  16250. return 0;
  16251. }
  16252. _ACEOF
  16253. if ac_fn_c_try_link "$LINENO"
  16254. then :
  16255. have_high_entropy_va=yes
  16256. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16257. fi
  16258. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16259. conftest$ac_exeext conftest.$ac_ext
  16260. LDFLAGS="$save_LDFLAGS"
  16261. ;;
  16262. esac
  16263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16264. printf "%s\n" "$have_high_entropy_va" >&6; }
  16265. # Check whether --enable-libc was given.
  16266. if test ${enable_libc+y}
  16267. then :
  16268. enableval=$enable_libc;
  16269. else $as_nop
  16270. enable_libc=yes
  16271. fi
  16272. if test x$enable_libc = xyes; then
  16273. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16274. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16275. if test "x$ac_cv_header_sys_types_h" = xyes
  16276. then :
  16277. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16278. fi
  16279. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16280. if test "x$ac_cv_header_stdio_h" = xyes
  16281. then :
  16282. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16283. fi
  16284. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16285. if test "x$ac_cv_header_stdlib_h" = xyes
  16286. then :
  16287. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16288. fi
  16289. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16290. if test "x$ac_cv_header_stddef_h" = xyes
  16291. then :
  16292. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16293. fi
  16294. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16295. if test "x$ac_cv_header_stdarg_h" = xyes
  16296. then :
  16297. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16298. fi
  16299. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16300. if test "x$ac_cv_header_malloc_h" = xyes
  16301. then :
  16302. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16303. fi
  16304. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16305. if test "x$ac_cv_header_memory_h" = xyes
  16306. then :
  16307. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16308. fi
  16309. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16310. if test "x$ac_cv_header_string_h" = xyes
  16311. then :
  16312. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16313. fi
  16314. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16315. if test "x$ac_cv_header_strings_h" = xyes
  16316. then :
  16317. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16318. fi
  16319. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16320. if test "x$ac_cv_header_wchar_h" = xyes
  16321. then :
  16322. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16323. fi
  16324. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16325. if test "x$ac_cv_header_inttypes_h" = xyes
  16326. then :
  16327. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16328. fi
  16329. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16330. if test "x$ac_cv_header_stdint_h" = xyes
  16331. then :
  16332. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16333. fi
  16334. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16335. if test "x$ac_cv_header_limits_h" = xyes
  16336. then :
  16337. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16338. fi
  16339. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16340. if test "x$ac_cv_header_ctype_h" = xyes
  16341. then :
  16342. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16343. fi
  16344. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16345. if test "x$ac_cv_header_math_h" = xyes
  16346. then :
  16347. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16348. fi
  16349. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16350. if test "x$ac_cv_header_float_h" = xyes
  16351. then :
  16352. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16353. fi
  16354. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16355. if test "x$ac_cv_header_iconv_h" = xyes
  16356. then :
  16357. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16358. fi
  16359. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16360. if test "x$ac_cv_header_signal_h" = xyes
  16361. then :
  16362. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16363. fi
  16364. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16365. if test "x$ac_cv_type_size_t" = xyes
  16366. then :
  16367. else $as_nop
  16368. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16369. fi
  16370. ac_ext=c
  16371. ac_cpp='$CPP $CPPFLAGS'
  16372. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16373. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16374. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16376. printf %s "checking how to run the C preprocessor... " >&6; }
  16377. # On Suns, sometimes $CPP names a directory.
  16378. if test -n "$CPP" && test -d "$CPP"; then
  16379. CPP=
  16380. fi
  16381. if test -z "$CPP"; then
  16382. if test ${ac_cv_prog_CPP+y}
  16383. then :
  16384. printf %s "(cached) " >&6
  16385. else $as_nop
  16386. # Double quotes because $CC needs to be expanded
  16387. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16388. do
  16389. ac_preproc_ok=false
  16390. for ac_c_preproc_warn_flag in '' yes
  16391. do
  16392. # Use a header file that comes with gcc, so configuring glibc
  16393. # with a fresh cross-compiler works.
  16394. # On the NeXT, cc -E runs the code through the compiler's parser,
  16395. # not just through cpp. "Syntax error" is here to catch this case.
  16396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16397. /* end confdefs.h. */
  16398. #include <limits.h>
  16399. Syntax error
  16400. _ACEOF
  16401. if ac_fn_c_try_cpp "$LINENO"
  16402. then :
  16403. else $as_nop
  16404. # Broken: fails on valid input.
  16405. continue
  16406. fi
  16407. rm -f conftest.err conftest.i conftest.$ac_ext
  16408. # OK, works on sane cases. Now check whether nonexistent headers
  16409. # can be detected and how.
  16410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16411. /* end confdefs.h. */
  16412. #include <ac_nonexistent.h>
  16413. _ACEOF
  16414. if ac_fn_c_try_cpp "$LINENO"
  16415. then :
  16416. # Broken: success on invalid input.
  16417. continue
  16418. else $as_nop
  16419. # Passes both tests.
  16420. ac_preproc_ok=:
  16421. break
  16422. fi
  16423. rm -f conftest.err conftest.i conftest.$ac_ext
  16424. done
  16425. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16426. rm -f conftest.i conftest.err conftest.$ac_ext
  16427. if $ac_preproc_ok
  16428. then :
  16429. break
  16430. fi
  16431. done
  16432. ac_cv_prog_CPP=$CPP
  16433. fi
  16434. CPP=$ac_cv_prog_CPP
  16435. else
  16436. ac_cv_prog_CPP=$CPP
  16437. fi
  16438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16439. printf "%s\n" "$CPP" >&6; }
  16440. ac_preproc_ok=false
  16441. for ac_c_preproc_warn_flag in '' yes
  16442. do
  16443. # Use a header file that comes with gcc, so configuring glibc
  16444. # with a fresh cross-compiler works.
  16445. # On the NeXT, cc -E runs the code through the compiler's parser,
  16446. # not just through cpp. "Syntax error" is here to catch this case.
  16447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16448. /* end confdefs.h. */
  16449. #include <limits.h>
  16450. Syntax error
  16451. _ACEOF
  16452. if ac_fn_c_try_cpp "$LINENO"
  16453. then :
  16454. else $as_nop
  16455. # Broken: fails on valid input.
  16456. continue
  16457. fi
  16458. rm -f conftest.err conftest.i conftest.$ac_ext
  16459. # OK, works on sane cases. Now check whether nonexistent headers
  16460. # can be detected and how.
  16461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16462. /* end confdefs.h. */
  16463. #include <ac_nonexistent.h>
  16464. _ACEOF
  16465. if ac_fn_c_try_cpp "$LINENO"
  16466. then :
  16467. # Broken: success on invalid input.
  16468. continue
  16469. else $as_nop
  16470. # Passes both tests.
  16471. ac_preproc_ok=:
  16472. break
  16473. fi
  16474. rm -f conftest.err conftest.i conftest.$ac_ext
  16475. done
  16476. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16477. rm -f conftest.i conftest.err conftest.$ac_ext
  16478. if $ac_preproc_ok
  16479. then :
  16480. else $as_nop
  16481. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16482. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16483. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16484. See \`config.log' for more details" "$LINENO" 5; }
  16485. fi
  16486. ac_ext=c
  16487. ac_cpp='$CPP $CPPFLAGS'
  16488. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16489. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16490. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16492. printf %s "checking for M_PI in math.h... " >&6; }
  16493. if test ${ac_cv_define_M_PI+y}
  16494. then :
  16495. printf %s "(cached) " >&6
  16496. else $as_nop
  16497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16498. /* end confdefs.h. */
  16499. #include <math.h>
  16500. #ifdef M_PI
  16501. YES_IS_DEFINED
  16502. #endif
  16503. _ACEOF
  16504. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16505. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16506. then :
  16507. ac_cv_define_M_PI=yes
  16508. else $as_nop
  16509. ac_cv_define_M_PI=no
  16510. fi
  16511. rm -rf conftest*
  16512. fi
  16513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16514. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16515. if test "$ac_cv_define_M_PI" = "yes" ; then
  16516. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16517. fi
  16518. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16519. # for constant arguments. Useless!
  16520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16521. printf %s "checking for working alloca.h... " >&6; }
  16522. if test ${ac_cv_working_alloca_h+y}
  16523. then :
  16524. printf %s "(cached) " >&6
  16525. else $as_nop
  16526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16527. /* end confdefs.h. */
  16528. #include <alloca.h>
  16529. int
  16530. main (void)
  16531. {
  16532. char *p = (char *) alloca (2 * sizeof (int));
  16533. if (p) return 0;
  16534. ;
  16535. return 0;
  16536. }
  16537. _ACEOF
  16538. if ac_fn_c_try_link "$LINENO"
  16539. then :
  16540. ac_cv_working_alloca_h=yes
  16541. else $as_nop
  16542. ac_cv_working_alloca_h=no
  16543. fi
  16544. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16545. conftest$ac_exeext conftest.$ac_ext
  16546. fi
  16547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16548. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16549. if test $ac_cv_working_alloca_h = yes; then
  16550. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16551. fi
  16552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16553. printf %s "checking for alloca... " >&6; }
  16554. if test ${ac_cv_func_alloca_works+y}
  16555. then :
  16556. printf %s "(cached) " >&6
  16557. else $as_nop
  16558. if test $ac_cv_working_alloca_h = yes; then
  16559. ac_cv_func_alloca_works=yes
  16560. else
  16561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16562. /* end confdefs.h. */
  16563. #include <stdlib.h>
  16564. #include <stddef.h>
  16565. #ifndef alloca
  16566. # ifdef __GNUC__
  16567. # define alloca __builtin_alloca
  16568. # elif defined _MSC_VER
  16569. # include <malloc.h>
  16570. # define alloca _alloca
  16571. # else
  16572. # ifdef __cplusplus
  16573. extern "C"
  16574. # endif
  16575. void *alloca (size_t);
  16576. # endif
  16577. #endif
  16578. int
  16579. main (void)
  16580. {
  16581. char *p = (char *) alloca (1);
  16582. if (p) return 0;
  16583. ;
  16584. return 0;
  16585. }
  16586. _ACEOF
  16587. if ac_fn_c_try_link "$LINENO"
  16588. then :
  16589. ac_cv_func_alloca_works=yes
  16590. else $as_nop
  16591. ac_cv_func_alloca_works=no
  16592. fi
  16593. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16594. conftest$ac_exeext conftest.$ac_ext
  16595. fi
  16596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16597. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16598. fi
  16599. if test $ac_cv_func_alloca_works = yes; then
  16600. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16601. else
  16602. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16603. # that cause trouble. Some versions do not even contain alloca or
  16604. # contain a buggy version. If you still want to use their alloca,
  16605. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16606. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16607. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16609. printf %s "checking stack direction for C alloca... " >&6; }
  16610. if test ${ac_cv_c_stack_direction+y}
  16611. then :
  16612. printf %s "(cached) " >&6
  16613. else $as_nop
  16614. if test "$cross_compiling" = yes
  16615. then :
  16616. ac_cv_c_stack_direction=0
  16617. else $as_nop
  16618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16619. /* end confdefs.h. */
  16620. $ac_includes_default
  16621. int
  16622. find_stack_direction (int *addr, int depth)
  16623. {
  16624. int dir, dummy = 0;
  16625. if (! addr)
  16626. addr = &dummy;
  16627. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16628. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16629. return dir + dummy;
  16630. }
  16631. int
  16632. main (int argc, char **argv)
  16633. {
  16634. return find_stack_direction (0, argc + !argv + 20) < 0;
  16635. }
  16636. _ACEOF
  16637. if ac_fn_c_try_run "$LINENO"
  16638. then :
  16639. ac_cv_c_stack_direction=1
  16640. else $as_nop
  16641. ac_cv_c_stack_direction=-1
  16642. fi
  16643. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16644. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16645. fi
  16646. fi
  16647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16648. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16649. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16650. fi
  16651. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16652. if test "x$ac_cv_func_mprotect" = xyes
  16653. then :
  16654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16655. /* end confdefs.h. */
  16656. #include <sys/types.h>
  16657. #include <sys/mman.h>
  16658. int
  16659. main (void)
  16660. {
  16661. ;
  16662. return 0;
  16663. }
  16664. _ACEOF
  16665. if ac_fn_c_try_compile "$LINENO"
  16666. then :
  16667. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16668. fi
  16669. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16670. fi
  16671. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16672. if test "x$ac_cv_func_malloc" = xyes
  16673. then :
  16674. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16675. fi
  16676. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16677. if test "x$ac_cv_func_calloc" = xyes
  16678. then :
  16679. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16680. fi
  16681. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16682. if test "x$ac_cv_func_realloc" = xyes
  16683. then :
  16684. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16685. fi
  16686. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16687. if test "x$ac_cv_func_free" = xyes
  16688. then :
  16689. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16690. fi
  16691. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16692. if test "x$ac_cv_func_getenv" = xyes
  16693. then :
  16694. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16695. fi
  16696. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16697. if test "x$ac_cv_func_setenv" = xyes
  16698. then :
  16699. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16700. fi
  16701. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16702. if test "x$ac_cv_func_putenv" = xyes
  16703. then :
  16704. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16705. fi
  16706. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16707. if test "x$ac_cv_func_unsetenv" = xyes
  16708. then :
  16709. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16710. fi
  16711. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16712. if test "x$ac_cv_func_bsearch" = xyes
  16713. then :
  16714. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16715. fi
  16716. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16717. if test "x$ac_cv_func_qsort" = xyes
  16718. then :
  16719. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16720. fi
  16721. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16722. if test "x$ac_cv_func_abs" = xyes
  16723. then :
  16724. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16725. fi
  16726. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16727. if test "x$ac_cv_func_bcopy" = xyes
  16728. then :
  16729. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16730. fi
  16731. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16732. if test "x$ac_cv_func_memset" = xyes
  16733. then :
  16734. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16735. fi
  16736. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16737. if test "x$ac_cv_func_memcmp" = xyes
  16738. then :
  16739. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16740. fi
  16741. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16742. if test "x$ac_cv_func_memcpy" = xyes
  16743. then :
  16744. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16745. fi
  16746. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16747. if test "x$ac_cv_func_memmove" = xyes
  16748. then :
  16749. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16750. fi
  16751. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16752. if test "x$ac_cv_func_wcslen" = xyes
  16753. then :
  16754. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16755. fi
  16756. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16757. if test "x$ac_cv_func_wcslcpy" = xyes
  16758. then :
  16759. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16760. fi
  16761. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16762. if test "x$ac_cv_func_wcslcat" = xyes
  16763. then :
  16764. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16765. fi
  16766. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16767. if test "x$ac_cv_func__wcsdup" = xyes
  16768. then :
  16769. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16770. fi
  16771. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16772. if test "x$ac_cv_func_wcsdup" = xyes
  16773. then :
  16774. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16775. fi
  16776. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16777. if test "x$ac_cv_func_wcsstr" = xyes
  16778. then :
  16779. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16780. fi
  16781. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16782. if test "x$ac_cv_func_wcscmp" = xyes
  16783. then :
  16784. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16785. fi
  16786. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16787. if test "x$ac_cv_func_wcsncmp" = xyes
  16788. then :
  16789. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16790. fi
  16791. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16792. if test "x$ac_cv_func_wcscasecmp" = xyes
  16793. then :
  16794. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16795. fi
  16796. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16797. if test "x$ac_cv_func__wcsicmp" = xyes
  16798. then :
  16799. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16800. fi
  16801. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16802. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16803. then :
  16804. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16805. fi
  16806. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16807. if test "x$ac_cv_func__wcsnicmp" = xyes
  16808. then :
  16809. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16810. fi
  16811. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16812. if test "x$ac_cv_func_strlen" = xyes
  16813. then :
  16814. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16815. fi
  16816. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16817. if test "x$ac_cv_func_strlcpy" = xyes
  16818. then :
  16819. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16820. fi
  16821. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16822. if test "x$ac_cv_func_strlcat" = xyes
  16823. then :
  16824. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16825. fi
  16826. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16827. if test "x$ac_cv_func__strrev" = xyes
  16828. then :
  16829. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16830. fi
  16831. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16832. if test "x$ac_cv_func__strupr" = xyes
  16833. then :
  16834. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16835. fi
  16836. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16837. if test "x$ac_cv_func__strlwr" = xyes
  16838. then :
  16839. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16840. fi
  16841. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16842. if test "x$ac_cv_func_index" = xyes
  16843. then :
  16844. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16845. fi
  16846. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16847. if test "x$ac_cv_func_rindex" = xyes
  16848. then :
  16849. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16850. fi
  16851. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16852. if test "x$ac_cv_func_strchr" = xyes
  16853. then :
  16854. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16855. fi
  16856. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16857. if test "x$ac_cv_func_strrchr" = xyes
  16858. then :
  16859. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16860. fi
  16861. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16862. if test "x$ac_cv_func_strstr" = xyes
  16863. then :
  16864. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16865. fi
  16866. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16867. if test "x$ac_cv_func_strtok_r" = xyes
  16868. then :
  16869. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16870. fi
  16871. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16872. if test "x$ac_cv_func_itoa" = xyes
  16873. then :
  16874. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16875. fi
  16876. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16877. if test "x$ac_cv_func__ltoa" = xyes
  16878. then :
  16879. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16880. fi
  16881. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16882. if test "x$ac_cv_func__uitoa" = xyes
  16883. then :
  16884. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16885. fi
  16886. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16887. if test "x$ac_cv_func__ultoa" = xyes
  16888. then :
  16889. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16890. fi
  16891. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  16892. if test "x$ac_cv_func_strtod" = xyes
  16893. then :
  16894. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16895. fi
  16896. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16897. if test "x$ac_cv_func_strtol" = xyes
  16898. then :
  16899. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16900. fi
  16901. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  16902. if test "x$ac_cv_func_strtoul" = xyes
  16903. then :
  16904. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  16905. fi
  16906. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  16907. if test "x$ac_cv_func__i64toa" = xyes
  16908. then :
  16909. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  16910. fi
  16911. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  16912. if test "x$ac_cv_func__ui64toa" = xyes
  16913. then :
  16914. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  16915. fi
  16916. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  16917. if test "x$ac_cv_func_strtoll" = xyes
  16918. then :
  16919. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  16920. fi
  16921. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  16922. if test "x$ac_cv_func_strtoull" = xyes
  16923. then :
  16924. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  16925. fi
  16926. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  16927. if test "x$ac_cv_func_atoi" = xyes
  16928. then :
  16929. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  16930. fi
  16931. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  16932. if test "x$ac_cv_func_atof" = xyes
  16933. then :
  16934. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  16935. fi
  16936. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  16937. if test "x$ac_cv_func_strcmp" = xyes
  16938. then :
  16939. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  16940. fi
  16941. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  16942. if test "x$ac_cv_func_strncmp" = xyes
  16943. then :
  16944. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  16945. fi
  16946. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  16947. if test "x$ac_cv_func__stricmp" = xyes
  16948. then :
  16949. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  16950. fi
  16951. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  16952. if test "x$ac_cv_func_strcasecmp" = xyes
  16953. then :
  16954. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  16955. fi
  16956. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  16957. if test "x$ac_cv_func__strnicmp" = xyes
  16958. then :
  16959. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  16960. fi
  16961. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  16962. if test "x$ac_cv_func_strncasecmp" = xyes
  16963. then :
  16964. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  16965. fi
  16966. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  16967. if test "x$ac_cv_func_vsscanf" = xyes
  16968. then :
  16969. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  16970. fi
  16971. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  16972. if test "x$ac_cv_func_vsnprintf" = xyes
  16973. then :
  16974. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  16975. fi
  16976. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  16977. if test "x$ac_cv_func_fopen64" = xyes
  16978. then :
  16979. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  16980. fi
  16981. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  16982. if test "x$ac_cv_func_fseeko" = xyes
  16983. then :
  16984. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  16985. fi
  16986. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  16987. if test "x$ac_cv_func_fseeko64" = xyes
  16988. then :
  16989. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  16990. fi
  16991. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  16992. if test "x$ac_cv_func_sigaction" = xyes
  16993. then :
  16994. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  16995. fi
  16996. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  16997. if test "x$ac_cv_func_setjmp" = xyes
  16998. then :
  16999. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17000. fi
  17001. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17002. if test "x$ac_cv_func_nanosleep" = xyes
  17003. then :
  17004. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17005. fi
  17006. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17007. if test "x$ac_cv_func_sysconf" = xyes
  17008. then :
  17009. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17010. fi
  17011. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17012. if test "x$ac_cv_func_sysctlbyname" = xyes
  17013. then :
  17014. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17015. fi
  17016. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17017. if test "x$ac_cv_func_getauxval" = xyes
  17018. then :
  17019. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17020. fi
  17021. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17022. if test "x$ac_cv_func_elf_aux_info" = xyes
  17023. then :
  17024. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17025. fi
  17026. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17027. if test "x$ac_cv_func_poll" = xyes
  17028. then :
  17029. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17030. fi
  17031. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17032. if test "x$ac_cv_func__Exit" = xyes
  17033. then :
  17034. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17035. fi
  17036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17037. printf %s "checking for pow in -lm... " >&6; }
  17038. if test ${ac_cv_lib_m_pow+y}
  17039. then :
  17040. printf %s "(cached) " >&6
  17041. else $as_nop
  17042. ac_check_lib_save_LIBS=$LIBS
  17043. LIBS="-lm $LIBS"
  17044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17045. /* end confdefs.h. */
  17046. /* Override any GCC internal prototype to avoid an error.
  17047. Use char because int might match the return type of a GCC
  17048. builtin and then its argument prototype would still apply. */
  17049. char pow ();
  17050. int
  17051. main (void)
  17052. {
  17053. return pow ();
  17054. ;
  17055. return 0;
  17056. }
  17057. _ACEOF
  17058. if ac_fn_c_try_link "$LINENO"
  17059. then :
  17060. ac_cv_lib_m_pow=yes
  17061. else $as_nop
  17062. ac_cv_lib_m_pow=no
  17063. fi
  17064. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17065. conftest$ac_exeext conftest.$ac_ext
  17066. LIBS=$ac_check_lib_save_LIBS
  17067. fi
  17068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17069. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17070. if test "x$ac_cv_lib_m_pow" = xyes
  17071. then :
  17072. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17073. fi
  17074. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17075. if test "x$ac_cv_func_acos" = xyes
  17076. then :
  17077. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17078. fi
  17079. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17080. if test "x$ac_cv_func_acosf" = xyes
  17081. then :
  17082. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17083. fi
  17084. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17085. if test "x$ac_cv_func_asin" = xyes
  17086. then :
  17087. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17088. fi
  17089. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17090. if test "x$ac_cv_func_asinf" = xyes
  17091. then :
  17092. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17093. fi
  17094. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17095. if test "x$ac_cv_func_atan" = xyes
  17096. then :
  17097. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17098. fi
  17099. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17100. if test "x$ac_cv_func_atanf" = xyes
  17101. then :
  17102. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17103. fi
  17104. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17105. if test "x$ac_cv_func_atan2" = xyes
  17106. then :
  17107. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17108. fi
  17109. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17110. if test "x$ac_cv_func_atan2f" = xyes
  17111. then :
  17112. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17113. fi
  17114. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17115. if test "x$ac_cv_func_ceil" = xyes
  17116. then :
  17117. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17118. fi
  17119. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17120. if test "x$ac_cv_func_ceilf" = xyes
  17121. then :
  17122. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17123. fi
  17124. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17125. if test "x$ac_cv_func_copysign" = xyes
  17126. then :
  17127. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17128. fi
  17129. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17130. if test "x$ac_cv_func_copysignf" = xyes
  17131. then :
  17132. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17133. fi
  17134. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17135. if test "x$ac_cv_func_cos" = xyes
  17136. then :
  17137. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17138. fi
  17139. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17140. if test "x$ac_cv_func_cosf" = xyes
  17141. then :
  17142. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17143. fi
  17144. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17145. if test "x$ac_cv_func_exp" = xyes
  17146. then :
  17147. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17148. fi
  17149. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17150. if test "x$ac_cv_func_expf" = xyes
  17151. then :
  17152. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17153. fi
  17154. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17155. if test "x$ac_cv_func_fabs" = xyes
  17156. then :
  17157. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17158. fi
  17159. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17160. if test "x$ac_cv_func_fabsf" = xyes
  17161. then :
  17162. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17163. fi
  17164. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17165. if test "x$ac_cv_func_floor" = xyes
  17166. then :
  17167. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17168. fi
  17169. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17170. if test "x$ac_cv_func_floorf" = xyes
  17171. then :
  17172. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17173. fi
  17174. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17175. if test "x$ac_cv_func_trunc" = xyes
  17176. then :
  17177. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17178. fi
  17179. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17180. if test "x$ac_cv_func_truncf" = xyes
  17181. then :
  17182. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17183. fi
  17184. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17185. if test "x$ac_cv_func_fmod" = xyes
  17186. then :
  17187. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17188. fi
  17189. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17190. if test "x$ac_cv_func_fmodf" = xyes
  17191. then :
  17192. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17193. fi
  17194. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17195. if test "x$ac_cv_func_log" = xyes
  17196. then :
  17197. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17198. fi
  17199. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17200. if test "x$ac_cv_func_logf" = xyes
  17201. then :
  17202. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17203. fi
  17204. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17205. if test "x$ac_cv_func_log10" = xyes
  17206. then :
  17207. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17208. fi
  17209. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17210. if test "x$ac_cv_func_log10f" = xyes
  17211. then :
  17212. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17213. fi
  17214. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17215. if test "x$ac_cv_func_lround" = xyes
  17216. then :
  17217. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17218. fi
  17219. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17220. if test "x$ac_cv_func_lroundf" = xyes
  17221. then :
  17222. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17223. fi
  17224. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17225. if test "x$ac_cv_func_pow" = xyes
  17226. then :
  17227. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17228. fi
  17229. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17230. if test "x$ac_cv_func_powf" = xyes
  17231. then :
  17232. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17233. fi
  17234. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17235. if test "x$ac_cv_func_round" = xyes
  17236. then :
  17237. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17238. fi
  17239. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17240. if test "x$ac_cv_func_roundf" = xyes
  17241. then :
  17242. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17243. fi
  17244. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17245. if test "x$ac_cv_func_scalbn" = xyes
  17246. then :
  17247. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17248. fi
  17249. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17250. if test "x$ac_cv_func_scalbnf" = xyes
  17251. then :
  17252. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17253. fi
  17254. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17255. if test "x$ac_cv_func_sin" = xyes
  17256. then :
  17257. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17258. fi
  17259. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17260. if test "x$ac_cv_func_sinf" = xyes
  17261. then :
  17262. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17263. fi
  17264. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17265. if test "x$ac_cv_func_sqrt" = xyes
  17266. then :
  17267. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17268. fi
  17269. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17270. if test "x$ac_cv_func_sqrtf" = xyes
  17271. then :
  17272. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17273. fi
  17274. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17275. if test "x$ac_cv_func_tan" = xyes
  17276. then :
  17277. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17278. fi
  17279. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17280. if test "x$ac_cv_func_tanf" = xyes
  17281. then :
  17282. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17283. fi
  17284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17285. printf %s "checking for iconv_open in -liconv... " >&6; }
  17286. if test ${ac_cv_lib_iconv_iconv_open+y}
  17287. then :
  17288. printf %s "(cached) " >&6
  17289. else $as_nop
  17290. ac_check_lib_save_LIBS=$LIBS
  17291. LIBS="-liconv $LIBS"
  17292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17293. /* end confdefs.h. */
  17294. /* Override any GCC internal prototype to avoid an error.
  17295. Use char because int might match the return type of a GCC
  17296. builtin and then its argument prototype would still apply. */
  17297. char iconv_open ();
  17298. int
  17299. main (void)
  17300. {
  17301. return iconv_open ();
  17302. ;
  17303. return 0;
  17304. }
  17305. _ACEOF
  17306. if ac_fn_c_try_link "$LINENO"
  17307. then :
  17308. ac_cv_lib_iconv_iconv_open=yes
  17309. else $as_nop
  17310. ac_cv_lib_iconv_iconv_open=no
  17311. fi
  17312. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17313. conftest$ac_exeext conftest.$ac_ext
  17314. LIBS=$ac_check_lib_save_LIBS
  17315. fi
  17316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17317. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17318. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17319. then :
  17320. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17321. fi
  17322. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17323. if test "x$ac_cv_func_iconv" = xyes
  17324. then :
  17325. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17326. fi
  17327. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17328. "
  17329. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17330. then :
  17331. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17332. fi
  17333. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17334. if test "x$ac_cv_header_libunwind_h" = xyes
  17335. then :
  17336. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17337. fi
  17338. fi
  17339. # Check whether --enable-gcc-atomics was given.
  17340. if test ${enable_gcc_atomics+y}
  17341. then :
  17342. enableval=$enable_gcc_atomics;
  17343. else $as_nop
  17344. enable_gcc_atomics=yes
  17345. fi
  17346. if test x$enable_gcc_atomics = xyes; then
  17347. have_gcc_atomics=no
  17348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17349. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17351. /* end confdefs.h. */
  17352. int
  17353. main (void)
  17354. {
  17355. int a;
  17356. void *x, *y, *z;
  17357. __sync_lock_test_and_set(&a, 4);
  17358. __sync_lock_test_and_set(&x, y);
  17359. __sync_fetch_and_add(&a, 1);
  17360. __sync_bool_compare_and_swap(&a, 5, 10);
  17361. __sync_bool_compare_and_swap(&x, y, z);
  17362. ;
  17363. return 0;
  17364. }
  17365. _ACEOF
  17366. if ac_fn_c_try_link "$LINENO"
  17367. then :
  17368. have_gcc_atomics=yes
  17369. fi
  17370. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17371. conftest$ac_exeext conftest.$ac_ext
  17372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17373. printf "%s\n" "$have_gcc_atomics" >&6; }
  17374. if test x$have_gcc_atomics = xyes; then
  17375. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17376. else
  17377. # See if we have the minimum operation needed for GCC atomics
  17378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17379. /* end confdefs.h. */
  17380. int
  17381. main (void)
  17382. {
  17383. int a;
  17384. __sync_lock_test_and_set(&a, 1);
  17385. __sync_lock_release(&a);
  17386. ;
  17387. return 0;
  17388. }
  17389. _ACEOF
  17390. if ac_fn_c_try_link "$LINENO"
  17391. then :
  17392. have_gcc_sync_lock_test_and_set=yes
  17393. fi
  17394. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17395. conftest$ac_exeext conftest.$ac_ext
  17396. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17397. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17398. fi
  17399. fi
  17400. fi
  17401. # Standard C sources
  17402. SOURCES="$SOURCES $srcdir/src/*.c"
  17403. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17404. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17405. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17406. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17407. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17408. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17409. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17410. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17411. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17412. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17413. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17414. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17415. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17416. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17417. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17418. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17419. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17420. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17421. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17422. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17423. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17424. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17425. case "$host" in
  17426. *-*-emscripten*)
  17427. default_atomic=no
  17428. ;;
  17429. *)
  17430. default_atomic=yes
  17431. ;;
  17432. esac
  17433. # Check whether --enable-atomic was given.
  17434. if test ${enable_atomic+y}
  17435. then :
  17436. enableval=$enable_atomic;
  17437. else $as_nop
  17438. enable_atomic=$default_atomic
  17439. fi
  17440. if test x$enable_atomic != xyes; then
  17441. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17442. else
  17443. SUMMARY_modules="${SUMMARY_modules} atomic"
  17444. fi
  17445. # Check whether --enable-audio was given.
  17446. if test ${enable_audio+y}
  17447. then :
  17448. enableval=$enable_audio;
  17449. else $as_nop
  17450. enable_audio=yes
  17451. fi
  17452. if test x$enable_audio != xyes; then
  17453. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17454. else
  17455. SUMMARY_modules="${SUMMARY_modules} audio"
  17456. fi
  17457. # Check whether --enable-video was given.
  17458. if test ${enable_video+y}
  17459. then :
  17460. enableval=$enable_video;
  17461. else $as_nop
  17462. enable_video=yes
  17463. fi
  17464. if test x$enable_video != xyes; then
  17465. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17466. else
  17467. SUMMARY_modules="${SUMMARY_modules} video"
  17468. fi
  17469. # Check whether --enable-render was given.
  17470. if test ${enable_render+y}
  17471. then :
  17472. enableval=$enable_render;
  17473. else $as_nop
  17474. enable_render=yes
  17475. fi
  17476. if test x$enable_render != xyes; then
  17477. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17478. else
  17479. SUMMARY_modules="${SUMMARY_modules} render"
  17480. fi
  17481. # Check whether --enable-events was given.
  17482. if test ${enable_events+y}
  17483. then :
  17484. enableval=$enable_events;
  17485. else $as_nop
  17486. enable_events=yes
  17487. fi
  17488. if test x$enable_events != xyes; then
  17489. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17490. else
  17491. SUMMARY_modules="${SUMMARY_modules} events"
  17492. fi
  17493. # Check whether --enable-joystick was given.
  17494. if test ${enable_joystick+y}
  17495. then :
  17496. enableval=$enable_joystick;
  17497. else $as_nop
  17498. enable_joystick=yes
  17499. fi
  17500. if test x$enable_joystick != xyes; then
  17501. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17502. else
  17503. SUMMARY_modules="${SUMMARY_modules} joystick"
  17504. fi
  17505. # Check whether --enable-haptic was given.
  17506. if test ${enable_haptic+y}
  17507. then :
  17508. enableval=$enable_haptic;
  17509. else $as_nop
  17510. enable_haptic=yes
  17511. fi
  17512. if test x$enable_haptic != xyes; then
  17513. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17514. else
  17515. SUMMARY_modules="${SUMMARY_modules} haptic"
  17516. fi
  17517. # Check whether --enable-hidapi was given.
  17518. if test ${enable_hidapi+y}
  17519. then :
  17520. enableval=$enable_hidapi;
  17521. else $as_nop
  17522. enable_hidapi=yes
  17523. fi
  17524. if test x$enable_hidapi != xyes; then
  17525. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17526. else
  17527. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17528. fi
  17529. # Check whether --enable-sensor was given.
  17530. if test ${enable_sensor+y}
  17531. then :
  17532. enableval=$enable_sensor;
  17533. else $as_nop
  17534. enable_sensor=yes
  17535. fi
  17536. if test x$enable_sensor != xyes; then
  17537. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17538. else
  17539. SUMMARY_modules="${SUMMARY_modules} sensor"
  17540. fi
  17541. # Check whether --enable-power was given.
  17542. if test ${enable_power+y}
  17543. then :
  17544. enableval=$enable_power;
  17545. else $as_nop
  17546. enable_power=yes
  17547. fi
  17548. if test x$enable_power != xyes; then
  17549. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17550. else
  17551. SUMMARY_modules="${SUMMARY_modules} power"
  17552. fi
  17553. # Check whether --enable-filesystem was given.
  17554. if test ${enable_filesystem+y}
  17555. then :
  17556. enableval=$enable_filesystem;
  17557. else $as_nop
  17558. enable_filesystem=yes
  17559. fi
  17560. if test x$enable_filesystem != xyes; then
  17561. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17562. else
  17563. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17564. fi
  17565. # Many subsystems depend on threads, so leave them enabled by default
  17566. #AC_ARG_ENABLE(threads,
  17567. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17568. # , enable_threads=yes)
  17569. enable_threads=yes
  17570. if test x$enable_threads != xyes; then
  17571. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17572. else
  17573. SUMMARY_modules="${SUMMARY_modules} threads"
  17574. fi
  17575. # Check whether --enable-timers was given.
  17576. if test ${enable_timers+y}
  17577. then :
  17578. enableval=$enable_timers;
  17579. else $as_nop
  17580. enable_timers=yes
  17581. fi
  17582. if test x$enable_timers != xyes; then
  17583. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17584. else
  17585. SUMMARY_modules="${SUMMARY_modules} timers"
  17586. fi
  17587. # Check whether --enable-file was given.
  17588. if test ${enable_file+y}
  17589. then :
  17590. enableval=$enable_file;
  17591. else $as_nop
  17592. enable_file=yes
  17593. fi
  17594. if test x$enable_file != xyes; then
  17595. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17596. else
  17597. SUMMARY_modules="${SUMMARY_modules} file"
  17598. fi
  17599. # Check whether --enable-misc was given.
  17600. if test ${enable_misc+y}
  17601. then :
  17602. enableval=$enable_misc;
  17603. else $as_nop
  17604. enable_misc=yes
  17605. fi
  17606. if test x$enable_misc != xyes; then
  17607. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17608. else
  17609. SUMMARY_modules="${SUMMARY_modules} misc"
  17610. fi
  17611. # Check whether --enable-locale was given.
  17612. if test ${enable_locale+y}
  17613. then :
  17614. enableval=$enable_locale;
  17615. else $as_nop
  17616. enable_locale=yes
  17617. fi
  17618. if test x$enable_locale != xyes; then
  17619. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17620. else
  17621. SUMMARY_modules="${SUMMARY_modules} locale"
  17622. fi
  17623. # Check whether --enable-loadso was given.
  17624. if test ${enable_loadso+y}
  17625. then :
  17626. enableval=$enable_loadso;
  17627. else $as_nop
  17628. enable_loadso=yes
  17629. fi
  17630. if test x$enable_loadso != xyes; then
  17631. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17632. else
  17633. SUMMARY_modules="${SUMMARY_modules} loadso"
  17634. fi
  17635. # Check whether --enable-cpuinfo was given.
  17636. if test ${enable_cpuinfo+y}
  17637. then :
  17638. enableval=$enable_cpuinfo;
  17639. else $as_nop
  17640. enable_cpuinfo=yes
  17641. fi
  17642. if test x$enable_cpuinfo != xyes; then
  17643. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17644. else
  17645. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17646. fi
  17647. # Check whether --enable-assembly was given.
  17648. if test ${enable_assembly+y}
  17649. then :
  17650. enableval=$enable_assembly;
  17651. else $as_nop
  17652. enable_assembly=yes
  17653. fi
  17654. if test x$enable_assembly = xyes; then
  17655. SUMMARY_modules="${SUMMARY_modules} assembly"
  17656. # Make sure that we don't generate floating point code that would
  17657. # cause illegal instruction exceptions on older processors
  17658. case "$host" in
  17659. *-*-darwin*)
  17660. # Don't need to worry about Apple hardware, it's all SSE capable
  17661. default_ssemath=yes
  17662. ;;
  17663. *64-*-*)
  17664. # x86 64-bit architectures all have SSE instructions
  17665. default_ssemath=yes
  17666. ;;
  17667. *)
  17668. default_ssemath=no
  17669. ;;
  17670. esac
  17671. # Check whether --enable-ssemath was given.
  17672. if test ${enable_ssemath+y}
  17673. then :
  17674. enableval=$enable_ssemath;
  17675. else $as_nop
  17676. enable_ssemath=$default_ssemath
  17677. fi
  17678. if test x$enable_ssemath = xno; then
  17679. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17680. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17681. fi
  17682. fi
  17683. # Check whether --enable-mmx was given.
  17684. if test ${enable_mmx+y}
  17685. then :
  17686. enableval=$enable_mmx;
  17687. else $as_nop
  17688. enable_mmx=yes
  17689. fi
  17690. if test x$enable_mmx = xyes; then
  17691. save_CFLAGS="$CFLAGS"
  17692. have_gcc_mmx=no
  17693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17694. printf %s "checking for GCC -mmmx option... " >&6; }
  17695. mmx_CFLAGS="-mmmx"
  17696. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17698. /* end confdefs.h. */
  17699. #ifdef __MINGW32__
  17700. #include <_mingw.h>
  17701. #ifdef __MINGW64_VERSION_MAJOR
  17702. #include <intrin.h>
  17703. #else
  17704. #include <mmintrin.h>
  17705. #endif
  17706. #else
  17707. #include <mmintrin.h>
  17708. #endif
  17709. #ifndef __MMX__
  17710. #error Assembler CPP flag not enabled
  17711. #endif
  17712. int
  17713. main (void)
  17714. {
  17715. ;
  17716. return 0;
  17717. }
  17718. _ACEOF
  17719. if ac_fn_c_try_compile "$LINENO"
  17720. then :
  17721. have_gcc_mmx=yes
  17722. fi
  17723. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17725. printf "%s\n" "$have_gcc_mmx" >&6; }
  17726. CFLAGS="$save_CFLAGS"
  17727. if test x$have_gcc_mmx = xyes; then
  17728. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17729. SUMMARY_math="${SUMMARY_math} mmx"
  17730. fi
  17731. fi
  17732. # Check whether --enable-3dnow was given.
  17733. if test ${enable_3dnow+y}
  17734. then :
  17735. enableval=$enable_3dnow;
  17736. else $as_nop
  17737. enable_3dnow=yes
  17738. fi
  17739. if test x$enable_3dnow = xyes; then
  17740. save_CFLAGS="$CFLAGS"
  17741. have_gcc_3dnow=no
  17742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17743. printf %s "checking for GCC -m3dnow option... " >&6; }
  17744. amd3dnow_CFLAGS="-m3dnow"
  17745. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17747. /* end confdefs.h. */
  17748. #include <mm3dnow.h>
  17749. #ifndef __3dNOW__
  17750. #error Assembler CPP flag not enabled
  17751. #endif
  17752. int
  17753. main (void)
  17754. {
  17755. void *p = 0;
  17756. _m_prefetch(p);
  17757. ;
  17758. return 0;
  17759. }
  17760. _ACEOF
  17761. if ac_fn_c_try_link "$LINENO"
  17762. then :
  17763. have_gcc_3dnow=yes
  17764. fi
  17765. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17766. conftest$ac_exeext conftest.$ac_ext
  17767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17768. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17769. CFLAGS="$save_CFLAGS"
  17770. if test x$have_gcc_3dnow = xyes; then
  17771. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17772. SUMMARY_math="${SUMMARY_math} 3dnow"
  17773. fi
  17774. fi
  17775. # Check whether --enable-sse was given.
  17776. if test ${enable_sse+y}
  17777. then :
  17778. enableval=$enable_sse;
  17779. else $as_nop
  17780. enable_sse=yes
  17781. fi
  17782. if test x$enable_sse = xyes; then
  17783. save_CFLAGS="$CFLAGS"
  17784. have_gcc_sse=no
  17785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17786. printf %s "checking for GCC -msse option... " >&6; }
  17787. sse_CFLAGS="-msse"
  17788. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17790. /* end confdefs.h. */
  17791. #ifdef __MINGW32__
  17792. #include <_mingw.h>
  17793. #ifdef __MINGW64_VERSION_MAJOR
  17794. #include <intrin.h>
  17795. #else
  17796. #include <xmmintrin.h>
  17797. #endif
  17798. #else
  17799. #include <xmmintrin.h>
  17800. #endif
  17801. #ifndef __SSE__
  17802. #error Assembler CPP flag not enabled
  17803. #endif
  17804. int
  17805. main (void)
  17806. {
  17807. ;
  17808. return 0;
  17809. }
  17810. _ACEOF
  17811. if ac_fn_c_try_compile "$LINENO"
  17812. then :
  17813. have_gcc_sse=yes
  17814. fi
  17815. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17817. printf "%s\n" "$have_gcc_sse" >&6; }
  17818. CFLAGS="$save_CFLAGS"
  17819. if test x$have_gcc_sse = xyes; then
  17820. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17821. SUMMARY_math="${SUMMARY_math} sse"
  17822. fi
  17823. fi
  17824. # Check whether --enable-sse2 was given.
  17825. if test ${enable_sse2+y}
  17826. then :
  17827. enableval=$enable_sse2;
  17828. else $as_nop
  17829. enable_sse2=$default_ssemath
  17830. fi
  17831. if test x$enable_sse2 = xyes; then
  17832. save_CFLAGS="$CFLAGS"
  17833. have_gcc_sse2=no
  17834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17835. printf %s "checking for GCC -msse2 option... " >&6; }
  17836. sse2_CFLAGS="-msse2"
  17837. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17839. /* end confdefs.h. */
  17840. #ifdef __MINGW32__
  17841. #include <_mingw.h>
  17842. #ifdef __MINGW64_VERSION_MAJOR
  17843. #include <intrin.h>
  17844. #else
  17845. #include <emmintrin.h>
  17846. #endif
  17847. #else
  17848. #include <emmintrin.h>
  17849. #endif
  17850. #ifndef __SSE2__
  17851. #error Assembler CPP flag not enabled
  17852. #endif
  17853. int
  17854. main (void)
  17855. {
  17856. ;
  17857. return 0;
  17858. }
  17859. _ACEOF
  17860. if ac_fn_c_try_compile "$LINENO"
  17861. then :
  17862. have_gcc_sse2=yes
  17863. fi
  17864. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17866. printf "%s\n" "$have_gcc_sse2" >&6; }
  17867. CFLAGS="$save_CFLAGS"
  17868. if test x$have_gcc_sse2 = xyes; then
  17869. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17870. SUMMARY_math="${SUMMARY_math} sse2"
  17871. fi
  17872. fi
  17873. # Check whether --enable-sse3 was given.
  17874. if test ${enable_sse3+y}
  17875. then :
  17876. enableval=$enable_sse3;
  17877. else $as_nop
  17878. enable_sse3=$default_ssemath
  17879. fi
  17880. if test x$enable_sse3 = xyes; then
  17881. save_CFLAGS="$CFLAGS"
  17882. have_gcc_sse3=no
  17883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17884. printf %s "checking for GCC -msse3 option... " >&6; }
  17885. sse3_CFLAGS="-msse3"
  17886. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17888. /* end confdefs.h. */
  17889. #ifdef __MINGW32__
  17890. #include <_mingw.h>
  17891. #ifdef __MINGW64_VERSION_MAJOR
  17892. #include <intrin.h>
  17893. #else
  17894. #include <pmmintrin.h>
  17895. #endif
  17896. #else
  17897. #include <pmmintrin.h>
  17898. #endif
  17899. #ifndef __SSE2__
  17900. #error Assembler CPP flag not enabled
  17901. #endif
  17902. int
  17903. main (void)
  17904. {
  17905. ;
  17906. return 0;
  17907. }
  17908. _ACEOF
  17909. if ac_fn_c_try_compile "$LINENO"
  17910. then :
  17911. have_gcc_sse3=yes
  17912. fi
  17913. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  17915. printf "%s\n" "$have_gcc_sse3" >&6; }
  17916. CFLAGS="$save_CFLAGS"
  17917. if test x$have_gcc_sse3 = xyes; then
  17918. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  17919. SUMMARY_math="${SUMMARY_math} sse3"
  17920. fi
  17921. fi
  17922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  17923. printf %s "checking for immintrin.h... " >&6; }
  17924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17925. /* end confdefs.h. */
  17926. #include <immintrin.h>
  17927. int
  17928. main (void)
  17929. {
  17930. ;
  17931. return 0;
  17932. }
  17933. _ACEOF
  17934. if ac_fn_c_try_compile "$LINENO"
  17935. then :
  17936. have_immintrin_h_hdr=yes
  17937. else $as_nop
  17938. have_immintrin_h_hdr=no
  17939. fi
  17940. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  17942. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  17943. if test x$have_immintrin_h_hdr = xyes; then
  17944. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  17945. fi
  17946. # Check whether --enable-altivec was given.
  17947. if test ${enable_altivec+y}
  17948. then :
  17949. enableval=$enable_altivec;
  17950. else $as_nop
  17951. enable_altivec=yes
  17952. fi
  17953. if test x$enable_altivec = xyes; then
  17954. save_CFLAGS="$CFLAGS"
  17955. have_gcc_altivec=no
  17956. have_altivec_h_hdr=no
  17957. altivec_CFLAGS="-maltivec"
  17958. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  17960. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  17961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17962. /* end confdefs.h. */
  17963. #include <altivec.h>
  17964. vector unsigned int vzero() {
  17965. return vec_splat_u32(0);
  17966. }
  17967. int
  17968. main (void)
  17969. {
  17970. ;
  17971. return 0;
  17972. }
  17973. _ACEOF
  17974. if ac_fn_c_try_compile "$LINENO"
  17975. then :
  17976. have_gcc_altivec=yes
  17977. have_altivec_h_hdr=yes
  17978. fi
  17979. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17981. printf "%s\n" "$have_gcc_altivec" >&6; }
  17982. if test x$have_gcc_altivec = xno; then
  17983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  17984. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  17985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17986. /* end confdefs.h. */
  17987. vector unsigned int vzero() {
  17988. return vec_splat_u32(0);
  17989. }
  17990. int
  17991. main (void)
  17992. {
  17993. ;
  17994. return 0;
  17995. }
  17996. _ACEOF
  17997. if ac_fn_c_try_compile "$LINENO"
  17998. then :
  17999. have_gcc_altivec=yes
  18000. fi
  18001. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18003. printf "%s\n" "$have_gcc_altivec" >&6; }
  18004. fi
  18005. if test x$have_gcc_altivec = xno; then
  18006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18007. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18008. altivec_CFLAGS="-faltivec"
  18009. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18011. /* end confdefs.h. */
  18012. #include <altivec.h>
  18013. vector unsigned int vzero() {
  18014. return vec_splat_u32(0);
  18015. }
  18016. int
  18017. main (void)
  18018. {
  18019. ;
  18020. return 0;
  18021. }
  18022. _ACEOF
  18023. if ac_fn_c_try_compile "$LINENO"
  18024. then :
  18025. have_gcc_altivec=yes
  18026. have_altivec_h_hdr=yes
  18027. fi
  18028. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18030. printf "%s\n" "$have_gcc_altivec" >&6; }
  18031. fi
  18032. if test x$have_gcc_altivec = xno; then
  18033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18034. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18036. /* end confdefs.h. */
  18037. vector unsigned int vzero() {
  18038. return vec_splat_u32(0);
  18039. }
  18040. int
  18041. main (void)
  18042. {
  18043. ;
  18044. return 0;
  18045. }
  18046. _ACEOF
  18047. if ac_fn_c_try_compile "$LINENO"
  18048. then :
  18049. have_gcc_altivec=yes
  18050. fi
  18051. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18053. printf "%s\n" "$have_gcc_altivec" >&6; }
  18054. fi
  18055. CFLAGS="$save_CFLAGS"
  18056. if test x$have_gcc_altivec = xyes; then
  18057. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18058. if test x$have_altivec_h_hdr = xyes; then
  18059. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18060. fi
  18061. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18062. SUMMARY_math="${SUMMARY_math} altivec"
  18063. fi
  18064. fi
  18065. fi
  18066. # Check whether --enable-lsx was given.
  18067. if test ${enable_lsx+y}
  18068. then :
  18069. enableval=$enable_lsx;
  18070. else $as_nop
  18071. enable_lsx=yes
  18072. fi
  18073. if test x$enable_lsx = xyes; then
  18074. save_CFLAGS="$CFLAGS"
  18075. have_gcc_lsx=no
  18076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18077. printf %s "checking for GCC -mlsx option... " >&6; }
  18078. lsx_CFLAGS="-mlsx"
  18079. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18081. /* end confdefs.h. */
  18082. #ifndef __loongarch_sx
  18083. #error Assembler CPP flag not enabled
  18084. #endif
  18085. int
  18086. main (void)
  18087. {
  18088. ;
  18089. return 0;
  18090. }
  18091. _ACEOF
  18092. if ac_fn_c_try_compile "$LINENO"
  18093. then :
  18094. have_gcc_lsx=yes
  18095. fi
  18096. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18098. printf "%s\n" "$have_gcc_lsx" >&6; }
  18099. CFLAGS="$save_CFLAGS"
  18100. if test x$have_gcc_lsx = xyes; then
  18101. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18102. SUMMARY_math="${SUMMARY_math} lsx"
  18103. fi
  18104. fi
  18105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18106. printf %s "checking for lsxintrin.h... " >&6; }
  18107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18108. /* end confdefs.h. */
  18109. #include <lsxintrin.h>
  18110. int
  18111. main (void)
  18112. {
  18113. ;
  18114. return 0;
  18115. }
  18116. _ACEOF
  18117. if ac_fn_c_try_compile "$LINENO"
  18118. then :
  18119. have_lsxintrin_h_hdr=yes
  18120. else $as_nop
  18121. have_lsxintrin_h_hdr=no
  18122. fi
  18123. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18125. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18126. if test x$have_lsxintrin_h_hdr = xyes; then
  18127. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18128. fi
  18129. # Check whether --enable-lasx was given.
  18130. if test ${enable_lasx+y}
  18131. then :
  18132. enableval=$enable_lasx;
  18133. else $as_nop
  18134. enable_LASX=yes
  18135. fi
  18136. if test x$enable_LASX = xyes; then
  18137. save_CFLAGS="$CFLAGS"
  18138. have_gcc_lasx=no
  18139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18140. printf %s "checking for GCC -mlasx option... " >&6; }
  18141. lasx_CFLAGS="-mlasx"
  18142. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18144. /* end confdefs.h. */
  18145. #ifndef __loongarch_asx
  18146. #error Assembler CPP flag not enabled
  18147. #endif
  18148. int
  18149. main (void)
  18150. {
  18151. ;
  18152. return 0;
  18153. }
  18154. _ACEOF
  18155. if ac_fn_c_try_compile "$LINENO"
  18156. then :
  18157. have_gcc_lasx=yes
  18158. fi
  18159. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18161. printf "%s\n" "$have_gcc_lasx" >&6; }
  18162. CFLAGS="$save_CFLAGS"
  18163. if test x$have_gcc_lasx = xyes; then
  18164. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18165. SUMMARY_math="${SUMMARY_math} lasx"
  18166. fi
  18167. fi
  18168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18169. printf %s "checking for lasxintrin.h... " >&6; }
  18170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18171. /* end confdefs.h. */
  18172. #include <lasxintrin.h>
  18173. int
  18174. main (void)
  18175. {
  18176. ;
  18177. return 0;
  18178. }
  18179. _ACEOF
  18180. if ac_fn_c_try_compile "$LINENO"
  18181. then :
  18182. have_lasxintrin_h_hdr=yes
  18183. else $as_nop
  18184. have_lasxintrin_h_hdr=no
  18185. fi
  18186. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18188. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18189. if test x$have_lasxintrin_h_hdr = xyes; then
  18190. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18191. fi
  18192. CheckOSS()
  18193. {
  18194. # Check whether --enable-oss was given.
  18195. if test ${enable_oss+y}
  18196. then :
  18197. enableval=$enable_oss;
  18198. else $as_nop
  18199. enable_oss=maybe
  18200. fi
  18201. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  18202. # use sndio instead. So on there, we default to disabled. You can force
  18203. # it on if you really want, though.
  18204. if test x$enable_oss = xmaybe; then
  18205. enable_oss=yes
  18206. case "$host" in
  18207. *-*-openbsd*)
  18208. enable_oss=no;;
  18209. esac
  18210. fi
  18211. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18213. printf %s "checking for OSS audio support... " >&6; }
  18214. have_oss=no
  18215. if test x$have_oss != xyes; then
  18216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18217. /* end confdefs.h. */
  18218. #include <sys/soundcard.h>
  18219. int
  18220. main (void)
  18221. {
  18222. int arg = SNDCTL_DSP_SETFRAGMENT;
  18223. ;
  18224. return 0;
  18225. }
  18226. _ACEOF
  18227. if ac_fn_c_try_compile "$LINENO"
  18228. then :
  18229. have_oss=yes
  18230. fi
  18231. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18232. fi
  18233. if test x$have_oss != xyes; then
  18234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18235. /* end confdefs.h. */
  18236. #include <soundcard.h>
  18237. int
  18238. main (void)
  18239. {
  18240. int arg = SNDCTL_DSP_SETFRAGMENT;
  18241. ;
  18242. return 0;
  18243. }
  18244. _ACEOF
  18245. if ac_fn_c_try_compile "$LINENO"
  18246. then :
  18247. have_oss=yes
  18248. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  18249. fi
  18250. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18251. fi
  18252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18253. printf "%s\n" "$have_oss" >&6; }
  18254. if test x$have_oss = xyes; then
  18255. SUMMARY_audio="${SUMMARY_audio} oss"
  18256. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18257. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18258. have_audio=yes
  18259. # We may need to link with ossaudio emulation library
  18260. case "$host" in
  18261. *-*-openbsd*|*-*-netbsd*)
  18262. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18263. esac
  18264. fi
  18265. fi
  18266. }
  18267. CheckALSA()
  18268. {
  18269. # Check whether --enable-alsa was given.
  18270. if test ${enable_alsa+y}
  18271. then :
  18272. enableval=$enable_alsa;
  18273. else $as_nop
  18274. enable_alsa=yes
  18275. fi
  18276. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18277. alsa_save_CFLAGS="$CFLAGS"
  18278. alsa_save_LDFLAGS="$LDFLAGS"
  18279. alsa_save_LIBS="$LIBS"
  18280. alsa_found=yes
  18281. # Check whether --with-alsa-prefix was given.
  18282. if test ${with_alsa_prefix+y}
  18283. then :
  18284. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18285. else $as_nop
  18286. alsa_prefix=""
  18287. fi
  18288. # Check whether --with-alsa-inc-prefix was given.
  18289. if test ${with_alsa_inc_prefix+y}
  18290. then :
  18291. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18292. else $as_nop
  18293. alsa_inc_prefix=""
  18294. fi
  18295. # Check whether --enable-alsatest was given.
  18296. if test ${enable_alsatest+y}
  18297. then :
  18298. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18299. else $as_nop
  18300. enable_alsatest=yes
  18301. fi
  18302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18303. printf %s "checking for ALSA CFLAGS... " >&6; }
  18304. if test "$alsa_inc_prefix" != "" ; then
  18305. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18306. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18307. fi
  18308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18309. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18311. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18312. if test "$alsa_prefix" != "" ; then
  18313. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18314. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18315. fi
  18316. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18317. LIBS=`echo $LIBS | sed 's/-lm//'`
  18318. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18319. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18320. LIBS=`echo $LIBS | sed 's/ //'`
  18321. LIBS="$ALSA_LIBS $LIBS"
  18322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18323. printf "%s\n" "$ALSA_LIBS" >&6; }
  18324. min_alsa_version=1.0.11
  18325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18326. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18327. no_alsa=""
  18328. alsa_min_major_version=`echo $min_alsa_version | \
  18329. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18330. alsa_min_minor_version=`echo $min_alsa_version | \
  18331. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18332. alsa_min_micro_version=`echo $min_alsa_version | \
  18333. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18334. ac_ext=c
  18335. ac_cpp='$CPP $CPPFLAGS'
  18336. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18337. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18338. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18340. /* end confdefs.h. */
  18341. #include <alsa/asoundlib.h>
  18342. int
  18343. main (void)
  18344. {
  18345. /* ensure backward compatibility */
  18346. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18347. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18348. #endif
  18349. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18350. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18351. #endif
  18352. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18353. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18354. #endif
  18355. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18356. exit(0);
  18357. # else
  18358. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18359. # error not present
  18360. # endif
  18361. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18362. exit(0);
  18363. # else
  18364. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18365. # error not present
  18366. # endif
  18367. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18368. # error not present
  18369. # endif
  18370. # endif
  18371. # endif
  18372. exit(0);
  18373. ;
  18374. return 0;
  18375. }
  18376. _ACEOF
  18377. if ac_fn_c_try_compile "$LINENO"
  18378. then :
  18379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18380. printf "%s\n" "found." >&6; }
  18381. else $as_nop
  18382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18383. printf "%s\n" "not present." >&6; }
  18384. alsa_found=no
  18385. fi
  18386. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18387. ac_ext=c
  18388. ac_cpp='$CPP $CPPFLAGS'
  18389. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18390. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18391. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18392. if test "x$enable_alsatest" = "xyes"; then
  18393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18394. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18395. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18396. then :
  18397. printf %s "(cached) " >&6
  18398. else $as_nop
  18399. ac_check_lib_save_LIBS=$LIBS
  18400. LIBS="-lasound $LIBS"
  18401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18402. /* end confdefs.h. */
  18403. /* Override any GCC internal prototype to avoid an error.
  18404. Use char because int might match the return type of a GCC
  18405. builtin and then its argument prototype would still apply. */
  18406. char snd_ctl_open ();
  18407. int
  18408. main (void)
  18409. {
  18410. return snd_ctl_open ();
  18411. ;
  18412. return 0;
  18413. }
  18414. _ACEOF
  18415. if ac_fn_c_try_link "$LINENO"
  18416. then :
  18417. ac_cv_lib_asound_snd_ctl_open=yes
  18418. else $as_nop
  18419. ac_cv_lib_asound_snd_ctl_open=no
  18420. fi
  18421. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18422. conftest$ac_exeext conftest.$ac_ext
  18423. LIBS=$ac_check_lib_save_LIBS
  18424. fi
  18425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18426. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18427. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18428. then :
  18429. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18430. LIBS="-lasound $LIBS"
  18431. else $as_nop
  18432. alsa_found=no
  18433. fi
  18434. fi
  18435. if test "x$alsa_found" = "xyes" ; then
  18436. have_alsa=yes
  18437. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18438. LIBS=`echo $LIBS | sed 's/ //'`
  18439. LIBS="-lasound $LIBS"
  18440. fi
  18441. if test "x$alsa_found" = "xno" ; then
  18442. have_alsa=no
  18443. CFLAGS="$alsa_save_CFLAGS"
  18444. LDFLAGS="$alsa_save_LDFLAGS"
  18445. LIBS="$alsa_save_LIBS"
  18446. ALSA_CFLAGS=""
  18447. ALSA_LIBS=""
  18448. fi
  18449. # Restore all flags from before the ALSA detection runs
  18450. CFLAGS="$alsa_save_CFLAGS"
  18451. LDFLAGS="$alsa_save_LDFLAGS"
  18452. LIBS="$alsa_save_LIBS"
  18453. if test x$have_alsa = xyes; then
  18454. # Check whether --enable-alsa-shared was given.
  18455. if test ${enable_alsa_shared+y}
  18456. then :
  18457. enableval=$enable_alsa_shared;
  18458. else $as_nop
  18459. enable_alsa_shared=yes
  18460. fi
  18461. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18462. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18463. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18464. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18465. if test x$have_loadso != xyes && \
  18466. test x$enable_alsa_shared = xyes; then
  18467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18468. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18469. fi
  18470. if test x$have_loadso = xyes && \
  18471. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18472. echo "-- dynamic libasound -> $alsa_lib"
  18473. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18474. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18475. else
  18476. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18477. SUMMARY_audio="${SUMMARY_audio} alsa"
  18478. fi
  18479. have_audio=yes
  18480. fi
  18481. fi
  18482. }
  18483. CheckJACK()
  18484. {
  18485. # Check whether --enable-jack was given.
  18486. if test ${enable_jack+y}
  18487. then :
  18488. enableval=$enable_jack;
  18489. else $as_nop
  18490. enable_jack=yes
  18491. fi
  18492. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18493. pkg_failed=no
  18494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18495. printf %s "checking for jack >= 0.125... " >&6; }
  18496. if test -n "$JACK_CFLAGS"; then
  18497. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18498. elif test -n "$PKG_CONFIG"; then
  18499. if test -n "$PKG_CONFIG" && \
  18500. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18501. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18502. ac_status=$?
  18503. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18504. test $ac_status = 0; }; then
  18505. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18506. test "x$?" != "x0" && pkg_failed=yes
  18507. else
  18508. pkg_failed=yes
  18509. fi
  18510. else
  18511. pkg_failed=untried
  18512. fi
  18513. if test -n "$JACK_LIBS"; then
  18514. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18515. elif test -n "$PKG_CONFIG"; then
  18516. if test -n "$PKG_CONFIG" && \
  18517. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18518. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18519. ac_status=$?
  18520. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18521. test $ac_status = 0; }; then
  18522. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18523. test "x$?" != "x0" && pkg_failed=yes
  18524. else
  18525. pkg_failed=yes
  18526. fi
  18527. else
  18528. pkg_failed=untried
  18529. fi
  18530. if test $pkg_failed = yes; then
  18531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18532. printf "%s\n" "no" >&6; }
  18533. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18534. _pkg_short_errors_supported=yes
  18535. else
  18536. _pkg_short_errors_supported=no
  18537. fi
  18538. if test $_pkg_short_errors_supported = yes; then
  18539. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18540. else
  18541. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18542. fi
  18543. # Put the nasty error message in config.log where it belongs
  18544. echo "$JACK_PKG_ERRORS" >&5
  18545. audio_jack=no
  18546. elif test $pkg_failed = untried; then
  18547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18548. printf "%s\n" "no" >&6; }
  18549. audio_jack=no
  18550. else
  18551. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18552. JACK_LIBS=$pkg_cv_JACK_LIBS
  18553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18554. printf "%s\n" "yes" >&6; }
  18555. audio_jack=yes
  18556. fi
  18557. if test x$audio_jack = xyes; then
  18558. # Check whether --enable-jack-shared was given.
  18559. if test ${enable_jack_shared+y}
  18560. then :
  18561. enableval=$enable_jack_shared;
  18562. else $as_nop
  18563. enable_jack_shared=yes
  18564. fi
  18565. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18566. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18567. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18568. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18569. if test x$have_loadso != xyes && \
  18570. test x$enable_jack_shared = xyes; then
  18571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18572. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18573. fi
  18574. if test x$have_loadso = xyes && \
  18575. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18576. echo "-- dynamic libjack -> $jack_lib"
  18577. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18578. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18579. case "$host" in
  18580. # On Solaris, jack must be linked deferred explicitly
  18581. # to prevent undefined symbol failures.
  18582. *-*-solaris*)
  18583. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18584. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18585. esac
  18586. else
  18587. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18588. SUMMARY_audio="${SUMMARY_audio} jack"
  18589. fi
  18590. have_audio=yes
  18591. fi
  18592. fi
  18593. }
  18594. CheckESD()
  18595. {
  18596. # Check whether --enable-esd was given.
  18597. if test ${enable_esd+y}
  18598. then :
  18599. enableval=$enable_esd;
  18600. else $as_nop
  18601. enable_esd=yes
  18602. fi
  18603. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18604. pkg_failed=no
  18605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18606. printf %s "checking for esound >= 0.2.8... " >&6; }
  18607. if test -n "$ESD_CFLAGS"; then
  18608. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18609. elif test -n "$PKG_CONFIG"; then
  18610. if test -n "$PKG_CONFIG" && \
  18611. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18612. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18613. ac_status=$?
  18614. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18615. test $ac_status = 0; }; then
  18616. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18617. test "x$?" != "x0" && pkg_failed=yes
  18618. else
  18619. pkg_failed=yes
  18620. fi
  18621. else
  18622. pkg_failed=untried
  18623. fi
  18624. if test -n "$ESD_LIBS"; then
  18625. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18626. elif test -n "$PKG_CONFIG"; then
  18627. if test -n "$PKG_CONFIG" && \
  18628. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18629. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18630. ac_status=$?
  18631. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18632. test $ac_status = 0; }; then
  18633. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18634. test "x$?" != "x0" && pkg_failed=yes
  18635. else
  18636. pkg_failed=yes
  18637. fi
  18638. else
  18639. pkg_failed=untried
  18640. fi
  18641. if test $pkg_failed = yes; then
  18642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18643. printf "%s\n" "no" >&6; }
  18644. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18645. _pkg_short_errors_supported=yes
  18646. else
  18647. _pkg_short_errors_supported=no
  18648. fi
  18649. if test $_pkg_short_errors_supported = yes; then
  18650. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18651. else
  18652. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18653. fi
  18654. # Put the nasty error message in config.log where it belongs
  18655. echo "$ESD_PKG_ERRORS" >&5
  18656. have_esd=no
  18657. elif test $pkg_failed = untried; then
  18658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18659. printf "%s\n" "no" >&6; }
  18660. have_esd=no
  18661. else
  18662. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18663. ESD_LIBS=$pkg_cv_ESD_LIBS
  18664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18665. printf "%s\n" "yes" >&6; }
  18666. have_esd=yes
  18667. fi
  18668. if test x$have_esd = xno; then
  18669. # Check whether --with-esd-prefix was given.
  18670. if test ${with_esd_prefix+y}
  18671. then :
  18672. withval=$with_esd_prefix; esd_prefix="$withval"
  18673. else $as_nop
  18674. esd_prefix=""
  18675. fi
  18676. # Check whether --with-esd-exec-prefix was given.
  18677. if test ${with_esd_exec_prefix+y}
  18678. then :
  18679. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18680. else $as_nop
  18681. esd_exec_prefix=""
  18682. fi
  18683. # Check whether --enable-esdtest was given.
  18684. if test ${enable_esdtest+y}
  18685. then :
  18686. enableval=$enable_esdtest;
  18687. else $as_nop
  18688. enable_esdtest=yes
  18689. fi
  18690. if test x$esd_exec_prefix != x ; then
  18691. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18692. if test x${ESD_CONFIG+set} != xset ; then
  18693. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18694. fi
  18695. fi
  18696. if test x$esd_prefix != x ; then
  18697. esd_args="$esd_args --prefix=$esd_prefix"
  18698. if test x${ESD_CONFIG+set} != xset ; then
  18699. ESD_CONFIG=$esd_prefix/bin/esd-config
  18700. fi
  18701. fi
  18702. # Extract the first word of "esd-config", so it can be a program name with args.
  18703. set dummy esd-config; ac_word=$2
  18704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18705. printf %s "checking for $ac_word... " >&6; }
  18706. if test ${ac_cv_path_ESD_CONFIG+y}
  18707. then :
  18708. printf %s "(cached) " >&6
  18709. else $as_nop
  18710. case $ESD_CONFIG in
  18711. [\\/]* | ?:[\\/]*)
  18712. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18713. ;;
  18714. *)
  18715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18716. for as_dir in $PATH
  18717. do
  18718. IFS=$as_save_IFS
  18719. case $as_dir in #(((
  18720. '') as_dir=./ ;;
  18721. */) ;;
  18722. *) as_dir=$as_dir/ ;;
  18723. esac
  18724. for ac_exec_ext in '' $ac_executable_extensions; do
  18725. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18726. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18727. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18728. break 2
  18729. fi
  18730. done
  18731. done
  18732. IFS=$as_save_IFS
  18733. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18734. ;;
  18735. esac
  18736. fi
  18737. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18738. if test -n "$ESD_CONFIG"; then
  18739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18740. printf "%s\n" "$ESD_CONFIG" >&6; }
  18741. else
  18742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18743. printf "%s\n" "no" >&6; }
  18744. fi
  18745. min_esd_version=0.2.8
  18746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18747. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18748. no_esd=""
  18749. if test "$ESD_CONFIG" = "no" ; then
  18750. no_esd=yes
  18751. else
  18752. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18753. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18754. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18755. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18756. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18757. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18758. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18759. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18760. if test "x$enable_esdtest" = "xyes" ; then
  18761. ac_ext=c
  18762. ac_cpp='$CPP $CPPFLAGS'
  18763. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18764. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18765. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18766. ac_save_CFLAGS="$CFLAGS"
  18767. ac_save_LIBS="$LIBS"
  18768. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18769. LIBS="$LIBS $ESD_LIBS"
  18770. rm -f conf.esdtest
  18771. if test "$cross_compiling" = yes
  18772. then :
  18773. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18774. else $as_nop
  18775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18776. /* end confdefs.h. */
  18777. #include <stdio.h>
  18778. #include <stdlib.h>
  18779. #include <esd.h>
  18780. int main (void)
  18781. {
  18782. int major, minor, micro;
  18783. FILE *fp = fopen("conf.esdtest", "w");
  18784. if (fp) fclose(fp);
  18785. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18786. printf("%s, bad version string\n", "$min_esd_version");
  18787. exit(1);
  18788. }
  18789. if (($esd_major_version > major) ||
  18790. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18791. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18792. {
  18793. return 0;
  18794. }
  18795. else
  18796. {
  18797. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18798. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18799. printf("*** best to upgrade to the required version.\n");
  18800. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18801. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18802. printf("*** config.cache before re-running configure\n");
  18803. return 1;
  18804. }
  18805. }
  18806. _ACEOF
  18807. if ac_fn_c_try_run "$LINENO"
  18808. then :
  18809. else $as_nop
  18810. no_esd=yes
  18811. fi
  18812. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18813. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18814. fi
  18815. CFLAGS="$ac_save_CFLAGS"
  18816. LIBS="$ac_save_LIBS"
  18817. ac_ext=c
  18818. ac_cpp='$CPP $CPPFLAGS'
  18819. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18820. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18821. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18822. fi
  18823. fi
  18824. if test "x$no_esd" = x ; then
  18825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18826. printf "%s\n" "yes" >&6; }
  18827. have_esd=yes
  18828. else
  18829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18830. printf "%s\n" "no" >&6; }
  18831. if test "$ESD_CONFIG" = "no" ; then
  18832. :
  18833. else
  18834. if test -f conf.esdtest ; then
  18835. :
  18836. else
  18837. echo "*** Could not run ESD test program, checking why..."
  18838. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18839. LIBS="$LIBS $ESD_LIBS"
  18840. ac_ext=c
  18841. ac_cpp='$CPP $CPPFLAGS'
  18842. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18843. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18844. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18846. /* end confdefs.h. */
  18847. #include <stdio.h>
  18848. #include <esd.h>
  18849. int
  18850. main (void)
  18851. {
  18852. return 0;
  18853. ;
  18854. return 0;
  18855. }
  18856. _ACEOF
  18857. if ac_fn_c_try_link "$LINENO"
  18858. then :
  18859. echo "*** The test program compiled, but did not run. This usually means"
  18860. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18861. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18862. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18863. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18864. echo "*** is required on your system"
  18865. echo "***"
  18866. echo "*** If you have an old version installed, it is best to remove it, although"
  18867. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18868. else $as_nop
  18869. echo "*** The test program failed to compile or link. See the file config.log for the"
  18870. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18871. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18872. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18873. fi
  18874. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18875. conftest$ac_exeext conftest.$ac_ext
  18876. CFLAGS="$ac_save_CFLAGS"
  18877. LIBS="$ac_save_LIBS"
  18878. ac_ext=c
  18879. ac_cpp='$CPP $CPPFLAGS'
  18880. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18881. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18882. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18883. fi
  18884. fi
  18885. ESD_CFLAGS=""
  18886. ESD_LIBS=""
  18887. have_esd=no
  18888. fi
  18889. rm -f conf.esdtest
  18890. fi
  18891. if test x$have_esd = xyes; then
  18892. # Check whether --enable-esd-shared was given.
  18893. if test ${enable_esd_shared+y}
  18894. then :
  18895. enableval=$enable_esd_shared;
  18896. else $as_nop
  18897. enable_esd_shared=yes
  18898. fi
  18899. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18900. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  18901. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  18902. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  18903. if test x$have_loadso != xyes && \
  18904. test x$enable_esd_shared = xyes; then
  18905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  18906. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  18907. fi
  18908. if test x$have_loadso = xyes && \
  18909. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  18910. echo "-- dynamic libesd -> $esd_lib"
  18911. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  18912. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  18913. else
  18914. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  18915. SUMMARY_audio="${SUMMARY_audio} esd"
  18916. fi
  18917. have_audio=yes
  18918. fi
  18919. fi
  18920. }
  18921. CheckPipewire()
  18922. {
  18923. # Check whether --enable-pipewire was given.
  18924. if test ${enable_pipewire+y}
  18925. then :
  18926. enableval=$enable_pipewire;
  18927. else $as_nop
  18928. enable_pipewire=yes
  18929. fi
  18930. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18931. pkg_failed=no
  18932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18933. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18934. if test -n "$PIPEWIRE_CFLAGS"; then
  18935. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18936. elif test -n "$PKG_CONFIG"; then
  18937. if test -n "$PKG_CONFIG" && \
  18938. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18939. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18940. ac_status=$?
  18941. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18942. test $ac_status = 0; }; then
  18943. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18944. test "x$?" != "x0" && pkg_failed=yes
  18945. else
  18946. pkg_failed=yes
  18947. fi
  18948. else
  18949. pkg_failed=untried
  18950. fi
  18951. if test -n "$PIPEWIRE_LIBS"; then
  18952. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  18953. elif test -n "$PKG_CONFIG"; then
  18954. if test -n "$PKG_CONFIG" && \
  18955. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18956. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18957. ac_status=$?
  18958. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18959. test $ac_status = 0; }; then
  18960. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18961. test "x$?" != "x0" && pkg_failed=yes
  18962. else
  18963. pkg_failed=yes
  18964. fi
  18965. else
  18966. pkg_failed=untried
  18967. fi
  18968. if test $pkg_failed = yes; then
  18969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18970. printf "%s\n" "no" >&6; }
  18971. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18972. _pkg_short_errors_supported=yes
  18973. else
  18974. _pkg_short_errors_supported=no
  18975. fi
  18976. if test $_pkg_short_errors_supported = yes; then
  18977. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18978. else
  18979. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18980. fi
  18981. # Put the nasty error message in config.log where it belongs
  18982. echo "$PIPEWIRE_PKG_ERRORS" >&5
  18983. audio_pipewire=no
  18984. elif test $pkg_failed = untried; then
  18985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18986. printf "%s\n" "no" >&6; }
  18987. audio_pipewire=no
  18988. else
  18989. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  18990. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  18991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18992. printf "%s\n" "yes" >&6; }
  18993. audio_pipewire=yes
  18994. fi
  18995. if test x$audio_pipewire = xyes; then
  18996. # Check whether --enable-pipewire-shared was given.
  18997. if test ${enable_pipewire_shared+y}
  18998. then :
  18999. enableval=$enable_pipewire_shared;
  19000. else $as_nop
  19001. enable_pipewire_shared=yes
  19002. fi
  19003. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19004. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19005. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19006. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19007. if test x$have_loadso != xyes && \
  19008. test x$enable_pipewire_shared = xyes; then
  19009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19010. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19011. fi
  19012. if test x$have_loadso = xyes && \
  19013. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19014. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19015. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19016. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19017. else
  19018. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19019. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19020. fi
  19021. have_audio=yes
  19022. fi
  19023. fi
  19024. }
  19025. CheckPulseAudio()
  19026. {
  19027. # Check whether --enable-pulseaudio was given.
  19028. if test ${enable_pulseaudio+y}
  19029. then :
  19030. enableval=$enable_pulseaudio;
  19031. else $as_nop
  19032. enable_pulseaudio=yes
  19033. fi
  19034. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19035. pkg_failed=no
  19036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  19037. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  19038. if test -n "$PULSEAUDIO_CFLAGS"; then
  19039. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19040. elif test -n "$PKG_CONFIG"; then
  19041. if test -n "$PKG_CONFIG" && \
  19042. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19043. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19044. ac_status=$?
  19045. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19046. test $ac_status = 0; }; then
  19047. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  19048. test "x$?" != "x0" && pkg_failed=yes
  19049. else
  19050. pkg_failed=yes
  19051. fi
  19052. else
  19053. pkg_failed=untried
  19054. fi
  19055. if test -n "$PULSEAUDIO_LIBS"; then
  19056. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19057. elif test -n "$PKG_CONFIG"; then
  19058. if test -n "$PKG_CONFIG" && \
  19059. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19060. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19061. ac_status=$?
  19062. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19063. test $ac_status = 0; }; then
  19064. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  19065. test "x$?" != "x0" && pkg_failed=yes
  19066. else
  19067. pkg_failed=yes
  19068. fi
  19069. else
  19070. pkg_failed=untried
  19071. fi
  19072. if test $pkg_failed = yes; then
  19073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19074. printf "%s\n" "no" >&6; }
  19075. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19076. _pkg_short_errors_supported=yes
  19077. else
  19078. _pkg_short_errors_supported=no
  19079. fi
  19080. if test $_pkg_short_errors_supported = yes; then
  19081. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19082. else
  19083. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19084. fi
  19085. # Put the nasty error message in config.log where it belongs
  19086. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19087. audio_pulseaudio=no
  19088. elif test $pkg_failed = untried; then
  19089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19090. printf "%s\n" "no" >&6; }
  19091. audio_pulseaudio=no
  19092. else
  19093. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19094. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19096. printf "%s\n" "yes" >&6; }
  19097. audio_pulseaudio=yes
  19098. fi
  19099. if test x$audio_pulseaudio = xyes; then
  19100. # Check whether --enable-pulseaudio-shared was given.
  19101. if test ${enable_pulseaudio_shared+y}
  19102. then :
  19103. enableval=$enable_pulseaudio_shared;
  19104. else $as_nop
  19105. enable_pulseaudio_shared=yes
  19106. fi
  19107. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19108. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19109. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19110. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19111. if test x$have_loadso != xyes && \
  19112. test x$enable_pulseaudio_shared = xyes; then
  19113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19114. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19115. fi
  19116. if test x$have_loadso = xyes && \
  19117. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19118. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  19119. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19120. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19121. case "$host" in
  19122. # On Solaris, pulseaudio must be linked deferred explicitly
  19123. # to prevent undefined symbol failures.
  19124. *-*-solaris*)
  19125. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19126. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19127. esac
  19128. else
  19129. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19130. SUMMARY_audio="${SUMMARY_audio} pulse"
  19131. fi
  19132. have_audio=yes
  19133. fi
  19134. fi
  19135. }
  19136. CheckARTSC()
  19137. {
  19138. # Check whether --enable-arts was given.
  19139. if test ${enable_arts+y}
  19140. then :
  19141. enableval=$enable_arts;
  19142. else $as_nop
  19143. enable_arts=yes
  19144. fi
  19145. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19146. # Extract the first word of "artsc-config", so it can be a program name with args.
  19147. set dummy artsc-config; ac_word=$2
  19148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19149. printf %s "checking for $ac_word... " >&6; }
  19150. if test ${ac_cv_path_ARTSCONFIG+y}
  19151. then :
  19152. printf %s "(cached) " >&6
  19153. else $as_nop
  19154. case $ARTSCONFIG in
  19155. [\\/]* | ?:[\\/]*)
  19156. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19157. ;;
  19158. *)
  19159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19160. for as_dir in $PATH
  19161. do
  19162. IFS=$as_save_IFS
  19163. case $as_dir in #(((
  19164. '') as_dir=./ ;;
  19165. */) ;;
  19166. *) as_dir=$as_dir/ ;;
  19167. esac
  19168. for ac_exec_ext in '' $ac_executable_extensions; do
  19169. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19170. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19171. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19172. break 2
  19173. fi
  19174. done
  19175. done
  19176. IFS=$as_save_IFS
  19177. ;;
  19178. esac
  19179. fi
  19180. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19181. if test -n "$ARTSCONFIG"; then
  19182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19183. printf "%s\n" "$ARTSCONFIG" >&6; }
  19184. else
  19185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19186. printf "%s\n" "no" >&6; }
  19187. fi
  19188. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19189. : # arts isn't installed
  19190. else
  19191. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19192. ARTS_LIBS=`$ARTSCONFIG --libs`
  19193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19194. printf %s "checking for aRts development environment... " >&6; }
  19195. audio_arts=no
  19196. save_CFLAGS="$CFLAGS"
  19197. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19199. /* end confdefs.h. */
  19200. #include <artsc.h>
  19201. int
  19202. main (void)
  19203. {
  19204. arts_stream_t stream;
  19205. ;
  19206. return 0;
  19207. }
  19208. _ACEOF
  19209. if ac_fn_c_try_compile "$LINENO"
  19210. then :
  19211. audio_arts=yes
  19212. fi
  19213. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19214. CFLAGS="$save_CFLAGS"
  19215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19216. printf "%s\n" "$audio_arts" >&6; }
  19217. if test x$audio_arts = xyes; then
  19218. # Check whether --enable-arts-shared was given.
  19219. if test ${enable_arts_shared+y}
  19220. then :
  19221. enableval=$enable_arts_shared;
  19222. else $as_nop
  19223. enable_arts_shared=yes
  19224. fi
  19225. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19226. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19227. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19228. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19229. if test x$have_loadso != xyes && \
  19230. test x$enable_arts_shared = xyes; then
  19231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19232. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19233. fi
  19234. if test x$have_loadso = xyes && \
  19235. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19236. echo "-- dynamic libartsc -> $arts_lib"
  19237. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19238. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19239. else
  19240. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19241. SUMMARY_audio="${SUMMARY_audio} arts"
  19242. fi
  19243. have_audio=yes
  19244. fi
  19245. fi
  19246. fi
  19247. }
  19248. CheckNAS()
  19249. {
  19250. # Check whether --enable-nas was given.
  19251. if test ${enable_nas+y}
  19252. then :
  19253. enableval=$enable_nas;
  19254. else $as_nop
  19255. enable_nas=yes
  19256. fi
  19257. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19258. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19259. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19260. then :
  19261. have_nas_hdr=yes
  19262. fi
  19263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19264. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19265. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19266. then :
  19267. printf %s "(cached) " >&6
  19268. else $as_nop
  19269. ac_check_lib_save_LIBS=$LIBS
  19270. LIBS="-laudio $LIBS"
  19271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19272. /* end confdefs.h. */
  19273. /* Override any GCC internal prototype to avoid an error.
  19274. Use char because int might match the return type of a GCC
  19275. builtin and then its argument prototype would still apply. */
  19276. char AuOpenServer ();
  19277. int
  19278. main (void)
  19279. {
  19280. return AuOpenServer ();
  19281. ;
  19282. return 0;
  19283. }
  19284. _ACEOF
  19285. if ac_fn_c_try_link "$LINENO"
  19286. then :
  19287. ac_cv_lib_audio_AuOpenServer=yes
  19288. else $as_nop
  19289. ac_cv_lib_audio_AuOpenServer=no
  19290. fi
  19291. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19292. conftest$ac_exeext conftest.$ac_ext
  19293. LIBS=$ac_check_lib_save_LIBS
  19294. fi
  19295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19296. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19297. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19298. then :
  19299. have_nas_lib=yes
  19300. fi
  19301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19302. printf %s "checking for NAS audio support... " >&6; }
  19303. have_nas=no
  19304. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19305. have_nas=yes
  19306. NAS_LIBS="-laudio"
  19307. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19308. have_nas=yes
  19309. NAS_CFLAGS="-I/usr/X11R6/include/"
  19310. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19311. fi
  19312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19313. printf "%s\n" "$have_nas" >&6; }
  19314. if test x$have_nas = xyes; then
  19315. # Check whether --enable-nas-shared was given.
  19316. if test ${enable_nas_shared+y}
  19317. then :
  19318. enableval=$enable_nas_shared;
  19319. else $as_nop
  19320. enable_nas_shared=yes
  19321. fi
  19322. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19323. if test x$have_loadso != xyes && \
  19324. test x$enable_nas_shared = xyes; then
  19325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19326. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19327. fi
  19328. if test x$have_loadso = xyes && \
  19329. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19330. echo "-- dynamic libaudio -> $nas_lib"
  19331. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19332. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19333. else
  19334. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19335. SUMMARY_audio="${SUMMARY_audio} nas"
  19336. fi
  19337. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19338. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19339. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19340. have_audio=yes
  19341. fi
  19342. fi
  19343. }
  19344. CheckSNDIO()
  19345. {
  19346. # Check whether --enable-sndio was given.
  19347. if test ${enable_sndio+y}
  19348. then :
  19349. enableval=$enable_sndio;
  19350. else $as_nop
  19351. enable_sndio=yes
  19352. fi
  19353. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19354. ac_fn_c_check_header_compile "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  19355. if test "x$ac_cv_header_sndio_h" = xyes
  19356. then :
  19357. have_sndio_hdr=yes
  19358. fi
  19359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  19360. printf %s "checking for sio_open in -lsndio... " >&6; }
  19361. if test ${ac_cv_lib_sndio_sio_open+y}
  19362. then :
  19363. printf %s "(cached) " >&6
  19364. else $as_nop
  19365. ac_check_lib_save_LIBS=$LIBS
  19366. LIBS="-lsndio $LIBS"
  19367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19368. /* end confdefs.h. */
  19369. /* Override any GCC internal prototype to avoid an error.
  19370. Use char because int might match the return type of a GCC
  19371. builtin and then its argument prototype would still apply. */
  19372. char sio_open ();
  19373. int
  19374. main (void)
  19375. {
  19376. return sio_open ();
  19377. ;
  19378. return 0;
  19379. }
  19380. _ACEOF
  19381. if ac_fn_c_try_link "$LINENO"
  19382. then :
  19383. ac_cv_lib_sndio_sio_open=yes
  19384. else $as_nop
  19385. ac_cv_lib_sndio_sio_open=no
  19386. fi
  19387. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19388. conftest$ac_exeext conftest.$ac_ext
  19389. LIBS=$ac_check_lib_save_LIBS
  19390. fi
  19391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  19392. printf "%s\n" "$ac_cv_lib_sndio_sio_open" >&6; }
  19393. if test "x$ac_cv_lib_sndio_sio_open" = xyes
  19394. then :
  19395. have_sndio_lib=yes
  19396. fi
  19397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  19398. printf %s "checking for sndio audio support... " >&6; }
  19399. have_sndio=no
  19400. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  19401. have_sndio=yes
  19402. SNDIO_LIBS="-lsndio"
  19403. fi
  19404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  19405. printf "%s\n" "$have_sndio" >&6; }
  19406. if test x$have_sndio = xyes; then
  19407. # Check whether --enable-sndio-shared was given.
  19408. if test ${enable_sndio_shared+y}
  19409. then :
  19410. enableval=$enable_sndio_shared;
  19411. else $as_nop
  19412. enable_sndio_shared=yes
  19413. fi
  19414. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19415. if test x$have_loadso != xyes && \
  19416. test x$enable_sndio_shared = xyes; then
  19417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19418. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19419. fi
  19420. if test x$have_loadso = xyes && \
  19421. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19422. echo "-- dynamic libsndio -> $sndio_lib"
  19423. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19424. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19425. else
  19426. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19427. SUMMARY_audio="${SUMMARY_audio} sndio"
  19428. fi
  19429. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19430. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19431. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19432. have_audio=yes
  19433. fi
  19434. fi
  19435. }
  19436. CheckFusionSound()
  19437. {
  19438. # Check whether --enable-fusionsound was given.
  19439. if test ${enable_fusionsound+y}
  19440. then :
  19441. enableval=$enable_fusionsound;
  19442. else $as_nop
  19443. enable_fusionsound=no
  19444. fi
  19445. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19446. pkg_failed=no
  19447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19448. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19449. if test -n "$FUSIONSOUND_CFLAGS"; then
  19450. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19451. elif test -n "$PKG_CONFIG"; then
  19452. if test -n "$PKG_CONFIG" && \
  19453. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19454. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19455. ac_status=$?
  19456. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19457. test $ac_status = 0; }; then
  19458. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19459. test "x$?" != "x0" && pkg_failed=yes
  19460. else
  19461. pkg_failed=yes
  19462. fi
  19463. else
  19464. pkg_failed=untried
  19465. fi
  19466. if test -n "$FUSIONSOUND_LIBS"; then
  19467. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19468. elif test -n "$PKG_CONFIG"; then
  19469. if test -n "$PKG_CONFIG" && \
  19470. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19471. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19472. ac_status=$?
  19473. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19474. test $ac_status = 0; }; then
  19475. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19476. test "x$?" != "x0" && pkg_failed=yes
  19477. else
  19478. pkg_failed=yes
  19479. fi
  19480. else
  19481. pkg_failed=untried
  19482. fi
  19483. if test $pkg_failed = yes; then
  19484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19485. printf "%s\n" "no" >&6; }
  19486. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19487. _pkg_short_errors_supported=yes
  19488. else
  19489. _pkg_short_errors_supported=no
  19490. fi
  19491. if test $_pkg_short_errors_supported = yes; then
  19492. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19493. else
  19494. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19495. fi
  19496. # Put the nasty error message in config.log where it belongs
  19497. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19498. fusionsound=no
  19499. elif test $pkg_failed = untried; then
  19500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19501. printf "%s\n" "no" >&6; }
  19502. fusionsound=no
  19503. else
  19504. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19505. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19507. printf "%s\n" "yes" >&6; }
  19508. fusionsound=yes
  19509. fi
  19510. if test x$fusionsound = xyes; then
  19511. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19512. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19513. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19514. # Check whether --enable-fusionsound-shared was given.
  19515. if test ${enable_fusionsound_shared+y}
  19516. then :
  19517. enableval=$enable_fusionsound_shared;
  19518. else $as_nop
  19519. enable_fusionsound_shared=yes
  19520. fi
  19521. fusionsound_shared=no
  19522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19523. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19524. if test x$have_loadso != xyes && \
  19525. test x$enable_fusionsound_shared = xyes; then
  19526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19527. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19528. fi
  19529. if test x$have_loadso = xyes && \
  19530. test x$enable_fusionsound_shared = xyes; then
  19531. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19532. fusionsound_shared=yes
  19533. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19534. else
  19535. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19536. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19537. fi
  19538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19539. printf "%s\n" "$fusionsound_shared" >&6; }
  19540. have_audio=yes
  19541. fi
  19542. fi
  19543. }
  19544. CheckDiskAudio()
  19545. {
  19546. # Check whether --enable-diskaudio was given.
  19547. if test ${enable_diskaudio+y}
  19548. then :
  19549. enableval=$enable_diskaudio;
  19550. else $as_nop
  19551. enable_diskaudio=yes
  19552. fi
  19553. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19554. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19555. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19556. SUMMARY_audio="${SUMMARY_audio} disk"
  19557. have_audio=yes
  19558. fi
  19559. }
  19560. CheckDummyAudio()
  19561. {
  19562. # Check whether --enable-dummyaudio was given.
  19563. if test ${enable_dummyaudio+y}
  19564. then :
  19565. enableval=$enable_dummyaudio;
  19566. else $as_nop
  19567. enable_dummyaudio=yes
  19568. fi
  19569. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19570. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19571. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19572. SUMMARY_audio="${SUMMARY_audio} dummy"
  19573. have_audio=yes
  19574. fi
  19575. }
  19576. CheckLibSampleRate()
  19577. {
  19578. # Check whether --enable-libsamplerate was given.
  19579. if test ${enable_libsamplerate+y}
  19580. then :
  19581. enableval=$enable_libsamplerate;
  19582. else $as_nop
  19583. enable_libsamplerate=yes
  19584. fi
  19585. if test x$enable_libsamplerate = xyes; then
  19586. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19587. if test "x$ac_cv_header_samplerate_h" = xyes
  19588. then :
  19589. have_samplerate_h_hdr=yes
  19590. else $as_nop
  19591. have_samplerate_h_hdr=no
  19592. fi
  19593. if test x$have_samplerate_h_hdr = xyes; then
  19594. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19595. # Check whether --enable-libsamplerate-shared was given.
  19596. if test ${enable_libsamplerate_shared+y}
  19597. then :
  19598. enableval=$enable_libsamplerate_shared;
  19599. else $as_nop
  19600. enable_libsamplerate_shared=yes
  19601. fi
  19602. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19603. if test x$have_loadso != xyes && \
  19604. test x$enable_libsamplerate_shared = xyes; then
  19605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19606. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19607. fi
  19608. if test x$have_loadso = xyes && \
  19609. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19610. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19611. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19612. else
  19613. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19614. fi
  19615. fi
  19616. fi
  19617. }
  19618. CheckARM()
  19619. {
  19620. # Check whether --enable-arm-simd was given.
  19621. if test ${enable_arm_simd+y}
  19622. then :
  19623. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19624. else $as_nop
  19625. enable_arm_simd=no
  19626. fi
  19627. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19628. save_CFLAGS="$CFLAGS"
  19629. have_arm_simd=no
  19630. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19632. printf %s "checking for ARM SIMD... " >&6; }
  19633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19634. /* end confdefs.h. */
  19635. .text
  19636. .arch armv6
  19637. .object_arch armv4
  19638. .arm
  19639. .altmacro
  19640. #ifndef __ARM_EABI__
  19641. #error EABI is required (to be sure that calling conventions are compatible)
  19642. #endif
  19643. pld [r0]
  19644. uqadd8 r0, r0, r0
  19645. _ACEOF
  19646. if ac_fn_c_try_compile "$LINENO"
  19647. then :
  19648. have_arm_simd=yes
  19649. fi
  19650. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19652. printf "%s\n" "$have_arm_simd" >&6; }
  19653. CFLAGS="$save_CFLAGS"
  19654. if test x$have_arm_simd = xyes; then
  19655. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19656. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19657. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19658. fi
  19659. fi
  19660. }
  19661. CheckNEON()
  19662. {
  19663. # Check whether --enable-arm-neon was given.
  19664. if test ${enable_arm_neon+y}
  19665. then :
  19666. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19667. else $as_nop
  19668. enable_arm_neon=no
  19669. fi
  19670. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19671. save_CFLAGS="$CFLAGS"
  19672. have_arm_neon=no
  19673. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19675. printf %s "checking for ARM NEON... " >&6; }
  19676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19677. /* end confdefs.h. */
  19678. .text
  19679. .fpu neon
  19680. .arch armv7a
  19681. .object_arch armv4
  19682. .eabi_attribute 10, 0
  19683. .arm
  19684. .altmacro
  19685. #ifndef __ARM_EABI__
  19686. #error EABI is required (to be sure that calling conventions are compatible)
  19687. #endif
  19688. pld [r0]
  19689. vmovn.u16 d0, q0
  19690. _ACEOF
  19691. if ac_fn_c_try_compile "$LINENO"
  19692. then :
  19693. have_arm_neon=yes
  19694. fi
  19695. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19697. printf "%s\n" "$have_arm_neon" >&6; }
  19698. CFLAGS="$save_CFLAGS"
  19699. if test x$have_arm_neon = xyes; then
  19700. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19701. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19702. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19703. fi
  19704. fi
  19705. }
  19706. CheckObjectiveCARC()
  19707. {
  19708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19709. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19710. have_clang_objc_arc=no
  19711. save_CFLAGS="$CFLAGS"
  19712. CFLAGS="$save_CFLAGS -fobjc-arc"
  19713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19714. /* end confdefs.h. */
  19715. int x = 0;
  19716. int
  19717. main (void)
  19718. {
  19719. ;
  19720. return 0;
  19721. }
  19722. _ACEOF
  19723. if ac_fn_c_try_compile "$LINENO"
  19724. then :
  19725. have_clang_objc_arc=yes
  19726. fi
  19727. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19729. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19730. CFLAGS="$save_CFLAGS"
  19731. if test x$have_clang_objc_arc = xyes; then
  19732. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19733. fi
  19734. }
  19735. CheckGDwarf4()
  19736. {
  19737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19738. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19739. have_gcc_gdwarf4=no
  19740. save_CFLAGS="$CFLAGS"
  19741. CFLAGS="$save_CFLAGS -gdwarf-4"
  19742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19743. /* end confdefs.h. */
  19744. int x = 0;
  19745. int
  19746. main (void)
  19747. {
  19748. ;
  19749. return 0;
  19750. }
  19751. _ACEOF
  19752. if ac_fn_c_try_compile "$LINENO"
  19753. then :
  19754. have_gcc_gdwarf4=yes
  19755. fi
  19756. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19758. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19759. CFLAGS="$save_CFLAGS"
  19760. if test x$have_gcc_gdwarf4 = xyes; then
  19761. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19762. fi
  19763. }
  19764. CheckVisibilityHidden()
  19765. {
  19766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19767. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19768. have_gcc_fvisibility=no
  19769. visibility_CFLAGS="-fvisibility=hidden"
  19770. save_CFLAGS="$CFLAGS"
  19771. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19773. /* end confdefs.h. */
  19774. #if !defined(__GNUC__) || __GNUC__ < 4
  19775. #error SDL only uses visibility attributes in GCC 4 or newer
  19776. #endif
  19777. int
  19778. main (void)
  19779. {
  19780. ;
  19781. return 0;
  19782. }
  19783. _ACEOF
  19784. if ac_fn_c_try_compile "$LINENO"
  19785. then :
  19786. have_gcc_fvisibility=yes
  19787. fi
  19788. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19790. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19791. CFLAGS="$save_CFLAGS"
  19792. if test x$have_gcc_fvisibility = xyes; then
  19793. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19794. fi
  19795. }
  19796. CheckNoStrictAliasing()
  19797. {
  19798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19799. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19800. have_gcc_no_strict_aliasing=no
  19801. save_CFLAGS="$CFLAGS"
  19802. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19804. /* end confdefs.h. */
  19805. int x = 0;
  19806. int
  19807. main (void)
  19808. {
  19809. ;
  19810. return 0;
  19811. }
  19812. _ACEOF
  19813. if ac_fn_c_try_compile "$LINENO"
  19814. then :
  19815. have_gcc_no_strict_aliasing=yes
  19816. fi
  19817. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19819. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19820. CFLAGS="$save_CFLAGS"
  19821. if test x$have_gcc_no_strict_aliasing = xyes; then
  19822. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19823. fi
  19824. }
  19825. CheckStackBoundary()
  19826. {
  19827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19828. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19829. have_gcc_preferred_stack_boundary=no
  19830. save_CFLAGS="$CFLAGS"
  19831. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  19832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19833. /* end confdefs.h. */
  19834. int x = 0;
  19835. int
  19836. main (void)
  19837. {
  19838. ;
  19839. return 0;
  19840. }
  19841. _ACEOF
  19842. if ac_fn_c_try_compile "$LINENO"
  19843. then :
  19844. have_gcc_preferred_stack_boundary=yes
  19845. fi
  19846. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  19848. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19849. CFLAGS="$save_CFLAGS"
  19850. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19851. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19852. fi
  19853. }
  19854. CheckDeclarationAfterStatement()
  19855. {
  19856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19857. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19858. have_gcc_declaration_after_statement=no
  19859. save_CFLAGS="$CFLAGS"
  19860. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19862. /* end confdefs.h. */
  19863. int x = 0;
  19864. int
  19865. main (void)
  19866. {
  19867. ;
  19868. return 0;
  19869. }
  19870. _ACEOF
  19871. if ac_fn_c_try_compile "$LINENO"
  19872. then :
  19873. have_gcc_declaration_after_statement=yes
  19874. fi
  19875. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19877. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19878. CFLAGS="$save_CFLAGS"
  19879. if test x$have_gcc_declaration_after_statement = xyes; then
  19880. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19881. fi
  19882. }
  19883. CheckWarnAll()
  19884. {
  19885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19886. printf %s "checking for GCC -Wall option... " >&6; }
  19887. have_gcc_Wall=no
  19888. save_CFLAGS="$CFLAGS"
  19889. CFLAGS="$save_CFLAGS -Wall"
  19890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19891. /* end confdefs.h. */
  19892. int x = 0;
  19893. int
  19894. main (void)
  19895. {
  19896. ;
  19897. return 0;
  19898. }
  19899. _ACEOF
  19900. if ac_fn_c_try_compile "$LINENO"
  19901. then :
  19902. have_gcc_Wall=yes
  19903. fi
  19904. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19906. printf "%s\n" "$have_gcc_Wall" >&6; }
  19907. CFLAGS="$save_CFLAGS"
  19908. if test x$have_gcc_Wall = xyes; then
  19909. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19911. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19912. need_gcc_Wno_multichar=no
  19913. case "$host" in
  19914. *-*-haiku*)
  19915. need_gcc_Wno_multichar=yes
  19916. ;;
  19917. esac
  19918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  19919. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  19920. if test x$need_gcc_Wno_multichar = xyes; then
  19921. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  19922. fi
  19923. fi
  19924. }
  19925. CheckWayland()
  19926. {
  19927. # Check whether --enable-video-wayland was given.
  19928. if test ${enable_video_wayland+y}
  19929. then :
  19930. enableval=$enable_video_wayland;
  19931. else $as_nop
  19932. enable_video_wayland=yes
  19933. fi
  19934. # Check whether --enable-video-wayland-qt-touch was given.
  19935. if test ${enable_video_wayland_qt_touch+y}
  19936. then :
  19937. enableval=$enable_video_wayland_qt_touch;
  19938. else $as_nop
  19939. enable_video_wayland_qt_touch=yes
  19940. fi
  19941. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  19942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  19943. printf %s "checking for Wayland support... " >&6; }
  19944. video_wayland=no
  19945. if test x$video_opengl_egl = xyes && \
  19946. test x$video_opengles_v2 = xyes; then
  19947. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  19948. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  19949. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  19950. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  19951. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  19952. then :
  19953. WAYLAND_SCANNER_CODE_MODE=private-code
  19954. else $as_nop
  19955. WAYLAND_SCANNER_CODE_MODE=code
  19956. fi
  19957. video_wayland=yes
  19958. fi
  19959. fi
  19960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  19961. printf "%s\n" "$video_wayland" >&6; }
  19962. if test x$video_wayland = xyes; then
  19963. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  19964. if test x$enable_video_wayland_qt_touch = xyes; then
  19965. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  19966. fi
  19967. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  19968. SOURCES="$SOURCES $WAYLAND_SOURCES"
  19969. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  19970. # Check whether --enable-wayland-shared was given.
  19971. if test ${enable_wayland_shared+y}
  19972. then :
  19973. enableval=$enable_wayland_shared;
  19974. else $as_nop
  19975. enable_wayland_shared=maybe
  19976. fi
  19977. case "$host" in
  19978. *)
  19979. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19980. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19981. if test x$wayland_egl_lib = x; then
  19982. # This works in Ubuntu 13.10, maybe others
  19983. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19984. fi
  19985. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19986. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19987. ;;
  19988. esac
  19989. if test x$enable_wayland_shared = xmaybe; then
  19990. enable_wayland_shared=yes
  19991. fi
  19992. if test x$have_loadso != xyes && \
  19993. test x$enable_wayland_shared = xyes; then
  19994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  19995. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  19996. enable_wayland_shared=no
  19997. fi
  19998. if test x$have_loadso = xyes && \
  19999. test x$enable_wayland_shared = xyes && \
  20000. test x$wayland_client_lib != x && \
  20001. test x$wayland_egl_lib != x && \
  20002. test x$wayland_cursor_lib != x && \
  20003. test x$xkbcommon_lib != x; then
  20004. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20005. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20006. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20007. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20008. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20009. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20010. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20011. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20012. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20013. else
  20014. enable_wayland_shared=no
  20015. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20016. SUMMARY_video="${SUMMARY_video} wayland"
  20017. fi
  20018. have_video=yes
  20019. # Check whether --enable-libdecor was given.
  20020. if test ${enable_libdecor+y}
  20021. then :
  20022. enableval=$enable_libdecor;
  20023. else $as_nop
  20024. enable_libdecor=yes
  20025. fi
  20026. if test x$enable_libdecor = xyes; then
  20027. pkg_failed=no
  20028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20029. printf %s "checking for libdecor-0... " >&6; }
  20030. if test -n "$DECOR_CFLAGS"; then
  20031. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20032. elif test -n "$PKG_CONFIG"; then
  20033. if test -n "$PKG_CONFIG" && \
  20034. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20035. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20036. ac_status=$?
  20037. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20038. test $ac_status = 0; }; then
  20039. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20040. test "x$?" != "x0" && pkg_failed=yes
  20041. else
  20042. pkg_failed=yes
  20043. fi
  20044. else
  20045. pkg_failed=untried
  20046. fi
  20047. if test -n "$DECOR_LIBS"; then
  20048. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20049. elif test -n "$PKG_CONFIG"; then
  20050. if test -n "$PKG_CONFIG" && \
  20051. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20052. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20053. ac_status=$?
  20054. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20055. test $ac_status = 0; }; then
  20056. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20057. test "x$?" != "x0" && pkg_failed=yes
  20058. else
  20059. pkg_failed=yes
  20060. fi
  20061. else
  20062. pkg_failed=untried
  20063. fi
  20064. if test $pkg_failed = yes; then
  20065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20066. printf "%s\n" "no" >&6; }
  20067. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20068. _pkg_short_errors_supported=yes
  20069. else
  20070. _pkg_short_errors_supported=no
  20071. fi
  20072. if test $_pkg_short_errors_supported = yes; then
  20073. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20074. else
  20075. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20076. fi
  20077. # Put the nasty error message in config.log where it belongs
  20078. echo "$DECOR_PKG_ERRORS" >&5
  20079. video_libdecor=no
  20080. elif test $pkg_failed = untried; then
  20081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20082. printf "%s\n" "no" >&6; }
  20083. video_libdecor=no
  20084. else
  20085. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20086. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20088. printf "%s\n" "yes" >&6; }
  20089. video_libdecor=yes
  20090. fi
  20091. if test x$video_libdecor = xyes; then
  20092. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20093. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20094. # Check whether --enable-libdecor-shared was given.
  20095. if test ${enable_libdecor_shared+y}
  20096. then :
  20097. enableval=$enable_libdecor_shared;
  20098. else $as_nop
  20099. enable_libdecor_shared=yes
  20100. fi
  20101. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20102. if test x$enable_wayland_shared != xyes; then
  20103. enable_libdecor_shared=no
  20104. fi
  20105. if test x$have_loadso != xyes && \
  20106. test x$enable_libdecor_shared = xyes; then
  20107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20108. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20109. fi
  20110. if test x$have_loadso = xyes && \
  20111. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20112. echo "-- dynamic libdecor -> $decor_lib"
  20113. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20114. else
  20115. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20116. fi
  20117. fi
  20118. fi
  20119. fi
  20120. fi
  20121. }
  20122. CheckNativeClient()
  20123. {
  20124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20125. /* end confdefs.h. */
  20126. #if !defined(__native_client__)
  20127. #error "NO NACL"
  20128. #endif
  20129. int
  20130. main (void)
  20131. {
  20132. ;
  20133. return 0;
  20134. }
  20135. _ACEOF
  20136. if ac_fn_c_try_compile "$LINENO"
  20137. then :
  20138. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20139. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20140. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20141. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20142. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20143. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20144. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20145. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20146. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20147. SUMMARY_audio="${SUMMARY_audio} nacl"
  20148. have_audio=yes
  20149. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20150. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20151. have_video=yes
  20152. fi
  20153. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20154. }
  20155. CheckRPI()
  20156. {
  20157. # Check whether --enable-video-rpi was given.
  20158. if test ${enable_video_rpi+y}
  20159. then :
  20160. enableval=$enable_video_rpi;
  20161. else $as_nop
  20162. enable_video_rpi=yes
  20163. fi
  20164. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20165. pkg_failed=no
  20166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20167. printf %s "checking for bcm_host brcmegl... " >&6; }
  20168. if test -n "$RPI_CFLAGS"; then
  20169. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20170. elif test -n "$PKG_CONFIG"; then
  20171. if test -n "$PKG_CONFIG" && \
  20172. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20173. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20174. ac_status=$?
  20175. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20176. test $ac_status = 0; }; then
  20177. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20178. test "x$?" != "x0" && pkg_failed=yes
  20179. else
  20180. pkg_failed=yes
  20181. fi
  20182. else
  20183. pkg_failed=untried
  20184. fi
  20185. if test -n "$RPI_LIBS"; then
  20186. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20187. elif test -n "$PKG_CONFIG"; then
  20188. if test -n "$PKG_CONFIG" && \
  20189. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20190. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20191. ac_status=$?
  20192. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20193. test $ac_status = 0; }; then
  20194. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  20195. test "x$?" != "x0" && pkg_failed=yes
  20196. else
  20197. pkg_failed=yes
  20198. fi
  20199. else
  20200. pkg_failed=untried
  20201. fi
  20202. if test $pkg_failed = yes; then
  20203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20204. printf "%s\n" "no" >&6; }
  20205. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20206. _pkg_short_errors_supported=yes
  20207. else
  20208. _pkg_short_errors_supported=no
  20209. fi
  20210. if test $_pkg_short_errors_supported = yes; then
  20211. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20212. else
  20213. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20214. fi
  20215. # Put the nasty error message in config.log where it belongs
  20216. echo "$RPI_PKG_ERRORS" >&5
  20217. video_rpi=no
  20218. elif test $pkg_failed = untried; then
  20219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20220. printf "%s\n" "no" >&6; }
  20221. video_rpi=no
  20222. else
  20223. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20224. RPI_LIBS=$pkg_cv_RPI_LIBS
  20225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20226. printf "%s\n" "yes" >&6; }
  20227. video_rpi=yes
  20228. fi
  20229. if test x$video_rpi = xno; then
  20230. if test x$ARCH = xnetbsd; then
  20231. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20232. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20233. else
  20234. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20235. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20236. fi
  20237. fi
  20238. # Save the original compiler flags and libraries
  20239. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20240. # Add the Raspberry Pi compiler flags and libraries
  20241. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20243. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20244. have_video_rpi=no
  20245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20246. /* end confdefs.h. */
  20247. #include <bcm_host.h>
  20248. #include <EGL/eglplatform.h>
  20249. int
  20250. main (void)
  20251. {
  20252. EGL_DISPMANX_WINDOW_T window;
  20253. bcm_host_init();
  20254. ;
  20255. return 0;
  20256. }
  20257. _ACEOF
  20258. if ac_fn_c_try_link "$LINENO"
  20259. then :
  20260. have_video_rpi=yes
  20261. fi
  20262. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20263. conftest$ac_exeext conftest.$ac_ext
  20264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20265. printf "%s\n" "$have_video_rpi" >&6; }
  20266. # Restore the compiler flags and libraries
  20267. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20268. if test x$have_video_rpi = xyes; then
  20269. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20270. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20271. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20272. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20273. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20274. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20275. SUMMARY_video="${SUMMARY_video} rpi"
  20276. have_video=yes
  20277. fi
  20278. fi
  20279. }
  20280. CheckX11()
  20281. {
  20282. # Check whether --enable-video-x11 was given.
  20283. if test ${enable_video_x11+y}
  20284. then :
  20285. enableval=$enable_video_x11;
  20286. else $as_nop
  20287. enable_video_x11=yes
  20288. fi
  20289. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20290. case "$host" in
  20291. *-*-darwin*)
  20292. # This isn't necessary for X11, but fixes GLX detection
  20293. if test "x$x_includes" = xNONE && \
  20294. test "x$x_libraries" = xNONE && \
  20295. test -d /opt/X11/include && \
  20296. test -d /opt/X11/lib; then
  20297. x_includes="/opt/X11/include"
  20298. x_libraries="/opt/X11/lib"
  20299. fi
  20300. ;;
  20301. esac
  20302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20303. printf %s "checking for X... " >&6; }
  20304. # Check whether --with-x was given.
  20305. if test ${with_x+y}
  20306. then :
  20307. withval=$with_x;
  20308. fi
  20309. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20310. if test "x$with_x" = xno; then
  20311. # The user explicitly disabled X.
  20312. have_x=disabled
  20313. else
  20314. case $x_includes,$x_libraries in #(
  20315. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20316. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20317. then :
  20318. printf %s "(cached) " >&6
  20319. else $as_nop
  20320. # One or both of the vars are not set, and there is no cached value.
  20321. ac_x_includes=no
  20322. ac_x_libraries=no
  20323. # Do we need to do anything special at all?
  20324. ac_save_LIBS=$LIBS
  20325. LIBS="-lX11 $LIBS"
  20326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20327. /* end confdefs.h. */
  20328. #include <X11/Xlib.h>
  20329. int
  20330. main (void)
  20331. {
  20332. XrmInitialize ()
  20333. ;
  20334. return 0;
  20335. }
  20336. _ACEOF
  20337. if ac_fn_c_try_link "$LINENO"
  20338. then :
  20339. # We can compile and link X programs with no special options.
  20340. ac_x_includes=
  20341. ac_x_libraries=
  20342. fi
  20343. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20344. conftest$ac_exeext conftest.$ac_ext
  20345. LIBS="$ac_save_LIBS"
  20346. # If that didn't work, only try xmkmf and file system searches
  20347. # for native compilation.
  20348. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20349. then :
  20350. rm -f -r conftest.dir
  20351. if mkdir conftest.dir; then
  20352. cd conftest.dir
  20353. cat >Imakefile <<'_ACEOF'
  20354. incroot:
  20355. @echo incroot='${INCROOT}'
  20356. usrlibdir:
  20357. @echo usrlibdir='${USRLIBDIR}'
  20358. libdir:
  20359. @echo libdir='${LIBDIR}'
  20360. _ACEOF
  20361. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20362. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20363. for ac_var in incroot usrlibdir libdir; do
  20364. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20365. done
  20366. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20367. for ac_extension in a so sl dylib la dll; do
  20368. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20369. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20370. ac_im_usrlibdir=$ac_im_libdir; break
  20371. fi
  20372. done
  20373. # Screen out bogus values from the imake configuration. They are
  20374. # bogus both because they are the default anyway, and because
  20375. # using them would break gcc on systems where it needs fixed includes.
  20376. case $ac_im_incroot in
  20377. /usr/include) ac_x_includes= ;;
  20378. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20379. esac
  20380. case $ac_im_usrlibdir in
  20381. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20382. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20383. esac
  20384. fi
  20385. cd ..
  20386. rm -f -r conftest.dir
  20387. fi
  20388. # Standard set of common directories for X headers.
  20389. # Check X11 before X11Rn because it is often a symlink to the current release.
  20390. ac_x_header_dirs='
  20391. /usr/X11/include
  20392. /usr/X11R7/include
  20393. /usr/X11R6/include
  20394. /usr/X11R5/include
  20395. /usr/X11R4/include
  20396. /usr/include/X11
  20397. /usr/include/X11R7
  20398. /usr/include/X11R6
  20399. /usr/include/X11R5
  20400. /usr/include/X11R4
  20401. /usr/local/X11/include
  20402. /usr/local/X11R7/include
  20403. /usr/local/X11R6/include
  20404. /usr/local/X11R5/include
  20405. /usr/local/X11R4/include
  20406. /usr/local/include/X11
  20407. /usr/local/include/X11R7
  20408. /usr/local/include/X11R6
  20409. /usr/local/include/X11R5
  20410. /usr/local/include/X11R4
  20411. /opt/X11/include
  20412. /usr/X386/include
  20413. /usr/x386/include
  20414. /usr/XFree86/include/X11
  20415. /usr/include
  20416. /usr/local/include
  20417. /usr/unsupported/include
  20418. /usr/athena/include
  20419. /usr/local/x11r5/include
  20420. /usr/lpp/Xamples/include
  20421. /usr/openwin/include
  20422. /usr/openwin/share/include'
  20423. if test "$ac_x_includes" = no; then
  20424. # Guess where to find include files, by looking for Xlib.h.
  20425. # First, try using that file with no special directory specified.
  20426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20427. /* end confdefs.h. */
  20428. #include <X11/Xlib.h>
  20429. _ACEOF
  20430. if ac_fn_c_try_cpp "$LINENO"
  20431. then :
  20432. # We can compile using X headers with no special include directory.
  20433. ac_x_includes=
  20434. else $as_nop
  20435. for ac_dir in $ac_x_header_dirs; do
  20436. if test -r "$ac_dir/X11/Xlib.h"; then
  20437. ac_x_includes=$ac_dir
  20438. break
  20439. fi
  20440. done
  20441. fi
  20442. rm -f conftest.err conftest.i conftest.$ac_ext
  20443. fi # $ac_x_includes = no
  20444. if test "$ac_x_libraries" = no; then
  20445. # Check for the libraries.
  20446. # See if we find them without any special options.
  20447. # Don't add to $LIBS permanently.
  20448. ac_save_LIBS=$LIBS
  20449. LIBS="-lX11 $LIBS"
  20450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20451. /* end confdefs.h. */
  20452. #include <X11/Xlib.h>
  20453. int
  20454. main (void)
  20455. {
  20456. XrmInitialize ()
  20457. ;
  20458. return 0;
  20459. }
  20460. _ACEOF
  20461. if ac_fn_c_try_link "$LINENO"
  20462. then :
  20463. LIBS=$ac_save_LIBS
  20464. # We can link X programs with no special library path.
  20465. ac_x_libraries=
  20466. else $as_nop
  20467. LIBS=$ac_save_LIBS
  20468. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20469. do
  20470. # Don't even attempt the hair of trying to link an X program!
  20471. for ac_extension in a so sl dylib la dll; do
  20472. if test -r "$ac_dir/libX11.$ac_extension"; then
  20473. ac_x_libraries=$ac_dir
  20474. break 2
  20475. fi
  20476. done
  20477. done
  20478. fi
  20479. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20480. conftest$ac_exeext conftest.$ac_ext
  20481. fi # $ac_x_libraries = no
  20482. fi
  20483. # Record the results.
  20484. case $ac_x_includes,$ac_x_libraries in #(
  20485. no,* | *,no | *\'*) :
  20486. # Didn't find X, or a directory has "'" in its name.
  20487. ac_cv_have_x="have_x=no" ;; #(
  20488. *) :
  20489. # Record where we found X for the cache.
  20490. ac_cv_have_x="have_x=yes\
  20491. ac_x_includes='$ac_x_includes'\
  20492. ac_x_libraries='$ac_x_libraries'" ;;
  20493. esac
  20494. fi
  20495. ;; #(
  20496. *) have_x=yes;;
  20497. esac
  20498. eval "$ac_cv_have_x"
  20499. fi # $with_x != no
  20500. if test "$have_x" != yes; then
  20501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20502. printf "%s\n" "$have_x" >&6; }
  20503. no_x=yes
  20504. else
  20505. # If each of the values was on the command line, it overrides each guess.
  20506. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20507. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20508. # Update the cache value to reflect the command line values.
  20509. ac_cv_have_x="have_x=yes\
  20510. ac_x_includes='$x_includes'\
  20511. ac_x_libraries='$x_libraries'"
  20512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20513. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20514. fi
  20515. if test "$no_x" = yes; then
  20516. # Not all programs may use this symbol, but it does not hurt to define it.
  20517. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20518. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20519. else
  20520. if test -n "$x_includes"; then
  20521. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20522. fi
  20523. # It would also be nice to do this for all -L options, not just this one.
  20524. if test -n "$x_libraries"; then
  20525. X_LIBS="$X_LIBS -L$x_libraries"
  20526. # For Solaris; some versions of Sun CC require a space after -R and
  20527. # others require no space. Words are not sufficient . . . .
  20528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20529. printf %s "checking whether -R must be followed by a space... " >&6; }
  20530. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20531. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20532. ac_c_werror_flag=yes
  20533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20534. /* end confdefs.h. */
  20535. int
  20536. main (void)
  20537. {
  20538. ;
  20539. return 0;
  20540. }
  20541. _ACEOF
  20542. if ac_fn_c_try_link "$LINENO"
  20543. then :
  20544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20545. printf "%s\n" "no" >&6; }
  20546. X_LIBS="$X_LIBS -R$x_libraries"
  20547. else $as_nop
  20548. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20550. /* end confdefs.h. */
  20551. int
  20552. main (void)
  20553. {
  20554. ;
  20555. return 0;
  20556. }
  20557. _ACEOF
  20558. if ac_fn_c_try_link "$LINENO"
  20559. then :
  20560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20561. printf "%s\n" "yes" >&6; }
  20562. X_LIBS="$X_LIBS -R $x_libraries"
  20563. else $as_nop
  20564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20565. printf "%s\n" "neither works" >&6; }
  20566. fi
  20567. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20568. conftest$ac_exeext conftest.$ac_ext
  20569. fi
  20570. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20571. conftest$ac_exeext conftest.$ac_ext
  20572. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20573. LIBS=$ac_xsave_LIBS
  20574. fi
  20575. # Check for system-dependent libraries X programs must link with.
  20576. # Do this before checking for the system-independent R6 libraries
  20577. # (-lICE), since we may need -lsocket or whatever for X linking.
  20578. if test "$ISC" = yes; then
  20579. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20580. else
  20581. # Martyn Johnson says this is needed for Ultrix, if the X
  20582. # libraries were built with DECnet support. And Karl Berry says
  20583. # the Alpha needs dnet_stub (dnet does not exist).
  20584. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20586. /* end confdefs.h. */
  20587. /* Override any GCC internal prototype to avoid an error.
  20588. Use char because int might match the return type of a GCC
  20589. builtin and then its argument prototype would still apply. */
  20590. char XOpenDisplay ();
  20591. int
  20592. main (void)
  20593. {
  20594. return XOpenDisplay ();
  20595. ;
  20596. return 0;
  20597. }
  20598. _ACEOF
  20599. if ac_fn_c_try_link "$LINENO"
  20600. then :
  20601. else $as_nop
  20602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20603. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20604. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20605. then :
  20606. printf %s "(cached) " >&6
  20607. else $as_nop
  20608. ac_check_lib_save_LIBS=$LIBS
  20609. LIBS="-ldnet $LIBS"
  20610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20611. /* end confdefs.h. */
  20612. /* Override any GCC internal prototype to avoid an error.
  20613. Use char because int might match the return type of a GCC
  20614. builtin and then its argument prototype would still apply. */
  20615. char dnet_ntoa ();
  20616. int
  20617. main (void)
  20618. {
  20619. return dnet_ntoa ();
  20620. ;
  20621. return 0;
  20622. }
  20623. _ACEOF
  20624. if ac_fn_c_try_link "$LINENO"
  20625. then :
  20626. ac_cv_lib_dnet_dnet_ntoa=yes
  20627. else $as_nop
  20628. ac_cv_lib_dnet_dnet_ntoa=no
  20629. fi
  20630. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20631. conftest$ac_exeext conftest.$ac_ext
  20632. LIBS=$ac_check_lib_save_LIBS
  20633. fi
  20634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20635. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20636. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20637. then :
  20638. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20639. fi
  20640. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20642. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20643. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20644. then :
  20645. printf %s "(cached) " >&6
  20646. else $as_nop
  20647. ac_check_lib_save_LIBS=$LIBS
  20648. LIBS="-ldnet_stub $LIBS"
  20649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20650. /* end confdefs.h. */
  20651. /* Override any GCC internal prototype to avoid an error.
  20652. Use char because int might match the return type of a GCC
  20653. builtin and then its argument prototype would still apply. */
  20654. char dnet_ntoa ();
  20655. int
  20656. main (void)
  20657. {
  20658. return dnet_ntoa ();
  20659. ;
  20660. return 0;
  20661. }
  20662. _ACEOF
  20663. if ac_fn_c_try_link "$LINENO"
  20664. then :
  20665. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20666. else $as_nop
  20667. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20668. fi
  20669. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20670. conftest$ac_exeext conftest.$ac_ext
  20671. LIBS=$ac_check_lib_save_LIBS
  20672. fi
  20673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20674. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20675. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20676. then :
  20677. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20678. fi
  20679. fi
  20680. fi
  20681. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20682. conftest$ac_exeext conftest.$ac_ext
  20683. LIBS="$ac_xsave_LIBS"
  20684. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20685. # to get the SysV transport functions.
  20686. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20687. # needs -lnsl.
  20688. # The nsl library prevents programs from opening the X display
  20689. # on Irix 5.2, according to T.E. Dickey.
  20690. # The functions gethostbyname, getservbyname, and inet_addr are
  20691. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20692. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20693. if test "x$ac_cv_func_gethostbyname" = xyes
  20694. then :
  20695. fi
  20696. if test $ac_cv_func_gethostbyname = no; then
  20697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20698. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20699. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20700. then :
  20701. printf %s "(cached) " >&6
  20702. else $as_nop
  20703. ac_check_lib_save_LIBS=$LIBS
  20704. LIBS="-lnsl $LIBS"
  20705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20706. /* end confdefs.h. */
  20707. /* Override any GCC internal prototype to avoid an error.
  20708. Use char because int might match the return type of a GCC
  20709. builtin and then its argument prototype would still apply. */
  20710. char gethostbyname ();
  20711. int
  20712. main (void)
  20713. {
  20714. return gethostbyname ();
  20715. ;
  20716. return 0;
  20717. }
  20718. _ACEOF
  20719. if ac_fn_c_try_link "$LINENO"
  20720. then :
  20721. ac_cv_lib_nsl_gethostbyname=yes
  20722. else $as_nop
  20723. ac_cv_lib_nsl_gethostbyname=no
  20724. fi
  20725. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20726. conftest$ac_exeext conftest.$ac_ext
  20727. LIBS=$ac_check_lib_save_LIBS
  20728. fi
  20729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20730. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20731. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  20732. then :
  20733. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20734. fi
  20735. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20737. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  20738. if test ${ac_cv_lib_bsd_gethostbyname+y}
  20739. then :
  20740. printf %s "(cached) " >&6
  20741. else $as_nop
  20742. ac_check_lib_save_LIBS=$LIBS
  20743. LIBS="-lbsd $LIBS"
  20744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20745. /* end confdefs.h. */
  20746. /* Override any GCC internal prototype to avoid an error.
  20747. Use char because int might match the return type of a GCC
  20748. builtin and then its argument prototype would still apply. */
  20749. char gethostbyname ();
  20750. int
  20751. main (void)
  20752. {
  20753. return gethostbyname ();
  20754. ;
  20755. return 0;
  20756. }
  20757. _ACEOF
  20758. if ac_fn_c_try_link "$LINENO"
  20759. then :
  20760. ac_cv_lib_bsd_gethostbyname=yes
  20761. else $as_nop
  20762. ac_cv_lib_bsd_gethostbyname=no
  20763. fi
  20764. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20765. conftest$ac_exeext conftest.$ac_ext
  20766. LIBS=$ac_check_lib_save_LIBS
  20767. fi
  20768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20769. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20770. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20771. then :
  20772. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20773. fi
  20774. fi
  20775. fi
  20776. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20777. # socket/setsockopt and other routines are undefined under SCO ODT
  20778. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20779. # on later versions), says Simon Leinen: it contains gethostby*
  20780. # variants that don't use the name server (or something). -lsocket
  20781. # must be given before -lnsl if both are needed. We assume that
  20782. # if connect needs -lnsl, so does gethostbyname.
  20783. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20784. if test "x$ac_cv_func_connect" = xyes
  20785. then :
  20786. fi
  20787. if test $ac_cv_func_connect = no; then
  20788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20789. printf %s "checking for connect in -lsocket... " >&6; }
  20790. if test ${ac_cv_lib_socket_connect+y}
  20791. then :
  20792. printf %s "(cached) " >&6
  20793. else $as_nop
  20794. ac_check_lib_save_LIBS=$LIBS
  20795. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20797. /* end confdefs.h. */
  20798. /* Override any GCC internal prototype to avoid an error.
  20799. Use char because int might match the return type of a GCC
  20800. builtin and then its argument prototype would still apply. */
  20801. char connect ();
  20802. int
  20803. main (void)
  20804. {
  20805. return connect ();
  20806. ;
  20807. return 0;
  20808. }
  20809. _ACEOF
  20810. if ac_fn_c_try_link "$LINENO"
  20811. then :
  20812. ac_cv_lib_socket_connect=yes
  20813. else $as_nop
  20814. ac_cv_lib_socket_connect=no
  20815. fi
  20816. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20817. conftest$ac_exeext conftest.$ac_ext
  20818. LIBS=$ac_check_lib_save_LIBS
  20819. fi
  20820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20821. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20822. if test "x$ac_cv_lib_socket_connect" = xyes
  20823. then :
  20824. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20825. fi
  20826. fi
  20827. # Guillermo Gomez says -lposix is necessary on A/UX.
  20828. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20829. if test "x$ac_cv_func_remove" = xyes
  20830. then :
  20831. fi
  20832. if test $ac_cv_func_remove = no; then
  20833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20834. printf %s "checking for remove in -lposix... " >&6; }
  20835. if test ${ac_cv_lib_posix_remove+y}
  20836. then :
  20837. printf %s "(cached) " >&6
  20838. else $as_nop
  20839. ac_check_lib_save_LIBS=$LIBS
  20840. LIBS="-lposix $LIBS"
  20841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20842. /* end confdefs.h. */
  20843. /* Override any GCC internal prototype to avoid an error.
  20844. Use char because int might match the return type of a GCC
  20845. builtin and then its argument prototype would still apply. */
  20846. char remove ();
  20847. int
  20848. main (void)
  20849. {
  20850. return remove ();
  20851. ;
  20852. return 0;
  20853. }
  20854. _ACEOF
  20855. if ac_fn_c_try_link "$LINENO"
  20856. then :
  20857. ac_cv_lib_posix_remove=yes
  20858. else $as_nop
  20859. ac_cv_lib_posix_remove=no
  20860. fi
  20861. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20862. conftest$ac_exeext conftest.$ac_ext
  20863. LIBS=$ac_check_lib_save_LIBS
  20864. fi
  20865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20866. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20867. if test "x$ac_cv_lib_posix_remove" = xyes
  20868. then :
  20869. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20870. fi
  20871. fi
  20872. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20873. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20874. if test "x$ac_cv_func_shmat" = xyes
  20875. then :
  20876. fi
  20877. if test $ac_cv_func_shmat = no; then
  20878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20879. printf %s "checking for shmat in -lipc... " >&6; }
  20880. if test ${ac_cv_lib_ipc_shmat+y}
  20881. then :
  20882. printf %s "(cached) " >&6
  20883. else $as_nop
  20884. ac_check_lib_save_LIBS=$LIBS
  20885. LIBS="-lipc $LIBS"
  20886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20887. /* end confdefs.h. */
  20888. /* Override any GCC internal prototype to avoid an error.
  20889. Use char because int might match the return type of a GCC
  20890. builtin and then its argument prototype would still apply. */
  20891. char shmat ();
  20892. int
  20893. main (void)
  20894. {
  20895. return shmat ();
  20896. ;
  20897. return 0;
  20898. }
  20899. _ACEOF
  20900. if ac_fn_c_try_link "$LINENO"
  20901. then :
  20902. ac_cv_lib_ipc_shmat=yes
  20903. else $as_nop
  20904. ac_cv_lib_ipc_shmat=no
  20905. fi
  20906. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20907. conftest$ac_exeext conftest.$ac_ext
  20908. LIBS=$ac_check_lib_save_LIBS
  20909. fi
  20910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20911. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  20912. if test "x$ac_cv_lib_ipc_shmat" = xyes
  20913. then :
  20914. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20915. fi
  20916. fi
  20917. fi
  20918. # Check for libraries that X11R6 Xt/Xaw programs need.
  20919. ac_save_LDFLAGS=$LDFLAGS
  20920. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  20921. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  20922. # check for ICE first), but we must link in the order -lSM -lICE or
  20923. # we get undefined symbols. So assume we have SM if we have ICE.
  20924. # These have to be linked with before -lX11, unlike the other
  20925. # libraries we check for below, so use a different variable.
  20926. # John Interrante, Karl Berry
  20927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  20928. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  20929. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  20930. then :
  20931. printf %s "(cached) " >&6
  20932. else $as_nop
  20933. ac_check_lib_save_LIBS=$LIBS
  20934. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  20935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20936. /* end confdefs.h. */
  20937. /* Override any GCC internal prototype to avoid an error.
  20938. Use char because int might match the return type of a GCC
  20939. builtin and then its argument prototype would still apply. */
  20940. char IceConnectionNumber ();
  20941. int
  20942. main (void)
  20943. {
  20944. return IceConnectionNumber ();
  20945. ;
  20946. return 0;
  20947. }
  20948. _ACEOF
  20949. if ac_fn_c_try_link "$LINENO"
  20950. then :
  20951. ac_cv_lib_ICE_IceConnectionNumber=yes
  20952. else $as_nop
  20953. ac_cv_lib_ICE_IceConnectionNumber=no
  20954. fi
  20955. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20956. conftest$ac_exeext conftest.$ac_ext
  20957. LIBS=$ac_check_lib_save_LIBS
  20958. fi
  20959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  20960. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  20961. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  20962. then :
  20963. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  20964. fi
  20965. LDFLAGS=$ac_save_LDFLAGS
  20966. fi
  20967. if test x$have_x = xyes; then
  20968. # Check whether --enable-x11-shared was given.
  20969. if test ${enable_x11_shared+y}
  20970. then :
  20971. enableval=$enable_x11_shared;
  20972. else $as_nop
  20973. enable_x11_shared=maybe
  20974. fi
  20975. case "$host" in
  20976. *-*-darwin*)
  20977. # Apple now puts this in /opt/X11
  20978. x11_lib='/opt/X11/lib/libX11.6.dylib'
  20979. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  20980. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  20981. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  20982. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  20983. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  20984. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  20985. xss_lib='/opt/X11/lib/libXss.1.dylib'
  20986. ;;
  20987. *-*-openbsd*)
  20988. x11_lib='libX11.so'
  20989. x11ext_lib='libXext.so'
  20990. xcursor_lib='libXcursor.so'
  20991. xinput_lib='libXi.so'
  20992. xfixes_lib='libXfixes.so'
  20993. xrandr_lib='libXrandr.so'
  20994. xrender_lib='libXrender.so'
  20995. xss_lib='libXss.so'
  20996. ;;
  20997. *)
  20998. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20999. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21000. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21001. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21002. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21003. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21004. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21005. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21006. ;;
  21007. esac
  21008. if test x$ac_cv_func_shmat != xyes; then
  21009. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21010. fi
  21011. CFLAGS="$CFLAGS $X_CFLAGS"
  21012. LDFLAGS="$LDFLAGS $X_LIBS"
  21013. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21014. #include <X11/Xproto.h>
  21015. "
  21016. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21017. then :
  21018. have_xext_h_hdr=yes
  21019. else $as_nop
  21020. have_xext_h_hdr=no
  21021. fi
  21022. if test x$have_xext_h_hdr != xyes; then
  21023. as_fn_error $? "
  21024. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21025. " "$LINENO" 5
  21026. fi
  21027. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21028. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21029. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21030. # Needed so SDL applications can include SDL_syswm.h
  21031. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21032. if test x$enable_x11_shared = xmaybe; then
  21033. enable_x11_shared=yes
  21034. fi
  21035. if test x$have_loadso != xyes && \
  21036. test x$enable_x11_shared = xyes; then
  21037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21038. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21039. enable_x11_shared=no
  21040. fi
  21041. if test x$have_loadso = xyes && \
  21042. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21043. echo "-- dynamic libX11 -> $x11_lib"
  21044. echo "-- dynamic libX11ext -> $x11ext_lib"
  21045. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21046. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21047. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21048. else
  21049. enable_x11_shared=no
  21050. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21051. SUMMARY_video="${SUMMARY_video} x11"
  21052. fi
  21053. have_video=yes
  21054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21055. printf %s "checking for XGenericEvent... " >&6; }
  21056. have_XGenericEvent=no
  21057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21058. /* end confdefs.h. */
  21059. #include <X11/Xlib.h>
  21060. int
  21061. main (void)
  21062. {
  21063. Display *display;
  21064. XEvent event;
  21065. XGenericEventCookie *cookie = &event.xcookie;
  21066. XNextEvent(display, &event);
  21067. XGetEventData(display, cookie);
  21068. XFreeEventData(display, cookie);
  21069. ;
  21070. return 0;
  21071. }
  21072. _ACEOF
  21073. if ac_fn_c_try_compile "$LINENO"
  21074. then :
  21075. have_XGenericEvent=yes
  21076. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21077. fi
  21078. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21080. printf "%s\n" "$have_XGenericEvent" >&6; }
  21081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21082. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21083. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21084. then :
  21085. printf %s "(cached) " >&6
  21086. else $as_nop
  21087. ac_check_lib_save_LIBS=$LIBS
  21088. LIBS="-lX11 $LIBS"
  21089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21090. /* end confdefs.h. */
  21091. /* Override any GCC internal prototype to avoid an error.
  21092. Use char because int might match the return type of a GCC
  21093. builtin and then its argument prototype would still apply. */
  21094. char XkbKeycodeToKeysym ();
  21095. int
  21096. main (void)
  21097. {
  21098. return XkbKeycodeToKeysym ();
  21099. ;
  21100. return 0;
  21101. }
  21102. _ACEOF
  21103. if ac_fn_c_try_link "$LINENO"
  21104. then :
  21105. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21106. else $as_nop
  21107. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21108. fi
  21109. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21110. conftest$ac_exeext conftest.$ac_ext
  21111. LIBS=$ac_check_lib_save_LIBS
  21112. fi
  21113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21114. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21115. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21116. then :
  21117. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21118. fi
  21119. # Check whether --enable-video-x11-xcursor was given.
  21120. if test ${enable_video_x11_xcursor+y}
  21121. then :
  21122. enableval=$enable_video_x11_xcursor;
  21123. else $as_nop
  21124. enable_video_x11_xcursor=yes
  21125. fi
  21126. if test x$enable_video_x11_xcursor = xyes; then
  21127. definitely_enable_video_x11_xcursor=no
  21128. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21129. "
  21130. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21131. then :
  21132. have_xcursor_h_hdr=yes
  21133. else $as_nop
  21134. have_xcursor_h_hdr=no
  21135. fi
  21136. if test x$have_xcursor_h_hdr = xyes; then
  21137. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21138. echo "-- dynamic libXcursor -> $xcursor_lib"
  21139. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21140. definitely_enable_video_x11_xcursor=yes
  21141. else
  21142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21143. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21144. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21145. then :
  21146. printf %s "(cached) " >&6
  21147. else $as_nop
  21148. ac_check_lib_save_LIBS=$LIBS
  21149. LIBS="-lXcursor $LIBS"
  21150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21151. /* end confdefs.h. */
  21152. /* Override any GCC internal prototype to avoid an error.
  21153. Use char because int might match the return type of a GCC
  21154. builtin and then its argument prototype would still apply. */
  21155. char XcursorImageCreate ();
  21156. int
  21157. main (void)
  21158. {
  21159. return XcursorImageCreate ();
  21160. ;
  21161. return 0;
  21162. }
  21163. _ACEOF
  21164. if ac_fn_c_try_link "$LINENO"
  21165. then :
  21166. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21167. else $as_nop
  21168. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21169. fi
  21170. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21171. conftest$ac_exeext conftest.$ac_ext
  21172. LIBS=$ac_check_lib_save_LIBS
  21173. fi
  21174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21175. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21176. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21177. then :
  21178. have_xcursor_lib=yes
  21179. fi
  21180. if test x$have_xcursor_lib = xyes ; then
  21181. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21182. definitely_enable_video_x11_xcursor=yes
  21183. fi
  21184. fi
  21185. fi
  21186. fi
  21187. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21188. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21189. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21190. fi
  21191. # Check whether --enable-video-x11-xdbe was given.
  21192. if test ${enable_video_x11_xdbe+y}
  21193. then :
  21194. enableval=$enable_video_x11_xdbe;
  21195. else $as_nop
  21196. enable_video_x11_xdbe=yes
  21197. fi
  21198. if test x$enable_video_x11_xdbe = xyes; then
  21199. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21200. "
  21201. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21202. then :
  21203. have_dbe_h_hdr=yes
  21204. else $as_nop
  21205. have_dbe_h_hdr=no
  21206. fi
  21207. if test x$have_dbe_h_hdr = xyes; then
  21208. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21209. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21210. fi
  21211. fi
  21212. # Check whether --enable-video-x11-xinput was given.
  21213. if test ${enable_video_x11_xinput+y}
  21214. then :
  21215. enableval=$enable_video_x11_xinput;
  21216. else $as_nop
  21217. enable_video_x11_xinput=yes
  21218. fi
  21219. if test x$enable_video_x11_xinput = xyes; then
  21220. definitely_enable_video_x11_xinput=no
  21221. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21222. "
  21223. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21224. then :
  21225. have_xinput_h_hdr=yes
  21226. else $as_nop
  21227. have_xinput_h_hdr=no
  21228. fi
  21229. if test x$have_xinput_h_hdr = xyes; then
  21230. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21231. echo "-- dynamic libXi -> $xinput_lib"
  21232. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21233. definitely_enable_video_x11_xinput=yes
  21234. else
  21235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21236. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21237. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21238. then :
  21239. printf %s "(cached) " >&6
  21240. else $as_nop
  21241. ac_check_lib_save_LIBS=$LIBS
  21242. LIBS="-lXi $LIBS"
  21243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21244. /* end confdefs.h. */
  21245. /* Override any GCC internal prototype to avoid an error.
  21246. Use char because int might match the return type of a GCC
  21247. builtin and then its argument prototype would still apply. */
  21248. char XOpenDevice ();
  21249. int
  21250. main (void)
  21251. {
  21252. return XOpenDevice ();
  21253. ;
  21254. return 0;
  21255. }
  21256. _ACEOF
  21257. if ac_fn_c_try_link "$LINENO"
  21258. then :
  21259. ac_cv_lib_Xi_XOpenDevice=yes
  21260. else $as_nop
  21261. ac_cv_lib_Xi_XOpenDevice=no
  21262. fi
  21263. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21264. conftest$ac_exeext conftest.$ac_ext
  21265. LIBS=$ac_check_lib_save_LIBS
  21266. fi
  21267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21268. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21269. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21270. then :
  21271. have_xinput_lib=yes
  21272. fi
  21273. if test x$have_xinput_lib = xyes ; then
  21274. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21275. definitely_enable_video_x11_xinput=yes
  21276. fi
  21277. fi
  21278. fi
  21279. fi
  21280. if test x$definitely_enable_video_x11_xinput = xyes; then
  21281. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21282. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21284. printf %s "checking for xinput2 multitouch... " >&6; }
  21285. have_xinput2_multitouch=no
  21286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21287. /* end confdefs.h. */
  21288. #include <X11/Xlib.h>
  21289. #include <X11/Xproto.h>
  21290. #include <X11/extensions/XInput2.h>
  21291. int
  21292. main (void)
  21293. {
  21294. int event_type = XI_TouchBegin;
  21295. XITouchClassInfo *t;
  21296. ;
  21297. return 0;
  21298. }
  21299. _ACEOF
  21300. if ac_fn_c_try_compile "$LINENO"
  21301. then :
  21302. have_xinput2_multitouch=yes
  21303. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21304. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21305. fi
  21306. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21308. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21309. fi
  21310. # Check whether --enable-video-x11-xfixes was given.
  21311. if test ${enable_video_x11_xfixes+y}
  21312. then :
  21313. enableval=$enable_video_x11_xfixes;
  21314. else $as_nop
  21315. enable_video_x11_xfixes=yes
  21316. fi
  21317. if test x$enable_video_x11_xfixes = xyes; then
  21318. definitely_enable_video_x11_xfixes=no
  21319. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21321. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21323. /* end confdefs.h. */
  21324. #include <X11/Xlib.h>
  21325. #include <X11/Xproto.h>
  21326. #include <X11/extensions/XInput2.h>
  21327. #include <X11/extensions/Xfixes.h>
  21328. int
  21329. main (void)
  21330. {
  21331. BarrierEventID b;
  21332. ;
  21333. return 0;
  21334. }
  21335. _ACEOF
  21336. if ac_fn_c_try_compile "$LINENO"
  21337. then :
  21338. have_xfixes_h_hdr=yes
  21339. else $as_nop
  21340. have_xfixes_h_hdr=no
  21341. fi
  21342. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21344. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21345. if test x$have_xfixes_h_hdr = xyes; then
  21346. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21347. echo "-- dynamic libXfixes -> $xfixes_lib"
  21348. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21349. definitely_enable_video_x11_xfixes=yes
  21350. else
  21351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21352. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21353. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21354. then :
  21355. printf %s "(cached) " >&6
  21356. else $as_nop
  21357. ac_check_lib_save_LIBS=$LIBS
  21358. LIBS="-lXfixes $LIBS"
  21359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21360. /* end confdefs.h. */
  21361. /* Override any GCC internal prototype to avoid an error.
  21362. Use char because int might match the return type of a GCC
  21363. builtin and then its argument prototype would still apply. */
  21364. char XFixesCreatePointerBarrier ();
  21365. int
  21366. main (void)
  21367. {
  21368. return XFixesCreatePointerBarrier ();
  21369. ;
  21370. return 0;
  21371. }
  21372. _ACEOF
  21373. if ac_fn_c_try_link "$LINENO"
  21374. then :
  21375. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21376. else $as_nop
  21377. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21378. fi
  21379. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21380. conftest$ac_exeext conftest.$ac_ext
  21381. LIBS=$ac_check_lib_save_LIBS
  21382. fi
  21383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21384. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21385. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21386. then :
  21387. have_xfixes_lib=yes
  21388. fi
  21389. if test x$have_xfixes_lib = xyes ; then
  21390. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21391. definitely_enable_video_x11_xfixes=yes
  21392. fi
  21393. fi
  21394. fi
  21395. fi
  21396. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21397. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21398. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21399. fi
  21400. # Check whether --enable-video-x11-xrandr was given.
  21401. if test ${enable_video_x11_xrandr+y}
  21402. then :
  21403. enableval=$enable_video_x11_xrandr;
  21404. else $as_nop
  21405. enable_video_x11_xrandr=yes
  21406. fi
  21407. if test x$enable_video_x11_xrandr = xyes; then
  21408. definitely_enable_video_x11_xrandr=no
  21409. have_xrandr_h_hdr=no
  21410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21411. /* end confdefs.h. */
  21412. #include <X11/Xlib.h>
  21413. #include <X11/extensions/Xrandr.h>
  21414. int
  21415. main (void)
  21416. {
  21417. XRRScreenResources *res = NULL;
  21418. ;
  21419. return 0;
  21420. }
  21421. _ACEOF
  21422. if ac_fn_c_try_compile "$LINENO"
  21423. then :
  21424. have_xrandr_h_hdr=yes
  21425. fi
  21426. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21427. if test x$have_xrandr_h_hdr = xyes; then
  21428. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21429. echo "-- dynamic libXrandr -> $xrandr_lib"
  21430. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21431. definitely_enable_video_x11_xrandr=yes
  21432. else
  21433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21434. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21435. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21436. then :
  21437. printf %s "(cached) " >&6
  21438. else $as_nop
  21439. ac_check_lib_save_LIBS=$LIBS
  21440. LIBS="-lXrandr $LIBS"
  21441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21442. /* end confdefs.h. */
  21443. /* Override any GCC internal prototype to avoid an error.
  21444. Use char because int might match the return type of a GCC
  21445. builtin and then its argument prototype would still apply. */
  21446. char XRRQueryExtension ();
  21447. int
  21448. main (void)
  21449. {
  21450. return XRRQueryExtension ();
  21451. ;
  21452. return 0;
  21453. }
  21454. _ACEOF
  21455. if ac_fn_c_try_link "$LINENO"
  21456. then :
  21457. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21458. else $as_nop
  21459. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21460. fi
  21461. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21462. conftest$ac_exeext conftest.$ac_ext
  21463. LIBS=$ac_check_lib_save_LIBS
  21464. fi
  21465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21466. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21467. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21468. then :
  21469. have_xrandr_lib=yes
  21470. fi
  21471. if test x$have_xrandr_lib = xyes ; then
  21472. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21473. definitely_enable_video_x11_xrandr=yes
  21474. fi
  21475. fi
  21476. fi
  21477. fi
  21478. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21479. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21480. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21481. fi
  21482. # Check whether --enable-video-x11-scrnsaver was given.
  21483. if test ${enable_video_x11_scrnsaver+y}
  21484. then :
  21485. enableval=$enable_video_x11_scrnsaver;
  21486. else $as_nop
  21487. enable_video_x11_scrnsaver=yes
  21488. fi
  21489. if test x$enable_video_x11_scrnsaver = xyes; then
  21490. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21491. "
  21492. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21493. then :
  21494. have_scrnsaver_h_hdr=yes
  21495. else $as_nop
  21496. have_scrnsaver_h_hdr=no
  21497. fi
  21498. if test x$have_scrnsaver_h_hdr = xyes; then
  21499. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21500. echo "-- dynamic libXss -> $xss_lib"
  21501. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21502. definitely_enable_video_x11_scrnsaver=yes
  21503. else
  21504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21505. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21506. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21507. then :
  21508. printf %s "(cached) " >&6
  21509. else $as_nop
  21510. ac_check_lib_save_LIBS=$LIBS
  21511. LIBS="-lXss $LIBS"
  21512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21513. /* end confdefs.h. */
  21514. /* Override any GCC internal prototype to avoid an error.
  21515. Use char because int might match the return type of a GCC
  21516. builtin and then its argument prototype would still apply. */
  21517. char XScreenSaverSuspend ();
  21518. int
  21519. main (void)
  21520. {
  21521. return XScreenSaverSuspend ();
  21522. ;
  21523. return 0;
  21524. }
  21525. _ACEOF
  21526. if ac_fn_c_try_link "$LINENO"
  21527. then :
  21528. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21529. else $as_nop
  21530. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21531. fi
  21532. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21533. conftest$ac_exeext conftest.$ac_ext
  21534. LIBS=$ac_check_lib_save_LIBS
  21535. fi
  21536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21537. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21538. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21539. then :
  21540. have_xss_lib=yes
  21541. fi
  21542. if test x$have_xss_lib = xyes ; then
  21543. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21544. definitely_enable_video_x11_scrnsaver=yes
  21545. fi
  21546. fi
  21547. fi
  21548. fi
  21549. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21550. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21551. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21552. fi
  21553. # Check whether --enable-video-x11-xshape was given.
  21554. if test ${enable_video_x11_xshape+y}
  21555. then :
  21556. enableval=$enable_video_x11_xshape;
  21557. else $as_nop
  21558. enable_video_x11_xshape=yes
  21559. fi
  21560. if test x$enable_video_x11_xshape = xyes; then
  21561. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21562. "
  21563. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21564. then :
  21565. have_shape_h_hdr=yes
  21566. else $as_nop
  21567. have_shape_h_hdr=no
  21568. fi
  21569. if test x$have_shape_h_hdr = xyes; then
  21570. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21571. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21572. fi
  21573. fi
  21574. fi
  21575. fi
  21576. if test x$have_x != xyes; then
  21577. # Prevent Mesa from including X11 headers
  21578. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21579. fi
  21580. }
  21581. CheckVivanteVideo()
  21582. {
  21583. # Check whether --enable-video-vivante was given.
  21584. if test ${enable_video_vivante+y}
  21585. then :
  21586. enableval=$enable_video_vivante;
  21587. else $as_nop
  21588. enable_video_vivante=yes
  21589. fi
  21590. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21592. printf %s "checking for Vivante VDK API... " >&6; }
  21593. have_vivante_vdk=no
  21594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21595. /* end confdefs.h. */
  21596. #define LINUX
  21597. #define EGL_API_FB
  21598. #include <gc_vdk.h>
  21599. int
  21600. main (void)
  21601. {
  21602. ;
  21603. return 0;
  21604. }
  21605. _ACEOF
  21606. if ac_fn_c_try_compile "$LINENO"
  21607. then :
  21608. have_vivante_vdk=yes
  21609. fi
  21610. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21612. printf "%s\n" "$have_vivante_vdk" >&6; }
  21613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21614. printf %s "checking for Vivante FB API... " >&6; }
  21615. have_vivante_egl=no
  21616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21617. /* end confdefs.h. */
  21618. #define LINUX
  21619. #define EGL_API_FB
  21620. #include <EGL/eglvivante.h>
  21621. int
  21622. main (void)
  21623. {
  21624. ;
  21625. return 0;
  21626. }
  21627. _ACEOF
  21628. if ac_fn_c_try_compile "$LINENO"
  21629. then :
  21630. have_vivante_egl=yes
  21631. fi
  21632. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21634. printf "%s\n" "$have_vivante_egl" >&6; }
  21635. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21636. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21637. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21638. if test x$have_vivante_vdk = xyes; then
  21639. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21640. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21641. fi
  21642. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21643. SUMMARY_video="${SUMMARY_video} vivante"
  21644. have_video=yes
  21645. fi
  21646. fi
  21647. }
  21648. CheckHaikuVideo()
  21649. {
  21650. if test x$enable_video = xyes; then
  21651. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21652. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21653. have_video=yes
  21654. SUMMARY_video="${SUMMARY_video} haiku"
  21655. fi
  21656. }
  21657. CheckCOCOA()
  21658. {
  21659. # Check whether --enable-video-cocoa was given.
  21660. if test ${enable_video_cocoa+y}
  21661. then :
  21662. enableval=$enable_video_cocoa;
  21663. else $as_nop
  21664. enable_video_cocoa=yes
  21665. fi
  21666. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21667. save_CFLAGS="$CFLAGS"
  21668. CFLAGS="$CFLAGS -x objective-c"
  21669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21670. printf %s "checking for Cocoa framework... " >&6; }
  21671. have_cocoa=no
  21672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21673. /* end confdefs.h. */
  21674. #import <Cocoa/Cocoa.h>
  21675. int
  21676. main (void)
  21677. {
  21678. ;
  21679. return 0;
  21680. }
  21681. _ACEOF
  21682. if ac_fn_c_try_compile "$LINENO"
  21683. then :
  21684. have_cocoa=yes
  21685. fi
  21686. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21688. printf "%s\n" "$have_cocoa" >&6; }
  21689. CFLAGS="$save_CFLAGS"
  21690. if test x$have_cocoa = xyes; then
  21691. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21692. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21693. SUMMARY_video="${SUMMARY_video} cocoa"
  21694. have_video=yes
  21695. fi
  21696. fi
  21697. }
  21698. CheckMETAL()
  21699. {
  21700. # Check whether --enable-video-metal was given.
  21701. if test ${enable_video_metal+y}
  21702. then :
  21703. enableval=$enable_video_metal;
  21704. else $as_nop
  21705. enable_video_metal=yes
  21706. fi
  21707. # Check whether --enable-render-metal was given.
  21708. if test ${enable_render_metal+y}
  21709. then :
  21710. enableval=$enable_render_metal;
  21711. else $as_nop
  21712. enable_render_metal=yes
  21713. fi
  21714. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  21715. save_CFLAGS="$CFLAGS"
  21716. CFLAGS="$CFLAGS -x objective-c"
  21717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  21718. printf %s "checking for Metal framework... " >&6; }
  21719. have_metal=no
  21720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21721. /* end confdefs.h. */
  21722. #import <Cocoa/Cocoa.h>
  21723. #import <Metal/Metal.h>
  21724. #import <QuartzCore/CAMetalLayer.h>
  21725. #if TARGET_CPU_X86
  21726. #error Metal doesn't work on this configuration
  21727. #endif
  21728. int
  21729. main (void)
  21730. {
  21731. ;
  21732. return 0;
  21733. }
  21734. _ACEOF
  21735. if ac_fn_c_try_compile "$LINENO"
  21736. then :
  21737. have_metal=yes
  21738. fi
  21739. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21740. CFLAGS="$save_CFLAGS"
  21741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  21742. printf "%s\n" "$have_metal" >&6; }
  21743. if test x$have_metal = xyes; then
  21744. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  21745. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21746. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  21747. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  21748. fi
  21749. SUMMARY_video="${SUMMARY_video} metal"
  21750. else
  21751. enable_video_metal=no
  21752. enable_render_metal=no
  21753. fi
  21754. fi
  21755. }
  21756. CheckDirectFB()
  21757. {
  21758. # Check whether --enable-video-directfb was given.
  21759. if test ${enable_video_directfb+y}
  21760. then :
  21761. enableval=$enable_video_directfb;
  21762. else $as_nop
  21763. enable_video_directfb=no
  21764. fi
  21765. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  21766. pkg_failed=no
  21767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  21768. printf %s "checking for directfb >= 1.0.0... " >&6; }
  21769. if test -n "$DIRECTFB_CFLAGS"; then
  21770. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  21771. elif test -n "$PKG_CONFIG"; then
  21772. if test -n "$PKG_CONFIG" && \
  21773. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21774. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21775. ac_status=$?
  21776. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21777. test $ac_status = 0; }; then
  21778. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  21779. test "x$?" != "x0" && pkg_failed=yes
  21780. else
  21781. pkg_failed=yes
  21782. fi
  21783. else
  21784. pkg_failed=untried
  21785. fi
  21786. if test -n "$DIRECTFB_LIBS"; then
  21787. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  21788. elif test -n "$PKG_CONFIG"; then
  21789. if test -n "$PKG_CONFIG" && \
  21790. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21791. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21792. ac_status=$?
  21793. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21794. test $ac_status = 0; }; then
  21795. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  21796. test "x$?" != "x0" && pkg_failed=yes
  21797. else
  21798. pkg_failed=yes
  21799. fi
  21800. else
  21801. pkg_failed=untried
  21802. fi
  21803. if test $pkg_failed = yes; then
  21804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21805. printf "%s\n" "no" >&6; }
  21806. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21807. _pkg_short_errors_supported=yes
  21808. else
  21809. _pkg_short_errors_supported=no
  21810. fi
  21811. if test $_pkg_short_errors_supported = yes; then
  21812. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21813. else
  21814. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21815. fi
  21816. # Put the nasty error message in config.log where it belongs
  21817. echo "$DIRECTFB_PKG_ERRORS" >&5
  21818. video_directfb=no
  21819. elif test $pkg_failed = untried; then
  21820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21821. printf "%s\n" "no" >&6; }
  21822. video_directfb=no
  21823. else
  21824. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  21825. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  21826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21827. printf "%s\n" "yes" >&6; }
  21828. video_directfb=yes
  21829. fi
  21830. if test x$video_directfb = xyes; then
  21831. # SuSE 11.1 installs directfb-config without directfb-devel
  21832. save_CPPFLAGS="$CPPFLAGS"
  21833. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  21834. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  21835. if test "x$ac_cv_header_directfb_h" = xyes
  21836. then :
  21837. have_directfb_hdr=yes
  21838. else $as_nop
  21839. have_directfb_hdr=no
  21840. fi
  21841. CPPFLAGS="$save_CPPFLAGS"
  21842. video_directfb=$have_directfb_hdr
  21843. fi
  21844. if test x$video_directfb = xyes; then
  21845. # Check whether --enable-directfb-shared was given.
  21846. if test ${enable_directfb_shared+y}
  21847. then :
  21848. enableval=$enable_directfb_shared;
  21849. else $as_nop
  21850. enable_directfb_shared=yes
  21851. fi
  21852. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  21853. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  21854. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  21855. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  21856. directfb_shared=no
  21857. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  21858. if test x$have_loadso != xyes && \
  21859. test x$enable_directfb_shared = xyes; then
  21860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  21861. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  21862. fi
  21863. if test x$have_loadso = xyes && \
  21864. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  21865. directfb_shared=yes
  21866. echo "-- dynamic libdirectfb -> $directfb_lib"
  21867. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  21868. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  21869. else
  21870. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  21871. SUMMARY_video="${SUMMARY_video} directfb"
  21872. fi
  21873. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  21874. have_video=yes
  21875. fi
  21876. fi
  21877. }
  21878. CheckKMSDRM()
  21879. {
  21880. # Check whether --enable-video-kmsdrm was given.
  21881. if test ${enable_video_kmsdrm+y}
  21882. then :
  21883. enableval=$enable_video_kmsdrm;
  21884. else $as_nop
  21885. enable_video_kmsdrm=yes
  21886. fi
  21887. if test x$enable_video = xyes && \
  21888. test x$enable_video_kmsdrm = xyes && \
  21889. test x$video_opengl_egl = xyes; then
  21890. video_kmsdrm=no
  21891. pkg_failed=no
  21892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21893. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  21894. if test -n "$LIBDRM_CFLAGS"; then
  21895. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21896. elif test -n "$PKG_CONFIG"; then
  21897. if test -n "$PKG_CONFIG" && \
  21898. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21899. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21900. ac_status=$?
  21901. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21902. test $ac_status = 0; }; then
  21903. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  21904. test "x$?" != "x0" && pkg_failed=yes
  21905. else
  21906. pkg_failed=yes
  21907. fi
  21908. else
  21909. pkg_failed=untried
  21910. fi
  21911. if test -n "$LIBDRM_LIBS"; then
  21912. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  21913. elif test -n "$PKG_CONFIG"; then
  21914. if test -n "$PKG_CONFIG" && \
  21915. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21916. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21917. ac_status=$?
  21918. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21919. test $ac_status = 0; }; then
  21920. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  21921. test "x$?" != "x0" && pkg_failed=yes
  21922. else
  21923. pkg_failed=yes
  21924. fi
  21925. else
  21926. pkg_failed=untried
  21927. fi
  21928. if test $pkg_failed = yes; then
  21929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21930. printf "%s\n" "no" >&6; }
  21931. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21932. _pkg_short_errors_supported=yes
  21933. else
  21934. _pkg_short_errors_supported=no
  21935. fi
  21936. if test $_pkg_short_errors_supported = yes; then
  21937. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21938. else
  21939. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21940. fi
  21941. # Put the nasty error message in config.log where it belongs
  21942. echo "$LIBDRM_PKG_ERRORS" >&5
  21943. libdrm_avail=no
  21944. elif test $pkg_failed = untried; then
  21945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21946. printf "%s\n" "no" >&6; }
  21947. libdrm_avail=no
  21948. else
  21949. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  21950. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  21951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21952. printf "%s\n" "yes" >&6; }
  21953. libdrm_avail=yes
  21954. fi
  21955. pkg_failed=no
  21956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  21957. printf %s "checking for gbm >= 11.1.0... " >&6; }
  21958. if test -n "$LIBGBM_CFLAGS"; then
  21959. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  21960. elif test -n "$PKG_CONFIG"; then
  21961. if test -n "$PKG_CONFIG" && \
  21962. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21963. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21964. ac_status=$?
  21965. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21966. test $ac_status = 0; }; then
  21967. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  21968. test "x$?" != "x0" && pkg_failed=yes
  21969. else
  21970. pkg_failed=yes
  21971. fi
  21972. else
  21973. pkg_failed=untried
  21974. fi
  21975. if test -n "$LIBGBM_LIBS"; then
  21976. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  21977. elif test -n "$PKG_CONFIG"; then
  21978. if test -n "$PKG_CONFIG" && \
  21979. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21980. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21981. ac_status=$?
  21982. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21983. test $ac_status = 0; }; then
  21984. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  21985. test "x$?" != "x0" && pkg_failed=yes
  21986. else
  21987. pkg_failed=yes
  21988. fi
  21989. else
  21990. pkg_failed=untried
  21991. fi
  21992. if test $pkg_failed = yes; then
  21993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21994. printf "%s\n" "no" >&6; }
  21995. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21996. _pkg_short_errors_supported=yes
  21997. else
  21998. _pkg_short_errors_supported=no
  21999. fi
  22000. if test $_pkg_short_errors_supported = yes; then
  22001. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22002. else
  22003. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22004. fi
  22005. # Put the nasty error message in config.log where it belongs
  22006. echo "$LIBGBM_PKG_ERRORS" >&5
  22007. libgbm_avail=no
  22008. elif test $pkg_failed = untried; then
  22009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22010. printf "%s\n" "no" >&6; }
  22011. libgbm_avail=no
  22012. else
  22013. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22014. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22016. printf "%s\n" "yes" >&6; }
  22017. libgbm_avail=yes
  22018. fi
  22019. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22020. video_kmsdrm=yes
  22021. fi
  22022. if test x$video_kmsdrm = xyes; then
  22023. # Check whether --enable-kmsdrm-shared was given.
  22024. if test ${enable_kmsdrm_shared+y}
  22025. then :
  22026. enableval=$enable_kmsdrm_shared;
  22027. else $as_nop
  22028. enable_kmsdrm_shared=yes
  22029. fi
  22030. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22031. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22032. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22034. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22035. kmsdrm_shared=no
  22036. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22037. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22038. if test x$have_loadso != xyes && \
  22039. test x$enable_kmsdrm_shared = xyes; then
  22040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22041. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22042. fi
  22043. if test x$have_loadso = xyes && \
  22044. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22045. kmsdrm_shared=yes
  22046. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22047. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22048. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22049. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22050. else
  22051. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22052. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22053. fi
  22054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22055. printf "%s\n" "$kmsdrm_shared" >&6; }
  22056. if test x$kmsdrm_shared = xyes; then
  22057. echo "-- dynamic libdrm -> $drm_lib"
  22058. echo "-- dynamic libgbm -> $gbm_lib"
  22059. fi
  22060. have_video=yes
  22061. fi
  22062. fi
  22063. }
  22064. CheckDummyVideo()
  22065. {
  22066. # Check whether --enable-video-dummy was given.
  22067. if test ${enable_video_dummy+y}
  22068. then :
  22069. enableval=$enable_video_dummy;
  22070. else $as_nop
  22071. enable_video_dummy=yes
  22072. fi
  22073. if test x$enable_video_dummy = xyes; then
  22074. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22075. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22076. have_video=yes
  22077. SUMMARY_video="${SUMMARY_video} dummy"
  22078. fi
  22079. }
  22080. CheckOffscreenVideo()
  22081. {
  22082. # Check whether --enable-video-offscreen was given.
  22083. if test ${enable_video_offscreen+y}
  22084. then :
  22085. enableval=$enable_video_offscreen;
  22086. else $as_nop
  22087. enable_video_offscreen=no
  22088. fi
  22089. if test x$enable_video_offscreen = xyes; then
  22090. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22091. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22092. have_video=yes
  22093. SUMMARY_video="${SUMMARY_video} offscreen"
  22094. fi
  22095. }
  22096. CheckQNXVideo()
  22097. {
  22098. if test x$enable_video = xyes; then
  22099. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22100. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22101. have_video=yes
  22102. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22103. SUMMARY_video="${SUMMARY_video} qnx"
  22104. fi
  22105. }
  22106. CheckQNXAudio()
  22107. {
  22108. if test x$enable_audio = xyes; then
  22109. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22110. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22111. have_audio=yes
  22112. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22113. SUMMARY_audio="${SUMMARY_audio} qsa"
  22114. fi
  22115. }
  22116. # Check whether --enable-video-opengl was given.
  22117. if test ${enable_video_opengl+y}
  22118. then :
  22119. enableval=$enable_video_opengl;
  22120. else $as_nop
  22121. enable_video_opengl=yes
  22122. fi
  22123. CheckGLX()
  22124. {
  22125. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22127. printf %s "checking for GLX support... " >&6; }
  22128. video_opengl_glx=no
  22129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22130. /* end confdefs.h. */
  22131. #include <GL/glx.h>
  22132. int
  22133. main (void)
  22134. {
  22135. ;
  22136. return 0;
  22137. }
  22138. _ACEOF
  22139. if ac_fn_c_try_compile "$LINENO"
  22140. then :
  22141. video_opengl_glx=yes
  22142. fi
  22143. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22145. printf "%s\n" "$video_opengl_glx" >&6; }
  22146. if test x$video_opengl_glx = xyes; then
  22147. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22148. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22149. fi
  22150. fi
  22151. }
  22152. # Check whether --enable-video-opengles was given.
  22153. if test ${enable_video_opengles+y}
  22154. then :
  22155. enableval=$enable_video_opengles;
  22156. else $as_nop
  22157. enable_video_opengles=yes
  22158. fi
  22159. # Check whether --enable-video-opengles1 was given.
  22160. if test ${enable_video_opengles1+y}
  22161. then :
  22162. enableval=$enable_video_opengles1;
  22163. else $as_nop
  22164. enable_video_opengles1=yes
  22165. fi
  22166. # Check whether --enable-video-opengles2 was given.
  22167. if test ${enable_video_opengles2+y}
  22168. then :
  22169. enableval=$enable_video_opengles2;
  22170. else $as_nop
  22171. enable_video_opengles2=yes
  22172. fi
  22173. CheckEGL()
  22174. {
  22175. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22177. printf %s "checking for EGL support... " >&6; }
  22178. video_opengl_egl=no
  22179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22180. /* end confdefs.h. */
  22181. #define LINUX
  22182. #define EGL_API_FB
  22183. #define MESA_EGL_NO_X11_HEADERS
  22184. #define EGL_NO_X11
  22185. #include <EGL/egl.h>
  22186. #include <EGL/eglext.h>
  22187. int
  22188. main (void)
  22189. {
  22190. ;
  22191. return 0;
  22192. }
  22193. _ACEOF
  22194. if ac_fn_c_try_compile "$LINENO"
  22195. then :
  22196. video_opengl_egl=yes
  22197. fi
  22198. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22200. printf "%s\n" "$video_opengl_egl" >&6; }
  22201. if test x$video_opengl_egl = xyes; then
  22202. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22203. fi
  22204. fi
  22205. }
  22206. CheckOpenGL()
  22207. {
  22208. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22210. printf %s "checking for OpenGL headers... " >&6; }
  22211. video_opengl=no
  22212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22213. /* end confdefs.h. */
  22214. #include <GL/gl.h>
  22215. #include <GL/glext.h>
  22216. int
  22217. main (void)
  22218. {
  22219. ;
  22220. return 0;
  22221. }
  22222. _ACEOF
  22223. if ac_fn_c_try_compile "$LINENO"
  22224. then :
  22225. video_opengl=yes
  22226. fi
  22227. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22229. printf "%s\n" "$video_opengl" >&6; }
  22230. if test x$video_opengl = xyes; then
  22231. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22232. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22233. SUMMARY_video="${SUMMARY_video} opengl"
  22234. fi
  22235. fi
  22236. }
  22237. CheckOpenGLES()
  22238. {
  22239. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22240. if test x$enable_video_opengles1 = xyes; then
  22241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22242. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22243. video_opengles_v1=no
  22244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22245. /* end confdefs.h. */
  22246. #include <GLES/gl.h>
  22247. #include <GLES/glext.h>
  22248. int
  22249. main (void)
  22250. {
  22251. ;
  22252. return 0;
  22253. }
  22254. _ACEOF
  22255. if ac_fn_c_try_compile "$LINENO"
  22256. then :
  22257. video_opengles_v1=yes
  22258. fi
  22259. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22261. printf "%s\n" "$video_opengles_v1" >&6; }
  22262. if test x$video_opengles_v1 = xyes; then
  22263. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22264. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22265. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22266. fi
  22267. fi
  22268. if test x$enable_video_opengles2 = xyes; then
  22269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22270. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22271. video_opengles_v2=no
  22272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22273. /* end confdefs.h. */
  22274. #include <GLES2/gl2.h>
  22275. #include <GLES2/gl2ext.h>
  22276. int
  22277. main (void)
  22278. {
  22279. ;
  22280. return 0;
  22281. }
  22282. _ACEOF
  22283. if ac_fn_c_try_compile "$LINENO"
  22284. then :
  22285. video_opengles_v2=yes
  22286. fi
  22287. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22289. printf "%s\n" "$video_opengles_v2" >&6; }
  22290. if test x$video_opengles_v2 = xyes; then
  22291. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22292. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22293. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22294. fi
  22295. fi
  22296. fi
  22297. }
  22298. CheckWINDOWSGL()
  22299. {
  22300. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22301. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22302. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22303. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22304. SUMMARY_video="${SUMMARY_video} opengl"
  22305. fi
  22306. }
  22307. CheckWINDOWSGLES()
  22308. {
  22309. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22311. printf %s "checking for EGL support... " >&6; }
  22312. video_opengl_egl=no
  22313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22314. /* end confdefs.h. */
  22315. #include <EGL/egl.h>
  22316. int
  22317. main (void)
  22318. {
  22319. ;
  22320. return 0;
  22321. }
  22322. _ACEOF
  22323. if ac_fn_c_try_compile "$LINENO"
  22324. then :
  22325. video_opengl_egl=yes
  22326. fi
  22327. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22329. printf "%s\n" "$video_opengl_egl" >&6; }
  22330. if test x$video_opengl_egl = xyes; then
  22331. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22332. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22333. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22334. fi
  22335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22336. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22337. video_opengles_v2=no
  22338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22339. /* end confdefs.h. */
  22340. #include <GLES2/gl2.h>
  22341. #include <GLES2/gl2ext.h>
  22342. int
  22343. main (void)
  22344. {
  22345. ;
  22346. return 0;
  22347. }
  22348. _ACEOF
  22349. if ac_fn_c_try_compile "$LINENO"
  22350. then :
  22351. video_opengles_v2=yes
  22352. fi
  22353. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22355. printf "%s\n" "$video_opengles_v2" >&6; }
  22356. if test x$video_opengles_v2 = xyes; then
  22357. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22358. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22359. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22360. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22361. fi
  22362. fi
  22363. }
  22364. CheckHaikuGL()
  22365. {
  22366. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22367. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22368. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22369. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22370. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22371. SUMMARY_video="${SUMMARY_video} opengl"
  22372. fi
  22373. }
  22374. CheckMacGL()
  22375. {
  22376. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22377. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22378. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22379. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22380. SUMMARY_video="${SUMMARY_video} opengl"
  22381. fi
  22382. }
  22383. CheckMacGLES()
  22384. {
  22385. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22386. video_opengl_egl=yes
  22387. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22388. video_opengles_v2=yes
  22389. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22390. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22391. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22392. fi
  22393. }
  22394. CheckEmscriptenGLES()
  22395. {
  22396. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22398. printf %s "checking for EGL support... " >&6; }
  22399. video_opengl_egl=no
  22400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22401. /* end confdefs.h. */
  22402. #include <EGL/egl.h>
  22403. int
  22404. main (void)
  22405. {
  22406. ;
  22407. return 0;
  22408. }
  22409. _ACEOF
  22410. if ac_fn_c_try_compile "$LINENO"
  22411. then :
  22412. video_opengl_egl=yes
  22413. fi
  22414. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22416. printf "%s\n" "$video_opengl_egl" >&6; }
  22417. if test x$video_opengl_egl = xyes; then
  22418. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22419. fi
  22420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22421. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22422. video_opengles_v2=no
  22423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22424. /* end confdefs.h. */
  22425. #include <GLES2/gl2.h>
  22426. #include <GLES2/gl2ext.h>
  22427. int
  22428. main (void)
  22429. {
  22430. ;
  22431. return 0;
  22432. }
  22433. _ACEOF
  22434. if ac_fn_c_try_compile "$LINENO"
  22435. then :
  22436. video_opengles_v2=yes
  22437. fi
  22438. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22440. printf "%s\n" "$video_opengles_v2" >&6; }
  22441. if test x$video_opengles_v2 = xyes; then
  22442. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22443. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22444. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22445. fi
  22446. fi
  22447. }
  22448. # Check whether --enable-video-vulkan was given.
  22449. if test ${enable_video_vulkan+y}
  22450. then :
  22451. enableval=$enable_video_vulkan;
  22452. else $as_nop
  22453. enable_video_vulkan=yes
  22454. fi
  22455. CheckVulkan()
  22456. {
  22457. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22458. case "$host" in
  22459. *-*-android*)
  22460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22461. /* end confdefs.h. */
  22462. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22463. #error Vulkan doesn't work on this configuration
  22464. #endif
  22465. int
  22466. main (void)
  22467. {
  22468. ;
  22469. return 0;
  22470. }
  22471. _ACEOF
  22472. if ac_fn_c_try_compile "$LINENO"
  22473. then :
  22474. else $as_nop
  22475. enable_video_vulkan=no
  22476. fi
  22477. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22478. ;;
  22479. *-*-darwin*)
  22480. save_CFLAGS="$CFLAGS"
  22481. CFLAGS="$CFLAGS -x objective-c"
  22482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22483. /* end confdefs.h. */
  22484. #include <Cocoa/Cocoa.h>
  22485. #include <Metal/Metal.h>
  22486. #include <QuartzCore/CAMetalLayer.h>
  22487. #if TARGET_CPU_X86
  22488. #error Vulkan doesn't work on this configuration
  22489. #endif
  22490. int
  22491. main (void)
  22492. {
  22493. ;
  22494. return 0;
  22495. }
  22496. _ACEOF
  22497. if ac_fn_c_try_compile "$LINENO"
  22498. then :
  22499. else $as_nop
  22500. enable_video_vulkan=no
  22501. fi
  22502. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22503. CFLAGS="$save_CFLAGS"
  22504. ;;
  22505. *)
  22506. ;;
  22507. esac
  22508. if test x$enable_video_vulkan = xno; then
  22509. # For reasons I am totally unable to see, I get an undefined macro error if
  22510. # I put this in the AC_TRY_COMPILE.
  22511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22512. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22513. fi
  22514. fi
  22515. if test x$have_loadso != xyes; then
  22516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22517. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22518. enable_video_vulkan=no
  22519. fi
  22520. if test x$enable_video_vulkan = xyes; then
  22521. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22522. SUMMARY_video="${SUMMARY_video} vulkan"
  22523. fi
  22524. }
  22525. CheckInputEvents()
  22526. {
  22527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22528. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22529. use_input_events=no
  22530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22531. /* end confdefs.h. */
  22532. #include <linux/input.h>
  22533. int
  22534. main (void)
  22535. {
  22536. #ifndef EVIOCGNAME
  22537. #error EVIOCGNAME() ioctl not available
  22538. #endif
  22539. ;
  22540. return 0;
  22541. }
  22542. _ACEOF
  22543. if ac_fn_c_try_compile "$LINENO"
  22544. then :
  22545. use_input_events=yes
  22546. fi
  22547. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22549. printf "%s\n" "$use_input_events" >&6; }
  22550. if test x$use_input_events = xyes; then
  22551. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22552. SUMMARY_input="${SUMMARY_input} linuxev"
  22553. fi
  22554. }
  22555. CheckInputKD()
  22556. {
  22557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22558. printf %s "checking for Linux kd.h... " >&6; }
  22559. use_input_kd=no
  22560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22561. /* end confdefs.h. */
  22562. #include <linux/kd.h>
  22563. #include <linux/keyboard.h>
  22564. #include <sys/ioctl.h>
  22565. int
  22566. main (void)
  22567. {
  22568. struct kbentry kbe;
  22569. kbe.kb_table = KG_CTRL;
  22570. ioctl(0, KDGKBENT, &kbe);
  22571. ;
  22572. return 0;
  22573. }
  22574. _ACEOF
  22575. if ac_fn_c_try_compile "$LINENO"
  22576. then :
  22577. use_input_kd=yes
  22578. fi
  22579. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22581. printf "%s\n" "$use_input_kd" >&6; }
  22582. if test x$use_input_kd = xyes; then
  22583. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22584. SUMMARY_input="${SUMMARY_input} linuxkd"
  22585. fi
  22586. }
  22587. CheckInputKBIO()
  22588. {
  22589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22590. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22591. use_input_kbio=no
  22592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22593. /* end confdefs.h. */
  22594. #include <sys/kbio.h>
  22595. #include <sys/ioctl.h>
  22596. int
  22597. main (void)
  22598. {
  22599. accentmap_t accTable;
  22600. ioctl(0, KDENABIO, 1);
  22601. ;
  22602. return 0;
  22603. }
  22604. _ACEOF
  22605. if ac_fn_c_try_compile "$LINENO"
  22606. then :
  22607. use_input_kbio=yes
  22608. fi
  22609. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22611. printf "%s\n" "$use_input_kbio" >&6; }
  22612. if test x$use_input_kbio = xyes; then
  22613. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22614. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22615. fi
  22616. }
  22617. CheckInputWSCONS()
  22618. {
  22619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22620. printf %s "checking for OpenBSD wscons... " >&6; }
  22621. use_input_wscons=no
  22622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22623. /* end confdefs.h. */
  22624. #include <sys/time.h>
  22625. #include <dev/wscons/wsconsio.h>
  22626. #include <dev/wscons/wsksymdef.h>
  22627. #include <dev/wscons/wsksymvar.h>
  22628. #include <sys/ioctl.h>
  22629. int
  22630. main (void)
  22631. {
  22632. struct wskbd_map_data data;
  22633. ioctl(0, WSKBDIO_GETMAP, &data);
  22634. ;
  22635. return 0;
  22636. }
  22637. _ACEOF
  22638. if ac_fn_c_try_compile "$LINENO"
  22639. then :
  22640. use_input_wscons=yes
  22641. fi
  22642. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  22644. printf "%s\n" "$use_input_wscons" >&6; }
  22645. if test x$use_input_wscons = xyes; then
  22646. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  22647. SUMMARY_input="${SUMMARY_input} wscons"
  22648. fi
  22649. }
  22650. CheckLibUDev()
  22651. {
  22652. # Check whether --enable-libudev was given.
  22653. if test ${enable_libudev+y}
  22654. then :
  22655. enableval=$enable_libudev;
  22656. else $as_nop
  22657. enable_libudev=yes
  22658. fi
  22659. if test x$enable_libudev = xyes; then
  22660. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  22661. if test "x$ac_cv_header_libudev_h" = xyes
  22662. then :
  22663. have_libudev_h_hdr=yes
  22664. else $as_nop
  22665. have_libudev_h_hdr=no
  22666. fi
  22667. if test x$have_libudev_h_hdr = xyes; then
  22668. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  22669. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22670. if test x$udev_lib != x; then
  22671. echo "-- dynamic udev -> $udev_lib"
  22672. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  22673. fi
  22674. fi
  22675. fi
  22676. }
  22677. CheckDBus()
  22678. {
  22679. # Check whether --enable-dbus was given.
  22680. if test ${enable_dbus+y}
  22681. then :
  22682. enableval=$enable_dbus;
  22683. else $as_nop
  22684. enable_dbus=yes
  22685. fi
  22686. if test x$enable_dbus = xyes; then
  22687. pkg_failed=no
  22688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  22689. printf %s "checking for dbus-1... " >&6; }
  22690. if test -n "$DBUS_CFLAGS"; then
  22691. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  22692. elif test -n "$PKG_CONFIG"; then
  22693. if test -n "$PKG_CONFIG" && \
  22694. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22695. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22696. ac_status=$?
  22697. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22698. test $ac_status = 0; }; then
  22699. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  22700. test "x$?" != "x0" && pkg_failed=yes
  22701. else
  22702. pkg_failed=yes
  22703. fi
  22704. else
  22705. pkg_failed=untried
  22706. fi
  22707. if test -n "$DBUS_LIBS"; then
  22708. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  22709. elif test -n "$PKG_CONFIG"; then
  22710. if test -n "$PKG_CONFIG" && \
  22711. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22712. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22713. ac_status=$?
  22714. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22715. test $ac_status = 0; }; then
  22716. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  22717. test "x$?" != "x0" && pkg_failed=yes
  22718. else
  22719. pkg_failed=yes
  22720. fi
  22721. else
  22722. pkg_failed=untried
  22723. fi
  22724. if test $pkg_failed = yes; then
  22725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22726. printf "%s\n" "no" >&6; }
  22727. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22728. _pkg_short_errors_supported=yes
  22729. else
  22730. _pkg_short_errors_supported=no
  22731. fi
  22732. if test $_pkg_short_errors_supported = yes; then
  22733. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  22734. else
  22735. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  22736. fi
  22737. # Put the nasty error message in config.log where it belongs
  22738. echo "$DBUS_PKG_ERRORS" >&5
  22739. have_dbus=no
  22740. elif test $pkg_failed = untried; then
  22741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22742. printf "%s\n" "no" >&6; }
  22743. have_dbus=no
  22744. else
  22745. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  22746. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  22747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22748. printf "%s\n" "yes" >&6; }
  22749. have_dbus=yes
  22750. fi
  22751. save_CPPFLAGS="$CPPFLAGS"
  22752. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  22753. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  22754. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  22755. then :
  22756. have_dbus_dbus_h_hdr=yes
  22757. else $as_nop
  22758. have_dbus_dbus_h_hdr=no
  22759. fi
  22760. CPPFLAGS="$save_CPPFLAGS"
  22761. if test x$have_dbus_dbus_h_hdr = xyes; then
  22762. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  22763. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  22764. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  22765. fi
  22766. fi
  22767. }
  22768. CheckIME()
  22769. {
  22770. # Check whether --enable-ime was given.
  22771. if test ${enable_ime+y}
  22772. then :
  22773. enableval=$enable_ime;
  22774. else $as_nop
  22775. enable_ime=yes
  22776. fi
  22777. if test x$enable_ime = xyes; then
  22778. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  22779. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  22780. fi
  22781. }
  22782. CheckInotify()
  22783. {
  22784. save_LIBS="$LIBS"
  22785. case "$host" in
  22786. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  22787. ;;
  22788. esac
  22789. for ac_header in sys/inotify.h
  22790. do :
  22791. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  22792. if test "x$ac_cv_header_sys_inotify_h" = xyes
  22793. then :
  22794. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  22795. have_inotify_inotify_h_hdr=yes
  22796. fi
  22797. done
  22798. for ac_func in inotify_init
  22799. do :
  22800. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  22801. if test "x$ac_cv_func_inotify_init" = xyes
  22802. then :
  22803. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  22804. have_inotify=yes
  22805. fi
  22806. done
  22807. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  22808. if test "x$ac_cv_func_inotify_init1" = xyes
  22809. then :
  22810. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  22811. fi
  22812. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  22813. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  22814. case "$host" in
  22815. *-*-freebsd*|*-*-dragonfly*)
  22816. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  22817. ;;
  22818. esac
  22819. fi
  22820. LIBS="$save_LIBS"
  22821. }
  22822. CheckIBus()
  22823. {
  22824. # Check whether --enable-ibus was given.
  22825. if test ${enable_ibus+y}
  22826. then :
  22827. enableval=$enable_ibus;
  22828. else $as_nop
  22829. enable_ibus=yes
  22830. fi
  22831. if test x$enable_ibus = xyes; then
  22832. pkg_failed=no
  22833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22834. printf %s "checking for ibus-1.0... " >&6; }
  22835. if test -n "$IBUS_CFLAGS"; then
  22836. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  22837. elif test -n "$PKG_CONFIG"; then
  22838. if test -n "$PKG_CONFIG" && \
  22839. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22840. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22841. ac_status=$?
  22842. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22843. test $ac_status = 0; }; then
  22844. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  22845. test "x$?" != "x0" && pkg_failed=yes
  22846. else
  22847. pkg_failed=yes
  22848. fi
  22849. else
  22850. pkg_failed=untried
  22851. fi
  22852. if test -n "$IBUS_LIBS"; then
  22853. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  22854. elif test -n "$PKG_CONFIG"; then
  22855. if test -n "$PKG_CONFIG" && \
  22856. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22857. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22858. ac_status=$?
  22859. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22860. test $ac_status = 0; }; then
  22861. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  22862. test "x$?" != "x0" && pkg_failed=yes
  22863. else
  22864. pkg_failed=yes
  22865. fi
  22866. else
  22867. pkg_failed=untried
  22868. fi
  22869. if test $pkg_failed = yes; then
  22870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22871. printf "%s\n" "no" >&6; }
  22872. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22873. _pkg_short_errors_supported=yes
  22874. else
  22875. _pkg_short_errors_supported=no
  22876. fi
  22877. if test $_pkg_short_errors_supported = yes; then
  22878. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22879. else
  22880. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22881. fi
  22882. # Put the nasty error message in config.log where it belongs
  22883. echo "$IBUS_PKG_ERRORS" >&5
  22884. have_ibus=no
  22885. elif test $pkg_failed = untried; then
  22886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22887. printf "%s\n" "no" >&6; }
  22888. have_ibus=no
  22889. else
  22890. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  22891. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  22892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22893. printf "%s\n" "yes" >&6; }
  22894. have_ibus=yes
  22895. fi
  22896. save_CPPFLAGS="$CPPFLAGS"
  22897. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  22898. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  22899. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  22900. then :
  22901. have_ibus_ibus_h_hdr=yes
  22902. else $as_nop
  22903. have_ibus_ibus_h_hdr=no
  22904. fi
  22905. CPPFLAGS="$save_CPPFLAGS"
  22906. if test x$have_ibus_ibus_h_hdr = xyes; then
  22907. if test x$enable_ime != xyes; then
  22908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  22909. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  22910. have_ibus_ibus_h_hdr=no
  22911. elif test x$enable_dbus != xyes; then
  22912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  22913. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  22914. have_ibus_ibus_h_hdr=no
  22915. elif test x$have_inotify_inotify_h_hdr != xyes; then
  22916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  22917. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  22918. have_ibus_ibus_h_hdr=no
  22919. else
  22920. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  22921. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  22922. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  22923. fi
  22924. fi
  22925. fi
  22926. }
  22927. CheckFcitx()
  22928. {
  22929. # Check whether --enable-fcitx was given.
  22930. if test ${enable_fcitx+y}
  22931. then :
  22932. enableval=$enable_fcitx;
  22933. else $as_nop
  22934. enable_fcitx=yes
  22935. fi
  22936. if test x$enable_fcitx = xyes; then
  22937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  22938. printf %s "checking for fcitx support... " >&6; }
  22939. have_fcitx=no
  22940. if test x$enable_ime != xyes; then
  22941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  22942. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  22943. elif test x$have_dbus_dbus_h_hdr != xyes; then
  22944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  22945. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  22946. else
  22947. have_fcitx=yes
  22948. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  22949. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  22950. fi
  22951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  22952. printf "%s\n" "$have_fcitx" >&6; }
  22953. fi
  22954. }
  22955. CheckJoystickMFI()
  22956. {
  22957. # Check whether --enable-joystick-mfi was given.
  22958. if test ${enable_joystick_mfi+y}
  22959. then :
  22960. enableval=$enable_joystick_mfi;
  22961. else $as_nop
  22962. enable_joystick_mfi=yes
  22963. fi
  22964. if test x$enable_joystick_mfi = xyes; then
  22965. save_CFLAGS="$CFLAGS"
  22966. save_LDFLAGS="$LDFLAGS"
  22967. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  22968. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  22970. printf %s "checking for GameController framework... " >&6; }
  22971. enable_joystick_mfi=no
  22972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22973. /* end confdefs.h. */
  22974. #include <AvailabilityMacros.h>
  22975. #include <TargetConditionals.h>
  22976. #import <GameController/GameController.h>
  22977. int
  22978. main (void)
  22979. {
  22980. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  22981. #error GameController framework doesn't work on this configuration
  22982. #endif
  22983. #if TARGET_CPU_X86
  22984. #error GameController framework doesn't work on this configuration
  22985. #endif
  22986. ;
  22987. return 0;
  22988. }
  22989. _ACEOF
  22990. if ac_fn_c_try_link "$LINENO"
  22991. then :
  22992. enable_joystick_mfi=yes
  22993. fi
  22994. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22995. conftest$ac_exeext conftest.$ac_ext
  22996. CFLAGS="$save_CFLAGS"
  22997. LDFLAGS="$save_LDFLAGS"
  22998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  22999. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23000. if test x$enable_joystick_mfi = xyes; then
  23001. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23002. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23003. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23004. fi
  23005. fi
  23006. }
  23007. CheckPTHREAD()
  23008. {
  23009. case "$host" in
  23010. *-*-emscripten*)
  23011. enable_pthreads_default=no
  23012. ;;
  23013. *)
  23014. enable_pthreads_default=yes
  23015. ;;
  23016. esac
  23017. # Check whether --enable-pthreads was given.
  23018. if test ${enable_pthreads+y}
  23019. then :
  23020. enableval=$enable_pthreads;
  23021. else $as_nop
  23022. enable_pthreads=maybe
  23023. fi
  23024. # Check whether --enable-pthread-sem was given.
  23025. if test ${enable_pthread_sem+y}
  23026. then :
  23027. enableval=$enable_pthread_sem;
  23028. else $as_nop
  23029. enable_pthread_sem=maybe
  23030. fi
  23031. if test x$enable_pthreads = xmaybe; then
  23032. enable_pthreads=$enable_pthreads_default
  23033. fi
  23034. if test x$enable_pthread_sem = xmaybe; then
  23035. enable_pthread_sem=$enable_pthreads
  23036. fi
  23037. case "$host" in
  23038. *-*-android*)
  23039. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23040. pthread_lib=""
  23041. ;;
  23042. *-*-linux*|*-*-uclinux*)
  23043. pthread_cflags="-D_REENTRANT"
  23044. pthread_lib="-lpthread"
  23045. ;;
  23046. *-*-bsdi*)
  23047. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23048. pthread_lib=""
  23049. ;;
  23050. *-*-darwin*)
  23051. pthread_cflags="-D_THREAD_SAFE"
  23052. # causes Carbon.p complaints?
  23053. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23054. ;;
  23055. *-*-freebsd*|*-*-dragonfly*)
  23056. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23057. pthread_lib="-pthread"
  23058. ;;
  23059. *-*-netbsd*)
  23060. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23061. pthread_lib="-lpthread"
  23062. ;;
  23063. *-*-openbsd*)
  23064. pthread_cflags="-D_REENTRANT"
  23065. pthread_lib="-pthread"
  23066. ;;
  23067. *-*-solaris2.9)
  23068. # From Solaris 9+, posix4's preferred name is rt.
  23069. pthread_cflags="-D_REENTRANT"
  23070. pthread_lib="-lpthread -lrt"
  23071. ;;
  23072. *-*-solaris2.10)
  23073. # Solaris 10+ merged pthread into libc.
  23074. pthread_cflags="-D_REENTRANT"
  23075. pthread_lib="-lrt"
  23076. ;;
  23077. *-*-solaris*)
  23078. # Solaris 11+ merged rt into libc.
  23079. pthread_cflags="-D_REENTRANT"
  23080. pthread_lib=""
  23081. ;;
  23082. *-*-sysv5*)
  23083. pthread_cflags="-D_REENTRANT -Kthread"
  23084. pthread_lib=""
  23085. ;;
  23086. *-*-aix*)
  23087. pthread_cflags="-D_REENTRANT -mthreads"
  23088. pthread_lib="-lpthread"
  23089. ;;
  23090. *-*-hpux11*)
  23091. pthread_cflags="-D_REENTRANT"
  23092. pthread_lib="-L/usr/lib -lpthread"
  23093. ;;
  23094. *-*-haiku*)
  23095. pthread_cflags="-D_REENTRANT"
  23096. pthread_lib=""
  23097. ;;
  23098. *-*-nto*)
  23099. pthread_cflags="-D_REENTRANT"
  23100. pthread_lib=""
  23101. ;;
  23102. *-*-emscripten*)
  23103. pthread_cflags="-D_REENTRANT -pthread"
  23104. pthread_lib="-pthread"
  23105. ;;
  23106. *)
  23107. pthread_cflags="-D_REENTRANT"
  23108. pthread_lib="-lpthread"
  23109. ;;
  23110. esac
  23111. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23112. # Save the original compiler flags and libraries
  23113. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23114. # Add the pthread compiler flags and libraries
  23115. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23116. # Check to see if we have pthread support on this system
  23117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23118. printf %s "checking for pthreads... " >&6; }
  23119. use_pthreads=no
  23120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23121. /* end confdefs.h. */
  23122. #include <pthread.h>
  23123. int
  23124. main (void)
  23125. {
  23126. pthread_attr_t type;
  23127. pthread_attr_init(&type);
  23128. ;
  23129. return 0;
  23130. }
  23131. _ACEOF
  23132. if ac_fn_c_try_link "$LINENO"
  23133. then :
  23134. use_pthreads=yes
  23135. fi
  23136. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23137. conftest$ac_exeext conftest.$ac_ext
  23138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23139. printf "%s\n" "$use_pthreads" >&6; }
  23140. # Restore the compiler flags and libraries
  23141. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23142. # Do futher testing if we have pthread support...
  23143. if test x$use_pthreads = xyes; then
  23144. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23145. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23146. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23147. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23148. # Save the original compiler flags and libraries
  23149. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23150. # Add the pthread compiler flags and libraries
  23151. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23152. # Check to see if recursive mutexes are available
  23153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23154. printf %s "checking for recursive mutexes... " >&6; }
  23155. has_recursive_mutexes=no
  23156. if test x$has_recursive_mutexes = xno; then
  23157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23158. /* end confdefs.h. */
  23159. #define _GNU_SOURCE 1
  23160. #include <pthread.h>
  23161. int
  23162. main (void)
  23163. {
  23164. pthread_mutexattr_t attr;
  23165. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23166. ;
  23167. return 0;
  23168. }
  23169. _ACEOF
  23170. if ac_fn_c_try_link "$LINENO"
  23171. then :
  23172. has_recursive_mutexes=yes
  23173. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23174. fi
  23175. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23176. conftest$ac_exeext conftest.$ac_ext
  23177. fi
  23178. if test x$has_recursive_mutexes = xno; then
  23179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23180. /* end confdefs.h. */
  23181. #define _GNU_SOURCE 1
  23182. #include <pthread.h>
  23183. int
  23184. main (void)
  23185. {
  23186. pthread_mutexattr_t attr;
  23187. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23188. ;
  23189. return 0;
  23190. }
  23191. _ACEOF
  23192. if ac_fn_c_try_link "$LINENO"
  23193. then :
  23194. has_recursive_mutexes=yes
  23195. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23196. fi
  23197. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23198. conftest$ac_exeext conftest.$ac_ext
  23199. fi
  23200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23201. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23202. # Check to see if pthread semaphore support is missing
  23203. if test x$enable_pthread_sem = xyes; then
  23204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23205. printf %s "checking for pthread semaphores... " >&6; }
  23206. have_pthread_sem=no
  23207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23208. /* end confdefs.h. */
  23209. #include <pthread.h>
  23210. #include <semaphore.h>
  23211. int
  23212. main (void)
  23213. {
  23214. ;
  23215. return 0;
  23216. }
  23217. _ACEOF
  23218. if ac_fn_c_try_compile "$LINENO"
  23219. then :
  23220. have_pthread_sem=yes
  23221. fi
  23222. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23224. printf "%s\n" "$have_pthread_sem" >&6; }
  23225. fi
  23226. if test x$have_pthread_sem = xyes; then
  23227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23228. printf %s "checking for sem_timedwait... " >&6; }
  23229. have_sem_timedwait=no
  23230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23231. /* end confdefs.h. */
  23232. #include <pthread.h>
  23233. #include <semaphore.h>
  23234. int
  23235. main (void)
  23236. {
  23237. sem_timedwait(NULL, NULL);
  23238. ;
  23239. return 0;
  23240. }
  23241. _ACEOF
  23242. if ac_fn_c_try_link "$LINENO"
  23243. then :
  23244. have_sem_timedwait=yes
  23245. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23246. fi
  23247. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23248. conftest$ac_exeext conftest.$ac_ext
  23249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23250. printf "%s\n" "$have_sem_timedwait" >&6; }
  23251. fi
  23252. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23253. "
  23254. if test "x$ac_cv_header_pthread_np_h" = xyes
  23255. then :
  23256. have_pthread_np_h=yes
  23257. else $as_nop
  23258. have_pthread_np_h=no
  23259. fi
  23260. if test x$have_pthread_np_h = xyes; then
  23261. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23262. fi
  23263. # Check to see if pthread naming is available
  23264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23265. printf %s "checking for pthread_setname_np... " >&6; }
  23266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23267. /* end confdefs.h. */
  23268. /* Override any GCC internal prototype to avoid an error.
  23269. Use char because int might match the return type of a GCC
  23270. builtin and then its argument prototype would still apply. */
  23271. char pthread_setname_np ();
  23272. int
  23273. main (void)
  23274. {
  23275. return pthread_setname_np ();
  23276. ;
  23277. return 0;
  23278. }
  23279. _ACEOF
  23280. if ac_fn_c_try_link "$LINENO"
  23281. then :
  23282. has_pthread_setname_np=yes
  23283. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23284. else $as_nop
  23285. has_pthread_setname_np=no
  23286. fi
  23287. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23288. conftest$ac_exeext conftest.$ac_ext
  23289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23290. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23292. printf %s "checking for pthread_set_name_np... " >&6; }
  23293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23294. /* end confdefs.h. */
  23295. /* Override any GCC internal prototype to avoid an error.
  23296. Use char because int might match the return type of a GCC
  23297. builtin and then its argument prototype would still apply. */
  23298. char pthread_set_name_np ();
  23299. int
  23300. main (void)
  23301. {
  23302. return pthread_set_name_np ();
  23303. ;
  23304. return 0;
  23305. }
  23306. _ACEOF
  23307. if ac_fn_c_try_link "$LINENO"
  23308. then :
  23309. has_pthread_set_name_np=yes
  23310. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23311. else $as_nop
  23312. has_pthread_set_name_np=no
  23313. fi
  23314. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23315. conftest$ac_exeext conftest.$ac_ext
  23316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23317. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23318. # Restore the compiler flags and libraries
  23319. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23320. # Basic thread creation functions
  23321. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23322. # Semaphores
  23323. # We can fake these with mutexes and condition variables if necessary
  23324. if test x$have_pthread_sem = xyes; then
  23325. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23326. else
  23327. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23328. fi
  23329. # Mutexes
  23330. # We can fake these with semaphores if necessary
  23331. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23332. # Condition variables
  23333. # We can fake these with semaphores and mutexes if necessary
  23334. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23335. # Thread local storage
  23336. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23337. have_threads=yes
  23338. fi
  23339. fi
  23340. }
  23341. CheckWINDOWS()
  23342. {
  23343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23344. printf %s "checking Windows compiler... " >&6; }
  23345. have_win32_gcc=no
  23346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23347. /* end confdefs.h. */
  23348. #include <windows.h>
  23349. int
  23350. main (void)
  23351. {
  23352. ;
  23353. return 0;
  23354. }
  23355. _ACEOF
  23356. if ac_fn_c_try_compile "$LINENO"
  23357. then :
  23358. have_win32_gcc=yes
  23359. fi
  23360. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23362. printf "%s\n" "$have_win32_gcc" >&6; }
  23363. if test x$have_win32_gcc != xyes; then
  23364. as_fn_error $? "
  23365. *** Your compiler ($CC) does not produce Windows executables!
  23366. " "$LINENO" 5
  23367. fi
  23368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23369. printf %s "checking Windows CE... " >&6; }
  23370. have_wince=no
  23371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23372. /* end confdefs.h. */
  23373. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23374. #error This is not Windows CE
  23375. #endif
  23376. int
  23377. main (void)
  23378. {
  23379. ;
  23380. return 0;
  23381. }
  23382. _ACEOF
  23383. if ac_fn_c_try_compile "$LINENO"
  23384. then :
  23385. have_wince=yes
  23386. as_fn_error $? "
  23387. *** Sorry, Windows CE is no longer supported.
  23388. " "$LINENO" 5
  23389. fi
  23390. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23392. printf "%s\n" "$have_wince" >&6; }
  23393. # This fixes Windows stack alignment with newer GCC
  23394. CheckStackBoundary
  23395. # headers needed elsewhere
  23396. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23397. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23398. then :
  23399. have_tpcshrd_h=yes
  23400. fi
  23401. if test x$have_tpcshrd_h = xyes; then
  23402. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23403. fi
  23404. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23405. if test "x$ac_cv_header_roapi_h" = xyes
  23406. then :
  23407. have_roapi_h=yes
  23408. fi
  23409. if test x$have_roapi_h = xyes; then
  23410. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23411. fi
  23412. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23413. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23414. then :
  23415. have_shellscalingapi_h=yes
  23416. fi
  23417. if test x$shellscalingapi_h = xyes; then
  23418. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23419. fi
  23420. }
  23421. CheckOS2()
  23422. {
  23423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23424. printf %s "checking OS/2 compiler... " >&6; }
  23425. have_os2_gcc=no
  23426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23427. /* end confdefs.h. */
  23428. #include <os2.h>
  23429. int
  23430. main (void)
  23431. {
  23432. ;
  23433. return 0;
  23434. }
  23435. _ACEOF
  23436. if ac_fn_c_try_compile "$LINENO"
  23437. then :
  23438. have_os2_gcc=yes
  23439. fi
  23440. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23442. printf "%s\n" "$have_os2_gcc" >&6; }
  23443. if test x$have_os2_gcc != xyes; then
  23444. as_fn_error $? "
  23445. *** Your compiler ($CC) does not produce OS/2 executables!
  23446. " "$LINENO" 5
  23447. fi
  23448. }
  23449. CheckDIRECTX()
  23450. {
  23451. # Check whether --enable-directx was given.
  23452. if test ${enable_directx+y}
  23453. then :
  23454. enableval=$enable_directx;
  23455. else $as_nop
  23456. enable_directx=yes
  23457. fi
  23458. if test x$enable_directx = xyes; then
  23459. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23460. if test "x$ac_cv_header_d3d9_h" = xyes
  23461. then :
  23462. have_d3d=yes
  23463. fi
  23464. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23465. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23466. then :
  23467. have_d3d11=yes
  23468. fi
  23469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  23470. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  23471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23472. /* end confdefs.h. */
  23473. #include <winsdkver.h>
  23474. #include <sdkddkver.h>
  23475. #include <d3d12.h>
  23476. ID3D12Device1 *device;
  23477. #if WDK_NTDDI_VERSION <= 0x0A000008
  23478. asdf
  23479. #endif
  23480. int
  23481. main (void)
  23482. {
  23483. ;
  23484. return 0;
  23485. }
  23486. _ACEOF
  23487. if ac_fn_c_try_compile "$LINENO"
  23488. then :
  23489. have_d3d12=yes
  23490. else $as_nop
  23491. have_d3d12=no
  23492. fi
  23493. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23495. printf "%s\n" "$have_d3d12" >&6; }
  23496. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23497. if test "x$ac_cv_header_ddraw_h" = xyes
  23498. then :
  23499. have_ddraw=yes
  23500. fi
  23501. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23502. if test "x$ac_cv_header_dsound_h" = xyes
  23503. then :
  23504. have_dsound=yes
  23505. fi
  23506. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23507. if test "x$ac_cv_header_dinput_h" = xyes
  23508. then :
  23509. have_dinput=yes
  23510. fi
  23511. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23512. if test "x$ac_cv_header_dxgi_h" = xyes
  23513. then :
  23514. have_dxgi=yes
  23515. fi
  23516. if test x$have_ddraw = xyes; then
  23517. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23518. fi
  23519. if test x$have_dinput = xyes; then
  23520. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23521. fi
  23522. if test x$have_dsound = xyes; then
  23523. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23524. fi
  23525. if test x$have_dxgi = xyes; then
  23526. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23527. fi
  23528. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23529. # FIXME: ...so force it off for now.
  23530. case "$host" in
  23531. *-*-cygwin*)
  23532. have_dinput=false
  23533. ;;
  23534. esac
  23535. fi
  23536. # Check whether --enable-xinput was given.
  23537. if test ${enable_xinput+y}
  23538. then :
  23539. enableval=$enable_xinput;
  23540. else $as_nop
  23541. enable_xinput=yes
  23542. fi
  23543. if test x$enable_xinput = xyes; then
  23544. have_xinput_gamepadex=no
  23545. have_xinput_stateex=no
  23546. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23547. if test "x$ac_cv_header_xinput_h" = xyes
  23548. then :
  23549. have_xinput=yes
  23550. fi
  23551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  23552. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  23553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23554. /* end confdefs.h. */
  23555. #include <windows.h>
  23556. #include <xinput.h>
  23557. XINPUT_GAMEPAD_EX x1;
  23558. int
  23559. main (void)
  23560. {
  23561. ;
  23562. return 0;
  23563. }
  23564. _ACEOF
  23565. if ac_fn_c_try_compile "$LINENO"
  23566. then :
  23567. have_xinput_gamepadex=yes
  23568. fi
  23569. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  23571. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  23572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  23573. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  23574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23575. /* end confdefs.h. */
  23576. #include <windows.h>
  23577. #include <xinput.h>
  23578. XINPUT_STATE_EX s1;
  23579. int
  23580. main (void)
  23581. {
  23582. ;
  23583. return 0;
  23584. }
  23585. _ACEOF
  23586. if ac_fn_c_try_compile "$LINENO"
  23587. then :
  23588. have_xinput_stateex=yes
  23589. fi
  23590. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  23592. printf "%s\n" "$have_xinput_stateex" >&6; }
  23593. if test x$have_xinput = xyes; then
  23594. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23595. fi
  23596. if test x$have_xinput_gamepadex = xyes; then
  23597. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  23598. fi
  23599. if test x$have_xinput_stateex = xyes; then
  23600. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  23601. fi
  23602. fi
  23603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23604. printf %s "checking for windows.gaming.input.h... " >&6; }
  23605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23606. /* end confdefs.h. */
  23607. #define COBJMACROS
  23608. #include <windows.gaming.input.h>
  23609. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23610. int
  23611. main (void)
  23612. {
  23613. ;
  23614. return 0;
  23615. }
  23616. _ACEOF
  23617. if ac_fn_c_try_compile "$LINENO"
  23618. then :
  23619. have_wgi=yes
  23620. else $as_nop
  23621. have_wgi=no
  23622. fi
  23623. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23625. printf "%s\n" "$have_wgi" >&6; }
  23626. if test x$have_wgi = xyes; then
  23627. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23628. fi
  23629. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23630. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23631. then :
  23632. have_wasapi=yes
  23633. fi
  23634. if test x$have_wasapi = xyes; then
  23635. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23636. fi
  23637. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23638. if test "x$ac_cv_header_audioclient_h" = xyes
  23639. then :
  23640. else $as_nop
  23641. have_wasapi=no
  23642. fi
  23643. if test x$have_wasapi = xyes; then
  23644. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23645. fi
  23646. # Check whether --enable-wasapi was given.
  23647. if test ${enable_wasapi+y}
  23648. then :
  23649. enableval=$enable_wasapi;
  23650. else $as_nop
  23651. enable_wasapi=yes
  23652. fi
  23653. }
  23654. CheckDLOPEN()
  23655. {
  23656. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23657. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23658. if test "x$ac_cv_header_dlfcn_h" = xyes
  23659. then :
  23660. have_dlfcn_h=yes
  23661. else $as_nop
  23662. have_dlfcn_h=no
  23663. fi
  23664. have_dlopen=no
  23665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23666. printf %s "checking for dlopen in -lc... " >&6; }
  23667. if test ${ac_cv_lib_c_dlopen+y}
  23668. then :
  23669. printf %s "(cached) " >&6
  23670. else $as_nop
  23671. ac_check_lib_save_LIBS=$LIBS
  23672. LIBS="-lc $LIBS"
  23673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23674. /* end confdefs.h. */
  23675. /* Override any GCC internal prototype to avoid an error.
  23676. Use char because int might match the return type of a GCC
  23677. builtin and then its argument prototype would still apply. */
  23678. char dlopen ();
  23679. int
  23680. main (void)
  23681. {
  23682. return dlopen ();
  23683. ;
  23684. return 0;
  23685. }
  23686. _ACEOF
  23687. if ac_fn_c_try_link "$LINENO"
  23688. then :
  23689. ac_cv_lib_c_dlopen=yes
  23690. else $as_nop
  23691. ac_cv_lib_c_dlopen=no
  23692. fi
  23693. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23694. conftest$ac_exeext conftest.$ac_ext
  23695. LIBS=$ac_check_lib_save_LIBS
  23696. fi
  23697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  23698. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  23699. if test "x$ac_cv_lib_c_dlopen" = xyes
  23700. then :
  23701. have_dlopen=yes
  23702. else $as_nop
  23703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  23704. printf %s "checking for dlopen in -ldl... " >&6; }
  23705. if test ${ac_cv_lib_dl_dlopen+y}
  23706. then :
  23707. printf %s "(cached) " >&6
  23708. else $as_nop
  23709. ac_check_lib_save_LIBS=$LIBS
  23710. LIBS="-ldl $LIBS"
  23711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23712. /* end confdefs.h. */
  23713. /* Override any GCC internal prototype to avoid an error.
  23714. Use char because int might match the return type of a GCC
  23715. builtin and then its argument prototype would still apply. */
  23716. char dlopen ();
  23717. int
  23718. main (void)
  23719. {
  23720. return dlopen ();
  23721. ;
  23722. return 0;
  23723. }
  23724. _ACEOF
  23725. if ac_fn_c_try_link "$LINENO"
  23726. then :
  23727. ac_cv_lib_dl_dlopen=yes
  23728. else $as_nop
  23729. ac_cv_lib_dl_dlopen=no
  23730. fi
  23731. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23732. conftest$ac_exeext conftest.$ac_ext
  23733. LIBS=$ac_check_lib_save_LIBS
  23734. fi
  23735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  23736. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  23737. if test "x$ac_cv_lib_dl_dlopen" = xyes
  23738. then :
  23739. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  23740. fi
  23741. fi
  23742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  23743. printf %s "checking for dlopen... " >&6; }
  23744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  23745. printf "%s\n" "$have_dlopen" >&6; }
  23746. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  23747. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  23748. if test x$enable_loadso = xyes; then
  23749. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  23750. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  23751. have_loadso=yes
  23752. fi
  23753. fi
  23754. }
  23755. CheckO_CLOEXEC()
  23756. {
  23757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  23758. printf %s "checking for O_CLOEXEC... " >&6; }
  23759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23760. /* end confdefs.h. */
  23761. #include <fcntl.h>
  23762. int flag = O_CLOEXEC;
  23763. int
  23764. main (void)
  23765. {
  23766. ;
  23767. return 0;
  23768. }
  23769. _ACEOF
  23770. if ac_fn_c_try_compile "$LINENO"
  23771. then :
  23772. have_o_cloexec=yes
  23773. else $as_nop
  23774. have_o_cloexec=no
  23775. fi
  23776. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  23778. printf "%s\n" "$have_o_cloexec" >&6; }
  23779. if test $have_o_cloexec = yes; then
  23780. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  23781. fi
  23782. }
  23783. CheckUSBHID()
  23784. {
  23785. case "$host" in
  23786. *-*-*bsd*|*-*-dragonfly*)
  23787. if test x$enable_joystick = xyes; then
  23788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  23789. printf %s "checking for hid_init in -lusbhid... " >&6; }
  23790. if test ${ac_cv_lib_usbhid_hid_init+y}
  23791. then :
  23792. printf %s "(cached) " >&6
  23793. else $as_nop
  23794. ac_check_lib_save_LIBS=$LIBS
  23795. LIBS="-lusbhid $LIBS"
  23796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23797. /* end confdefs.h. */
  23798. /* Override any GCC internal prototype to avoid an error.
  23799. Use char because int might match the return type of a GCC
  23800. builtin and then its argument prototype would still apply. */
  23801. char hid_init ();
  23802. int
  23803. main (void)
  23804. {
  23805. return hid_init ();
  23806. ;
  23807. return 0;
  23808. }
  23809. _ACEOF
  23810. if ac_fn_c_try_link "$LINENO"
  23811. then :
  23812. ac_cv_lib_usbhid_hid_init=yes
  23813. else $as_nop
  23814. ac_cv_lib_usbhid_hid_init=no
  23815. fi
  23816. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23817. conftest$ac_exeext conftest.$ac_ext
  23818. LIBS=$ac_check_lib_save_LIBS
  23819. fi
  23820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  23821. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  23822. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  23823. then :
  23824. have_libusbhid=yes
  23825. fi
  23826. if test x$have_libusbhid = xyes; then
  23827. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  23828. if test "x$ac_cv_header_usbhid_h" = xyes
  23829. then :
  23830. USB_CFLAGS="-DHAVE_USBHID_H"
  23831. fi
  23832. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  23833. if test "x$ac_cv_header_libusbhid_h" = xyes
  23834. then :
  23835. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  23836. fi
  23837. USB_LIBS="$USB_LIBS -lusbhid"
  23838. else
  23839. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  23840. if test "x$ac_cv_header_usb_h" = xyes
  23841. then :
  23842. USB_CFLAGS="-DHAVE_USB_H"
  23843. fi
  23844. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23845. if test "x$ac_cv_header_libusb_h" = xyes
  23846. then :
  23847. USB_CFLAGS="-DHAVE_LIBUSB_H"
  23848. fi
  23849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  23850. printf %s "checking for hid_init in -lusb... " >&6; }
  23851. if test ${ac_cv_lib_usb_hid_init+y}
  23852. then :
  23853. printf %s "(cached) " >&6
  23854. else $as_nop
  23855. ac_check_lib_save_LIBS=$LIBS
  23856. LIBS="-lusb $LIBS"
  23857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23858. /* end confdefs.h. */
  23859. /* Override any GCC internal prototype to avoid an error.
  23860. Use char because int might match the return type of a GCC
  23861. builtin and then its argument prototype would still apply. */
  23862. char hid_init ();
  23863. int
  23864. main (void)
  23865. {
  23866. return hid_init ();
  23867. ;
  23868. return 0;
  23869. }
  23870. _ACEOF
  23871. if ac_fn_c_try_link "$LINENO"
  23872. then :
  23873. ac_cv_lib_usb_hid_init=yes
  23874. else $as_nop
  23875. ac_cv_lib_usb_hid_init=no
  23876. fi
  23877. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23878. conftest$ac_exeext conftest.$ac_ext
  23879. LIBS=$ac_check_lib_save_LIBS
  23880. fi
  23881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  23882. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  23883. if test "x$ac_cv_lib_usb_hid_init" = xyes
  23884. then :
  23885. USB_LIBS="$USB_LIBS -lusb"
  23886. fi
  23887. fi
  23888. save_CFLAGS="$CFLAGS"
  23889. CFLAGS="$CFLAGS $USB_CFLAGS"
  23890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  23891. printf %s "checking for usbhid... " >&6; }
  23892. have_usbhid=no
  23893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23894. /* end confdefs.h. */
  23895. #include <sys/types.h>
  23896. #if defined(HAVE_USB_H)
  23897. #include <usb.h>
  23898. #endif
  23899. #ifdef __DragonFly__
  23900. # include <bus/u4b/usb.h>
  23901. # include <bus/u4b/usbhid.h>
  23902. #else
  23903. # include <dev/usb/usb.h>
  23904. # include <dev/usb/usbhid.h>
  23905. #endif
  23906. #if defined(HAVE_USBHID_H)
  23907. #include <usbhid.h>
  23908. #elif defined(HAVE_LIBUSB_H)
  23909. #include <libusb.h>
  23910. #elif defined(HAVE_LIBUSBHID_H)
  23911. #include <libusbhid.h>
  23912. #endif
  23913. int
  23914. main (void)
  23915. {
  23916. struct report_desc *repdesc;
  23917. struct usb_ctl_report *repbuf;
  23918. hid_kind_t hidkind;
  23919. ;
  23920. return 0;
  23921. }
  23922. _ACEOF
  23923. if ac_fn_c_try_compile "$LINENO"
  23924. then :
  23925. have_usbhid=yes
  23926. fi
  23927. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  23929. printf "%s\n" "$have_usbhid" >&6; }
  23930. if test x$have_usbhid = xyes; then
  23931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  23932. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  23933. have_usbhid_ucr_data=no
  23934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23935. /* end confdefs.h. */
  23936. #include <sys/types.h>
  23937. #if defined(HAVE_USB_H)
  23938. #include <usb.h>
  23939. #endif
  23940. #ifdef __DragonFly__
  23941. # include <bus/u4b/usb.h>
  23942. # include <bus/u4b/usbhid.h>
  23943. #else
  23944. # include <dev/usb/usb.h>
  23945. # include <dev/usb/usbhid.h>
  23946. #endif
  23947. #if defined(HAVE_USBHID_H)
  23948. #include <usbhid.h>
  23949. #elif defined(HAVE_LIBUSB_H)
  23950. #include <libusb.h>
  23951. #elif defined(HAVE_LIBUSBHID_H)
  23952. #include <libusbhid.h>
  23953. #endif
  23954. int
  23955. main (void)
  23956. {
  23957. struct usb_ctl_report buf;
  23958. if (buf.ucr_data) { }
  23959. ;
  23960. return 0;
  23961. }
  23962. _ACEOF
  23963. if ac_fn_c_try_compile "$LINENO"
  23964. then :
  23965. have_usbhid_ucr_data=yes
  23966. fi
  23967. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23968. if test x$have_usbhid_ucr_data = xyes; then
  23969. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  23970. fi
  23971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  23972. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  23973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  23974. printf %s "checking for new usbhid API... " >&6; }
  23975. have_usbhid_new=no
  23976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23977. /* end confdefs.h. */
  23978. #include <sys/types.h>
  23979. #if defined(HAVE_USB_H)
  23980. #include <usb.h>
  23981. #endif
  23982. #ifdef __DragonFly__
  23983. #include <bus/u4b/usb.h>
  23984. #include <bus/u4b/usbhid.h>
  23985. #else
  23986. #include <dev/usb/usb.h>
  23987. #include <dev/usb/usbhid.h>
  23988. #endif
  23989. #if defined(HAVE_USBHID_H)
  23990. #include <usbhid.h>
  23991. #elif defined(HAVE_LIBUSB_H)
  23992. #include <libusb.h>
  23993. #elif defined(HAVE_LIBUSBHID_H)
  23994. #include <libusbhid.h>
  23995. #endif
  23996. int
  23997. main (void)
  23998. {
  23999. report_desc_t d;
  24000. hid_start_parse(d, 1, 1);
  24001. ;
  24002. return 0;
  24003. }
  24004. _ACEOF
  24005. if ac_fn_c_try_compile "$LINENO"
  24006. then :
  24007. have_usbhid_new=yes
  24008. fi
  24009. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24010. if test x$have_usbhid_new = xyes; then
  24011. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24012. fi
  24013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24014. printf "%s\n" "$have_usbhid_new" >&6; }
  24015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24016. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24017. have_machine_joystick=no
  24018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24019. /* end confdefs.h. */
  24020. #include <machine/joystick.h>
  24021. int
  24022. main (void)
  24023. {
  24024. struct joystick t;
  24025. ;
  24026. return 0;
  24027. }
  24028. _ACEOF
  24029. if ac_fn_c_try_compile "$LINENO"
  24030. then :
  24031. have_machine_joystick=yes
  24032. fi
  24033. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24034. if test x$have_machine_joystick = xyes; then
  24035. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24036. fi
  24037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24038. printf "%s\n" "$have_machine_joystick" >&6; }
  24039. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24040. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24041. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24042. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24043. have_joystick=yes
  24044. fi
  24045. CFLAGS="$save_CFLAGS"
  24046. fi
  24047. ;;
  24048. esac
  24049. }
  24050. CheckHIDAPI()
  24051. {
  24052. # Check whether --enable-hidapi-joystick was given.
  24053. if test ${enable_hidapi_joystick+y}
  24054. then :
  24055. enableval=$enable_hidapi_joystick;
  24056. else $as_nop
  24057. enable_hidapi_joystick=yes
  24058. fi
  24059. # Check whether --enable-hidapi-libusb was given.
  24060. if test ${enable_hidapi_libusb+y}
  24061. then :
  24062. enableval=$enable_hidapi_libusb;
  24063. else $as_nop
  24064. enable_hidapi_libusb=maybe
  24065. fi
  24066. if test x$enable_hidapi = xyes; then
  24067. case "$host" in
  24068. # libusb does not support iOS
  24069. *-ios-* )
  24070. enable_hidapi_libusb=no
  24071. ;;
  24072. # On the other hand, *BSD specifically uses libusb only
  24073. *-*-*bsd* )
  24074. enable_hidapi_libusb=yes
  24075. require_hidapi_libusb=yes
  24076. ;;
  24077. *-*-os2* )
  24078. enable_hidapi_libusb=yes
  24079. ;;
  24080. esac
  24081. hidapi_support=yes
  24082. if test x$enable_hidapi_libusb = xyes; then
  24083. pkg_failed=no
  24084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24085. printf %s "checking for libusb-1.0... " >&6; }
  24086. if test -n "$LIBUSB_CFLAGS"; then
  24087. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24088. elif test -n "$PKG_CONFIG"; then
  24089. if test -n "$PKG_CONFIG" && \
  24090. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24091. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24092. ac_status=$?
  24093. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24094. test $ac_status = 0; }; then
  24095. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24096. test "x$?" != "x0" && pkg_failed=yes
  24097. else
  24098. pkg_failed=yes
  24099. fi
  24100. else
  24101. pkg_failed=untried
  24102. fi
  24103. if test -n "$LIBUSB_LIBS"; then
  24104. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24105. elif test -n "$PKG_CONFIG"; then
  24106. if test -n "$PKG_CONFIG" && \
  24107. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24108. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24109. ac_status=$?
  24110. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24111. test $ac_status = 0; }; then
  24112. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24113. test "x$?" != "x0" && pkg_failed=yes
  24114. else
  24115. pkg_failed=yes
  24116. fi
  24117. else
  24118. pkg_failed=untried
  24119. fi
  24120. if test $pkg_failed = yes; then
  24121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24122. printf "%s\n" "no" >&6; }
  24123. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24124. _pkg_short_errors_supported=yes
  24125. else
  24126. _pkg_short_errors_supported=no
  24127. fi
  24128. if test $_pkg_short_errors_supported = yes; then
  24129. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24130. else
  24131. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24132. fi
  24133. # Put the nasty error message in config.log where it belongs
  24134. echo "$LIBUSB_PKG_ERRORS" >&5
  24135. have_libusb=no
  24136. elif test $pkg_failed = untried; then
  24137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24138. printf "%s\n" "no" >&6; }
  24139. have_libusb=no
  24140. else
  24141. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24142. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24144. printf "%s\n" "yes" >&6; }
  24145. have_libusb=yes
  24146. fi
  24147. save_CPPFLAGS="$CPPFLAGS"
  24148. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24149. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24150. if test "x$ac_cv_header_libusb_h" = xyes
  24151. then :
  24152. have_libusb_h=yes
  24153. else $as_nop
  24154. have_libusb_h=no
  24155. fi
  24156. CPPFLAGS="$save_CPPFLAGS"
  24157. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24158. hidapi_support=no
  24159. fi
  24160. fi
  24161. if test x$hidapi_support = xyes; then
  24162. if test x$have_libusb_h = xyes; then
  24163. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24164. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24165. if test x$require_hidapi_libusb = xyes; then
  24166. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24167. else
  24168. if test x$have_loadso != xyes; then
  24169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24170. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24171. fi
  24172. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24173. libusb_lib=""
  24174. case "$host" in
  24175. *-*-darwin* )
  24176. libusb_lib="libusb-1.0.0.dylib"
  24177. ;;
  24178. *-*-cygwin* | *-*-mingw* )
  24179. libusb_lib="libusb-1.0.dll"
  24180. ;;
  24181. *-*-os2* )
  24182. libusb_lib="usb100.dll"
  24183. ;;
  24184. esac
  24185. if test x$libusb_lib = x; then
  24186. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24187. fi
  24188. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24189. fi
  24190. fi
  24191. fi
  24192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24193. printf %s "checking for hidapi joystick support... " >&6; }
  24194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24195. printf "%s\n" "$hidapi_support" >&6; }
  24196. fi
  24197. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24198. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24199. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24200. fi
  24201. }
  24202. CheckClockGettime()
  24203. {
  24204. # Check whether --enable-clock_gettime was given.
  24205. if test ${enable_clock_gettime+y}
  24206. then :
  24207. enableval=$enable_clock_gettime;
  24208. else $as_nop
  24209. enable_clock_gettime=yes
  24210. fi
  24211. if test x$enable_clock_gettime = xyes; then
  24212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24213. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24214. if test ${ac_cv_lib_rt_clock_gettime+y}
  24215. then :
  24216. printf %s "(cached) " >&6
  24217. else $as_nop
  24218. ac_check_lib_save_LIBS=$LIBS
  24219. LIBS="-lrt $LIBS"
  24220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24221. /* end confdefs.h. */
  24222. /* Override any GCC internal prototype to avoid an error.
  24223. Use char because int might match the return type of a GCC
  24224. builtin and then its argument prototype would still apply. */
  24225. char clock_gettime ();
  24226. int
  24227. main (void)
  24228. {
  24229. return clock_gettime ();
  24230. ;
  24231. return 0;
  24232. }
  24233. _ACEOF
  24234. if ac_fn_c_try_link "$LINENO"
  24235. then :
  24236. ac_cv_lib_rt_clock_gettime=yes
  24237. else $as_nop
  24238. ac_cv_lib_rt_clock_gettime=no
  24239. fi
  24240. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24241. conftest$ac_exeext conftest.$ac_ext
  24242. LIBS=$ac_check_lib_save_LIBS
  24243. fi
  24244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24245. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24246. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24247. then :
  24248. have_clock_gettime=yes
  24249. fi
  24250. if test x$have_clock_gettime = xyes; then
  24251. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24252. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24253. else
  24254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24255. printf %s "checking for clock_gettime in -lc... " >&6; }
  24256. if test ${ac_cv_lib_c_clock_gettime+y}
  24257. then :
  24258. printf %s "(cached) " >&6
  24259. else $as_nop
  24260. ac_check_lib_save_LIBS=$LIBS
  24261. LIBS="-lc $LIBS"
  24262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24263. /* end confdefs.h. */
  24264. /* Override any GCC internal prototype to avoid an error.
  24265. Use char because int might match the return type of a GCC
  24266. builtin and then its argument prototype would still apply. */
  24267. char clock_gettime ();
  24268. int
  24269. main (void)
  24270. {
  24271. return clock_gettime ();
  24272. ;
  24273. return 0;
  24274. }
  24275. _ACEOF
  24276. if ac_fn_c_try_link "$LINENO"
  24277. then :
  24278. ac_cv_lib_c_clock_gettime=yes
  24279. else $as_nop
  24280. ac_cv_lib_c_clock_gettime=no
  24281. fi
  24282. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24283. conftest$ac_exeext conftest.$ac_ext
  24284. LIBS=$ac_check_lib_save_LIBS
  24285. fi
  24286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24287. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24288. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24289. then :
  24290. have_clock_gettime=yes
  24291. fi
  24292. if test x$have_clock_gettime = xyes; then
  24293. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24294. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  24295. fi
  24296. fi
  24297. fi
  24298. }
  24299. CheckLinuxVersion()
  24300. {
  24301. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24302. if test "x$ac_cv_header_linux_version_h" = xyes
  24303. then :
  24304. have_linux_version_h=yes
  24305. fi
  24306. if test x$have_linux_version_h = xyes; then
  24307. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24308. fi
  24309. }
  24310. CheckRPATH()
  24311. {
  24312. # Check whether --enable-rpath was given.
  24313. if test ${enable_rpath+y}
  24314. then :
  24315. enableval=$enable_rpath;
  24316. else $as_nop
  24317. enable_rpath=yes
  24318. fi
  24319. }
  24320. CheckEventSignals()
  24321. {
  24322. # Check whether --enable-backgrounding-signal was given.
  24323. if test ${enable_backgrounding_signal+y}
  24324. then :
  24325. enableval=$enable_backgrounding_signal;
  24326. else $as_nop
  24327. enable_backgrounding_signal=no
  24328. fi
  24329. if test x$enable_backgrounding_signal != xno; then
  24330. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24331. fi
  24332. # Check whether --enable-foregrounding-signal was given.
  24333. if test ${enable_foregrounding_signal+y}
  24334. then :
  24335. enableval=$enable_foregrounding_signal;
  24336. else $as_nop
  24337. enable_foregrounding_signal=no
  24338. fi
  24339. if test x$enable_foregrounding_signal != xno; then
  24340. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24341. fi
  24342. }
  24343. CheckVirtualJoystick()
  24344. {
  24345. # Check whether --enable-joystick-virtual was given.
  24346. if test ${enable_joystick_virtual+y}
  24347. then :
  24348. enableval=$enable_joystick_virtual;
  24349. else $as_nop
  24350. enable_joystick_virtual=yes
  24351. fi
  24352. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24353. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24354. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24355. have_joystick_virtual=yes
  24356. fi
  24357. }
  24358. CheckWarnAll
  24359. CheckNoStrictAliasing
  24360. CheckEventSignals
  24361. have_locale=no
  24362. case "$host" in
  24363. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24364. case "$host" in
  24365. *-*-android*)
  24366. # Android
  24367. ARCH=android
  24368. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24369. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24370. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24371. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24372. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24373. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24374. if test x$enable_video = xyes; then
  24375. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24376. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24377. SUMMARY_video="${SUMMARY_video} android"
  24378. have_video=yes
  24379. fi
  24380. ;;
  24381. *-*-linux*) ARCH=linux ;;
  24382. *-*-uclinux*) ARCH=linux ;;
  24383. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24384. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24385. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24386. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24387. *-*-bsdi*) ARCH=bsdi ;;
  24388. *-*-freebsd*) ARCH=freebsd ;;
  24389. *-*-dragonfly*) ARCH=freebsd ;;
  24390. *-*-netbsd*) ARCH=netbsd ;;
  24391. *-*-openbsd*) ARCH=openbsd ;;
  24392. *-*-sysv5*) ARCH=sysv5 ;;
  24393. *-*-solaris*) ARCH=solaris ;;
  24394. *-*-hpux*) ARCH=hpux ;;
  24395. *-*-aix*) ARCH=aix ;;
  24396. *-*-minix*) ARCH=minix ;;
  24397. *-*-nto*) ARCH=nto
  24398. CheckQNXVideo
  24399. ;;
  24400. esac
  24401. CheckVisibilityHidden
  24402. CheckDeclarationAfterStatement
  24403. CheckDummyVideo
  24404. CheckOffscreenVideo
  24405. CheckDiskAudio
  24406. CheckDummyAudio
  24407. CheckDLOPEN
  24408. CheckARM
  24409. CheckNEON
  24410. CheckO_CLOEXEC
  24411. CheckOSS
  24412. CheckALSA
  24413. CheckPipewire
  24414. CheckPulseAudio
  24415. CheckJACK
  24416. CheckARTSC
  24417. CheckESD
  24418. CheckNAS
  24419. CheckSNDIO
  24420. CheckFusionSound
  24421. CheckLibSampleRate
  24422. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24423. CheckRPI
  24424. CheckX11
  24425. CheckDirectFB
  24426. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24427. CheckEGL
  24428. CheckKMSDRM
  24429. CheckGLX
  24430. CheckOpenGL
  24431. CheckOpenGLES
  24432. CheckVulkan
  24433. CheckWayland
  24434. CheckInputEvents
  24435. CheckLibUDev
  24436. CheckDBus
  24437. CheckIME
  24438. CheckInotify
  24439. CheckIBus
  24440. CheckFcitx
  24441. case $ARCH in
  24442. linux)
  24443. CheckInputKD
  24444. ;;
  24445. freebsd)
  24446. CheckInputKBIO
  24447. ;;
  24448. openbsd|netbsd)
  24449. CheckInputWSCONS
  24450. ;;
  24451. esac
  24452. CheckUSBHID
  24453. CheckHIDAPI
  24454. CheckPTHREAD
  24455. CheckClockGettime
  24456. CheckLinuxVersion
  24457. CheckRPATH
  24458. CheckVivanteVideo
  24459. # Set up files for the misc library
  24460. if test x$enable_misc = xyes; then
  24461. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24462. have_misc=yes
  24463. fi
  24464. # Set up files for the locale library
  24465. if test x$enable_locale = xyes; then
  24466. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24467. have_locale=yes
  24468. fi
  24469. # Set up files for the audio library
  24470. if test x$enable_audio = xyes; then
  24471. case $ARCH in
  24472. sysv5|solaris|hpux)
  24473. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24474. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24475. SUMMARY_audio="${SUMMARY_audio} sun"
  24476. have_audio=yes
  24477. ;;
  24478. netbsd) # Don't use this on OpenBSD, it's busted.
  24479. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24480. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24481. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24482. have_audio=yes
  24483. ;;
  24484. aix)
  24485. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24486. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24487. SUMMARY_audio="${SUMMARY_audio} paudio"
  24488. have_audio=yes
  24489. ;;
  24490. android)
  24491. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24492. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24493. SUMMARY_audio="${SUMMARY_audio} android"
  24494. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24495. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24496. SUMMARY_audio="${SUMMARY_audio} openslES"
  24497. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24498. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24499. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24500. have_audio=yes
  24501. ;;
  24502. nto)
  24503. CheckQNXAudio
  24504. ;;
  24505. esac
  24506. fi
  24507. # Set up files for the joystick library
  24508. if test x$enable_joystick = xyes; then
  24509. case $ARCH in
  24510. linux)
  24511. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24512. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24513. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24514. have_joystick=yes
  24515. ;;
  24516. freebsd)
  24517. if test x$use_input_events = xyes; then
  24518. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24519. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24520. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24521. have_joystick=yes
  24522. fi
  24523. ;;
  24524. android)
  24525. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24526. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24527. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24528. have_joystick=yes
  24529. ;;
  24530. esac
  24531. fi
  24532. # Set up files for the haptic library
  24533. if test x$enable_haptic = xyes; then
  24534. case $ARCH in
  24535. linux|freebsd)
  24536. if test x$use_input_events = xyes; then
  24537. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24538. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24539. have_haptic=yes
  24540. fi
  24541. ;;
  24542. android)
  24543. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24544. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24545. have_haptic=yes
  24546. ;;
  24547. esac
  24548. fi
  24549. # Set up files for the sensor library
  24550. if test x$enable_sensor = xyes; then
  24551. case $ARCH in
  24552. android)
  24553. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24554. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24555. have_sensor=yes
  24556. ;;
  24557. esac
  24558. fi
  24559. # Set up files for the power library
  24560. if test x$enable_power = xyes; then
  24561. case $ARCH in
  24562. linux)
  24563. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24564. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24565. have_power=yes
  24566. ;;
  24567. android)
  24568. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24569. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24570. have_power=yes
  24571. ;;
  24572. esac
  24573. fi
  24574. # Set up files for the filesystem library
  24575. if test x$enable_filesystem = xyes; then
  24576. case $ARCH in
  24577. android)
  24578. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24579. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24580. have_filesystem=yes
  24581. ;;
  24582. *)
  24583. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24584. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24585. have_filesystem=yes
  24586. ;;
  24587. esac
  24588. fi
  24589. # Set up files for the timer library
  24590. if test x$enable_timers = xyes; then
  24591. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24592. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24593. have_timers=yes
  24594. fi
  24595. # Set up files for udev hotplugging support
  24596. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24597. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24598. fi
  24599. # Set up files for evdev input
  24600. if test x$use_input_events = xyes; then
  24601. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24602. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24603. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24604. fi
  24605. # Set up files for wscons input
  24606. if test x$use_input_wscons = xyes; then
  24607. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24608. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24609. fi
  24610. # Set up other core UNIX files
  24611. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24612. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24613. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24614. ;;
  24615. *-*-cygwin* | *-*-mingw*)
  24616. ARCH=win32
  24617. if test "$build" != "$host"; then # cross-compiling
  24618. # Default cross-compile location
  24619. ac_default_prefix=/usr/local/cross-tools/$host
  24620. else
  24621. # Look for the location of the tools and install there
  24622. if test "$BUILD_PREFIX" != ""; then
  24623. ac_default_prefix=$BUILD_PREFIX
  24624. fi
  24625. fi
  24626. if test x$enable_loadso = xyes; then
  24627. have_loadso=yes
  24628. fi
  24629. CheckGDwarf4
  24630. CheckDeclarationAfterStatement
  24631. CheckDummyVideo
  24632. CheckOffscreenVideo
  24633. CheckDiskAudio
  24634. CheckDummyAudio
  24635. CheckWINDOWS
  24636. CheckWINDOWSGL
  24637. CheckWINDOWSGLES
  24638. CheckVulkan
  24639. CheckDIRECTX
  24640. CheckHIDAPI
  24641. # Set up the core platform files
  24642. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24643. # Set up files for the misc library
  24644. if test x$enable_misc = xyes; then
  24645. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24646. have_misc=yes
  24647. fi
  24648. # Use the Windows locale APIs.
  24649. if test x$enable_locale = xyes; then
  24650. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24651. have_locale=yes
  24652. fi
  24653. # Set up files for the video library
  24654. if test x$enable_video = xyes; then
  24655. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24656. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24657. have_video=yes
  24658. # Check whether --enable-render-d3d was given.
  24659. if test ${enable_render_d3d+y}
  24660. then :
  24661. enableval=$enable_render_d3d;
  24662. else $as_nop
  24663. enable_render_d3d=yes
  24664. fi
  24665. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24666. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24667. SUMMARY_video="${SUMMARY_video} d3d9"
  24668. fi
  24669. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24670. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24671. SUMMARY_video="${SUMMARY_video} d3d11"
  24672. fi
  24673. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24674. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24675. SUMMARY_video="${SUMMARY_video} d3d12"
  24676. fi
  24677. fi
  24678. # Set up files for the audio library
  24679. if test x$enable_audio = xyes; then
  24680. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  24681. SUMMARY_audio="${SUMMARY_audio} winmm"
  24682. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  24683. if test x$have_dsound = xyes; then
  24684. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  24685. SUMMARY_audio="${SUMMARY_audio} directsound"
  24686. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  24687. fi
  24688. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  24689. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  24690. SUMMARY_audio="${SUMMARY_audio} wasapi"
  24691. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  24692. fi
  24693. have_audio=yes
  24694. fi
  24695. # Set up files for the joystick library
  24696. if test x$enable_joystick = xyes; then
  24697. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  24698. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  24699. if test x$have_xinput = xyes; then
  24700. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  24701. fi
  24702. if test x$have_wgi = xyes; then
  24703. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  24704. fi
  24705. if test x$have_dinput = xyes; then
  24706. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  24707. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  24708. fi
  24709. fi
  24710. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  24711. have_joystick=yes
  24712. fi
  24713. if test x$enable_haptic = xyes; then
  24714. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  24715. if test x$have_xinput = xyes; then
  24716. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  24717. fi
  24718. if test x$have_dinput = xyes; then
  24719. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  24720. fi
  24721. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  24722. have_haptic=yes
  24723. fi
  24724. fi
  24725. # Set up files for the sensor library
  24726. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  24727. if test "x$ac_cv_header_sensorsapi_h" = xyes
  24728. then :
  24729. have_winsensors=yes
  24730. else $as_nop
  24731. have_winsensors=no
  24732. fi
  24733. if test x$have_winsensors = xyes; then
  24734. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  24735. fi
  24736. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  24737. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  24738. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  24739. have_sensor=yes
  24740. fi
  24741. # Set up files for the power library
  24742. if test x$enable_power = xyes; then
  24743. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  24744. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  24745. have_power=yes
  24746. fi
  24747. # Set up files for the filesystem library
  24748. if test x$enable_filesystem = xyes; then
  24749. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  24750. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  24751. have_filesystem=yes
  24752. fi
  24753. # Set up files for the thread library
  24754. if test x$enable_threads = xyes; then
  24755. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  24756. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  24757. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  24758. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  24759. have_threads=yes
  24760. fi
  24761. # Set up files for the timer library
  24762. if test x$enable_timers = xyes; then
  24763. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  24764. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  24765. have_timers=yes
  24766. fi
  24767. # Set up files for the shared object loading library
  24768. if test x$enable_loadso = xyes; then
  24769. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  24770. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  24771. fi
  24772. # Set up the system libraries we need
  24773. if test -f /lib/w32api/libuuid.a; then
  24774. LIBUUID=/lib/w32api/libuuid.a
  24775. else
  24776. LIBUUID=-luuid
  24777. fi
  24778. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  24779. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  24780. # The Windows platform requires special setup
  24781. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  24782. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  24783. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  24784. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  24785. # Check to see if this is a mingw or cygwin build
  24786. have_mingw32=
  24787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  24788. printf %s "checking for main in -lmingw32... " >&6; }
  24789. if test ${ac_cv_lib_mingw32_main+y}
  24790. then :
  24791. printf %s "(cached) " >&6
  24792. else $as_nop
  24793. ac_check_lib_save_LIBS=$LIBS
  24794. LIBS="-lmingw32 $LIBS"
  24795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24796. /* end confdefs.h. */
  24797. int
  24798. main (void)
  24799. {
  24800. return main ();
  24801. ;
  24802. return 0;
  24803. }
  24804. _ACEOF
  24805. if ac_fn_c_try_link "$LINENO"
  24806. then :
  24807. ac_cv_lib_mingw32_main=yes
  24808. else $as_nop
  24809. ac_cv_lib_mingw32_main=no
  24810. fi
  24811. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24812. conftest$ac_exeext conftest.$ac_ext
  24813. LIBS=$ac_check_lib_save_LIBS
  24814. fi
  24815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  24816. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  24817. if test "x$ac_cv_lib_mingw32_main" = xyes
  24818. then :
  24819. have_mingw32=yes
  24820. fi
  24821. if test x$have_mingw32 = xyes; then
  24822. SDL_LIBS="-lmingw32 $SDL_LIBS"
  24823. else
  24824. SDL_LIBS="-lcygwin $SDL_LIBS"
  24825. fi
  24826. ;;
  24827. *-*-beos*)
  24828. as_fn_error $? "
  24829. *** BeOS support has been removed as of SDL 2.0.2.
  24830. " "$LINENO" 5
  24831. ;;
  24832. *-*-haiku*)
  24833. ARCH=haiku
  24834. ac_default_prefix=/boot/system
  24835. CheckDummyVideo
  24836. CheckOffscreenVideo
  24837. CheckDiskAudio
  24838. CheckDummyAudio
  24839. CheckDLOPEN
  24840. CheckO_CLOEXEC
  24841. CheckHaikuVideo
  24842. CheckHaikuGL
  24843. CheckPTHREAD
  24844. # Set up files for the audio library
  24845. if test x$enable_audio = xyes; then
  24846. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  24847. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  24848. SUMMARY_audio="${SUMMARY_audio} haiku"
  24849. have_audio=yes
  24850. fi
  24851. # Set up files for the joystick library
  24852. if test x$enable_joystick = xyes; then
  24853. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  24854. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  24855. have_joystick=yes
  24856. fi
  24857. # Set up files for the timer library
  24858. if test x$enable_timers = xyes; then
  24859. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  24860. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  24861. have_timers=yes
  24862. fi
  24863. # Set up files for the system power library
  24864. if test x$enable_power = xyes; then
  24865. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  24866. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  24867. have_power=yes
  24868. fi
  24869. # Set up files for the system filesystem library
  24870. if test x$enable_filesystem = xyes; then
  24871. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  24872. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  24873. have_filesystem=yes
  24874. fi
  24875. # Set up files for the misc library
  24876. if test x$enable_misc = xyes; then
  24877. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  24878. have_misc=yes
  24879. fi
  24880. # Set up files for the locale library
  24881. if test x$enable_locale = xyes; then
  24882. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  24883. have_locale=yes
  24884. fi
  24885. # The Haiku platform requires special setup.
  24886. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  24887. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  24888. ;;
  24889. *-ios-*)
  24890. ARCH=ios
  24891. CheckVisibilityHidden
  24892. CheckDeclarationAfterStatement
  24893. CheckDummyVideo
  24894. CheckOffscreenVideo
  24895. CheckDiskAudio
  24896. CheckDummyAudio
  24897. CheckDLOPEN
  24898. CheckO_CLOEXEC
  24899. CheckMETAL
  24900. CheckVulkan
  24901. CheckPTHREAD
  24902. # Set up files for the misc library
  24903. if test x$enable_misc = xyes; then
  24904. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  24905. have_misc=yes
  24906. fi
  24907. # Set up files for the locale library
  24908. if test x$enable_locale = xyes; then
  24909. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24910. have_locale=yes
  24911. fi
  24912. # Set up files for the audio library
  24913. if test x$enable_audio = xyes; then
  24914. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24915. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24916. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24917. have_audio=yes
  24918. fi
  24919. # Set up files for the joystick library
  24920. if test x$enable_joystick = xyes; then
  24921. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  24922. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24923. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24924. have_joystick=yes
  24925. else
  24926. # Need this code for accelerometer as joystick support
  24927. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24928. fi
  24929. # Set up files for the haptic library
  24930. #if test x$enable_haptic = xyes; then
  24931. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24932. # have_haptic=yes
  24933. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24934. #fi
  24935. # Set up files for the sensor library
  24936. if test x$enable_sensor = xyes; then
  24937. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  24938. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  24939. have_sensor=yes
  24940. fi
  24941. # Set up files for the power library
  24942. if test x$enable_power = xyes; then
  24943. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  24944. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  24945. have_power=yes
  24946. fi
  24947. # Set up files for the filesystem library
  24948. if test x$enable_filesystem = xyes; then
  24949. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24950. have_filesystem=yes
  24951. fi
  24952. # Set up additional files for the file library
  24953. if test x$enable_file = xyes; then
  24954. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24955. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24956. fi
  24957. # Set up files for the timer library
  24958. if test x$enable_timers = xyes; then
  24959. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24960. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24961. have_timers=yes
  24962. fi
  24963. # Set up other core UNIX files
  24964. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24965. # The iOS platform requires special setup.
  24966. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  24967. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  24968. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  24969. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  24970. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  24971. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  24972. SUMMARY_video="${SUMMARY_video} uikit"
  24973. have_video=yes
  24974. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  24975. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  24976. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  24977. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  24978. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  24979. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  24980. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  24981. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  24982. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  24983. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  24984. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  24985. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  24986. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  24987. fi
  24988. ;;
  24989. *-*-darwin* )
  24990. # This could be either full "Mac OS X", or plain "Darwin" which is
  24991. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  24992. # Next line is broken, and a few files below require Mac OS X (full)
  24993. ARCH=macosx
  24994. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  24995. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  24996. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  24997. CheckObjectiveCARC
  24998. CheckVisibilityHidden
  24999. CheckDeclarationAfterStatement
  25000. CheckDummyVideo
  25001. CheckOffscreenVideo
  25002. CheckDiskAudio
  25003. CheckDummyAudio
  25004. CheckDLOPEN
  25005. CheckO_CLOEXEC
  25006. CheckCOCOA
  25007. CheckMETAL
  25008. CheckX11
  25009. CheckMacGL
  25010. CheckMacGLES
  25011. CheckGLX
  25012. CheckOpenGL
  25013. CheckVulkan
  25014. CheckPTHREAD
  25015. CheckHIDAPI
  25016. # Set up files for the misc library
  25017. if test x$enable_misc = xyes; then
  25018. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25019. have_misc=yes
  25020. fi
  25021. # Set up files for the locale library
  25022. if test x$enable_locale = xyes; then
  25023. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25024. have_locale=yes
  25025. fi
  25026. # Set up files for the audio library
  25027. if test x$enable_audio = xyes; then
  25028. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25029. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25030. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25031. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25032. have_audio=yes
  25033. fi
  25034. # Set up files for the joystick library
  25035. if test x$enable_joystick = xyes; then
  25036. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25037. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25038. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25039. CheckJoystickMFI
  25040. have_joystick=yes
  25041. fi
  25042. # Set up files for the haptic library
  25043. if test x$enable_haptic = xyes; then
  25044. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25045. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25046. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25047. have_haptic=yes
  25048. fi
  25049. # Set up files for the power library
  25050. if test x$enable_power = xyes; then
  25051. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25052. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25053. have_power=yes
  25054. fi
  25055. # Set up files for the filesystem library
  25056. if test x$enable_filesystem = xyes; then
  25057. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25058. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25059. have_filesystem=yes
  25060. fi
  25061. # Set up files for the timer library
  25062. if test x$enable_timers = xyes; then
  25063. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25064. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25065. have_timers=yes
  25066. fi
  25067. # Set up additional files for the file library
  25068. if test x$enable_file = xyes; then
  25069. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25070. fi
  25071. # Set up other core UNIX files
  25072. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25073. # The Mac OS X platform requires special setup.
  25074. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25075. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25076. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25077. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25078. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25079. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25080. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25081. fi
  25082. ;;
  25083. *-nacl|*-pnacl)
  25084. ARCH=nacl
  25085. CheckNativeClient
  25086. CheckDummyAudio
  25087. CheckDummyVideo
  25088. CheckOffscreenVideo
  25089. CheckInputEvents
  25090. CheckPTHREAD
  25091. CheckO_CLOEXEC
  25092. # Set up files for the timer library
  25093. if test x$enable_timers = xyes; then
  25094. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25095. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25096. have_timers=yes
  25097. fi
  25098. if test x$enable_filesystem = xyes; then
  25099. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25100. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25101. have_filesystem=yes
  25102. fi
  25103. ;;
  25104. *-*-emscripten* )
  25105. if test x$enable_video = xyes; then
  25106. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25107. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25108. have_video=yes
  25109. SUMMARY_video="${SUMMARY_video} emscripten"
  25110. fi
  25111. if test x$enable_audio = xyes; then
  25112. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25113. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25114. have_audio=yes
  25115. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25116. fi
  25117. CheckVisibilityHidden
  25118. CheckDeclarationAfterStatement
  25119. CheckDummyVideo
  25120. CheckOffscreenVideo
  25121. CheckDiskAudio
  25122. CheckDummyAudio
  25123. CheckPTHREAD
  25124. CheckDLOPEN
  25125. CheckClockGettime
  25126. CheckEmscriptenGLES
  25127. # Set up files for the misc library
  25128. if test x$enable_misc = xyes; then
  25129. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25130. have_misc=yes
  25131. fi
  25132. # Set up files for the power library
  25133. if test x$enable_power = xyes; then
  25134. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25135. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25136. have_power=yes
  25137. fi
  25138. # Set up files for the joystick library
  25139. if test x$enable_joystick = xyes; then
  25140. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25141. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25142. have_joystick=yes
  25143. fi
  25144. # Set up files for the filesystem library
  25145. if test x$enable_filesystem = xyes; then
  25146. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25147. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25148. have_filesystem=yes
  25149. fi
  25150. # Set up files for the timer library
  25151. if test x$enable_timers = xyes; then
  25152. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25153. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25154. have_timers=yes
  25155. fi
  25156. # Set up files for the locale library
  25157. if test x$enable_locale = xyes; then
  25158. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25159. have_locale=yes
  25160. fi
  25161. ;;
  25162. *-*-riscos*)
  25163. ARCH=riscos
  25164. CheckVisibilityHidden
  25165. CheckDeclarationAfterStatement
  25166. CheckDummyVideo
  25167. CheckOffscreenVideo
  25168. CheckDiskAudio
  25169. CheckDummyAudio
  25170. CheckDLOPEN
  25171. CheckO_CLOEXEC
  25172. CheckOSS
  25173. CheckPTHREAD
  25174. CheckClockGettime
  25175. # Set up files for the misc library
  25176. if test x$enable_misc = xyes; then
  25177. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25178. have_misc=yes
  25179. fi
  25180. # Set up files for the video library
  25181. if test x$enable_video = xyes; then
  25182. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25183. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25184. have_video=yes
  25185. SUMMARY_video="${SUMMARY_video} riscos"
  25186. fi
  25187. # Set up files for the filesystem library
  25188. if test x$enable_filesystem = xyes; then
  25189. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25190. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25191. have_filesystem=yes
  25192. fi
  25193. # Set up files for the timer library
  25194. if test x$enable_timers = xyes; then
  25195. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25196. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25197. have_timers=yes
  25198. fi
  25199. ;;
  25200. *-*-os2*)
  25201. ARCH=os2
  25202. if test "$build" != "$host"; then # cross-compiling
  25203. # Default cross-compile location
  25204. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25205. else
  25206. # Look for the location of the tools and install there
  25207. if test "$BUILD_PREFIX" != ""; then
  25208. ac_default_prefix=$BUILD_PREFIX
  25209. fi
  25210. fi
  25211. enable_static=no # disable static builds
  25212. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25213. CheckOS2
  25214. CheckDeclarationAfterStatement
  25215. CheckDummyVideo
  25216. CheckDiskAudio
  25217. CheckDummyAudio
  25218. CheckHIDAPI
  25219. # Set up the core platform files
  25220. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25221. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25222. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25223. fi
  25224. # Use the Unix locale APIs.
  25225. if test x$enable_locale = xyes; then
  25226. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25227. have_locale=yes
  25228. fi
  25229. # Set up files for the video library
  25230. if test x$enable_video = xyes; then
  25231. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25232. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25233. have_video=yes
  25234. SUMMARY_video="${SUMMARY_video} os/2"
  25235. fi
  25236. # Set up files for the audio library
  25237. if test x$enable_audio = xyes; then
  25238. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25239. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25240. have_audio=yes
  25241. SUMMARY_audio="${SUMMARY_audio} os/2"
  25242. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25243. fi
  25244. # Set up files for the thread library
  25245. if test x$enable_threads = xyes; then
  25246. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25247. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25248. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25249. have_threads=yes
  25250. fi
  25251. # Set up files for the timer library
  25252. if test x$enable_timers = xyes; then
  25253. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25254. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25255. have_timers=yes
  25256. fi
  25257. # Set up files for the shared object loading library
  25258. if test x$enable_loadso = xyes; then
  25259. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25260. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25261. have_loadso=yes
  25262. fi
  25263. # Set up files for the filesystem library
  25264. if test x$enable_filesystem = xyes; then
  25265. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25266. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25267. have_filesystem=yes
  25268. fi
  25269. # Set up files for the joystick library
  25270. if test x$enable_joystick = xyes; then
  25271. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25272. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25273. have_joystick=yes
  25274. fi
  25275. ;;
  25276. *)
  25277. as_fn_error $? "
  25278. *** Unsupported host: Please add to configure.ac
  25279. " "$LINENO" 5
  25280. ;;
  25281. esac
  25282. CheckVirtualJoystick
  25283. # Check whether to install sdl2-config
  25284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25285. printf %s "checking whether to install sdl2-config... " >&6; }
  25286. # Check whether --enable-sdl2-config was given.
  25287. if test ${enable_sdl2_config+y}
  25288. then :
  25289. enableval=$enable_sdl2_config; case "${enableval}" in
  25290. yes) enable_sdl2_config="TRUE" ;;
  25291. no) enable_sdl2_config="FALSE" ;;
  25292. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25293. esac
  25294. else $as_nop
  25295. enable_sdl2_config="TRUE"
  25296. fi
  25297. if test "$enable_sdl2_config" = "TRUE"; then
  25298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25299. printf "%s\n" "yes" >&6; }
  25300. else
  25301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25302. printf "%s\n" "no" >&6; }
  25303. fi
  25304. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25305. # Verify that we have all the platform specific files we need
  25306. if test x$have_audio != xyes; then
  25307. if test x$enable_audio = xyes; then
  25308. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25309. fi
  25310. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25311. fi
  25312. if test x$have_video != xyes; then
  25313. if test x$enable_video = xyes; then
  25314. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25315. fi
  25316. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25317. fi
  25318. if test x$have_misc != xyes; then
  25319. if test x$enable_misc = xyes; then
  25320. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25321. fi
  25322. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25323. fi
  25324. if test x$have_locale != xyes; then
  25325. if test x$enable_locale = xyes; then
  25326. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25327. fi
  25328. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25329. fi
  25330. if test x$have_joystick != xyes; then
  25331. if test x$enable_joystick = xyes; then
  25332. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25333. fi
  25334. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25335. fi
  25336. if test x$have_haptic != xyes; then
  25337. if test x$enable_haptic = xyes; then
  25338. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25339. fi
  25340. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25341. fi
  25342. if test x$have_sensor != xyes; then
  25343. if test x$enable_sensor = xyes; then
  25344. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25345. fi
  25346. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25347. fi
  25348. if test x$have_threads != xyes; then
  25349. if test x$enable_threads = xyes; then
  25350. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25351. fi
  25352. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25353. fi
  25354. if test x$have_timers != xyes; then
  25355. if test x$enable_timers = xyes; then
  25356. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25357. fi
  25358. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25359. fi
  25360. if test x$have_filesystem != xyes; then
  25361. if test x$enable_filesystem = xyes; then
  25362. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25363. fi
  25364. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25365. fi
  25366. if test x$have_loadso != xyes; then
  25367. if test x$enable_loadso = xyes; then
  25368. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25369. fi
  25370. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25371. fi
  25372. if test x$SDLMAIN_SOURCES = x; then
  25373. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25374. fi
  25375. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25376. if test x$video_wayland = xyes; then
  25377. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25378. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25379. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25380. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25381. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25382. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25383. echo ;\
  25384. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25385. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25386. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25387. echo ;\
  25388. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25389. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25390. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25391. echo ;\
  25392. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25393. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25394. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25395. done ;\
  25396. echo ;\
  25397. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25398. fi
  25399. OBJECTS=`echo $SOURCES`
  25400. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25401. for EXT in asm cc m c S; do
  25402. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25403. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25404. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25405. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25406. done
  25407. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25408. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25409. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25410. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25411. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25412. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25413. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25414. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25415. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25416. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25417. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25418. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25419. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25420. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25421. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25422. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25423. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25424. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25425. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25426. # Set runtime shared library paths as needed
  25427. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25428. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25429. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25431. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25432. have_enable_new_dtags=no
  25433. save_LDFLAGS="$LDFLAGS"
  25434. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25436. /* end confdefs.h. */
  25437. int
  25438. main (void)
  25439. {
  25440. ;
  25441. return 0;
  25442. }
  25443. _ACEOF
  25444. if ac_fn_c_try_link "$LINENO"
  25445. then :
  25446. have_enable_new_dtags=yes
  25447. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25448. fi
  25449. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25450. conftest$ac_exeext conftest.$ac_ext
  25451. LDFLAGS="$save_LDFLAGS"
  25452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25453. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25454. fi
  25455. if test $ARCH = solaris; then
  25456. SDL_RLD_FLAGS="-R\${libdir}"
  25457. fi
  25458. else
  25459. SDL_RLD_FLAGS=""
  25460. fi
  25461. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25462. pkg_cmakedir='$libdir/cmake/SDL2'
  25463. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25464. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25465. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25466. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25467. _lcl_receval="$_lcl_from"
  25468. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25469. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25470. _lcl_receval_old=''
  25471. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25472. _lcl_receval_old="$_lcl_receval"
  25473. eval _lcl_receval="\"$_lcl_receval\""
  25474. done
  25475. echo "$_lcl_receval")`
  25476. _lcl_receval="$_lcl_to"
  25477. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25478. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25479. _lcl_receval_old=''
  25480. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25481. _lcl_receval_old="$_lcl_receval"
  25482. eval _lcl_receval="\"$_lcl_receval\""
  25483. done
  25484. echo "$_lcl_receval")`
  25485. _lcl_notation="$_lcl_from$_lcl_to"
  25486. case ":$_lcl_from:" in
  25487. # change empty paths to '.'
  25488. ::) _lcl_from='.' ;;
  25489. # strip trailing slashes
  25490. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25491. :*:) ;;
  25492. esac
  25493. # squeeze repeated slashes
  25494. case '/' in
  25495. # if the path contains any backslashes, turn slashes into backslashes
  25496. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25497. # if the path contains slashes, also turn backslashes into slashes
  25498. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25499. esac
  25500. case ":$_lcl_to:" in
  25501. # change empty paths to '.'
  25502. ::) _lcl_to='.' ;;
  25503. # strip trailing slashes
  25504. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25505. :*:) ;;
  25506. esac
  25507. # squeeze repeated slashes
  25508. case '/' in
  25509. # if the path contains any backslashes, turn slashes into backslashes
  25510. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25511. # if the path contains slashes, also turn backslashes into slashes
  25512. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25513. esac
  25514. _lcl_common_prefix=''
  25515. _lcl_second_prefix_match=''
  25516. while test "$_lcl_second_prefix_match" != 0; do
  25517. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25518. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25519. if test "$_lcl_second_prefix_match" != 0; then
  25520. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25521. _lcl_common_prefix="$_lcl_first_prefix"
  25522. else
  25523. _lcl_second_prefix_match=0
  25524. fi
  25525. fi
  25526. done
  25527. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25528. _lcl_first_rel=''
  25529. _lcl_tmp='xxx'
  25530. while test "$_lcl_tmp" != ''; do
  25531. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25532. if test "$_lcl_first_suffix" != ''; then
  25533. _lcl_first_suffix="$_lcl_tmp"
  25534. _lcl_first_rel="../$_lcl_first_rel"
  25535. fi
  25536. done
  25537. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25538. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25539. case ":$_lcl_result_tmp:" in
  25540. # change empty paths to '.'
  25541. ::) _lcl_result_tmp='.' ;;
  25542. # strip trailing slashes
  25543. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25544. :*:) ;;
  25545. esac
  25546. # squeeze repeated slashes
  25547. case "$_lcl_notation" in
  25548. # if the path contains any backslashes, turn slashes into backslashes
  25549. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25550. # if the path contains slashes, also turn backslashes into slashes
  25551. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25552. esac
  25553. eval $_lcl_result_var='$_lcl_result_tmp'
  25554. done
  25555. if test x$enable_shared = xyes; then
  25556. PKGCONFIG_LIBS_PRIV="
  25557. Libs.private:"
  25558. ENABLE_SHARED_TRUE=
  25559. ENABLE_SHARED_FALSE="#"
  25560. else
  25561. PKGCONFIG_LIBS_PRIV=
  25562. ENABLE_SHARED_TRUE="#"
  25563. ENABLE_SHARED_FALSE=
  25564. fi
  25565. if test x$enable_static = xyes; then
  25566. ENABLE_STATIC_TRUE=
  25567. ENABLE_STATIC_FALSE="#"
  25568. else
  25569. ENABLE_STATIC_TRUE="#"
  25570. ENABLE_STATIC_FALSE=
  25571. fi
  25572. cat >Makefile.rules <<__EOF__
  25573. # Build rules for objects
  25574. -include \$(OBJECTS:.lo=.d)
  25575. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25576. $srcdir/src/SDL.c: update-revision
  25577. $DEPENDS
  25578. $VERSION_DEPENDS
  25579. $SDLMAIN_DEPENDS
  25580. $SDLTEST_DEPENDS
  25581. $WAYLAND_PROTOCOLS_DEPENDS
  25582. __EOF__
  25583. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25584. ac_config_commands="$ac_config_commands sdl2_config"
  25585. SUMMARY="SDL2 Configure Summary:\n"
  25586. if test x$enable_shared = xyes; then
  25587. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25588. fi
  25589. if test x$enable_static = xyes; then
  25590. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25591. fi
  25592. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25593. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25594. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25595. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25596. if test x$have_x = xyes; then
  25597. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25598. fi
  25599. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25600. if test x$have_joystick_virtual = xyes; then
  25601. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25602. else
  25603. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25604. fi
  25605. if test x$have_samplerate_h_hdr = xyes; then
  25606. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25607. else
  25608. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25609. fi
  25610. if test x$have_libudev_h_hdr = xyes; then
  25611. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25612. else
  25613. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25614. fi
  25615. if test x$have_dbus_dbus_h_hdr = xyes; then
  25616. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25617. else
  25618. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25619. fi
  25620. if test x$enable_ime = xyes; then
  25621. SUMMARY="${SUMMARY}Using ime : YES\n"
  25622. else
  25623. SUMMARY="${SUMMARY}Using ime : NO\n"
  25624. fi
  25625. if test x$have_ibus_ibus_h_hdr = xyes; then
  25626. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25627. else
  25628. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25629. fi
  25630. if test x$have_fcitx = xyes; then
  25631. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25632. else
  25633. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25634. fi
  25635. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25636. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25637. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25638. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25639. SUMMARY="${SUMMARY}configure script with:\n"
  25640. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25641. fi
  25642. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25643. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25644. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25645. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25646. SUMMARY="${SUMMARY}configure script with:\n"
  25647. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25648. fi
  25649. ac_config_commands="$ac_config_commands summary"
  25650. cat >confcache <<\_ACEOF
  25651. # This file is a shell script that caches the results of configure
  25652. # tests run on this system so they can be shared between configure
  25653. # scripts and configure runs, see configure's option --config-cache.
  25654. # It is not useful on other systems. If it contains results you don't
  25655. # want to keep, you may remove or edit it.
  25656. #
  25657. # config.status only pays attention to the cache file if you give it
  25658. # the --recheck option to rerun configure.
  25659. #
  25660. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25661. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25662. # following values.
  25663. _ACEOF
  25664. # The following way of writing the cache mishandles newlines in values,
  25665. # but we know of no workaround that is simple, portable, and efficient.
  25666. # So, we kill variables containing newlines.
  25667. # Ultrix sh set writes to stderr and can't be redirected directly,
  25668. # and sets the high bit in the cache file unless we assign to the vars.
  25669. (
  25670. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25671. eval ac_val=\$$ac_var
  25672. case $ac_val in #(
  25673. *${as_nl}*)
  25674. case $ac_var in #(
  25675. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25676. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25677. esac
  25678. case $ac_var in #(
  25679. _ | IFS | as_nl) ;; #(
  25680. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25681. *) { eval $ac_var=; unset $ac_var;} ;;
  25682. esac ;;
  25683. esac
  25684. done
  25685. (set) 2>&1 |
  25686. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25687. *${as_nl}ac_space=\ *)
  25688. # `set' does not quote correctly, so add quotes: double-quote
  25689. # substitution turns \\\\ into \\, and sed turns \\ into \.
  25690. sed -n \
  25691. "s/'/'\\\\''/g;
  25692. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25693. ;; #(
  25694. *)
  25695. # `set' quotes correctly as required by POSIX, so do not add quotes.
  25696. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25697. ;;
  25698. esac |
  25699. sort
  25700. ) |
  25701. sed '
  25702. /^ac_cv_env_/b end
  25703. t clear
  25704. :clear
  25705. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  25706. t end
  25707. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25708. :end' >>confcache
  25709. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25710. if test -w "$cache_file"; then
  25711. if test "x$cache_file" != "x/dev/null"; then
  25712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25713. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  25714. if test ! -f "$cache_file" || test -h "$cache_file"; then
  25715. cat confcache >"$cache_file"
  25716. else
  25717. case $cache_file in #(
  25718. */* | ?:*)
  25719. mv -f confcache "$cache_file"$$ &&
  25720. mv -f "$cache_file"$$ "$cache_file" ;; #(
  25721. *)
  25722. mv -f confcache "$cache_file" ;;
  25723. esac
  25724. fi
  25725. fi
  25726. else
  25727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  25728. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  25729. fi
  25730. fi
  25731. rm -f confcache
  25732. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25733. # Let make expand exec_prefix.
  25734. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25735. DEFS=-DHAVE_CONFIG_H
  25736. ac_libobjs=
  25737. ac_ltlibobjs=
  25738. U=
  25739. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25740. # 1. Remove the extension, and $U if already installed.
  25741. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25742. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  25743. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25744. # will be set to the directory where LIBOBJS objects are built.
  25745. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25746. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  25747. done
  25748. LIBOBJS=$ac_libobjs
  25749. LTLIBOBJS=$ac_ltlibobjs
  25750. : "${CONFIG_STATUS=./config.status}"
  25751. ac_write_fail=0
  25752. ac_clean_files_save=$ac_clean_files
  25753. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  25755. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  25756. as_write_fail=0
  25757. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  25758. #! $SHELL
  25759. # Generated by $as_me.
  25760. # Run this file to recreate the current configuration.
  25761. # Compiler output produced by configure, useful for debugging
  25762. # configure, is in config.log if it exists.
  25763. debug=false
  25764. ac_cs_recheck=false
  25765. ac_cs_silent=false
  25766. SHELL=\${CONFIG_SHELL-$SHELL}
  25767. export SHELL
  25768. _ASEOF
  25769. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  25770. ## -------------------- ##
  25771. ## M4sh Initialization. ##
  25772. ## -------------------- ##
  25773. # Be more Bourne compatible
  25774. DUALCASE=1; export DUALCASE # for MKS sh
  25775. as_nop=:
  25776. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  25777. then :
  25778. emulate sh
  25779. NULLCMD=:
  25780. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25781. # is contrary to our usage. Disable this feature.
  25782. alias -g '${1+"$@"}'='"$@"'
  25783. setopt NO_GLOB_SUBST
  25784. else $as_nop
  25785. case `(set -o) 2>/dev/null` in #(
  25786. *posix*) :
  25787. set -o posix ;; #(
  25788. *) :
  25789. ;;
  25790. esac
  25791. fi
  25792. # Reset variables that may have inherited troublesome values from
  25793. # the environment.
  25794. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  25795. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  25796. # side effect of setting IFS to empty, thus disabling word splitting.)
  25797. # Quoting is to prevent editors from complaining about space-tab.
  25798. as_nl='
  25799. '
  25800. export as_nl
  25801. IFS=" "" $as_nl"
  25802. PS1='$ '
  25803. PS2='> '
  25804. PS4='+ '
  25805. # Ensure predictable behavior from utilities with locale-dependent output.
  25806. LC_ALL=C
  25807. export LC_ALL
  25808. LANGUAGE=C
  25809. export LANGUAGE
  25810. # We cannot yet rely on "unset" to work, but we need these variables
  25811. # to be unset--not just set to an empty or harmless value--now, to
  25812. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  25813. # also avoids known problems related to "unset" and subshell syntax
  25814. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  25815. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  25816. do eval test \${$as_var+y} \
  25817. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  25818. done
  25819. # Ensure that fds 0, 1, and 2 are open.
  25820. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  25821. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  25822. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  25823. # The user is always right.
  25824. if ${PATH_SEPARATOR+false} :; then
  25825. PATH_SEPARATOR=:
  25826. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  25827. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  25828. PATH_SEPARATOR=';'
  25829. }
  25830. fi
  25831. # Find who we are. Look in the path if we contain no directory separator.
  25832. as_myself=
  25833. case $0 in #((
  25834. *[\\/]* ) as_myself=$0 ;;
  25835. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25836. for as_dir in $PATH
  25837. do
  25838. IFS=$as_save_IFS
  25839. case $as_dir in #(((
  25840. '') as_dir=./ ;;
  25841. */) ;;
  25842. *) as_dir=$as_dir/ ;;
  25843. esac
  25844. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  25845. done
  25846. IFS=$as_save_IFS
  25847. ;;
  25848. esac
  25849. # We did not find ourselves, most probably we were run as `sh COMMAND'
  25850. # in which case we are not to be found in the path.
  25851. if test "x$as_myself" = x; then
  25852. as_myself=$0
  25853. fi
  25854. if test ! -f "$as_myself"; then
  25855. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  25856. exit 1
  25857. fi
  25858. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  25859. # ----------------------------------------
  25860. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  25861. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  25862. # script with STATUS, using 1 if that was 0.
  25863. as_fn_error ()
  25864. {
  25865. as_status=$1; test $as_status -eq 0 && as_status=1
  25866. if test "$4"; then
  25867. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  25868. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  25869. fi
  25870. printf "%s\n" "$as_me: error: $2" >&2
  25871. as_fn_exit $as_status
  25872. } # as_fn_error
  25873. # as_fn_set_status STATUS
  25874. # -----------------------
  25875. # Set $? to STATUS, without forking.
  25876. as_fn_set_status ()
  25877. {
  25878. return $1
  25879. } # as_fn_set_status
  25880. # as_fn_exit STATUS
  25881. # -----------------
  25882. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  25883. as_fn_exit ()
  25884. {
  25885. set +e
  25886. as_fn_set_status $1
  25887. exit $1
  25888. } # as_fn_exit
  25889. # as_fn_unset VAR
  25890. # ---------------
  25891. # Portably unset VAR.
  25892. as_fn_unset ()
  25893. {
  25894. { eval $1=; unset $1;}
  25895. }
  25896. as_unset=as_fn_unset
  25897. # as_fn_append VAR VALUE
  25898. # ----------------------
  25899. # Append the text in VALUE to the end of the definition contained in VAR. Take
  25900. # advantage of any shell optimizations that allow amortized linear growth over
  25901. # repeated appends, instead of the typical quadratic growth present in naive
  25902. # implementations.
  25903. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  25904. then :
  25905. eval 'as_fn_append ()
  25906. {
  25907. eval $1+=\$2
  25908. }'
  25909. else $as_nop
  25910. as_fn_append ()
  25911. {
  25912. eval $1=\$$1\$2
  25913. }
  25914. fi # as_fn_append
  25915. # as_fn_arith ARG...
  25916. # ------------------
  25917. # Perform arithmetic evaluation on the ARGs, and store the result in the
  25918. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  25919. # must be portable across $(()) and expr.
  25920. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  25921. then :
  25922. eval 'as_fn_arith ()
  25923. {
  25924. as_val=$(( $* ))
  25925. }'
  25926. else $as_nop
  25927. as_fn_arith ()
  25928. {
  25929. as_val=`expr "$@" || test $? -eq 1`
  25930. }
  25931. fi # as_fn_arith
  25932. if expr a : '\(a\)' >/dev/null 2>&1 &&
  25933. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  25934. as_expr=expr
  25935. else
  25936. as_expr=false
  25937. fi
  25938. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  25939. as_basename=basename
  25940. else
  25941. as_basename=false
  25942. fi
  25943. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  25944. as_dirname=dirname
  25945. else
  25946. as_dirname=false
  25947. fi
  25948. as_me=`$as_basename -- "$0" ||
  25949. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  25950. X"$0" : 'X\(//\)$' \| \
  25951. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  25952. printf "%s\n" X/"$0" |
  25953. sed '/^.*\/\([^/][^/]*\)\/*$/{
  25954. s//\1/
  25955. q
  25956. }
  25957. /^X\/\(\/\/\)$/{
  25958. s//\1/
  25959. q
  25960. }
  25961. /^X\/\(\/\).*/{
  25962. s//\1/
  25963. q
  25964. }
  25965. s/.*/./; q'`
  25966. # Avoid depending upon Character Ranges.
  25967. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  25968. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  25969. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  25970. as_cr_digits='0123456789'
  25971. as_cr_alnum=$as_cr_Letters$as_cr_digits
  25972. # Determine whether it's possible to make 'echo' print without a newline.
  25973. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  25974. # for compatibility with existing Makefiles.
  25975. ECHO_C= ECHO_N= ECHO_T=
  25976. case `echo -n x` in #(((((
  25977. -n*)
  25978. case `echo 'xy\c'` in
  25979. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  25980. xy) ECHO_C='\c';;
  25981. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  25982. ECHO_T=' ';;
  25983. esac;;
  25984. *)
  25985. ECHO_N='-n';;
  25986. esac
  25987. # For backward compatibility with old third-party macros, we provide
  25988. # the shell variables $as_echo and $as_echo_n. New code should use
  25989. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  25990. as_echo='printf %s\n'
  25991. as_echo_n='printf %s'
  25992. rm -f conf$$ conf$$.exe conf$$.file
  25993. if test -d conf$$.dir; then
  25994. rm -f conf$$.dir/conf$$.file
  25995. else
  25996. rm -f conf$$.dir
  25997. mkdir conf$$.dir 2>/dev/null
  25998. fi
  25999. if (echo >conf$$.file) 2>/dev/null; then
  26000. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26001. as_ln_s='ln -s'
  26002. # ... but there are two gotchas:
  26003. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26004. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26005. # In both cases, we have to default to `cp -pR'.
  26006. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26007. as_ln_s='cp -pR'
  26008. elif ln conf$$.file conf$$ 2>/dev/null; then
  26009. as_ln_s=ln
  26010. else
  26011. as_ln_s='cp -pR'
  26012. fi
  26013. else
  26014. as_ln_s='cp -pR'
  26015. fi
  26016. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26017. rmdir conf$$.dir 2>/dev/null
  26018. # as_fn_mkdir_p
  26019. # -------------
  26020. # Create "$as_dir" as a directory, including parents if necessary.
  26021. as_fn_mkdir_p ()
  26022. {
  26023. case $as_dir in #(
  26024. -*) as_dir=./$as_dir;;
  26025. esac
  26026. test -d "$as_dir" || eval $as_mkdir_p || {
  26027. as_dirs=
  26028. while :; do
  26029. case $as_dir in #(
  26030. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26031. *) as_qdir=$as_dir;;
  26032. esac
  26033. as_dirs="'$as_qdir' $as_dirs"
  26034. as_dir=`$as_dirname -- "$as_dir" ||
  26035. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26036. X"$as_dir" : 'X\(//\)[^/]' \| \
  26037. X"$as_dir" : 'X\(//\)$' \| \
  26038. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26039. printf "%s\n" X"$as_dir" |
  26040. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26041. s//\1/
  26042. q
  26043. }
  26044. /^X\(\/\/\)[^/].*/{
  26045. s//\1/
  26046. q
  26047. }
  26048. /^X\(\/\/\)$/{
  26049. s//\1/
  26050. q
  26051. }
  26052. /^X\(\/\).*/{
  26053. s//\1/
  26054. q
  26055. }
  26056. s/.*/./; q'`
  26057. test -d "$as_dir" && break
  26058. done
  26059. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26060. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26061. } # as_fn_mkdir_p
  26062. if mkdir -p . 2>/dev/null; then
  26063. as_mkdir_p='mkdir -p "$as_dir"'
  26064. else
  26065. test -d ./-p && rmdir ./-p
  26066. as_mkdir_p=false
  26067. fi
  26068. # as_fn_executable_p FILE
  26069. # -----------------------
  26070. # Test if FILE is an executable regular file.
  26071. as_fn_executable_p ()
  26072. {
  26073. test -f "$1" && test -x "$1"
  26074. } # as_fn_executable_p
  26075. as_test_x='test -x'
  26076. as_executable_p=as_fn_executable_p
  26077. # Sed expression to map a string onto a valid CPP name.
  26078. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26079. # Sed expression to map a string onto a valid variable name.
  26080. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26081. exec 6>&1
  26082. ## ----------------------------------- ##
  26083. ## Main body of $CONFIG_STATUS script. ##
  26084. ## ----------------------------------- ##
  26085. _ASEOF
  26086. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26087. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26088. # Save the log message, to keep $0 and so on meaningful, and to
  26089. # report actual input values of CONFIG_FILES etc. instead of their
  26090. # values after options handling.
  26091. ac_log="
  26092. This file was extended by $as_me, which was
  26093. generated by GNU Autoconf 2.71. Invocation command line was
  26094. CONFIG_FILES = $CONFIG_FILES
  26095. CONFIG_HEADERS = $CONFIG_HEADERS
  26096. CONFIG_LINKS = $CONFIG_LINKS
  26097. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26098. $ $0 $@
  26099. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26100. "
  26101. _ACEOF
  26102. case $ac_config_files in *"
  26103. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26104. esac
  26105. case $ac_config_headers in *"
  26106. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26107. esac
  26108. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26109. # Files that config.status was made for.
  26110. config_files="$ac_config_files"
  26111. config_headers="$ac_config_headers"
  26112. config_commands="$ac_config_commands"
  26113. _ACEOF
  26114. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26115. ac_cs_usage="\
  26116. \`$as_me' instantiates files and other configuration actions
  26117. from templates according to the current configuration. Unless the files
  26118. and actions are specified as TAGs, all are instantiated by default.
  26119. Usage: $0 [OPTION]... [TAG]...
  26120. -h, --help print this help, then exit
  26121. -V, --version print version number and configuration settings, then exit
  26122. --config print configuration, then exit
  26123. -q, --quiet, --silent
  26124. do not print progress messages
  26125. -d, --debug don't remove temporary files
  26126. --recheck update $as_me by reconfiguring in the same conditions
  26127. --file=FILE[:TEMPLATE]
  26128. instantiate the configuration file FILE
  26129. --header=FILE[:TEMPLATE]
  26130. instantiate the configuration header FILE
  26131. Configuration files:
  26132. $config_files
  26133. Configuration headers:
  26134. $config_headers
  26135. Configuration commands:
  26136. $config_commands
  26137. Report bugs to the package provider."
  26138. _ACEOF
  26139. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26140. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26141. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26142. ac_cs_config='$ac_cs_config_escaped'
  26143. ac_cs_version="\\
  26144. config.status
  26145. configured by $0, generated by GNU Autoconf 2.71,
  26146. with options \\"\$ac_cs_config\\"
  26147. Copyright (C) 2021 Free Software Foundation, Inc.
  26148. This config.status script is free software; the Free Software Foundation
  26149. gives unlimited permission to copy, distribute and modify it."
  26150. ac_pwd='$ac_pwd'
  26151. srcdir='$srcdir'
  26152. INSTALL='$INSTALL'
  26153. AWK='$AWK'
  26154. test -n "\$AWK" || AWK=awk
  26155. _ACEOF
  26156. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26157. # The default lists apply if the user does not specify any file.
  26158. ac_need_defaults=:
  26159. while test $# != 0
  26160. do
  26161. case $1 in
  26162. --*=?*)
  26163. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26164. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26165. ac_shift=:
  26166. ;;
  26167. --*=)
  26168. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26169. ac_optarg=
  26170. ac_shift=:
  26171. ;;
  26172. *)
  26173. ac_option=$1
  26174. ac_optarg=$2
  26175. ac_shift=shift
  26176. ;;
  26177. esac
  26178. case $ac_option in
  26179. # Handling of the options.
  26180. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26181. ac_cs_recheck=: ;;
  26182. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26183. printf "%s\n" "$ac_cs_version"; exit ;;
  26184. --config | --confi | --conf | --con | --co | --c )
  26185. printf "%s\n" "$ac_cs_config"; exit ;;
  26186. --debug | --debu | --deb | --de | --d | -d )
  26187. debug=: ;;
  26188. --file | --fil | --fi | --f )
  26189. $ac_shift
  26190. case $ac_optarg in
  26191. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26192. '') as_fn_error $? "missing file argument" ;;
  26193. esac
  26194. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26195. ac_need_defaults=false;;
  26196. --header | --heade | --head | --hea )
  26197. $ac_shift
  26198. case $ac_optarg in
  26199. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26200. esac
  26201. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26202. ac_need_defaults=false;;
  26203. --he | --h)
  26204. # Conflict between --help and --header
  26205. as_fn_error $? "ambiguous option: \`$1'
  26206. Try \`$0 --help' for more information.";;
  26207. --help | --hel | -h )
  26208. printf "%s\n" "$ac_cs_usage"; exit ;;
  26209. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26210. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26211. ac_cs_silent=: ;;
  26212. # This is an error.
  26213. -*) as_fn_error $? "unrecognized option: \`$1'
  26214. Try \`$0 --help' for more information." ;;
  26215. *) as_fn_append ac_config_targets " $1"
  26216. ac_need_defaults=false ;;
  26217. esac
  26218. shift
  26219. done
  26220. ac_configure_extra_args=
  26221. if $ac_cs_silent; then
  26222. exec 6>/dev/null
  26223. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26224. fi
  26225. _ACEOF
  26226. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26227. if \$ac_cs_recheck; then
  26228. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26229. shift
  26230. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26231. CONFIG_SHELL='$SHELL'
  26232. export CONFIG_SHELL
  26233. exec "\$@"
  26234. fi
  26235. _ACEOF
  26236. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26237. exec 5>>config.log
  26238. {
  26239. echo
  26240. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26241. ## Running $as_me. ##
  26242. _ASBOX
  26243. printf "%s\n" "$ac_log"
  26244. } >&5
  26245. _ACEOF
  26246. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26247. #
  26248. # INIT-COMMANDS
  26249. #
  26250. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26251. # if CDPATH is set.
  26252. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26253. sed_quote_subst='$sed_quote_subst'
  26254. double_quote_subst='$double_quote_subst'
  26255. delay_variable_subst='$delay_variable_subst'
  26256. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26257. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26258. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26259. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26260. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26261. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26262. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26263. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26264. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26265. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26266. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26267. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26268. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26269. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26270. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26271. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26272. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26273. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26274. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26275. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26276. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26277. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26278. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26279. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26280. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26281. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26282. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26283. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26284. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26285. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26286. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26287. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26288. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26289. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26290. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26291. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26292. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26293. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26294. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26295. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26296. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26297. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26298. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26299. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26300. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26301. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26302. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26303. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26304. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26305. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26306. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26307. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26308. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26309. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26310. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26311. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26312. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26313. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26314. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26315. 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"`'
  26316. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26317. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26318. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26319. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26320. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26321. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26322. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26323. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26324. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26325. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26326. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26327. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26328. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26329. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26330. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26331. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26332. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26333. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26334. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26335. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26336. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26337. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26338. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26339. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26340. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26341. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26342. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26343. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26344. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26345. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26346. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26347. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26348. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26349. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26350. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26351. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26352. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26353. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26354. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26355. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26356. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26357. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26358. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26359. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26360. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26361. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26362. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26363. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26364. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26365. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26366. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26367. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26368. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26369. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26370. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26371. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26372. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26373. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26374. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26375. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26376. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26377. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26378. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26379. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26380. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26381. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26382. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26383. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26384. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26385. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26386. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26387. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26388. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26389. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26390. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26391. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26392. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26393. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26394. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26395. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26396. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26397. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26398. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26399. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26400. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26401. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26402. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26403. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26404. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26405. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26406. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26407. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26408. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26409. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26410. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26411. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26412. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26413. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26414. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26415. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26416. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26417. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26418. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26419. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26420. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26421. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26422. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26423. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26424. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26425. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26426. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26427. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26428. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26429. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26430. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26431. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26432. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26433. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26434. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26435. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26436. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26437. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26438. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26439. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26440. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26441. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26442. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26443. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26444. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26445. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26446. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26447. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26448. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26449. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26450. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26451. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26452. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26453. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26454. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26455. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26456. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26457. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26458. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26459. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26460. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26461. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26462. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26463. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26464. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26465. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26466. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26467. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26468. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26469. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26470. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26471. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26472. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26473. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26474. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26475. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26476. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26477. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26478. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26479. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26480. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26481. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26482. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26483. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26484. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26485. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26486. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26487. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26488. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26489. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26490. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26491. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26492. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26493. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26494. LTCC='$LTCC'
  26495. LTCFLAGS='$LTCFLAGS'
  26496. compiler='$compiler_DEFAULT'
  26497. # A function that is used when there is no print builtin or printf.
  26498. func_fallback_echo ()
  26499. {
  26500. eval 'cat <<_LTECHO_EOF
  26501. \$1
  26502. _LTECHO_EOF'
  26503. }
  26504. # Quote evaled strings.
  26505. for var in AS \
  26506. DLLTOOL \
  26507. OBJDUMP \
  26508. SHELL \
  26509. ECHO \
  26510. PATH_SEPARATOR \
  26511. SED \
  26512. GREP \
  26513. EGREP \
  26514. FGREP \
  26515. LD \
  26516. NM \
  26517. LN_S \
  26518. lt_SP2NL \
  26519. lt_NL2SP \
  26520. reload_flag \
  26521. deplibs_check_method \
  26522. file_magic_cmd \
  26523. file_magic_glob \
  26524. want_nocaseglob \
  26525. sharedlib_from_linklib_cmd \
  26526. AR \
  26527. AR_FLAGS \
  26528. archiver_list_spec \
  26529. STRIP \
  26530. RANLIB \
  26531. CC \
  26532. CFLAGS \
  26533. compiler \
  26534. lt_cv_sys_global_symbol_pipe \
  26535. lt_cv_sys_global_symbol_to_cdecl \
  26536. lt_cv_sys_global_symbol_to_import \
  26537. lt_cv_sys_global_symbol_to_c_name_address \
  26538. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26539. lt_cv_nm_interface \
  26540. nm_file_list_spec \
  26541. lt_cv_truncate_bin \
  26542. lt_prog_compiler_no_builtin_flag \
  26543. lt_prog_compiler_pic \
  26544. lt_prog_compiler_wl \
  26545. lt_prog_compiler_static \
  26546. lt_cv_prog_compiler_c_o \
  26547. need_locks \
  26548. MANIFEST_TOOL \
  26549. DSYMUTIL \
  26550. NMEDIT \
  26551. LIPO \
  26552. OTOOL \
  26553. OTOOL64 \
  26554. shrext_cmds \
  26555. export_dynamic_flag_spec \
  26556. whole_archive_flag_spec \
  26557. compiler_needs_object \
  26558. with_gnu_ld \
  26559. allow_undefined_flag \
  26560. no_undefined_flag \
  26561. hardcode_libdir_flag_spec \
  26562. hardcode_libdir_separator \
  26563. exclude_expsyms \
  26564. include_expsyms \
  26565. file_list_spec \
  26566. variables_saved_for_relink \
  26567. libname_spec \
  26568. library_names_spec \
  26569. soname_spec \
  26570. install_override_mode \
  26571. finish_eval \
  26572. old_striplib \
  26573. striplib \
  26574. compiler_lib_search_dirs \
  26575. predep_objects \
  26576. postdep_objects \
  26577. predeps \
  26578. postdeps \
  26579. compiler_lib_search_path \
  26580. LD_RC \
  26581. LD_CXX \
  26582. reload_flag_RC \
  26583. reload_flag_CXX \
  26584. compiler_RC \
  26585. compiler_CXX \
  26586. lt_prog_compiler_no_builtin_flag_RC \
  26587. lt_prog_compiler_no_builtin_flag_CXX \
  26588. lt_prog_compiler_pic_RC \
  26589. lt_prog_compiler_pic_CXX \
  26590. lt_prog_compiler_wl_RC \
  26591. lt_prog_compiler_wl_CXX \
  26592. lt_prog_compiler_static_RC \
  26593. lt_prog_compiler_static_CXX \
  26594. lt_cv_prog_compiler_c_o_RC \
  26595. lt_cv_prog_compiler_c_o_CXX \
  26596. export_dynamic_flag_spec_RC \
  26597. export_dynamic_flag_spec_CXX \
  26598. whole_archive_flag_spec_RC \
  26599. whole_archive_flag_spec_CXX \
  26600. compiler_needs_object_RC \
  26601. compiler_needs_object_CXX \
  26602. with_gnu_ld_RC \
  26603. with_gnu_ld_CXX \
  26604. allow_undefined_flag_RC \
  26605. allow_undefined_flag_CXX \
  26606. no_undefined_flag_RC \
  26607. no_undefined_flag_CXX \
  26608. hardcode_libdir_flag_spec_RC \
  26609. hardcode_libdir_flag_spec_CXX \
  26610. hardcode_libdir_separator_RC \
  26611. hardcode_libdir_separator_CXX \
  26612. exclude_expsyms_RC \
  26613. exclude_expsyms_CXX \
  26614. include_expsyms_RC \
  26615. include_expsyms_CXX \
  26616. file_list_spec_RC \
  26617. file_list_spec_CXX \
  26618. compiler_lib_search_dirs_RC \
  26619. compiler_lib_search_dirs_CXX \
  26620. predep_objects_RC \
  26621. predep_objects_CXX \
  26622. postdep_objects_RC \
  26623. postdep_objects_CXX \
  26624. predeps_RC \
  26625. predeps_CXX \
  26626. postdeps_RC \
  26627. postdeps_CXX \
  26628. compiler_lib_search_path_RC \
  26629. compiler_lib_search_path_CXX; do
  26630. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26631. *[\\\\\\\`\\"\\\$]*)
  26632. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26633. ;;
  26634. *)
  26635. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26636. ;;
  26637. esac
  26638. done
  26639. # Double-quote double-evaled strings.
  26640. for var in reload_cmds \
  26641. old_postinstall_cmds \
  26642. old_postuninstall_cmds \
  26643. old_archive_cmds \
  26644. extract_expsyms_cmds \
  26645. old_archive_from_new_cmds \
  26646. old_archive_from_expsyms_cmds \
  26647. archive_cmds \
  26648. archive_expsym_cmds \
  26649. module_cmds \
  26650. module_expsym_cmds \
  26651. export_symbols_cmds \
  26652. prelink_cmds \
  26653. postlink_cmds \
  26654. postinstall_cmds \
  26655. postuninstall_cmds \
  26656. finish_cmds \
  26657. sys_lib_search_path_spec \
  26658. configure_time_dlsearch_path \
  26659. configure_time_lt_sys_library_path \
  26660. reload_cmds_RC \
  26661. reload_cmds_CXX \
  26662. old_archive_cmds_RC \
  26663. old_archive_cmds_CXX \
  26664. old_archive_from_new_cmds_RC \
  26665. old_archive_from_new_cmds_CXX \
  26666. old_archive_from_expsyms_cmds_RC \
  26667. old_archive_from_expsyms_cmds_CXX \
  26668. archive_cmds_RC \
  26669. archive_cmds_CXX \
  26670. archive_expsym_cmds_RC \
  26671. archive_expsym_cmds_CXX \
  26672. module_cmds_RC \
  26673. module_cmds_CXX \
  26674. module_expsym_cmds_RC \
  26675. module_expsym_cmds_CXX \
  26676. export_symbols_cmds_RC \
  26677. export_symbols_cmds_CXX \
  26678. prelink_cmds_RC \
  26679. prelink_cmds_CXX \
  26680. postlink_cmds_RC \
  26681. postlink_cmds_CXX; do
  26682. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26683. *[\\\\\\\`\\"\\\$]*)
  26684. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26685. ;;
  26686. *)
  26687. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26688. ;;
  26689. esac
  26690. done
  26691. ac_aux_dir='$ac_aux_dir'
  26692. # See if we are running on zsh, and set the options that allow our
  26693. # commands through without removal of \ escapes INIT.
  26694. if test -n "\${ZSH_VERSION+set}"; then
  26695. setopt NO_GLOB_SUBST
  26696. fi
  26697. PACKAGE='$PACKAGE'
  26698. VERSION='$VERSION'
  26699. RM='$RM'
  26700. ofile='$ofile'
  26701. SUMMARY="$SUMMARY"
  26702. _ACEOF
  26703. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26704. # Handling of arguments.
  26705. for ac_config_target in $ac_config_targets
  26706. do
  26707. case $ac_config_target in
  26708. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  26709. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26710. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  26711. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  26712. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  26713. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  26714. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  26715. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  26716. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  26717. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  26718. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  26719. esac
  26720. done
  26721. # If the user did not use the arguments to specify the items to instantiate,
  26722. # then the envvar interface is used. Set only those that are not.
  26723. # We use the long form for the default assignment because of an extremely
  26724. # bizarre bug on SunOS 4.1.3.
  26725. if $ac_need_defaults; then
  26726. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  26727. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  26728. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  26729. fi
  26730. # Have a temporary directory for convenience. Make it in the build tree
  26731. # simply because there is no reason against having it here, and in addition,
  26732. # creating and moving files from /tmp can sometimes cause problems.
  26733. # Hook for its removal unless debugging.
  26734. # Note that there is a small window in which the directory will not be cleaned:
  26735. # after its creation but before its name has been assigned to `$tmp'.
  26736. $debug ||
  26737. {
  26738. tmp= ac_tmp=
  26739. trap 'exit_status=$?
  26740. : "${ac_tmp:=$tmp}"
  26741. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  26742. ' 0
  26743. trap 'as_fn_exit 1' 1 2 13 15
  26744. }
  26745. # Create a (secure) tmp directory for tmp files.
  26746. {
  26747. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26748. test -d "$tmp"
  26749. } ||
  26750. {
  26751. tmp=./conf$$-$RANDOM
  26752. (umask 077 && mkdir "$tmp")
  26753. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  26754. ac_tmp=$tmp
  26755. # Set up the scripts for CONFIG_FILES section.
  26756. # No need to generate them if there are no CONFIG_FILES.
  26757. # This happens for instance with `./config.status config.h'.
  26758. if test -n "$CONFIG_FILES"; then
  26759. ac_cr=`echo X | tr X '\015'`
  26760. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  26761. # But we know of no other shell where ac_cr would be empty at this
  26762. # point, so we can use a bashism as a fallback.
  26763. if test "x$ac_cr" = x; then
  26764. eval ac_cr=\$\'\\r\'
  26765. fi
  26766. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26767. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26768. ac_cs_awk_cr='\\r'
  26769. else
  26770. ac_cs_awk_cr=$ac_cr
  26771. fi
  26772. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  26773. _ACEOF
  26774. {
  26775. echo "cat >conf$$subs.awk <<_ACEOF" &&
  26776. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26777. echo "_ACEOF"
  26778. } >conf$$subs.sh ||
  26779. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26780. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  26781. ac_delim='%!_!# '
  26782. for ac_last_try in false false false false false :; do
  26783. . ./conf$$subs.sh ||
  26784. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26785. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26786. if test $ac_delim_n = $ac_delim_num; then
  26787. break
  26788. elif $ac_last_try; then
  26789. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26790. else
  26791. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26792. fi
  26793. done
  26794. rm -f conf$$subs.sh
  26795. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26796. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  26797. _ACEOF
  26798. sed -n '
  26799. h
  26800. s/^/S["/; s/!.*/"]=/
  26801. p
  26802. g
  26803. s/^[^!]*!//
  26804. :repl
  26805. t repl
  26806. s/'"$ac_delim"'$//
  26807. t delim
  26808. :nl
  26809. h
  26810. s/\(.\{148\}\)..*/\1/
  26811. t more1
  26812. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  26813. p
  26814. n
  26815. b repl
  26816. :more1
  26817. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26818. p
  26819. g
  26820. s/.\{148\}//
  26821. t nl
  26822. :delim
  26823. h
  26824. s/\(.\{148\}\)..*/\1/
  26825. t more2
  26826. s/["\\]/\\&/g; s/^/"/; s/$/"/
  26827. p
  26828. b
  26829. :more2
  26830. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26831. p
  26832. g
  26833. s/.\{148\}//
  26834. t delim
  26835. ' <conf$$subs.awk | sed '
  26836. /^[^""]/{
  26837. N
  26838. s/\n//
  26839. }
  26840. ' >>$CONFIG_STATUS || ac_write_fail=1
  26841. rm -f conf$$subs.awk
  26842. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26843. _ACAWK
  26844. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  26845. for (key in S) S_is_set[key] = 1
  26846. FS = ""
  26847. }
  26848. {
  26849. line = $ 0
  26850. nfields = split(line, field, "@")
  26851. substed = 0
  26852. len = length(field[1])
  26853. for (i = 2; i < nfields; i++) {
  26854. key = field[i]
  26855. keylen = length(key)
  26856. if (S_is_set[key]) {
  26857. value = S[key]
  26858. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  26859. len += length(value) + length(field[++i])
  26860. substed = 1
  26861. } else
  26862. len += 1 + keylen
  26863. }
  26864. print line
  26865. }
  26866. _ACAWK
  26867. _ACEOF
  26868. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26869. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  26870. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  26871. else
  26872. cat
  26873. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  26874. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  26875. _ACEOF
  26876. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  26877. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  26878. # trailing colons and then remove the whole line if VPATH becomes empty
  26879. # (actually we leave an empty line to preserve line numbers).
  26880. if test "x$srcdir" = x.; then
  26881. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  26882. h
  26883. s///
  26884. s/^/:/
  26885. s/[ ]*$/:/
  26886. s/:\$(srcdir):/:/g
  26887. s/:\${srcdir}:/:/g
  26888. s/:@srcdir@:/:/g
  26889. s/^:*//
  26890. s/:*$//
  26891. x
  26892. s/\(=[ ]*\).*/\1/
  26893. G
  26894. s/\n//
  26895. s/^[^=]*=[ ]*$//
  26896. }'
  26897. fi
  26898. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26899. fi # test -n "$CONFIG_FILES"
  26900. # Set up the scripts for CONFIG_HEADERS section.
  26901. # No need to generate them if there are no CONFIG_HEADERS.
  26902. # This happens for instance with `./config.status Makefile'.
  26903. if test -n "$CONFIG_HEADERS"; then
  26904. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  26905. BEGIN {
  26906. _ACEOF
  26907. # Transform confdefs.h into an awk script `defines.awk', embedded as
  26908. # here-document in config.status, that substitutes the proper values into
  26909. # config.h.in to produce config.h.
  26910. # Create a delimiter string that does not exist in confdefs.h, to ease
  26911. # handling of long lines.
  26912. ac_delim='%!_!# '
  26913. for ac_last_try in false false :; do
  26914. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  26915. if test -z "$ac_tt"; then
  26916. break
  26917. elif $ac_last_try; then
  26918. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  26919. else
  26920. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26921. fi
  26922. done
  26923. # For the awk script, D is an array of macro values keyed by name,
  26924. # likewise P contains macro parameters if any. Preserve backslash
  26925. # newline sequences.
  26926. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  26927. sed -n '
  26928. s/.\{148\}/&'"$ac_delim"'/g
  26929. t rset
  26930. :rset
  26931. s/^[ ]*#[ ]*define[ ][ ]*/ /
  26932. t def
  26933. d
  26934. :def
  26935. s/\\$//
  26936. t bsnl
  26937. s/["\\]/\\&/g
  26938. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26939. D["\1"]=" \3"/p
  26940. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  26941. d
  26942. :bsnl
  26943. s/["\\]/\\&/g
  26944. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26945. D["\1"]=" \3\\\\\\n"\\/p
  26946. t cont
  26947. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  26948. t cont
  26949. d
  26950. :cont
  26951. n
  26952. s/.\{148\}/&'"$ac_delim"'/g
  26953. t clear
  26954. :clear
  26955. s/\\$//
  26956. t bsnlc
  26957. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  26958. d
  26959. :bsnlc
  26960. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  26961. b cont
  26962. ' <confdefs.h | sed '
  26963. s/'"$ac_delim"'/"\\\
  26964. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  26965. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26966. for (key in D) D_is_set[key] = 1
  26967. FS = ""
  26968. }
  26969. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  26970. line = \$ 0
  26971. split(line, arg, " ")
  26972. if (arg[1] == "#") {
  26973. defundef = arg[2]
  26974. mac1 = arg[3]
  26975. } else {
  26976. defundef = substr(arg[1], 2)
  26977. mac1 = arg[2]
  26978. }
  26979. split(mac1, mac2, "(") #)
  26980. macro = mac2[1]
  26981. prefix = substr(line, 1, index(line, defundef) - 1)
  26982. if (D_is_set[macro]) {
  26983. # Preserve the white space surrounding the "#".
  26984. print prefix "define", macro P[macro] D[macro]
  26985. next
  26986. } else {
  26987. # Replace #undef with comments. This is necessary, for example,
  26988. # in the case of _POSIX_SOURCE, which is predefined and required
  26989. # on some systems where configure will not decide to define it.
  26990. if (defundef == "undef") {
  26991. print "/*", prefix defundef, macro, "*/"
  26992. next
  26993. }
  26994. }
  26995. }
  26996. { print }
  26997. _ACAWK
  26998. _ACEOF
  26999. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27000. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27001. fi # test -n "$CONFIG_HEADERS"
  27002. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27003. shift
  27004. for ac_tag
  27005. do
  27006. case $ac_tag in
  27007. :[FHLC]) ac_mode=$ac_tag; continue;;
  27008. esac
  27009. case $ac_mode$ac_tag in
  27010. :[FHL]*:*);;
  27011. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27012. :[FH]-) ac_tag=-:-;;
  27013. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27014. esac
  27015. ac_save_IFS=$IFS
  27016. IFS=:
  27017. set x $ac_tag
  27018. IFS=$ac_save_IFS
  27019. shift
  27020. ac_file=$1
  27021. shift
  27022. case $ac_mode in
  27023. :L) ac_source=$1;;
  27024. :[FH])
  27025. ac_file_inputs=
  27026. for ac_f
  27027. do
  27028. case $ac_f in
  27029. -) ac_f="$ac_tmp/stdin";;
  27030. *) # Look for the file first in the build tree, then in the source tree
  27031. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27032. # because $ac_f cannot contain `:'.
  27033. test -f "$ac_f" ||
  27034. case $ac_f in
  27035. [\\/$]*) false;;
  27036. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27037. esac ||
  27038. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27039. esac
  27040. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27041. as_fn_append ac_file_inputs " '$ac_f'"
  27042. done
  27043. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27044. # use $as_me), people would be surprised to read:
  27045. # /* config.h. Generated by config.status. */
  27046. configure_input='Generated from '`
  27047. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27048. `' by configure.'
  27049. if test x"$ac_file" != x-; then
  27050. configure_input="$ac_file. $configure_input"
  27051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27052. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27053. fi
  27054. # Neutralize special characters interpreted by sed in replacement strings.
  27055. case $configure_input in #(
  27056. *\&* | *\|* | *\\* )
  27057. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27058. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27059. *) ac_sed_conf_input=$configure_input;;
  27060. esac
  27061. case $ac_tag in
  27062. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27063. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27064. esac
  27065. ;;
  27066. esac
  27067. ac_dir=`$as_dirname -- "$ac_file" ||
  27068. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27069. X"$ac_file" : 'X\(//\)[^/]' \| \
  27070. X"$ac_file" : 'X\(//\)$' \| \
  27071. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27072. printf "%s\n" X"$ac_file" |
  27073. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27074. s//\1/
  27075. q
  27076. }
  27077. /^X\(\/\/\)[^/].*/{
  27078. s//\1/
  27079. q
  27080. }
  27081. /^X\(\/\/\)$/{
  27082. s//\1/
  27083. q
  27084. }
  27085. /^X\(\/\).*/{
  27086. s//\1/
  27087. q
  27088. }
  27089. s/.*/./; q'`
  27090. as_dir="$ac_dir"; as_fn_mkdir_p
  27091. ac_builddir=.
  27092. case "$ac_dir" in
  27093. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27094. *)
  27095. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27096. # A ".." for each directory in $ac_dir_suffix.
  27097. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27098. case $ac_top_builddir_sub in
  27099. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27100. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27101. esac ;;
  27102. esac
  27103. ac_abs_top_builddir=$ac_pwd
  27104. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27105. # for backward compatibility:
  27106. ac_top_builddir=$ac_top_build_prefix
  27107. case $srcdir in
  27108. .) # We are building in place.
  27109. ac_srcdir=.
  27110. ac_top_srcdir=$ac_top_builddir_sub
  27111. ac_abs_top_srcdir=$ac_pwd ;;
  27112. [\\/]* | ?:[\\/]* ) # Absolute name.
  27113. ac_srcdir=$srcdir$ac_dir_suffix;
  27114. ac_top_srcdir=$srcdir
  27115. ac_abs_top_srcdir=$srcdir ;;
  27116. *) # Relative name.
  27117. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27118. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27119. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27120. esac
  27121. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27122. case $ac_mode in
  27123. :F)
  27124. #
  27125. # CONFIG_FILE
  27126. #
  27127. case $INSTALL in
  27128. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27129. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27130. esac
  27131. _ACEOF
  27132. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27133. # If the template does not know about datarootdir, expand it.
  27134. # FIXME: This hack should be removed a few years after 2.60.
  27135. ac_datarootdir_hack=; ac_datarootdir_seen=
  27136. ac_sed_dataroot='
  27137. /datarootdir/ {
  27138. p
  27139. q
  27140. }
  27141. /@datadir@/p
  27142. /@docdir@/p
  27143. /@infodir@/p
  27144. /@localedir@/p
  27145. /@mandir@/p'
  27146. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27147. *datarootdir*) ac_datarootdir_seen=yes;;
  27148. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27150. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27151. _ACEOF
  27152. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27153. ac_datarootdir_hack='
  27154. s&@datadir@&$datadir&g
  27155. s&@docdir@&$docdir&g
  27156. s&@infodir@&$infodir&g
  27157. s&@localedir@&$localedir&g
  27158. s&@mandir@&$mandir&g
  27159. s&\\\${datarootdir}&$datarootdir&g' ;;
  27160. esac
  27161. _ACEOF
  27162. # Neutralize VPATH when `$srcdir' = `.'.
  27163. # Shell code in configure.ac might set extrasub.
  27164. # FIXME: do we really want to maintain this feature?
  27165. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27166. ac_sed_extra="$ac_vpsub
  27167. $extrasub
  27168. _ACEOF
  27169. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27170. :t
  27171. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27172. s|@configure_input@|$ac_sed_conf_input|;t t
  27173. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27174. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27175. s&@srcdir@&$ac_srcdir&;t t
  27176. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27177. s&@top_srcdir@&$ac_top_srcdir&;t t
  27178. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27179. s&@builddir@&$ac_builddir&;t t
  27180. s&@abs_builddir@&$ac_abs_builddir&;t t
  27181. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27182. s&@INSTALL@&$ac_INSTALL&;t t
  27183. $ac_datarootdir_hack
  27184. "
  27185. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27186. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27187. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27188. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27189. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27190. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27192. which seems to be undefined. Please make sure it is defined" >&5
  27193. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27194. which seems to be undefined. Please make sure it is defined" >&2;}
  27195. rm -f "$ac_tmp/stdin"
  27196. case $ac_file in
  27197. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27198. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27199. esac \
  27200. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27201. ;;
  27202. :H)
  27203. #
  27204. # CONFIG_HEADER
  27205. #
  27206. if test x"$ac_file" != x-; then
  27207. {
  27208. printf "%s\n" "/* $configure_input */" >&1 \
  27209. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27210. } >"$ac_tmp/config.h" \
  27211. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27212. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27214. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27215. else
  27216. rm -f "$ac_file"
  27217. mv "$ac_tmp/config.h" "$ac_file" \
  27218. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27219. fi
  27220. else
  27221. printf "%s\n" "/* $configure_input */" >&1 \
  27222. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27223. || as_fn_error $? "could not create -" "$LINENO" 5
  27224. fi
  27225. ;;
  27226. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27227. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27228. ;;
  27229. esac
  27230. case $ac_file$ac_mode in
  27231. "libtool":C)
  27232. # See if we are running on zsh, and set the options that allow our
  27233. # commands through without removal of \ escapes.
  27234. if test -n "${ZSH_VERSION+set}"; then
  27235. setopt NO_GLOB_SUBST
  27236. fi
  27237. cfgfile=${ofile}T
  27238. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27239. $RM "$cfgfile"
  27240. cat <<_LT_EOF >> "$cfgfile"
  27241. #! $SHELL
  27242. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27243. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27244. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27245. # Provide generalized library-building support services.
  27246. # Written by Gordon Matzigkeit, 1996
  27247. # Copyright (C) 2014 Free Software Foundation, Inc.
  27248. # This is free software; see the source for copying conditions. There is NO
  27249. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27250. # GNU Libtool is free software; you can redistribute it and/or modify
  27251. # it under the terms of the GNU General Public License as published by
  27252. # the Free Software Foundation; either version 2 of of the License, or
  27253. # (at your option) any later version.
  27254. #
  27255. # As a special exception to the GNU General Public License, if you
  27256. # distribute this file as part of a program or library that is built
  27257. # using GNU Libtool, you may include this file under the same
  27258. # distribution terms that you use for the rest of that program.
  27259. #
  27260. # GNU Libtool is distributed in the hope that it will be useful, but
  27261. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27262. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27263. # GNU General Public License for more details.
  27264. #
  27265. # You should have received a copy of the GNU General Public License
  27266. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27267. # The names of the tagged configurations supported by this script.
  27268. available_tags='RC CXX '
  27269. # Configured defaults for sys_lib_dlsearch_path munging.
  27270. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27271. # ### BEGIN LIBTOOL CONFIG
  27272. # Which release of libtool.m4 was used?
  27273. macro_version=$macro_version
  27274. macro_revision=$macro_revision
  27275. # Assembler program.
  27276. AS=$lt_AS
  27277. # DLL creation program.
  27278. DLLTOOL=$lt_DLLTOOL
  27279. # Object dumper program.
  27280. OBJDUMP=$lt_OBJDUMP
  27281. # Whether or not to build shared libraries.
  27282. build_libtool_libs=$enable_shared
  27283. # Whether or not to build static libraries.
  27284. build_old_libs=$enable_static
  27285. # What type of objects to build.
  27286. pic_mode=$pic_mode
  27287. # Whether or not to optimize for fast installation.
  27288. fast_install=$enable_fast_install
  27289. # Shared archive member basename,for filename based shared library versioning on AIX.
  27290. shared_archive_member_spec=$shared_archive_member_spec
  27291. # Shell to use when invoking shell scripts.
  27292. SHELL=$lt_SHELL
  27293. # An echo program that protects backslashes.
  27294. ECHO=$lt_ECHO
  27295. # The PATH separator for the build system.
  27296. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27297. # The host system.
  27298. host_alias=$host_alias
  27299. host=$host
  27300. host_os=$host_os
  27301. # The build system.
  27302. build_alias=$build_alias
  27303. build=$build
  27304. build_os=$build_os
  27305. # A sed program that does not truncate output.
  27306. SED=$lt_SED
  27307. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27308. Xsed="\$SED -e 1s/^X//"
  27309. # A grep program that handles long lines.
  27310. GREP=$lt_GREP
  27311. # An ERE matcher.
  27312. EGREP=$lt_EGREP
  27313. # A literal string matcher.
  27314. FGREP=$lt_FGREP
  27315. # A BSD- or MS-compatible name lister.
  27316. NM=$lt_NM
  27317. # Whether we need soft or hard links.
  27318. LN_S=$lt_LN_S
  27319. # What is the maximum length of a command?
  27320. max_cmd_len=$max_cmd_len
  27321. # Object file suffix (normally "o").
  27322. objext=$ac_objext
  27323. # Executable file suffix (normally "").
  27324. exeext=$exeext
  27325. # whether the shell understands "unset".
  27326. lt_unset=$lt_unset
  27327. # turn spaces into newlines.
  27328. SP2NL=$lt_lt_SP2NL
  27329. # turn newlines into spaces.
  27330. NL2SP=$lt_lt_NL2SP
  27331. # convert \$build file names to \$host format.
  27332. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27333. # convert \$build files to toolchain format.
  27334. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27335. # Method to check whether dependent libraries are shared objects.
  27336. deplibs_check_method=$lt_deplibs_check_method
  27337. # Command to use when deplibs_check_method = "file_magic".
  27338. file_magic_cmd=$lt_file_magic_cmd
  27339. # How to find potential files when deplibs_check_method = "file_magic".
  27340. file_magic_glob=$lt_file_magic_glob
  27341. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27342. want_nocaseglob=$lt_want_nocaseglob
  27343. # Command to associate shared and link libraries.
  27344. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27345. # The archiver.
  27346. AR=$lt_AR
  27347. # Flags to create an archive.
  27348. AR_FLAGS=$lt_AR_FLAGS
  27349. # How to feed a file listing to the archiver.
  27350. archiver_list_spec=$lt_archiver_list_spec
  27351. # A symbol stripping program.
  27352. STRIP=$lt_STRIP
  27353. # Commands used to install an old-style archive.
  27354. RANLIB=$lt_RANLIB
  27355. old_postinstall_cmds=$lt_old_postinstall_cmds
  27356. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27357. # Whether to use a lock for old archive extraction.
  27358. lock_old_archive_extraction=$lock_old_archive_extraction
  27359. # A C compiler.
  27360. LTCC=$lt_CC
  27361. # LTCC compiler flags.
  27362. LTCFLAGS=$lt_CFLAGS
  27363. # Take the output of nm and produce a listing of raw symbols and C names.
  27364. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27365. # Transform the output of nm in a proper C declaration.
  27366. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27367. # Transform the output of nm into a list of symbols to manually relocate.
  27368. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27369. # Transform the output of nm in a C name address pair.
  27370. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27371. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27372. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27373. # The name lister interface.
  27374. nm_interface=$lt_lt_cv_nm_interface
  27375. # Specify filename containing input files for \$NM.
  27376. nm_file_list_spec=$lt_nm_file_list_spec
  27377. # The root where to search for dependent libraries,and where our libraries should be installed.
  27378. lt_sysroot=$lt_sysroot
  27379. # Command to truncate a binary pipe.
  27380. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27381. # The name of the directory that contains temporary libtool files.
  27382. objdir=$objdir
  27383. # Used to examine libraries when file_magic_cmd begins with "file".
  27384. MAGIC_CMD=$MAGIC_CMD
  27385. # Must we lock files when doing compilation?
  27386. need_locks=$lt_need_locks
  27387. # Manifest tool.
  27388. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27389. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27390. DSYMUTIL=$lt_DSYMUTIL
  27391. # Tool to change global to local symbols on Mac OS X.
  27392. NMEDIT=$lt_NMEDIT
  27393. # Tool to manipulate fat objects and archives on Mac OS X.
  27394. LIPO=$lt_LIPO
  27395. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27396. OTOOL=$lt_OTOOL
  27397. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27398. OTOOL64=$lt_OTOOL64
  27399. # Old archive suffix (normally "a").
  27400. libext=$libext
  27401. # Shared library suffix (normally ".so").
  27402. shrext_cmds=$lt_shrext_cmds
  27403. # The commands to extract the exported symbol list from a shared archive.
  27404. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27405. # Variables whose values should be saved in libtool wrapper scripts and
  27406. # restored at link time.
  27407. variables_saved_for_relink=$lt_variables_saved_for_relink
  27408. # Do we need the "lib" prefix for modules?
  27409. need_lib_prefix=$need_lib_prefix
  27410. # Do we need a version for libraries?
  27411. need_version=$need_version
  27412. # Library versioning type.
  27413. version_type=$version_type
  27414. # Shared library runtime path variable.
  27415. runpath_var=$runpath_var
  27416. # Shared library path variable.
  27417. shlibpath_var=$shlibpath_var
  27418. # Is shlibpath searched before the hard-coded library search path?
  27419. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27420. # Format of library name prefix.
  27421. libname_spec=$lt_libname_spec
  27422. # List of archive names. First name is the real one, the rest are links.
  27423. # The last name is the one that the linker finds with -lNAME
  27424. library_names_spec=$lt_library_names_spec
  27425. # The coded name of the library, if different from the real name.
  27426. soname_spec=$lt_soname_spec
  27427. # Permission mode override for installation of shared libraries.
  27428. install_override_mode=$lt_install_override_mode
  27429. # Command to use after installation of a shared archive.
  27430. postinstall_cmds=$lt_postinstall_cmds
  27431. # Command to use after uninstallation of a shared archive.
  27432. postuninstall_cmds=$lt_postuninstall_cmds
  27433. # Commands used to finish a libtool library installation in a directory.
  27434. finish_cmds=$lt_finish_cmds
  27435. # As "finish_cmds", except a single script fragment to be evaled but
  27436. # not shown.
  27437. finish_eval=$lt_finish_eval
  27438. # Whether we should hardcode library paths into libraries.
  27439. hardcode_into_libs=$hardcode_into_libs
  27440. # Compile-time system search path for libraries.
  27441. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27442. # Detected run-time system search path for libraries.
  27443. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27444. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27445. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27446. # Whether dlopen is supported.
  27447. dlopen_support=$enable_dlopen
  27448. # Whether dlopen of programs is supported.
  27449. dlopen_self=$enable_dlopen_self
  27450. # Whether dlopen of statically linked programs is supported.
  27451. dlopen_self_static=$enable_dlopen_self_static
  27452. # Commands to strip libraries.
  27453. old_striplib=$lt_old_striplib
  27454. striplib=$lt_striplib
  27455. # The linker used to build libraries.
  27456. LD=$lt_LD
  27457. # How to create reloadable object files.
  27458. reload_flag=$lt_reload_flag
  27459. reload_cmds=$lt_reload_cmds
  27460. # Commands used to build an old-style archive.
  27461. old_archive_cmds=$lt_old_archive_cmds
  27462. # A language specific compiler.
  27463. CC=$lt_compiler
  27464. # Is the compiler the GNU compiler?
  27465. with_gcc=$GCC
  27466. # Compiler flag to turn off builtin functions.
  27467. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27468. # Additional compiler flags for building library objects.
  27469. pic_flag=$lt_lt_prog_compiler_pic
  27470. # How to pass a linker flag through the compiler.
  27471. wl=$lt_lt_prog_compiler_wl
  27472. # Compiler flag to prevent dynamic linking.
  27473. link_static_flag=$lt_lt_prog_compiler_static
  27474. # Does compiler simultaneously support -c and -o options?
  27475. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27476. # Whether or not to add -lc for building shared libraries.
  27477. build_libtool_need_lc=$archive_cmds_need_lc
  27478. # Whether or not to disallow shared libs when runtime libs are static.
  27479. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27480. # Compiler flag to allow reflexive dlopens.
  27481. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27482. # Compiler flag to generate shared objects directly from archives.
  27483. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27484. # Whether the compiler copes with passing no objects directly.
  27485. compiler_needs_object=$lt_compiler_needs_object
  27486. # Create an old-style archive from a shared archive.
  27487. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27488. # Create a temporary old-style archive to link instead of a shared archive.
  27489. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27490. # Commands used to build a shared archive.
  27491. archive_cmds=$lt_archive_cmds
  27492. archive_expsym_cmds=$lt_archive_expsym_cmds
  27493. # Commands used to build a loadable module if different from building
  27494. # a shared archive.
  27495. module_cmds=$lt_module_cmds
  27496. module_expsym_cmds=$lt_module_expsym_cmds
  27497. # Whether we are building with GNU ld or not.
  27498. with_gnu_ld=$lt_with_gnu_ld
  27499. # Flag that allows shared libraries with undefined symbols to be built.
  27500. allow_undefined_flag=$lt_allow_undefined_flag
  27501. # Flag that enforces no undefined symbols.
  27502. no_undefined_flag=$lt_no_undefined_flag
  27503. # Flag to hardcode \$libdir into a binary during linking.
  27504. # This must work even if \$libdir does not exist
  27505. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27506. # Whether we need a single "-rpath" flag with a separated argument.
  27507. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27508. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27509. # DIR into the resulting binary.
  27510. hardcode_direct=$hardcode_direct
  27511. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27512. # DIR into the resulting binary and the resulting library dependency is
  27513. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27514. # library is relocated.
  27515. hardcode_direct_absolute=$hardcode_direct_absolute
  27516. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27517. # into the resulting binary.
  27518. hardcode_minus_L=$hardcode_minus_L
  27519. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27520. # into the resulting binary.
  27521. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27522. # Set to "yes" if building a shared library automatically hardcodes DIR
  27523. # into the library and all subsequent libraries and executables linked
  27524. # against it.
  27525. hardcode_automatic=$hardcode_automatic
  27526. # Set to yes if linker adds runtime paths of dependent libraries
  27527. # to runtime path list.
  27528. inherit_rpath=$inherit_rpath
  27529. # Whether libtool must link a program against all its dependency libraries.
  27530. link_all_deplibs=$link_all_deplibs
  27531. # Set to "yes" if exported symbols are required.
  27532. always_export_symbols=$always_export_symbols
  27533. # The commands to list exported symbols.
  27534. export_symbols_cmds=$lt_export_symbols_cmds
  27535. # Symbols that should not be listed in the preloaded symbols.
  27536. exclude_expsyms=$lt_exclude_expsyms
  27537. # Symbols that must always be exported.
  27538. include_expsyms=$lt_include_expsyms
  27539. # Commands necessary for linking programs (against libraries) with templates.
  27540. prelink_cmds=$lt_prelink_cmds
  27541. # Commands necessary for finishing linking programs.
  27542. postlink_cmds=$lt_postlink_cmds
  27543. # Specify filename containing input files.
  27544. file_list_spec=$lt_file_list_spec
  27545. # How to hardcode a shared library path into an executable.
  27546. hardcode_action=$hardcode_action
  27547. # The directories searched by this compiler when creating a shared library.
  27548. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27549. # Dependencies to place before and after the objects being linked to
  27550. # create a shared library.
  27551. predep_objects=$lt_predep_objects
  27552. postdep_objects=$lt_postdep_objects
  27553. predeps=$lt_predeps
  27554. postdeps=$lt_postdeps
  27555. # The library search path used internally by the compiler when linking
  27556. # a shared library.
  27557. compiler_lib_search_path=$lt_compiler_lib_search_path
  27558. # ### END LIBTOOL CONFIG
  27559. _LT_EOF
  27560. cat <<'_LT_EOF' >> "$cfgfile"
  27561. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27562. # func_munge_path_list VARIABLE PATH
  27563. # -----------------------------------
  27564. # VARIABLE is name of variable containing _space_ separated list of
  27565. # directories to be munged by the contents of PATH, which is string
  27566. # having a format:
  27567. # "DIR[:DIR]:"
  27568. # string "DIR[ DIR]" will be prepended to VARIABLE
  27569. # ":DIR[:DIR]"
  27570. # string "DIR[ DIR]" will be appended to VARIABLE
  27571. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27572. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27573. # "DIRA[ DIRA]" will be appended to VARIABLE
  27574. # "DIR[:DIR]"
  27575. # VARIABLE will be replaced by "DIR[ DIR]"
  27576. func_munge_path_list ()
  27577. {
  27578. case x$2 in
  27579. x)
  27580. ;;
  27581. *:)
  27582. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27583. ;;
  27584. x:*)
  27585. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27586. ;;
  27587. *::*)
  27588. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27589. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27590. ;;
  27591. *)
  27592. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27593. ;;
  27594. esac
  27595. }
  27596. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27597. func_cc_basename ()
  27598. {
  27599. for cc_temp in $*""; do
  27600. case $cc_temp in
  27601. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27602. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27603. \-*) ;;
  27604. *) break;;
  27605. esac
  27606. done
  27607. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27608. }
  27609. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27610. _LT_EOF
  27611. case $host_os in
  27612. aix3*)
  27613. cat <<\_LT_EOF >> "$cfgfile"
  27614. # AIX sometimes has problems with the GCC collect2 program. For some
  27615. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27616. # vanish in a puff of smoke.
  27617. if test set != "${COLLECT_NAMES+set}"; then
  27618. COLLECT_NAMES=
  27619. export COLLECT_NAMES
  27620. fi
  27621. _LT_EOF
  27622. ;;
  27623. esac
  27624. ltmain=$ac_aux_dir/ltmain.sh
  27625. # We use sed instead of cat because bash on DJGPP gets confused if
  27626. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27627. # text mode, it properly converts lines to CR/LF. This bash problem
  27628. # is reportedly fixed, but why not run on old versions too?
  27629. sed '$q' "$ltmain" >> "$cfgfile" \
  27630. || (rm -f "$cfgfile"; exit 1)
  27631. mv -f "$cfgfile" "$ofile" ||
  27632. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27633. chmod +x "$ofile"
  27634. cat <<_LT_EOF >> "$ofile"
  27635. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27636. # The linker used to build libraries.
  27637. LD=$lt_LD_RC
  27638. # How to create reloadable object files.
  27639. reload_flag=$lt_reload_flag_RC
  27640. reload_cmds=$lt_reload_cmds_RC
  27641. # Commands used to build an old-style archive.
  27642. old_archive_cmds=$lt_old_archive_cmds_RC
  27643. # A language specific compiler.
  27644. CC=$lt_compiler_RC
  27645. # Is the compiler the GNU compiler?
  27646. with_gcc=$GCC_RC
  27647. # Compiler flag to turn off builtin functions.
  27648. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27649. # Additional compiler flags for building library objects.
  27650. pic_flag=$lt_lt_prog_compiler_pic_RC
  27651. # How to pass a linker flag through the compiler.
  27652. wl=$lt_lt_prog_compiler_wl_RC
  27653. # Compiler flag to prevent dynamic linking.
  27654. link_static_flag=$lt_lt_prog_compiler_static_RC
  27655. # Does compiler simultaneously support -c and -o options?
  27656. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27657. # Whether or not to add -lc for building shared libraries.
  27658. build_libtool_need_lc=$archive_cmds_need_lc_RC
  27659. # Whether or not to disallow shared libs when runtime libs are static.
  27660. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  27661. # Compiler flag to allow reflexive dlopens.
  27662. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  27663. # Compiler flag to generate shared objects directly from archives.
  27664. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  27665. # Whether the compiler copes with passing no objects directly.
  27666. compiler_needs_object=$lt_compiler_needs_object_RC
  27667. # Create an old-style archive from a shared archive.
  27668. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  27669. # Create a temporary old-style archive to link instead of a shared archive.
  27670. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  27671. # Commands used to build a shared archive.
  27672. archive_cmds=$lt_archive_cmds_RC
  27673. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  27674. # Commands used to build a loadable module if different from building
  27675. # a shared archive.
  27676. module_cmds=$lt_module_cmds_RC
  27677. module_expsym_cmds=$lt_module_expsym_cmds_RC
  27678. # Whether we are building with GNU ld or not.
  27679. with_gnu_ld=$lt_with_gnu_ld_RC
  27680. # Flag that allows shared libraries with undefined symbols to be built.
  27681. allow_undefined_flag=$lt_allow_undefined_flag_RC
  27682. # Flag that enforces no undefined symbols.
  27683. no_undefined_flag=$lt_no_undefined_flag_RC
  27684. # Flag to hardcode \$libdir into a binary during linking.
  27685. # This must work even if \$libdir does not exist
  27686. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  27687. # Whether we need a single "-rpath" flag with a separated argument.
  27688. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  27689. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27690. # DIR into the resulting binary.
  27691. hardcode_direct=$hardcode_direct_RC
  27692. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27693. # DIR into the resulting binary and the resulting library dependency is
  27694. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27695. # library is relocated.
  27696. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  27697. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27698. # into the resulting binary.
  27699. hardcode_minus_L=$hardcode_minus_L_RC
  27700. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27701. # into the resulting binary.
  27702. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  27703. # Set to "yes" if building a shared library automatically hardcodes DIR
  27704. # into the library and all subsequent libraries and executables linked
  27705. # against it.
  27706. hardcode_automatic=$hardcode_automatic_RC
  27707. # Set to yes if linker adds runtime paths of dependent libraries
  27708. # to runtime path list.
  27709. inherit_rpath=$inherit_rpath_RC
  27710. # Whether libtool must link a program against all its dependency libraries.
  27711. link_all_deplibs=$link_all_deplibs_RC
  27712. # Set to "yes" if exported symbols are required.
  27713. always_export_symbols=$always_export_symbols_RC
  27714. # The commands to list exported symbols.
  27715. export_symbols_cmds=$lt_export_symbols_cmds_RC
  27716. # Symbols that should not be listed in the preloaded symbols.
  27717. exclude_expsyms=$lt_exclude_expsyms_RC
  27718. # Symbols that must always be exported.
  27719. include_expsyms=$lt_include_expsyms_RC
  27720. # Commands necessary for linking programs (against libraries) with templates.
  27721. prelink_cmds=$lt_prelink_cmds_RC
  27722. # Commands necessary for finishing linking programs.
  27723. postlink_cmds=$lt_postlink_cmds_RC
  27724. # Specify filename containing input files.
  27725. file_list_spec=$lt_file_list_spec_RC
  27726. # How to hardcode a shared library path into an executable.
  27727. hardcode_action=$hardcode_action_RC
  27728. # The directories searched by this compiler when creating a shared library.
  27729. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  27730. # Dependencies to place before and after the objects being linked to
  27731. # create a shared library.
  27732. predep_objects=$lt_predep_objects_RC
  27733. postdep_objects=$lt_postdep_objects_RC
  27734. predeps=$lt_predeps_RC
  27735. postdeps=$lt_postdeps_RC
  27736. # The library search path used internally by the compiler when linking
  27737. # a shared library.
  27738. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  27739. # ### END LIBTOOL TAG CONFIG: RC
  27740. _LT_EOF
  27741. cat <<_LT_EOF >> "$ofile"
  27742. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  27743. # The linker used to build libraries.
  27744. LD=$lt_LD_CXX
  27745. # How to create reloadable object files.
  27746. reload_flag=$lt_reload_flag_CXX
  27747. reload_cmds=$lt_reload_cmds_CXX
  27748. # Commands used to build an old-style archive.
  27749. old_archive_cmds=$lt_old_archive_cmds_CXX
  27750. # A language specific compiler.
  27751. CC=$lt_compiler_CXX
  27752. # Is the compiler the GNU compiler?
  27753. with_gcc=$GCC_CXX
  27754. # Compiler flag to turn off builtin functions.
  27755. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  27756. # Additional compiler flags for building library objects.
  27757. pic_flag=$lt_lt_prog_compiler_pic_CXX
  27758. # How to pass a linker flag through the compiler.
  27759. wl=$lt_lt_prog_compiler_wl_CXX
  27760. # Compiler flag to prevent dynamic linking.
  27761. link_static_flag=$lt_lt_prog_compiler_static_CXX
  27762. # Does compiler simultaneously support -c and -o options?
  27763. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  27764. # Whether or not to add -lc for building shared libraries.
  27765. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  27766. # Whether or not to disallow shared libs when runtime libs are static.
  27767. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  27768. # Compiler flag to allow reflexive dlopens.
  27769. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  27770. # Compiler flag to generate shared objects directly from archives.
  27771. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  27772. # Whether the compiler copes with passing no objects directly.
  27773. compiler_needs_object=$lt_compiler_needs_object_CXX
  27774. # Create an old-style archive from a shared archive.
  27775. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  27776. # Create a temporary old-style archive to link instead of a shared archive.
  27777. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  27778. # Commands used to build a shared archive.
  27779. archive_cmds=$lt_archive_cmds_CXX
  27780. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  27781. # Commands used to build a loadable module if different from building
  27782. # a shared archive.
  27783. module_cmds=$lt_module_cmds_CXX
  27784. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  27785. # Whether we are building with GNU ld or not.
  27786. with_gnu_ld=$lt_with_gnu_ld_CXX
  27787. # Flag that allows shared libraries with undefined symbols to be built.
  27788. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  27789. # Flag that enforces no undefined symbols.
  27790. no_undefined_flag=$lt_no_undefined_flag_CXX
  27791. # Flag to hardcode \$libdir into a binary during linking.
  27792. # This must work even if \$libdir does not exist
  27793. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  27794. # Whether we need a single "-rpath" flag with a separated argument.
  27795. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  27796. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27797. # DIR into the resulting binary.
  27798. hardcode_direct=$hardcode_direct_CXX
  27799. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27800. # DIR into the resulting binary and the resulting library dependency is
  27801. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27802. # library is relocated.
  27803. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  27804. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27805. # into the resulting binary.
  27806. hardcode_minus_L=$hardcode_minus_L_CXX
  27807. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27808. # into the resulting binary.
  27809. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  27810. # Set to "yes" if building a shared library automatically hardcodes DIR
  27811. # into the library and all subsequent libraries and executables linked
  27812. # against it.
  27813. hardcode_automatic=$hardcode_automatic_CXX
  27814. # Set to yes if linker adds runtime paths of dependent libraries
  27815. # to runtime path list.
  27816. inherit_rpath=$inherit_rpath_CXX
  27817. # Whether libtool must link a program against all its dependency libraries.
  27818. link_all_deplibs=$link_all_deplibs_CXX
  27819. # Set to "yes" if exported symbols are required.
  27820. always_export_symbols=$always_export_symbols_CXX
  27821. # The commands to list exported symbols.
  27822. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  27823. # Symbols that should not be listed in the preloaded symbols.
  27824. exclude_expsyms=$lt_exclude_expsyms_CXX
  27825. # Symbols that must always be exported.
  27826. include_expsyms=$lt_include_expsyms_CXX
  27827. # Commands necessary for linking programs (against libraries) with templates.
  27828. prelink_cmds=$lt_prelink_cmds_CXX
  27829. # Commands necessary for finishing linking programs.
  27830. postlink_cmds=$lt_postlink_cmds_CXX
  27831. # Specify filename containing input files.
  27832. file_list_spec=$lt_file_list_spec_CXX
  27833. # How to hardcode a shared library path into an executable.
  27834. hardcode_action=$hardcode_action_CXX
  27835. # The directories searched by this compiler when creating a shared library.
  27836. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  27837. # Dependencies to place before and after the objects being linked to
  27838. # create a shared library.
  27839. predep_objects=$lt_predep_objects_CXX
  27840. postdep_objects=$lt_postdep_objects_CXX
  27841. predeps=$lt_predeps_CXX
  27842. postdeps=$lt_postdeps_CXX
  27843. # The library search path used internally by the compiler when linking
  27844. # a shared library.
  27845. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  27846. # ### END LIBTOOL TAG CONFIG: CXX
  27847. _LT_EOF
  27848. ;;
  27849. "sdl2_config":C) chmod a+x sdl2-config ;;
  27850. "summary":C) printf "$SUMMARY" ;;
  27851. esac
  27852. done # for ac_tag
  27853. as_fn_exit 0
  27854. _ACEOF
  27855. ac_clean_files=$ac_clean_files_save
  27856. test $ac_write_fail = 0 ||
  27857. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  27858. # configure is writing to config.log, and then calls config.status.
  27859. # config.status does its own redirection, appending to config.log.
  27860. # Unfortunately, on DOS this fails, as config.log is still kept open
  27861. # by configure, so config.status won't be able to write to it; its
  27862. # output is simply discarded. So we exec the FD to /dev/null,
  27863. # effectively closing config.log, so it can be properly (re)opened and
  27864. # appended to by config.status. When coming back to configure, we
  27865. # need to make the FD available again.
  27866. if test "$no_create" != yes; then
  27867. ac_cs_success=:
  27868. ac_config_status_args=
  27869. test "$silent" = yes &&
  27870. ac_config_status_args="$ac_config_status_args --quiet"
  27871. exec 5>/dev/null
  27872. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  27873. exec 5>>config.log
  27874. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  27875. # would make configure fail if this is the last instruction.
  27876. $ac_cs_success || as_fn_exit 1
  27877. fi
  27878. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  27879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  27880. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  27881. fi