configure 952 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495
  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. WAYLAND_SCANNER_CODE_MODE
  601. WAYLAND_SCANNER
  602. EXTRA_LDFLAGS
  603. BUILD_LDFLAGS
  604. EXTRA_CFLAGS
  605. BUILD_CFLAGS
  606. SDLTEST_OBJECTS
  607. SDLMAIN_OBJECTS
  608. VERSION_OBJECTS
  609. GEN_OBJECTS
  610. GEN_HEADERS
  611. OBJECTS
  612. INCLUDE
  613. ac_aux_dir
  614. ENABLE_STATIC_FALSE
  615. ENABLE_STATIC_TRUE
  616. ENABLE_SHARED_FALSE
  617. ENABLE_SHARED_TRUE
  618. PKGCONFIG_LIBS_PRIV
  619. SDL_RLD_FLAGS
  620. SDL_STATIC_LIBS
  621. SDL_LIBS
  622. SDL_CFLAGS
  623. bin_prefix_relpath
  624. cmake_prefix_relpath
  625. INSTALL_SDL2_CONFIG
  626. LIBUSB_LIBS
  627. LIBUSB_CFLAGS
  628. IBUS_LIBS
  629. IBUS_CFLAGS
  630. DBUS_LIBS
  631. DBUS_CFLAGS
  632. LIBGBM_LIBS
  633. LIBGBM_CFLAGS
  634. LIBDRM_LIBS
  635. LIBDRM_CFLAGS
  636. DIRECTFB_LIBS
  637. DIRECTFB_CFLAGS
  638. X_EXTRA_LIBS
  639. X_LIBS
  640. X_PRE_LIBS
  641. X_CFLAGS
  642. XMKMF
  643. RPI_LIBS
  644. RPI_CFLAGS
  645. DECOR_LIBS
  646. DECOR_CFLAGS
  647. FUSIONSOUND_LIBS
  648. FUSIONSOUND_CFLAGS
  649. ARTSCONFIG
  650. PULSEAUDIO_LIBS
  651. PULSEAUDIO_CFLAGS
  652. PIPEWIRE_LIBS
  653. PIPEWIRE_CFLAGS
  654. ESD_LIBS
  655. ESD_CFLAGS
  656. ESD_CONFIG
  657. JACK_LIBS
  658. JACK_CFLAGS
  659. ALSA_LIBS
  660. ALSA_CFLAGS
  661. POW_LIB
  662. LIBOBJS
  663. ALLOCA
  664. CPP
  665. LIBTOOLLINKERTAG
  666. LINKER
  667. SORT
  668. PKG_CONFIG_LIBDIR
  669. PKG_CONFIG_PATH
  670. PKG_CONFIG
  671. SET_MAKE
  672. INSTALL_DATA
  673. INSTALL_SCRIPT
  674. INSTALL_PROGRAM
  675. CXXCPP
  676. ac_ct_CXX
  677. CXXFLAGS
  678. CXX
  679. LT_AGE
  680. LT_REVISION
  681. LT_CURRENT
  682. LT_RELEASE
  683. RC
  684. LT_SYS_LIBRARY_PATH
  685. OTOOL64
  686. OTOOL
  687. LIPO
  688. NMEDIT
  689. DSYMUTIL
  690. MANIFEST_TOOL
  691. AWK
  692. RANLIB
  693. STRIP
  694. ac_ct_AR
  695. AR
  696. LN_S
  697. NM
  698. ac_ct_DUMPBIN
  699. DUMPBIN
  700. LD
  701. FGREP
  702. EGREP
  703. GREP
  704. SED
  705. OBJEXT
  706. EXEEXT
  707. ac_ct_CC
  708. CPPFLAGS
  709. LDFLAGS
  710. CFLAGS
  711. CC
  712. host_os
  713. host_vendor
  714. host_cpu
  715. host
  716. build_os
  717. build_vendor
  718. build_cpu
  719. build
  720. LIBTOOL
  721. OBJDUMP
  722. DLLTOOL
  723. AS
  724. SDL_VERSION
  725. SDL_BINARY_AGE
  726. SDL_INTERFACE_AGE
  727. SDL_MICRO_VERSION
  728. SDL_MINOR_VERSION
  729. SDL_MAJOR_VERSION
  730. target_alias
  731. host_alias
  732. build_alias
  733. LIBS
  734. ECHO_T
  735. ECHO_N
  736. ECHO_C
  737. DEFS
  738. mandir
  739. localedir
  740. libdir
  741. psdir
  742. pdfdir
  743. dvidir
  744. htmldir
  745. infodir
  746. docdir
  747. oldincludedir
  748. includedir
  749. runstatedir
  750. localstatedir
  751. sharedstatedir
  752. sysconfdir
  753. datadir
  754. datarootdir
  755. libexecdir
  756. sbindir
  757. bindir
  758. program_transform_name
  759. prefix
  760. exec_prefix
  761. PACKAGE_URL
  762. PACKAGE_BUGREPORT
  763. PACKAGE_STRING
  764. PACKAGE_VERSION
  765. PACKAGE_TARNAME
  766. PACKAGE_NAME
  767. PATH_SEPARATOR
  768. SHELL'
  769. ac_subst_files=''
  770. ac_user_opts='
  771. enable_option_checking
  772. enable_shared
  773. enable_static
  774. with_pic
  775. enable_fast_install
  776. with_aix_soname
  777. with_gnu_ld
  778. with_sysroot
  779. enable_libtool_lock
  780. enable_largefile
  781. enable_assertions
  782. enable_dependency_tracking
  783. enable_libc
  784. enable_gcc_atomics
  785. enable_atomic
  786. enable_audio
  787. enable_video
  788. enable_render
  789. enable_events
  790. enable_joystick
  791. enable_haptic
  792. enable_hidapi
  793. enable_sensor
  794. enable_power
  795. enable_filesystem
  796. enable_timers
  797. enable_file
  798. enable_misc
  799. enable_locale
  800. enable_loadso
  801. enable_cpuinfo
  802. enable_assembly
  803. enable_ssemath
  804. enable_mmx
  805. enable_3dnow
  806. enable_sse
  807. enable_sse2
  808. enable_sse3
  809. enable_altivec
  810. enable_lsx
  811. enable_lasx
  812. enable_oss
  813. enable_alsa
  814. with_alsa_prefix
  815. with_alsa_inc_prefix
  816. enable_alsatest
  817. enable_alsa_shared
  818. enable_jack
  819. enable_jack_shared
  820. enable_esd
  821. with_esd_prefix
  822. with_esd_exec_prefix
  823. enable_esdtest
  824. enable_esd_shared
  825. enable_pipewire
  826. enable_pipewire_shared
  827. enable_pulseaudio
  828. enable_pulseaudio_shared
  829. enable_arts
  830. enable_arts_shared
  831. enable_nas
  832. enable_nas_shared
  833. enable_sndio
  834. enable_sndio_shared
  835. enable_fusionsound
  836. enable_fusionsound_shared
  837. enable_diskaudio
  838. enable_dummyaudio
  839. enable_libsamplerate
  840. enable_libsamplerate_shared
  841. enable_arm_simd
  842. enable_arm_neon
  843. enable_video_wayland
  844. enable_video_wayland_qt_touch
  845. enable_wayland_shared
  846. enable_libdecor
  847. enable_libdecor_shared
  848. enable_video_rpi
  849. enable_video_x11
  850. with_x
  851. enable_x11_shared
  852. enable_video_x11_xcursor
  853. enable_video_x11_xdbe
  854. enable_video_x11_xinput
  855. enable_video_x11_xfixes
  856. enable_video_x11_xrandr
  857. enable_video_x11_scrnsaver
  858. enable_video_x11_xshape
  859. enable_video_vivante
  860. enable_video_cocoa
  861. enable_video_metal
  862. enable_render_metal
  863. enable_video_directfb
  864. enable_directfb_shared
  865. enable_video_kmsdrm
  866. enable_kmsdrm_shared
  867. enable_video_dummy
  868. enable_video_offscreen
  869. enable_video_opengl
  870. enable_video_opengles
  871. enable_video_opengles1
  872. enable_video_opengles2
  873. enable_video_vulkan
  874. enable_libudev
  875. enable_dbus
  876. enable_ime
  877. enable_ibus
  878. enable_fcitx
  879. enable_joystick_mfi
  880. enable_pthreads
  881. enable_pthread_sem
  882. enable_directx
  883. enable_xinput
  884. enable_wasapi
  885. enable_hidapi_joystick
  886. enable_hidapi_libusb
  887. enable_clock_gettime
  888. enable_rpath
  889. enable_backgrounding_signal
  890. enable_foregrounding_signal
  891. enable_joystick_virtual
  892. enable_render_d3d
  893. enable_sdl2_config
  894. '
  895. ac_precious_vars='build_alias
  896. host_alias
  897. target_alias
  898. CC
  899. CFLAGS
  900. LDFLAGS
  901. LIBS
  902. CPPFLAGS
  903. LT_SYS_LIBRARY_PATH
  904. CXX
  905. CXXFLAGS
  906. CCC
  907. CXXCPP
  908. PKG_CONFIG
  909. PKG_CONFIG_PATH
  910. PKG_CONFIG_LIBDIR
  911. CPP
  912. JACK_CFLAGS
  913. JACK_LIBS
  914. PIPEWIRE_CFLAGS
  915. PIPEWIRE_LIBS
  916. PULSEAUDIO_CFLAGS
  917. PULSEAUDIO_LIBS
  918. FUSIONSOUND_CFLAGS
  919. FUSIONSOUND_LIBS
  920. DECOR_CFLAGS
  921. DECOR_LIBS
  922. RPI_CFLAGS
  923. RPI_LIBS
  924. XMKMF
  925. DIRECTFB_CFLAGS
  926. DIRECTFB_LIBS
  927. LIBDRM_CFLAGS
  928. LIBDRM_LIBS
  929. LIBGBM_CFLAGS
  930. LIBGBM_LIBS
  931. DBUS_CFLAGS
  932. DBUS_LIBS
  933. IBUS_CFLAGS
  934. IBUS_LIBS
  935. LIBUSB_CFLAGS
  936. LIBUSB_LIBS'
  937. # Initialize some variables set by options.
  938. ac_init_help=
  939. ac_init_version=false
  940. ac_unrecognized_opts=
  941. ac_unrecognized_sep=
  942. # The variables have the same names as the options, with
  943. # dashes changed to underlines.
  944. cache_file=/dev/null
  945. exec_prefix=NONE
  946. no_create=
  947. no_recursion=
  948. prefix=NONE
  949. program_prefix=NONE
  950. program_suffix=NONE
  951. program_transform_name=s,x,x,
  952. silent=
  953. site=
  954. srcdir=
  955. verbose=
  956. x_includes=NONE
  957. x_libraries=NONE
  958. # Installation directory options.
  959. # These are left unexpanded so users can "make install exec_prefix=/foo"
  960. # and all the variables that are supposed to be based on exec_prefix
  961. # by default will actually change.
  962. # Use braces instead of parens because sh, perl, etc. also accept them.
  963. # (The list follows the same order as the GNU Coding Standards.)
  964. bindir='${exec_prefix}/bin'
  965. sbindir='${exec_prefix}/sbin'
  966. libexecdir='${exec_prefix}/libexec'
  967. datarootdir='${prefix}/share'
  968. datadir='${datarootdir}'
  969. sysconfdir='${prefix}/etc'
  970. sharedstatedir='${prefix}/com'
  971. localstatedir='${prefix}/var'
  972. runstatedir='${localstatedir}/run'
  973. includedir='${prefix}/include'
  974. oldincludedir='/usr/include'
  975. docdir='${datarootdir}/doc/${PACKAGE}'
  976. infodir='${datarootdir}/info'
  977. htmldir='${docdir}'
  978. dvidir='${docdir}'
  979. pdfdir='${docdir}'
  980. psdir='${docdir}'
  981. libdir='${exec_prefix}/lib'
  982. localedir='${datarootdir}/locale'
  983. mandir='${datarootdir}/man'
  984. ac_prev=
  985. ac_dashdash=
  986. for ac_option
  987. do
  988. # If the previous option needs an argument, assign it.
  989. if test -n "$ac_prev"; then
  990. eval $ac_prev=\$ac_option
  991. ac_prev=
  992. continue
  993. fi
  994. case $ac_option in
  995. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  996. *=) ac_optarg= ;;
  997. *) ac_optarg=yes ;;
  998. esac
  999. case $ac_dashdash$ac_option in
  1000. --)
  1001. ac_dashdash=yes ;;
  1002. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1003. ac_prev=bindir ;;
  1004. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1005. bindir=$ac_optarg ;;
  1006. -build | --build | --buil | --bui | --bu)
  1007. ac_prev=build_alias ;;
  1008. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1009. build_alias=$ac_optarg ;;
  1010. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1011. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1012. ac_prev=cache_file ;;
  1013. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1014. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1015. cache_file=$ac_optarg ;;
  1016. --config-cache | -C)
  1017. cache_file=config.cache ;;
  1018. -datadir | --datadir | --datadi | --datad)
  1019. ac_prev=datadir ;;
  1020. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1021. datadir=$ac_optarg ;;
  1022. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1023. | --dataroo | --dataro | --datar)
  1024. ac_prev=datarootdir ;;
  1025. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1026. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1027. datarootdir=$ac_optarg ;;
  1028. -disable-* | --disable-*)
  1029. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1030. # Reject names that are not valid shell variable names.
  1031. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1032. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1033. ac_useropt_orig=$ac_useropt
  1034. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1035. case $ac_user_opts in
  1036. *"
  1037. "enable_$ac_useropt"
  1038. "*) ;;
  1039. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1040. ac_unrecognized_sep=', ';;
  1041. esac
  1042. eval enable_$ac_useropt=no ;;
  1043. -docdir | --docdir | --docdi | --doc | --do)
  1044. ac_prev=docdir ;;
  1045. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1046. docdir=$ac_optarg ;;
  1047. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1048. ac_prev=dvidir ;;
  1049. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1050. dvidir=$ac_optarg ;;
  1051. -enable-* | --enable-*)
  1052. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1053. # Reject names that are not valid shell variable names.
  1054. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1055. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1056. ac_useropt_orig=$ac_useropt
  1057. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1058. case $ac_user_opts in
  1059. *"
  1060. "enable_$ac_useropt"
  1061. "*) ;;
  1062. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1063. ac_unrecognized_sep=', ';;
  1064. esac
  1065. eval enable_$ac_useropt=\$ac_optarg ;;
  1066. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1067. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1068. | --exec | --exe | --ex)
  1069. ac_prev=exec_prefix ;;
  1070. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1071. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1072. | --exec=* | --exe=* | --ex=*)
  1073. exec_prefix=$ac_optarg ;;
  1074. -gas | --gas | --ga | --g)
  1075. # Obsolete; use --with-gas.
  1076. with_gas=yes ;;
  1077. -help | --help | --hel | --he | -h)
  1078. ac_init_help=long ;;
  1079. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1080. ac_init_help=recursive ;;
  1081. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1082. ac_init_help=short ;;
  1083. -host | --host | --hos | --ho)
  1084. ac_prev=host_alias ;;
  1085. -host=* | --host=* | --hos=* | --ho=*)
  1086. host_alias=$ac_optarg ;;
  1087. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1088. ac_prev=htmldir ;;
  1089. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1090. | --ht=*)
  1091. htmldir=$ac_optarg ;;
  1092. -includedir | --includedir | --includedi | --included | --include \
  1093. | --includ | --inclu | --incl | --inc)
  1094. ac_prev=includedir ;;
  1095. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1096. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1097. includedir=$ac_optarg ;;
  1098. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1099. ac_prev=infodir ;;
  1100. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1101. infodir=$ac_optarg ;;
  1102. -libdir | --libdir | --libdi | --libd)
  1103. ac_prev=libdir ;;
  1104. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1105. libdir=$ac_optarg ;;
  1106. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1107. | --libexe | --libex | --libe)
  1108. ac_prev=libexecdir ;;
  1109. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1110. | --libexe=* | --libex=* | --libe=*)
  1111. libexecdir=$ac_optarg ;;
  1112. -localedir | --localedir | --localedi | --localed | --locale)
  1113. ac_prev=localedir ;;
  1114. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1115. localedir=$ac_optarg ;;
  1116. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1117. | --localstate | --localstat | --localsta | --localst | --locals)
  1118. ac_prev=localstatedir ;;
  1119. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1120. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1121. localstatedir=$ac_optarg ;;
  1122. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1123. ac_prev=mandir ;;
  1124. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1125. mandir=$ac_optarg ;;
  1126. -nfp | --nfp | --nf)
  1127. # Obsolete; use --without-fp.
  1128. with_fp=no ;;
  1129. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1130. | --no-cr | --no-c | -n)
  1131. no_create=yes ;;
  1132. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1133. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1134. no_recursion=yes ;;
  1135. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1136. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1137. | --oldin | --oldi | --old | --ol | --o)
  1138. ac_prev=oldincludedir ;;
  1139. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1140. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1141. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1142. oldincludedir=$ac_optarg ;;
  1143. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1144. ac_prev=prefix ;;
  1145. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1146. prefix=$ac_optarg ;;
  1147. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1148. | --program-pre | --program-pr | --program-p)
  1149. ac_prev=program_prefix ;;
  1150. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1151. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1152. program_prefix=$ac_optarg ;;
  1153. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1154. | --program-suf | --program-su | --program-s)
  1155. ac_prev=program_suffix ;;
  1156. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1157. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1158. program_suffix=$ac_optarg ;;
  1159. -program-transform-name | --program-transform-name \
  1160. | --program-transform-nam | --program-transform-na \
  1161. | --program-transform-n | --program-transform- \
  1162. | --program-transform | --program-transfor \
  1163. | --program-transfo | --program-transf \
  1164. | --program-trans | --program-tran \
  1165. | --progr-tra | --program-tr | --program-t)
  1166. ac_prev=program_transform_name ;;
  1167. -program-transform-name=* | --program-transform-name=* \
  1168. | --program-transform-nam=* | --program-transform-na=* \
  1169. | --program-transform-n=* | --program-transform-=* \
  1170. | --program-transform=* | --program-transfor=* \
  1171. | --program-transfo=* | --program-transf=* \
  1172. | --program-trans=* | --program-tran=* \
  1173. | --progr-tra=* | --program-tr=* | --program-t=*)
  1174. program_transform_name=$ac_optarg ;;
  1175. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1176. ac_prev=pdfdir ;;
  1177. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1178. pdfdir=$ac_optarg ;;
  1179. -psdir | --psdir | --psdi | --psd | --ps)
  1180. ac_prev=psdir ;;
  1181. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1182. psdir=$ac_optarg ;;
  1183. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1184. | -silent | --silent | --silen | --sile | --sil)
  1185. silent=yes ;;
  1186. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1187. | --runstate | --runstat | --runsta | --runst | --runs \
  1188. | --run | --ru | --r)
  1189. ac_prev=runstatedir ;;
  1190. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1191. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1192. | --run=* | --ru=* | --r=*)
  1193. runstatedir=$ac_optarg ;;
  1194. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1195. ac_prev=sbindir ;;
  1196. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1197. | --sbi=* | --sb=*)
  1198. sbindir=$ac_optarg ;;
  1199. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1200. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1201. | --sharedst | --shareds | --shared | --share | --shar \
  1202. | --sha | --sh)
  1203. ac_prev=sharedstatedir ;;
  1204. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1205. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1206. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1207. | --sha=* | --sh=*)
  1208. sharedstatedir=$ac_optarg ;;
  1209. -site | --site | --sit)
  1210. ac_prev=site ;;
  1211. -site=* | --site=* | --sit=*)
  1212. site=$ac_optarg ;;
  1213. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1214. ac_prev=srcdir ;;
  1215. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1216. srcdir=$ac_optarg ;;
  1217. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1218. | --syscon | --sysco | --sysc | --sys | --sy)
  1219. ac_prev=sysconfdir ;;
  1220. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1221. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1222. sysconfdir=$ac_optarg ;;
  1223. -target | --target | --targe | --targ | --tar | --ta | --t)
  1224. ac_prev=target_alias ;;
  1225. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1226. target_alias=$ac_optarg ;;
  1227. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1228. verbose=yes ;;
  1229. -version | --version | --versio | --versi | --vers | -V)
  1230. ac_init_version=: ;;
  1231. -with-* | --with-*)
  1232. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1233. # Reject names that are not valid shell variable names.
  1234. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1235. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1236. ac_useropt_orig=$ac_useropt
  1237. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1238. case $ac_user_opts in
  1239. *"
  1240. "with_$ac_useropt"
  1241. "*) ;;
  1242. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1243. ac_unrecognized_sep=', ';;
  1244. esac
  1245. eval with_$ac_useropt=\$ac_optarg ;;
  1246. -without-* | --without-*)
  1247. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1248. # Reject names that are not valid shell variable names.
  1249. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1250. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1251. ac_useropt_orig=$ac_useropt
  1252. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1253. case $ac_user_opts in
  1254. *"
  1255. "with_$ac_useropt"
  1256. "*) ;;
  1257. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1258. ac_unrecognized_sep=', ';;
  1259. esac
  1260. eval with_$ac_useropt=no ;;
  1261. --x)
  1262. # Obsolete; use --with-x.
  1263. with_x=yes ;;
  1264. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1265. | --x-incl | --x-inc | --x-in | --x-i)
  1266. ac_prev=x_includes ;;
  1267. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1268. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1269. x_includes=$ac_optarg ;;
  1270. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1271. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1272. ac_prev=x_libraries ;;
  1273. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1274. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1275. x_libraries=$ac_optarg ;;
  1276. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1277. Try \`$0 --help' for more information"
  1278. ;;
  1279. *=*)
  1280. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1281. # Reject names that are not valid shell variable names.
  1282. case $ac_envvar in #(
  1283. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1284. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1285. esac
  1286. eval $ac_envvar=\$ac_optarg
  1287. export $ac_envvar ;;
  1288. *)
  1289. # FIXME: should be removed in autoconf 3.0.
  1290. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1291. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1292. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1293. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1294. ;;
  1295. esac
  1296. done
  1297. if test -n "$ac_prev"; then
  1298. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1299. as_fn_error $? "missing argument to $ac_option"
  1300. fi
  1301. if test -n "$ac_unrecognized_opts"; then
  1302. case $enable_option_checking in
  1303. no) ;;
  1304. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1305. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1306. esac
  1307. fi
  1308. # Check all directory arguments for consistency.
  1309. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1310. datadir sysconfdir sharedstatedir localstatedir includedir \
  1311. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1312. libdir localedir mandir runstatedir
  1313. do
  1314. eval ac_val=\$$ac_var
  1315. # Remove trailing slashes.
  1316. case $ac_val in
  1317. */ )
  1318. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1319. eval $ac_var=\$ac_val;;
  1320. esac
  1321. # Be sure to have absolute directory names.
  1322. case $ac_val in
  1323. [\\/$]* | ?:[\\/]* ) continue;;
  1324. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1325. esac
  1326. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1327. done
  1328. # There might be people who depend on the old broken behavior: `$host'
  1329. # used to hold the argument of --host etc.
  1330. # FIXME: To remove some day.
  1331. build=$build_alias
  1332. host=$host_alias
  1333. target=$target_alias
  1334. # FIXME: To remove some day.
  1335. if test "x$host_alias" != x; then
  1336. if test "x$build_alias" = x; then
  1337. cross_compiling=maybe
  1338. elif test "x$build_alias" != "x$host_alias"; then
  1339. cross_compiling=yes
  1340. fi
  1341. fi
  1342. ac_tool_prefix=
  1343. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1344. test "$silent" = yes && exec 6>/dev/null
  1345. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1346. ac_ls_di=`ls -di .` &&
  1347. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1348. as_fn_error $? "working directory cannot be determined"
  1349. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1350. as_fn_error $? "pwd does not report name of working directory"
  1351. # Find the source files, if location was not specified.
  1352. if test -z "$srcdir"; then
  1353. ac_srcdir_defaulted=yes
  1354. # Try the directory containing this script, then the parent directory.
  1355. ac_confdir=`$as_dirname -- "$as_myself" ||
  1356. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1357. X"$as_myself" : 'X\(//\)[^/]' \| \
  1358. X"$as_myself" : 'X\(//\)$' \| \
  1359. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1360. printf "%s\n" X"$as_myself" |
  1361. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1362. s//\1/
  1363. q
  1364. }
  1365. /^X\(\/\/\)[^/].*/{
  1366. s//\1/
  1367. q
  1368. }
  1369. /^X\(\/\/\)$/{
  1370. s//\1/
  1371. q
  1372. }
  1373. /^X\(\/\).*/{
  1374. s//\1/
  1375. q
  1376. }
  1377. s/.*/./; q'`
  1378. srcdir=$ac_confdir
  1379. if test ! -r "$srcdir/$ac_unique_file"; then
  1380. srcdir=..
  1381. fi
  1382. else
  1383. ac_srcdir_defaulted=no
  1384. fi
  1385. if test ! -r "$srcdir/$ac_unique_file"; then
  1386. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1387. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1388. fi
  1389. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1390. ac_abs_confdir=`(
  1391. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1392. pwd)`
  1393. # When building in place, set srcdir=.
  1394. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1395. srcdir=.
  1396. fi
  1397. # Remove unnecessary trailing slashes from srcdir.
  1398. # Double slashes in file names in object file debugging info
  1399. # mess up M-x gdb in Emacs.
  1400. case $srcdir in
  1401. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1402. esac
  1403. for ac_var in $ac_precious_vars; do
  1404. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1405. eval ac_env_${ac_var}_value=\$${ac_var}
  1406. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1407. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1408. done
  1409. #
  1410. # Report the --help message.
  1411. #
  1412. if test "$ac_init_help" = "long"; then
  1413. # Omit some internal or obsolete options to make the list less imposing.
  1414. # This message is too long to be a string in the A/UX 3.1 sh.
  1415. cat <<_ACEOF
  1416. \`configure' configures this package to adapt to many kinds of systems.
  1417. Usage: $0 [OPTION]... [VAR=VALUE]...
  1418. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1419. VAR=VALUE. See below for descriptions of some of the useful variables.
  1420. Defaults for the options are specified in brackets.
  1421. Configuration:
  1422. -h, --help display this help and exit
  1423. --help=short display options specific to this package
  1424. --help=recursive display the short help of all the included packages
  1425. -V, --version display version information and exit
  1426. -q, --quiet, --silent do not print \`checking ...' messages
  1427. --cache-file=FILE cache test results in FILE [disabled]
  1428. -C, --config-cache alias for \`--cache-file=config.cache'
  1429. -n, --no-create do not create output files
  1430. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1431. Installation directories:
  1432. --prefix=PREFIX install architecture-independent files in PREFIX
  1433. [$ac_default_prefix]
  1434. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1435. [PREFIX]
  1436. By default, \`make install' will install all the files in
  1437. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1438. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1439. for instance \`--prefix=\$HOME'.
  1440. For better control, use the options below.
  1441. Fine tuning of the installation directories:
  1442. --bindir=DIR user executables [EPREFIX/bin]
  1443. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1444. --libexecdir=DIR program executables [EPREFIX/libexec]
  1445. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1446. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1447. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1448. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1449. --libdir=DIR object code libraries [EPREFIX/lib]
  1450. --includedir=DIR C header files [PREFIX/include]
  1451. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1452. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1453. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1454. --infodir=DIR info documentation [DATAROOTDIR/info]
  1455. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1456. --mandir=DIR man documentation [DATAROOTDIR/man]
  1457. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1458. --htmldir=DIR html documentation [DOCDIR]
  1459. --dvidir=DIR dvi documentation [DOCDIR]
  1460. --pdfdir=DIR pdf documentation [DOCDIR]
  1461. --psdir=DIR ps documentation [DOCDIR]
  1462. _ACEOF
  1463. cat <<\_ACEOF
  1464. X features:
  1465. --x-includes=DIR X include files are in DIR
  1466. --x-libraries=DIR X library files are in DIR
  1467. System types:
  1468. --build=BUILD configure for building on BUILD [guessed]
  1469. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1470. _ACEOF
  1471. fi
  1472. if test -n "$ac_init_help"; then
  1473. cat <<\_ACEOF
  1474. Optional Features:
  1475. --disable-option-checking ignore unrecognized --enable/--with options
  1476. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1477. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1478. --enable-shared[=PKGS] build shared libraries [default=yes]
  1479. --enable-static[=PKGS] build static libraries [default=yes]
  1480. --enable-fast-install[=PKGS]
  1481. optimize for fast installation [default=yes]
  1482. --disable-libtool-lock avoid locking (might break parallel builds)
  1483. --disable-largefile omit support for large files
  1484. --enable-assertions Enable internal sanity checks
  1485. (auto/disabled/release/enabled/paranoid)
  1486. [default=auto]
  1487. --enable-dependency-tracking
  1488. Use gcc -MMD -MT dependency tracking [default=yes]
  1489. --enable-libc Use the system C library [default=yes]
  1490. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1491. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1492. --enable-audio Enable the audio subsystem [default=yes]
  1493. --enable-video Enable the video subsystem [default=yes]
  1494. --enable-render Enable the render subsystem [default=yes]
  1495. --enable-events Enable the events subsystem [default=yes]
  1496. --enable-joystick Enable the joystick subsystem [default=yes]
  1497. --enable-haptic Enable the haptic (force feedback) subsystem
  1498. [default=yes]
  1499. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1500. --enable-sensor Enable the sensor subsystem [default=yes]
  1501. --enable-power Enable the power subsystem [default=yes]
  1502. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1503. --enable-timers Enable the timer subsystem [default=yes]
  1504. --enable-file Enable the file subsystem [default=yes]
  1505. --enable-misc Enable the misc subsystem [default=yes]
  1506. --enable-locale Enable the locale subsystem [default=yes]
  1507. --enable-loadso Enable the shared object loading subsystem
  1508. [default=yes]
  1509. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1510. --enable-assembly Enable assembly routines [default=yes]
  1511. --enable-ssemath Allow GCC to use SSE floating point math
  1512. [default=maybe]
  1513. --enable-mmx use MMX assembly routines [default=yes]
  1514. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1515. --enable-sse use SSE assembly routines [default=yes]
  1516. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1517. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1518. --enable-altivec use Altivec assembly routines [default=yes]
  1519. --enable-lsx use LSX assembly routines [default=yes]
  1520. --enable-lasx use LASX assembly routines [default=yes]
  1521. --enable-oss support the OSS audio API [default=maybe]
  1522. --enable-alsa support the ALSA audio API [default=yes]
  1523. --disable-alsatest Do not try to compile and run a test Alsa program
  1524. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1525. --enable-jack use JACK audio [default=yes]
  1526. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1527. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1528. --disable-esdtest Do not try to compile and run a test ESD program
  1529. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1530. --enable-pipewire use Pipewire audio [default=yes]
  1531. --enable-pipewire-shared
  1532. dynamically load Pipewire support [default=yes]
  1533. --enable-pulseaudio use PulseAudio [default=yes]
  1534. --enable-pulseaudio-shared
  1535. dynamically load PulseAudio support [default=yes]
  1536. --enable-arts support the Analog Real Time Synthesizer
  1537. [default=yes]
  1538. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1539. --enable-nas support the NAS audio API [default=yes]
  1540. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1541. --enable-sndio support the sndio audio API [default=yes]
  1542. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1543. --enable-fusionsound use FusionSound audio driver [default=no]
  1544. --enable-fusionsound-shared
  1545. dynamically load fusionsound audio support
  1546. [default=yes]
  1547. --enable-diskaudio support the disk writer audio driver [default=yes]
  1548. --enable-dummyaudio support the dummy audio driver [default=yes]
  1549. --enable-libsamplerate use libsamplerate for audio rate conversion
  1550. [default=yes]
  1551. --enable-libsamplerate-shared
  1552. dynamically load libsamplerate [default=yes]
  1553. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1554. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1555. --enable-video-wayland use Wayland video driver [default=yes]
  1556. --enable-video-wayland-qt-touch
  1557. QtWayland server support for Wayland video driver
  1558. [default=yes]
  1559. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1560. --enable-libdecor use libdecor for Wayland client-side decorations
  1561. [default=yes]
  1562. --enable-libdecor-shared
  1563. dynamically load libdecor [default=yes]
  1564. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1565. --enable-video-x11 use X11 video driver [default=yes]
  1566. --enable-x11-shared dynamically load X11 support [default=maybe]
  1567. --enable-video-x11-xcursor
  1568. enable X11 Xcursor support [default=yes]
  1569. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1570. --enable-video-x11-xinput
  1571. enable X11 XInput extension for manymouse, tablets,
  1572. etc [default=yes]
  1573. --enable-video-x11-xfixes
  1574. enable X11 Xfixes support [default=yes]
  1575. --enable-video-x11-xrandr
  1576. enable X11 Xrandr extension for fullscreen
  1577. [default=yes]
  1578. --enable-video-x11-scrnsaver
  1579. enable X11 screensaver extension [default=yes]
  1580. --enable-video-x11-xshape
  1581. enable X11 XShape support [default=yes]
  1582. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1583. --enable-video-cocoa use Cocoa video driver [default=yes]
  1584. --enable-video-metal include Metal support [default=yes]
  1585. --enable-render-metal enable the Metal render driver [default=yes]
  1586. --enable-video-directfb use DirectFB video driver [default=no]
  1587. --enable-directfb-shared
  1588. dynamically load directfb support [default=yes]
  1589. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1590. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1591. --enable-video-dummy use dummy video driver [default=yes]
  1592. --enable-video-offscreen
  1593. use offscreen video driver [default=no]
  1594. --enable-video-opengl include OpenGL support [default=yes]
  1595. --enable-video-opengles include OpenGL ES support [default=yes]
  1596. --enable-video-opengles1
  1597. include OpenGL ES 1.1 support [default=yes]
  1598. --enable-video-opengles2
  1599. include OpenGL ES 2.0 support [default=yes]
  1600. --enable-video-vulkan include Vulkan support [default=yes]
  1601. --enable-libudev enable libudev support [default=yes]
  1602. --enable-dbus enable D-Bus support [default=yes]
  1603. --enable-ime enable IME support [default=yes]
  1604. --enable-ibus enable IBus support [default=yes]
  1605. --enable-fcitx enable fcitx support [default=yes]
  1606. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1607. --enable-pthreads use POSIX threads for multi-threading
  1608. [default=maybe]
  1609. --enable-pthread-sem use pthread semaphores [default=maybe]
  1610. --enable-directx use DirectX for Windows audio/video [default=yes]
  1611. --enable-xinput use Xinput for Windows [default=yes]
  1612. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1613. --enable-hidapi-joystick
  1614. use HIDAPI for low level joystick drivers
  1615. [default=yes]
  1616. --enable-hidapi-libusb use libusb for low level joystick drivers
  1617. [default=maybe]
  1618. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1619. UNIX [default=yes]
  1620. --enable-rpath use an rpath when linking SDL [default=yes]
  1621. --enable-backgrounding-signal
  1622. number to use for magic backgrounding signal or 'no'
  1623. [default=no]
  1624. --enable-foregrounding-signal
  1625. number to use for magic foregrounding signal or 'no'
  1626. [default=no]
  1627. --enable-joystick-virtual
  1628. enable virtual joystick APIs [default=yes]
  1629. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1630. --enable-sdl2-config Install sdl2-config [default=yes]
  1631. Optional Packages:
  1632. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1633. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1634. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1635. both]
  1636. --with-aix-soname=aix|svr4|both
  1637. shared library versioning (aka "SONAME") variant to
  1638. provide on AIX, [default=aix].
  1639. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1640. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1641. compiler's sysroot if not specified).
  1642. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1643. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1644. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1645. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1646. --with-x use the X Window System
  1647. Some influential environment variables:
  1648. CC C compiler command
  1649. CFLAGS C compiler flags
  1650. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1651. nonstandard directory <lib dir>
  1652. LIBS libraries to pass to the linker, e.g. -l<library>
  1653. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1654. you have headers in a nonstandard directory <include dir>
  1655. LT_SYS_LIBRARY_PATH
  1656. User-defined run-time library search path.
  1657. CXX C++ compiler command
  1658. CXXFLAGS C++ compiler flags
  1659. CXXCPP C++ preprocessor
  1660. PKG_CONFIG path to pkg-config utility
  1661. PKG_CONFIG_PATH
  1662. directories to add to pkg-config's search path
  1663. PKG_CONFIG_LIBDIR
  1664. path overriding pkg-config's built-in search path
  1665. CPP C preprocessor
  1666. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1667. JACK_LIBS linker flags for JACK, overriding pkg-config
  1668. PIPEWIRE_CFLAGS
  1669. C compiler flags for PIPEWIRE, overriding pkg-config
  1670. PIPEWIRE_LIBS
  1671. linker flags for PIPEWIRE, overriding pkg-config
  1672. PULSEAUDIO_CFLAGS
  1673. C compiler flags for PULSEAUDIO, overriding pkg-config
  1674. PULSEAUDIO_LIBS
  1675. linker flags for PULSEAUDIO, overriding pkg-config
  1676. FUSIONSOUND_CFLAGS
  1677. C compiler flags for FUSIONSOUND, overriding pkg-config
  1678. FUSIONSOUND_LIBS
  1679. linker flags for FUSIONSOUND, overriding pkg-config
  1680. DECOR_CFLAGS
  1681. C compiler flags for DECOR, overriding pkg-config
  1682. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1683. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1684. RPI_LIBS linker flags for RPI, overriding pkg-config
  1685. XMKMF Path to xmkmf, Makefile generator for X Window System
  1686. DIRECTFB_CFLAGS
  1687. C compiler flags for DIRECTFB, overriding pkg-config
  1688. DIRECTFB_LIBS
  1689. linker flags for DIRECTFB, overriding pkg-config
  1690. LIBDRM_CFLAGS
  1691. C compiler flags for LIBDRM, overriding pkg-config
  1692. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1693. LIBGBM_CFLAGS
  1694. C compiler flags for LIBGBM, overriding pkg-config
  1695. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1696. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1697. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1698. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1699. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1700. LIBUSB_CFLAGS
  1701. C compiler flags for LIBUSB, overriding pkg-config
  1702. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1703. Use these variables to override the choices made by `configure' or to help
  1704. it to find libraries and programs with nonstandard names/locations.
  1705. Report bugs to the package provider.
  1706. _ACEOF
  1707. ac_status=$?
  1708. fi
  1709. if test "$ac_init_help" = "recursive"; then
  1710. # If there are subdirs, report their specific --help.
  1711. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1712. test -d "$ac_dir" ||
  1713. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1714. continue
  1715. ac_builddir=.
  1716. case "$ac_dir" in
  1717. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1718. *)
  1719. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1720. # A ".." for each directory in $ac_dir_suffix.
  1721. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1722. case $ac_top_builddir_sub in
  1723. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1724. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1725. esac ;;
  1726. esac
  1727. ac_abs_top_builddir=$ac_pwd
  1728. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1729. # for backward compatibility:
  1730. ac_top_builddir=$ac_top_build_prefix
  1731. case $srcdir in
  1732. .) # We are building in place.
  1733. ac_srcdir=.
  1734. ac_top_srcdir=$ac_top_builddir_sub
  1735. ac_abs_top_srcdir=$ac_pwd ;;
  1736. [\\/]* | ?:[\\/]* ) # Absolute name.
  1737. ac_srcdir=$srcdir$ac_dir_suffix;
  1738. ac_top_srcdir=$srcdir
  1739. ac_abs_top_srcdir=$srcdir ;;
  1740. *) # Relative name.
  1741. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1742. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1743. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1744. esac
  1745. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1746. cd "$ac_dir" || { ac_status=$?; continue; }
  1747. # Check for configure.gnu first; this name is used for a wrapper for
  1748. # Metaconfig's "Configure" on case-insensitive file systems.
  1749. if test -f "$ac_srcdir/configure.gnu"; then
  1750. echo &&
  1751. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1752. elif test -f "$ac_srcdir/configure"; then
  1753. echo &&
  1754. $SHELL "$ac_srcdir/configure" --help=recursive
  1755. else
  1756. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1757. fi || ac_status=$?
  1758. cd "$ac_pwd" || { ac_status=$?; break; }
  1759. done
  1760. fi
  1761. test -n "$ac_init_help" && exit $ac_status
  1762. if $ac_init_version; then
  1763. cat <<\_ACEOF
  1764. configure
  1765. generated by GNU Autoconf 2.71
  1766. Copyright (C) 2021 Free Software Foundation, Inc.
  1767. This configure script is free software; the Free Software Foundation
  1768. gives unlimited permission to copy, distribute and modify it.
  1769. _ACEOF
  1770. exit
  1771. fi
  1772. ## ------------------------ ##
  1773. ## Autoconf initialization. ##
  1774. ## ------------------------ ##
  1775. # ac_fn_c_try_compile LINENO
  1776. # --------------------------
  1777. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1778. ac_fn_c_try_compile ()
  1779. {
  1780. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1781. rm -f conftest.$ac_objext conftest.beam
  1782. if { { ac_try="$ac_compile"
  1783. case "(($ac_try" in
  1784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1785. *) ac_try_echo=$ac_try;;
  1786. esac
  1787. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1788. printf "%s\n" "$ac_try_echo"; } >&5
  1789. (eval "$ac_compile") 2>conftest.err
  1790. ac_status=$?
  1791. if test -s conftest.err; then
  1792. grep -v '^ *+' conftest.err >conftest.er1
  1793. cat conftest.er1 >&5
  1794. mv -f conftest.er1 conftest.err
  1795. fi
  1796. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1797. test $ac_status = 0; } && {
  1798. test -z "$ac_c_werror_flag" ||
  1799. test ! -s conftest.err
  1800. } && test -s conftest.$ac_objext
  1801. then :
  1802. ac_retval=0
  1803. else $as_nop
  1804. printf "%s\n" "$as_me: failed program was:" >&5
  1805. sed 's/^/| /' conftest.$ac_ext >&5
  1806. ac_retval=1
  1807. fi
  1808. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1809. as_fn_set_status $ac_retval
  1810. } # ac_fn_c_try_compile
  1811. # ac_fn_c_try_link LINENO
  1812. # -----------------------
  1813. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1814. ac_fn_c_try_link ()
  1815. {
  1816. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1817. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1818. if { { ac_try="$ac_link"
  1819. case "(($ac_try" in
  1820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1821. *) ac_try_echo=$ac_try;;
  1822. esac
  1823. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1824. printf "%s\n" "$ac_try_echo"; } >&5
  1825. (eval "$ac_link") 2>conftest.err
  1826. ac_status=$?
  1827. if test -s conftest.err; then
  1828. grep -v '^ *+' conftest.err >conftest.er1
  1829. cat conftest.er1 >&5
  1830. mv -f conftest.er1 conftest.err
  1831. fi
  1832. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1833. test $ac_status = 0; } && {
  1834. test -z "$ac_c_werror_flag" ||
  1835. test ! -s conftest.err
  1836. } && test -s conftest$ac_exeext && {
  1837. test "$cross_compiling" = yes ||
  1838. test -x conftest$ac_exeext
  1839. }
  1840. then :
  1841. ac_retval=0
  1842. else $as_nop
  1843. printf "%s\n" "$as_me: failed program was:" >&5
  1844. sed 's/^/| /' conftest.$ac_ext >&5
  1845. ac_retval=1
  1846. fi
  1847. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1848. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1849. # interfere with the next link command; also delete a directory that is
  1850. # left behind by Apple's compiler. We do this before executing the actions.
  1851. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1852. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1853. as_fn_set_status $ac_retval
  1854. } # ac_fn_c_try_link
  1855. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1856. # -------------------------------------------------------
  1857. # Tests whether HEADER exists and can be compiled using the include files in
  1858. # INCLUDES, setting the cache variable VAR accordingly.
  1859. ac_fn_c_check_header_compile ()
  1860. {
  1861. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1863. printf %s "checking for $2... " >&6; }
  1864. if eval test \${$3+y}
  1865. then :
  1866. printf %s "(cached) " >&6
  1867. else $as_nop
  1868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1869. /* end confdefs.h. */
  1870. $4
  1871. #include <$2>
  1872. _ACEOF
  1873. if ac_fn_c_try_compile "$LINENO"
  1874. then :
  1875. eval "$3=yes"
  1876. else $as_nop
  1877. eval "$3=no"
  1878. fi
  1879. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1880. fi
  1881. eval ac_res=\$$3
  1882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1883. printf "%s\n" "$ac_res" >&6; }
  1884. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1885. } # ac_fn_c_check_header_compile
  1886. # ac_fn_c_check_func LINENO FUNC VAR
  1887. # ----------------------------------
  1888. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1889. ac_fn_c_check_func ()
  1890. {
  1891. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1893. printf %s "checking for $2... " >&6; }
  1894. if eval test \${$3+y}
  1895. then :
  1896. printf %s "(cached) " >&6
  1897. else $as_nop
  1898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1899. /* end confdefs.h. */
  1900. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1901. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1902. #define $2 innocuous_$2
  1903. /* System header to define __stub macros and hopefully few prototypes,
  1904. which can conflict with char $2 (); below. */
  1905. #include <limits.h>
  1906. #undef $2
  1907. /* Override any GCC internal prototype to avoid an error.
  1908. Use char because int might match the return type of a GCC
  1909. builtin and then its argument prototype would still apply. */
  1910. #ifdef __cplusplus
  1911. extern "C"
  1912. #endif
  1913. char $2 ();
  1914. /* The GNU C library defines this for functions which it implements
  1915. to always fail with ENOSYS. Some functions are actually named
  1916. something starting with __ and the normal name is an alias. */
  1917. #if defined __stub_$2 || defined __stub___$2
  1918. choke me
  1919. #endif
  1920. int
  1921. main (void)
  1922. {
  1923. return $2 ();
  1924. ;
  1925. return 0;
  1926. }
  1927. _ACEOF
  1928. if ac_fn_c_try_link "$LINENO"
  1929. then :
  1930. eval "$3=yes"
  1931. else $as_nop
  1932. eval "$3=no"
  1933. fi
  1934. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1935. conftest$ac_exeext conftest.$ac_ext
  1936. fi
  1937. eval ac_res=\$$3
  1938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1939. printf "%s\n" "$ac_res" >&6; }
  1940. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1941. } # ac_fn_c_check_func
  1942. # ac_fn_cxx_try_compile LINENO
  1943. # ----------------------------
  1944. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1945. ac_fn_cxx_try_compile ()
  1946. {
  1947. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1948. rm -f conftest.$ac_objext conftest.beam
  1949. if { { ac_try="$ac_compile"
  1950. case "(($ac_try" in
  1951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1952. *) ac_try_echo=$ac_try;;
  1953. esac
  1954. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1955. printf "%s\n" "$ac_try_echo"; } >&5
  1956. (eval "$ac_compile") 2>conftest.err
  1957. ac_status=$?
  1958. if test -s conftest.err; then
  1959. grep -v '^ *+' conftest.err >conftest.er1
  1960. cat conftest.er1 >&5
  1961. mv -f conftest.er1 conftest.err
  1962. fi
  1963. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1964. test $ac_status = 0; } && {
  1965. test -z "$ac_cxx_werror_flag" ||
  1966. test ! -s conftest.err
  1967. } && test -s conftest.$ac_objext
  1968. then :
  1969. ac_retval=0
  1970. else $as_nop
  1971. printf "%s\n" "$as_me: failed program was:" >&5
  1972. sed 's/^/| /' conftest.$ac_ext >&5
  1973. ac_retval=1
  1974. fi
  1975. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1976. as_fn_set_status $ac_retval
  1977. } # ac_fn_cxx_try_compile
  1978. # ac_fn_cxx_try_cpp LINENO
  1979. # ------------------------
  1980. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1981. ac_fn_cxx_try_cpp ()
  1982. {
  1983. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1984. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1985. case "(($ac_try" in
  1986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1987. *) ac_try_echo=$ac_try;;
  1988. esac
  1989. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1990. printf "%s\n" "$ac_try_echo"; } >&5
  1991. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1992. ac_status=$?
  1993. if test -s conftest.err; then
  1994. grep -v '^ *+' conftest.err >conftest.er1
  1995. cat conftest.er1 >&5
  1996. mv -f conftest.er1 conftest.err
  1997. fi
  1998. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1999. test $ac_status = 0; } > conftest.i && {
  2000. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2001. test ! -s conftest.err
  2002. }
  2003. then :
  2004. ac_retval=0
  2005. else $as_nop
  2006. printf "%s\n" "$as_me: failed program was:" >&5
  2007. sed 's/^/| /' conftest.$ac_ext >&5
  2008. ac_retval=1
  2009. fi
  2010. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2011. as_fn_set_status $ac_retval
  2012. } # ac_fn_cxx_try_cpp
  2013. # ac_fn_cxx_try_link LINENO
  2014. # -------------------------
  2015. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2016. ac_fn_cxx_try_link ()
  2017. {
  2018. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2019. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2020. if { { ac_try="$ac_link"
  2021. case "(($ac_try" in
  2022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2023. *) ac_try_echo=$ac_try;;
  2024. esac
  2025. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2026. printf "%s\n" "$ac_try_echo"; } >&5
  2027. (eval "$ac_link") 2>conftest.err
  2028. ac_status=$?
  2029. if test -s conftest.err; then
  2030. grep -v '^ *+' conftest.err >conftest.er1
  2031. cat conftest.er1 >&5
  2032. mv -f conftest.er1 conftest.err
  2033. fi
  2034. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2035. test $ac_status = 0; } && {
  2036. test -z "$ac_cxx_werror_flag" ||
  2037. test ! -s conftest.err
  2038. } && test -s conftest$ac_exeext && {
  2039. test "$cross_compiling" = yes ||
  2040. test -x conftest$ac_exeext
  2041. }
  2042. then :
  2043. ac_retval=0
  2044. else $as_nop
  2045. printf "%s\n" "$as_me: failed program was:" >&5
  2046. sed 's/^/| /' conftest.$ac_ext >&5
  2047. ac_retval=1
  2048. fi
  2049. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2050. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2051. # interfere with the next link command; also delete a directory that is
  2052. # left behind by Apple's compiler. We do this before executing the actions.
  2053. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2054. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2055. as_fn_set_status $ac_retval
  2056. } # ac_fn_cxx_try_link
  2057. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2058. # -------------------------------------------
  2059. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2060. # variable VAR accordingly.
  2061. ac_fn_c_check_type ()
  2062. {
  2063. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2065. printf %s "checking for $2... " >&6; }
  2066. if eval test \${$3+y}
  2067. then :
  2068. printf %s "(cached) " >&6
  2069. else $as_nop
  2070. eval "$3=no"
  2071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2072. /* end confdefs.h. */
  2073. $4
  2074. int
  2075. main (void)
  2076. {
  2077. if (sizeof ($2))
  2078. return 0;
  2079. ;
  2080. return 0;
  2081. }
  2082. _ACEOF
  2083. if ac_fn_c_try_compile "$LINENO"
  2084. then :
  2085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2086. /* end confdefs.h. */
  2087. $4
  2088. int
  2089. main (void)
  2090. {
  2091. if (sizeof (($2)))
  2092. return 0;
  2093. ;
  2094. return 0;
  2095. }
  2096. _ACEOF
  2097. if ac_fn_c_try_compile "$LINENO"
  2098. then :
  2099. else $as_nop
  2100. eval "$3=yes"
  2101. fi
  2102. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2103. fi
  2104. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2105. fi
  2106. eval ac_res=\$$3
  2107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2108. printf "%s\n" "$ac_res" >&6; }
  2109. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2110. } # ac_fn_c_check_type
  2111. # ac_fn_c_try_cpp LINENO
  2112. # ----------------------
  2113. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2114. ac_fn_c_try_cpp ()
  2115. {
  2116. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2117. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2118. case "(($ac_try" in
  2119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2120. *) ac_try_echo=$ac_try;;
  2121. esac
  2122. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2123. printf "%s\n" "$ac_try_echo"; } >&5
  2124. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2125. ac_status=$?
  2126. if test -s conftest.err; then
  2127. grep -v '^ *+' conftest.err >conftest.er1
  2128. cat conftest.er1 >&5
  2129. mv -f conftest.er1 conftest.err
  2130. fi
  2131. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2132. test $ac_status = 0; } > conftest.i && {
  2133. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2134. test ! -s conftest.err
  2135. }
  2136. then :
  2137. ac_retval=0
  2138. else $as_nop
  2139. printf "%s\n" "$as_me: failed program was:" >&5
  2140. sed 's/^/| /' conftest.$ac_ext >&5
  2141. ac_retval=1
  2142. fi
  2143. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2144. as_fn_set_status $ac_retval
  2145. } # ac_fn_c_try_cpp
  2146. # ac_fn_c_try_run LINENO
  2147. # ----------------------
  2148. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2149. # executables *can* be run.
  2150. ac_fn_c_try_run ()
  2151. {
  2152. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2153. if { { ac_try="$ac_link"
  2154. case "(($ac_try" in
  2155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2156. *) ac_try_echo=$ac_try;;
  2157. esac
  2158. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2159. printf "%s\n" "$ac_try_echo"; } >&5
  2160. (eval "$ac_link") 2>&5
  2161. ac_status=$?
  2162. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2163. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2164. { { case "(($ac_try" in
  2165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2166. *) ac_try_echo=$ac_try;;
  2167. esac
  2168. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2169. printf "%s\n" "$ac_try_echo"; } >&5
  2170. (eval "$ac_try") 2>&5
  2171. ac_status=$?
  2172. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2173. test $ac_status = 0; }; }
  2174. then :
  2175. ac_retval=0
  2176. else $as_nop
  2177. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2178. printf "%s\n" "$as_me: failed program was:" >&5
  2179. sed 's/^/| /' conftest.$ac_ext >&5
  2180. ac_retval=$ac_status
  2181. fi
  2182. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2183. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2184. as_fn_set_status $ac_retval
  2185. } # ac_fn_c_try_run
  2186. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2187. # ----------------------------------------------------
  2188. # Tries to find if the field MEMBER exists in type AGGR, after including
  2189. # INCLUDES, setting cache variable VAR accordingly.
  2190. ac_fn_c_check_member ()
  2191. {
  2192. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2194. printf %s "checking for $2.$3... " >&6; }
  2195. if eval test \${$4+y}
  2196. then :
  2197. printf %s "(cached) " >&6
  2198. else $as_nop
  2199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2200. /* end confdefs.h. */
  2201. $5
  2202. int
  2203. main (void)
  2204. {
  2205. static $2 ac_aggr;
  2206. if (ac_aggr.$3)
  2207. return 0;
  2208. ;
  2209. return 0;
  2210. }
  2211. _ACEOF
  2212. if ac_fn_c_try_compile "$LINENO"
  2213. then :
  2214. eval "$4=yes"
  2215. else $as_nop
  2216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2217. /* end confdefs.h. */
  2218. $5
  2219. int
  2220. main (void)
  2221. {
  2222. static $2 ac_aggr;
  2223. if (sizeof ac_aggr.$3)
  2224. return 0;
  2225. ;
  2226. return 0;
  2227. }
  2228. _ACEOF
  2229. if ac_fn_c_try_compile "$LINENO"
  2230. then :
  2231. eval "$4=yes"
  2232. else $as_nop
  2233. eval "$4=no"
  2234. fi
  2235. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2236. fi
  2237. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2238. fi
  2239. eval ac_res=\$$4
  2240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2241. printf "%s\n" "$ac_res" >&6; }
  2242. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2243. } # ac_fn_c_check_member
  2244. ac_configure_args_raw=
  2245. for ac_arg
  2246. do
  2247. case $ac_arg in
  2248. *\'*)
  2249. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2250. esac
  2251. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2252. done
  2253. case $ac_configure_args_raw in
  2254. *$as_nl*)
  2255. ac_safe_unquote= ;;
  2256. *)
  2257. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2258. ac_unsafe_a="$ac_unsafe_z#~"
  2259. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2260. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2261. esac
  2262. cat >config.log <<_ACEOF
  2263. This file contains any messages produced by compilers while
  2264. running configure, to aid debugging if configure makes a mistake.
  2265. It was created by $as_me, which was
  2266. generated by GNU Autoconf 2.71. Invocation command line was
  2267. $ $0$ac_configure_args_raw
  2268. _ACEOF
  2269. exec 5>>config.log
  2270. {
  2271. cat <<_ASUNAME
  2272. ## --------- ##
  2273. ## Platform. ##
  2274. ## --------- ##
  2275. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2276. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2277. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2278. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2279. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2280. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2281. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2282. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2283. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2284. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2285. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2286. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2287. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2288. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2289. _ASUNAME
  2290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2291. for as_dir in $PATH
  2292. do
  2293. IFS=$as_save_IFS
  2294. case $as_dir in #(((
  2295. '') as_dir=./ ;;
  2296. */) ;;
  2297. *) as_dir=$as_dir/ ;;
  2298. esac
  2299. printf "%s\n" "PATH: $as_dir"
  2300. done
  2301. IFS=$as_save_IFS
  2302. } >&5
  2303. cat >&5 <<_ACEOF
  2304. ## ----------- ##
  2305. ## Core tests. ##
  2306. ## ----------- ##
  2307. _ACEOF
  2308. # Keep a trace of the command line.
  2309. # Strip out --no-create and --no-recursion so they do not pile up.
  2310. # Strip out --silent because we don't want to record it for future runs.
  2311. # Also quote any args containing shell meta-characters.
  2312. # Make two passes to allow for proper duplicate-argument suppression.
  2313. ac_configure_args=
  2314. ac_configure_args0=
  2315. ac_configure_args1=
  2316. ac_must_keep_next=false
  2317. for ac_pass in 1 2
  2318. do
  2319. for ac_arg
  2320. do
  2321. case $ac_arg in
  2322. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2323. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2324. | -silent | --silent | --silen | --sile | --sil)
  2325. continue ;;
  2326. *\'*)
  2327. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2328. esac
  2329. case $ac_pass in
  2330. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2331. 2)
  2332. as_fn_append ac_configure_args1 " '$ac_arg'"
  2333. if test $ac_must_keep_next = true; then
  2334. ac_must_keep_next=false # Got value, back to normal.
  2335. else
  2336. case $ac_arg in
  2337. *=* | --config-cache | -C | -disable-* | --disable-* \
  2338. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2339. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2340. | -with-* | --with-* | -without-* | --without-* | --x)
  2341. case "$ac_configure_args0 " in
  2342. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2343. esac
  2344. ;;
  2345. -* ) ac_must_keep_next=true ;;
  2346. esac
  2347. fi
  2348. as_fn_append ac_configure_args " '$ac_arg'"
  2349. ;;
  2350. esac
  2351. done
  2352. done
  2353. { ac_configure_args0=; unset ac_configure_args0;}
  2354. { ac_configure_args1=; unset ac_configure_args1;}
  2355. # When interrupted or exit'd, cleanup temporary files, and complete
  2356. # config.log. We remove comments because anyway the quotes in there
  2357. # would cause problems or look ugly.
  2358. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2359. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2360. trap 'exit_status=$?
  2361. # Sanitize IFS.
  2362. IFS=" "" $as_nl"
  2363. # Save into config.log some information that might help in debugging.
  2364. {
  2365. echo
  2366. printf "%s\n" "## ---------------- ##
  2367. ## Cache variables. ##
  2368. ## ---------------- ##"
  2369. echo
  2370. # The following way of writing the cache mishandles newlines in values,
  2371. (
  2372. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2373. eval ac_val=\$$ac_var
  2374. case $ac_val in #(
  2375. *${as_nl}*)
  2376. case $ac_var in #(
  2377. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2378. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2379. esac
  2380. case $ac_var in #(
  2381. _ | IFS | as_nl) ;; #(
  2382. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2383. *) { eval $ac_var=; unset $ac_var;} ;;
  2384. esac ;;
  2385. esac
  2386. done
  2387. (set) 2>&1 |
  2388. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2389. *${as_nl}ac_space=\ *)
  2390. sed -n \
  2391. "s/'\''/'\''\\\\'\'''\''/g;
  2392. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2393. ;; #(
  2394. *)
  2395. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2396. ;;
  2397. esac |
  2398. sort
  2399. )
  2400. echo
  2401. printf "%s\n" "## ----------------- ##
  2402. ## Output variables. ##
  2403. ## ----------------- ##"
  2404. echo
  2405. for ac_var in $ac_subst_vars
  2406. do
  2407. eval ac_val=\$$ac_var
  2408. case $ac_val in
  2409. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2410. esac
  2411. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2412. done | sort
  2413. echo
  2414. if test -n "$ac_subst_files"; then
  2415. printf "%s\n" "## ------------------- ##
  2416. ## File substitutions. ##
  2417. ## ------------------- ##"
  2418. echo
  2419. for ac_var in $ac_subst_files
  2420. do
  2421. eval ac_val=\$$ac_var
  2422. case $ac_val in
  2423. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2424. esac
  2425. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2426. done | sort
  2427. echo
  2428. fi
  2429. if test -s confdefs.h; then
  2430. printf "%s\n" "## ----------- ##
  2431. ## confdefs.h. ##
  2432. ## ----------- ##"
  2433. echo
  2434. cat confdefs.h
  2435. echo
  2436. fi
  2437. test "$ac_signal" != 0 &&
  2438. printf "%s\n" "$as_me: caught signal $ac_signal"
  2439. printf "%s\n" "$as_me: exit $exit_status"
  2440. } >&5
  2441. rm -f core *.core core.conftest.* &&
  2442. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2443. exit $exit_status
  2444. ' 0
  2445. for ac_signal in 1 2 13 15; do
  2446. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2447. done
  2448. ac_signal=0
  2449. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2450. rm -f -r conftest* confdefs.h
  2451. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2452. # Predefined preprocessor variables.
  2453. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2454. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2455. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2456. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2457. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2458. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2459. # Let the site file select an alternate cache file if it wants to.
  2460. # Prefer an explicitly selected file to automatically selected ones.
  2461. if test -n "$CONFIG_SITE"; then
  2462. ac_site_files="$CONFIG_SITE"
  2463. elif test "x$prefix" != xNONE; then
  2464. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2465. else
  2466. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2467. fi
  2468. for ac_site_file in $ac_site_files
  2469. do
  2470. case $ac_site_file in #(
  2471. */*) :
  2472. ;; #(
  2473. *) :
  2474. ac_site_file=./$ac_site_file ;;
  2475. esac
  2476. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2478. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2479. sed 's/^/| /' "$ac_site_file" >&5
  2480. . "$ac_site_file" \
  2481. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2482. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2483. as_fn_error $? "failed to load site script $ac_site_file
  2484. See \`config.log' for more details" "$LINENO" 5; }
  2485. fi
  2486. done
  2487. if test -r "$cache_file"; then
  2488. # Some versions of bash will fail to source /dev/null (special files
  2489. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2490. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2492. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2493. case $cache_file in
  2494. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2495. *) . "./$cache_file";;
  2496. esac
  2497. fi
  2498. else
  2499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2500. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2501. >$cache_file
  2502. fi
  2503. # Test code for whether the C compiler supports C89 (global declarations)
  2504. ac_c_conftest_c89_globals='
  2505. /* Does the compiler advertise C89 conformance?
  2506. Do not test the value of __STDC__, because some compilers set it to 0
  2507. while being otherwise adequately conformant. */
  2508. #if !defined __STDC__
  2509. # error "Compiler does not advertise C89 conformance"
  2510. #endif
  2511. #include <stddef.h>
  2512. #include <stdarg.h>
  2513. struct stat;
  2514. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2515. struct buf { int x; };
  2516. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2517. static char *e (p, i)
  2518. char **p;
  2519. int i;
  2520. {
  2521. return p[i];
  2522. }
  2523. static char *f (char * (*g) (char **, int), char **p, ...)
  2524. {
  2525. char *s;
  2526. va_list v;
  2527. va_start (v,p);
  2528. s = g (p, va_arg (v,int));
  2529. va_end (v);
  2530. return s;
  2531. }
  2532. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2533. function prototypes and stuff, but not \xHH hex character constants.
  2534. These do not provoke an error unfortunately, instead are silently treated
  2535. as an "x". The following induces an error, until -std is added to get
  2536. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2537. array size at least. It is necessary to write \x00 == 0 to get something
  2538. that is true only with -std. */
  2539. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2540. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2541. inside strings and character constants. */
  2542. #define FOO(x) '\''x'\''
  2543. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2544. int test (int i, double x);
  2545. struct s1 {int (*f) (int a);};
  2546. struct s2 {int (*f) (double a);};
  2547. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2548. int, int);'
  2549. # Test code for whether the C compiler supports C89 (body of main).
  2550. ac_c_conftest_c89_main='
  2551. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2552. '
  2553. # Test code for whether the C compiler supports C99 (global declarations)
  2554. ac_c_conftest_c99_globals='
  2555. // Does the compiler advertise C99 conformance?
  2556. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2557. # error "Compiler does not advertise C99 conformance"
  2558. #endif
  2559. #include <stdbool.h>
  2560. extern int puts (const char *);
  2561. extern int printf (const char *, ...);
  2562. extern int dprintf (int, const char *, ...);
  2563. extern void *malloc (size_t);
  2564. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2565. // dprintf is used instead of fprintf to avoid needing to declare
  2566. // FILE and stderr.
  2567. #define debug(...) dprintf (2, __VA_ARGS__)
  2568. #define showlist(...) puts (#__VA_ARGS__)
  2569. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2570. static void
  2571. test_varargs_macros (void)
  2572. {
  2573. int x = 1234;
  2574. int y = 5678;
  2575. debug ("Flag");
  2576. debug ("X = %d\n", x);
  2577. showlist (The first, second, and third items.);
  2578. report (x>y, "x is %d but y is %d", x, y);
  2579. }
  2580. // Check long long types.
  2581. #define BIG64 18446744073709551615ull
  2582. #define BIG32 4294967295ul
  2583. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2584. #if !BIG_OK
  2585. #error "your preprocessor is broken"
  2586. #endif
  2587. #if BIG_OK
  2588. #else
  2589. #error "your preprocessor is broken"
  2590. #endif
  2591. static long long int bignum = -9223372036854775807LL;
  2592. static unsigned long long int ubignum = BIG64;
  2593. struct incomplete_array
  2594. {
  2595. int datasize;
  2596. double data[];
  2597. };
  2598. struct named_init {
  2599. int number;
  2600. const wchar_t *name;
  2601. double average;
  2602. };
  2603. typedef const char *ccp;
  2604. static inline int
  2605. test_restrict (ccp restrict text)
  2606. {
  2607. // See if C++-style comments work.
  2608. // Iterate through items via the restricted pointer.
  2609. // Also check for declarations in for loops.
  2610. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2611. continue;
  2612. return 0;
  2613. }
  2614. // Check varargs and va_copy.
  2615. static bool
  2616. test_varargs (const char *format, ...)
  2617. {
  2618. va_list args;
  2619. va_start (args, format);
  2620. va_list args_copy;
  2621. va_copy (args_copy, args);
  2622. const char *str = "";
  2623. int number = 0;
  2624. float fnumber = 0;
  2625. while (*format)
  2626. {
  2627. switch (*format++)
  2628. {
  2629. case '\''s'\'': // string
  2630. str = va_arg (args_copy, const char *);
  2631. break;
  2632. case '\''d'\'': // int
  2633. number = va_arg (args_copy, int);
  2634. break;
  2635. case '\''f'\'': // float
  2636. fnumber = va_arg (args_copy, double);
  2637. break;
  2638. default:
  2639. break;
  2640. }
  2641. }
  2642. va_end (args_copy);
  2643. va_end (args);
  2644. return *str && number && fnumber;
  2645. }
  2646. '
  2647. # Test code for whether the C compiler supports C99 (body of main).
  2648. ac_c_conftest_c99_main='
  2649. // Check bool.
  2650. _Bool success = false;
  2651. success |= (argc != 0);
  2652. // Check restrict.
  2653. if (test_restrict ("String literal") == 0)
  2654. success = true;
  2655. char *restrict newvar = "Another string";
  2656. // Check varargs.
  2657. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2658. test_varargs_macros ();
  2659. // Check flexible array members.
  2660. struct incomplete_array *ia =
  2661. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2662. ia->datasize = 10;
  2663. for (int i = 0; i < ia->datasize; ++i)
  2664. ia->data[i] = i * 1.234;
  2665. // Check named initializers.
  2666. struct named_init ni = {
  2667. .number = 34,
  2668. .name = L"Test wide string",
  2669. .average = 543.34343,
  2670. };
  2671. ni.number = 58;
  2672. int dynamic_array[ni.number];
  2673. dynamic_array[0] = argv[0][0];
  2674. dynamic_array[ni.number - 1] = 543;
  2675. // work around unused variable warnings
  2676. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2677. || dynamic_array[ni.number - 1] != 543);
  2678. '
  2679. # Test code for whether the C compiler supports C11 (global declarations)
  2680. ac_c_conftest_c11_globals='
  2681. // Does the compiler advertise C11 conformance?
  2682. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2683. # error "Compiler does not advertise C11 conformance"
  2684. #endif
  2685. // Check _Alignas.
  2686. char _Alignas (double) aligned_as_double;
  2687. char _Alignas (0) no_special_alignment;
  2688. extern char aligned_as_int;
  2689. char _Alignas (0) _Alignas (int) aligned_as_int;
  2690. // Check _Alignof.
  2691. enum
  2692. {
  2693. int_alignment = _Alignof (int),
  2694. int_array_alignment = _Alignof (int[100]),
  2695. char_alignment = _Alignof (char)
  2696. };
  2697. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2698. // Check _Noreturn.
  2699. int _Noreturn does_not_return (void) { for (;;) continue; }
  2700. // Check _Static_assert.
  2701. struct test_static_assert
  2702. {
  2703. int x;
  2704. _Static_assert (sizeof (int) <= sizeof (long int),
  2705. "_Static_assert does not work in struct");
  2706. long int y;
  2707. };
  2708. // Check UTF-8 literals.
  2709. #define u8 syntax error!
  2710. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2711. // Check duplicate typedefs.
  2712. typedef long *long_ptr;
  2713. typedef long int *long_ptr;
  2714. typedef long_ptr long_ptr;
  2715. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2716. struct anonymous
  2717. {
  2718. union {
  2719. struct { int i; int j; };
  2720. struct { int k; long int l; } w;
  2721. };
  2722. int m;
  2723. } v1;
  2724. '
  2725. # Test code for whether the C compiler supports C11 (body of main).
  2726. ac_c_conftest_c11_main='
  2727. _Static_assert ((offsetof (struct anonymous, i)
  2728. == offsetof (struct anonymous, w.k)),
  2729. "Anonymous union alignment botch");
  2730. v1.i = 2;
  2731. v1.w.k = 5;
  2732. ok |= v1.i != 5;
  2733. '
  2734. # Test code for whether the C compiler supports C11 (complete).
  2735. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2736. ${ac_c_conftest_c99_globals}
  2737. ${ac_c_conftest_c11_globals}
  2738. int
  2739. main (int argc, char **argv)
  2740. {
  2741. int ok = 0;
  2742. ${ac_c_conftest_c89_main}
  2743. ${ac_c_conftest_c99_main}
  2744. ${ac_c_conftest_c11_main}
  2745. return ok;
  2746. }
  2747. "
  2748. # Test code for whether the C compiler supports C99 (complete).
  2749. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2750. ${ac_c_conftest_c99_globals}
  2751. int
  2752. main (int argc, char **argv)
  2753. {
  2754. int ok = 0;
  2755. ${ac_c_conftest_c89_main}
  2756. ${ac_c_conftest_c99_main}
  2757. return ok;
  2758. }
  2759. "
  2760. # Test code for whether the C compiler supports C89 (complete).
  2761. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2762. int
  2763. main (int argc, char **argv)
  2764. {
  2765. int ok = 0;
  2766. ${ac_c_conftest_c89_main}
  2767. return ok;
  2768. }
  2769. "
  2770. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2771. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2772. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2773. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2774. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2775. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2776. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2777. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2778. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2779. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2780. ac_cxx_conftest_cxx98_globals='
  2781. // Does the compiler advertise C++98 conformance?
  2782. #if !defined __cplusplus || __cplusplus < 199711L
  2783. # error "Compiler does not advertise C++98 conformance"
  2784. #endif
  2785. // These inclusions are to reject old compilers that
  2786. // lack the unsuffixed header files.
  2787. #include <cstdlib>
  2788. #include <exception>
  2789. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2790. extern void assert (int);
  2791. namespace std {
  2792. extern int strcmp (const char *, const char *);
  2793. }
  2794. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2795. using std::exception;
  2796. using std::strcmp;
  2797. namespace {
  2798. void test_exception_syntax()
  2799. {
  2800. try {
  2801. throw "test";
  2802. } catch (const char *s) {
  2803. // Extra parentheses suppress a warning when building autoconf itself,
  2804. // due to lint rules shared with more typical C programs.
  2805. assert (!(strcmp) (s, "test"));
  2806. }
  2807. }
  2808. template <typename T> struct test_template
  2809. {
  2810. T const val;
  2811. explicit test_template(T t) : val(t) {}
  2812. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2813. };
  2814. } // anonymous namespace
  2815. '
  2816. # Test code for whether the C++ compiler supports C++98 (body of main)
  2817. ac_cxx_conftest_cxx98_main='
  2818. assert (argc);
  2819. assert (! argv[0]);
  2820. {
  2821. test_exception_syntax ();
  2822. test_template<double> tt (2.0);
  2823. assert (tt.add (4) == 6.0);
  2824. assert (true && !false);
  2825. }
  2826. '
  2827. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2828. ac_cxx_conftest_cxx11_globals='
  2829. // Does the compiler advertise C++ 2011 conformance?
  2830. #if !defined __cplusplus || __cplusplus < 201103L
  2831. # error "Compiler does not advertise C++11 conformance"
  2832. #endif
  2833. namespace cxx11test
  2834. {
  2835. constexpr int get_val() { return 20; }
  2836. struct testinit
  2837. {
  2838. int i;
  2839. double d;
  2840. };
  2841. class delegate
  2842. {
  2843. public:
  2844. delegate(int n) : n(n) {}
  2845. delegate(): delegate(2354) {}
  2846. virtual int getval() { return this->n; };
  2847. protected:
  2848. int n;
  2849. };
  2850. class overridden : public delegate
  2851. {
  2852. public:
  2853. overridden(int n): delegate(n) {}
  2854. virtual int getval() override final { return this->n * 2; }
  2855. };
  2856. class nocopy
  2857. {
  2858. public:
  2859. nocopy(int i): i(i) {}
  2860. nocopy() = default;
  2861. nocopy(const nocopy&) = delete;
  2862. nocopy & operator=(const nocopy&) = delete;
  2863. private:
  2864. int i;
  2865. };
  2866. // for testing lambda expressions
  2867. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2868. {
  2869. return f(v);
  2870. }
  2871. // for testing variadic templates and trailing return types
  2872. template <typename V> auto sum(V first) -> V
  2873. {
  2874. return first;
  2875. }
  2876. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2877. {
  2878. return first + sum(rest...);
  2879. }
  2880. }
  2881. '
  2882. # Test code for whether the C++ compiler supports C++11 (body of main)
  2883. ac_cxx_conftest_cxx11_main='
  2884. {
  2885. // Test auto and decltype
  2886. auto a1 = 6538;
  2887. auto a2 = 48573953.4;
  2888. auto a3 = "String literal";
  2889. int total = 0;
  2890. for (auto i = a3; *i; ++i) { total += *i; }
  2891. decltype(a2) a4 = 34895.034;
  2892. }
  2893. {
  2894. // Test constexpr
  2895. short sa[cxx11test::get_val()] = { 0 };
  2896. }
  2897. {
  2898. // Test initializer lists
  2899. cxx11test::testinit il = { 4323, 435234.23544 };
  2900. }
  2901. {
  2902. // Test range-based for
  2903. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2904. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2905. for (auto &x : array) { x += 23; }
  2906. }
  2907. {
  2908. // Test lambda expressions
  2909. using cxx11test::eval;
  2910. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2911. double d = 2.0;
  2912. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2913. assert (d == 5.0);
  2914. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2915. assert (d == 5.0);
  2916. }
  2917. {
  2918. // Test use of variadic templates
  2919. using cxx11test::sum;
  2920. auto a = sum(1);
  2921. auto b = sum(1, 2);
  2922. auto c = sum(1.0, 2.0, 3.0);
  2923. }
  2924. {
  2925. // Test constructor delegation
  2926. cxx11test::delegate d1;
  2927. cxx11test::delegate d2();
  2928. cxx11test::delegate d3(45);
  2929. }
  2930. {
  2931. // Test override and final
  2932. cxx11test::overridden o1(55464);
  2933. }
  2934. {
  2935. // Test nullptr
  2936. char *c = nullptr;
  2937. }
  2938. {
  2939. // Test template brackets
  2940. test_template<::test_template<int>> v(test_template<int>(12));
  2941. }
  2942. {
  2943. // Unicode literals
  2944. char const *utf8 = u8"UTF-8 string \u2500";
  2945. char16_t const *utf16 = u"UTF-8 string \u2500";
  2946. char32_t const *utf32 = U"UTF-32 string \u2500";
  2947. }
  2948. '
  2949. # Test code for whether the C compiler supports C++11 (complete).
  2950. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2951. ${ac_cxx_conftest_cxx11_globals}
  2952. int
  2953. main (int argc, char **argv)
  2954. {
  2955. int ok = 0;
  2956. ${ac_cxx_conftest_cxx98_main}
  2957. ${ac_cxx_conftest_cxx11_main}
  2958. return ok;
  2959. }
  2960. "
  2961. # Test code for whether the C compiler supports C++98 (complete).
  2962. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2963. int
  2964. main (int argc, char **argv)
  2965. {
  2966. int ok = 0;
  2967. ${ac_cxx_conftest_cxx98_main}
  2968. return ok;
  2969. }
  2970. "
  2971. # Auxiliary files required by this configure script.
  2972. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2973. # Locations in which to look for auxiliary files.
  2974. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2975. # Search for a directory containing all of the required auxiliary files,
  2976. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2977. # If we don't find one directory that contains all the files we need,
  2978. # we report the set of missing files from the *first* directory in
  2979. # $ac_aux_dir_candidates and give up.
  2980. ac_missing_aux_files=""
  2981. ac_first_candidate=:
  2982. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2984. as_found=false
  2985. for as_dir in $ac_aux_dir_candidates
  2986. do
  2987. IFS=$as_save_IFS
  2988. case $as_dir in #(((
  2989. '') as_dir=./ ;;
  2990. */) ;;
  2991. *) as_dir=$as_dir/ ;;
  2992. esac
  2993. as_found=:
  2994. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2995. ac_aux_dir_found=yes
  2996. ac_install_sh=
  2997. for ac_aux in $ac_aux_files
  2998. do
  2999. # As a special case, if "install-sh" is required, that requirement
  3000. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3001. # and $ac_install_sh is set appropriately for whichever one is found.
  3002. if test x"$ac_aux" = x"install-sh"
  3003. then
  3004. if test -f "${as_dir}install-sh"; then
  3005. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3006. ac_install_sh="${as_dir}install-sh -c"
  3007. elif 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}shtool"; then
  3011. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3012. ac_install_sh="${as_dir}shtool install -c"
  3013. else
  3014. ac_aux_dir_found=no
  3015. if $ac_first_candidate; then
  3016. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3017. else
  3018. break
  3019. fi
  3020. fi
  3021. else
  3022. if test -f "${as_dir}${ac_aux}"; then
  3023. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3024. else
  3025. ac_aux_dir_found=no
  3026. if $ac_first_candidate; then
  3027. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3028. else
  3029. break
  3030. fi
  3031. fi
  3032. fi
  3033. done
  3034. if test "$ac_aux_dir_found" = yes; then
  3035. ac_aux_dir="$as_dir"
  3036. break
  3037. fi
  3038. ac_first_candidate=false
  3039. as_found=false
  3040. done
  3041. IFS=$as_save_IFS
  3042. if $as_found
  3043. then :
  3044. else $as_nop
  3045. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3046. fi
  3047. # These three variables are undocumented and unsupported,
  3048. # and are intended to be withdrawn in a future Autoconf release.
  3049. # They can cause serious problems if a builder's source tree is in a directory
  3050. # whose full name contains unusual characters.
  3051. if test -f "${ac_aux_dir}config.guess"; then
  3052. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3053. fi
  3054. if test -f "${ac_aux_dir}config.sub"; then
  3055. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3056. fi
  3057. if test -f "$ac_aux_dir/configure"; then
  3058. ac_configure="$SHELL ${ac_aux_dir}configure"
  3059. fi
  3060. # Check that the precious variables saved in the cache have kept the same
  3061. # value.
  3062. ac_cache_corrupted=false
  3063. for ac_var in $ac_precious_vars; do
  3064. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3065. eval ac_new_set=\$ac_env_${ac_var}_set
  3066. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3067. eval ac_new_val=\$ac_env_${ac_var}_value
  3068. case $ac_old_set,$ac_new_set in
  3069. set,)
  3070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3071. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3072. ac_cache_corrupted=: ;;
  3073. ,set)
  3074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3075. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3076. ac_cache_corrupted=: ;;
  3077. ,);;
  3078. *)
  3079. if test "x$ac_old_val" != "x$ac_new_val"; then
  3080. # differences in whitespace do not lead to failure.
  3081. ac_old_val_w=`echo x $ac_old_val`
  3082. ac_new_val_w=`echo x $ac_new_val`
  3083. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3085. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3086. ac_cache_corrupted=:
  3087. else
  3088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3089. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3090. eval $ac_var=\$ac_old_val
  3091. fi
  3092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3093. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3095. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3096. fi;;
  3097. esac
  3098. # Pass precious variables to config.status.
  3099. if test "$ac_new_set" = set; then
  3100. case $ac_new_val in
  3101. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3102. *) ac_arg=$ac_var=$ac_new_val ;;
  3103. esac
  3104. case " $ac_configure_args " in
  3105. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3106. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3107. esac
  3108. fi
  3109. done
  3110. if $ac_cache_corrupted; then
  3111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3112. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3114. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3115. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3116. and start over" "$LINENO" 5
  3117. fi
  3118. ## -------------------- ##
  3119. ## Main body of script. ##
  3120. ## -------------------- ##
  3121. ac_ext=c
  3122. ac_cpp='$CPP $CPPFLAGS'
  3123. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3124. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3125. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3126. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3127. orig_CFLAGS="$CFLAGS"
  3128. # See docs/release_checklist.md
  3129. SDL_MAJOR_VERSION=2
  3130. SDL_MINOR_VERSION=25
  3131. SDL_MICRO_VERSION=0
  3132. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3133. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3134. case "$SDL_MINOR_VERSION" in #(
  3135. *[02468]) :
  3136. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3137. *) :
  3138. SDL_INTERFACE_AGE=0 ;; #(
  3139. *) :
  3140. ;;
  3141. esac
  3142. # libtool versioning
  3143. case `pwd` in
  3144. *\ * | *\ *)
  3145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3146. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3147. esac
  3148. macro_version='2.4.6'
  3149. macro_revision='2.4.6'
  3150. ltmain=$ac_aux_dir/ltmain.sh
  3151. # Make sure we can run config.sub.
  3152. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3153. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3155. printf %s "checking build system type... " >&6; }
  3156. if test ${ac_cv_build+y}
  3157. then :
  3158. printf %s "(cached) " >&6
  3159. else $as_nop
  3160. ac_build_alias=$build_alias
  3161. test "x$ac_build_alias" = x &&
  3162. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3163. test "x$ac_build_alias" = x &&
  3164. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3165. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3166. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3167. fi
  3168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3169. printf "%s\n" "$ac_cv_build" >&6; }
  3170. case $ac_cv_build in
  3171. *-*-*) ;;
  3172. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3173. esac
  3174. build=$ac_cv_build
  3175. ac_save_IFS=$IFS; IFS='-'
  3176. set x $ac_cv_build
  3177. shift
  3178. build_cpu=$1
  3179. build_vendor=$2
  3180. shift; shift
  3181. # Remember, the first character of IFS is used to create $*,
  3182. # except with old shells:
  3183. build_os=$*
  3184. IFS=$ac_save_IFS
  3185. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3187. printf %s "checking host system type... " >&6; }
  3188. if test ${ac_cv_host+y}
  3189. then :
  3190. printf %s "(cached) " >&6
  3191. else $as_nop
  3192. if test "x$host_alias" = x; then
  3193. ac_cv_host=$ac_cv_build
  3194. else
  3195. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3196. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3197. fi
  3198. fi
  3199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3200. printf "%s\n" "$ac_cv_host" >&6; }
  3201. case $ac_cv_host in
  3202. *-*-*) ;;
  3203. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3204. esac
  3205. host=$ac_cv_host
  3206. ac_save_IFS=$IFS; IFS='-'
  3207. set x $ac_cv_host
  3208. shift
  3209. host_cpu=$1
  3210. host_vendor=$2
  3211. shift; shift
  3212. # Remember, the first character of IFS is used to create $*,
  3213. # except with old shells:
  3214. host_os=$*
  3215. IFS=$ac_save_IFS
  3216. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3217. # Backslashify metacharacters that are still active within
  3218. # double-quoted strings.
  3219. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3220. # Same as above, but do not quote variable references.
  3221. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3222. # Sed substitution to delay expansion of an escaped shell variable in a
  3223. # double_quote_subst'ed string.
  3224. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3225. # Sed substitution to delay expansion of an escaped single quote.
  3226. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3227. # Sed substitution to avoid accidental globbing in evaled expressions
  3228. no_glob_subst='s/\*/\\\*/g'
  3229. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3230. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3231. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3233. printf %s "checking how to print strings... " >&6; }
  3234. # Test print first, because it will be a builtin if present.
  3235. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3236. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3237. ECHO='print -r --'
  3238. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3239. ECHO='printf %s\n'
  3240. else
  3241. # Use this function as a fallback that always works.
  3242. func_fallback_echo ()
  3243. {
  3244. eval 'cat <<_LTECHO_EOF
  3245. $1
  3246. _LTECHO_EOF'
  3247. }
  3248. ECHO='func_fallback_echo'
  3249. fi
  3250. # func_echo_all arg...
  3251. # Invoke $ECHO with all args, space-separated.
  3252. func_echo_all ()
  3253. {
  3254. $ECHO ""
  3255. }
  3256. case $ECHO in
  3257. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3258. printf "%s\n" "printf" >&6; } ;;
  3259. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3260. printf "%s\n" "print -r" >&6; } ;;
  3261. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3262. printf "%s\n" "cat" >&6; } ;;
  3263. esac
  3264. ac_ext=c
  3265. ac_cpp='$CPP $CPPFLAGS'
  3266. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3267. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3268. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3269. if test -n "$ac_tool_prefix"; then
  3270. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3271. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3273. printf %s "checking for $ac_word... " >&6; }
  3274. if test ${ac_cv_prog_CC+y}
  3275. then :
  3276. printf %s "(cached) " >&6
  3277. else $as_nop
  3278. if test -n "$CC"; then
  3279. ac_cv_prog_CC="$CC" # Let the user override the test.
  3280. else
  3281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3282. for as_dir in $PATH
  3283. do
  3284. IFS=$as_save_IFS
  3285. case $as_dir in #(((
  3286. '') as_dir=./ ;;
  3287. */) ;;
  3288. *) as_dir=$as_dir/ ;;
  3289. esac
  3290. for ac_exec_ext in '' $ac_executable_extensions; do
  3291. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3292. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3293. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3294. break 2
  3295. fi
  3296. done
  3297. done
  3298. IFS=$as_save_IFS
  3299. fi
  3300. fi
  3301. CC=$ac_cv_prog_CC
  3302. if test -n "$CC"; then
  3303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3304. printf "%s\n" "$CC" >&6; }
  3305. else
  3306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3307. printf "%s\n" "no" >&6; }
  3308. fi
  3309. fi
  3310. if test -z "$ac_cv_prog_CC"; then
  3311. ac_ct_CC=$CC
  3312. # Extract the first word of "gcc", so it can be a program name with args.
  3313. set dummy gcc; ac_word=$2
  3314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3315. printf %s "checking for $ac_word... " >&6; }
  3316. if test ${ac_cv_prog_ac_ct_CC+y}
  3317. then :
  3318. printf %s "(cached) " >&6
  3319. else $as_nop
  3320. if test -n "$ac_ct_CC"; then
  3321. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3322. else
  3323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3324. for as_dir in $PATH
  3325. do
  3326. IFS=$as_save_IFS
  3327. case $as_dir in #(((
  3328. '') as_dir=./ ;;
  3329. */) ;;
  3330. *) as_dir=$as_dir/ ;;
  3331. esac
  3332. for ac_exec_ext in '' $ac_executable_extensions; do
  3333. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3334. ac_cv_prog_ac_ct_CC="gcc"
  3335. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3336. break 2
  3337. fi
  3338. done
  3339. done
  3340. IFS=$as_save_IFS
  3341. fi
  3342. fi
  3343. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3344. if test -n "$ac_ct_CC"; then
  3345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3346. printf "%s\n" "$ac_ct_CC" >&6; }
  3347. else
  3348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3349. printf "%s\n" "no" >&6; }
  3350. fi
  3351. if test "x$ac_ct_CC" = x; then
  3352. CC=""
  3353. else
  3354. case $cross_compiling:$ac_tool_warned in
  3355. yes:)
  3356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3357. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3358. ac_tool_warned=yes ;;
  3359. esac
  3360. CC=$ac_ct_CC
  3361. fi
  3362. else
  3363. CC="$ac_cv_prog_CC"
  3364. fi
  3365. if test -z "$CC"; then
  3366. if test -n "$ac_tool_prefix"; then
  3367. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3368. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3370. printf %s "checking for $ac_word... " >&6; }
  3371. if test ${ac_cv_prog_CC+y}
  3372. then :
  3373. printf %s "(cached) " >&6
  3374. else $as_nop
  3375. if test -n "$CC"; then
  3376. ac_cv_prog_CC="$CC" # Let the user override the test.
  3377. else
  3378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3379. for as_dir in $PATH
  3380. do
  3381. IFS=$as_save_IFS
  3382. case $as_dir in #(((
  3383. '') as_dir=./ ;;
  3384. */) ;;
  3385. *) as_dir=$as_dir/ ;;
  3386. esac
  3387. for ac_exec_ext in '' $ac_executable_extensions; do
  3388. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3389. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3390. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3391. break 2
  3392. fi
  3393. done
  3394. done
  3395. IFS=$as_save_IFS
  3396. fi
  3397. fi
  3398. CC=$ac_cv_prog_CC
  3399. if test -n "$CC"; then
  3400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3401. printf "%s\n" "$CC" >&6; }
  3402. else
  3403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3404. printf "%s\n" "no" >&6; }
  3405. fi
  3406. fi
  3407. fi
  3408. if test -z "$CC"; then
  3409. # Extract the first word of "cc", so it can be a program name with args.
  3410. set dummy cc; ac_word=$2
  3411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3412. printf %s "checking for $ac_word... " >&6; }
  3413. if test ${ac_cv_prog_CC+y}
  3414. then :
  3415. printf %s "(cached) " >&6
  3416. else $as_nop
  3417. if test -n "$CC"; then
  3418. ac_cv_prog_CC="$CC" # Let the user override the test.
  3419. else
  3420. ac_prog_rejected=no
  3421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3422. for as_dir in $PATH
  3423. do
  3424. IFS=$as_save_IFS
  3425. case $as_dir in #(((
  3426. '') as_dir=./ ;;
  3427. */) ;;
  3428. *) as_dir=$as_dir/ ;;
  3429. esac
  3430. for ac_exec_ext in '' $ac_executable_extensions; do
  3431. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3432. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3433. ac_prog_rejected=yes
  3434. continue
  3435. fi
  3436. ac_cv_prog_CC="cc"
  3437. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3438. break 2
  3439. fi
  3440. done
  3441. done
  3442. IFS=$as_save_IFS
  3443. if test $ac_prog_rejected = yes; then
  3444. # We found a bogon in the path, so make sure we never use it.
  3445. set dummy $ac_cv_prog_CC
  3446. shift
  3447. if test $# != 0; then
  3448. # We chose a different compiler from the bogus one.
  3449. # However, it has the same basename, so the bogon will be chosen
  3450. # first if we set CC to just the basename; use the full file name.
  3451. shift
  3452. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3453. fi
  3454. fi
  3455. fi
  3456. fi
  3457. CC=$ac_cv_prog_CC
  3458. if test -n "$CC"; then
  3459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3460. printf "%s\n" "$CC" >&6; }
  3461. else
  3462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3463. printf "%s\n" "no" >&6; }
  3464. fi
  3465. fi
  3466. if test -z "$CC"; then
  3467. if test -n "$ac_tool_prefix"; then
  3468. for ac_prog in cl.exe
  3469. do
  3470. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3471. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3473. printf %s "checking for $ac_word... " >&6; }
  3474. if test ${ac_cv_prog_CC+y}
  3475. then :
  3476. printf %s "(cached) " >&6
  3477. else $as_nop
  3478. if test -n "$CC"; then
  3479. ac_cv_prog_CC="$CC" # Let the user override the test.
  3480. else
  3481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3482. for as_dir in $PATH
  3483. do
  3484. IFS=$as_save_IFS
  3485. case $as_dir in #(((
  3486. '') as_dir=./ ;;
  3487. */) ;;
  3488. *) as_dir=$as_dir/ ;;
  3489. esac
  3490. for ac_exec_ext in '' $ac_executable_extensions; do
  3491. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3492. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3493. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3494. break 2
  3495. fi
  3496. done
  3497. done
  3498. IFS=$as_save_IFS
  3499. fi
  3500. fi
  3501. CC=$ac_cv_prog_CC
  3502. if test -n "$CC"; then
  3503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3504. printf "%s\n" "$CC" >&6; }
  3505. else
  3506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3507. printf "%s\n" "no" >&6; }
  3508. fi
  3509. test -n "$CC" && break
  3510. done
  3511. fi
  3512. if test -z "$CC"; then
  3513. ac_ct_CC=$CC
  3514. for ac_prog in cl.exe
  3515. do
  3516. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3517. set dummy $ac_prog; ac_word=$2
  3518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3519. printf %s "checking for $ac_word... " >&6; }
  3520. if test ${ac_cv_prog_ac_ct_CC+y}
  3521. then :
  3522. printf %s "(cached) " >&6
  3523. else $as_nop
  3524. if test -n "$ac_ct_CC"; then
  3525. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3526. else
  3527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3528. for as_dir in $PATH
  3529. do
  3530. IFS=$as_save_IFS
  3531. case $as_dir in #(((
  3532. '') as_dir=./ ;;
  3533. */) ;;
  3534. *) as_dir=$as_dir/ ;;
  3535. esac
  3536. for ac_exec_ext in '' $ac_executable_extensions; do
  3537. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3538. ac_cv_prog_ac_ct_CC="$ac_prog"
  3539. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3540. break 2
  3541. fi
  3542. done
  3543. done
  3544. IFS=$as_save_IFS
  3545. fi
  3546. fi
  3547. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3548. if test -n "$ac_ct_CC"; then
  3549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3550. printf "%s\n" "$ac_ct_CC" >&6; }
  3551. else
  3552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3553. printf "%s\n" "no" >&6; }
  3554. fi
  3555. test -n "$ac_ct_CC" && break
  3556. done
  3557. if test "x$ac_ct_CC" = x; then
  3558. CC=""
  3559. else
  3560. case $cross_compiling:$ac_tool_warned in
  3561. yes:)
  3562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3563. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3564. ac_tool_warned=yes ;;
  3565. esac
  3566. CC=$ac_ct_CC
  3567. fi
  3568. fi
  3569. fi
  3570. if test -z "$CC"; then
  3571. if test -n "$ac_tool_prefix"; then
  3572. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3573. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3575. printf %s "checking for $ac_word... " >&6; }
  3576. if test ${ac_cv_prog_CC+y}
  3577. then :
  3578. printf %s "(cached) " >&6
  3579. else $as_nop
  3580. if test -n "$CC"; then
  3581. ac_cv_prog_CC="$CC" # Let the user override the test.
  3582. else
  3583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3584. for as_dir in $PATH
  3585. do
  3586. IFS=$as_save_IFS
  3587. case $as_dir in #(((
  3588. '') as_dir=./ ;;
  3589. */) ;;
  3590. *) as_dir=$as_dir/ ;;
  3591. esac
  3592. for ac_exec_ext in '' $ac_executable_extensions; do
  3593. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3594. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3595. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3596. break 2
  3597. fi
  3598. done
  3599. done
  3600. IFS=$as_save_IFS
  3601. fi
  3602. fi
  3603. CC=$ac_cv_prog_CC
  3604. if test -n "$CC"; then
  3605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3606. printf "%s\n" "$CC" >&6; }
  3607. else
  3608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3609. printf "%s\n" "no" >&6; }
  3610. fi
  3611. fi
  3612. if test -z "$ac_cv_prog_CC"; then
  3613. ac_ct_CC=$CC
  3614. # Extract the first word of "clang", so it can be a program name with args.
  3615. set dummy clang; ac_word=$2
  3616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3617. printf %s "checking for $ac_word... " >&6; }
  3618. if test ${ac_cv_prog_ac_ct_CC+y}
  3619. then :
  3620. printf %s "(cached) " >&6
  3621. else $as_nop
  3622. if test -n "$ac_ct_CC"; then
  3623. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3624. else
  3625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3626. for as_dir in $PATH
  3627. do
  3628. IFS=$as_save_IFS
  3629. case $as_dir in #(((
  3630. '') as_dir=./ ;;
  3631. */) ;;
  3632. *) as_dir=$as_dir/ ;;
  3633. esac
  3634. for ac_exec_ext in '' $ac_executable_extensions; do
  3635. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3636. ac_cv_prog_ac_ct_CC="clang"
  3637. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3638. break 2
  3639. fi
  3640. done
  3641. done
  3642. IFS=$as_save_IFS
  3643. fi
  3644. fi
  3645. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3646. if test -n "$ac_ct_CC"; then
  3647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3648. printf "%s\n" "$ac_ct_CC" >&6; }
  3649. else
  3650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3651. printf "%s\n" "no" >&6; }
  3652. fi
  3653. if test "x$ac_ct_CC" = x; then
  3654. CC=""
  3655. else
  3656. case $cross_compiling:$ac_tool_warned in
  3657. yes:)
  3658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3659. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3660. ac_tool_warned=yes ;;
  3661. esac
  3662. CC=$ac_ct_CC
  3663. fi
  3664. else
  3665. CC="$ac_cv_prog_CC"
  3666. fi
  3667. fi
  3668. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3669. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3670. as_fn_error $? "no acceptable C compiler found in \$PATH
  3671. See \`config.log' for more details" "$LINENO" 5; }
  3672. # Provide some information about the compiler.
  3673. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3674. set X $ac_compile
  3675. ac_compiler=$2
  3676. for ac_option in --version -v -V -qversion -version; do
  3677. { { ac_try="$ac_compiler $ac_option >&5"
  3678. case "(($ac_try" in
  3679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3680. *) ac_try_echo=$ac_try;;
  3681. esac
  3682. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3683. printf "%s\n" "$ac_try_echo"; } >&5
  3684. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3685. ac_status=$?
  3686. if test -s conftest.err; then
  3687. sed '10a\
  3688. ... rest of stderr output deleted ...
  3689. 10q' conftest.err >conftest.er1
  3690. cat conftest.er1 >&5
  3691. fi
  3692. rm -f conftest.er1 conftest.err
  3693. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3694. test $ac_status = 0; }
  3695. done
  3696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3697. /* end confdefs.h. */
  3698. int
  3699. main (void)
  3700. {
  3701. ;
  3702. return 0;
  3703. }
  3704. _ACEOF
  3705. ac_clean_files_save=$ac_clean_files
  3706. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3707. # Try to create an executable without -o first, disregard a.out.
  3708. # It will help us diagnose broken compilers, and finding out an intuition
  3709. # of exeext.
  3710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3711. printf %s "checking whether the C compiler works... " >&6; }
  3712. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3713. # The possible output files:
  3714. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3715. ac_rmfiles=
  3716. for ac_file in $ac_files
  3717. do
  3718. case $ac_file in
  3719. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3720. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3721. esac
  3722. done
  3723. rm -f $ac_rmfiles
  3724. if { { ac_try="$ac_link_default"
  3725. case "(($ac_try" in
  3726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3727. *) ac_try_echo=$ac_try;;
  3728. esac
  3729. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3730. printf "%s\n" "$ac_try_echo"; } >&5
  3731. (eval "$ac_link_default") 2>&5
  3732. ac_status=$?
  3733. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3734. test $ac_status = 0; }
  3735. then :
  3736. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3737. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3738. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3739. # so that the user can short-circuit this test for compilers unknown to
  3740. # Autoconf.
  3741. for ac_file in $ac_files ''
  3742. do
  3743. test -f "$ac_file" || continue
  3744. case $ac_file in
  3745. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3746. ;;
  3747. [ab].out )
  3748. # We found the default executable, but exeext='' is most
  3749. # certainly right.
  3750. break;;
  3751. *.* )
  3752. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3753. then :; else
  3754. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3755. fi
  3756. # We set ac_cv_exeext here because the later test for it is not
  3757. # safe: cross compilers may not add the suffix if given an `-o'
  3758. # argument, so we may need to know it at that point already.
  3759. # Even if this section looks crufty: it has the advantage of
  3760. # actually working.
  3761. break;;
  3762. * )
  3763. break;;
  3764. esac
  3765. done
  3766. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3767. else $as_nop
  3768. ac_file=''
  3769. fi
  3770. if test -z "$ac_file"
  3771. then :
  3772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3773. printf "%s\n" "no" >&6; }
  3774. printf "%s\n" "$as_me: failed program was:" >&5
  3775. sed 's/^/| /' conftest.$ac_ext >&5
  3776. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3777. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3778. as_fn_error 77 "C compiler cannot create executables
  3779. See \`config.log' for more details" "$LINENO" 5; }
  3780. else $as_nop
  3781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3782. printf "%s\n" "yes" >&6; }
  3783. fi
  3784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3785. printf %s "checking for C compiler default output file name... " >&6; }
  3786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3787. printf "%s\n" "$ac_file" >&6; }
  3788. ac_exeext=$ac_cv_exeext
  3789. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3790. ac_clean_files=$ac_clean_files_save
  3791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3792. printf %s "checking for suffix of executables... " >&6; }
  3793. if { { ac_try="$ac_link"
  3794. case "(($ac_try" in
  3795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3796. *) ac_try_echo=$ac_try;;
  3797. esac
  3798. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3799. printf "%s\n" "$ac_try_echo"; } >&5
  3800. (eval "$ac_link") 2>&5
  3801. ac_status=$?
  3802. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3803. test $ac_status = 0; }
  3804. then :
  3805. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3806. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3807. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3808. # `rm'.
  3809. for ac_file in conftest.exe conftest conftest.*; do
  3810. test -f "$ac_file" || continue
  3811. case $ac_file in
  3812. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3813. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3814. break;;
  3815. * ) break;;
  3816. esac
  3817. done
  3818. else $as_nop
  3819. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3820. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3821. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3822. See \`config.log' for more details" "$LINENO" 5; }
  3823. fi
  3824. rm -f conftest conftest$ac_cv_exeext
  3825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3826. printf "%s\n" "$ac_cv_exeext" >&6; }
  3827. rm -f conftest.$ac_ext
  3828. EXEEXT=$ac_cv_exeext
  3829. ac_exeext=$EXEEXT
  3830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3831. /* end confdefs.h. */
  3832. #include <stdio.h>
  3833. int
  3834. main (void)
  3835. {
  3836. FILE *f = fopen ("conftest.out", "w");
  3837. return ferror (f) || fclose (f) != 0;
  3838. ;
  3839. return 0;
  3840. }
  3841. _ACEOF
  3842. ac_clean_files="$ac_clean_files conftest.out"
  3843. # Check that the compiler produces executables we can run. If not, either
  3844. # the compiler is broken, or we cross compile.
  3845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3846. printf %s "checking whether we are cross compiling... " >&6; }
  3847. if test "$cross_compiling" != yes; then
  3848. { { ac_try="$ac_link"
  3849. case "(($ac_try" in
  3850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3851. *) ac_try_echo=$ac_try;;
  3852. esac
  3853. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3854. printf "%s\n" "$ac_try_echo"; } >&5
  3855. (eval "$ac_link") 2>&5
  3856. ac_status=$?
  3857. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3858. test $ac_status = 0; }
  3859. if { ac_try='./conftest$ac_cv_exeext'
  3860. { { case "(($ac_try" in
  3861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3862. *) ac_try_echo=$ac_try;;
  3863. esac
  3864. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3865. printf "%s\n" "$ac_try_echo"; } >&5
  3866. (eval "$ac_try") 2>&5
  3867. ac_status=$?
  3868. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3869. test $ac_status = 0; }; }; then
  3870. cross_compiling=no
  3871. else
  3872. if test "$cross_compiling" = maybe; then
  3873. cross_compiling=yes
  3874. else
  3875. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3876. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3877. as_fn_error 77 "cannot run C compiled programs.
  3878. If you meant to cross compile, use \`--host'.
  3879. See \`config.log' for more details" "$LINENO" 5; }
  3880. fi
  3881. fi
  3882. fi
  3883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3884. printf "%s\n" "$cross_compiling" >&6; }
  3885. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3886. ac_clean_files=$ac_clean_files_save
  3887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3888. printf %s "checking for suffix of object files... " >&6; }
  3889. if test ${ac_cv_objext+y}
  3890. then :
  3891. printf %s "(cached) " >&6
  3892. else $as_nop
  3893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3894. /* end confdefs.h. */
  3895. int
  3896. main (void)
  3897. {
  3898. ;
  3899. return 0;
  3900. }
  3901. _ACEOF
  3902. rm -f conftest.o conftest.obj
  3903. if { { ac_try="$ac_compile"
  3904. case "(($ac_try" in
  3905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3906. *) ac_try_echo=$ac_try;;
  3907. esac
  3908. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3909. printf "%s\n" "$ac_try_echo"; } >&5
  3910. (eval "$ac_compile") 2>&5
  3911. ac_status=$?
  3912. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3913. test $ac_status = 0; }
  3914. then :
  3915. for ac_file in conftest.o conftest.obj conftest.*; do
  3916. test -f "$ac_file" || continue;
  3917. case $ac_file in
  3918. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3919. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3920. break;;
  3921. esac
  3922. done
  3923. else $as_nop
  3924. printf "%s\n" "$as_me: failed program was:" >&5
  3925. sed 's/^/| /' conftest.$ac_ext >&5
  3926. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3927. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3928. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3929. See \`config.log' for more details" "$LINENO" 5; }
  3930. fi
  3931. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3932. fi
  3933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3934. printf "%s\n" "$ac_cv_objext" >&6; }
  3935. OBJEXT=$ac_cv_objext
  3936. ac_objext=$OBJEXT
  3937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3938. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3939. if test ${ac_cv_c_compiler_gnu+y}
  3940. then :
  3941. printf %s "(cached) " >&6
  3942. else $as_nop
  3943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3944. /* end confdefs.h. */
  3945. int
  3946. main (void)
  3947. {
  3948. #ifndef __GNUC__
  3949. choke me
  3950. #endif
  3951. ;
  3952. return 0;
  3953. }
  3954. _ACEOF
  3955. if ac_fn_c_try_compile "$LINENO"
  3956. then :
  3957. ac_compiler_gnu=yes
  3958. else $as_nop
  3959. ac_compiler_gnu=no
  3960. fi
  3961. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3962. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3963. fi
  3964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3965. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3966. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3967. if test $ac_compiler_gnu = yes; then
  3968. GCC=yes
  3969. else
  3970. GCC=
  3971. fi
  3972. ac_test_CFLAGS=${CFLAGS+y}
  3973. ac_save_CFLAGS=$CFLAGS
  3974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3975. printf %s "checking whether $CC accepts -g... " >&6; }
  3976. if test ${ac_cv_prog_cc_g+y}
  3977. then :
  3978. printf %s "(cached) " >&6
  3979. else $as_nop
  3980. ac_save_c_werror_flag=$ac_c_werror_flag
  3981. ac_c_werror_flag=yes
  3982. ac_cv_prog_cc_g=no
  3983. CFLAGS="-g"
  3984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3985. /* end confdefs.h. */
  3986. int
  3987. main (void)
  3988. {
  3989. ;
  3990. return 0;
  3991. }
  3992. _ACEOF
  3993. if ac_fn_c_try_compile "$LINENO"
  3994. then :
  3995. ac_cv_prog_cc_g=yes
  3996. else $as_nop
  3997. CFLAGS=""
  3998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3999. /* end confdefs.h. */
  4000. int
  4001. main (void)
  4002. {
  4003. ;
  4004. return 0;
  4005. }
  4006. _ACEOF
  4007. if ac_fn_c_try_compile "$LINENO"
  4008. then :
  4009. else $as_nop
  4010. ac_c_werror_flag=$ac_save_c_werror_flag
  4011. CFLAGS="-g"
  4012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4013. /* end confdefs.h. */
  4014. int
  4015. main (void)
  4016. {
  4017. ;
  4018. return 0;
  4019. }
  4020. _ACEOF
  4021. if ac_fn_c_try_compile "$LINENO"
  4022. then :
  4023. ac_cv_prog_cc_g=yes
  4024. fi
  4025. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4026. fi
  4027. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4028. fi
  4029. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4030. ac_c_werror_flag=$ac_save_c_werror_flag
  4031. fi
  4032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4033. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4034. if test $ac_test_CFLAGS; then
  4035. CFLAGS=$ac_save_CFLAGS
  4036. elif test $ac_cv_prog_cc_g = yes; then
  4037. if test "$GCC" = yes; then
  4038. CFLAGS="-g -O2"
  4039. else
  4040. CFLAGS="-g"
  4041. fi
  4042. else
  4043. if test "$GCC" = yes; then
  4044. CFLAGS="-O2"
  4045. else
  4046. CFLAGS=
  4047. fi
  4048. fi
  4049. ac_prog_cc_stdc=no
  4050. if test x$ac_prog_cc_stdc = xno
  4051. then :
  4052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4053. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4054. if test ${ac_cv_prog_cc_c11+y}
  4055. then :
  4056. printf %s "(cached) " >&6
  4057. else $as_nop
  4058. ac_cv_prog_cc_c11=no
  4059. ac_save_CC=$CC
  4060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4061. /* end confdefs.h. */
  4062. $ac_c_conftest_c11_program
  4063. _ACEOF
  4064. for ac_arg in '' -std=gnu11
  4065. do
  4066. CC="$ac_save_CC $ac_arg"
  4067. if ac_fn_c_try_compile "$LINENO"
  4068. then :
  4069. ac_cv_prog_cc_c11=$ac_arg
  4070. fi
  4071. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4072. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4073. done
  4074. rm -f conftest.$ac_ext
  4075. CC=$ac_save_CC
  4076. fi
  4077. if test "x$ac_cv_prog_cc_c11" = xno
  4078. then :
  4079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4080. printf "%s\n" "unsupported" >&6; }
  4081. else $as_nop
  4082. if test "x$ac_cv_prog_cc_c11" = x
  4083. then :
  4084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4085. printf "%s\n" "none needed" >&6; }
  4086. else $as_nop
  4087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4088. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4089. CC="$CC $ac_cv_prog_cc_c11"
  4090. fi
  4091. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4092. ac_prog_cc_stdc=c11
  4093. fi
  4094. fi
  4095. if test x$ac_prog_cc_stdc = xno
  4096. then :
  4097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4098. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4099. if test ${ac_cv_prog_cc_c99+y}
  4100. then :
  4101. printf %s "(cached) " >&6
  4102. else $as_nop
  4103. ac_cv_prog_cc_c99=no
  4104. ac_save_CC=$CC
  4105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4106. /* end confdefs.h. */
  4107. $ac_c_conftest_c99_program
  4108. _ACEOF
  4109. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4110. do
  4111. CC="$ac_save_CC $ac_arg"
  4112. if ac_fn_c_try_compile "$LINENO"
  4113. then :
  4114. ac_cv_prog_cc_c99=$ac_arg
  4115. fi
  4116. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4117. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4118. done
  4119. rm -f conftest.$ac_ext
  4120. CC=$ac_save_CC
  4121. fi
  4122. if test "x$ac_cv_prog_cc_c99" = xno
  4123. then :
  4124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4125. printf "%s\n" "unsupported" >&6; }
  4126. else $as_nop
  4127. if test "x$ac_cv_prog_cc_c99" = x
  4128. then :
  4129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4130. printf "%s\n" "none needed" >&6; }
  4131. else $as_nop
  4132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4133. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4134. CC="$CC $ac_cv_prog_cc_c99"
  4135. fi
  4136. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4137. ac_prog_cc_stdc=c99
  4138. fi
  4139. fi
  4140. if test x$ac_prog_cc_stdc = xno
  4141. then :
  4142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4143. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4144. if test ${ac_cv_prog_cc_c89+y}
  4145. then :
  4146. printf %s "(cached) " >&6
  4147. else $as_nop
  4148. ac_cv_prog_cc_c89=no
  4149. ac_save_CC=$CC
  4150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4151. /* end confdefs.h. */
  4152. $ac_c_conftest_c89_program
  4153. _ACEOF
  4154. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4155. do
  4156. CC="$ac_save_CC $ac_arg"
  4157. if ac_fn_c_try_compile "$LINENO"
  4158. then :
  4159. ac_cv_prog_cc_c89=$ac_arg
  4160. fi
  4161. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4162. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4163. done
  4164. rm -f conftest.$ac_ext
  4165. CC=$ac_save_CC
  4166. fi
  4167. if test "x$ac_cv_prog_cc_c89" = xno
  4168. then :
  4169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4170. printf "%s\n" "unsupported" >&6; }
  4171. else $as_nop
  4172. if test "x$ac_cv_prog_cc_c89" = x
  4173. then :
  4174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4175. printf "%s\n" "none needed" >&6; }
  4176. else $as_nop
  4177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4178. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4179. CC="$CC $ac_cv_prog_cc_c89"
  4180. fi
  4181. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4182. ac_prog_cc_stdc=c89
  4183. fi
  4184. fi
  4185. ac_ext=c
  4186. ac_cpp='$CPP $CPPFLAGS'
  4187. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4188. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4189. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4191. printf %s "checking for a sed that does not truncate output... " >&6; }
  4192. if test ${ac_cv_path_SED+y}
  4193. then :
  4194. printf %s "(cached) " >&6
  4195. else $as_nop
  4196. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4197. for ac_i in 1 2 3 4 5 6 7; do
  4198. ac_script="$ac_script$as_nl$ac_script"
  4199. done
  4200. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4201. { ac_script=; unset ac_script;}
  4202. if test -z "$SED"; then
  4203. ac_path_SED_found=false
  4204. # Loop through the user's path and test for each of PROGNAME-LIST
  4205. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4206. for as_dir in $PATH
  4207. do
  4208. IFS=$as_save_IFS
  4209. case $as_dir in #(((
  4210. '') as_dir=./ ;;
  4211. */) ;;
  4212. *) as_dir=$as_dir/ ;;
  4213. esac
  4214. for ac_prog in sed gsed
  4215. do
  4216. for ac_exec_ext in '' $ac_executable_extensions; do
  4217. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4218. as_fn_executable_p "$ac_path_SED" || continue
  4219. # Check for GNU ac_path_SED and select it if it is found.
  4220. # Check for GNU $ac_path_SED
  4221. case `"$ac_path_SED" --version 2>&1` in
  4222. *GNU*)
  4223. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4224. *)
  4225. ac_count=0
  4226. printf %s 0123456789 >"conftest.in"
  4227. while :
  4228. do
  4229. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4230. mv "conftest.tmp" "conftest.in"
  4231. cp "conftest.in" "conftest.nl"
  4232. printf "%s\n" '' >> "conftest.nl"
  4233. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4234. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4235. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4236. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4237. # Best one so far, save it but keep looking for a better one
  4238. ac_cv_path_SED="$ac_path_SED"
  4239. ac_path_SED_max=$ac_count
  4240. fi
  4241. # 10*(2^10) chars as input seems more than enough
  4242. test $ac_count -gt 10 && break
  4243. done
  4244. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4245. esac
  4246. $ac_path_SED_found && break 3
  4247. done
  4248. done
  4249. done
  4250. IFS=$as_save_IFS
  4251. if test -z "$ac_cv_path_SED"; then
  4252. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4253. fi
  4254. else
  4255. ac_cv_path_SED=$SED
  4256. fi
  4257. fi
  4258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4259. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4260. SED="$ac_cv_path_SED"
  4261. rm -f conftest.sed
  4262. test -z "$SED" && SED=sed
  4263. Xsed="$SED -e 1s/^X//"
  4264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4265. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4266. if test ${ac_cv_path_GREP+y}
  4267. then :
  4268. printf %s "(cached) " >&6
  4269. else $as_nop
  4270. if test -z "$GREP"; then
  4271. ac_path_GREP_found=false
  4272. # Loop through the user's path and test for each of PROGNAME-LIST
  4273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4274. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4275. do
  4276. IFS=$as_save_IFS
  4277. case $as_dir in #(((
  4278. '') as_dir=./ ;;
  4279. */) ;;
  4280. *) as_dir=$as_dir/ ;;
  4281. esac
  4282. for ac_prog in grep ggrep
  4283. do
  4284. for ac_exec_ext in '' $ac_executable_extensions; do
  4285. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4286. as_fn_executable_p "$ac_path_GREP" || continue
  4287. # Check for GNU ac_path_GREP and select it if it is found.
  4288. # Check for GNU $ac_path_GREP
  4289. case `"$ac_path_GREP" --version 2>&1` in
  4290. *GNU*)
  4291. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4292. *)
  4293. ac_count=0
  4294. printf %s 0123456789 >"conftest.in"
  4295. while :
  4296. do
  4297. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4298. mv "conftest.tmp" "conftest.in"
  4299. cp "conftest.in" "conftest.nl"
  4300. printf "%s\n" 'GREP' >> "conftest.nl"
  4301. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4302. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4303. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4304. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4305. # Best one so far, save it but keep looking for a better one
  4306. ac_cv_path_GREP="$ac_path_GREP"
  4307. ac_path_GREP_max=$ac_count
  4308. fi
  4309. # 10*(2^10) chars as input seems more than enough
  4310. test $ac_count -gt 10 && break
  4311. done
  4312. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4313. esac
  4314. $ac_path_GREP_found && break 3
  4315. done
  4316. done
  4317. done
  4318. IFS=$as_save_IFS
  4319. if test -z "$ac_cv_path_GREP"; then
  4320. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4321. fi
  4322. else
  4323. ac_cv_path_GREP=$GREP
  4324. fi
  4325. fi
  4326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4327. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4328. GREP="$ac_cv_path_GREP"
  4329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4330. printf %s "checking for egrep... " >&6; }
  4331. if test ${ac_cv_path_EGREP+y}
  4332. then :
  4333. printf %s "(cached) " >&6
  4334. else $as_nop
  4335. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4336. then ac_cv_path_EGREP="$GREP -E"
  4337. else
  4338. if test -z "$EGREP"; then
  4339. ac_path_EGREP_found=false
  4340. # Loop through the user's path and test for each of PROGNAME-LIST
  4341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4342. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4343. do
  4344. IFS=$as_save_IFS
  4345. case $as_dir in #(((
  4346. '') as_dir=./ ;;
  4347. */) ;;
  4348. *) as_dir=$as_dir/ ;;
  4349. esac
  4350. for ac_prog in egrep
  4351. do
  4352. for ac_exec_ext in '' $ac_executable_extensions; do
  4353. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4354. as_fn_executable_p "$ac_path_EGREP" || continue
  4355. # Check for GNU ac_path_EGREP and select it if it is found.
  4356. # Check for GNU $ac_path_EGREP
  4357. case `"$ac_path_EGREP" --version 2>&1` in
  4358. *GNU*)
  4359. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4360. *)
  4361. ac_count=0
  4362. printf %s 0123456789 >"conftest.in"
  4363. while :
  4364. do
  4365. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4366. mv "conftest.tmp" "conftest.in"
  4367. cp "conftest.in" "conftest.nl"
  4368. printf "%s\n" 'EGREP' >> "conftest.nl"
  4369. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4370. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4371. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4372. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4373. # Best one so far, save it but keep looking for a better one
  4374. ac_cv_path_EGREP="$ac_path_EGREP"
  4375. ac_path_EGREP_max=$ac_count
  4376. fi
  4377. # 10*(2^10) chars as input seems more than enough
  4378. test $ac_count -gt 10 && break
  4379. done
  4380. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4381. esac
  4382. $ac_path_EGREP_found && break 3
  4383. done
  4384. done
  4385. done
  4386. IFS=$as_save_IFS
  4387. if test -z "$ac_cv_path_EGREP"; then
  4388. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4389. fi
  4390. else
  4391. ac_cv_path_EGREP=$EGREP
  4392. fi
  4393. fi
  4394. fi
  4395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4396. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4397. EGREP="$ac_cv_path_EGREP"
  4398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4399. printf %s "checking for fgrep... " >&6; }
  4400. if test ${ac_cv_path_FGREP+y}
  4401. then :
  4402. printf %s "(cached) " >&6
  4403. else $as_nop
  4404. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4405. then ac_cv_path_FGREP="$GREP -F"
  4406. else
  4407. if test -z "$FGREP"; then
  4408. ac_path_FGREP_found=false
  4409. # Loop through the user's path and test for each of PROGNAME-LIST
  4410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4411. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4412. do
  4413. IFS=$as_save_IFS
  4414. case $as_dir in #(((
  4415. '') as_dir=./ ;;
  4416. */) ;;
  4417. *) as_dir=$as_dir/ ;;
  4418. esac
  4419. for ac_prog in fgrep
  4420. do
  4421. for ac_exec_ext in '' $ac_executable_extensions; do
  4422. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4423. as_fn_executable_p "$ac_path_FGREP" || continue
  4424. # Check for GNU ac_path_FGREP and select it if it is found.
  4425. # Check for GNU $ac_path_FGREP
  4426. case `"$ac_path_FGREP" --version 2>&1` in
  4427. *GNU*)
  4428. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4429. *)
  4430. ac_count=0
  4431. printf %s 0123456789 >"conftest.in"
  4432. while :
  4433. do
  4434. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4435. mv "conftest.tmp" "conftest.in"
  4436. cp "conftest.in" "conftest.nl"
  4437. printf "%s\n" 'FGREP' >> "conftest.nl"
  4438. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4439. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4440. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4441. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4442. # Best one so far, save it but keep looking for a better one
  4443. ac_cv_path_FGREP="$ac_path_FGREP"
  4444. ac_path_FGREP_max=$ac_count
  4445. fi
  4446. # 10*(2^10) chars as input seems more than enough
  4447. test $ac_count -gt 10 && break
  4448. done
  4449. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4450. esac
  4451. $ac_path_FGREP_found && break 3
  4452. done
  4453. done
  4454. done
  4455. IFS=$as_save_IFS
  4456. if test -z "$ac_cv_path_FGREP"; then
  4457. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4458. fi
  4459. else
  4460. ac_cv_path_FGREP=$FGREP
  4461. fi
  4462. fi
  4463. fi
  4464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4465. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4466. FGREP="$ac_cv_path_FGREP"
  4467. test -z "$GREP" && GREP=grep
  4468. # Check whether --with-gnu-ld was given.
  4469. if test ${with_gnu_ld+y}
  4470. then :
  4471. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4472. else $as_nop
  4473. with_gnu_ld=no
  4474. fi
  4475. ac_prog=ld
  4476. if test yes = "$GCC"; then
  4477. # Check if gcc -print-prog-name=ld gives a path.
  4478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4479. printf %s "checking for ld used by $CC... " >&6; }
  4480. case $host in
  4481. *-*-mingw*)
  4482. # gcc leaves a trailing carriage return, which upsets mingw
  4483. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4484. *)
  4485. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4486. esac
  4487. case $ac_prog in
  4488. # Accept absolute paths.
  4489. [\\/]* | ?:[\\/]*)
  4490. re_direlt='/[^/][^/]*/\.\./'
  4491. # Canonicalize the pathname of ld
  4492. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4493. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4494. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4495. done
  4496. test -z "$LD" && LD=$ac_prog
  4497. ;;
  4498. "")
  4499. # If it fails, then pretend we aren't using GCC.
  4500. ac_prog=ld
  4501. ;;
  4502. *)
  4503. # If it is relative, then search for the first ld in PATH.
  4504. with_gnu_ld=unknown
  4505. ;;
  4506. esac
  4507. elif test yes = "$with_gnu_ld"; then
  4508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4509. printf %s "checking for GNU ld... " >&6; }
  4510. else
  4511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4512. printf %s "checking for non-GNU ld... " >&6; }
  4513. fi
  4514. if test ${lt_cv_path_LD+y}
  4515. then :
  4516. printf %s "(cached) " >&6
  4517. else $as_nop
  4518. if test -z "$LD"; then
  4519. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4520. for ac_dir in $PATH; do
  4521. IFS=$lt_save_ifs
  4522. test -z "$ac_dir" && ac_dir=.
  4523. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4524. lt_cv_path_LD=$ac_dir/$ac_prog
  4525. # Check to see if the program is GNU ld. I'd rather use --version,
  4526. # but apparently some variants of GNU ld only accept -v.
  4527. # Break only if it was the GNU/non-GNU ld that we prefer.
  4528. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4529. *GNU* | *'with BFD'*)
  4530. test no != "$with_gnu_ld" && break
  4531. ;;
  4532. *)
  4533. test yes != "$with_gnu_ld" && break
  4534. ;;
  4535. esac
  4536. fi
  4537. done
  4538. IFS=$lt_save_ifs
  4539. else
  4540. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4541. fi
  4542. fi
  4543. LD=$lt_cv_path_LD
  4544. if test -n "$LD"; then
  4545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4546. printf "%s\n" "$LD" >&6; }
  4547. else
  4548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4549. printf "%s\n" "no" >&6; }
  4550. fi
  4551. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4553. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4554. if test ${lt_cv_prog_gnu_ld+y}
  4555. then :
  4556. printf %s "(cached) " >&6
  4557. else $as_nop
  4558. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4559. case `$LD -v 2>&1 </dev/null` in
  4560. *GNU* | *'with BFD'*)
  4561. lt_cv_prog_gnu_ld=yes
  4562. ;;
  4563. *)
  4564. lt_cv_prog_gnu_ld=no
  4565. ;;
  4566. esac
  4567. fi
  4568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4569. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4570. with_gnu_ld=$lt_cv_prog_gnu_ld
  4571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4572. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4573. if test ${lt_cv_path_NM+y}
  4574. then :
  4575. printf %s "(cached) " >&6
  4576. else $as_nop
  4577. if test -n "$NM"; then
  4578. # Let the user override the test.
  4579. lt_cv_path_NM=$NM
  4580. else
  4581. lt_nm_to_check=${ac_tool_prefix}nm
  4582. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4583. lt_nm_to_check="$lt_nm_to_check nm"
  4584. fi
  4585. for lt_tmp_nm in $lt_nm_to_check; do
  4586. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4587. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4588. IFS=$lt_save_ifs
  4589. test -z "$ac_dir" && ac_dir=.
  4590. tmp_nm=$ac_dir/$lt_tmp_nm
  4591. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4592. # Check to see if the nm accepts a BSD-compat flag.
  4593. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4594. # nm: unknown option "B" ignored
  4595. # Tru64's nm complains that /dev/null is an invalid object file
  4596. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4597. case $build_os in
  4598. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4599. *) lt_bad_file=/dev/null ;;
  4600. esac
  4601. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4602. *$lt_bad_file* | *'Invalid file or object type'*)
  4603. lt_cv_path_NM="$tmp_nm -B"
  4604. break 2
  4605. ;;
  4606. *)
  4607. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4608. */dev/null*)
  4609. lt_cv_path_NM="$tmp_nm -p"
  4610. break 2
  4611. ;;
  4612. *)
  4613. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4614. continue # so that we can try to find one that supports BSD flags
  4615. ;;
  4616. esac
  4617. ;;
  4618. esac
  4619. fi
  4620. done
  4621. IFS=$lt_save_ifs
  4622. done
  4623. : ${lt_cv_path_NM=no}
  4624. fi
  4625. fi
  4626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4627. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4628. if test no != "$lt_cv_path_NM"; then
  4629. NM=$lt_cv_path_NM
  4630. else
  4631. # Didn't find any BSD compatible name lister, look for dumpbin.
  4632. if test -n "$DUMPBIN"; then :
  4633. # Let the user override the test.
  4634. else
  4635. if test -n "$ac_tool_prefix"; then
  4636. for ac_prog in dumpbin "link -dump"
  4637. do
  4638. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4639. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4641. printf %s "checking for $ac_word... " >&6; }
  4642. if test ${ac_cv_prog_DUMPBIN+y}
  4643. then :
  4644. printf %s "(cached) " >&6
  4645. else $as_nop
  4646. if test -n "$DUMPBIN"; then
  4647. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4648. else
  4649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4650. for as_dir in $PATH
  4651. do
  4652. IFS=$as_save_IFS
  4653. case $as_dir in #(((
  4654. '') as_dir=./ ;;
  4655. */) ;;
  4656. *) as_dir=$as_dir/ ;;
  4657. esac
  4658. for ac_exec_ext in '' $ac_executable_extensions; do
  4659. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4660. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4661. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4662. break 2
  4663. fi
  4664. done
  4665. done
  4666. IFS=$as_save_IFS
  4667. fi
  4668. fi
  4669. DUMPBIN=$ac_cv_prog_DUMPBIN
  4670. if test -n "$DUMPBIN"; then
  4671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4672. printf "%s\n" "$DUMPBIN" >&6; }
  4673. else
  4674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4675. printf "%s\n" "no" >&6; }
  4676. fi
  4677. test -n "$DUMPBIN" && break
  4678. done
  4679. fi
  4680. if test -z "$DUMPBIN"; then
  4681. ac_ct_DUMPBIN=$DUMPBIN
  4682. for ac_prog in dumpbin "link -dump"
  4683. do
  4684. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4685. set dummy $ac_prog; ac_word=$2
  4686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4687. printf %s "checking for $ac_word... " >&6; }
  4688. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4689. then :
  4690. printf %s "(cached) " >&6
  4691. else $as_nop
  4692. if test -n "$ac_ct_DUMPBIN"; then
  4693. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4694. else
  4695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4696. for as_dir in $PATH
  4697. do
  4698. IFS=$as_save_IFS
  4699. case $as_dir in #(((
  4700. '') as_dir=./ ;;
  4701. */) ;;
  4702. *) as_dir=$as_dir/ ;;
  4703. esac
  4704. for ac_exec_ext in '' $ac_executable_extensions; do
  4705. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4706. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4707. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4708. break 2
  4709. fi
  4710. done
  4711. done
  4712. IFS=$as_save_IFS
  4713. fi
  4714. fi
  4715. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4716. if test -n "$ac_ct_DUMPBIN"; then
  4717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4718. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4719. else
  4720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4721. printf "%s\n" "no" >&6; }
  4722. fi
  4723. test -n "$ac_ct_DUMPBIN" && break
  4724. done
  4725. if test "x$ac_ct_DUMPBIN" = x; then
  4726. DUMPBIN=":"
  4727. else
  4728. case $cross_compiling:$ac_tool_warned in
  4729. yes:)
  4730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4731. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4732. ac_tool_warned=yes ;;
  4733. esac
  4734. DUMPBIN=$ac_ct_DUMPBIN
  4735. fi
  4736. fi
  4737. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4738. *COFF*)
  4739. DUMPBIN="$DUMPBIN -symbols -headers"
  4740. ;;
  4741. *)
  4742. DUMPBIN=:
  4743. ;;
  4744. esac
  4745. fi
  4746. if test : != "$DUMPBIN"; then
  4747. NM=$DUMPBIN
  4748. fi
  4749. fi
  4750. test -z "$NM" && NM=nm
  4751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4752. printf %s "checking the name lister ($NM) interface... " >&6; }
  4753. if test ${lt_cv_nm_interface+y}
  4754. then :
  4755. printf %s "(cached) " >&6
  4756. else $as_nop
  4757. lt_cv_nm_interface="BSD nm"
  4758. echo "int some_variable = 0;" > conftest.$ac_ext
  4759. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4760. (eval "$ac_compile" 2>conftest.err)
  4761. cat conftest.err >&5
  4762. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4763. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4764. cat conftest.err >&5
  4765. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4766. cat conftest.out >&5
  4767. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4768. lt_cv_nm_interface="MS dumpbin"
  4769. fi
  4770. rm -f conftest*
  4771. fi
  4772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4773. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4775. printf %s "checking whether ln -s works... " >&6; }
  4776. LN_S=$as_ln_s
  4777. if test "$LN_S" = "ln -s"; then
  4778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4779. printf "%s\n" "yes" >&6; }
  4780. else
  4781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4782. printf "%s\n" "no, using $LN_S" >&6; }
  4783. fi
  4784. # find the maximum length of command line arguments
  4785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4786. printf %s "checking the maximum length of command line arguments... " >&6; }
  4787. if test ${lt_cv_sys_max_cmd_len+y}
  4788. then :
  4789. printf %s "(cached) " >&6
  4790. else $as_nop
  4791. i=0
  4792. teststring=ABCD
  4793. case $build_os in
  4794. msdosdjgpp*)
  4795. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4796. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4797. # during glob expansion). Even if it were fixed, the result of this
  4798. # check would be larger than it should be.
  4799. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4800. ;;
  4801. gnu*)
  4802. # Under GNU Hurd, this test is not required because there is
  4803. # no limit to the length of command line arguments.
  4804. # Libtool will interpret -1 as no limit whatsoever
  4805. lt_cv_sys_max_cmd_len=-1;
  4806. ;;
  4807. cygwin* | mingw* | cegcc*)
  4808. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4809. # about 5 minutes as the teststring grows exponentially.
  4810. # Worse, since 9x/ME are not pre-emptively multitasking,
  4811. # you end up with a "frozen" computer, even though with patience
  4812. # the test eventually succeeds (with a max line length of 256k).
  4813. # Instead, let's just punt: use the minimum linelength reported by
  4814. # all of the supported platforms: 8192 (on NT/2K/XP).
  4815. lt_cv_sys_max_cmd_len=8192;
  4816. ;;
  4817. mint*)
  4818. # On MiNT this can take a long time and run out of memory.
  4819. lt_cv_sys_max_cmd_len=8192;
  4820. ;;
  4821. amigaos*)
  4822. # On AmigaOS with pdksh, this test takes hours, literally.
  4823. # So we just punt and use a minimum line length of 8192.
  4824. lt_cv_sys_max_cmd_len=8192;
  4825. ;;
  4826. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4827. # This has been around since 386BSD, at least. Likely further.
  4828. if test -x /sbin/sysctl; then
  4829. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4830. elif test -x /usr/sbin/sysctl; then
  4831. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4832. else
  4833. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4834. fi
  4835. # And add a safety zone
  4836. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4837. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4838. ;;
  4839. interix*)
  4840. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4841. lt_cv_sys_max_cmd_len=196608
  4842. ;;
  4843. os2*)
  4844. # The test takes a long time on OS/2.
  4845. lt_cv_sys_max_cmd_len=8192
  4846. ;;
  4847. osf*)
  4848. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4849. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4850. # nice to cause kernel panics so lets avoid the loop below.
  4851. # First set a reasonable default.
  4852. lt_cv_sys_max_cmd_len=16384
  4853. #
  4854. if test -x /sbin/sysconfig; then
  4855. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4856. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4857. esac
  4858. fi
  4859. ;;
  4860. sco3.2v5*)
  4861. lt_cv_sys_max_cmd_len=102400
  4862. ;;
  4863. sysv5* | sco5v6* | sysv4.2uw2*)
  4864. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4865. if test -n "$kargmax"; then
  4866. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4867. else
  4868. lt_cv_sys_max_cmd_len=32768
  4869. fi
  4870. ;;
  4871. *)
  4872. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4873. if test -n "$lt_cv_sys_max_cmd_len" && \
  4874. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4875. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4876. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4877. else
  4878. # Make teststring a little bigger before we do anything with it.
  4879. # a 1K string should be a reasonable start.
  4880. for i in 1 2 3 4 5 6 7 8; do
  4881. teststring=$teststring$teststring
  4882. done
  4883. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4884. # If test is not a shell built-in, we'll probably end up computing a
  4885. # maximum length that is only half of the actual maximum length, but
  4886. # we can't tell.
  4887. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4888. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4889. test 17 != "$i" # 1/2 MB should be enough
  4890. do
  4891. i=`expr $i + 1`
  4892. teststring=$teststring$teststring
  4893. done
  4894. # Only check the string length outside the loop.
  4895. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4896. teststring=
  4897. # Add a significant safety factor because C++ compilers can tack on
  4898. # massive amounts of additional arguments before passing them to the
  4899. # linker. It appears as though 1/2 is a usable value.
  4900. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4901. fi
  4902. ;;
  4903. esac
  4904. fi
  4905. if test -n "$lt_cv_sys_max_cmd_len"; then
  4906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4907. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4908. else
  4909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4910. printf "%s\n" "none" >&6; }
  4911. fi
  4912. max_cmd_len=$lt_cv_sys_max_cmd_len
  4913. : ${CP="cp -f"}
  4914. : ${MV="mv -f"}
  4915. : ${RM="rm -f"}
  4916. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4917. lt_unset=unset
  4918. else
  4919. lt_unset=false
  4920. fi
  4921. # test EBCDIC or ASCII
  4922. case `echo X|tr X '\101'` in
  4923. A) # ASCII based system
  4924. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4925. lt_SP2NL='tr \040 \012'
  4926. lt_NL2SP='tr \015\012 \040\040'
  4927. ;;
  4928. *) # EBCDIC based system
  4929. lt_SP2NL='tr \100 \n'
  4930. lt_NL2SP='tr \r\n \100\100'
  4931. ;;
  4932. esac
  4933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4934. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4935. if test ${lt_cv_to_host_file_cmd+y}
  4936. then :
  4937. printf %s "(cached) " >&6
  4938. else $as_nop
  4939. case $host in
  4940. *-*-mingw* )
  4941. case $build in
  4942. *-*-mingw* ) # actually msys
  4943. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4944. ;;
  4945. *-*-cygwin* )
  4946. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4947. ;;
  4948. * ) # otherwise, assume *nix
  4949. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4950. ;;
  4951. esac
  4952. ;;
  4953. *-*-cygwin* )
  4954. case $build in
  4955. *-*-mingw* ) # actually msys
  4956. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4957. ;;
  4958. *-*-cygwin* )
  4959. lt_cv_to_host_file_cmd=func_convert_file_noop
  4960. ;;
  4961. * ) # otherwise, assume *nix
  4962. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4963. ;;
  4964. esac
  4965. ;;
  4966. * ) # unhandled hosts (and "normal" native builds)
  4967. lt_cv_to_host_file_cmd=func_convert_file_noop
  4968. ;;
  4969. esac
  4970. fi
  4971. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4973. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4975. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4976. if test ${lt_cv_to_tool_file_cmd+y}
  4977. then :
  4978. printf %s "(cached) " >&6
  4979. else $as_nop
  4980. #assume ordinary cross tools, or native build.
  4981. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4982. case $host in
  4983. *-*-mingw* )
  4984. case $build in
  4985. *-*-mingw* ) # actually msys
  4986. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4987. ;;
  4988. esac
  4989. ;;
  4990. esac
  4991. fi
  4992. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4994. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  4995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4996. printf %s "checking for $LD option to reload object files... " >&6; }
  4997. if test ${lt_cv_ld_reload_flag+y}
  4998. then :
  4999. printf %s "(cached) " >&6
  5000. else $as_nop
  5001. lt_cv_ld_reload_flag='-r'
  5002. fi
  5003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5004. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5005. reload_flag=$lt_cv_ld_reload_flag
  5006. case $reload_flag in
  5007. "" | " "*) ;;
  5008. *) reload_flag=" $reload_flag" ;;
  5009. esac
  5010. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5011. case $host_os in
  5012. cygwin* | mingw* | pw32* | cegcc*)
  5013. if test yes != "$GCC"; then
  5014. reload_cmds=false
  5015. fi
  5016. ;;
  5017. darwin*)
  5018. if test yes = "$GCC"; then
  5019. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5020. else
  5021. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5022. fi
  5023. ;;
  5024. esac
  5025. if test -n "$ac_tool_prefix"; then
  5026. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5027. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5029. printf %s "checking for $ac_word... " >&6; }
  5030. if test ${ac_cv_prog_OBJDUMP+y}
  5031. then :
  5032. printf %s "(cached) " >&6
  5033. else $as_nop
  5034. if test -n "$OBJDUMP"; then
  5035. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5036. else
  5037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5038. for as_dir in $PATH
  5039. do
  5040. IFS=$as_save_IFS
  5041. case $as_dir in #(((
  5042. '') as_dir=./ ;;
  5043. */) ;;
  5044. *) as_dir=$as_dir/ ;;
  5045. esac
  5046. for ac_exec_ext in '' $ac_executable_extensions; do
  5047. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5048. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5049. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5050. break 2
  5051. fi
  5052. done
  5053. done
  5054. IFS=$as_save_IFS
  5055. fi
  5056. fi
  5057. OBJDUMP=$ac_cv_prog_OBJDUMP
  5058. if test -n "$OBJDUMP"; then
  5059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5060. printf "%s\n" "$OBJDUMP" >&6; }
  5061. else
  5062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5063. printf "%s\n" "no" >&6; }
  5064. fi
  5065. fi
  5066. if test -z "$ac_cv_prog_OBJDUMP"; then
  5067. ac_ct_OBJDUMP=$OBJDUMP
  5068. # Extract the first word of "objdump", so it can be a program name with args.
  5069. set dummy objdump; ac_word=$2
  5070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5071. printf %s "checking for $ac_word... " >&6; }
  5072. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5073. then :
  5074. printf %s "(cached) " >&6
  5075. else $as_nop
  5076. if test -n "$ac_ct_OBJDUMP"; then
  5077. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5078. else
  5079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5080. for as_dir in $PATH
  5081. do
  5082. IFS=$as_save_IFS
  5083. case $as_dir in #(((
  5084. '') as_dir=./ ;;
  5085. */) ;;
  5086. *) as_dir=$as_dir/ ;;
  5087. esac
  5088. for ac_exec_ext in '' $ac_executable_extensions; do
  5089. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5090. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5091. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5092. break 2
  5093. fi
  5094. done
  5095. done
  5096. IFS=$as_save_IFS
  5097. fi
  5098. fi
  5099. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5100. if test -n "$ac_ct_OBJDUMP"; then
  5101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5102. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5103. else
  5104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5105. printf "%s\n" "no" >&6; }
  5106. fi
  5107. if test "x$ac_ct_OBJDUMP" = x; then
  5108. OBJDUMP="false"
  5109. else
  5110. case $cross_compiling:$ac_tool_warned in
  5111. yes:)
  5112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5113. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5114. ac_tool_warned=yes ;;
  5115. esac
  5116. OBJDUMP=$ac_ct_OBJDUMP
  5117. fi
  5118. else
  5119. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5120. fi
  5121. test -z "$OBJDUMP" && OBJDUMP=objdump
  5122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5123. printf %s "checking how to recognize dependent libraries... " >&6; }
  5124. if test ${lt_cv_deplibs_check_method+y}
  5125. then :
  5126. printf %s "(cached) " >&6
  5127. else $as_nop
  5128. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5129. lt_cv_file_magic_test_file=
  5130. lt_cv_deplibs_check_method='unknown'
  5131. # Need to set the preceding variable on all platforms that support
  5132. # interlibrary dependencies.
  5133. # 'none' -- dependencies not supported.
  5134. # 'unknown' -- same as none, but documents that we really don't know.
  5135. # 'pass_all' -- all dependencies passed with no checks.
  5136. # 'test_compile' -- check by making test program.
  5137. # 'file_magic [[regex]]' -- check by looking for files in library path
  5138. # that responds to the $file_magic_cmd with a given extended regex.
  5139. # If you have 'file' or equivalent on your system and you're not sure
  5140. # whether 'pass_all' will *always* work, you probably want this one.
  5141. case $host_os in
  5142. aix[4-9]*)
  5143. lt_cv_deplibs_check_method=pass_all
  5144. ;;
  5145. beos*)
  5146. lt_cv_deplibs_check_method=pass_all
  5147. ;;
  5148. bsdi[45]*)
  5149. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5150. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5151. lt_cv_file_magic_test_file=/shlib/libc.so
  5152. ;;
  5153. cygwin*)
  5154. # func_win32_libid is a shell function defined in ltmain.sh
  5155. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5156. lt_cv_file_magic_cmd='func_win32_libid'
  5157. lt_cv_deplibs_check_method=pass_all # SDL customization
  5158. ;;
  5159. mingw* | pw32*)
  5160. # Base MSYS/MinGW do not provide the 'file' command needed by
  5161. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5162. # unless we find 'file', for example because we are cross-compiling.
  5163. if ( file / ) >/dev/null 2>&1; then
  5164. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5165. lt_cv_file_magic_cmd='func_win32_libid'
  5166. else
  5167. # Keep this pattern in sync with the one in func_win32_libid.
  5168. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5169. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5170. fi
  5171. lt_cv_deplibs_check_method=pass_all # SDL customization
  5172. ;;
  5173. cegcc*)
  5174. # use the weaker test based on 'objdump'. See mingw*.
  5175. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5176. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5177. ;;
  5178. darwin* | rhapsody*)
  5179. lt_cv_deplibs_check_method=pass_all
  5180. ;;
  5181. freebsd* | dragonfly* | midnightbsd*)
  5182. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5183. case $host_cpu in
  5184. i*86 )
  5185. # Not sure whether the presence of OpenBSD here was a mistake.
  5186. # Let's accept both of them until this is cleared up.
  5187. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5188. lt_cv_file_magic_cmd=/usr/bin/file
  5189. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5190. ;;
  5191. esac
  5192. else
  5193. lt_cv_deplibs_check_method=pass_all
  5194. fi
  5195. ;;
  5196. haiku*)
  5197. lt_cv_deplibs_check_method=pass_all
  5198. ;;
  5199. hpux10.20* | hpux11*)
  5200. lt_cv_file_magic_cmd=/usr/bin/file
  5201. case $host_cpu in
  5202. ia64*)
  5203. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5204. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5205. ;;
  5206. hppa*64*)
  5207. 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]'
  5208. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5209. ;;
  5210. *)
  5211. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5212. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5213. ;;
  5214. esac
  5215. ;;
  5216. interix[3-9]*)
  5217. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5218. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5219. ;;
  5220. irix5* | irix6* | nonstopux*)
  5221. case $LD in
  5222. *-32|*"-32 ") libmagic=32-bit;;
  5223. *-n32|*"-n32 ") libmagic=N32;;
  5224. *-64|*"-64 ") libmagic=64-bit;;
  5225. *) libmagic=never-match;;
  5226. esac
  5227. lt_cv_deplibs_check_method=pass_all
  5228. ;;
  5229. # This must be glibc/ELF.
  5230. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5231. lt_cv_deplibs_check_method=pass_all
  5232. ;;
  5233. netbsd*)
  5234. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5235. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5236. else
  5237. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5238. fi
  5239. ;;
  5240. newos6*)
  5241. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5242. lt_cv_file_magic_cmd=/usr/bin/file
  5243. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5244. ;;
  5245. *nto* | *qnx*)
  5246. lt_cv_deplibs_check_method=pass_all
  5247. ;;
  5248. openbsd* | bitrig*)
  5249. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5250. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5251. else
  5252. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5253. fi
  5254. ;;
  5255. osf3* | osf4* | osf5*)
  5256. lt_cv_deplibs_check_method=pass_all
  5257. ;;
  5258. rdos*)
  5259. lt_cv_deplibs_check_method=pass_all
  5260. ;;
  5261. solaris*)
  5262. lt_cv_deplibs_check_method=pass_all
  5263. ;;
  5264. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5265. lt_cv_deplibs_check_method=pass_all
  5266. ;;
  5267. sysv4 | sysv4.3*)
  5268. case $host_vendor in
  5269. motorola)
  5270. 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]'
  5271. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5272. ;;
  5273. ncr)
  5274. lt_cv_deplibs_check_method=pass_all
  5275. ;;
  5276. sequent)
  5277. lt_cv_file_magic_cmd='/bin/file'
  5278. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5279. ;;
  5280. sni)
  5281. lt_cv_file_magic_cmd='/bin/file'
  5282. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5283. lt_cv_file_magic_test_file=/lib/libc.so
  5284. ;;
  5285. siemens)
  5286. lt_cv_deplibs_check_method=pass_all
  5287. ;;
  5288. pc)
  5289. lt_cv_deplibs_check_method=pass_all
  5290. ;;
  5291. esac
  5292. ;;
  5293. tpf*)
  5294. lt_cv_deplibs_check_method=pass_all
  5295. ;;
  5296. os2*)
  5297. lt_cv_deplibs_check_method=pass_all
  5298. ;;
  5299. esac
  5300. fi
  5301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5302. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5303. file_magic_glob=
  5304. want_nocaseglob=no
  5305. if test "$build" = "$host"; then
  5306. case $host_os in
  5307. mingw* | pw32*)
  5308. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5309. want_nocaseglob=yes
  5310. else
  5311. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5312. fi
  5313. ;;
  5314. esac
  5315. fi
  5316. file_magic_cmd=$lt_cv_file_magic_cmd
  5317. deplibs_check_method=$lt_cv_deplibs_check_method
  5318. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5319. if test -n "$ac_tool_prefix"; then
  5320. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5321. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5323. printf %s "checking for $ac_word... " >&6; }
  5324. if test ${ac_cv_prog_DLLTOOL+y}
  5325. then :
  5326. printf %s "(cached) " >&6
  5327. else $as_nop
  5328. if test -n "$DLLTOOL"; then
  5329. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5330. else
  5331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5332. for as_dir in $PATH
  5333. do
  5334. IFS=$as_save_IFS
  5335. case $as_dir in #(((
  5336. '') as_dir=./ ;;
  5337. */) ;;
  5338. *) as_dir=$as_dir/ ;;
  5339. esac
  5340. for ac_exec_ext in '' $ac_executable_extensions; do
  5341. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5342. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5343. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5344. break 2
  5345. fi
  5346. done
  5347. done
  5348. IFS=$as_save_IFS
  5349. fi
  5350. fi
  5351. DLLTOOL=$ac_cv_prog_DLLTOOL
  5352. if test -n "$DLLTOOL"; then
  5353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5354. printf "%s\n" "$DLLTOOL" >&6; }
  5355. else
  5356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5357. printf "%s\n" "no" >&6; }
  5358. fi
  5359. fi
  5360. if test -z "$ac_cv_prog_DLLTOOL"; then
  5361. ac_ct_DLLTOOL=$DLLTOOL
  5362. # Extract the first word of "dlltool", so it can be a program name with args.
  5363. set dummy dlltool; ac_word=$2
  5364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5365. printf %s "checking for $ac_word... " >&6; }
  5366. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5367. then :
  5368. printf %s "(cached) " >&6
  5369. else $as_nop
  5370. if test -n "$ac_ct_DLLTOOL"; then
  5371. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5372. else
  5373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5374. for as_dir in $PATH
  5375. do
  5376. IFS=$as_save_IFS
  5377. case $as_dir in #(((
  5378. '') as_dir=./ ;;
  5379. */) ;;
  5380. *) as_dir=$as_dir/ ;;
  5381. esac
  5382. for ac_exec_ext in '' $ac_executable_extensions; do
  5383. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5384. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5385. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5386. break 2
  5387. fi
  5388. done
  5389. done
  5390. IFS=$as_save_IFS
  5391. fi
  5392. fi
  5393. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5394. if test -n "$ac_ct_DLLTOOL"; then
  5395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5396. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5397. else
  5398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5399. printf "%s\n" "no" >&6; }
  5400. fi
  5401. if test "x$ac_ct_DLLTOOL" = x; then
  5402. DLLTOOL="false"
  5403. else
  5404. case $cross_compiling:$ac_tool_warned in
  5405. yes:)
  5406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5407. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5408. ac_tool_warned=yes ;;
  5409. esac
  5410. DLLTOOL=$ac_ct_DLLTOOL
  5411. fi
  5412. else
  5413. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5414. fi
  5415. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5417. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5418. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5419. then :
  5420. printf %s "(cached) " >&6
  5421. else $as_nop
  5422. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5423. case $host_os in
  5424. cygwin* | mingw* | pw32* | cegcc*)
  5425. # two different shell functions defined in ltmain.sh;
  5426. # decide which one to use based on capabilities of $DLLTOOL
  5427. case `$DLLTOOL --help 2>&1` in
  5428. *--identify-strict*)
  5429. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5430. ;;
  5431. *)
  5432. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5433. ;;
  5434. esac
  5435. ;;
  5436. *)
  5437. # fallback: assume linklib IS sharedlib
  5438. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5439. ;;
  5440. esac
  5441. fi
  5442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5443. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5444. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5445. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5446. if test -n "$ac_tool_prefix"; then
  5447. for ac_prog in ar
  5448. do
  5449. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5450. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5452. printf %s "checking for $ac_word... " >&6; }
  5453. if test ${ac_cv_prog_AR+y}
  5454. then :
  5455. printf %s "(cached) " >&6
  5456. else $as_nop
  5457. if test -n "$AR"; then
  5458. ac_cv_prog_AR="$AR" # Let the user override the test.
  5459. else
  5460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5461. for as_dir in $PATH
  5462. do
  5463. IFS=$as_save_IFS
  5464. case $as_dir in #(((
  5465. '') as_dir=./ ;;
  5466. */) ;;
  5467. *) as_dir=$as_dir/ ;;
  5468. esac
  5469. for ac_exec_ext in '' $ac_executable_extensions; do
  5470. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5471. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5472. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5473. break 2
  5474. fi
  5475. done
  5476. done
  5477. IFS=$as_save_IFS
  5478. fi
  5479. fi
  5480. AR=$ac_cv_prog_AR
  5481. if test -n "$AR"; then
  5482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5483. printf "%s\n" "$AR" >&6; }
  5484. else
  5485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5486. printf "%s\n" "no" >&6; }
  5487. fi
  5488. test -n "$AR" && break
  5489. done
  5490. fi
  5491. if test -z "$AR"; then
  5492. ac_ct_AR=$AR
  5493. for ac_prog in ar
  5494. do
  5495. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5496. set dummy $ac_prog; ac_word=$2
  5497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5498. printf %s "checking for $ac_word... " >&6; }
  5499. if test ${ac_cv_prog_ac_ct_AR+y}
  5500. then :
  5501. printf %s "(cached) " >&6
  5502. else $as_nop
  5503. if test -n "$ac_ct_AR"; then
  5504. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5505. else
  5506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5507. for as_dir in $PATH
  5508. do
  5509. IFS=$as_save_IFS
  5510. case $as_dir in #(((
  5511. '') as_dir=./ ;;
  5512. */) ;;
  5513. *) as_dir=$as_dir/ ;;
  5514. esac
  5515. for ac_exec_ext in '' $ac_executable_extensions; do
  5516. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5517. ac_cv_prog_ac_ct_AR="$ac_prog"
  5518. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5519. break 2
  5520. fi
  5521. done
  5522. done
  5523. IFS=$as_save_IFS
  5524. fi
  5525. fi
  5526. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5527. if test -n "$ac_ct_AR"; then
  5528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5529. printf "%s\n" "$ac_ct_AR" >&6; }
  5530. else
  5531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5532. printf "%s\n" "no" >&6; }
  5533. fi
  5534. test -n "$ac_ct_AR" && break
  5535. done
  5536. if test "x$ac_ct_AR" = x; then
  5537. AR="false"
  5538. else
  5539. case $cross_compiling:$ac_tool_warned in
  5540. yes:)
  5541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5542. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5543. ac_tool_warned=yes ;;
  5544. esac
  5545. AR=$ac_ct_AR
  5546. fi
  5547. fi
  5548. : ${AR=ar}
  5549. : ${AR_FLAGS=cru}
  5550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5551. printf %s "checking for archiver @FILE support... " >&6; }
  5552. if test ${lt_cv_ar_at_file+y}
  5553. then :
  5554. printf %s "(cached) " >&6
  5555. else $as_nop
  5556. lt_cv_ar_at_file=no
  5557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5558. /* end confdefs.h. */
  5559. int
  5560. main (void)
  5561. {
  5562. ;
  5563. return 0;
  5564. }
  5565. _ACEOF
  5566. if ac_fn_c_try_compile "$LINENO"
  5567. then :
  5568. echo conftest.$ac_objext > conftest.lst
  5569. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5570. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5571. (eval $lt_ar_try) 2>&5
  5572. ac_status=$?
  5573. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5574. test $ac_status = 0; }
  5575. if test 0 -eq "$ac_status"; then
  5576. # Ensure the archiver fails upon bogus file names.
  5577. rm -f conftest.$ac_objext libconftest.a
  5578. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5579. (eval $lt_ar_try) 2>&5
  5580. ac_status=$?
  5581. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5582. test $ac_status = 0; }
  5583. if test 0 -ne "$ac_status"; then
  5584. lt_cv_ar_at_file=@
  5585. fi
  5586. fi
  5587. rm -f conftest.* libconftest.a
  5588. fi
  5589. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5590. fi
  5591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5592. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5593. if test no = "$lt_cv_ar_at_file"; then
  5594. archiver_list_spec=
  5595. else
  5596. archiver_list_spec=$lt_cv_ar_at_file
  5597. fi
  5598. if test -n "$ac_tool_prefix"; then
  5599. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5600. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5602. printf %s "checking for $ac_word... " >&6; }
  5603. if test ${ac_cv_prog_STRIP+y}
  5604. then :
  5605. printf %s "(cached) " >&6
  5606. else $as_nop
  5607. if test -n "$STRIP"; then
  5608. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5609. else
  5610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5611. for as_dir in $PATH
  5612. do
  5613. IFS=$as_save_IFS
  5614. case $as_dir in #(((
  5615. '') as_dir=./ ;;
  5616. */) ;;
  5617. *) as_dir=$as_dir/ ;;
  5618. esac
  5619. for ac_exec_ext in '' $ac_executable_extensions; do
  5620. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5621. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5622. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5623. break 2
  5624. fi
  5625. done
  5626. done
  5627. IFS=$as_save_IFS
  5628. fi
  5629. fi
  5630. STRIP=$ac_cv_prog_STRIP
  5631. if test -n "$STRIP"; then
  5632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5633. printf "%s\n" "$STRIP" >&6; }
  5634. else
  5635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5636. printf "%s\n" "no" >&6; }
  5637. fi
  5638. fi
  5639. if test -z "$ac_cv_prog_STRIP"; then
  5640. ac_ct_STRIP=$STRIP
  5641. # Extract the first word of "strip", so it can be a program name with args.
  5642. set dummy strip; ac_word=$2
  5643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5644. printf %s "checking for $ac_word... " >&6; }
  5645. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5646. then :
  5647. printf %s "(cached) " >&6
  5648. else $as_nop
  5649. if test -n "$ac_ct_STRIP"; then
  5650. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5651. else
  5652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5653. for as_dir in $PATH
  5654. do
  5655. IFS=$as_save_IFS
  5656. case $as_dir in #(((
  5657. '') as_dir=./ ;;
  5658. */) ;;
  5659. *) as_dir=$as_dir/ ;;
  5660. esac
  5661. for ac_exec_ext in '' $ac_executable_extensions; do
  5662. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5663. ac_cv_prog_ac_ct_STRIP="strip"
  5664. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5665. break 2
  5666. fi
  5667. done
  5668. done
  5669. IFS=$as_save_IFS
  5670. fi
  5671. fi
  5672. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5673. if test -n "$ac_ct_STRIP"; then
  5674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5675. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5676. else
  5677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5678. printf "%s\n" "no" >&6; }
  5679. fi
  5680. if test "x$ac_ct_STRIP" = x; then
  5681. STRIP=":"
  5682. else
  5683. case $cross_compiling:$ac_tool_warned in
  5684. yes:)
  5685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5686. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5687. ac_tool_warned=yes ;;
  5688. esac
  5689. STRIP=$ac_ct_STRIP
  5690. fi
  5691. else
  5692. STRIP="$ac_cv_prog_STRIP"
  5693. fi
  5694. test -z "$STRIP" && STRIP=:
  5695. if test -n "$ac_tool_prefix"; then
  5696. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5697. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5699. printf %s "checking for $ac_word... " >&6; }
  5700. if test ${ac_cv_prog_RANLIB+y}
  5701. then :
  5702. printf %s "(cached) " >&6
  5703. else $as_nop
  5704. if test -n "$RANLIB"; then
  5705. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5706. else
  5707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5708. for as_dir in $PATH
  5709. do
  5710. IFS=$as_save_IFS
  5711. case $as_dir in #(((
  5712. '') as_dir=./ ;;
  5713. */) ;;
  5714. *) as_dir=$as_dir/ ;;
  5715. esac
  5716. for ac_exec_ext in '' $ac_executable_extensions; do
  5717. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5718. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5719. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5720. break 2
  5721. fi
  5722. done
  5723. done
  5724. IFS=$as_save_IFS
  5725. fi
  5726. fi
  5727. RANLIB=$ac_cv_prog_RANLIB
  5728. if test -n "$RANLIB"; then
  5729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5730. printf "%s\n" "$RANLIB" >&6; }
  5731. else
  5732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5733. printf "%s\n" "no" >&6; }
  5734. fi
  5735. fi
  5736. if test -z "$ac_cv_prog_RANLIB"; then
  5737. ac_ct_RANLIB=$RANLIB
  5738. # Extract the first word of "ranlib", so it can be a program name with args.
  5739. set dummy ranlib; ac_word=$2
  5740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5741. printf %s "checking for $ac_word... " >&6; }
  5742. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5743. then :
  5744. printf %s "(cached) " >&6
  5745. else $as_nop
  5746. if test -n "$ac_ct_RANLIB"; then
  5747. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5748. else
  5749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5750. for as_dir in $PATH
  5751. do
  5752. IFS=$as_save_IFS
  5753. case $as_dir in #(((
  5754. '') as_dir=./ ;;
  5755. */) ;;
  5756. *) as_dir=$as_dir/ ;;
  5757. esac
  5758. for ac_exec_ext in '' $ac_executable_extensions; do
  5759. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5760. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5761. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5762. break 2
  5763. fi
  5764. done
  5765. done
  5766. IFS=$as_save_IFS
  5767. fi
  5768. fi
  5769. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5770. if test -n "$ac_ct_RANLIB"; then
  5771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5772. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5773. else
  5774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5775. printf "%s\n" "no" >&6; }
  5776. fi
  5777. if test "x$ac_ct_RANLIB" = x; then
  5778. RANLIB=":"
  5779. else
  5780. case $cross_compiling:$ac_tool_warned in
  5781. yes:)
  5782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5783. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5784. ac_tool_warned=yes ;;
  5785. esac
  5786. RANLIB=$ac_ct_RANLIB
  5787. fi
  5788. else
  5789. RANLIB="$ac_cv_prog_RANLIB"
  5790. fi
  5791. test -z "$RANLIB" && RANLIB=:
  5792. # Determine commands to create old-style static archives.
  5793. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5794. old_postinstall_cmds='chmod 644 $oldlib'
  5795. old_postuninstall_cmds=
  5796. if test -n "$RANLIB"; then
  5797. case $host_os in
  5798. bitrig* | openbsd*)
  5799. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5800. ;;
  5801. *)
  5802. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5803. ;;
  5804. esac
  5805. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5806. fi
  5807. case $host_os in
  5808. darwin*)
  5809. lock_old_archive_extraction=yes ;;
  5810. *)
  5811. lock_old_archive_extraction=no ;;
  5812. esac
  5813. for ac_prog in gawk mawk nawk awk
  5814. do
  5815. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5816. set dummy $ac_prog; ac_word=$2
  5817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5818. printf %s "checking for $ac_word... " >&6; }
  5819. if test ${ac_cv_prog_AWK+y}
  5820. then :
  5821. printf %s "(cached) " >&6
  5822. else $as_nop
  5823. if test -n "$AWK"; then
  5824. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5825. else
  5826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5827. for as_dir in $PATH
  5828. do
  5829. IFS=$as_save_IFS
  5830. case $as_dir in #(((
  5831. '') as_dir=./ ;;
  5832. */) ;;
  5833. *) as_dir=$as_dir/ ;;
  5834. esac
  5835. for ac_exec_ext in '' $ac_executable_extensions; do
  5836. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5837. ac_cv_prog_AWK="$ac_prog"
  5838. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5839. break 2
  5840. fi
  5841. done
  5842. done
  5843. IFS=$as_save_IFS
  5844. fi
  5845. fi
  5846. AWK=$ac_cv_prog_AWK
  5847. if test -n "$AWK"; then
  5848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5849. printf "%s\n" "$AWK" >&6; }
  5850. else
  5851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5852. printf "%s\n" "no" >&6; }
  5853. fi
  5854. test -n "$AWK" && break
  5855. done
  5856. # If no C compiler was specified, use CC.
  5857. LTCC=${LTCC-"$CC"}
  5858. # If no C compiler flags were specified, use CFLAGS.
  5859. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5860. # Allow CC to be a program name with arguments.
  5861. compiler=$CC
  5862. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5864. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5865. if test ${lt_cv_sys_global_symbol_pipe+y}
  5866. then :
  5867. printf %s "(cached) " >&6
  5868. else $as_nop
  5869. # These are sane defaults that work on at least a few old systems.
  5870. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5871. # Character class describing NM global symbol codes.
  5872. symcode='[BCDEGRST]'
  5873. # Regexp to match symbols that can be accessed directly from C.
  5874. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5875. # Define system-specific variables.
  5876. case $host_os in
  5877. aix*)
  5878. symcode='[BCDT]'
  5879. ;;
  5880. cygwin* | mingw* | pw32* | cegcc*)
  5881. symcode='[ABCDGISTW]'
  5882. ;;
  5883. hpux*)
  5884. if test ia64 = "$host_cpu"; then
  5885. symcode='[ABCDEGRST]'
  5886. fi
  5887. ;;
  5888. irix* | nonstopux*)
  5889. symcode='[BCDEGRST]'
  5890. ;;
  5891. osf*)
  5892. symcode='[BCDEGQRST]'
  5893. ;;
  5894. solaris*)
  5895. symcode='[BCDRT]'
  5896. ;;
  5897. sco3.2v5*)
  5898. symcode='[DT]'
  5899. ;;
  5900. sysv4.2uw2*)
  5901. symcode='[DT]'
  5902. ;;
  5903. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5904. symcode='[ABDT]'
  5905. ;;
  5906. sysv4)
  5907. symcode='[DFNSTU]'
  5908. ;;
  5909. esac
  5910. # If we're using GNU nm, then use its standard symbol codes.
  5911. case `$NM -V 2>&1` in
  5912. *GNU* | *'with BFD'*)
  5913. symcode='[ABCDGIRSTW]' ;;
  5914. esac
  5915. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5916. # Gets list of data symbols to import.
  5917. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5918. # Adjust the below global symbol transforms to fixup imported variables.
  5919. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5920. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5921. lt_c_name_lib_hook="\
  5922. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5923. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5924. else
  5925. # Disable hooks by default.
  5926. lt_cv_sys_global_symbol_to_import=
  5927. lt_cdecl_hook=
  5928. lt_c_name_hook=
  5929. lt_c_name_lib_hook=
  5930. fi
  5931. # Transform an extracted symbol line into a proper C declaration.
  5932. # Some systems (esp. on ia64) link data and code symbols differently,
  5933. # so use this general approach.
  5934. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5935. $lt_cdecl_hook\
  5936. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5937. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5938. # Transform an extracted symbol line into symbol name and symbol address
  5939. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5940. $lt_c_name_hook\
  5941. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5942. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5943. # Transform an extracted symbol line into symbol name with lib prefix and
  5944. # symbol address.
  5945. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5946. $lt_c_name_lib_hook\
  5947. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5948. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5949. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5950. # Handle CRLF in mingw tool chain
  5951. opt_cr=
  5952. case $build_os in
  5953. mingw*)
  5954. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5955. ;;
  5956. esac
  5957. # Try without a prefix underscore, then with it.
  5958. for ac_symprfx in "" "_"; do
  5959. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5960. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5961. # Write the raw and C identifiers.
  5962. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5963. # Fake it for dumpbin and say T for any non-static function,
  5964. # D for any global variable and I for any imported variable.
  5965. # Also find C++ and __fastcall symbols from MSVC++,
  5966. # which start with @ or ?.
  5967. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5968. " {last_section=section; section=\$ 3};"\
  5969. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5970. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5971. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5972. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5973. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5974. " \$ 0!~/External *\|/{next};"\
  5975. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5976. " {if(hide[section]) next};"\
  5977. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5978. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5979. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5980. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5981. " ' prfx=^$ac_symprfx"
  5982. else
  5983. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5984. fi
  5985. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5986. # Check to see that the pipe works correctly.
  5987. pipe_works=no
  5988. rm -f conftest*
  5989. cat > conftest.$ac_ext <<_LT_EOF
  5990. #ifdef __cplusplus
  5991. extern "C" {
  5992. #endif
  5993. char nm_test_var;
  5994. void nm_test_func(void);
  5995. void nm_test_func(void){}
  5996. #ifdef __cplusplus
  5997. }
  5998. #endif
  5999. int main(){nm_test_var='a';nm_test_func();return(0);}
  6000. _LT_EOF
  6001. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6002. (eval $ac_compile) 2>&5
  6003. ac_status=$?
  6004. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6005. test $ac_status = 0; }; then
  6006. # Now try to grab the symbols.
  6007. nlist=conftest.nm
  6008. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6009. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6010. ac_status=$?
  6011. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6012. test $ac_status = 0; } && test -s "$nlist"; then
  6013. # Try sorting and uniquifying the output.
  6014. if sort "$nlist" | uniq > "$nlist"T; then
  6015. mv -f "$nlist"T "$nlist"
  6016. else
  6017. rm -f "$nlist"T
  6018. fi
  6019. # Make sure that we snagged all the symbols we need.
  6020. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6021. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6022. cat <<_LT_EOF > conftest.$ac_ext
  6023. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6024. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6025. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6026. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6027. # define LT_DLSYM_CONST
  6028. #elif defined __osf__
  6029. /* This system does not cope well with relocations in const data. */
  6030. # define LT_DLSYM_CONST
  6031. #else
  6032. # define LT_DLSYM_CONST const
  6033. #endif
  6034. #ifdef __cplusplus
  6035. extern "C" {
  6036. #endif
  6037. _LT_EOF
  6038. # Now generate the symbol file.
  6039. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6040. cat <<_LT_EOF >> conftest.$ac_ext
  6041. /* The mapping between symbol names and symbols. */
  6042. LT_DLSYM_CONST struct {
  6043. const char *name;
  6044. void *address;
  6045. }
  6046. lt__PROGRAM__LTX_preloaded_symbols[] =
  6047. {
  6048. { "@PROGRAM@", (void *) 0 },
  6049. _LT_EOF
  6050. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6051. cat <<\_LT_EOF >> conftest.$ac_ext
  6052. {0, (void *) 0}
  6053. };
  6054. /* This works around a problem in FreeBSD linker */
  6055. #ifdef FREEBSD_WORKAROUND
  6056. static const void *lt_preloaded_setup() {
  6057. return lt__PROGRAM__LTX_preloaded_symbols;
  6058. }
  6059. #endif
  6060. #ifdef __cplusplus
  6061. }
  6062. #endif
  6063. _LT_EOF
  6064. # Now try linking the two files.
  6065. mv conftest.$ac_objext conftstm.$ac_objext
  6066. lt_globsym_save_LIBS=$LIBS
  6067. lt_globsym_save_CFLAGS=$CFLAGS
  6068. LIBS=conftstm.$ac_objext
  6069. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6070. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6071. (eval $ac_link) 2>&5
  6072. ac_status=$?
  6073. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6074. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6075. pipe_works=yes
  6076. fi
  6077. LIBS=$lt_globsym_save_LIBS
  6078. CFLAGS=$lt_globsym_save_CFLAGS
  6079. else
  6080. echo "cannot find nm_test_func in $nlist" >&5
  6081. fi
  6082. else
  6083. echo "cannot find nm_test_var in $nlist" >&5
  6084. fi
  6085. else
  6086. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6087. fi
  6088. else
  6089. echo "$progname: failed program was:" >&5
  6090. cat conftest.$ac_ext >&5
  6091. fi
  6092. rm -rf conftest* conftst*
  6093. # Do not use the global_symbol_pipe unless it works.
  6094. if test yes = "$pipe_works"; then
  6095. break
  6096. else
  6097. lt_cv_sys_global_symbol_pipe=
  6098. fi
  6099. done
  6100. fi
  6101. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6102. lt_cv_sys_global_symbol_to_cdecl=
  6103. fi
  6104. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6106. printf "%s\n" "failed" >&6; }
  6107. else
  6108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6109. printf "%s\n" "ok" >&6; }
  6110. fi
  6111. # Response file support.
  6112. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6113. nm_file_list_spec='@'
  6114. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6115. nm_file_list_spec='@'
  6116. fi
  6117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6118. printf %s "checking for sysroot... " >&6; }
  6119. # Check whether --with-sysroot was given.
  6120. if test ${with_sysroot+y}
  6121. then :
  6122. withval=$with_sysroot;
  6123. else $as_nop
  6124. with_sysroot=no
  6125. fi
  6126. lt_sysroot=
  6127. case $with_sysroot in #(
  6128. yes)
  6129. if test yes = "$GCC"; then
  6130. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6131. fi
  6132. ;; #(
  6133. /*)
  6134. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6135. ;; #(
  6136. no|'')
  6137. ;; #(
  6138. *)
  6139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6140. printf "%s\n" "$with_sysroot" >&6; }
  6141. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6142. ;;
  6143. esac
  6144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6145. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6147. printf %s "checking for a working dd... " >&6; }
  6148. if test ${ac_cv_path_lt_DD+y}
  6149. then :
  6150. printf %s "(cached) " >&6
  6151. else $as_nop
  6152. printf 0123456789abcdef0123456789abcdef >conftest.i
  6153. cat conftest.i conftest.i >conftest2.i
  6154. : ${lt_DD:=$DD}
  6155. if test -z "$lt_DD"; then
  6156. ac_path_lt_DD_found=false
  6157. # Loop through the user's path and test for each of PROGNAME-LIST
  6158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6159. for as_dir in $PATH
  6160. do
  6161. IFS=$as_save_IFS
  6162. case $as_dir in #(((
  6163. '') as_dir=./ ;;
  6164. */) ;;
  6165. *) as_dir=$as_dir/ ;;
  6166. esac
  6167. for ac_prog in dd
  6168. do
  6169. for ac_exec_ext in '' $ac_executable_extensions; do
  6170. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6171. as_fn_executable_p "$ac_path_lt_DD" || continue
  6172. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6173. cmp -s conftest.i conftest.out \
  6174. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6175. fi
  6176. $ac_path_lt_DD_found && break 3
  6177. done
  6178. done
  6179. done
  6180. IFS=$as_save_IFS
  6181. if test -z "$ac_cv_path_lt_DD"; then
  6182. :
  6183. fi
  6184. else
  6185. ac_cv_path_lt_DD=$lt_DD
  6186. fi
  6187. rm -f conftest.i conftest2.i conftest.out
  6188. fi
  6189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6190. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6192. printf %s "checking how to truncate binary pipes... " >&6; }
  6193. if test ${lt_cv_truncate_bin+y}
  6194. then :
  6195. printf %s "(cached) " >&6
  6196. else $as_nop
  6197. printf 0123456789abcdef0123456789abcdef >conftest.i
  6198. cat conftest.i conftest.i >conftest2.i
  6199. lt_cv_truncate_bin=
  6200. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6201. cmp -s conftest.i conftest.out \
  6202. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6203. fi
  6204. rm -f conftest.i conftest2.i conftest.out
  6205. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6206. fi
  6207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6208. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6209. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6210. func_cc_basename ()
  6211. {
  6212. for cc_temp in $*""; do
  6213. case $cc_temp in
  6214. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6215. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6216. \-*) ;;
  6217. *) break;;
  6218. esac
  6219. done
  6220. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6221. }
  6222. # Check whether --enable-libtool-lock was given.
  6223. if test ${enable_libtool_lock+y}
  6224. then :
  6225. enableval=$enable_libtool_lock;
  6226. fi
  6227. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6228. # Some flags need to be propagated to the compiler or linker for good
  6229. # libtool support.
  6230. case $host in
  6231. ia64-*-hpux*)
  6232. # Find out what ABI is being produced by ac_compile, and set mode
  6233. # options accordingly.
  6234. echo 'int i;' > conftest.$ac_ext
  6235. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6236. (eval $ac_compile) 2>&5
  6237. ac_status=$?
  6238. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6239. test $ac_status = 0; }; then
  6240. case `/usr/bin/file conftest.$ac_objext` in
  6241. *ELF-32*)
  6242. HPUX_IA64_MODE=32
  6243. ;;
  6244. *ELF-64*)
  6245. HPUX_IA64_MODE=64
  6246. ;;
  6247. esac
  6248. fi
  6249. rm -rf conftest*
  6250. ;;
  6251. *-*-irix6*)
  6252. # Find out what ABI is being produced by ac_compile, and set linker
  6253. # options accordingly.
  6254. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6255. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6256. (eval $ac_compile) 2>&5
  6257. ac_status=$?
  6258. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6259. test $ac_status = 0; }; then
  6260. if test yes = "$lt_cv_prog_gnu_ld"; then
  6261. case `/usr/bin/file conftest.$ac_objext` in
  6262. *32-bit*)
  6263. LD="${LD-ld} -melf32bsmip"
  6264. ;;
  6265. *N32*)
  6266. LD="${LD-ld} -melf32bmipn32"
  6267. ;;
  6268. *64-bit*)
  6269. LD="${LD-ld} -melf64bmip"
  6270. ;;
  6271. esac
  6272. else
  6273. case `/usr/bin/file conftest.$ac_objext` in
  6274. *32-bit*)
  6275. LD="${LD-ld} -32"
  6276. ;;
  6277. *N32*)
  6278. LD="${LD-ld} -n32"
  6279. ;;
  6280. *64-bit*)
  6281. LD="${LD-ld} -64"
  6282. ;;
  6283. esac
  6284. fi
  6285. fi
  6286. rm -rf conftest*
  6287. ;;
  6288. mips64*-*linux*)
  6289. # Find out what ABI is being produced by ac_compile, and set linker
  6290. # options accordingly.
  6291. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6292. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6293. (eval $ac_compile) 2>&5
  6294. ac_status=$?
  6295. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6296. test $ac_status = 0; }; then
  6297. emul=elf
  6298. case `/usr/bin/file conftest.$ac_objext` in
  6299. *32-bit*)
  6300. emul="${emul}32"
  6301. ;;
  6302. *64-bit*)
  6303. emul="${emul}64"
  6304. ;;
  6305. esac
  6306. case `/usr/bin/file conftest.$ac_objext` in
  6307. *MSB*)
  6308. emul="${emul}btsmip"
  6309. ;;
  6310. *LSB*)
  6311. emul="${emul}ltsmip"
  6312. ;;
  6313. esac
  6314. case `/usr/bin/file conftest.$ac_objext` in
  6315. *N32*)
  6316. emul="${emul}n32"
  6317. ;;
  6318. esac
  6319. LD="${LD-ld} -m $emul"
  6320. fi
  6321. rm -rf conftest*
  6322. ;;
  6323. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6324. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6325. # Find out what ABI is being produced by ac_compile, and set linker
  6326. # options accordingly. Note that the listed cases only cover the
  6327. # situations where additional linker options are needed (such as when
  6328. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6329. # vice versa); the common cases where no linker options are needed do
  6330. # not appear in the list.
  6331. echo 'int i;' > conftest.$ac_ext
  6332. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6333. (eval $ac_compile) 2>&5
  6334. ac_status=$?
  6335. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6336. test $ac_status = 0; }; then
  6337. case `/usr/bin/file conftest.o` in
  6338. *32-bit*)
  6339. case $host in
  6340. x86_64-*kfreebsd*-gnu)
  6341. LD="${LD-ld} -m elf_i386_fbsd"
  6342. ;;
  6343. x86_64-*linux*)
  6344. case `/usr/bin/file conftest.o` in
  6345. *x86-64*)
  6346. LD="${LD-ld} -m elf32_x86_64"
  6347. ;;
  6348. *)
  6349. LD="${LD-ld} -m elf_i386"
  6350. ;;
  6351. esac
  6352. ;;
  6353. powerpc64le-*linux*)
  6354. LD="${LD-ld} -m elf32lppclinux"
  6355. ;;
  6356. powerpc64-*linux*)
  6357. LD="${LD-ld} -m elf32ppclinux"
  6358. ;;
  6359. s390x-*linux*)
  6360. LD="${LD-ld} -m elf_s390"
  6361. ;;
  6362. sparc64-*linux*)
  6363. LD="${LD-ld} -m elf32_sparc"
  6364. ;;
  6365. esac
  6366. ;;
  6367. *64-bit*)
  6368. case $host in
  6369. x86_64-*kfreebsd*-gnu)
  6370. LD="${LD-ld} -m elf_x86_64_fbsd"
  6371. ;;
  6372. x86_64-*linux*)
  6373. LD="${LD-ld} -m elf_x86_64"
  6374. ;;
  6375. powerpcle-*linux*|powerpc64le-*linux*)
  6376. LD="${LD-ld} -m elf64lppc"
  6377. ;;
  6378. powerpc-*linux*|powerpc64-*linux*)
  6379. LD="${LD-ld} -m elf64ppc"
  6380. ;;
  6381. s390*-*linux*|s390*-*tpf*)
  6382. LD="${LD-ld} -m elf64_s390"
  6383. ;;
  6384. sparc*-*linux*)
  6385. LD="${LD-ld} -m elf64_sparc"
  6386. ;;
  6387. esac
  6388. ;;
  6389. esac
  6390. fi
  6391. rm -rf conftest*
  6392. ;;
  6393. *-*-sco3.2v5*)
  6394. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6395. SAVE_CFLAGS=$CFLAGS
  6396. CFLAGS="$CFLAGS -belf"
  6397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6398. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6399. if test ${lt_cv_cc_needs_belf+y}
  6400. then :
  6401. printf %s "(cached) " >&6
  6402. else $as_nop
  6403. ac_ext=c
  6404. ac_cpp='$CPP $CPPFLAGS'
  6405. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6406. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6407. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6409. /* end confdefs.h. */
  6410. int
  6411. main (void)
  6412. {
  6413. ;
  6414. return 0;
  6415. }
  6416. _ACEOF
  6417. if ac_fn_c_try_link "$LINENO"
  6418. then :
  6419. lt_cv_cc_needs_belf=yes
  6420. else $as_nop
  6421. lt_cv_cc_needs_belf=no
  6422. fi
  6423. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6424. conftest$ac_exeext conftest.$ac_ext
  6425. ac_ext=c
  6426. ac_cpp='$CPP $CPPFLAGS'
  6427. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6428. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6429. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6430. fi
  6431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6432. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6433. if test yes != "$lt_cv_cc_needs_belf"; then
  6434. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6435. CFLAGS=$SAVE_CFLAGS
  6436. fi
  6437. ;;
  6438. *-*solaris*)
  6439. # Find out what ABI is being produced by ac_compile, and set linker
  6440. # options accordingly.
  6441. echo 'int i;' > conftest.$ac_ext
  6442. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6443. (eval $ac_compile) 2>&5
  6444. ac_status=$?
  6445. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6446. test $ac_status = 0; }; then
  6447. case `/usr/bin/file conftest.o` in
  6448. *64-bit*)
  6449. case $lt_cv_prog_gnu_ld in
  6450. yes*)
  6451. case $host in
  6452. i?86-*-solaris*|x86_64-*-solaris*)
  6453. LD="${LD-ld} -m elf_x86_64"
  6454. ;;
  6455. sparc*-*-solaris*)
  6456. LD="${LD-ld} -m elf64_sparc"
  6457. ;;
  6458. esac
  6459. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6460. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6461. LD=${LD-ld}_sol2
  6462. fi
  6463. ;;
  6464. *)
  6465. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6466. LD="${LD-ld} -64"
  6467. fi
  6468. ;;
  6469. esac
  6470. ;;
  6471. esac
  6472. fi
  6473. rm -rf conftest*
  6474. ;;
  6475. esac
  6476. need_locks=$enable_libtool_lock
  6477. if test -n "$ac_tool_prefix"; then
  6478. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6479. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6481. printf %s "checking for $ac_word... " >&6; }
  6482. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6483. then :
  6484. printf %s "(cached) " >&6
  6485. else $as_nop
  6486. if test -n "$MANIFEST_TOOL"; then
  6487. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6488. else
  6489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6490. for as_dir in $PATH
  6491. do
  6492. IFS=$as_save_IFS
  6493. case $as_dir in #(((
  6494. '') as_dir=./ ;;
  6495. */) ;;
  6496. *) as_dir=$as_dir/ ;;
  6497. esac
  6498. for ac_exec_ext in '' $ac_executable_extensions; do
  6499. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6500. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6501. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6502. break 2
  6503. fi
  6504. done
  6505. done
  6506. IFS=$as_save_IFS
  6507. fi
  6508. fi
  6509. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6510. if test -n "$MANIFEST_TOOL"; then
  6511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6512. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6513. else
  6514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6515. printf "%s\n" "no" >&6; }
  6516. fi
  6517. fi
  6518. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6519. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6520. # Extract the first word of "mt", so it can be a program name with args.
  6521. set dummy mt; ac_word=$2
  6522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6523. printf %s "checking for $ac_word... " >&6; }
  6524. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6525. then :
  6526. printf %s "(cached) " >&6
  6527. else $as_nop
  6528. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6529. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6530. else
  6531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6532. for as_dir in $PATH
  6533. do
  6534. IFS=$as_save_IFS
  6535. case $as_dir in #(((
  6536. '') as_dir=./ ;;
  6537. */) ;;
  6538. *) as_dir=$as_dir/ ;;
  6539. esac
  6540. for ac_exec_ext in '' $ac_executable_extensions; do
  6541. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6542. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6543. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6544. break 2
  6545. fi
  6546. done
  6547. done
  6548. IFS=$as_save_IFS
  6549. fi
  6550. fi
  6551. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6552. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6554. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6555. else
  6556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6557. printf "%s\n" "no" >&6; }
  6558. fi
  6559. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6560. MANIFEST_TOOL=":"
  6561. else
  6562. case $cross_compiling:$ac_tool_warned in
  6563. yes:)
  6564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6565. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6566. ac_tool_warned=yes ;;
  6567. esac
  6568. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6569. fi
  6570. else
  6571. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6572. fi
  6573. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6575. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6576. if test ${lt_cv_path_mainfest_tool+y}
  6577. then :
  6578. printf %s "(cached) " >&6
  6579. else $as_nop
  6580. lt_cv_path_mainfest_tool=no
  6581. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6582. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6583. cat conftest.err >&5
  6584. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6585. lt_cv_path_mainfest_tool=yes
  6586. fi
  6587. rm -f conftest*
  6588. fi
  6589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6590. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6591. if test yes != "$lt_cv_path_mainfest_tool"; then
  6592. MANIFEST_TOOL=:
  6593. fi
  6594. case $host_os in
  6595. rhapsody* | darwin*)
  6596. if test -n "$ac_tool_prefix"; then
  6597. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6598. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6600. printf %s "checking for $ac_word... " >&6; }
  6601. if test ${ac_cv_prog_DSYMUTIL+y}
  6602. then :
  6603. printf %s "(cached) " >&6
  6604. else $as_nop
  6605. if test -n "$DSYMUTIL"; then
  6606. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6607. else
  6608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6609. for as_dir in $PATH
  6610. do
  6611. IFS=$as_save_IFS
  6612. case $as_dir in #(((
  6613. '') as_dir=./ ;;
  6614. */) ;;
  6615. *) as_dir=$as_dir/ ;;
  6616. esac
  6617. for ac_exec_ext in '' $ac_executable_extensions; do
  6618. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6619. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6620. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6621. break 2
  6622. fi
  6623. done
  6624. done
  6625. IFS=$as_save_IFS
  6626. fi
  6627. fi
  6628. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6629. if test -n "$DSYMUTIL"; then
  6630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6631. printf "%s\n" "$DSYMUTIL" >&6; }
  6632. else
  6633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6634. printf "%s\n" "no" >&6; }
  6635. fi
  6636. fi
  6637. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6638. ac_ct_DSYMUTIL=$DSYMUTIL
  6639. # Extract the first word of "dsymutil", so it can be a program name with args.
  6640. set dummy dsymutil; ac_word=$2
  6641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6642. printf %s "checking for $ac_word... " >&6; }
  6643. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6644. then :
  6645. printf %s "(cached) " >&6
  6646. else $as_nop
  6647. if test -n "$ac_ct_DSYMUTIL"; then
  6648. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6649. else
  6650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6651. for as_dir in $PATH
  6652. do
  6653. IFS=$as_save_IFS
  6654. case $as_dir in #(((
  6655. '') as_dir=./ ;;
  6656. */) ;;
  6657. *) as_dir=$as_dir/ ;;
  6658. esac
  6659. for ac_exec_ext in '' $ac_executable_extensions; do
  6660. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6661. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6662. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6663. break 2
  6664. fi
  6665. done
  6666. done
  6667. IFS=$as_save_IFS
  6668. fi
  6669. fi
  6670. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6671. if test -n "$ac_ct_DSYMUTIL"; then
  6672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6673. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6674. else
  6675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6676. printf "%s\n" "no" >&6; }
  6677. fi
  6678. if test "x$ac_ct_DSYMUTIL" = x; then
  6679. DSYMUTIL=":"
  6680. else
  6681. case $cross_compiling:$ac_tool_warned in
  6682. yes:)
  6683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6684. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6685. ac_tool_warned=yes ;;
  6686. esac
  6687. DSYMUTIL=$ac_ct_DSYMUTIL
  6688. fi
  6689. else
  6690. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6691. fi
  6692. if test -n "$ac_tool_prefix"; then
  6693. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6694. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6696. printf %s "checking for $ac_word... " >&6; }
  6697. if test ${ac_cv_prog_NMEDIT+y}
  6698. then :
  6699. printf %s "(cached) " >&6
  6700. else $as_nop
  6701. if test -n "$NMEDIT"; then
  6702. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6703. else
  6704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6705. for as_dir in $PATH
  6706. do
  6707. IFS=$as_save_IFS
  6708. case $as_dir in #(((
  6709. '') as_dir=./ ;;
  6710. */) ;;
  6711. *) as_dir=$as_dir/ ;;
  6712. esac
  6713. for ac_exec_ext in '' $ac_executable_extensions; do
  6714. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6715. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6716. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6717. break 2
  6718. fi
  6719. done
  6720. done
  6721. IFS=$as_save_IFS
  6722. fi
  6723. fi
  6724. NMEDIT=$ac_cv_prog_NMEDIT
  6725. if test -n "$NMEDIT"; then
  6726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6727. printf "%s\n" "$NMEDIT" >&6; }
  6728. else
  6729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6730. printf "%s\n" "no" >&6; }
  6731. fi
  6732. fi
  6733. if test -z "$ac_cv_prog_NMEDIT"; then
  6734. ac_ct_NMEDIT=$NMEDIT
  6735. # Extract the first word of "nmedit", so it can be a program name with args.
  6736. set dummy nmedit; ac_word=$2
  6737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6738. printf %s "checking for $ac_word... " >&6; }
  6739. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6740. then :
  6741. printf %s "(cached) " >&6
  6742. else $as_nop
  6743. if test -n "$ac_ct_NMEDIT"; then
  6744. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6745. else
  6746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6747. for as_dir in $PATH
  6748. do
  6749. IFS=$as_save_IFS
  6750. case $as_dir in #(((
  6751. '') as_dir=./ ;;
  6752. */) ;;
  6753. *) as_dir=$as_dir/ ;;
  6754. esac
  6755. for ac_exec_ext in '' $ac_executable_extensions; do
  6756. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6757. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6758. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6759. break 2
  6760. fi
  6761. done
  6762. done
  6763. IFS=$as_save_IFS
  6764. fi
  6765. fi
  6766. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6767. if test -n "$ac_ct_NMEDIT"; then
  6768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6769. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6770. else
  6771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6772. printf "%s\n" "no" >&6; }
  6773. fi
  6774. if test "x$ac_ct_NMEDIT" = x; then
  6775. NMEDIT=":"
  6776. else
  6777. case $cross_compiling:$ac_tool_warned in
  6778. yes:)
  6779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6780. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6781. ac_tool_warned=yes ;;
  6782. esac
  6783. NMEDIT=$ac_ct_NMEDIT
  6784. fi
  6785. else
  6786. NMEDIT="$ac_cv_prog_NMEDIT"
  6787. fi
  6788. if test -n "$ac_tool_prefix"; then
  6789. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6790. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6792. printf %s "checking for $ac_word... " >&6; }
  6793. if test ${ac_cv_prog_LIPO+y}
  6794. then :
  6795. printf %s "(cached) " >&6
  6796. else $as_nop
  6797. if test -n "$LIPO"; then
  6798. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6799. else
  6800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6801. for as_dir in $PATH
  6802. do
  6803. IFS=$as_save_IFS
  6804. case $as_dir in #(((
  6805. '') as_dir=./ ;;
  6806. */) ;;
  6807. *) as_dir=$as_dir/ ;;
  6808. esac
  6809. for ac_exec_ext in '' $ac_executable_extensions; do
  6810. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6811. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6812. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6813. break 2
  6814. fi
  6815. done
  6816. done
  6817. IFS=$as_save_IFS
  6818. fi
  6819. fi
  6820. LIPO=$ac_cv_prog_LIPO
  6821. if test -n "$LIPO"; then
  6822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6823. printf "%s\n" "$LIPO" >&6; }
  6824. else
  6825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6826. printf "%s\n" "no" >&6; }
  6827. fi
  6828. fi
  6829. if test -z "$ac_cv_prog_LIPO"; then
  6830. ac_ct_LIPO=$LIPO
  6831. # Extract the first word of "lipo", so it can be a program name with args.
  6832. set dummy lipo; ac_word=$2
  6833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6834. printf %s "checking for $ac_word... " >&6; }
  6835. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6836. then :
  6837. printf %s "(cached) " >&6
  6838. else $as_nop
  6839. if test -n "$ac_ct_LIPO"; then
  6840. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6841. else
  6842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6843. for as_dir in $PATH
  6844. do
  6845. IFS=$as_save_IFS
  6846. case $as_dir in #(((
  6847. '') as_dir=./ ;;
  6848. */) ;;
  6849. *) as_dir=$as_dir/ ;;
  6850. esac
  6851. for ac_exec_ext in '' $ac_executable_extensions; do
  6852. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6853. ac_cv_prog_ac_ct_LIPO="lipo"
  6854. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6855. break 2
  6856. fi
  6857. done
  6858. done
  6859. IFS=$as_save_IFS
  6860. fi
  6861. fi
  6862. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6863. if test -n "$ac_ct_LIPO"; then
  6864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6865. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6866. else
  6867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6868. printf "%s\n" "no" >&6; }
  6869. fi
  6870. if test "x$ac_ct_LIPO" = x; then
  6871. LIPO=":"
  6872. else
  6873. case $cross_compiling:$ac_tool_warned in
  6874. yes:)
  6875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6876. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6877. ac_tool_warned=yes ;;
  6878. esac
  6879. LIPO=$ac_ct_LIPO
  6880. fi
  6881. else
  6882. LIPO="$ac_cv_prog_LIPO"
  6883. fi
  6884. if test -n "$ac_tool_prefix"; then
  6885. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6886. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6888. printf %s "checking for $ac_word... " >&6; }
  6889. if test ${ac_cv_prog_OTOOL+y}
  6890. then :
  6891. printf %s "(cached) " >&6
  6892. else $as_nop
  6893. if test -n "$OTOOL"; then
  6894. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6895. else
  6896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6897. for as_dir in $PATH
  6898. do
  6899. IFS=$as_save_IFS
  6900. case $as_dir in #(((
  6901. '') as_dir=./ ;;
  6902. */) ;;
  6903. *) as_dir=$as_dir/ ;;
  6904. esac
  6905. for ac_exec_ext in '' $ac_executable_extensions; do
  6906. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6907. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6908. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6909. break 2
  6910. fi
  6911. done
  6912. done
  6913. IFS=$as_save_IFS
  6914. fi
  6915. fi
  6916. OTOOL=$ac_cv_prog_OTOOL
  6917. if test -n "$OTOOL"; then
  6918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6919. printf "%s\n" "$OTOOL" >&6; }
  6920. else
  6921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6922. printf "%s\n" "no" >&6; }
  6923. fi
  6924. fi
  6925. if test -z "$ac_cv_prog_OTOOL"; then
  6926. ac_ct_OTOOL=$OTOOL
  6927. # Extract the first word of "otool", so it can be a program name with args.
  6928. set dummy otool; ac_word=$2
  6929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6930. printf %s "checking for $ac_word... " >&6; }
  6931. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6932. then :
  6933. printf %s "(cached) " >&6
  6934. else $as_nop
  6935. if test -n "$ac_ct_OTOOL"; then
  6936. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6937. else
  6938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6939. for as_dir in $PATH
  6940. do
  6941. IFS=$as_save_IFS
  6942. case $as_dir in #(((
  6943. '') as_dir=./ ;;
  6944. */) ;;
  6945. *) as_dir=$as_dir/ ;;
  6946. esac
  6947. for ac_exec_ext in '' $ac_executable_extensions; do
  6948. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6949. ac_cv_prog_ac_ct_OTOOL="otool"
  6950. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6951. break 2
  6952. fi
  6953. done
  6954. done
  6955. IFS=$as_save_IFS
  6956. fi
  6957. fi
  6958. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6959. if test -n "$ac_ct_OTOOL"; then
  6960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6961. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6962. else
  6963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6964. printf "%s\n" "no" >&6; }
  6965. fi
  6966. if test "x$ac_ct_OTOOL" = x; then
  6967. OTOOL=":"
  6968. else
  6969. case $cross_compiling:$ac_tool_warned in
  6970. yes:)
  6971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6972. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6973. ac_tool_warned=yes ;;
  6974. esac
  6975. OTOOL=$ac_ct_OTOOL
  6976. fi
  6977. else
  6978. OTOOL="$ac_cv_prog_OTOOL"
  6979. fi
  6980. if test -n "$ac_tool_prefix"; then
  6981. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6982. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6984. printf %s "checking for $ac_word... " >&6; }
  6985. if test ${ac_cv_prog_OTOOL64+y}
  6986. then :
  6987. printf %s "(cached) " >&6
  6988. else $as_nop
  6989. if test -n "$OTOOL64"; then
  6990. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6991. else
  6992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6993. for as_dir in $PATH
  6994. do
  6995. IFS=$as_save_IFS
  6996. case $as_dir in #(((
  6997. '') as_dir=./ ;;
  6998. */) ;;
  6999. *) as_dir=$as_dir/ ;;
  7000. esac
  7001. for ac_exec_ext in '' $ac_executable_extensions; do
  7002. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7003. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7004. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7005. break 2
  7006. fi
  7007. done
  7008. done
  7009. IFS=$as_save_IFS
  7010. fi
  7011. fi
  7012. OTOOL64=$ac_cv_prog_OTOOL64
  7013. if test -n "$OTOOL64"; then
  7014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7015. printf "%s\n" "$OTOOL64" >&6; }
  7016. else
  7017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7018. printf "%s\n" "no" >&6; }
  7019. fi
  7020. fi
  7021. if test -z "$ac_cv_prog_OTOOL64"; then
  7022. ac_ct_OTOOL64=$OTOOL64
  7023. # Extract the first word of "otool64", so it can be a program name with args.
  7024. set dummy otool64; ac_word=$2
  7025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7026. printf %s "checking for $ac_word... " >&6; }
  7027. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7028. then :
  7029. printf %s "(cached) " >&6
  7030. else $as_nop
  7031. if test -n "$ac_ct_OTOOL64"; then
  7032. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7033. else
  7034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7035. for as_dir in $PATH
  7036. do
  7037. IFS=$as_save_IFS
  7038. case $as_dir in #(((
  7039. '') as_dir=./ ;;
  7040. */) ;;
  7041. *) as_dir=$as_dir/ ;;
  7042. esac
  7043. for ac_exec_ext in '' $ac_executable_extensions; do
  7044. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7045. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7046. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7047. break 2
  7048. fi
  7049. done
  7050. done
  7051. IFS=$as_save_IFS
  7052. fi
  7053. fi
  7054. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7055. if test -n "$ac_ct_OTOOL64"; then
  7056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7057. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7058. else
  7059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7060. printf "%s\n" "no" >&6; }
  7061. fi
  7062. if test "x$ac_ct_OTOOL64" = x; then
  7063. OTOOL64=":"
  7064. else
  7065. case $cross_compiling:$ac_tool_warned in
  7066. yes:)
  7067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7068. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7069. ac_tool_warned=yes ;;
  7070. esac
  7071. OTOOL64=$ac_ct_OTOOL64
  7072. fi
  7073. else
  7074. OTOOL64="$ac_cv_prog_OTOOL64"
  7075. fi
  7076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7077. printf %s "checking for -single_module linker flag... " >&6; }
  7078. if test ${lt_cv_apple_cc_single_mod+y}
  7079. then :
  7080. printf %s "(cached) " >&6
  7081. else $as_nop
  7082. lt_cv_apple_cc_single_mod=no
  7083. if test -z "$LT_MULTI_MODULE"; then
  7084. # By default we will add the -single_module flag. You can override
  7085. # by either setting the environment variable LT_MULTI_MODULE
  7086. # non-empty at configure time, or by adding -multi_module to the
  7087. # link flags.
  7088. rm -rf libconftest.dylib*
  7089. echo "int foo(void){return 1;}" > conftest.c
  7090. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7091. -dynamiclib -Wl,-single_module conftest.c" >&5
  7092. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7093. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7094. _lt_result=$?
  7095. # If there is a non-empty error log, and "single_module"
  7096. # appears in it, assume the flag caused a linker warning
  7097. if test -s conftest.err && $GREP single_module conftest.err; then
  7098. cat conftest.err >&5
  7099. # Otherwise, if the output was created with a 0 exit code from
  7100. # the compiler, it worked.
  7101. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7102. lt_cv_apple_cc_single_mod=yes
  7103. else
  7104. cat conftest.err >&5
  7105. fi
  7106. rm -rf libconftest.dylib*
  7107. rm -f conftest.*
  7108. fi
  7109. fi
  7110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7111. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7113. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7114. if test ${lt_cv_ld_exported_symbols_list+y}
  7115. then :
  7116. printf %s "(cached) " >&6
  7117. else $as_nop
  7118. lt_cv_ld_exported_symbols_list=no
  7119. save_LDFLAGS=$LDFLAGS
  7120. echo "_main" > conftest.sym
  7121. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7123. /* end confdefs.h. */
  7124. int
  7125. main (void)
  7126. {
  7127. ;
  7128. return 0;
  7129. }
  7130. _ACEOF
  7131. if ac_fn_c_try_link "$LINENO"
  7132. then :
  7133. lt_cv_ld_exported_symbols_list=yes
  7134. else $as_nop
  7135. lt_cv_ld_exported_symbols_list=no
  7136. fi
  7137. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7138. conftest$ac_exeext conftest.$ac_ext
  7139. LDFLAGS=$save_LDFLAGS
  7140. fi
  7141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7142. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7144. printf %s "checking for -force_load linker flag... " >&6; }
  7145. if test ${lt_cv_ld_force_load+y}
  7146. then :
  7147. printf %s "(cached) " >&6
  7148. else $as_nop
  7149. lt_cv_ld_force_load=no
  7150. cat > conftest.c << _LT_EOF
  7151. int forced_loaded() { return 2;}
  7152. _LT_EOF
  7153. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7154. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7155. echo "$AR cru libconftest.a conftest.o" >&5
  7156. $AR cru libconftest.a conftest.o 2>&5
  7157. echo "$RANLIB libconftest.a" >&5
  7158. $RANLIB libconftest.a 2>&5
  7159. cat > conftest.c << _LT_EOF
  7160. int main() { return 0;}
  7161. _LT_EOF
  7162. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7163. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7164. _lt_result=$?
  7165. if test -s conftest.err && $GREP force_load conftest.err; then
  7166. cat conftest.err >&5
  7167. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7168. lt_cv_ld_force_load=yes
  7169. else
  7170. cat conftest.err >&5
  7171. fi
  7172. rm -f conftest.err libconftest.a conftest conftest.c
  7173. rm -rf conftest.dSYM
  7174. fi
  7175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7176. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7177. case $host_os in
  7178. rhapsody* | darwin1.[012])
  7179. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7180. darwin1.*)
  7181. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7182. darwin*)
  7183. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7184. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7185. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7186. *)
  7187. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7188. esac
  7189. ;;
  7190. esac
  7191. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7192. _lt_dar_single_mod='$single_module'
  7193. fi
  7194. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7195. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7196. else
  7197. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7198. fi
  7199. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7200. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7201. else
  7202. _lt_dsymutil=
  7203. fi
  7204. ;;
  7205. esac
  7206. # func_munge_path_list VARIABLE PATH
  7207. # -----------------------------------
  7208. # VARIABLE is name of variable containing _space_ separated list of
  7209. # directories to be munged by the contents of PATH, which is string
  7210. # having a format:
  7211. # "DIR[:DIR]:"
  7212. # string "DIR[ DIR]" will be prepended to VARIABLE
  7213. # ":DIR[:DIR]"
  7214. # string "DIR[ DIR]" will be appended to VARIABLE
  7215. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7216. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7217. # "DIRA[ DIRA]" will be appended to VARIABLE
  7218. # "DIR[:DIR]"
  7219. # VARIABLE will be replaced by "DIR[ DIR]"
  7220. func_munge_path_list ()
  7221. {
  7222. case x$2 in
  7223. x)
  7224. ;;
  7225. *:)
  7226. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7227. ;;
  7228. x:*)
  7229. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7230. ;;
  7231. *::*)
  7232. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7233. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7234. ;;
  7235. *)
  7236. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7237. ;;
  7238. esac
  7239. }
  7240. ac_header= ac_cache=
  7241. for ac_item in $ac_header_c_list
  7242. do
  7243. if test $ac_cache; then
  7244. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7245. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7246. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7247. fi
  7248. ac_header= ac_cache=
  7249. elif test $ac_header; then
  7250. ac_cache=$ac_item
  7251. else
  7252. ac_header=$ac_item
  7253. fi
  7254. done
  7255. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7256. then :
  7257. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7258. fi
  7259. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7260. "
  7261. if test "x$ac_cv_header_dlfcn_h" = xyes
  7262. then :
  7263. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7264. fi
  7265. # Set options
  7266. enable_win32_dll=yes
  7267. case $host in
  7268. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7269. if test -n "$ac_tool_prefix"; then
  7270. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7271. set dummy ${ac_tool_prefix}as; ac_word=$2
  7272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7273. printf %s "checking for $ac_word... " >&6; }
  7274. if test ${ac_cv_prog_AS+y}
  7275. then :
  7276. printf %s "(cached) " >&6
  7277. else $as_nop
  7278. if test -n "$AS"; then
  7279. ac_cv_prog_AS="$AS" # Let the user override the test.
  7280. else
  7281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7282. for as_dir in $PATH
  7283. do
  7284. IFS=$as_save_IFS
  7285. case $as_dir in #(((
  7286. '') as_dir=./ ;;
  7287. */) ;;
  7288. *) as_dir=$as_dir/ ;;
  7289. esac
  7290. for ac_exec_ext in '' $ac_executable_extensions; do
  7291. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7292. ac_cv_prog_AS="${ac_tool_prefix}as"
  7293. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7294. break 2
  7295. fi
  7296. done
  7297. done
  7298. IFS=$as_save_IFS
  7299. fi
  7300. fi
  7301. AS=$ac_cv_prog_AS
  7302. if test -n "$AS"; then
  7303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7304. printf "%s\n" "$AS" >&6; }
  7305. else
  7306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7307. printf "%s\n" "no" >&6; }
  7308. fi
  7309. fi
  7310. if test -z "$ac_cv_prog_AS"; then
  7311. ac_ct_AS=$AS
  7312. # Extract the first word of "as", so it can be a program name with args.
  7313. set dummy as; ac_word=$2
  7314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7315. printf %s "checking for $ac_word... " >&6; }
  7316. if test ${ac_cv_prog_ac_ct_AS+y}
  7317. then :
  7318. printf %s "(cached) " >&6
  7319. else $as_nop
  7320. if test -n "$ac_ct_AS"; then
  7321. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7322. else
  7323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7324. for as_dir in $PATH
  7325. do
  7326. IFS=$as_save_IFS
  7327. case $as_dir in #(((
  7328. '') as_dir=./ ;;
  7329. */) ;;
  7330. *) as_dir=$as_dir/ ;;
  7331. esac
  7332. for ac_exec_ext in '' $ac_executable_extensions; do
  7333. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7334. ac_cv_prog_ac_ct_AS="as"
  7335. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7336. break 2
  7337. fi
  7338. done
  7339. done
  7340. IFS=$as_save_IFS
  7341. fi
  7342. fi
  7343. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7344. if test -n "$ac_ct_AS"; then
  7345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7346. printf "%s\n" "$ac_ct_AS" >&6; }
  7347. else
  7348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7349. printf "%s\n" "no" >&6; }
  7350. fi
  7351. if test "x$ac_ct_AS" = x; then
  7352. AS="false"
  7353. else
  7354. case $cross_compiling:$ac_tool_warned in
  7355. yes:)
  7356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7357. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7358. ac_tool_warned=yes ;;
  7359. esac
  7360. AS=$ac_ct_AS
  7361. fi
  7362. else
  7363. AS="$ac_cv_prog_AS"
  7364. fi
  7365. if test -n "$ac_tool_prefix"; then
  7366. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7367. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7369. printf %s "checking for $ac_word... " >&6; }
  7370. if test ${ac_cv_prog_DLLTOOL+y}
  7371. then :
  7372. printf %s "(cached) " >&6
  7373. else $as_nop
  7374. if test -n "$DLLTOOL"; then
  7375. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7376. else
  7377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7378. for as_dir in $PATH
  7379. do
  7380. IFS=$as_save_IFS
  7381. case $as_dir in #(((
  7382. '') as_dir=./ ;;
  7383. */) ;;
  7384. *) as_dir=$as_dir/ ;;
  7385. esac
  7386. for ac_exec_ext in '' $ac_executable_extensions; do
  7387. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7388. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7389. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7390. break 2
  7391. fi
  7392. done
  7393. done
  7394. IFS=$as_save_IFS
  7395. fi
  7396. fi
  7397. DLLTOOL=$ac_cv_prog_DLLTOOL
  7398. if test -n "$DLLTOOL"; then
  7399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7400. printf "%s\n" "$DLLTOOL" >&6; }
  7401. else
  7402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7403. printf "%s\n" "no" >&6; }
  7404. fi
  7405. fi
  7406. if test -z "$ac_cv_prog_DLLTOOL"; then
  7407. ac_ct_DLLTOOL=$DLLTOOL
  7408. # Extract the first word of "dlltool", so it can be a program name with args.
  7409. set dummy dlltool; ac_word=$2
  7410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7411. printf %s "checking for $ac_word... " >&6; }
  7412. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7413. then :
  7414. printf %s "(cached) " >&6
  7415. else $as_nop
  7416. if test -n "$ac_ct_DLLTOOL"; then
  7417. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7418. else
  7419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7420. for as_dir in $PATH
  7421. do
  7422. IFS=$as_save_IFS
  7423. case $as_dir in #(((
  7424. '') as_dir=./ ;;
  7425. */) ;;
  7426. *) as_dir=$as_dir/ ;;
  7427. esac
  7428. for ac_exec_ext in '' $ac_executable_extensions; do
  7429. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7430. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7431. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7432. break 2
  7433. fi
  7434. done
  7435. done
  7436. IFS=$as_save_IFS
  7437. fi
  7438. fi
  7439. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7440. if test -n "$ac_ct_DLLTOOL"; then
  7441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7442. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7443. else
  7444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7445. printf "%s\n" "no" >&6; }
  7446. fi
  7447. if test "x$ac_ct_DLLTOOL" = x; then
  7448. DLLTOOL="false"
  7449. else
  7450. case $cross_compiling:$ac_tool_warned in
  7451. yes:)
  7452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7453. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7454. ac_tool_warned=yes ;;
  7455. esac
  7456. DLLTOOL=$ac_ct_DLLTOOL
  7457. fi
  7458. else
  7459. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7460. fi
  7461. if test -n "$ac_tool_prefix"; then
  7462. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7463. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7465. printf %s "checking for $ac_word... " >&6; }
  7466. if test ${ac_cv_prog_OBJDUMP+y}
  7467. then :
  7468. printf %s "(cached) " >&6
  7469. else $as_nop
  7470. if test -n "$OBJDUMP"; then
  7471. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7472. else
  7473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7474. for as_dir in $PATH
  7475. do
  7476. IFS=$as_save_IFS
  7477. case $as_dir in #(((
  7478. '') as_dir=./ ;;
  7479. */) ;;
  7480. *) as_dir=$as_dir/ ;;
  7481. esac
  7482. for ac_exec_ext in '' $ac_executable_extensions; do
  7483. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7484. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7485. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7486. break 2
  7487. fi
  7488. done
  7489. done
  7490. IFS=$as_save_IFS
  7491. fi
  7492. fi
  7493. OBJDUMP=$ac_cv_prog_OBJDUMP
  7494. if test -n "$OBJDUMP"; then
  7495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7496. printf "%s\n" "$OBJDUMP" >&6; }
  7497. else
  7498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7499. printf "%s\n" "no" >&6; }
  7500. fi
  7501. fi
  7502. if test -z "$ac_cv_prog_OBJDUMP"; then
  7503. ac_ct_OBJDUMP=$OBJDUMP
  7504. # Extract the first word of "objdump", so it can be a program name with args.
  7505. set dummy objdump; ac_word=$2
  7506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7507. printf %s "checking for $ac_word... " >&6; }
  7508. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7509. then :
  7510. printf %s "(cached) " >&6
  7511. else $as_nop
  7512. if test -n "$ac_ct_OBJDUMP"; then
  7513. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7514. else
  7515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7516. for as_dir in $PATH
  7517. do
  7518. IFS=$as_save_IFS
  7519. case $as_dir in #(((
  7520. '') as_dir=./ ;;
  7521. */) ;;
  7522. *) as_dir=$as_dir/ ;;
  7523. esac
  7524. for ac_exec_ext in '' $ac_executable_extensions; do
  7525. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7526. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7527. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7528. break 2
  7529. fi
  7530. done
  7531. done
  7532. IFS=$as_save_IFS
  7533. fi
  7534. fi
  7535. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7536. if test -n "$ac_ct_OBJDUMP"; then
  7537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7538. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7539. else
  7540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7541. printf "%s\n" "no" >&6; }
  7542. fi
  7543. if test "x$ac_ct_OBJDUMP" = x; then
  7544. OBJDUMP="false"
  7545. else
  7546. case $cross_compiling:$ac_tool_warned in
  7547. yes:)
  7548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7549. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7550. ac_tool_warned=yes ;;
  7551. esac
  7552. OBJDUMP=$ac_ct_OBJDUMP
  7553. fi
  7554. else
  7555. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7556. fi
  7557. ;;
  7558. esac
  7559. test -z "$AS" && AS=as
  7560. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7561. test -z "$OBJDUMP" && OBJDUMP=objdump
  7562. enable_dlopen=no
  7563. # Check whether --enable-shared was given.
  7564. if test ${enable_shared+y}
  7565. then :
  7566. enableval=$enable_shared; p=${PACKAGE-default}
  7567. case $enableval in
  7568. yes) enable_shared=yes ;;
  7569. no) enable_shared=no ;;
  7570. *)
  7571. enable_shared=no
  7572. # Look at the argument we got. We use all the common list separators.
  7573. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7574. for pkg in $enableval; do
  7575. IFS=$lt_save_ifs
  7576. if test "X$pkg" = "X$p"; then
  7577. enable_shared=yes
  7578. fi
  7579. done
  7580. IFS=$lt_save_ifs
  7581. ;;
  7582. esac
  7583. else $as_nop
  7584. enable_shared=yes
  7585. fi
  7586. # Check whether --enable-static was given.
  7587. if test ${enable_static+y}
  7588. then :
  7589. enableval=$enable_static; p=${PACKAGE-default}
  7590. case $enableval in
  7591. yes) enable_static=yes ;;
  7592. no) enable_static=no ;;
  7593. *)
  7594. enable_static=no
  7595. # Look at the argument we got. We use all the common list separators.
  7596. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7597. for pkg in $enableval; do
  7598. IFS=$lt_save_ifs
  7599. if test "X$pkg" = "X$p"; then
  7600. enable_static=yes
  7601. fi
  7602. done
  7603. IFS=$lt_save_ifs
  7604. ;;
  7605. esac
  7606. else $as_nop
  7607. enable_static=yes
  7608. fi
  7609. # Check whether --with-pic was given.
  7610. if test ${with_pic+y}
  7611. then :
  7612. withval=$with_pic; lt_p=${PACKAGE-default}
  7613. case $withval in
  7614. yes|no) pic_mode=$withval ;;
  7615. *)
  7616. pic_mode=default
  7617. # Look at the argument we got. We use all the common list separators.
  7618. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7619. for lt_pkg in $withval; do
  7620. IFS=$lt_save_ifs
  7621. if test "X$lt_pkg" = "X$lt_p"; then
  7622. pic_mode=yes
  7623. fi
  7624. done
  7625. IFS=$lt_save_ifs
  7626. ;;
  7627. esac
  7628. else $as_nop
  7629. pic_mode=default
  7630. fi
  7631. # Check whether --enable-fast-install was given.
  7632. if test ${enable_fast_install+y}
  7633. then :
  7634. enableval=$enable_fast_install; p=${PACKAGE-default}
  7635. case $enableval in
  7636. yes) enable_fast_install=yes ;;
  7637. no) enable_fast_install=no ;;
  7638. *)
  7639. enable_fast_install=no
  7640. # Look at the argument we got. We use all the common list separators.
  7641. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7642. for pkg in $enableval; do
  7643. IFS=$lt_save_ifs
  7644. if test "X$pkg" = "X$p"; then
  7645. enable_fast_install=yes
  7646. fi
  7647. done
  7648. IFS=$lt_save_ifs
  7649. ;;
  7650. esac
  7651. else $as_nop
  7652. enable_fast_install=yes
  7653. fi
  7654. shared_archive_member_spec=
  7655. case $host,$enable_shared in
  7656. power*-*-aix[5-9]*,yes)
  7657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7658. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7659. # Check whether --with-aix-soname was given.
  7660. if test ${with_aix_soname+y}
  7661. then :
  7662. withval=$with_aix_soname; case $withval in
  7663. aix|svr4|both)
  7664. ;;
  7665. *)
  7666. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7667. ;;
  7668. esac
  7669. lt_cv_with_aix_soname=$with_aix_soname
  7670. else $as_nop
  7671. if test ${lt_cv_with_aix_soname+y}
  7672. then :
  7673. printf %s "(cached) " >&6
  7674. else $as_nop
  7675. lt_cv_with_aix_soname=aix
  7676. fi
  7677. with_aix_soname=$lt_cv_with_aix_soname
  7678. fi
  7679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7680. printf "%s\n" "$with_aix_soname" >&6; }
  7681. if test aix != "$with_aix_soname"; then
  7682. # For the AIX way of multilib, we name the shared archive member
  7683. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7684. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7685. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7686. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7687. if test 64 = "${OBJECT_MODE-32}"; then
  7688. shared_archive_member_spec=shr_64
  7689. else
  7690. shared_archive_member_spec=shr
  7691. fi
  7692. fi
  7693. ;;
  7694. *)
  7695. with_aix_soname=aix
  7696. ;;
  7697. esac
  7698. # This can be used to rebuild libtool when needed
  7699. LIBTOOL_DEPS=$ltmain
  7700. # Always use our own libtool.
  7701. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7702. test -z "$LN_S" && LN_S="ln -s"
  7703. if test -n "${ZSH_VERSION+set}"; then
  7704. setopt NO_GLOB_SUBST
  7705. fi
  7706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7707. printf %s "checking for objdir... " >&6; }
  7708. if test ${lt_cv_objdir+y}
  7709. then :
  7710. printf %s "(cached) " >&6
  7711. else $as_nop
  7712. rm -f .libs 2>/dev/null
  7713. mkdir .libs 2>/dev/null
  7714. if test -d .libs; then
  7715. lt_cv_objdir=.libs
  7716. else
  7717. # MS-DOS does not allow filenames that begin with a dot.
  7718. lt_cv_objdir=_libs
  7719. fi
  7720. rmdir .libs 2>/dev/null
  7721. fi
  7722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7723. printf "%s\n" "$lt_cv_objdir" >&6; }
  7724. objdir=$lt_cv_objdir
  7725. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7726. case $host_os in
  7727. aix3*)
  7728. # AIX sometimes has problems with the GCC collect2 program. For some
  7729. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7730. # vanish in a puff of smoke.
  7731. if test set != "${COLLECT_NAMES+set}"; then
  7732. COLLECT_NAMES=
  7733. export COLLECT_NAMES
  7734. fi
  7735. ;;
  7736. esac
  7737. # Global variables:
  7738. ofile=libtool
  7739. can_build_shared=yes
  7740. # All known linkers require a '.a' archive for static linking (except MSVC,
  7741. # which needs '.lib').
  7742. libext=a
  7743. with_gnu_ld=$lt_cv_prog_gnu_ld
  7744. old_CC=$CC
  7745. old_CFLAGS=$CFLAGS
  7746. # Set sane defaults for various variables
  7747. test -z "$CC" && CC=cc
  7748. test -z "$LTCC" && LTCC=$CC
  7749. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7750. test -z "$LD" && LD=ld
  7751. test -z "$ac_objext" && ac_objext=o
  7752. func_cc_basename $compiler
  7753. cc_basename=$func_cc_basename_result
  7754. # Only perform the check for file, if the check method requires it
  7755. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7756. case $deplibs_check_method in
  7757. file_magic*)
  7758. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7760. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7761. if test ${lt_cv_path_MAGIC_CMD+y}
  7762. then :
  7763. printf %s "(cached) " >&6
  7764. else $as_nop
  7765. case $MAGIC_CMD in
  7766. [\\/*] | ?:[\\/]*)
  7767. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7768. ;;
  7769. *)
  7770. lt_save_MAGIC_CMD=$MAGIC_CMD
  7771. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7772. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7773. for ac_dir in $ac_dummy; do
  7774. IFS=$lt_save_ifs
  7775. test -z "$ac_dir" && ac_dir=.
  7776. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7777. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7778. if test -n "$file_magic_test_file"; then
  7779. case $deplibs_check_method in
  7780. "file_magic "*)
  7781. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7782. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7783. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7784. $EGREP "$file_magic_regex" > /dev/null; then
  7785. :
  7786. else
  7787. cat <<_LT_EOF 1>&2
  7788. *** Warning: the command libtool uses to detect shared libraries,
  7789. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7790. *** The result is that libtool may fail to recognize shared libraries
  7791. *** as such. This will affect the creation of libtool libraries that
  7792. *** depend on shared libraries, but programs linked with such libtool
  7793. *** libraries will work regardless of this problem. Nevertheless, you
  7794. *** may want to report the problem to your system manager and/or to
  7795. *** bug-libtool@gnu.org
  7796. _LT_EOF
  7797. fi ;;
  7798. esac
  7799. fi
  7800. break
  7801. fi
  7802. done
  7803. IFS=$lt_save_ifs
  7804. MAGIC_CMD=$lt_save_MAGIC_CMD
  7805. ;;
  7806. esac
  7807. fi
  7808. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7809. if test -n "$MAGIC_CMD"; then
  7810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7811. printf "%s\n" "$MAGIC_CMD" >&6; }
  7812. else
  7813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7814. printf "%s\n" "no" >&6; }
  7815. fi
  7816. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7817. if test -n "$ac_tool_prefix"; then
  7818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7819. printf %s "checking for file... " >&6; }
  7820. if test ${lt_cv_path_MAGIC_CMD+y}
  7821. then :
  7822. printf %s "(cached) " >&6
  7823. else $as_nop
  7824. case $MAGIC_CMD in
  7825. [\\/*] | ?:[\\/]*)
  7826. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7827. ;;
  7828. *)
  7829. lt_save_MAGIC_CMD=$MAGIC_CMD
  7830. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7831. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7832. for ac_dir in $ac_dummy; do
  7833. IFS=$lt_save_ifs
  7834. test -z "$ac_dir" && ac_dir=.
  7835. if test -f "$ac_dir/file"; then
  7836. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7837. if test -n "$file_magic_test_file"; then
  7838. case $deplibs_check_method in
  7839. "file_magic "*)
  7840. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7841. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7842. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7843. $EGREP "$file_magic_regex" > /dev/null; then
  7844. :
  7845. else
  7846. cat <<_LT_EOF 1>&2
  7847. *** Warning: the command libtool uses to detect shared libraries,
  7848. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7849. *** The result is that libtool may fail to recognize shared libraries
  7850. *** as such. This will affect the creation of libtool libraries that
  7851. *** depend on shared libraries, but programs linked with such libtool
  7852. *** libraries will work regardless of this problem. Nevertheless, you
  7853. *** may want to report the problem to your system manager and/or to
  7854. *** bug-libtool@gnu.org
  7855. _LT_EOF
  7856. fi ;;
  7857. esac
  7858. fi
  7859. break
  7860. fi
  7861. done
  7862. IFS=$lt_save_ifs
  7863. MAGIC_CMD=$lt_save_MAGIC_CMD
  7864. ;;
  7865. esac
  7866. fi
  7867. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7868. if test -n "$MAGIC_CMD"; then
  7869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7870. printf "%s\n" "$MAGIC_CMD" >&6; }
  7871. else
  7872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7873. printf "%s\n" "no" >&6; }
  7874. fi
  7875. else
  7876. MAGIC_CMD=:
  7877. fi
  7878. fi
  7879. fi
  7880. ;;
  7881. esac
  7882. # Use C for the default configuration in the libtool script
  7883. lt_save_CC=$CC
  7884. ac_ext=c
  7885. ac_cpp='$CPP $CPPFLAGS'
  7886. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7887. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7888. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7889. # Source file extension for C test sources.
  7890. ac_ext=c
  7891. # Object file extension for compiled C test sources.
  7892. objext=o
  7893. objext=$objext
  7894. # Code to be used in simple compile tests
  7895. lt_simple_compile_test_code="int some_variable = 0;"
  7896. # Code to be used in simple link tests
  7897. lt_simple_link_test_code='int main(){return(0);}'
  7898. # If no C compiler was specified, use CC.
  7899. LTCC=${LTCC-"$CC"}
  7900. # If no C compiler flags were specified, use CFLAGS.
  7901. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7902. # Allow CC to be a program name with arguments.
  7903. compiler=$CC
  7904. # Save the default compiler, since it gets overwritten when the other
  7905. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7906. compiler_DEFAULT=$CC
  7907. # save warnings/boilerplate of simple test code
  7908. ac_outfile=conftest.$ac_objext
  7909. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7910. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7911. _lt_compiler_boilerplate=`cat conftest.err`
  7912. $RM conftest*
  7913. ac_outfile=conftest.$ac_objext
  7914. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7915. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7916. _lt_linker_boilerplate=`cat conftest.err`
  7917. $RM -r conftest*
  7918. ## CAVEAT EMPTOR:
  7919. ## There is no encapsulation within the following macros, do not change
  7920. ## the running order or otherwise move them around unless you know exactly
  7921. ## what you are doing...
  7922. if test -n "$compiler"; then
  7923. lt_prog_compiler_no_builtin_flag=
  7924. if test yes = "$GCC"; then
  7925. case $cc_basename in
  7926. nvcc*)
  7927. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7928. *)
  7929. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7930. esac
  7931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7932. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7933. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7934. then :
  7935. printf %s "(cached) " >&6
  7936. else $as_nop
  7937. lt_cv_prog_compiler_rtti_exceptions=no
  7938. ac_outfile=conftest.$ac_objext
  7939. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7940. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7941. # Insert the option either (1) after the last *FLAGS variable, or
  7942. # (2) before a word containing "conftest.", or (3) at the end.
  7943. # Note that $ac_compile itself does not contain backslashes and begins
  7944. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7945. # The option is referenced via a variable to avoid confusing sed.
  7946. lt_compile=`echo "$ac_compile" | $SED \
  7947. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7948. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7949. -e 's:$: $lt_compiler_flag:'`
  7950. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7951. (eval "$lt_compile" 2>conftest.err)
  7952. ac_status=$?
  7953. cat conftest.err >&5
  7954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7955. if (exit $ac_status) && test -s "$ac_outfile"; then
  7956. # The compiler can only warn and ignore the option if not recognized
  7957. # So say no if there are warnings other than the usual output.
  7958. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7959. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7960. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7961. lt_cv_prog_compiler_rtti_exceptions=yes
  7962. fi
  7963. fi
  7964. $RM conftest*
  7965. fi
  7966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7967. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7968. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7969. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7970. else
  7971. :
  7972. fi
  7973. fi
  7974. lt_prog_compiler_wl=
  7975. lt_prog_compiler_pic=
  7976. lt_prog_compiler_static=
  7977. if test yes = "$GCC"; then
  7978. lt_prog_compiler_wl='-Wl,'
  7979. lt_prog_compiler_static='-static'
  7980. case $host_os in
  7981. aix*)
  7982. # All AIX code is PIC.
  7983. if test ia64 = "$host_cpu"; then
  7984. # AIX 5 now supports IA64 processor
  7985. lt_prog_compiler_static='-Bstatic'
  7986. fi
  7987. lt_prog_compiler_pic='-fPIC'
  7988. ;;
  7989. amigaos*)
  7990. case $host_cpu in
  7991. powerpc)
  7992. # see comment about AmigaOS4 .so support
  7993. lt_prog_compiler_pic='-fPIC'
  7994. ;;
  7995. m68k)
  7996. # FIXME: we need at least 68020 code to build shared libraries, but
  7997. # adding the '-m68020' flag to GCC prevents building anything better,
  7998. # like '-m68040'.
  7999. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8000. ;;
  8001. esac
  8002. ;;
  8003. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8004. # PIC is the default for these OSes.
  8005. ;;
  8006. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8007. # This hack is so that the source file can tell whether it is being
  8008. # built for inclusion in a dll (and should export symbols for example).
  8009. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8010. # (--disable-auto-import) libraries
  8011. lt_prog_compiler_pic='-DDLL_EXPORT'
  8012. case $host_os in
  8013. os2*)
  8014. lt_prog_compiler_static='$wl-static'
  8015. ;;
  8016. esac
  8017. ;;
  8018. darwin* | rhapsody*)
  8019. # PIC is the default on this platform
  8020. # Common symbols not allowed in MH_DYLIB files
  8021. lt_prog_compiler_pic='-fno-common'
  8022. ;;
  8023. haiku*)
  8024. # PIC is the default for Haiku.
  8025. # The "-static" flag exists, but is broken.
  8026. lt_prog_compiler_static=
  8027. ;;
  8028. hpux*)
  8029. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8030. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8031. # sets the default TLS model and affects inlining.
  8032. case $host_cpu in
  8033. hppa*64*)
  8034. # +Z the default
  8035. ;;
  8036. *)
  8037. lt_prog_compiler_pic='-fPIC'
  8038. ;;
  8039. esac
  8040. ;;
  8041. interix[3-9]*)
  8042. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8043. # Instead, we relocate shared libraries at runtime.
  8044. ;;
  8045. msdosdjgpp*)
  8046. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8047. # on systems that don't support them.
  8048. lt_prog_compiler_can_build_shared=no
  8049. enable_shared=no
  8050. ;;
  8051. *nto* | *qnx*)
  8052. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8053. # it will coredump.
  8054. lt_prog_compiler_pic='-fPIC -shared'
  8055. ;;
  8056. sysv4*MP*)
  8057. if test -d /usr/nec; then
  8058. lt_prog_compiler_pic=-Kconform_pic
  8059. fi
  8060. ;;
  8061. *)
  8062. lt_prog_compiler_pic='-fPIC'
  8063. ;;
  8064. esac
  8065. case $cc_basename in
  8066. nvcc*) # Cuda Compiler Driver 2.2
  8067. lt_prog_compiler_wl='-Xlinker '
  8068. if test -n "$lt_prog_compiler_pic"; then
  8069. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8070. fi
  8071. ;;
  8072. esac
  8073. else
  8074. # PORTME Check for flag to pass linker flags through the system compiler.
  8075. case $host_os in
  8076. aix*)
  8077. lt_prog_compiler_wl='-Wl,'
  8078. if test ia64 = "$host_cpu"; then
  8079. # AIX 5 now supports IA64 processor
  8080. lt_prog_compiler_static='-Bstatic'
  8081. else
  8082. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8083. fi
  8084. ;;
  8085. darwin* | rhapsody*)
  8086. # PIC is the default on this platform
  8087. # Common symbols not allowed in MH_DYLIB files
  8088. lt_prog_compiler_pic='-fno-common'
  8089. case $cc_basename in
  8090. nagfor*)
  8091. # NAG Fortran compiler
  8092. lt_prog_compiler_wl='-Wl,-Wl,,'
  8093. lt_prog_compiler_pic='-PIC'
  8094. lt_prog_compiler_static='-Bstatic'
  8095. ;;
  8096. esac
  8097. ;;
  8098. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8099. # This hack is so that the source file can tell whether it is being
  8100. # built for inclusion in a dll (and should export symbols for example).
  8101. lt_prog_compiler_pic='-DDLL_EXPORT'
  8102. case $host_os in
  8103. os2*)
  8104. lt_prog_compiler_static='$wl-static'
  8105. ;;
  8106. esac
  8107. ;;
  8108. hpux9* | hpux10* | hpux11*)
  8109. lt_prog_compiler_wl='-Wl,'
  8110. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8111. # not for PA HP-UX.
  8112. case $host_cpu in
  8113. hppa*64*|ia64*)
  8114. # +Z the default
  8115. ;;
  8116. *)
  8117. lt_prog_compiler_pic='+Z'
  8118. ;;
  8119. esac
  8120. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8121. lt_prog_compiler_static='$wl-a ${wl}archive'
  8122. ;;
  8123. irix5* | irix6* | nonstopux*)
  8124. lt_prog_compiler_wl='-Wl,'
  8125. # PIC (with -KPIC) is the default.
  8126. lt_prog_compiler_static='-non_shared'
  8127. ;;
  8128. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8129. case $cc_basename in
  8130. # old Intel for x86_64, which still supported -KPIC.
  8131. ecc*)
  8132. lt_prog_compiler_wl='-Wl,'
  8133. lt_prog_compiler_pic='-KPIC'
  8134. lt_prog_compiler_static='-static'
  8135. ;;
  8136. # icc used to be incompatible with GCC.
  8137. # ICC 10 doesn't accept -KPIC any more.
  8138. icc* | ifort*)
  8139. lt_prog_compiler_wl='-Wl,'
  8140. lt_prog_compiler_pic='-fPIC'
  8141. lt_prog_compiler_static='-static'
  8142. ;;
  8143. # Lahey Fortran 8.1.
  8144. lf95*)
  8145. lt_prog_compiler_wl='-Wl,'
  8146. lt_prog_compiler_pic='--shared'
  8147. lt_prog_compiler_static='--static'
  8148. ;;
  8149. nagfor*)
  8150. # NAG Fortran compiler
  8151. lt_prog_compiler_wl='-Wl,-Wl,,'
  8152. lt_prog_compiler_pic='-PIC'
  8153. lt_prog_compiler_static='-Bstatic'
  8154. ;;
  8155. tcc*)
  8156. # Fabrice Bellard et al's Tiny C Compiler
  8157. lt_prog_compiler_wl='-Wl,'
  8158. lt_prog_compiler_pic='-fPIC'
  8159. lt_prog_compiler_static='-static'
  8160. ;;
  8161. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8162. # Portland Group compilers (*not* the Pentium gcc compiler,
  8163. # which looks to be a dead project)
  8164. lt_prog_compiler_wl='-Wl,'
  8165. lt_prog_compiler_pic='-fpic'
  8166. lt_prog_compiler_static='-Bstatic'
  8167. ;;
  8168. ccc*)
  8169. lt_prog_compiler_wl='-Wl,'
  8170. # All Alpha code is PIC.
  8171. lt_prog_compiler_static='-non_shared'
  8172. ;;
  8173. xl* | bgxl* | bgf* | mpixl*)
  8174. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8175. lt_prog_compiler_wl='-Wl,'
  8176. lt_prog_compiler_pic='-qpic'
  8177. lt_prog_compiler_static='-qstaticlink'
  8178. ;;
  8179. *)
  8180. case `$CC -V 2>&1 | sed 5q` in
  8181. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8182. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8183. lt_prog_compiler_pic='-KPIC'
  8184. lt_prog_compiler_static='-Bstatic'
  8185. lt_prog_compiler_wl=''
  8186. ;;
  8187. *Sun\ F* | *Sun*Fortran*)
  8188. lt_prog_compiler_pic='-KPIC'
  8189. lt_prog_compiler_static='-Bstatic'
  8190. lt_prog_compiler_wl='-Qoption ld '
  8191. ;;
  8192. *Sun\ C*)
  8193. # Sun C 5.9
  8194. lt_prog_compiler_pic='-KPIC'
  8195. lt_prog_compiler_static='-Bstatic'
  8196. lt_prog_compiler_wl='-Wl,'
  8197. ;;
  8198. *Intel*\ [CF]*Compiler*)
  8199. lt_prog_compiler_wl='-Wl,'
  8200. lt_prog_compiler_pic='-fPIC'
  8201. lt_prog_compiler_static='-static'
  8202. ;;
  8203. *Portland\ Group*)
  8204. lt_prog_compiler_wl='-Wl,'
  8205. lt_prog_compiler_pic='-fpic'
  8206. lt_prog_compiler_static='-Bstatic'
  8207. ;;
  8208. esac
  8209. ;;
  8210. esac
  8211. ;;
  8212. newsos6)
  8213. lt_prog_compiler_pic='-KPIC'
  8214. lt_prog_compiler_static='-Bstatic'
  8215. ;;
  8216. *nto* | *qnx*)
  8217. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8218. # it will coredump.
  8219. lt_prog_compiler_pic='-fPIC -shared'
  8220. ;;
  8221. osf3* | osf4* | osf5*)
  8222. lt_prog_compiler_wl='-Wl,'
  8223. # All OSF/1 code is PIC.
  8224. lt_prog_compiler_static='-non_shared'
  8225. ;;
  8226. rdos*)
  8227. lt_prog_compiler_static='-non_shared'
  8228. ;;
  8229. solaris*)
  8230. lt_prog_compiler_pic='-KPIC'
  8231. lt_prog_compiler_static='-Bstatic'
  8232. case $cc_basename in
  8233. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8234. lt_prog_compiler_wl='-Qoption ld ';;
  8235. *)
  8236. lt_prog_compiler_wl='-Wl,';;
  8237. esac
  8238. ;;
  8239. sunos4*)
  8240. lt_prog_compiler_wl='-Qoption ld '
  8241. lt_prog_compiler_pic='-PIC'
  8242. lt_prog_compiler_static='-Bstatic'
  8243. ;;
  8244. sysv4 | sysv4.2uw2* | sysv4.3*)
  8245. lt_prog_compiler_wl='-Wl,'
  8246. lt_prog_compiler_pic='-KPIC'
  8247. lt_prog_compiler_static='-Bstatic'
  8248. ;;
  8249. sysv4*MP*)
  8250. if test -d /usr/nec; then
  8251. lt_prog_compiler_pic='-Kconform_pic'
  8252. lt_prog_compiler_static='-Bstatic'
  8253. fi
  8254. ;;
  8255. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8256. lt_prog_compiler_wl='-Wl,'
  8257. lt_prog_compiler_pic='-KPIC'
  8258. lt_prog_compiler_static='-Bstatic'
  8259. ;;
  8260. unicos*)
  8261. lt_prog_compiler_wl='-Wl,'
  8262. lt_prog_compiler_can_build_shared=no
  8263. ;;
  8264. uts4*)
  8265. lt_prog_compiler_pic='-pic'
  8266. lt_prog_compiler_static='-Bstatic'
  8267. ;;
  8268. *)
  8269. lt_prog_compiler_can_build_shared=no
  8270. ;;
  8271. esac
  8272. fi
  8273. case $host_os in
  8274. # For platforms that do not support PIC, -DPIC is meaningless:
  8275. *djgpp*)
  8276. lt_prog_compiler_pic=
  8277. ;;
  8278. *)
  8279. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8280. ;;
  8281. esac
  8282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8283. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8284. if test ${lt_cv_prog_compiler_pic+y}
  8285. then :
  8286. printf %s "(cached) " >&6
  8287. else $as_nop
  8288. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8289. fi
  8290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8291. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8292. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8293. #
  8294. # Check to make sure the PIC flag actually works.
  8295. #
  8296. if test -n "$lt_prog_compiler_pic"; then
  8297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8298. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8299. if test ${lt_cv_prog_compiler_pic_works+y}
  8300. then :
  8301. printf %s "(cached) " >&6
  8302. else $as_nop
  8303. lt_cv_prog_compiler_pic_works=no
  8304. ac_outfile=conftest.$ac_objext
  8305. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8306. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8307. # Insert the option either (1) after the last *FLAGS variable, or
  8308. # (2) before a word containing "conftest.", or (3) at the end.
  8309. # Note that $ac_compile itself does not contain backslashes and begins
  8310. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8311. # The option is referenced via a variable to avoid confusing sed.
  8312. lt_compile=`echo "$ac_compile" | $SED \
  8313. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8314. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8315. -e 's:$: $lt_compiler_flag:'`
  8316. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8317. (eval "$lt_compile" 2>conftest.err)
  8318. ac_status=$?
  8319. cat conftest.err >&5
  8320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8321. if (exit $ac_status) && test -s "$ac_outfile"; then
  8322. # The compiler can only warn and ignore the option if not recognized
  8323. # So say no if there are warnings other than the usual output.
  8324. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8325. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8326. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8327. lt_cv_prog_compiler_pic_works=yes
  8328. fi
  8329. fi
  8330. $RM conftest*
  8331. fi
  8332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8333. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8334. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8335. case $lt_prog_compiler_pic in
  8336. "" | " "*) ;;
  8337. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8338. esac
  8339. else
  8340. lt_prog_compiler_pic=
  8341. lt_prog_compiler_can_build_shared=no
  8342. fi
  8343. fi
  8344. #
  8345. # Check to make sure the static flag actually works.
  8346. #
  8347. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8349. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8350. if test ${lt_cv_prog_compiler_static_works+y}
  8351. then :
  8352. printf %s "(cached) " >&6
  8353. else $as_nop
  8354. lt_cv_prog_compiler_static_works=no
  8355. save_LDFLAGS=$LDFLAGS
  8356. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8357. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8358. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8359. # The linker can only warn and ignore the option if not recognized
  8360. # So say no if there are warnings
  8361. if test -s conftest.err; then
  8362. # Append any errors to the config.log.
  8363. cat conftest.err 1>&5
  8364. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8365. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8366. if diff conftest.exp conftest.er2 >/dev/null; then
  8367. lt_cv_prog_compiler_static_works=yes
  8368. fi
  8369. else
  8370. lt_cv_prog_compiler_static_works=yes
  8371. fi
  8372. fi
  8373. $RM -r conftest*
  8374. LDFLAGS=$save_LDFLAGS
  8375. fi
  8376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8377. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8378. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8379. :
  8380. else
  8381. lt_prog_compiler_static=
  8382. fi
  8383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8384. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8385. if test ${lt_cv_prog_compiler_c_o+y}
  8386. then :
  8387. printf %s "(cached) " >&6
  8388. else $as_nop
  8389. lt_cv_prog_compiler_c_o=no
  8390. $RM -r conftest 2>/dev/null
  8391. mkdir conftest
  8392. cd conftest
  8393. mkdir out
  8394. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8395. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8396. # Insert the option either (1) after the last *FLAGS variable, or
  8397. # (2) before a word containing "conftest.", or (3) at the end.
  8398. # Note that $ac_compile itself does not contain backslashes and begins
  8399. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8400. lt_compile=`echo "$ac_compile" | $SED \
  8401. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8402. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8403. -e 's:$: $lt_compiler_flag:'`
  8404. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8405. (eval "$lt_compile" 2>out/conftest.err)
  8406. ac_status=$?
  8407. cat out/conftest.err >&5
  8408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8409. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8410. then
  8411. # The compiler can only warn and ignore the option if not recognized
  8412. # So say no if there are warnings
  8413. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8414. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8415. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8416. lt_cv_prog_compiler_c_o=yes
  8417. fi
  8418. fi
  8419. chmod u+w . 2>&5
  8420. $RM conftest*
  8421. # SGI C++ compiler will create directory out/ii_files/ for
  8422. # template instantiation
  8423. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8424. $RM out/* && rmdir out
  8425. cd ..
  8426. $RM -r conftest
  8427. $RM conftest*
  8428. fi
  8429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8430. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8432. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8433. if test ${lt_cv_prog_compiler_c_o+y}
  8434. then :
  8435. printf %s "(cached) " >&6
  8436. else $as_nop
  8437. lt_cv_prog_compiler_c_o=no
  8438. $RM -r conftest 2>/dev/null
  8439. mkdir conftest
  8440. cd conftest
  8441. mkdir out
  8442. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8443. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8444. # Insert the option either (1) after the last *FLAGS variable, or
  8445. # (2) before a word containing "conftest.", or (3) at the end.
  8446. # Note that $ac_compile itself does not contain backslashes and begins
  8447. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8448. lt_compile=`echo "$ac_compile" | $SED \
  8449. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8450. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8451. -e 's:$: $lt_compiler_flag:'`
  8452. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8453. (eval "$lt_compile" 2>out/conftest.err)
  8454. ac_status=$?
  8455. cat out/conftest.err >&5
  8456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8457. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8458. then
  8459. # The compiler can only warn and ignore the option if not recognized
  8460. # So say no if there are warnings
  8461. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8462. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8463. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8464. lt_cv_prog_compiler_c_o=yes
  8465. fi
  8466. fi
  8467. chmod u+w . 2>&5
  8468. $RM conftest*
  8469. # SGI C++ compiler will create directory out/ii_files/ for
  8470. # template instantiation
  8471. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8472. $RM out/* && rmdir out
  8473. cd ..
  8474. $RM -r conftest
  8475. $RM conftest*
  8476. fi
  8477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8478. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8479. hard_links=nottested
  8480. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8481. # do not overwrite the value of need_locks provided by the user
  8482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8483. printf %s "checking if we can lock with hard links... " >&6; }
  8484. hard_links=yes
  8485. $RM conftest*
  8486. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8487. touch conftest.a
  8488. ln conftest.a conftest.b 2>&5 || hard_links=no
  8489. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8491. printf "%s\n" "$hard_links" >&6; }
  8492. if test no = "$hard_links"; then
  8493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8494. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8495. need_locks=warn
  8496. fi
  8497. else
  8498. need_locks=no
  8499. fi
  8500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8501. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8502. runpath_var=
  8503. allow_undefined_flag=
  8504. always_export_symbols=no
  8505. archive_cmds=
  8506. archive_expsym_cmds=
  8507. compiler_needs_object=no
  8508. enable_shared_with_static_runtimes=no
  8509. export_dynamic_flag_spec=
  8510. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8511. hardcode_automatic=no
  8512. hardcode_direct=no
  8513. hardcode_direct_absolute=no
  8514. hardcode_libdir_flag_spec=
  8515. hardcode_libdir_separator=
  8516. hardcode_minus_L=no
  8517. hardcode_shlibpath_var=unsupported
  8518. inherit_rpath=no
  8519. link_all_deplibs=unknown
  8520. module_cmds=
  8521. module_expsym_cmds=
  8522. old_archive_from_new_cmds=
  8523. old_archive_from_expsyms_cmds=
  8524. thread_safe_flag_spec=
  8525. whole_archive_flag_spec=
  8526. # include_expsyms should be a list of space-separated symbols to be *always*
  8527. # included in the symbol list
  8528. include_expsyms=
  8529. # exclude_expsyms can be an extended regexp of symbols to exclude
  8530. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8531. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8532. # as well as any symbol that contains 'd'.
  8533. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8534. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8535. # platforms (ab)use it in PIC code, but their linkers get confused if
  8536. # the symbol is explicitly referenced. Since portable code cannot
  8537. # rely on this symbol name, it's probably fine to never include it in
  8538. # preloaded symbol tables.
  8539. # Exclude shared library initialization/finalization symbols.
  8540. extract_expsyms_cmds=
  8541. case $host_os in
  8542. cygwin* | mingw* | pw32* | cegcc*)
  8543. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8544. # When not using gcc, we currently assume that we are using
  8545. # Microsoft Visual C++.
  8546. if test yes != "$GCC"; then
  8547. with_gnu_ld=no
  8548. fi
  8549. ;;
  8550. interix*)
  8551. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8552. with_gnu_ld=yes
  8553. ;;
  8554. openbsd* | bitrig*)
  8555. with_gnu_ld=no
  8556. ;;
  8557. esac
  8558. ld_shlibs=yes
  8559. # On some targets, GNU ld is compatible enough with the native linker
  8560. # that we're better off using the native interface for both.
  8561. lt_use_gnu_ld_interface=no
  8562. if test yes = "$with_gnu_ld"; then
  8563. case $host_os in
  8564. aix*)
  8565. # The AIX port of GNU ld has always aspired to compatibility
  8566. # with the native linker. However, as the warning in the GNU ld
  8567. # block says, versions before 2.19.5* couldn't really create working
  8568. # shared libraries, regardless of the interface used.
  8569. case `$LD -v 2>&1` in
  8570. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8571. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8572. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8573. *)
  8574. lt_use_gnu_ld_interface=yes
  8575. ;;
  8576. esac
  8577. ;;
  8578. *)
  8579. lt_use_gnu_ld_interface=yes
  8580. ;;
  8581. esac
  8582. fi
  8583. if test yes = "$lt_use_gnu_ld_interface"; then
  8584. # If archive_cmds runs LD, not CC, wlarc should be empty
  8585. wlarc='$wl'
  8586. # Set some defaults for GNU ld with shared library support. These
  8587. # are reset later if shared libraries are not supported. Putting them
  8588. # here allows them to be overridden if necessary.
  8589. runpath_var=LD_RUN_PATH
  8590. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8591. export_dynamic_flag_spec='$wl--export-dynamic'
  8592. # ancient GNU ld didn't support --whole-archive et. al.
  8593. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8594. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8595. else
  8596. whole_archive_flag_spec=
  8597. fi
  8598. supports_anon_versioning=no
  8599. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8600. *GNU\ gold*) supports_anon_versioning=yes ;;
  8601. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8602. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8603. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8604. *\ 2.11.*) ;; # other 2.11 versions
  8605. *) supports_anon_versioning=yes ;;
  8606. esac
  8607. # See if GNU ld supports shared libraries.
  8608. case $host_os in
  8609. aix[3-9]*)
  8610. # On AIX/PPC, the GNU linker is very broken
  8611. if test ia64 != "$host_cpu"; then
  8612. ld_shlibs=no
  8613. cat <<_LT_EOF 1>&2
  8614. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8615. *** to be unable to reliably create shared libraries on AIX.
  8616. *** Therefore, libtool is disabling shared libraries support. If you
  8617. *** really care for shared libraries, you may want to install binutils
  8618. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8619. *** You will then need to restart the configuration process.
  8620. _LT_EOF
  8621. fi
  8622. ;;
  8623. amigaos*)
  8624. case $host_cpu in
  8625. powerpc)
  8626. # see comment about AmigaOS4 .so support
  8627. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8628. archive_expsym_cmds=''
  8629. ;;
  8630. m68k)
  8631. 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)'
  8632. hardcode_libdir_flag_spec='-L$libdir'
  8633. hardcode_minus_L=yes
  8634. ;;
  8635. esac
  8636. ;;
  8637. beos*)
  8638. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8639. allow_undefined_flag=unsupported
  8640. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8641. # support --undefined. This deserves some investigation. FIXME
  8642. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8643. else
  8644. ld_shlibs=no
  8645. fi
  8646. ;;
  8647. cygwin* | mingw* | pw32* | cegcc*)
  8648. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8649. # as there is no search path for DLLs.
  8650. hardcode_libdir_flag_spec='-L$libdir'
  8651. export_dynamic_flag_spec='$wl--export-all-symbols'
  8652. allow_undefined_flag=unsupported
  8653. always_export_symbols=no
  8654. enable_shared_with_static_runtimes=yes
  8655. 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'
  8656. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8657. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8658. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8659. # If the export-symbols file already is a .def file, use it as
  8660. # is; otherwise, prepend EXPORTS...
  8661. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8662. cp $export_symbols $output_objdir/$soname.def;
  8663. else
  8664. echo EXPORTS > $output_objdir/$soname.def;
  8665. cat $export_symbols >> $output_objdir/$soname.def;
  8666. fi~
  8667. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8668. else
  8669. ld_shlibs=no
  8670. fi
  8671. ;;
  8672. haiku*)
  8673. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8674. link_all_deplibs=yes
  8675. ;;
  8676. os2*)
  8677. hardcode_libdir_flag_spec='-L$libdir'
  8678. hardcode_minus_L=yes
  8679. allow_undefined_flag=unsupported
  8680. shrext_cmds=.dll
  8681. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8682. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8683. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8684. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8685. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8686. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8687. emximp -o $lib $output_objdir/$libname.def'
  8688. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8689. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8690. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8691. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8692. prefix_cmds="$SED"~
  8693. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8694. prefix_cmds="$prefix_cmds -e 1d";
  8695. fi~
  8696. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8697. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8698. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8699. emximp -o $lib $output_objdir/$libname.def'
  8700. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8701. enable_shared_with_static_runtimes=yes
  8702. file_list_spec='@'
  8703. ;;
  8704. interix[3-9]*)
  8705. hardcode_direct=no
  8706. hardcode_shlibpath_var=no
  8707. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8708. export_dynamic_flag_spec='$wl-E'
  8709. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8710. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8711. # default) and relocated if they conflict, which is a slow very memory
  8712. # consuming and fragmenting process. To avoid this, we pick a random,
  8713. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8714. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8715. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8716. 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'
  8717. ;;
  8718. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8719. tmp_diet=no
  8720. if test linux-dietlibc = "$host_os"; then
  8721. case $cc_basename in
  8722. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8723. esac
  8724. fi
  8725. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8726. && test no = "$tmp_diet"
  8727. then
  8728. tmp_addflag=' $pic_flag'
  8729. tmp_sharedflag='-shared'
  8730. case $cc_basename,$host_cpu in
  8731. pgcc*) # Portland Group C compiler
  8732. 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'
  8733. tmp_addflag=' $pic_flag'
  8734. ;;
  8735. pgf77* | pgf90* | pgf95* | pgfortran*)
  8736. # Portland Group f77 and f90 compilers
  8737. 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'
  8738. tmp_addflag=' $pic_flag -Mnomain' ;;
  8739. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8740. tmp_addflag=' -i_dynamic' ;;
  8741. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8742. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8743. ifc* | ifort*) # Intel Fortran compiler
  8744. tmp_addflag=' -nofor_main' ;;
  8745. lf95*) # Lahey Fortran 8.1
  8746. whole_archive_flag_spec=
  8747. tmp_sharedflag='--shared' ;;
  8748. nagfor*) # NAGFOR 5.3
  8749. tmp_sharedflag='-Wl,-shared' ;;
  8750. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8751. tmp_sharedflag='-qmkshrobj'
  8752. tmp_addflag= ;;
  8753. nvcc*) # Cuda Compiler Driver 2.2
  8754. 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'
  8755. compiler_needs_object=yes
  8756. ;;
  8757. esac
  8758. case `$CC -V 2>&1 | sed 5q` in
  8759. *Sun\ C*) # Sun C 5.9
  8760. 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'
  8761. compiler_needs_object=yes
  8762. tmp_sharedflag='-G' ;;
  8763. *Sun\ F*) # Sun Fortran 8.3
  8764. tmp_sharedflag='-G' ;;
  8765. esac
  8766. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8767. if test yes = "$supports_anon_versioning"; then
  8768. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8769. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8770. echo "local: *; };" >> $output_objdir/$libname.ver~
  8771. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8772. fi
  8773. case $cc_basename in
  8774. tcc*)
  8775. export_dynamic_flag_spec='-rdynamic'
  8776. ;;
  8777. xlf* | bgf* | bgxlf* | mpixlf*)
  8778. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8779. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8780. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8781. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8782. if test yes = "$supports_anon_versioning"; then
  8783. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8784. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8785. echo "local: *; };" >> $output_objdir/$libname.ver~
  8786. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8787. fi
  8788. ;;
  8789. esac
  8790. else
  8791. ld_shlibs=no
  8792. fi
  8793. ;;
  8794. netbsd*)
  8795. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8796. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8797. wlarc=
  8798. else
  8799. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8800. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8801. fi
  8802. ;;
  8803. solaris*)
  8804. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8805. ld_shlibs=no
  8806. cat <<_LT_EOF 1>&2
  8807. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8808. *** create shared libraries on Solaris systems. Therefore, libtool
  8809. *** is disabling shared libraries support. We urge you to upgrade GNU
  8810. *** binutils to release 2.9.1 or newer. Another option is to modify
  8811. *** your PATH or compiler configuration so that the native linker is
  8812. *** used, and then restart.
  8813. _LT_EOF
  8814. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8815. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8816. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8817. else
  8818. ld_shlibs=no
  8819. fi
  8820. ;;
  8821. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8822. case `$LD -v 2>&1` in
  8823. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8824. ld_shlibs=no
  8825. cat <<_LT_EOF 1>&2
  8826. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8827. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8828. *** is disabling shared libraries support. We urge you to upgrade GNU
  8829. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8830. *** your PATH or compiler configuration so that the native linker is
  8831. *** used, and then restart.
  8832. _LT_EOF
  8833. ;;
  8834. *)
  8835. # For security reasons, it is highly recommended that you always
  8836. # use absolute paths for naming shared libraries, and exclude the
  8837. # DT_RUNPATH tag from executables and libraries. But doing so
  8838. # requires that you compile everything twice, which is a pain.
  8839. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8840. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8841. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8842. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8843. else
  8844. ld_shlibs=no
  8845. fi
  8846. ;;
  8847. esac
  8848. ;;
  8849. sunos4*)
  8850. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8851. wlarc=
  8852. hardcode_direct=yes
  8853. hardcode_shlibpath_var=no
  8854. ;;
  8855. *)
  8856. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8857. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8858. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8859. else
  8860. ld_shlibs=no
  8861. fi
  8862. ;;
  8863. esac
  8864. if test no = "$ld_shlibs"; then
  8865. runpath_var=
  8866. hardcode_libdir_flag_spec=
  8867. export_dynamic_flag_spec=
  8868. whole_archive_flag_spec=
  8869. fi
  8870. else
  8871. # PORTME fill in a description of your system's linker (not GNU ld)
  8872. case $host_os in
  8873. aix3*)
  8874. allow_undefined_flag=unsupported
  8875. always_export_symbols=yes
  8876. 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'
  8877. # Note: this linker hardcodes the directories in LIBPATH if there
  8878. # are no directories specified by -L.
  8879. hardcode_minus_L=yes
  8880. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8881. # Neither direct hardcoding nor static linking is supported with a
  8882. # broken collect2.
  8883. hardcode_direct=unsupported
  8884. fi
  8885. ;;
  8886. aix[4-9]*)
  8887. if test ia64 = "$host_cpu"; then
  8888. # On IA64, the linker does run time linking by default, so we don't
  8889. # have to do anything special.
  8890. aix_use_runtimelinking=no
  8891. exp_sym_flag='-Bexport'
  8892. no_entry_flag=
  8893. else
  8894. # If we're using GNU nm, then we don't want the "-C" option.
  8895. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8896. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8897. # weak defined symbols like other global defined symbols, whereas
  8898. # GNU nm marks them as "W".
  8899. # While the 'weak' keyword is ignored in the Export File, we need
  8900. # it in the Import File for the 'aix-soname' feature, so we have
  8901. # to replace the "-B" option with "-P" for AIX nm.
  8902. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8903. 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'
  8904. else
  8905. 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'
  8906. fi
  8907. aix_use_runtimelinking=no
  8908. # Test if we are trying to use run time linking or normal
  8909. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8910. # have runtime linking enabled, and use it for executables.
  8911. # For shared libraries, we enable/disable runtime linking
  8912. # depending on the kind of the shared library created -
  8913. # when "with_aix_soname,aix_use_runtimelinking" is:
  8914. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8915. # "aix,yes" lib.so shared, rtl:yes, for executables
  8916. # lib.a static archive
  8917. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8918. # lib.a(lib.so.V) shared, rtl:no, for executables
  8919. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8920. # lib.a(lib.so.V) shared, rtl:no
  8921. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8922. # lib.a static archive
  8923. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8924. for ld_flag in $LDFLAGS; do
  8925. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8926. aix_use_runtimelinking=yes
  8927. break
  8928. fi
  8929. done
  8930. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8931. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8932. # so we don't have lib.a shared libs to link our executables.
  8933. # We have to force runtime linking in this case.
  8934. aix_use_runtimelinking=yes
  8935. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8936. fi
  8937. ;;
  8938. esac
  8939. exp_sym_flag='-bexport'
  8940. no_entry_flag='-bnoentry'
  8941. fi
  8942. # When large executables or shared objects are built, AIX ld can
  8943. # have problems creating the table of contents. If linking a library
  8944. # or program results in "error TOC overflow" add -mminimal-toc to
  8945. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8946. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8947. archive_cmds=''
  8948. hardcode_direct=yes
  8949. hardcode_direct_absolute=yes
  8950. hardcode_libdir_separator=':'
  8951. link_all_deplibs=yes
  8952. file_list_spec='$wl-f,'
  8953. case $with_aix_soname,$aix_use_runtimelinking in
  8954. aix,*) ;; # traditional, no import file
  8955. svr4,* | *,yes) # use import file
  8956. # The Import File defines what to hardcode.
  8957. hardcode_direct=no
  8958. hardcode_direct_absolute=no
  8959. ;;
  8960. esac
  8961. if test yes = "$GCC"; then
  8962. case $host_os in aix4.[012]|aix4.[012].*)
  8963. # We only want to do this on AIX 4.2 and lower, the check
  8964. # below for broken collect2 doesn't work under 4.3+
  8965. collect2name=`$CC -print-prog-name=collect2`
  8966. if test -f "$collect2name" &&
  8967. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8968. then
  8969. # We have reworked collect2
  8970. :
  8971. else
  8972. # We have old collect2
  8973. hardcode_direct=unsupported
  8974. # It fails to find uninstalled libraries when the uninstalled
  8975. # path is not listed in the libpath. Setting hardcode_minus_L
  8976. # to unsupported forces relinking
  8977. hardcode_minus_L=yes
  8978. hardcode_libdir_flag_spec='-L$libdir'
  8979. hardcode_libdir_separator=
  8980. fi
  8981. ;;
  8982. esac
  8983. shared_flag='-shared'
  8984. if test yes = "$aix_use_runtimelinking"; then
  8985. shared_flag="$shared_flag "'$wl-G'
  8986. fi
  8987. # Need to ensure runtime linking is disabled for the traditional
  8988. # shared library, or the linker may eventually find shared libraries
  8989. # /with/ Import File - we do not want to mix them.
  8990. shared_flag_aix='-shared'
  8991. shared_flag_svr4='-shared $wl-G'
  8992. else
  8993. # not using gcc
  8994. if test ia64 = "$host_cpu"; then
  8995. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8996. # chokes on -Wl,-G. The following line is correct:
  8997. shared_flag='-G'
  8998. else
  8999. if test yes = "$aix_use_runtimelinking"; then
  9000. shared_flag='$wl-G'
  9001. else
  9002. shared_flag='$wl-bM:SRE'
  9003. fi
  9004. shared_flag_aix='$wl-bM:SRE'
  9005. shared_flag_svr4='$wl-G'
  9006. fi
  9007. fi
  9008. export_dynamic_flag_spec='$wl-bexpall'
  9009. # It seems that -bexpall does not export symbols beginning with
  9010. # underscore (_), so it is better to generate a list of symbols to export.
  9011. always_export_symbols=yes
  9012. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9013. # Warning - without using the other runtime loading flags (-brtl),
  9014. # -berok will link without error, but may produce a broken library.
  9015. allow_undefined_flag='-berok'
  9016. # Determine the default libpath from the value encoded in an
  9017. # empty executable.
  9018. if test set = "${lt_cv_aix_libpath+set}"; then
  9019. aix_libpath=$lt_cv_aix_libpath
  9020. else
  9021. if test ${lt_cv_aix_libpath_+y}
  9022. then :
  9023. printf %s "(cached) " >&6
  9024. else $as_nop
  9025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9026. /* end confdefs.h. */
  9027. int
  9028. main (void)
  9029. {
  9030. ;
  9031. return 0;
  9032. }
  9033. _ACEOF
  9034. if ac_fn_c_try_link "$LINENO"
  9035. then :
  9036. lt_aix_libpath_sed='
  9037. /Import File Strings/,/^$/ {
  9038. /^0/ {
  9039. s/^0 *\([^ ]*\) *$/\1/
  9040. p
  9041. }
  9042. }'
  9043. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9044. # Check for a 64-bit object if we didn't find anything.
  9045. if test -z "$lt_cv_aix_libpath_"; then
  9046. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9047. fi
  9048. fi
  9049. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9050. conftest$ac_exeext conftest.$ac_ext
  9051. if test -z "$lt_cv_aix_libpath_"; then
  9052. lt_cv_aix_libpath_=/usr/lib:/lib
  9053. fi
  9054. fi
  9055. aix_libpath=$lt_cv_aix_libpath_
  9056. fi
  9057. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9058. 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
  9059. else
  9060. if test ia64 = "$host_cpu"; then
  9061. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9062. allow_undefined_flag="-z nodefs"
  9063. 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"
  9064. else
  9065. # Determine the default libpath from the value encoded in an
  9066. # empty executable.
  9067. if test set = "${lt_cv_aix_libpath+set}"; then
  9068. aix_libpath=$lt_cv_aix_libpath
  9069. else
  9070. if test ${lt_cv_aix_libpath_+y}
  9071. then :
  9072. printf %s "(cached) " >&6
  9073. else $as_nop
  9074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9075. /* end confdefs.h. */
  9076. int
  9077. main (void)
  9078. {
  9079. ;
  9080. return 0;
  9081. }
  9082. _ACEOF
  9083. if ac_fn_c_try_link "$LINENO"
  9084. then :
  9085. lt_aix_libpath_sed='
  9086. /Import File Strings/,/^$/ {
  9087. /^0/ {
  9088. s/^0 *\([^ ]*\) *$/\1/
  9089. p
  9090. }
  9091. }'
  9092. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9093. # Check for a 64-bit object if we didn't find anything.
  9094. if test -z "$lt_cv_aix_libpath_"; then
  9095. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9096. fi
  9097. fi
  9098. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9099. conftest$ac_exeext conftest.$ac_ext
  9100. if test -z "$lt_cv_aix_libpath_"; then
  9101. lt_cv_aix_libpath_=/usr/lib:/lib
  9102. fi
  9103. fi
  9104. aix_libpath=$lt_cv_aix_libpath_
  9105. fi
  9106. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9107. # Warning - without using the other run time loading flags,
  9108. # -berok will link without error, but may produce a broken library.
  9109. no_undefined_flag=' $wl-bernotok'
  9110. allow_undefined_flag=' $wl-berok'
  9111. if test yes = "$with_gnu_ld"; then
  9112. # We only use this code for GNU lds that support --whole-archive.
  9113. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9114. else
  9115. # Exported symbols can be pulled into shared objects from archives
  9116. whole_archive_flag_spec='$convenience'
  9117. fi
  9118. archive_cmds_need_lc=yes
  9119. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9120. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9121. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9122. if test svr4 != "$with_aix_soname"; then
  9123. # This is similar to how AIX traditionally builds its shared libraries.
  9124. 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'
  9125. fi
  9126. if test aix != "$with_aix_soname"; then
  9127. 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'
  9128. else
  9129. # used by -dlpreopen to get the symbols
  9130. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9131. fi
  9132. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9133. fi
  9134. fi
  9135. ;;
  9136. amigaos*)
  9137. case $host_cpu in
  9138. powerpc)
  9139. # see comment about AmigaOS4 .so support
  9140. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9141. archive_expsym_cmds=''
  9142. ;;
  9143. m68k)
  9144. 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)'
  9145. hardcode_libdir_flag_spec='-L$libdir'
  9146. hardcode_minus_L=yes
  9147. ;;
  9148. esac
  9149. ;;
  9150. bsdi[45]*)
  9151. export_dynamic_flag_spec=-rdynamic
  9152. ;;
  9153. cygwin* | mingw* | pw32* | cegcc*)
  9154. # When not using gcc, we currently assume that we are using
  9155. # Microsoft Visual C++.
  9156. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9157. # no search path for DLLs.
  9158. case $cc_basename in
  9159. cl*)
  9160. # Native MSVC
  9161. hardcode_libdir_flag_spec=' '
  9162. allow_undefined_flag=unsupported
  9163. always_export_symbols=yes
  9164. file_list_spec='@'
  9165. # Tell ltmain to make .lib files, not .a files.
  9166. libext=lib
  9167. # Tell ltmain to make .dll files, not .so files.
  9168. shrext_cmds=.dll
  9169. # FIXME: Setting linknames here is a bad hack.
  9170. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9171. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9172. cp "$export_symbols" "$output_objdir/$soname.def";
  9173. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9174. else
  9175. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9176. fi~
  9177. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9178. linknames='
  9179. # The linker will not automatically build a static lib if we build a DLL.
  9180. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9181. enable_shared_with_static_runtimes=yes
  9182. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9183. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9184. # Don't use ranlib
  9185. old_postinstall_cmds='chmod 644 $oldlib'
  9186. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9187. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9188. case $lt_outputfile in
  9189. *.exe|*.EXE) ;;
  9190. *)
  9191. lt_outputfile=$lt_outputfile.exe
  9192. lt_tool_outputfile=$lt_tool_outputfile.exe
  9193. ;;
  9194. esac~
  9195. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9196. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9197. $RM "$lt_outputfile.manifest";
  9198. fi'
  9199. ;;
  9200. *)
  9201. # Assume MSVC wrapper
  9202. hardcode_libdir_flag_spec=' '
  9203. allow_undefined_flag=unsupported
  9204. # Tell ltmain to make .lib files, not .a files.
  9205. libext=lib
  9206. # Tell ltmain to make .dll files, not .so files.
  9207. shrext_cmds=.dll
  9208. # FIXME: Setting linknames here is a bad hack.
  9209. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9210. # The linker will automatically build a .lib file if we build a DLL.
  9211. old_archive_from_new_cmds='true'
  9212. # FIXME: Should let the user specify the lib program.
  9213. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9214. enable_shared_with_static_runtimes=yes
  9215. ;;
  9216. esac
  9217. ;;
  9218. darwin* | rhapsody*)
  9219. archive_cmds_need_lc=no
  9220. hardcode_direct=no
  9221. hardcode_automatic=yes
  9222. hardcode_shlibpath_var=unsupported
  9223. if test yes = "$lt_cv_ld_force_load"; then
  9224. 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\"`'
  9225. else
  9226. whole_archive_flag_spec=''
  9227. fi
  9228. link_all_deplibs=yes
  9229. allow_undefined_flag=$_lt_dar_allow_undefined
  9230. case $cc_basename in
  9231. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9232. *) _lt_dar_can_shared=$GCC ;;
  9233. esac
  9234. if test yes = "$_lt_dar_can_shared"; then
  9235. output_verbose_link_cmd=func_echo_all
  9236. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9237. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9238. 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"
  9239. 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"
  9240. else
  9241. ld_shlibs=no
  9242. fi
  9243. ;;
  9244. dgux*)
  9245. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9246. hardcode_libdir_flag_spec='-L$libdir'
  9247. hardcode_shlibpath_var=no
  9248. ;;
  9249. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9250. # support. Future versions do this automatically, but an explicit c++rt0.o
  9251. # does not break anything, and helps significantly (at the cost of a little
  9252. # extra space).
  9253. freebsd2.2*)
  9254. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9255. hardcode_libdir_flag_spec='-R$libdir'
  9256. hardcode_direct=yes
  9257. hardcode_shlibpath_var=no
  9258. ;;
  9259. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9260. freebsd2.*)
  9261. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9262. hardcode_direct=yes
  9263. hardcode_minus_L=yes
  9264. hardcode_shlibpath_var=no
  9265. ;;
  9266. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9267. freebsd* | dragonfly* | midnightbsd*)
  9268. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9269. hardcode_libdir_flag_spec='-R$libdir'
  9270. hardcode_direct=yes
  9271. hardcode_shlibpath_var=no
  9272. ;;
  9273. hpux9*)
  9274. if test yes = "$GCC"; then
  9275. 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'
  9276. else
  9277. 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'
  9278. fi
  9279. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9280. hardcode_libdir_separator=:
  9281. hardcode_direct=yes
  9282. # hardcode_minus_L: Not really in the search PATH,
  9283. # but as the default location of the library.
  9284. hardcode_minus_L=yes
  9285. export_dynamic_flag_spec='$wl-E'
  9286. ;;
  9287. hpux10*)
  9288. if test yes,no = "$GCC,$with_gnu_ld"; then
  9289. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9290. else
  9291. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9292. fi
  9293. if test no = "$with_gnu_ld"; then
  9294. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9295. hardcode_libdir_separator=:
  9296. hardcode_direct=yes
  9297. hardcode_direct_absolute=yes
  9298. export_dynamic_flag_spec='$wl-E'
  9299. # hardcode_minus_L: Not really in the search PATH,
  9300. # but as the default location of the library.
  9301. hardcode_minus_L=yes
  9302. fi
  9303. ;;
  9304. hpux11*)
  9305. if test yes,no = "$GCC,$with_gnu_ld"; then
  9306. case $host_cpu in
  9307. hppa*64*)
  9308. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9309. ;;
  9310. ia64*)
  9311. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9312. ;;
  9313. *)
  9314. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9315. ;;
  9316. esac
  9317. else
  9318. case $host_cpu in
  9319. hppa*64*)
  9320. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9321. ;;
  9322. ia64*)
  9323. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9324. ;;
  9325. *)
  9326. # Older versions of the 11.00 compiler do not understand -b yet
  9327. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9329. printf %s "checking if $CC understands -b... " >&6; }
  9330. if test ${lt_cv_prog_compiler__b+y}
  9331. then :
  9332. printf %s "(cached) " >&6
  9333. else $as_nop
  9334. lt_cv_prog_compiler__b=no
  9335. save_LDFLAGS=$LDFLAGS
  9336. LDFLAGS="$LDFLAGS -b"
  9337. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9338. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9339. # The linker can only warn and ignore the option if not recognized
  9340. # So say no if there are warnings
  9341. if test -s conftest.err; then
  9342. # Append any errors to the config.log.
  9343. cat conftest.err 1>&5
  9344. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9345. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9346. if diff conftest.exp conftest.er2 >/dev/null; then
  9347. lt_cv_prog_compiler__b=yes
  9348. fi
  9349. else
  9350. lt_cv_prog_compiler__b=yes
  9351. fi
  9352. fi
  9353. $RM -r conftest*
  9354. LDFLAGS=$save_LDFLAGS
  9355. fi
  9356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9357. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9358. if test yes = "$lt_cv_prog_compiler__b"; then
  9359. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9360. else
  9361. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9362. fi
  9363. ;;
  9364. esac
  9365. fi
  9366. if test no = "$with_gnu_ld"; then
  9367. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9368. hardcode_libdir_separator=:
  9369. case $host_cpu in
  9370. hppa*64*|ia64*)
  9371. hardcode_direct=no
  9372. hardcode_shlibpath_var=no
  9373. ;;
  9374. *)
  9375. hardcode_direct=yes
  9376. hardcode_direct_absolute=yes
  9377. export_dynamic_flag_spec='$wl-E'
  9378. # hardcode_minus_L: Not really in the search PATH,
  9379. # but as the default location of the library.
  9380. hardcode_minus_L=yes
  9381. ;;
  9382. esac
  9383. fi
  9384. ;;
  9385. irix5* | irix6* | nonstopux*)
  9386. if test yes = "$GCC"; then
  9387. 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'
  9388. # Try to use the -exported_symbol ld option, if it does not
  9389. # work, assume that -exports_file does not work either and
  9390. # implicitly export all symbols.
  9391. # This should be the same for all languages, so no per-tag cache variable.
  9392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9393. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9394. if test ${lt_cv_irix_exported_symbol+y}
  9395. then :
  9396. printf %s "(cached) " >&6
  9397. else $as_nop
  9398. save_LDFLAGS=$LDFLAGS
  9399. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9401. /* end confdefs.h. */
  9402. int foo (void) { return 0; }
  9403. _ACEOF
  9404. if ac_fn_c_try_link "$LINENO"
  9405. then :
  9406. lt_cv_irix_exported_symbol=yes
  9407. else $as_nop
  9408. lt_cv_irix_exported_symbol=no
  9409. fi
  9410. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9411. conftest$ac_exeext conftest.$ac_ext
  9412. LDFLAGS=$save_LDFLAGS
  9413. fi
  9414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9415. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9416. if test yes = "$lt_cv_irix_exported_symbol"; then
  9417. 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'
  9418. fi
  9419. else
  9420. 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'
  9421. 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'
  9422. fi
  9423. archive_cmds_need_lc='no'
  9424. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9425. hardcode_libdir_separator=:
  9426. inherit_rpath=yes
  9427. link_all_deplibs=yes
  9428. ;;
  9429. linux*)
  9430. case $cc_basename in
  9431. tcc*)
  9432. # Fabrice Bellard et al's Tiny C Compiler
  9433. ld_shlibs=yes
  9434. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9435. ;;
  9436. esac
  9437. ;;
  9438. netbsd*)
  9439. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9440. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9441. else
  9442. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9443. fi
  9444. hardcode_libdir_flag_spec='-R$libdir'
  9445. hardcode_direct=yes
  9446. hardcode_shlibpath_var=no
  9447. ;;
  9448. newsos6)
  9449. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9450. hardcode_direct=yes
  9451. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9452. hardcode_libdir_separator=:
  9453. hardcode_shlibpath_var=no
  9454. ;;
  9455. *nto* | *qnx*)
  9456. ;;
  9457. openbsd* | bitrig*)
  9458. if test -f /usr/libexec/ld.so; then
  9459. hardcode_direct=yes
  9460. hardcode_shlibpath_var=no
  9461. hardcode_direct_absolute=yes
  9462. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9463. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9464. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9465. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9466. export_dynamic_flag_spec='$wl-E'
  9467. else
  9468. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9469. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9470. fi
  9471. else
  9472. ld_shlibs=no
  9473. fi
  9474. ;;
  9475. os2*)
  9476. hardcode_libdir_flag_spec='-L$libdir'
  9477. hardcode_minus_L=yes
  9478. allow_undefined_flag=unsupported
  9479. shrext_cmds=.dll
  9480. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9481. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9482. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9483. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9484. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9485. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9486. emximp -o $lib $output_objdir/$libname.def'
  9487. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9488. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9489. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9490. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9491. prefix_cmds="$SED"~
  9492. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9493. prefix_cmds="$prefix_cmds -e 1d";
  9494. fi~
  9495. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9496. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9497. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9498. emximp -o $lib $output_objdir/$libname.def'
  9499. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9500. enable_shared_with_static_runtimes=yes
  9501. file_list_spec='@'
  9502. ;;
  9503. osf3*)
  9504. if test yes = "$GCC"; then
  9505. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9506. 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'
  9507. else
  9508. allow_undefined_flag=' -expect_unresolved \*'
  9509. 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'
  9510. fi
  9511. archive_cmds_need_lc='no'
  9512. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9513. hardcode_libdir_separator=:
  9514. ;;
  9515. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9516. if test yes = "$GCC"; then
  9517. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9518. 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'
  9519. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9520. else
  9521. allow_undefined_flag=' -expect_unresolved \*'
  9522. 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'
  9523. 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~
  9524. $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'
  9525. # Both c and cxx compiler support -rpath directly
  9526. hardcode_libdir_flag_spec='-rpath $libdir'
  9527. fi
  9528. archive_cmds_need_lc='no'
  9529. hardcode_libdir_separator=:
  9530. ;;
  9531. solaris*)
  9532. no_undefined_flag=' -z defs'
  9533. if test yes = "$GCC"; then
  9534. wlarc='$wl'
  9535. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9536. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9537. $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'
  9538. else
  9539. case `$CC -V 2>&1` in
  9540. *"Compilers 5.0"*)
  9541. wlarc=''
  9542. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9543. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9544. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9545. ;;
  9546. *)
  9547. wlarc='$wl'
  9548. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9549. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9550. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9551. ;;
  9552. esac
  9553. fi
  9554. hardcode_libdir_flag_spec='-R$libdir'
  9555. hardcode_shlibpath_var=no
  9556. case $host_os in
  9557. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9558. *)
  9559. # The compiler driver will combine and reorder linker options,
  9560. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9561. # but is careful enough not to reorder.
  9562. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9563. if test yes = "$GCC"; then
  9564. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9565. else
  9566. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9567. fi
  9568. ;;
  9569. esac
  9570. link_all_deplibs=yes
  9571. ;;
  9572. sunos4*)
  9573. if test sequent = "$host_vendor"; then
  9574. # Use $CC to link under sequent, because it throws in some extra .o
  9575. # files that make .init and .fini sections work.
  9576. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9577. else
  9578. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9579. fi
  9580. hardcode_libdir_flag_spec='-L$libdir'
  9581. hardcode_direct=yes
  9582. hardcode_minus_L=yes
  9583. hardcode_shlibpath_var=no
  9584. ;;
  9585. sysv4)
  9586. case $host_vendor in
  9587. sni)
  9588. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9589. hardcode_direct=yes # is this really true???
  9590. ;;
  9591. siemens)
  9592. ## LD is ld it makes a PLAMLIB
  9593. ## CC just makes a GrossModule.
  9594. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9595. reload_cmds='$CC -r -o $output$reload_objs'
  9596. hardcode_direct=no
  9597. ;;
  9598. motorola)
  9599. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9600. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9601. ;;
  9602. esac
  9603. runpath_var='LD_RUN_PATH'
  9604. hardcode_shlibpath_var=no
  9605. ;;
  9606. sysv4.3*)
  9607. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9608. hardcode_shlibpath_var=no
  9609. export_dynamic_flag_spec='-Bexport'
  9610. ;;
  9611. sysv4*MP*)
  9612. if test -d /usr/nec; then
  9613. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9614. hardcode_shlibpath_var=no
  9615. runpath_var=LD_RUN_PATH
  9616. hardcode_runpath_var=yes
  9617. ld_shlibs=yes
  9618. fi
  9619. ;;
  9620. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9621. no_undefined_flag='$wl-z,text'
  9622. archive_cmds_need_lc=no
  9623. hardcode_shlibpath_var=no
  9624. runpath_var='LD_RUN_PATH'
  9625. if test yes = "$GCC"; then
  9626. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9627. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9628. else
  9629. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9630. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9631. fi
  9632. ;;
  9633. sysv5* | sco3.2v5* | sco5v6*)
  9634. # Note: We CANNOT use -z defs as we might desire, because we do not
  9635. # link with -lc, and that would cause any symbols used from libc to
  9636. # always be unresolved, which means just about no library would
  9637. # ever link correctly. If we're not using GNU ld we use -z text
  9638. # though, which does catch some bad symbols but isn't as heavy-handed
  9639. # as -z defs.
  9640. no_undefined_flag='$wl-z,text'
  9641. allow_undefined_flag='$wl-z,nodefs'
  9642. archive_cmds_need_lc=no
  9643. hardcode_shlibpath_var=no
  9644. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9645. hardcode_libdir_separator=':'
  9646. link_all_deplibs=yes
  9647. export_dynamic_flag_spec='$wl-Bexport'
  9648. runpath_var='LD_RUN_PATH'
  9649. if test yes = "$GCC"; then
  9650. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9651. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9652. else
  9653. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9654. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9655. fi
  9656. ;;
  9657. uts4*)
  9658. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9659. hardcode_libdir_flag_spec='-L$libdir'
  9660. hardcode_shlibpath_var=no
  9661. ;;
  9662. *)
  9663. ld_shlibs=no
  9664. ;;
  9665. esac
  9666. if test sni = "$host_vendor"; then
  9667. case $host in
  9668. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9669. export_dynamic_flag_spec='$wl-Blargedynsym'
  9670. ;;
  9671. esac
  9672. fi
  9673. fi
  9674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9675. printf "%s\n" "$ld_shlibs" >&6; }
  9676. test no = "$ld_shlibs" && can_build_shared=no
  9677. with_gnu_ld=$with_gnu_ld
  9678. #
  9679. # Do we need to explicitly link libc?
  9680. #
  9681. case "x$archive_cmds_need_lc" in
  9682. x|xyes)
  9683. # Assume -lc should be added
  9684. archive_cmds_need_lc=yes
  9685. if test yes,yes = "$GCC,$enable_shared"; then
  9686. case $archive_cmds in
  9687. *'~'*)
  9688. # FIXME: we may have to deal with multi-command sequences.
  9689. ;;
  9690. '$CC '*)
  9691. # Test whether the compiler implicitly links with -lc since on some
  9692. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9693. # to ld, don't add -lc before -lgcc.
  9694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9695. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9696. if test ${lt_cv_archive_cmds_need_lc+y}
  9697. then :
  9698. printf %s "(cached) " >&6
  9699. else $as_nop
  9700. $RM conftest*
  9701. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9702. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9703. (eval $ac_compile) 2>&5
  9704. ac_status=$?
  9705. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9706. test $ac_status = 0; } 2>conftest.err; then
  9707. soname=conftest
  9708. lib=conftest
  9709. libobjs=conftest.$ac_objext
  9710. deplibs=
  9711. wl=$lt_prog_compiler_wl
  9712. pic_flag=$lt_prog_compiler_pic
  9713. compiler_flags=-v
  9714. linker_flags=-v
  9715. verstring=
  9716. output_objdir=.
  9717. libname=conftest
  9718. lt_save_allow_undefined_flag=$allow_undefined_flag
  9719. allow_undefined_flag=
  9720. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9721. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9722. ac_status=$?
  9723. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9724. test $ac_status = 0; }
  9725. then
  9726. lt_cv_archive_cmds_need_lc=no
  9727. else
  9728. lt_cv_archive_cmds_need_lc=yes
  9729. fi
  9730. allow_undefined_flag=$lt_save_allow_undefined_flag
  9731. else
  9732. cat conftest.err 1>&5
  9733. fi
  9734. $RM conftest*
  9735. fi
  9736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9737. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9738. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9739. ;;
  9740. esac
  9741. fi
  9742. ;;
  9743. esac
  9744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9745. printf %s "checking dynamic linker characteristics... " >&6; }
  9746. if test yes = "$GCC"; then
  9747. case $host_os in
  9748. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9749. *) lt_awk_arg='/^libraries:/' ;;
  9750. esac
  9751. case $host_os in
  9752. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9753. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9754. esac
  9755. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9756. case $lt_search_path_spec in
  9757. *\;*)
  9758. # if the path contains ";" then we assume it to be the separator
  9759. # otherwise default to the standard path separator (i.e. ":") - it is
  9760. # assumed that no part of a normal pathname contains ";" but that should
  9761. # okay in the real world where ";" in dirpaths is itself problematic.
  9762. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9763. ;;
  9764. *)
  9765. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9766. ;;
  9767. esac
  9768. # Ok, now we have the path, separated by spaces, we can step through it
  9769. # and add multilib dir if necessary...
  9770. lt_tmp_lt_search_path_spec=
  9771. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9772. # ...but if some path component already ends with the multilib dir we assume
  9773. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9774. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9775. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9776. lt_multi_os_dir=
  9777. ;;
  9778. esac
  9779. for lt_sys_path in $lt_search_path_spec; do
  9780. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9781. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9782. elif test -n "$lt_multi_os_dir"; then
  9783. test -d "$lt_sys_path" && \
  9784. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9785. fi
  9786. done
  9787. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9788. BEGIN {RS = " "; FS = "/|\n";} {
  9789. lt_foo = "";
  9790. lt_count = 0;
  9791. for (lt_i = NF; lt_i > 0; lt_i--) {
  9792. if ($lt_i != "" && $lt_i != ".") {
  9793. if ($lt_i == "..") {
  9794. lt_count++;
  9795. } else {
  9796. if (lt_count == 0) {
  9797. lt_foo = "/" $lt_i lt_foo;
  9798. } else {
  9799. lt_count--;
  9800. }
  9801. }
  9802. }
  9803. }
  9804. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9805. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9806. }'`
  9807. # AWK program above erroneously prepends '/' to C:/dos/paths
  9808. # for these hosts.
  9809. case $host_os in
  9810. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9811. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9812. esac
  9813. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9814. else
  9815. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9816. fi
  9817. library_names_spec=
  9818. libname_spec='lib$name'
  9819. soname_spec=
  9820. shrext_cmds=.so
  9821. postinstall_cmds=
  9822. postuninstall_cmds=
  9823. finish_cmds=
  9824. finish_eval=
  9825. shlibpath_var=
  9826. shlibpath_overrides_runpath=unknown
  9827. version_type=none
  9828. dynamic_linker="$host_os ld.so"
  9829. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9830. need_lib_prefix=unknown
  9831. hardcode_into_libs=no
  9832. # when you set need_version to no, make sure it does not cause -set_version
  9833. # flags to be left without arguments
  9834. need_version=unknown
  9835. case $host_os in
  9836. aix3*)
  9837. version_type=linux # correct to gnu/linux during the next big refactor
  9838. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9839. shlibpath_var=LIBPATH
  9840. # AIX 3 has no versioning support, so we append a major version to the name.
  9841. soname_spec='$libname$release$shared_ext$major'
  9842. ;;
  9843. aix[4-9]*)
  9844. version_type=linux # correct to gnu/linux during the next big refactor
  9845. need_lib_prefix=no
  9846. need_version=no
  9847. hardcode_into_libs=yes
  9848. if test ia64 = "$host_cpu"; then
  9849. # AIX 5 supports IA64
  9850. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9851. shlibpath_var=LD_LIBRARY_PATH
  9852. else
  9853. # With GCC up to 2.95.x, collect2 would create an import file
  9854. # for dependence libraries. The import file would start with
  9855. # the line '#! .'. This would cause the generated library to
  9856. # depend on '.', always an invalid library. This was fixed in
  9857. # development snapshots of GCC prior to 3.0.
  9858. case $host_os in
  9859. aix4 | aix4.[01] | aix4.[01].*)
  9860. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9861. echo ' yes '
  9862. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9863. :
  9864. else
  9865. can_build_shared=no
  9866. fi
  9867. ;;
  9868. esac
  9869. # Using Import Files as archive members, it is possible to support
  9870. # filename-based versioning of shared library archives on AIX. While
  9871. # this would work for both with and without runtime linking, it will
  9872. # prevent static linking of such archives. So we do filename-based
  9873. # shared library versioning with .so extension only, which is used
  9874. # when both runtime linking and shared linking is enabled.
  9875. # Unfortunately, runtime linking may impact performance, so we do
  9876. # not want this to be the default eventually. Also, we use the
  9877. # versioned .so libs for executables only if there is the -brtl
  9878. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9879. # To allow for filename-based versioning support, we need to create
  9880. # libNAME.so.V as an archive file, containing:
  9881. # *) an Import File, referring to the versioned filename of the
  9882. # archive as well as the shared archive member, telling the
  9883. # bitwidth (32 or 64) of that shared object, and providing the
  9884. # list of exported symbols of that shared object, eventually
  9885. # decorated with the 'weak' keyword
  9886. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9887. # it being seen by the linker.
  9888. # At run time we better use the real file rather than another symlink,
  9889. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9890. case $with_aix_soname,$aix_use_runtimelinking in
  9891. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9892. # soname into executable. Probably we can add versioning support to
  9893. # collect2, so additional links can be useful in future.
  9894. aix,yes) # traditional libtool
  9895. dynamic_linker='AIX unversionable lib.so'
  9896. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9897. # instead of lib<name>.a to let people know that these are not
  9898. # typical AIX shared libraries.
  9899. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9900. ;;
  9901. aix,no) # traditional AIX only
  9902. dynamic_linker='AIX lib.a(lib.so.V)'
  9903. # We preserve .a as extension for shared libraries through AIX4.2
  9904. # and later when we are not doing run time linking.
  9905. library_names_spec='$libname$release.a $libname.a'
  9906. soname_spec='$libname$release$shared_ext$major'
  9907. ;;
  9908. svr4,*) # full svr4 only
  9909. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9910. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9911. # We do not specify a path in Import Files, so LIBPATH fires.
  9912. shlibpath_overrides_runpath=yes
  9913. ;;
  9914. *,yes) # both, prefer svr4
  9915. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9916. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9917. # unpreferred sharedlib libNAME.a needs extra handling
  9918. 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"'
  9919. 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"'
  9920. # We do not specify a path in Import Files, so LIBPATH fires.
  9921. shlibpath_overrides_runpath=yes
  9922. ;;
  9923. *,no) # both, prefer aix
  9924. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9925. library_names_spec='$libname$release.a $libname.a'
  9926. soname_spec='$libname$release$shared_ext$major'
  9927. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9928. 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)'
  9929. 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"'
  9930. ;;
  9931. esac
  9932. shlibpath_var=LIBPATH
  9933. fi
  9934. ;;
  9935. amigaos*)
  9936. case $host_cpu in
  9937. powerpc)
  9938. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9939. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9940. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9941. ;;
  9942. m68k)
  9943. library_names_spec='$libname.ixlibrary $libname.a'
  9944. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9945. 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'
  9946. ;;
  9947. esac
  9948. ;;
  9949. beos*)
  9950. library_names_spec='$libname$shared_ext'
  9951. dynamic_linker="$host_os ld.so"
  9952. shlibpath_var=LIBRARY_PATH
  9953. ;;
  9954. bsdi[45]*)
  9955. version_type=linux # correct to gnu/linux during the next big refactor
  9956. need_version=no
  9957. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9958. soname_spec='$libname$release$shared_ext$major'
  9959. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9960. shlibpath_var=LD_LIBRARY_PATH
  9961. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9962. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9963. # the default ld.so.conf also contains /usr/contrib/lib and
  9964. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9965. # libtool to hard-code these into programs
  9966. ;;
  9967. cygwin* | mingw* | pw32* | cegcc*)
  9968. version_type=windows
  9969. shrext_cmds=.dll
  9970. need_version=no
  9971. need_lib_prefix=no
  9972. case $GCC,$cc_basename in
  9973. yes,*)
  9974. # gcc
  9975. library_names_spec='$libname.dll.a'
  9976. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9977. postinstall_cmds='base_file=`basename \$file`~
  9978. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9979. dldir=$destdir/`dirname \$dlpath`~
  9980. test -d \$dldir || mkdir -p \$dldir~
  9981. $install_prog $dir/$dlname \$dldir/$dlname~
  9982. chmod a+x \$dldir/$dlname~
  9983. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9984. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9985. fi'
  9986. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9987. dlpath=$dir/\$dldll~
  9988. $RM \$dlpath'
  9989. shlibpath_overrides_runpath=yes
  9990. case $host_os in
  9991. cygwin*)
  9992. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9993. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9994. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9995. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9996. ;;
  9997. mingw* | cegcc*)
  9998. # MinGW DLLs use traditional 'lib' prefix
  9999. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10000. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  10001. ;;
  10002. pw32*)
  10003. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10004. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10005. ;;
  10006. esac
  10007. dynamic_linker='Win32 ld.exe'
  10008. ;;
  10009. *,cl*)
  10010. # Native MSVC
  10011. libname_spec='$name'
  10012. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10013. library_names_spec='$libname.dll.lib'
  10014. case $build_os in
  10015. mingw*)
  10016. sys_lib_search_path_spec=
  10017. lt_save_ifs=$IFS
  10018. IFS=';'
  10019. for lt_path in $LIB
  10020. do
  10021. IFS=$lt_save_ifs
  10022. # Let DOS variable expansion print the short 8.3 style file name.
  10023. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10024. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10025. done
  10026. IFS=$lt_save_ifs
  10027. # Convert to MSYS style.
  10028. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10029. ;;
  10030. cygwin*)
  10031. # Convert to unix form, then to dos form, then back to unix form
  10032. # but this time dos style (no spaces!) so that the unix form looks
  10033. # like /cygdrive/c/PROGRA~1:/cygdr...
  10034. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10035. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10036. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10037. ;;
  10038. *)
  10039. sys_lib_search_path_spec=$LIB
  10040. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10041. # It is most probably a Windows format PATH.
  10042. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10043. else
  10044. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10045. fi
  10046. # FIXME: find the short name or the path components, as spaces are
  10047. # common. (e.g. "Program Files" -> "PROGRA~1")
  10048. ;;
  10049. esac
  10050. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10051. postinstall_cmds='base_file=`basename \$file`~
  10052. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10053. dldir=$destdir/`dirname \$dlpath`~
  10054. test -d \$dldir || mkdir -p \$dldir~
  10055. $install_prog $dir/$dlname \$dldir/$dlname'
  10056. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10057. dlpath=$dir/\$dldll~
  10058. $RM \$dlpath'
  10059. shlibpath_overrides_runpath=yes
  10060. dynamic_linker='Win32 link.exe'
  10061. ;;
  10062. *)
  10063. # Assume MSVC wrapper
  10064. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10065. dynamic_linker='Win32 ld.exe'
  10066. ;;
  10067. esac
  10068. # FIXME: first we should search . and the directory the executable is in
  10069. shlibpath_var=PATH
  10070. ;;
  10071. darwin* | rhapsody*)
  10072. dynamic_linker="$host_os dyld"
  10073. version_type=darwin
  10074. need_lib_prefix=no
  10075. need_version=no
  10076. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10077. soname_spec='$libname$release$major$shared_ext'
  10078. shlibpath_overrides_runpath=yes
  10079. shlibpath_var=DYLD_LIBRARY_PATH
  10080. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10081. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10082. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10083. ;;
  10084. dgux*)
  10085. version_type=linux # correct to gnu/linux during the next big refactor
  10086. need_lib_prefix=no
  10087. need_version=no
  10088. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10089. soname_spec='$libname$release$shared_ext$major'
  10090. shlibpath_var=LD_LIBRARY_PATH
  10091. ;;
  10092. freebsd* | dragonfly* | midnightbsd*)
  10093. # DragonFly does not have aout. When/if they implement a new
  10094. # versioning mechanism, adjust this.
  10095. if test -x /usr/bin/objformat; then
  10096. objformat=`/usr/bin/objformat`
  10097. else
  10098. case $host_os in
  10099. freebsd[23].*) objformat=aout ;;
  10100. *) objformat=elf ;;
  10101. esac
  10102. fi
  10103. version_type=freebsd-$objformat
  10104. case $version_type in
  10105. freebsd-elf*)
  10106. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10107. soname_spec='$libname$release$shared_ext$major'
  10108. need_version=no
  10109. need_lib_prefix=no
  10110. ;;
  10111. freebsd-*)
  10112. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10113. need_version=yes
  10114. ;;
  10115. esac
  10116. shlibpath_var=LD_LIBRARY_PATH
  10117. case $host_os in
  10118. freebsd2.*)
  10119. shlibpath_overrides_runpath=yes
  10120. ;;
  10121. freebsd3.[01]* | freebsdelf3.[01]*)
  10122. shlibpath_overrides_runpath=yes
  10123. hardcode_into_libs=yes
  10124. ;;
  10125. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10126. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10127. shlibpath_overrides_runpath=no
  10128. hardcode_into_libs=yes
  10129. ;;
  10130. *) # from 4.6 on, and DragonFly
  10131. shlibpath_overrides_runpath=yes
  10132. hardcode_into_libs=yes
  10133. ;;
  10134. esac
  10135. ;;
  10136. haiku*)
  10137. version_type=linux # correct to gnu/linux during the next big refactor
  10138. need_lib_prefix=no
  10139. need_version=no
  10140. dynamic_linker="$host_os runtime_loader"
  10141. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10142. soname_spec='$libname$release$shared_ext$major'
  10143. shlibpath_var=LIBRARY_PATH
  10144. shlibpath_overrides_runpath=no
  10145. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10146. hardcode_into_libs=yes
  10147. ;;
  10148. hpux9* | hpux10* | hpux11*)
  10149. # Give a soname corresponding to the major version so that dld.sl refuses to
  10150. # link against other versions.
  10151. version_type=sunos
  10152. need_lib_prefix=no
  10153. need_version=no
  10154. case $host_cpu in
  10155. ia64*)
  10156. shrext_cmds='.so'
  10157. hardcode_into_libs=yes
  10158. dynamic_linker="$host_os dld.so"
  10159. shlibpath_var=LD_LIBRARY_PATH
  10160. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10161. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10162. soname_spec='$libname$release$shared_ext$major'
  10163. if test 32 = "$HPUX_IA64_MODE"; then
  10164. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10165. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10166. else
  10167. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10168. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10169. fi
  10170. ;;
  10171. hppa*64*)
  10172. shrext_cmds='.sl'
  10173. hardcode_into_libs=yes
  10174. dynamic_linker="$host_os dld.sl"
  10175. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10176. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10177. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10178. soname_spec='$libname$release$shared_ext$major'
  10179. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10180. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10181. ;;
  10182. *)
  10183. shrext_cmds='.sl'
  10184. dynamic_linker="$host_os dld.sl"
  10185. shlibpath_var=SHLIB_PATH
  10186. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10187. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10188. soname_spec='$libname$release$shared_ext$major'
  10189. ;;
  10190. esac
  10191. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10192. postinstall_cmds='chmod 555 $lib'
  10193. # or fails outright, so override atomically:
  10194. install_override_mode=555
  10195. ;;
  10196. interix[3-9]*)
  10197. version_type=linux # correct to gnu/linux during the next big refactor
  10198. need_lib_prefix=no
  10199. need_version=no
  10200. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10201. soname_spec='$libname$release$shared_ext$major'
  10202. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10203. shlibpath_var=LD_LIBRARY_PATH
  10204. shlibpath_overrides_runpath=no
  10205. hardcode_into_libs=yes
  10206. ;;
  10207. irix5* | irix6* | nonstopux*)
  10208. case $host_os in
  10209. nonstopux*) version_type=nonstopux ;;
  10210. *)
  10211. if test yes = "$lt_cv_prog_gnu_ld"; then
  10212. version_type=linux # correct to gnu/linux during the next big refactor
  10213. else
  10214. version_type=irix
  10215. fi ;;
  10216. esac
  10217. need_lib_prefix=no
  10218. need_version=no
  10219. soname_spec='$libname$release$shared_ext$major'
  10220. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10221. case $host_os in
  10222. irix5* | nonstopux*)
  10223. libsuff= shlibsuff=
  10224. ;;
  10225. *)
  10226. case $LD in # libtool.m4 will add one of these switches to LD
  10227. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10228. libsuff= shlibsuff= libmagic=32-bit;;
  10229. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10230. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10231. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10232. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10233. *) libsuff= shlibsuff= libmagic=never-match;;
  10234. esac
  10235. ;;
  10236. esac
  10237. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10238. shlibpath_overrides_runpath=no
  10239. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10240. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10241. hardcode_into_libs=yes
  10242. ;;
  10243. # No shared lib support for Linux oldld, aout, or coff.
  10244. linux*oldld* | linux*aout* | linux*coff*)
  10245. dynamic_linker=no
  10246. ;;
  10247. linux*android*)
  10248. version_type=none # Android doesn't support versioned libraries.
  10249. need_lib_prefix=no
  10250. need_version=no
  10251. library_names_spec='$libname$release$shared_ext'
  10252. soname_spec='$libname$release$shared_ext'
  10253. finish_cmds=
  10254. shlibpath_var=LD_LIBRARY_PATH
  10255. shlibpath_overrides_runpath=yes
  10256. # This implies no fast_install, which is unacceptable.
  10257. # Some rework will be needed to allow for fast_install
  10258. # before this can be enabled.
  10259. hardcode_into_libs=yes
  10260. dynamic_linker='Android linker'
  10261. # Don't embed -rpath directories since the linker doesn't support them.
  10262. hardcode_libdir_flag_spec='-L$libdir'
  10263. ;;
  10264. # This must be glibc/ELF.
  10265. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10266. version_type=linux # correct to gnu/linux during the next big refactor
  10267. need_lib_prefix=no
  10268. need_version=no
  10269. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10270. soname_spec='$libname$release$shared_ext$major'
  10271. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10272. shlibpath_var=LD_LIBRARY_PATH
  10273. shlibpath_overrides_runpath=no
  10274. # Some binutils ld are patched to set DT_RUNPATH
  10275. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10276. then :
  10277. printf %s "(cached) " >&6
  10278. else $as_nop
  10279. lt_cv_shlibpath_overrides_runpath=no
  10280. save_LDFLAGS=$LDFLAGS
  10281. save_libdir=$libdir
  10282. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10283. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10285. /* end confdefs.h. */
  10286. int
  10287. main (void)
  10288. {
  10289. ;
  10290. return 0;
  10291. }
  10292. _ACEOF
  10293. if ac_fn_c_try_link "$LINENO"
  10294. then :
  10295. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10296. then :
  10297. lt_cv_shlibpath_overrides_runpath=yes
  10298. fi
  10299. fi
  10300. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10301. conftest$ac_exeext conftest.$ac_ext
  10302. LDFLAGS=$save_LDFLAGS
  10303. libdir=$save_libdir
  10304. fi
  10305. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10306. # This implies no fast_install, which is unacceptable.
  10307. # Some rework will be needed to allow for fast_install
  10308. # before this can be enabled.
  10309. hardcode_into_libs=yes
  10310. # Add ABI-specific directories to the system library path.
  10311. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10312. # Ideally, we could use ldconfig to report *all* directores which are
  10313. # searched for libraries, however this is still not possible. Aside from not
  10314. # being certain /sbin/ldconfig is available, command
  10315. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10316. # even though it is searched at run-time. Try to do the best guess by
  10317. # appending ld.so.conf contents (and includes) to the search path.
  10318. if test -f /etc/ld.so.conf; then
  10319. 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' ' '`
  10320. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10321. fi
  10322. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10323. # powerpc, because MkLinux only supported shared libraries with the
  10324. # GNU dynamic linker. Since this was broken with cross compilers,
  10325. # most powerpc-linux boxes support dynamic linking these days and
  10326. # people can always --disable-shared, the test was removed, and we
  10327. # assume the GNU/Linux dynamic linker is in use.
  10328. dynamic_linker='GNU/Linux ld.so'
  10329. ;;
  10330. netbsd*)
  10331. version_type=sunos
  10332. need_lib_prefix=no
  10333. need_version=no
  10334. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10335. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10336. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10337. dynamic_linker='NetBSD (a.out) ld.so'
  10338. else
  10339. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10340. soname_spec='$libname$release$shared_ext$major'
  10341. dynamic_linker='NetBSD ld.elf_so'
  10342. fi
  10343. shlibpath_var=LD_LIBRARY_PATH
  10344. shlibpath_overrides_runpath=yes
  10345. hardcode_into_libs=yes
  10346. ;;
  10347. newsos6)
  10348. version_type=linux # correct to gnu/linux during the next big refactor
  10349. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10350. shlibpath_var=LD_LIBRARY_PATH
  10351. shlibpath_overrides_runpath=yes
  10352. ;;
  10353. *nto* | *qnx*)
  10354. version_type=qnx
  10355. need_lib_prefix=no
  10356. need_version=no
  10357. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10358. soname_spec='$libname$release$shared_ext$major'
  10359. shlibpath_var=LD_LIBRARY_PATH
  10360. shlibpath_overrides_runpath=no
  10361. hardcode_into_libs=yes
  10362. dynamic_linker='ldqnx.so'
  10363. ;;
  10364. openbsd* | bitrig*)
  10365. version_type=sunos
  10366. sys_lib_dlsearch_path_spec=/usr/lib
  10367. need_lib_prefix=no
  10368. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10369. need_version=no
  10370. else
  10371. need_version=yes
  10372. fi
  10373. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10374. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10375. shlibpath_var=LD_LIBRARY_PATH
  10376. shlibpath_overrides_runpath=yes
  10377. ;;
  10378. os2*)
  10379. libname_spec='$name'
  10380. shrext_cmds=.dll
  10381. need_lib_prefix=no
  10382. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10383. # SDL customization: removed versioning support.
  10384. # version_type=windows
  10385. # need_version=no
  10386. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10387. # v=$($ECHO $release$versuffix | tr -d .-);
  10388. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10389. # $ECHO $n$v`$shared_ext'
  10390. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10391. library_names_spec='${libname}_dll.$libext'
  10392. dynamic_linker='OS/2 ld.exe'
  10393. shlibpath_var=BEGINLIBPATH
  10394. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10395. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10396. postinstall_cmds='base_file=`basename \$file`~
  10397. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10398. dldir=$destdir/`dirname \$dlpath`~
  10399. test -d \$dldir || mkdir -p \$dldir~
  10400. $install_prog $dir/$dlname \$dldir/$dlname~
  10401. chmod a+x \$dldir/$dlname~
  10402. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10403. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10404. fi'
  10405. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10406. dlpath=$dir/\$dldll~
  10407. $RM \$dlpath'
  10408. ;;
  10409. osf3* | osf4* | osf5*)
  10410. version_type=osf
  10411. need_lib_prefix=no
  10412. need_version=no
  10413. soname_spec='$libname$release$shared_ext$major'
  10414. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10415. shlibpath_var=LD_LIBRARY_PATH
  10416. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10417. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10418. ;;
  10419. rdos*)
  10420. dynamic_linker=no
  10421. ;;
  10422. solaris*)
  10423. version_type=linux # correct to gnu/linux during the next big refactor
  10424. need_lib_prefix=no
  10425. need_version=no
  10426. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10427. soname_spec='$libname$release$shared_ext$major'
  10428. shlibpath_var=LD_LIBRARY_PATH
  10429. shlibpath_overrides_runpath=yes
  10430. hardcode_into_libs=yes
  10431. # ldd complains unless libraries are executable
  10432. postinstall_cmds='chmod +x $lib'
  10433. ;;
  10434. sunos4*)
  10435. version_type=sunos
  10436. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10437. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10438. shlibpath_var=LD_LIBRARY_PATH
  10439. shlibpath_overrides_runpath=yes
  10440. if test yes = "$with_gnu_ld"; then
  10441. need_lib_prefix=no
  10442. fi
  10443. need_version=yes
  10444. ;;
  10445. sysv4 | sysv4.3*)
  10446. version_type=linux # correct to gnu/linux during the next big refactor
  10447. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10448. soname_spec='$libname$release$shared_ext$major'
  10449. shlibpath_var=LD_LIBRARY_PATH
  10450. case $host_vendor in
  10451. sni)
  10452. shlibpath_overrides_runpath=no
  10453. need_lib_prefix=no
  10454. runpath_var=LD_RUN_PATH
  10455. ;;
  10456. siemens)
  10457. need_lib_prefix=no
  10458. ;;
  10459. motorola)
  10460. need_lib_prefix=no
  10461. need_version=no
  10462. shlibpath_overrides_runpath=no
  10463. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10464. ;;
  10465. esac
  10466. ;;
  10467. sysv4*MP*)
  10468. if test -d /usr/nec; then
  10469. version_type=linux # correct to gnu/linux during the next big refactor
  10470. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10471. soname_spec='$libname$shared_ext.$major'
  10472. shlibpath_var=LD_LIBRARY_PATH
  10473. fi
  10474. ;;
  10475. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10476. version_type=sco
  10477. need_lib_prefix=no
  10478. need_version=no
  10479. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10480. soname_spec='$libname$release$shared_ext$major'
  10481. shlibpath_var=LD_LIBRARY_PATH
  10482. shlibpath_overrides_runpath=yes
  10483. hardcode_into_libs=yes
  10484. if test yes = "$with_gnu_ld"; then
  10485. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10486. else
  10487. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10488. case $host_os in
  10489. sco3.2v5*)
  10490. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10491. ;;
  10492. esac
  10493. fi
  10494. sys_lib_dlsearch_path_spec='/usr/lib'
  10495. ;;
  10496. tpf*)
  10497. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10498. version_type=linux # correct to gnu/linux during the next big refactor
  10499. need_lib_prefix=no
  10500. need_version=no
  10501. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10502. shlibpath_var=LD_LIBRARY_PATH
  10503. shlibpath_overrides_runpath=no
  10504. hardcode_into_libs=yes
  10505. ;;
  10506. uts4*)
  10507. version_type=linux # correct to gnu/linux during the next big refactor
  10508. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10509. soname_spec='$libname$release$shared_ext$major'
  10510. shlibpath_var=LD_LIBRARY_PATH
  10511. ;;
  10512. *)
  10513. dynamic_linker=no
  10514. ;;
  10515. esac
  10516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10517. printf "%s\n" "$dynamic_linker" >&6; }
  10518. test no = "$dynamic_linker" && can_build_shared=no
  10519. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10520. if test yes = "$GCC"; then
  10521. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10522. fi
  10523. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10524. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10525. fi
  10526. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10527. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10528. fi
  10529. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10530. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10531. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10532. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10533. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10534. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10536. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10537. hardcode_action=
  10538. if test -n "$hardcode_libdir_flag_spec" ||
  10539. test -n "$runpath_var" ||
  10540. test yes = "$hardcode_automatic"; then
  10541. # We can hardcode non-existent directories.
  10542. if test no != "$hardcode_direct" &&
  10543. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10544. # have to relink, otherwise we might link with an installed library
  10545. # when we should be linking with a yet-to-be-installed one
  10546. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10547. test no != "$hardcode_minus_L"; then
  10548. # Linking always hardcodes the temporary library directory.
  10549. hardcode_action=relink
  10550. else
  10551. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10552. hardcode_action=immediate
  10553. fi
  10554. else
  10555. # We cannot hardcode anything, or else we can only hardcode existing
  10556. # directories.
  10557. hardcode_action=unsupported
  10558. fi
  10559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10560. printf "%s\n" "$hardcode_action" >&6; }
  10561. if test relink = "$hardcode_action" ||
  10562. test yes = "$inherit_rpath"; then
  10563. # Fast installation is not supported
  10564. enable_fast_install=no
  10565. elif test yes = "$shlibpath_overrides_runpath" ||
  10566. test no = "$enable_shared"; then
  10567. # Fast installation is not necessary
  10568. enable_fast_install=needless
  10569. fi
  10570. if test yes != "$enable_dlopen"; then
  10571. enable_dlopen=unknown
  10572. enable_dlopen_self=unknown
  10573. enable_dlopen_self_static=unknown
  10574. else
  10575. lt_cv_dlopen=no
  10576. lt_cv_dlopen_libs=
  10577. case $host_os in
  10578. beos*)
  10579. lt_cv_dlopen=load_add_on
  10580. lt_cv_dlopen_libs=
  10581. lt_cv_dlopen_self=yes
  10582. ;;
  10583. mingw* | pw32* | cegcc*)
  10584. lt_cv_dlopen=LoadLibrary
  10585. lt_cv_dlopen_libs=
  10586. ;;
  10587. cygwin*)
  10588. lt_cv_dlopen=dlopen
  10589. lt_cv_dlopen_libs=
  10590. ;;
  10591. darwin*)
  10592. # if libdl is installed we need to link against it
  10593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10594. printf %s "checking for dlopen in -ldl... " >&6; }
  10595. if test ${ac_cv_lib_dl_dlopen+y}
  10596. then :
  10597. printf %s "(cached) " >&6
  10598. else $as_nop
  10599. ac_check_lib_save_LIBS=$LIBS
  10600. LIBS="-ldl $LIBS"
  10601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10602. /* end confdefs.h. */
  10603. /* Override any GCC internal prototype to avoid an error.
  10604. Use char because int might match the return type of a GCC
  10605. builtin and then its argument prototype would still apply. */
  10606. char dlopen ();
  10607. int
  10608. main (void)
  10609. {
  10610. return dlopen ();
  10611. ;
  10612. return 0;
  10613. }
  10614. _ACEOF
  10615. if ac_fn_c_try_link "$LINENO"
  10616. then :
  10617. ac_cv_lib_dl_dlopen=yes
  10618. else $as_nop
  10619. ac_cv_lib_dl_dlopen=no
  10620. fi
  10621. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10622. conftest$ac_exeext conftest.$ac_ext
  10623. LIBS=$ac_check_lib_save_LIBS
  10624. fi
  10625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10626. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10627. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10628. then :
  10629. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10630. else $as_nop
  10631. lt_cv_dlopen=dyld
  10632. lt_cv_dlopen_libs=
  10633. lt_cv_dlopen_self=yes
  10634. fi
  10635. ;;
  10636. tpf*)
  10637. # Don't try to run any link tests for TPF. We know it's impossible
  10638. # because TPF is a cross-compiler, and we know how we open DSOs.
  10639. lt_cv_dlopen=dlopen
  10640. lt_cv_dlopen_libs=
  10641. lt_cv_dlopen_self=no
  10642. ;;
  10643. *)
  10644. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10645. if test "x$ac_cv_func_shl_load" = xyes
  10646. then :
  10647. lt_cv_dlopen=shl_load
  10648. else $as_nop
  10649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10650. printf %s "checking for shl_load in -ldld... " >&6; }
  10651. if test ${ac_cv_lib_dld_shl_load+y}
  10652. then :
  10653. printf %s "(cached) " >&6
  10654. else $as_nop
  10655. ac_check_lib_save_LIBS=$LIBS
  10656. LIBS="-ldld $LIBS"
  10657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10658. /* end confdefs.h. */
  10659. /* Override any GCC internal prototype to avoid an error.
  10660. Use char because int might match the return type of a GCC
  10661. builtin and then its argument prototype would still apply. */
  10662. char shl_load ();
  10663. int
  10664. main (void)
  10665. {
  10666. return shl_load ();
  10667. ;
  10668. return 0;
  10669. }
  10670. _ACEOF
  10671. if ac_fn_c_try_link "$LINENO"
  10672. then :
  10673. ac_cv_lib_dld_shl_load=yes
  10674. else $as_nop
  10675. ac_cv_lib_dld_shl_load=no
  10676. fi
  10677. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10678. conftest$ac_exeext conftest.$ac_ext
  10679. LIBS=$ac_check_lib_save_LIBS
  10680. fi
  10681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10682. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10683. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10684. then :
  10685. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10686. else $as_nop
  10687. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10688. if test "x$ac_cv_func_dlopen" = xyes
  10689. then :
  10690. lt_cv_dlopen=dlopen
  10691. else $as_nop
  10692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10693. printf %s "checking for dlopen in -ldl... " >&6; }
  10694. if test ${ac_cv_lib_dl_dlopen+y}
  10695. then :
  10696. printf %s "(cached) " >&6
  10697. else $as_nop
  10698. ac_check_lib_save_LIBS=$LIBS
  10699. LIBS="-ldl $LIBS"
  10700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10701. /* end confdefs.h. */
  10702. /* Override any GCC internal prototype to avoid an error.
  10703. Use char because int might match the return type of a GCC
  10704. builtin and then its argument prototype would still apply. */
  10705. char dlopen ();
  10706. int
  10707. main (void)
  10708. {
  10709. return dlopen ();
  10710. ;
  10711. return 0;
  10712. }
  10713. _ACEOF
  10714. if ac_fn_c_try_link "$LINENO"
  10715. then :
  10716. ac_cv_lib_dl_dlopen=yes
  10717. else $as_nop
  10718. ac_cv_lib_dl_dlopen=no
  10719. fi
  10720. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10721. conftest$ac_exeext conftest.$ac_ext
  10722. LIBS=$ac_check_lib_save_LIBS
  10723. fi
  10724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10725. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10726. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10727. then :
  10728. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10729. else $as_nop
  10730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10731. printf %s "checking for dlopen in -lsvld... " >&6; }
  10732. if test ${ac_cv_lib_svld_dlopen+y}
  10733. then :
  10734. printf %s "(cached) " >&6
  10735. else $as_nop
  10736. ac_check_lib_save_LIBS=$LIBS
  10737. LIBS="-lsvld $LIBS"
  10738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10739. /* end confdefs.h. */
  10740. /* Override any GCC internal prototype to avoid an error.
  10741. Use char because int might match the return type of a GCC
  10742. builtin and then its argument prototype would still apply. */
  10743. char dlopen ();
  10744. int
  10745. main (void)
  10746. {
  10747. return dlopen ();
  10748. ;
  10749. return 0;
  10750. }
  10751. _ACEOF
  10752. if ac_fn_c_try_link "$LINENO"
  10753. then :
  10754. ac_cv_lib_svld_dlopen=yes
  10755. else $as_nop
  10756. ac_cv_lib_svld_dlopen=no
  10757. fi
  10758. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10759. conftest$ac_exeext conftest.$ac_ext
  10760. LIBS=$ac_check_lib_save_LIBS
  10761. fi
  10762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10763. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10764. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10765. then :
  10766. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10767. else $as_nop
  10768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10769. printf %s "checking for dld_link in -ldld... " >&6; }
  10770. if test ${ac_cv_lib_dld_dld_link+y}
  10771. then :
  10772. printf %s "(cached) " >&6
  10773. else $as_nop
  10774. ac_check_lib_save_LIBS=$LIBS
  10775. LIBS="-ldld $LIBS"
  10776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10777. /* end confdefs.h. */
  10778. /* Override any GCC internal prototype to avoid an error.
  10779. Use char because int might match the return type of a GCC
  10780. builtin and then its argument prototype would still apply. */
  10781. char dld_link ();
  10782. int
  10783. main (void)
  10784. {
  10785. return dld_link ();
  10786. ;
  10787. return 0;
  10788. }
  10789. _ACEOF
  10790. if ac_fn_c_try_link "$LINENO"
  10791. then :
  10792. ac_cv_lib_dld_dld_link=yes
  10793. else $as_nop
  10794. ac_cv_lib_dld_dld_link=no
  10795. fi
  10796. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10797. conftest$ac_exeext conftest.$ac_ext
  10798. LIBS=$ac_check_lib_save_LIBS
  10799. fi
  10800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10801. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10802. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10803. then :
  10804. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10805. fi
  10806. fi
  10807. fi
  10808. fi
  10809. fi
  10810. fi
  10811. ;;
  10812. esac
  10813. if test no = "$lt_cv_dlopen"; then
  10814. enable_dlopen=no
  10815. else
  10816. enable_dlopen=yes
  10817. fi
  10818. case $lt_cv_dlopen in
  10819. dlopen)
  10820. save_CPPFLAGS=$CPPFLAGS
  10821. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10822. save_LDFLAGS=$LDFLAGS
  10823. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10824. save_LIBS=$LIBS
  10825. LIBS="$lt_cv_dlopen_libs $LIBS"
  10826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10827. printf %s "checking whether a program can dlopen itself... " >&6; }
  10828. if test ${lt_cv_dlopen_self+y}
  10829. then :
  10830. printf %s "(cached) " >&6
  10831. else $as_nop
  10832. if test yes = "$cross_compiling"; then :
  10833. lt_cv_dlopen_self=cross
  10834. else
  10835. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10836. lt_status=$lt_dlunknown
  10837. cat > conftest.$ac_ext <<_LT_EOF
  10838. #line $LINENO "configure"
  10839. #include "confdefs.h"
  10840. #if HAVE_DLFCN_H
  10841. #include <dlfcn.h>
  10842. #endif
  10843. #include <stdio.h>
  10844. #ifdef RTLD_GLOBAL
  10845. # define LT_DLGLOBAL RTLD_GLOBAL
  10846. #else
  10847. # ifdef DL_GLOBAL
  10848. # define LT_DLGLOBAL DL_GLOBAL
  10849. # else
  10850. # define LT_DLGLOBAL 0
  10851. # endif
  10852. #endif
  10853. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10854. find out it does not work in some platform. */
  10855. #ifndef LT_DLLAZY_OR_NOW
  10856. # ifdef RTLD_LAZY
  10857. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10858. # else
  10859. # ifdef DL_LAZY
  10860. # define LT_DLLAZY_OR_NOW DL_LAZY
  10861. # else
  10862. # ifdef RTLD_NOW
  10863. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10864. # else
  10865. # ifdef DL_NOW
  10866. # define LT_DLLAZY_OR_NOW DL_NOW
  10867. # else
  10868. # define LT_DLLAZY_OR_NOW 0
  10869. # endif
  10870. # endif
  10871. # endif
  10872. # endif
  10873. #endif
  10874. /* When -fvisibility=hidden is used, assume the code has been annotated
  10875. correspondingly for the symbols needed. */
  10876. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10877. int fnord () __attribute__((visibility("default")));
  10878. #endif
  10879. int fnord () { return 42; }
  10880. int main ()
  10881. {
  10882. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10883. int status = $lt_dlunknown;
  10884. if (self)
  10885. {
  10886. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10887. else
  10888. {
  10889. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10890. else puts (dlerror ());
  10891. }
  10892. /* dlclose (self); */
  10893. }
  10894. else
  10895. puts (dlerror ());
  10896. return status;
  10897. }
  10898. _LT_EOF
  10899. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10900. (eval $ac_link) 2>&5
  10901. ac_status=$?
  10902. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10903. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10904. (./conftest; exit; ) >&5 2>/dev/null
  10905. lt_status=$?
  10906. case x$lt_status in
  10907. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10908. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10909. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10910. esac
  10911. else :
  10912. # compilation failed
  10913. lt_cv_dlopen_self=no
  10914. fi
  10915. fi
  10916. rm -fr conftest*
  10917. fi
  10918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10919. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10920. if test yes = "$lt_cv_dlopen_self"; then
  10921. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10923. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10924. if test ${lt_cv_dlopen_self_static+y}
  10925. then :
  10926. printf %s "(cached) " >&6
  10927. else $as_nop
  10928. if test yes = "$cross_compiling"; then :
  10929. lt_cv_dlopen_self_static=cross
  10930. else
  10931. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10932. lt_status=$lt_dlunknown
  10933. cat > conftest.$ac_ext <<_LT_EOF
  10934. #line $LINENO "configure"
  10935. #include "confdefs.h"
  10936. #if HAVE_DLFCN_H
  10937. #include <dlfcn.h>
  10938. #endif
  10939. #include <stdio.h>
  10940. #ifdef RTLD_GLOBAL
  10941. # define LT_DLGLOBAL RTLD_GLOBAL
  10942. #else
  10943. # ifdef DL_GLOBAL
  10944. # define LT_DLGLOBAL DL_GLOBAL
  10945. # else
  10946. # define LT_DLGLOBAL 0
  10947. # endif
  10948. #endif
  10949. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10950. find out it does not work in some platform. */
  10951. #ifndef LT_DLLAZY_OR_NOW
  10952. # ifdef RTLD_LAZY
  10953. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10954. # else
  10955. # ifdef DL_LAZY
  10956. # define LT_DLLAZY_OR_NOW DL_LAZY
  10957. # else
  10958. # ifdef RTLD_NOW
  10959. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10960. # else
  10961. # ifdef DL_NOW
  10962. # define LT_DLLAZY_OR_NOW DL_NOW
  10963. # else
  10964. # define LT_DLLAZY_OR_NOW 0
  10965. # endif
  10966. # endif
  10967. # endif
  10968. # endif
  10969. #endif
  10970. /* When -fvisibility=hidden is used, assume the code has been annotated
  10971. correspondingly for the symbols needed. */
  10972. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10973. int fnord () __attribute__((visibility("default")));
  10974. #endif
  10975. int fnord () { return 42; }
  10976. int main ()
  10977. {
  10978. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10979. int status = $lt_dlunknown;
  10980. if (self)
  10981. {
  10982. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10983. else
  10984. {
  10985. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10986. else puts (dlerror ());
  10987. }
  10988. /* dlclose (self); */
  10989. }
  10990. else
  10991. puts (dlerror ());
  10992. return status;
  10993. }
  10994. _LT_EOF
  10995. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10996. (eval $ac_link) 2>&5
  10997. ac_status=$?
  10998. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10999. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11000. (./conftest; exit; ) >&5 2>/dev/null
  11001. lt_status=$?
  11002. case x$lt_status in
  11003. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11004. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11005. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11006. esac
  11007. else :
  11008. # compilation failed
  11009. lt_cv_dlopen_self_static=no
  11010. fi
  11011. fi
  11012. rm -fr conftest*
  11013. fi
  11014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11015. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11016. fi
  11017. CPPFLAGS=$save_CPPFLAGS
  11018. LDFLAGS=$save_LDFLAGS
  11019. LIBS=$save_LIBS
  11020. ;;
  11021. esac
  11022. case $lt_cv_dlopen_self in
  11023. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11024. *) enable_dlopen_self=unknown ;;
  11025. esac
  11026. case $lt_cv_dlopen_self_static in
  11027. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11028. *) enable_dlopen_self_static=unknown ;;
  11029. esac
  11030. fi
  11031. striplib=
  11032. old_striplib=
  11033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11034. printf %s "checking whether stripping libraries is possible... " >&6; }
  11035. if test -z "$STRIP"; then
  11036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11037. printf "%s\n" "no" >&6; }
  11038. else
  11039. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11040. old_striplib="$STRIP --strip-debug"
  11041. striplib="$STRIP --strip-unneeded"
  11042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11043. printf "%s\n" "yes" >&6; }
  11044. else
  11045. case $host_os in
  11046. darwin*)
  11047. # FIXME - insert some real tests, host_os isn't really good enough
  11048. striplib="$STRIP -x"
  11049. old_striplib="$STRIP -S"
  11050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11051. printf "%s\n" "yes" >&6; }
  11052. ;;
  11053. freebsd*)
  11054. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11055. old_striplib="$STRIP --strip-debug"
  11056. striplib="$STRIP --strip-unneeded"
  11057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11058. printf "%s\n" "yes" >&6; }
  11059. else
  11060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11061. printf "%s\n" "no" >&6; }
  11062. fi
  11063. ;;
  11064. *)
  11065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11066. printf "%s\n" "no" >&6; }
  11067. ;;
  11068. esac
  11069. fi
  11070. fi
  11071. # Report what library types will actually be built
  11072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11073. printf %s "checking if libtool supports shared libraries... " >&6; }
  11074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11075. printf "%s\n" "$can_build_shared" >&6; }
  11076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11077. printf %s "checking whether to build shared libraries... " >&6; }
  11078. test no = "$can_build_shared" && enable_shared=no
  11079. # On AIX, shared libraries and static libraries use the same namespace, and
  11080. # are all built from PIC.
  11081. case $host_os in
  11082. aix3*)
  11083. test yes = "$enable_shared" && enable_static=no
  11084. if test -n "$RANLIB"; then
  11085. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11086. postinstall_cmds='$RANLIB $lib'
  11087. fi
  11088. ;;
  11089. aix[4-9]*)
  11090. if test ia64 != "$host_cpu"; then
  11091. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11092. yes,aix,yes) ;; # shared object as lib.so file only
  11093. yes,svr4,*) ;; # shared object as lib.so archive member only
  11094. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11095. esac
  11096. fi
  11097. ;;
  11098. esac
  11099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11100. printf "%s\n" "$enable_shared" >&6; }
  11101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11102. printf %s "checking whether to build static libraries... " >&6; }
  11103. # Make sure either enable_shared or enable_static is yes.
  11104. test yes = "$enable_shared" || enable_static=yes
  11105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11106. printf "%s\n" "$enable_static" >&6; }
  11107. fi
  11108. ac_ext=c
  11109. ac_cpp='$CPP $CPPFLAGS'
  11110. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11111. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11112. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11113. CC=$lt_save_CC
  11114. ac_config_commands="$ac_config_commands libtool"
  11115. # Only expand once:
  11116. if test -n "$ac_tool_prefix"; then
  11117. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11118. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11120. printf %s "checking for $ac_word... " >&6; }
  11121. if test ${ac_cv_prog_RC+y}
  11122. then :
  11123. printf %s "(cached) " >&6
  11124. else $as_nop
  11125. if test -n "$RC"; then
  11126. ac_cv_prog_RC="$RC" # Let the user override the test.
  11127. else
  11128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11129. for as_dir in $PATH
  11130. do
  11131. IFS=$as_save_IFS
  11132. case $as_dir in #(((
  11133. '') as_dir=./ ;;
  11134. */) ;;
  11135. *) as_dir=$as_dir/ ;;
  11136. esac
  11137. for ac_exec_ext in '' $ac_executable_extensions; do
  11138. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11139. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11140. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11141. break 2
  11142. fi
  11143. done
  11144. done
  11145. IFS=$as_save_IFS
  11146. fi
  11147. fi
  11148. RC=$ac_cv_prog_RC
  11149. if test -n "$RC"; then
  11150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11151. printf "%s\n" "$RC" >&6; }
  11152. else
  11153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11154. printf "%s\n" "no" >&6; }
  11155. fi
  11156. fi
  11157. if test -z "$ac_cv_prog_RC"; then
  11158. ac_ct_RC=$RC
  11159. # Extract the first word of "windres", so it can be a program name with args.
  11160. set dummy windres; ac_word=$2
  11161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11162. printf %s "checking for $ac_word... " >&6; }
  11163. if test ${ac_cv_prog_ac_ct_RC+y}
  11164. then :
  11165. printf %s "(cached) " >&6
  11166. else $as_nop
  11167. if test -n "$ac_ct_RC"; then
  11168. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11169. else
  11170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11171. for as_dir in $PATH
  11172. do
  11173. IFS=$as_save_IFS
  11174. case $as_dir in #(((
  11175. '') as_dir=./ ;;
  11176. */) ;;
  11177. *) as_dir=$as_dir/ ;;
  11178. esac
  11179. for ac_exec_ext in '' $ac_executable_extensions; do
  11180. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11181. ac_cv_prog_ac_ct_RC="windres"
  11182. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11183. break 2
  11184. fi
  11185. done
  11186. done
  11187. IFS=$as_save_IFS
  11188. fi
  11189. fi
  11190. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11191. if test -n "$ac_ct_RC"; then
  11192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11193. printf "%s\n" "$ac_ct_RC" >&6; }
  11194. else
  11195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11196. printf "%s\n" "no" >&6; }
  11197. fi
  11198. if test "x$ac_ct_RC" = x; then
  11199. RC=""
  11200. else
  11201. case $cross_compiling:$ac_tool_warned in
  11202. yes:)
  11203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11204. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11205. ac_tool_warned=yes ;;
  11206. esac
  11207. RC=$ac_ct_RC
  11208. fi
  11209. else
  11210. RC="$ac_cv_prog_RC"
  11211. fi
  11212. # Source file extension for RC test sources.
  11213. ac_ext=rc
  11214. # Object file extension for compiled RC test sources.
  11215. objext=o
  11216. objext_RC=$objext
  11217. # Code to be used in simple compile tests
  11218. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11219. # Code to be used in simple link tests
  11220. lt_simple_link_test_code=$lt_simple_compile_test_code
  11221. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11222. # If no C compiler was specified, use CC.
  11223. LTCC=${LTCC-"$CC"}
  11224. # If no C compiler flags were specified, use CFLAGS.
  11225. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11226. # Allow CC to be a program name with arguments.
  11227. compiler=$CC
  11228. # save warnings/boilerplate of simple test code
  11229. ac_outfile=conftest.$ac_objext
  11230. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11231. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11232. _lt_compiler_boilerplate=`cat conftest.err`
  11233. $RM conftest*
  11234. ac_outfile=conftest.$ac_objext
  11235. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11236. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11237. _lt_linker_boilerplate=`cat conftest.err`
  11238. $RM -r conftest*
  11239. # Allow CC to be a program name with arguments.
  11240. lt_save_CC=$CC
  11241. lt_save_CFLAGS=$CFLAGS
  11242. lt_save_GCC=$GCC
  11243. GCC=
  11244. CC=${RC-"windres"}
  11245. CFLAGS=
  11246. compiler=$CC
  11247. compiler_RC=$CC
  11248. func_cc_basename $compiler
  11249. cc_basename=$func_cc_basename_result
  11250. lt_cv_prog_compiler_c_o_RC=yes
  11251. if test -n "$compiler"; then
  11252. :
  11253. fi
  11254. GCC=$lt_save_GCC
  11255. ac_ext=c
  11256. ac_cpp='$CPP $CPPFLAGS'
  11257. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11258. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11259. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11260. CC=$lt_save_CC
  11261. CFLAGS=$lt_save_CFLAGS
  11262. # For historical reasons, the library name redundantly includes the major
  11263. # version twice: libSDL2-2.0.so.0.
  11264. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11265. LT_RELEASE=2.0
  11266. # Increment this if there is an incompatible change - but if that happens,
  11267. # we should rename the library from SDL2 to SDL3, at which point this would
  11268. # reset to 0 anyway.
  11269. LT_MAJOR=0
  11270. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11271. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11272. LT_REVISION=$SDL_INTERFACE_AGE
  11273. for ac_prog in gawk mawk nawk awk
  11274. do
  11275. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11276. set dummy $ac_prog; ac_word=$2
  11277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11278. printf %s "checking for $ac_word... " >&6; }
  11279. if test ${ac_cv_prog_AWK+y}
  11280. then :
  11281. printf %s "(cached) " >&6
  11282. else $as_nop
  11283. if test -n "$AWK"; then
  11284. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11285. else
  11286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11287. for as_dir in $PATH
  11288. do
  11289. IFS=$as_save_IFS
  11290. case $as_dir in #(((
  11291. '') as_dir=./ ;;
  11292. */) ;;
  11293. *) as_dir=$as_dir/ ;;
  11294. esac
  11295. for ac_exec_ext in '' $ac_executable_extensions; do
  11296. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11297. ac_cv_prog_AWK="$ac_prog"
  11298. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11299. break 2
  11300. fi
  11301. done
  11302. done
  11303. IFS=$as_save_IFS
  11304. fi
  11305. fi
  11306. AWK=$ac_cv_prog_AWK
  11307. if test -n "$AWK"; then
  11308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11309. printf "%s\n" "$AWK" >&6; }
  11310. else
  11311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11312. printf "%s\n" "no" >&6; }
  11313. fi
  11314. test -n "$AWK" && break
  11315. done
  11316. ac_ext=c
  11317. ac_cpp='$CPP $CPPFLAGS'
  11318. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11319. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11320. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11321. if test -n "$ac_tool_prefix"; then
  11322. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11323. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11325. printf %s "checking for $ac_word... " >&6; }
  11326. if test ${ac_cv_prog_CC+y}
  11327. then :
  11328. printf %s "(cached) " >&6
  11329. else $as_nop
  11330. if test -n "$CC"; then
  11331. ac_cv_prog_CC="$CC" # Let the user override the test.
  11332. else
  11333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11334. for as_dir in $PATH
  11335. do
  11336. IFS=$as_save_IFS
  11337. case $as_dir in #(((
  11338. '') as_dir=./ ;;
  11339. */) ;;
  11340. *) as_dir=$as_dir/ ;;
  11341. esac
  11342. for ac_exec_ext in '' $ac_executable_extensions; do
  11343. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11344. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11345. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11346. break 2
  11347. fi
  11348. done
  11349. done
  11350. IFS=$as_save_IFS
  11351. fi
  11352. fi
  11353. CC=$ac_cv_prog_CC
  11354. if test -n "$CC"; then
  11355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11356. printf "%s\n" "$CC" >&6; }
  11357. else
  11358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11359. printf "%s\n" "no" >&6; }
  11360. fi
  11361. fi
  11362. if test -z "$ac_cv_prog_CC"; then
  11363. ac_ct_CC=$CC
  11364. # Extract the first word of "gcc", so it can be a program name with args.
  11365. set dummy gcc; ac_word=$2
  11366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11367. printf %s "checking for $ac_word... " >&6; }
  11368. if test ${ac_cv_prog_ac_ct_CC+y}
  11369. then :
  11370. printf %s "(cached) " >&6
  11371. else $as_nop
  11372. if test -n "$ac_ct_CC"; then
  11373. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11374. else
  11375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11376. for as_dir in $PATH
  11377. do
  11378. IFS=$as_save_IFS
  11379. case $as_dir in #(((
  11380. '') as_dir=./ ;;
  11381. */) ;;
  11382. *) as_dir=$as_dir/ ;;
  11383. esac
  11384. for ac_exec_ext in '' $ac_executable_extensions; do
  11385. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11386. ac_cv_prog_ac_ct_CC="gcc"
  11387. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11388. break 2
  11389. fi
  11390. done
  11391. done
  11392. IFS=$as_save_IFS
  11393. fi
  11394. fi
  11395. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11396. if test -n "$ac_ct_CC"; then
  11397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11398. printf "%s\n" "$ac_ct_CC" >&6; }
  11399. else
  11400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11401. printf "%s\n" "no" >&6; }
  11402. fi
  11403. if test "x$ac_ct_CC" = x; then
  11404. CC=""
  11405. else
  11406. case $cross_compiling:$ac_tool_warned in
  11407. yes:)
  11408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11409. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11410. ac_tool_warned=yes ;;
  11411. esac
  11412. CC=$ac_ct_CC
  11413. fi
  11414. else
  11415. CC="$ac_cv_prog_CC"
  11416. fi
  11417. if test -z "$CC"; then
  11418. if test -n "$ac_tool_prefix"; then
  11419. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11420. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11422. printf %s "checking for $ac_word... " >&6; }
  11423. if test ${ac_cv_prog_CC+y}
  11424. then :
  11425. printf %s "(cached) " >&6
  11426. else $as_nop
  11427. if test -n "$CC"; then
  11428. ac_cv_prog_CC="$CC" # Let the user override the test.
  11429. else
  11430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11431. for as_dir in $PATH
  11432. do
  11433. IFS=$as_save_IFS
  11434. case $as_dir in #(((
  11435. '') as_dir=./ ;;
  11436. */) ;;
  11437. *) as_dir=$as_dir/ ;;
  11438. esac
  11439. for ac_exec_ext in '' $ac_executable_extensions; do
  11440. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11441. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11442. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11443. break 2
  11444. fi
  11445. done
  11446. done
  11447. IFS=$as_save_IFS
  11448. fi
  11449. fi
  11450. CC=$ac_cv_prog_CC
  11451. if test -n "$CC"; then
  11452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11453. printf "%s\n" "$CC" >&6; }
  11454. else
  11455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11456. printf "%s\n" "no" >&6; }
  11457. fi
  11458. fi
  11459. fi
  11460. if test -z "$CC"; then
  11461. # Extract the first word of "cc", so it can be a program name with args.
  11462. set dummy cc; ac_word=$2
  11463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11464. printf %s "checking for $ac_word... " >&6; }
  11465. if test ${ac_cv_prog_CC+y}
  11466. then :
  11467. printf %s "(cached) " >&6
  11468. else $as_nop
  11469. if test -n "$CC"; then
  11470. ac_cv_prog_CC="$CC" # Let the user override the test.
  11471. else
  11472. ac_prog_rejected=no
  11473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11474. for as_dir in $PATH
  11475. do
  11476. IFS=$as_save_IFS
  11477. case $as_dir in #(((
  11478. '') as_dir=./ ;;
  11479. */) ;;
  11480. *) as_dir=$as_dir/ ;;
  11481. esac
  11482. for ac_exec_ext in '' $ac_executable_extensions; do
  11483. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11484. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11485. ac_prog_rejected=yes
  11486. continue
  11487. fi
  11488. ac_cv_prog_CC="cc"
  11489. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11490. break 2
  11491. fi
  11492. done
  11493. done
  11494. IFS=$as_save_IFS
  11495. if test $ac_prog_rejected = yes; then
  11496. # We found a bogon in the path, so make sure we never use it.
  11497. set dummy $ac_cv_prog_CC
  11498. shift
  11499. if test $# != 0; then
  11500. # We chose a different compiler from the bogus one.
  11501. # However, it has the same basename, so the bogon will be chosen
  11502. # first if we set CC to just the basename; use the full file name.
  11503. shift
  11504. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11505. fi
  11506. fi
  11507. fi
  11508. fi
  11509. CC=$ac_cv_prog_CC
  11510. if test -n "$CC"; then
  11511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11512. printf "%s\n" "$CC" >&6; }
  11513. else
  11514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11515. printf "%s\n" "no" >&6; }
  11516. fi
  11517. fi
  11518. if test -z "$CC"; then
  11519. if test -n "$ac_tool_prefix"; then
  11520. for ac_prog in cl.exe
  11521. do
  11522. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11523. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11525. printf %s "checking for $ac_word... " >&6; }
  11526. if test ${ac_cv_prog_CC+y}
  11527. then :
  11528. printf %s "(cached) " >&6
  11529. else $as_nop
  11530. if test -n "$CC"; then
  11531. ac_cv_prog_CC="$CC" # Let the user override the test.
  11532. else
  11533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11534. for as_dir in $PATH
  11535. do
  11536. IFS=$as_save_IFS
  11537. case $as_dir in #(((
  11538. '') as_dir=./ ;;
  11539. */) ;;
  11540. *) as_dir=$as_dir/ ;;
  11541. esac
  11542. for ac_exec_ext in '' $ac_executable_extensions; do
  11543. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11544. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11545. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11546. break 2
  11547. fi
  11548. done
  11549. done
  11550. IFS=$as_save_IFS
  11551. fi
  11552. fi
  11553. CC=$ac_cv_prog_CC
  11554. if test -n "$CC"; then
  11555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11556. printf "%s\n" "$CC" >&6; }
  11557. else
  11558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11559. printf "%s\n" "no" >&6; }
  11560. fi
  11561. test -n "$CC" && break
  11562. done
  11563. fi
  11564. if test -z "$CC"; then
  11565. ac_ct_CC=$CC
  11566. for ac_prog in cl.exe
  11567. do
  11568. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11569. set dummy $ac_prog; ac_word=$2
  11570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11571. printf %s "checking for $ac_word... " >&6; }
  11572. if test ${ac_cv_prog_ac_ct_CC+y}
  11573. then :
  11574. printf %s "(cached) " >&6
  11575. else $as_nop
  11576. if test -n "$ac_ct_CC"; then
  11577. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11578. else
  11579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11580. for as_dir in $PATH
  11581. do
  11582. IFS=$as_save_IFS
  11583. case $as_dir in #(((
  11584. '') as_dir=./ ;;
  11585. */) ;;
  11586. *) as_dir=$as_dir/ ;;
  11587. esac
  11588. for ac_exec_ext in '' $ac_executable_extensions; do
  11589. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11590. ac_cv_prog_ac_ct_CC="$ac_prog"
  11591. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11592. break 2
  11593. fi
  11594. done
  11595. done
  11596. IFS=$as_save_IFS
  11597. fi
  11598. fi
  11599. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11600. if test -n "$ac_ct_CC"; then
  11601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11602. printf "%s\n" "$ac_ct_CC" >&6; }
  11603. else
  11604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11605. printf "%s\n" "no" >&6; }
  11606. fi
  11607. test -n "$ac_ct_CC" && break
  11608. done
  11609. if test "x$ac_ct_CC" = x; then
  11610. CC=""
  11611. else
  11612. case $cross_compiling:$ac_tool_warned in
  11613. yes:)
  11614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11615. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11616. ac_tool_warned=yes ;;
  11617. esac
  11618. CC=$ac_ct_CC
  11619. fi
  11620. fi
  11621. fi
  11622. if test -z "$CC"; then
  11623. if test -n "$ac_tool_prefix"; then
  11624. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11625. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11627. printf %s "checking for $ac_word... " >&6; }
  11628. if test ${ac_cv_prog_CC+y}
  11629. then :
  11630. printf %s "(cached) " >&6
  11631. else $as_nop
  11632. if test -n "$CC"; then
  11633. ac_cv_prog_CC="$CC" # Let the user override the test.
  11634. else
  11635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11636. for as_dir in $PATH
  11637. do
  11638. IFS=$as_save_IFS
  11639. case $as_dir in #(((
  11640. '') as_dir=./ ;;
  11641. */) ;;
  11642. *) as_dir=$as_dir/ ;;
  11643. esac
  11644. for ac_exec_ext in '' $ac_executable_extensions; do
  11645. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11646. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11647. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11648. break 2
  11649. fi
  11650. done
  11651. done
  11652. IFS=$as_save_IFS
  11653. fi
  11654. fi
  11655. CC=$ac_cv_prog_CC
  11656. if test -n "$CC"; then
  11657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11658. printf "%s\n" "$CC" >&6; }
  11659. else
  11660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11661. printf "%s\n" "no" >&6; }
  11662. fi
  11663. fi
  11664. if test -z "$ac_cv_prog_CC"; then
  11665. ac_ct_CC=$CC
  11666. # Extract the first word of "clang", so it can be a program name with args.
  11667. set dummy clang; ac_word=$2
  11668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11669. printf %s "checking for $ac_word... " >&6; }
  11670. if test ${ac_cv_prog_ac_ct_CC+y}
  11671. then :
  11672. printf %s "(cached) " >&6
  11673. else $as_nop
  11674. if test -n "$ac_ct_CC"; then
  11675. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11676. else
  11677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11678. for as_dir in $PATH
  11679. do
  11680. IFS=$as_save_IFS
  11681. case $as_dir in #(((
  11682. '') as_dir=./ ;;
  11683. */) ;;
  11684. *) as_dir=$as_dir/ ;;
  11685. esac
  11686. for ac_exec_ext in '' $ac_executable_extensions; do
  11687. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11688. ac_cv_prog_ac_ct_CC="clang"
  11689. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11690. break 2
  11691. fi
  11692. done
  11693. done
  11694. IFS=$as_save_IFS
  11695. fi
  11696. fi
  11697. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11698. if test -n "$ac_ct_CC"; then
  11699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11700. printf "%s\n" "$ac_ct_CC" >&6; }
  11701. else
  11702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11703. printf "%s\n" "no" >&6; }
  11704. fi
  11705. if test "x$ac_ct_CC" = x; then
  11706. CC=""
  11707. else
  11708. case $cross_compiling:$ac_tool_warned in
  11709. yes:)
  11710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11711. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11712. ac_tool_warned=yes ;;
  11713. esac
  11714. CC=$ac_ct_CC
  11715. fi
  11716. else
  11717. CC="$ac_cv_prog_CC"
  11718. fi
  11719. fi
  11720. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11721. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11722. as_fn_error $? "no acceptable C compiler found in \$PATH
  11723. See \`config.log' for more details" "$LINENO" 5; }
  11724. # Provide some information about the compiler.
  11725. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11726. set X $ac_compile
  11727. ac_compiler=$2
  11728. for ac_option in --version -v -V -qversion -version; do
  11729. { { ac_try="$ac_compiler $ac_option >&5"
  11730. case "(($ac_try" in
  11731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11732. *) ac_try_echo=$ac_try;;
  11733. esac
  11734. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11735. printf "%s\n" "$ac_try_echo"; } >&5
  11736. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11737. ac_status=$?
  11738. if test -s conftest.err; then
  11739. sed '10a\
  11740. ... rest of stderr output deleted ...
  11741. 10q' conftest.err >conftest.er1
  11742. cat conftest.er1 >&5
  11743. fi
  11744. rm -f conftest.er1 conftest.err
  11745. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11746. test $ac_status = 0; }
  11747. done
  11748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11749. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11750. if test ${ac_cv_c_compiler_gnu+y}
  11751. then :
  11752. printf %s "(cached) " >&6
  11753. else $as_nop
  11754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11755. /* end confdefs.h. */
  11756. int
  11757. main (void)
  11758. {
  11759. #ifndef __GNUC__
  11760. choke me
  11761. #endif
  11762. ;
  11763. return 0;
  11764. }
  11765. _ACEOF
  11766. if ac_fn_c_try_compile "$LINENO"
  11767. then :
  11768. ac_compiler_gnu=yes
  11769. else $as_nop
  11770. ac_compiler_gnu=no
  11771. fi
  11772. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11773. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11774. fi
  11775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11776. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11777. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11778. if test $ac_compiler_gnu = yes; then
  11779. GCC=yes
  11780. else
  11781. GCC=
  11782. fi
  11783. ac_test_CFLAGS=${CFLAGS+y}
  11784. ac_save_CFLAGS=$CFLAGS
  11785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11786. printf %s "checking whether $CC accepts -g... " >&6; }
  11787. if test ${ac_cv_prog_cc_g+y}
  11788. then :
  11789. printf %s "(cached) " >&6
  11790. else $as_nop
  11791. ac_save_c_werror_flag=$ac_c_werror_flag
  11792. ac_c_werror_flag=yes
  11793. ac_cv_prog_cc_g=no
  11794. CFLAGS="-g"
  11795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11796. /* end confdefs.h. */
  11797. int
  11798. main (void)
  11799. {
  11800. ;
  11801. return 0;
  11802. }
  11803. _ACEOF
  11804. if ac_fn_c_try_compile "$LINENO"
  11805. then :
  11806. ac_cv_prog_cc_g=yes
  11807. else $as_nop
  11808. CFLAGS=""
  11809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11810. /* end confdefs.h. */
  11811. int
  11812. main (void)
  11813. {
  11814. ;
  11815. return 0;
  11816. }
  11817. _ACEOF
  11818. if ac_fn_c_try_compile "$LINENO"
  11819. then :
  11820. else $as_nop
  11821. ac_c_werror_flag=$ac_save_c_werror_flag
  11822. CFLAGS="-g"
  11823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11824. /* end confdefs.h. */
  11825. int
  11826. main (void)
  11827. {
  11828. ;
  11829. return 0;
  11830. }
  11831. _ACEOF
  11832. if ac_fn_c_try_compile "$LINENO"
  11833. then :
  11834. ac_cv_prog_cc_g=yes
  11835. fi
  11836. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11837. fi
  11838. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11839. fi
  11840. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11841. ac_c_werror_flag=$ac_save_c_werror_flag
  11842. fi
  11843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11844. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11845. if test $ac_test_CFLAGS; then
  11846. CFLAGS=$ac_save_CFLAGS
  11847. elif test $ac_cv_prog_cc_g = yes; then
  11848. if test "$GCC" = yes; then
  11849. CFLAGS="-g -O2"
  11850. else
  11851. CFLAGS="-g"
  11852. fi
  11853. else
  11854. if test "$GCC" = yes; then
  11855. CFLAGS="-O2"
  11856. else
  11857. CFLAGS=
  11858. fi
  11859. fi
  11860. ac_prog_cc_stdc=no
  11861. if test x$ac_prog_cc_stdc = xno
  11862. then :
  11863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11864. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11865. if test ${ac_cv_prog_cc_c11+y}
  11866. then :
  11867. printf %s "(cached) " >&6
  11868. else $as_nop
  11869. ac_cv_prog_cc_c11=no
  11870. ac_save_CC=$CC
  11871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11872. /* end confdefs.h. */
  11873. $ac_c_conftest_c11_program
  11874. _ACEOF
  11875. for ac_arg in '' -std=gnu11
  11876. do
  11877. CC="$ac_save_CC $ac_arg"
  11878. if ac_fn_c_try_compile "$LINENO"
  11879. then :
  11880. ac_cv_prog_cc_c11=$ac_arg
  11881. fi
  11882. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11883. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11884. done
  11885. rm -f conftest.$ac_ext
  11886. CC=$ac_save_CC
  11887. fi
  11888. if test "x$ac_cv_prog_cc_c11" = xno
  11889. then :
  11890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11891. printf "%s\n" "unsupported" >&6; }
  11892. else $as_nop
  11893. if test "x$ac_cv_prog_cc_c11" = x
  11894. then :
  11895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11896. printf "%s\n" "none needed" >&6; }
  11897. else $as_nop
  11898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11899. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11900. CC="$CC $ac_cv_prog_cc_c11"
  11901. fi
  11902. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11903. ac_prog_cc_stdc=c11
  11904. fi
  11905. fi
  11906. if test x$ac_prog_cc_stdc = xno
  11907. then :
  11908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11909. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11910. if test ${ac_cv_prog_cc_c99+y}
  11911. then :
  11912. printf %s "(cached) " >&6
  11913. else $as_nop
  11914. ac_cv_prog_cc_c99=no
  11915. ac_save_CC=$CC
  11916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11917. /* end confdefs.h. */
  11918. $ac_c_conftest_c99_program
  11919. _ACEOF
  11920. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11921. do
  11922. CC="$ac_save_CC $ac_arg"
  11923. if ac_fn_c_try_compile "$LINENO"
  11924. then :
  11925. ac_cv_prog_cc_c99=$ac_arg
  11926. fi
  11927. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11928. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11929. done
  11930. rm -f conftest.$ac_ext
  11931. CC=$ac_save_CC
  11932. fi
  11933. if test "x$ac_cv_prog_cc_c99" = xno
  11934. then :
  11935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11936. printf "%s\n" "unsupported" >&6; }
  11937. else $as_nop
  11938. if test "x$ac_cv_prog_cc_c99" = x
  11939. then :
  11940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11941. printf "%s\n" "none needed" >&6; }
  11942. else $as_nop
  11943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11944. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11945. CC="$CC $ac_cv_prog_cc_c99"
  11946. fi
  11947. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11948. ac_prog_cc_stdc=c99
  11949. fi
  11950. fi
  11951. if test x$ac_prog_cc_stdc = xno
  11952. then :
  11953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11954. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11955. if test ${ac_cv_prog_cc_c89+y}
  11956. then :
  11957. printf %s "(cached) " >&6
  11958. else $as_nop
  11959. ac_cv_prog_cc_c89=no
  11960. ac_save_CC=$CC
  11961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11962. /* end confdefs.h. */
  11963. $ac_c_conftest_c89_program
  11964. _ACEOF
  11965. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11966. do
  11967. CC="$ac_save_CC $ac_arg"
  11968. if ac_fn_c_try_compile "$LINENO"
  11969. then :
  11970. ac_cv_prog_cc_c89=$ac_arg
  11971. fi
  11972. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11973. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11974. done
  11975. rm -f conftest.$ac_ext
  11976. CC=$ac_save_CC
  11977. fi
  11978. if test "x$ac_cv_prog_cc_c89" = xno
  11979. then :
  11980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11981. printf "%s\n" "unsupported" >&6; }
  11982. else $as_nop
  11983. if test "x$ac_cv_prog_cc_c89" = x
  11984. then :
  11985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11986. printf "%s\n" "none needed" >&6; }
  11987. else $as_nop
  11988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11989. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  11990. CC="$CC $ac_cv_prog_cc_c89"
  11991. fi
  11992. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  11993. ac_prog_cc_stdc=c89
  11994. fi
  11995. fi
  11996. ac_ext=c
  11997. ac_cpp='$CPP $CPPFLAGS'
  11998. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11999. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12000. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12001. ac_ext=cpp
  12002. ac_cpp='$CXXCPP $CPPFLAGS'
  12003. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12004. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12005. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12006. if test -z "$CXX"; then
  12007. if test -n "$CCC"; then
  12008. CXX=$CCC
  12009. else
  12010. if test -n "$ac_tool_prefix"; then
  12011. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12012. do
  12013. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12014. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12016. printf %s "checking for $ac_word... " >&6; }
  12017. if test ${ac_cv_prog_CXX+y}
  12018. then :
  12019. printf %s "(cached) " >&6
  12020. else $as_nop
  12021. if test -n "$CXX"; then
  12022. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12023. else
  12024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12025. for as_dir in $PATH
  12026. do
  12027. IFS=$as_save_IFS
  12028. case $as_dir in #(((
  12029. '') as_dir=./ ;;
  12030. */) ;;
  12031. *) as_dir=$as_dir/ ;;
  12032. esac
  12033. for ac_exec_ext in '' $ac_executable_extensions; do
  12034. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12035. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12036. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12037. break 2
  12038. fi
  12039. done
  12040. done
  12041. IFS=$as_save_IFS
  12042. fi
  12043. fi
  12044. CXX=$ac_cv_prog_CXX
  12045. if test -n "$CXX"; then
  12046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12047. printf "%s\n" "$CXX" >&6; }
  12048. else
  12049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12050. printf "%s\n" "no" >&6; }
  12051. fi
  12052. test -n "$CXX" && break
  12053. done
  12054. fi
  12055. if test -z "$CXX"; then
  12056. ac_ct_CXX=$CXX
  12057. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12058. do
  12059. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12060. set dummy $ac_prog; ac_word=$2
  12061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12062. printf %s "checking for $ac_word... " >&6; }
  12063. if test ${ac_cv_prog_ac_ct_CXX+y}
  12064. then :
  12065. printf %s "(cached) " >&6
  12066. else $as_nop
  12067. if test -n "$ac_ct_CXX"; then
  12068. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12069. else
  12070. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12071. for as_dir in $PATH
  12072. do
  12073. IFS=$as_save_IFS
  12074. case $as_dir in #(((
  12075. '') as_dir=./ ;;
  12076. */) ;;
  12077. *) as_dir=$as_dir/ ;;
  12078. esac
  12079. for ac_exec_ext in '' $ac_executable_extensions; do
  12080. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12081. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12082. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12083. break 2
  12084. fi
  12085. done
  12086. done
  12087. IFS=$as_save_IFS
  12088. fi
  12089. fi
  12090. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12091. if test -n "$ac_ct_CXX"; then
  12092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12093. printf "%s\n" "$ac_ct_CXX" >&6; }
  12094. else
  12095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12096. printf "%s\n" "no" >&6; }
  12097. fi
  12098. test -n "$ac_ct_CXX" && break
  12099. done
  12100. if test "x$ac_ct_CXX" = x; then
  12101. CXX="g++"
  12102. else
  12103. case $cross_compiling:$ac_tool_warned in
  12104. yes:)
  12105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12106. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12107. ac_tool_warned=yes ;;
  12108. esac
  12109. CXX=$ac_ct_CXX
  12110. fi
  12111. fi
  12112. fi
  12113. fi
  12114. # Provide some information about the compiler.
  12115. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12116. set X $ac_compile
  12117. ac_compiler=$2
  12118. for ac_option in --version -v -V -qversion; do
  12119. { { ac_try="$ac_compiler $ac_option >&5"
  12120. case "(($ac_try" in
  12121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12122. *) ac_try_echo=$ac_try;;
  12123. esac
  12124. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12125. printf "%s\n" "$ac_try_echo"; } >&5
  12126. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12127. ac_status=$?
  12128. if test -s conftest.err; then
  12129. sed '10a\
  12130. ... rest of stderr output deleted ...
  12131. 10q' conftest.err >conftest.er1
  12132. cat conftest.er1 >&5
  12133. fi
  12134. rm -f conftest.er1 conftest.err
  12135. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12136. test $ac_status = 0; }
  12137. done
  12138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12139. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12140. if test ${ac_cv_cxx_compiler_gnu+y}
  12141. then :
  12142. printf %s "(cached) " >&6
  12143. else $as_nop
  12144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12145. /* end confdefs.h. */
  12146. int
  12147. main (void)
  12148. {
  12149. #ifndef __GNUC__
  12150. choke me
  12151. #endif
  12152. ;
  12153. return 0;
  12154. }
  12155. _ACEOF
  12156. if ac_fn_cxx_try_compile "$LINENO"
  12157. then :
  12158. ac_compiler_gnu=yes
  12159. else $as_nop
  12160. ac_compiler_gnu=no
  12161. fi
  12162. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12163. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12164. fi
  12165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12166. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12167. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12168. if test $ac_compiler_gnu = yes; then
  12169. GXX=yes
  12170. else
  12171. GXX=
  12172. fi
  12173. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12174. ac_save_CXXFLAGS=$CXXFLAGS
  12175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12176. printf %s "checking whether $CXX accepts -g... " >&6; }
  12177. if test ${ac_cv_prog_cxx_g+y}
  12178. then :
  12179. printf %s "(cached) " >&6
  12180. else $as_nop
  12181. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12182. ac_cxx_werror_flag=yes
  12183. ac_cv_prog_cxx_g=no
  12184. CXXFLAGS="-g"
  12185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12186. /* end confdefs.h. */
  12187. int
  12188. main (void)
  12189. {
  12190. ;
  12191. return 0;
  12192. }
  12193. _ACEOF
  12194. if ac_fn_cxx_try_compile "$LINENO"
  12195. then :
  12196. ac_cv_prog_cxx_g=yes
  12197. else $as_nop
  12198. CXXFLAGS=""
  12199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12200. /* end confdefs.h. */
  12201. int
  12202. main (void)
  12203. {
  12204. ;
  12205. return 0;
  12206. }
  12207. _ACEOF
  12208. if ac_fn_cxx_try_compile "$LINENO"
  12209. then :
  12210. else $as_nop
  12211. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12212. CXXFLAGS="-g"
  12213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12214. /* end confdefs.h. */
  12215. int
  12216. main (void)
  12217. {
  12218. ;
  12219. return 0;
  12220. }
  12221. _ACEOF
  12222. if ac_fn_cxx_try_compile "$LINENO"
  12223. then :
  12224. ac_cv_prog_cxx_g=yes
  12225. fi
  12226. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12227. fi
  12228. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12229. fi
  12230. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12231. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12232. fi
  12233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12234. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12235. if test $ac_test_CXXFLAGS; then
  12236. CXXFLAGS=$ac_save_CXXFLAGS
  12237. elif test $ac_cv_prog_cxx_g = yes; then
  12238. if test "$GXX" = yes; then
  12239. CXXFLAGS="-g -O2"
  12240. else
  12241. CXXFLAGS="-g"
  12242. fi
  12243. else
  12244. if test "$GXX" = yes; then
  12245. CXXFLAGS="-O2"
  12246. else
  12247. CXXFLAGS=
  12248. fi
  12249. fi
  12250. ac_prog_cxx_stdcxx=no
  12251. if test x$ac_prog_cxx_stdcxx = xno
  12252. then :
  12253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12254. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12255. if test ${ac_cv_prog_cxx_11+y}
  12256. then :
  12257. printf %s "(cached) " >&6
  12258. else $as_nop
  12259. ac_cv_prog_cxx_11=no
  12260. ac_save_CXX=$CXX
  12261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12262. /* end confdefs.h. */
  12263. $ac_cxx_conftest_cxx11_program
  12264. _ACEOF
  12265. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12266. do
  12267. CXX="$ac_save_CXX $ac_arg"
  12268. if ac_fn_cxx_try_compile "$LINENO"
  12269. then :
  12270. ac_cv_prog_cxx_cxx11=$ac_arg
  12271. fi
  12272. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12273. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12274. done
  12275. rm -f conftest.$ac_ext
  12276. CXX=$ac_save_CXX
  12277. fi
  12278. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12279. then :
  12280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12281. printf "%s\n" "unsupported" >&6; }
  12282. else $as_nop
  12283. if test "x$ac_cv_prog_cxx_cxx11" = x
  12284. then :
  12285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12286. printf "%s\n" "none needed" >&6; }
  12287. else $as_nop
  12288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12289. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12290. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12291. fi
  12292. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12293. ac_prog_cxx_stdcxx=cxx11
  12294. fi
  12295. fi
  12296. if test x$ac_prog_cxx_stdcxx = xno
  12297. then :
  12298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12299. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12300. if test ${ac_cv_prog_cxx_98+y}
  12301. then :
  12302. printf %s "(cached) " >&6
  12303. else $as_nop
  12304. ac_cv_prog_cxx_98=no
  12305. ac_save_CXX=$CXX
  12306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12307. /* end confdefs.h. */
  12308. $ac_cxx_conftest_cxx98_program
  12309. _ACEOF
  12310. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12311. do
  12312. CXX="$ac_save_CXX $ac_arg"
  12313. if ac_fn_cxx_try_compile "$LINENO"
  12314. then :
  12315. ac_cv_prog_cxx_cxx98=$ac_arg
  12316. fi
  12317. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12318. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12319. done
  12320. rm -f conftest.$ac_ext
  12321. CXX=$ac_save_CXX
  12322. fi
  12323. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12324. then :
  12325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12326. printf "%s\n" "unsupported" >&6; }
  12327. else $as_nop
  12328. if test "x$ac_cv_prog_cxx_cxx98" = x
  12329. then :
  12330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12331. printf "%s\n" "none needed" >&6; }
  12332. else $as_nop
  12333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12334. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12335. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12336. fi
  12337. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12338. ac_prog_cxx_stdcxx=cxx98
  12339. fi
  12340. fi
  12341. ac_ext=c
  12342. ac_cpp='$CPP $CPPFLAGS'
  12343. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12344. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12345. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12346. func_stripname_cnf ()
  12347. {
  12348. case $2 in
  12349. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12350. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12351. esac
  12352. } # func_stripname_cnf
  12353. if test -n "$CXX" && ( test no != "$CXX" &&
  12354. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12355. (test g++ != "$CXX"))); then
  12356. ac_ext=cpp
  12357. ac_cpp='$CXXCPP $CPPFLAGS'
  12358. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12359. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12360. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12362. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12363. if test -z "$CXXCPP"; then
  12364. if test ${ac_cv_prog_CXXCPP+y}
  12365. then :
  12366. printf %s "(cached) " >&6
  12367. else $as_nop
  12368. # Double quotes because $CXX needs to be expanded
  12369. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12370. do
  12371. ac_preproc_ok=false
  12372. for ac_cxx_preproc_warn_flag in '' yes
  12373. do
  12374. # Use a header file that comes with gcc, so configuring glibc
  12375. # with a fresh cross-compiler works.
  12376. # On the NeXT, cc -E runs the code through the compiler's parser,
  12377. # not just through cpp. "Syntax error" is here to catch this case.
  12378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12379. /* end confdefs.h. */
  12380. #include <limits.h>
  12381. Syntax error
  12382. _ACEOF
  12383. if ac_fn_cxx_try_cpp "$LINENO"
  12384. then :
  12385. else $as_nop
  12386. # Broken: fails on valid input.
  12387. continue
  12388. fi
  12389. rm -f conftest.err conftest.i conftest.$ac_ext
  12390. # OK, works on sane cases. Now check whether nonexistent headers
  12391. # can be detected and how.
  12392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12393. /* end confdefs.h. */
  12394. #include <ac_nonexistent.h>
  12395. _ACEOF
  12396. if ac_fn_cxx_try_cpp "$LINENO"
  12397. then :
  12398. # Broken: success on invalid input.
  12399. continue
  12400. else $as_nop
  12401. # Passes both tests.
  12402. ac_preproc_ok=:
  12403. break
  12404. fi
  12405. rm -f conftest.err conftest.i conftest.$ac_ext
  12406. done
  12407. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12408. rm -f conftest.i conftest.err conftest.$ac_ext
  12409. if $ac_preproc_ok
  12410. then :
  12411. break
  12412. fi
  12413. done
  12414. ac_cv_prog_CXXCPP=$CXXCPP
  12415. fi
  12416. CXXCPP=$ac_cv_prog_CXXCPP
  12417. else
  12418. ac_cv_prog_CXXCPP=$CXXCPP
  12419. fi
  12420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12421. printf "%s\n" "$CXXCPP" >&6; }
  12422. ac_preproc_ok=false
  12423. for ac_cxx_preproc_warn_flag in '' yes
  12424. do
  12425. # Use a header file that comes with gcc, so configuring glibc
  12426. # with a fresh cross-compiler works.
  12427. # On the NeXT, cc -E runs the code through the compiler's parser,
  12428. # not just through cpp. "Syntax error" is here to catch this case.
  12429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12430. /* end confdefs.h. */
  12431. #include <limits.h>
  12432. Syntax error
  12433. _ACEOF
  12434. if ac_fn_cxx_try_cpp "$LINENO"
  12435. then :
  12436. else $as_nop
  12437. # Broken: fails on valid input.
  12438. continue
  12439. fi
  12440. rm -f conftest.err conftest.i conftest.$ac_ext
  12441. # OK, works on sane cases. Now check whether nonexistent headers
  12442. # can be detected and how.
  12443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12444. /* end confdefs.h. */
  12445. #include <ac_nonexistent.h>
  12446. _ACEOF
  12447. if ac_fn_cxx_try_cpp "$LINENO"
  12448. then :
  12449. # Broken: success on invalid input.
  12450. continue
  12451. else $as_nop
  12452. # Passes both tests.
  12453. ac_preproc_ok=:
  12454. break
  12455. fi
  12456. rm -f conftest.err conftest.i conftest.$ac_ext
  12457. done
  12458. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12459. rm -f conftest.i conftest.err conftest.$ac_ext
  12460. if $ac_preproc_ok
  12461. then :
  12462. else $as_nop
  12463. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12464. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12465. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12466. See \`config.log' for more details" "$LINENO" 5; }
  12467. fi
  12468. ac_ext=c
  12469. ac_cpp='$CPP $CPPFLAGS'
  12470. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12471. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12472. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12473. else
  12474. _lt_caught_CXX_error=yes
  12475. fi
  12476. ac_ext=cpp
  12477. ac_cpp='$CXXCPP $CPPFLAGS'
  12478. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12479. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12480. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12481. archive_cmds_need_lc_CXX=no
  12482. allow_undefined_flag_CXX=
  12483. always_export_symbols_CXX=no
  12484. archive_expsym_cmds_CXX=
  12485. compiler_needs_object_CXX=no
  12486. export_dynamic_flag_spec_CXX=
  12487. hardcode_direct_CXX=no
  12488. hardcode_direct_absolute_CXX=no
  12489. hardcode_libdir_flag_spec_CXX=
  12490. hardcode_libdir_separator_CXX=
  12491. hardcode_minus_L_CXX=no
  12492. hardcode_shlibpath_var_CXX=unsupported
  12493. hardcode_automatic_CXX=no
  12494. inherit_rpath_CXX=no
  12495. module_cmds_CXX=
  12496. module_expsym_cmds_CXX=
  12497. link_all_deplibs_CXX=unknown
  12498. old_archive_cmds_CXX=$old_archive_cmds
  12499. reload_flag_CXX=$reload_flag
  12500. reload_cmds_CXX=$reload_cmds
  12501. no_undefined_flag_CXX=
  12502. whole_archive_flag_spec_CXX=
  12503. enable_shared_with_static_runtimes_CXX=no
  12504. # Source file extension for C++ test sources.
  12505. ac_ext=cpp
  12506. # Object file extension for compiled C++ test sources.
  12507. objext=o
  12508. objext_CXX=$objext
  12509. # No sense in running all these tests if we already determined that
  12510. # the CXX compiler isn't working. Some variables (like enable_shared)
  12511. # are currently assumed to apply to all compilers on this platform,
  12512. # and will be corrupted by setting them based on a non-working compiler.
  12513. if test yes != "$_lt_caught_CXX_error"; then
  12514. # Code to be used in simple compile tests
  12515. lt_simple_compile_test_code="int some_variable = 0;"
  12516. # Code to be used in simple link tests
  12517. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12518. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12519. # If no C compiler was specified, use CC.
  12520. LTCC=${LTCC-"$CC"}
  12521. # If no C compiler flags were specified, use CFLAGS.
  12522. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12523. # Allow CC to be a program name with arguments.
  12524. compiler=$CC
  12525. # save warnings/boilerplate of simple test code
  12526. ac_outfile=conftest.$ac_objext
  12527. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12528. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12529. _lt_compiler_boilerplate=`cat conftest.err`
  12530. $RM conftest*
  12531. ac_outfile=conftest.$ac_objext
  12532. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12533. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12534. _lt_linker_boilerplate=`cat conftest.err`
  12535. $RM -r conftest*
  12536. # Allow CC to be a program name with arguments.
  12537. lt_save_CC=$CC
  12538. lt_save_CFLAGS=$CFLAGS
  12539. lt_save_LD=$LD
  12540. lt_save_GCC=$GCC
  12541. GCC=$GXX
  12542. lt_save_with_gnu_ld=$with_gnu_ld
  12543. lt_save_path_LD=$lt_cv_path_LD
  12544. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12545. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12546. else
  12547. $as_unset lt_cv_prog_gnu_ld
  12548. fi
  12549. if test -n "${lt_cv_path_LDCXX+set}"; then
  12550. lt_cv_path_LD=$lt_cv_path_LDCXX
  12551. else
  12552. $as_unset lt_cv_path_LD
  12553. fi
  12554. test -z "${LDCXX+set}" || LD=$LDCXX
  12555. CC=${CXX-"c++"}
  12556. CFLAGS=$CXXFLAGS
  12557. compiler=$CC
  12558. compiler_CXX=$CC
  12559. func_cc_basename $compiler
  12560. cc_basename=$func_cc_basename_result
  12561. if test -n "$compiler"; then
  12562. # We don't want -fno-exception when compiling C++ code, so set the
  12563. # no_builtin_flag separately
  12564. if test yes = "$GXX"; then
  12565. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12566. else
  12567. lt_prog_compiler_no_builtin_flag_CXX=
  12568. fi
  12569. if test yes = "$GXX"; then
  12570. # Set up default GNU C++ configuration
  12571. # Check whether --with-gnu-ld was given.
  12572. if test ${with_gnu_ld+y}
  12573. then :
  12574. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12575. else $as_nop
  12576. with_gnu_ld=no
  12577. fi
  12578. ac_prog=ld
  12579. if test yes = "$GCC"; then
  12580. # Check if gcc -print-prog-name=ld gives a path.
  12581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12582. printf %s "checking for ld used by $CC... " >&6; }
  12583. case $host in
  12584. *-*-mingw*)
  12585. # gcc leaves a trailing carriage return, which upsets mingw
  12586. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12587. *)
  12588. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12589. esac
  12590. case $ac_prog in
  12591. # Accept absolute paths.
  12592. [\\/]* | ?:[\\/]*)
  12593. re_direlt='/[^/][^/]*/\.\./'
  12594. # Canonicalize the pathname of ld
  12595. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12596. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12597. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12598. done
  12599. test -z "$LD" && LD=$ac_prog
  12600. ;;
  12601. "")
  12602. # If it fails, then pretend we aren't using GCC.
  12603. ac_prog=ld
  12604. ;;
  12605. *)
  12606. # If it is relative, then search for the first ld in PATH.
  12607. with_gnu_ld=unknown
  12608. ;;
  12609. esac
  12610. elif test yes = "$with_gnu_ld"; then
  12611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12612. printf %s "checking for GNU ld... " >&6; }
  12613. else
  12614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12615. printf %s "checking for non-GNU ld... " >&6; }
  12616. fi
  12617. if test ${lt_cv_path_LD+y}
  12618. then :
  12619. printf %s "(cached) " >&6
  12620. else $as_nop
  12621. if test -z "$LD"; then
  12622. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12623. for ac_dir in $PATH; do
  12624. IFS=$lt_save_ifs
  12625. test -z "$ac_dir" && ac_dir=.
  12626. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12627. lt_cv_path_LD=$ac_dir/$ac_prog
  12628. # Check to see if the program is GNU ld. I'd rather use --version,
  12629. # but apparently some variants of GNU ld only accept -v.
  12630. # Break only if it was the GNU/non-GNU ld that we prefer.
  12631. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12632. *GNU* | *'with BFD'*)
  12633. test no != "$with_gnu_ld" && break
  12634. ;;
  12635. *)
  12636. test yes != "$with_gnu_ld" && break
  12637. ;;
  12638. esac
  12639. fi
  12640. done
  12641. IFS=$lt_save_ifs
  12642. else
  12643. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12644. fi
  12645. fi
  12646. LD=$lt_cv_path_LD
  12647. if test -n "$LD"; then
  12648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12649. printf "%s\n" "$LD" >&6; }
  12650. else
  12651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12652. printf "%s\n" "no" >&6; }
  12653. fi
  12654. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12656. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12657. if test ${lt_cv_prog_gnu_ld+y}
  12658. then :
  12659. printf %s "(cached) " >&6
  12660. else $as_nop
  12661. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12662. case `$LD -v 2>&1 </dev/null` in
  12663. *GNU* | *'with BFD'*)
  12664. lt_cv_prog_gnu_ld=yes
  12665. ;;
  12666. *)
  12667. lt_cv_prog_gnu_ld=no
  12668. ;;
  12669. esac
  12670. fi
  12671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12672. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12673. with_gnu_ld=$lt_cv_prog_gnu_ld
  12674. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12675. # archiving commands below assume that GNU ld is being used.
  12676. if test yes = "$with_gnu_ld"; then
  12677. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12678. 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'
  12679. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12680. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12681. # If archive_cmds runs LD, not CC, wlarc should be empty
  12682. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12683. # investigate it a little bit more. (MM)
  12684. wlarc='$wl'
  12685. # ancient GNU ld didn't support --whole-archive et. al.
  12686. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12687. $GREP 'no-whole-archive' > /dev/null; then
  12688. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12689. else
  12690. whole_archive_flag_spec_CXX=
  12691. fi
  12692. else
  12693. with_gnu_ld=no
  12694. wlarc=
  12695. # A generic and very simple default shared library creation
  12696. # command for GNU C++ for the case where it uses the native
  12697. # linker, instead of GNU ld. If possible, this setting should
  12698. # overridden to take advantage of the native linker features on
  12699. # the platform it is being used on.
  12700. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12701. fi
  12702. # Commands to make compiler produce verbose output that lists
  12703. # what "hidden" libraries, object files and flags are used when
  12704. # linking a shared library.
  12705. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12706. else
  12707. GXX=no
  12708. with_gnu_ld=no
  12709. wlarc=
  12710. fi
  12711. # PORTME: fill in a description of your system's C++ link characteristics
  12712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12713. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12714. ld_shlibs_CXX=yes
  12715. case $host_os in
  12716. aix3*)
  12717. # FIXME: insert proper C++ library support
  12718. ld_shlibs_CXX=no
  12719. ;;
  12720. aix[4-9]*)
  12721. if test ia64 = "$host_cpu"; then
  12722. # On IA64, the linker does run time linking by default, so we don't
  12723. # have to do anything special.
  12724. aix_use_runtimelinking=no
  12725. exp_sym_flag='-Bexport'
  12726. no_entry_flag=
  12727. else
  12728. aix_use_runtimelinking=no
  12729. # Test if we are trying to use run time linking or normal
  12730. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12731. # have runtime linking enabled, and use it for executables.
  12732. # For shared libraries, we enable/disable runtime linking
  12733. # depending on the kind of the shared library created -
  12734. # when "with_aix_soname,aix_use_runtimelinking" is:
  12735. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12736. # "aix,yes" lib.so shared, rtl:yes, for executables
  12737. # lib.a static archive
  12738. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12739. # lib.a(lib.so.V) shared, rtl:no, for executables
  12740. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12741. # lib.a(lib.so.V) shared, rtl:no
  12742. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12743. # lib.a static archive
  12744. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12745. for ld_flag in $LDFLAGS; do
  12746. case $ld_flag in
  12747. *-brtl*)
  12748. aix_use_runtimelinking=yes
  12749. break
  12750. ;;
  12751. esac
  12752. done
  12753. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12754. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12755. # so we don't have lib.a shared libs to link our executables.
  12756. # We have to force runtime linking in this case.
  12757. aix_use_runtimelinking=yes
  12758. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12759. fi
  12760. ;;
  12761. esac
  12762. exp_sym_flag='-bexport'
  12763. no_entry_flag='-bnoentry'
  12764. fi
  12765. # When large executables or shared objects are built, AIX ld can
  12766. # have problems creating the table of contents. If linking a library
  12767. # or program results in "error TOC overflow" add -mminimal-toc to
  12768. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12769. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12770. archive_cmds_CXX=''
  12771. hardcode_direct_CXX=yes
  12772. hardcode_direct_absolute_CXX=yes
  12773. hardcode_libdir_separator_CXX=':'
  12774. link_all_deplibs_CXX=yes
  12775. file_list_spec_CXX='$wl-f,'
  12776. case $with_aix_soname,$aix_use_runtimelinking in
  12777. aix,*) ;; # no import file
  12778. svr4,* | *,yes) # use import file
  12779. # The Import File defines what to hardcode.
  12780. hardcode_direct_CXX=no
  12781. hardcode_direct_absolute_CXX=no
  12782. ;;
  12783. esac
  12784. if test yes = "$GXX"; then
  12785. case $host_os in aix4.[012]|aix4.[012].*)
  12786. # We only want to do this on AIX 4.2 and lower, the check
  12787. # below for broken collect2 doesn't work under 4.3+
  12788. collect2name=`$CC -print-prog-name=collect2`
  12789. if test -f "$collect2name" &&
  12790. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12791. then
  12792. # We have reworked collect2
  12793. :
  12794. else
  12795. # We have old collect2
  12796. hardcode_direct_CXX=unsupported
  12797. # It fails to find uninstalled libraries when the uninstalled
  12798. # path is not listed in the libpath. Setting hardcode_minus_L
  12799. # to unsupported forces relinking
  12800. hardcode_minus_L_CXX=yes
  12801. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12802. hardcode_libdir_separator_CXX=
  12803. fi
  12804. esac
  12805. shared_flag='-shared'
  12806. if test yes = "$aix_use_runtimelinking"; then
  12807. shared_flag=$shared_flag' $wl-G'
  12808. fi
  12809. # Need to ensure runtime linking is disabled for the traditional
  12810. # shared library, or the linker may eventually find shared libraries
  12811. # /with/ Import File - we do not want to mix them.
  12812. shared_flag_aix='-shared'
  12813. shared_flag_svr4='-shared $wl-G'
  12814. else
  12815. # not using gcc
  12816. if test ia64 = "$host_cpu"; then
  12817. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12818. # chokes on -Wl,-G. The following line is correct:
  12819. shared_flag='-G'
  12820. else
  12821. if test yes = "$aix_use_runtimelinking"; then
  12822. shared_flag='$wl-G'
  12823. else
  12824. shared_flag='$wl-bM:SRE'
  12825. fi
  12826. shared_flag_aix='$wl-bM:SRE'
  12827. shared_flag_svr4='$wl-G'
  12828. fi
  12829. fi
  12830. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12831. # It seems that -bexpall does not export symbols beginning with
  12832. # underscore (_), so it is better to generate a list of symbols to
  12833. # export.
  12834. always_export_symbols_CXX=yes
  12835. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12836. # Warning - without using the other runtime loading flags (-brtl),
  12837. # -berok will link without error, but may produce a broken library.
  12838. # The "-G" linker flag allows undefined symbols.
  12839. no_undefined_flag_CXX='-bernotok'
  12840. # Determine the default libpath from the value encoded in an empty
  12841. # executable.
  12842. if test set = "${lt_cv_aix_libpath+set}"; then
  12843. aix_libpath=$lt_cv_aix_libpath
  12844. else
  12845. if test ${lt_cv_aix_libpath__CXX+y}
  12846. then :
  12847. printf %s "(cached) " >&6
  12848. else $as_nop
  12849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12850. /* end confdefs.h. */
  12851. int
  12852. main (void)
  12853. {
  12854. ;
  12855. return 0;
  12856. }
  12857. _ACEOF
  12858. if ac_fn_cxx_try_link "$LINENO"
  12859. then :
  12860. lt_aix_libpath_sed='
  12861. /Import File Strings/,/^$/ {
  12862. /^0/ {
  12863. s/^0 *\([^ ]*\) *$/\1/
  12864. p
  12865. }
  12866. }'
  12867. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12868. # Check for a 64-bit object if we didn't find anything.
  12869. if test -z "$lt_cv_aix_libpath__CXX"; then
  12870. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12871. fi
  12872. fi
  12873. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12874. conftest$ac_exeext conftest.$ac_ext
  12875. if test -z "$lt_cv_aix_libpath__CXX"; then
  12876. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12877. fi
  12878. fi
  12879. aix_libpath=$lt_cv_aix_libpath__CXX
  12880. fi
  12881. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12882. 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
  12883. else
  12884. if test ia64 = "$host_cpu"; then
  12885. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12886. allow_undefined_flag_CXX="-z nodefs"
  12887. 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"
  12888. else
  12889. # Determine the default libpath from the value encoded in an
  12890. # empty executable.
  12891. if test set = "${lt_cv_aix_libpath+set}"; then
  12892. aix_libpath=$lt_cv_aix_libpath
  12893. else
  12894. if test ${lt_cv_aix_libpath__CXX+y}
  12895. then :
  12896. printf %s "(cached) " >&6
  12897. else $as_nop
  12898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12899. /* end confdefs.h. */
  12900. int
  12901. main (void)
  12902. {
  12903. ;
  12904. return 0;
  12905. }
  12906. _ACEOF
  12907. if ac_fn_cxx_try_link "$LINENO"
  12908. then :
  12909. lt_aix_libpath_sed='
  12910. /Import File Strings/,/^$/ {
  12911. /^0/ {
  12912. s/^0 *\([^ ]*\) *$/\1/
  12913. p
  12914. }
  12915. }'
  12916. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12917. # Check for a 64-bit object if we didn't find anything.
  12918. if test -z "$lt_cv_aix_libpath__CXX"; then
  12919. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12920. fi
  12921. fi
  12922. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12923. conftest$ac_exeext conftest.$ac_ext
  12924. if test -z "$lt_cv_aix_libpath__CXX"; then
  12925. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12926. fi
  12927. fi
  12928. aix_libpath=$lt_cv_aix_libpath__CXX
  12929. fi
  12930. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12931. # Warning - without using the other run time loading flags,
  12932. # -berok will link without error, but may produce a broken library.
  12933. no_undefined_flag_CXX=' $wl-bernotok'
  12934. allow_undefined_flag_CXX=' $wl-berok'
  12935. if test yes = "$with_gnu_ld"; then
  12936. # We only use this code for GNU lds that support --whole-archive.
  12937. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12938. else
  12939. # Exported symbols can be pulled into shared objects from archives
  12940. whole_archive_flag_spec_CXX='$convenience'
  12941. fi
  12942. archive_cmds_need_lc_CXX=yes
  12943. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12944. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12945. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12946. if test svr4 != "$with_aix_soname"; then
  12947. # This is similar to how AIX traditionally builds its shared
  12948. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12949. 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'
  12950. fi
  12951. if test aix != "$with_aix_soname"; then
  12952. 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'
  12953. else
  12954. # used by -dlpreopen to get the symbols
  12955. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12956. fi
  12957. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12958. fi
  12959. fi
  12960. ;;
  12961. beos*)
  12962. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12963. allow_undefined_flag_CXX=unsupported
  12964. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12965. # support --undefined. This deserves some investigation. FIXME
  12966. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12967. else
  12968. ld_shlibs_CXX=no
  12969. fi
  12970. ;;
  12971. chorus*)
  12972. case $cc_basename in
  12973. *)
  12974. # FIXME: insert proper C++ library support
  12975. ld_shlibs_CXX=no
  12976. ;;
  12977. esac
  12978. ;;
  12979. cygwin* | mingw* | pw32* | cegcc*)
  12980. case $GXX,$cc_basename in
  12981. ,cl* | no,cl*)
  12982. # Native MSVC
  12983. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12984. # no search path for DLLs.
  12985. hardcode_libdir_flag_spec_CXX=' '
  12986. allow_undefined_flag_CXX=unsupported
  12987. always_export_symbols_CXX=yes
  12988. file_list_spec_CXX='@'
  12989. # Tell ltmain to make .lib files, not .a files.
  12990. libext=lib
  12991. # Tell ltmain to make .dll files, not .so files.
  12992. shrext_cmds=.dll
  12993. # FIXME: Setting linknames here is a bad hack.
  12994. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12995. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12996. cp "$export_symbols" "$output_objdir/$soname.def";
  12997. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12998. else
  12999. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13000. fi~
  13001. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13002. linknames='
  13003. # The linker will not automatically build a static lib if we build a DLL.
  13004. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13005. enable_shared_with_static_runtimes_CXX=yes
  13006. # Don't use ranlib
  13007. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13008. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13009. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13010. case $lt_outputfile in
  13011. *.exe|*.EXE) ;;
  13012. *)
  13013. lt_outputfile=$lt_outputfile.exe
  13014. lt_tool_outputfile=$lt_tool_outputfile.exe
  13015. ;;
  13016. esac~
  13017. func_to_tool_file "$lt_outputfile"~
  13018. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13019. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13020. $RM "$lt_outputfile.manifest";
  13021. fi'
  13022. ;;
  13023. *)
  13024. # g++
  13025. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13026. # as there is no search path for DLLs.
  13027. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13028. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13029. allow_undefined_flag_CXX=unsupported
  13030. always_export_symbols_CXX=no
  13031. enable_shared_with_static_runtimes_CXX=yes
  13032. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13033. 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'
  13034. # If the export-symbols file already is a .def file, use it as
  13035. # is; otherwise, prepend EXPORTS...
  13036. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13037. cp $export_symbols $output_objdir/$soname.def;
  13038. else
  13039. echo EXPORTS > $output_objdir/$soname.def;
  13040. cat $export_symbols >> $output_objdir/$soname.def;
  13041. fi~
  13042. $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'
  13043. else
  13044. ld_shlibs_CXX=no
  13045. fi
  13046. ;;
  13047. esac
  13048. ;;
  13049. darwin* | rhapsody*)
  13050. archive_cmds_need_lc_CXX=no
  13051. hardcode_direct_CXX=no
  13052. hardcode_automatic_CXX=yes
  13053. hardcode_shlibpath_var_CXX=unsupported
  13054. if test yes = "$lt_cv_ld_force_load"; then
  13055. 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\"`'
  13056. else
  13057. whole_archive_flag_spec_CXX=''
  13058. fi
  13059. link_all_deplibs_CXX=yes
  13060. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13061. case $cc_basename in
  13062. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13063. *) _lt_dar_can_shared=$GCC ;;
  13064. esac
  13065. if test yes = "$_lt_dar_can_shared"; then
  13066. output_verbose_link_cmd=func_echo_all
  13067. 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"
  13068. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13069. 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"
  13070. 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"
  13071. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13072. 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"
  13073. 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"
  13074. fi
  13075. else
  13076. ld_shlibs_CXX=no
  13077. fi
  13078. ;;
  13079. os2*)
  13080. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13081. hardcode_minus_L_CXX=yes
  13082. allow_undefined_flag_CXX=unsupported
  13083. shrext_cmds=.dll
  13084. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13085. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13086. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13087. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13088. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13089. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13090. emximp -o $lib $output_objdir/$libname.def'
  13091. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13092. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13093. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13094. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13095. prefix_cmds="$SED"~
  13096. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13097. prefix_cmds="$prefix_cmds -e 1d";
  13098. fi~
  13099. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13100. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13101. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13102. emximp -o $lib $output_objdir/$libname.def'
  13103. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13104. enable_shared_with_static_runtimes_CXX=yes
  13105. file_list_spec_CXX='@'
  13106. ;;
  13107. dgux*)
  13108. case $cc_basename in
  13109. ec++*)
  13110. # FIXME: insert proper C++ library support
  13111. ld_shlibs_CXX=no
  13112. ;;
  13113. ghcx*)
  13114. # Green Hills C++ Compiler
  13115. # FIXME: insert proper C++ library support
  13116. ld_shlibs_CXX=no
  13117. ;;
  13118. *)
  13119. # FIXME: insert proper C++ library support
  13120. ld_shlibs_CXX=no
  13121. ;;
  13122. esac
  13123. ;;
  13124. freebsd2.*)
  13125. # C++ shared libraries reported to be fairly broken before
  13126. # switch to ELF
  13127. ld_shlibs_CXX=no
  13128. ;;
  13129. freebsd-elf*)
  13130. archive_cmds_need_lc_CXX=no
  13131. ;;
  13132. freebsd* | dragonfly* | midnightbsd*)
  13133. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13134. # conventions
  13135. ld_shlibs_CXX=yes
  13136. ;;
  13137. haiku*)
  13138. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13139. link_all_deplibs_CXX=yes
  13140. ;;
  13141. hpux9*)
  13142. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13143. hardcode_libdir_separator_CXX=:
  13144. export_dynamic_flag_spec_CXX='$wl-E'
  13145. hardcode_direct_CXX=yes
  13146. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13147. # but as the default
  13148. # location of the library.
  13149. case $cc_basename in
  13150. CC*)
  13151. # FIXME: insert proper C++ library support
  13152. ld_shlibs_CXX=no
  13153. ;;
  13154. aCC*)
  13155. 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'
  13156. # Commands to make compiler produce verbose output that lists
  13157. # what "hidden" libraries, object files and flags are used when
  13158. # linking a shared library.
  13159. #
  13160. # There doesn't appear to be a way to prevent this compiler from
  13161. # explicitly linking system object files so we need to strip them
  13162. # from the output so that they don't get included in the library
  13163. # dependencies.
  13164. 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"'
  13165. ;;
  13166. *)
  13167. if test yes = "$GXX"; then
  13168. 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'
  13169. else
  13170. # FIXME: insert proper C++ library support
  13171. ld_shlibs_CXX=no
  13172. fi
  13173. ;;
  13174. esac
  13175. ;;
  13176. hpux10*|hpux11*)
  13177. if test no = "$with_gnu_ld"; then
  13178. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13179. hardcode_libdir_separator_CXX=:
  13180. case $host_cpu in
  13181. hppa*64*|ia64*)
  13182. ;;
  13183. *)
  13184. export_dynamic_flag_spec_CXX='$wl-E'
  13185. ;;
  13186. esac
  13187. fi
  13188. case $host_cpu in
  13189. hppa*64*|ia64*)
  13190. hardcode_direct_CXX=no
  13191. hardcode_shlibpath_var_CXX=no
  13192. ;;
  13193. *)
  13194. hardcode_direct_CXX=yes
  13195. hardcode_direct_absolute_CXX=yes
  13196. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13197. # but as the default
  13198. # location of the library.
  13199. ;;
  13200. esac
  13201. case $cc_basename in
  13202. CC*)
  13203. # FIXME: insert proper C++ library support
  13204. ld_shlibs_CXX=no
  13205. ;;
  13206. aCC*)
  13207. case $host_cpu in
  13208. hppa*64*)
  13209. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13210. ;;
  13211. ia64*)
  13212. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13213. ;;
  13214. *)
  13215. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13216. ;;
  13217. esac
  13218. # Commands to make compiler produce verbose output that lists
  13219. # what "hidden" libraries, object files and flags are used when
  13220. # linking a shared library.
  13221. #
  13222. # There doesn't appear to be a way to prevent this compiler from
  13223. # explicitly linking system object files so we need to strip them
  13224. # from the output so that they don't get included in the library
  13225. # dependencies.
  13226. 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"'
  13227. ;;
  13228. *)
  13229. if test yes = "$GXX"; then
  13230. if test no = "$with_gnu_ld"; then
  13231. case $host_cpu in
  13232. hppa*64*)
  13233. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13234. ;;
  13235. ia64*)
  13236. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13237. ;;
  13238. *)
  13239. 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'
  13240. ;;
  13241. esac
  13242. fi
  13243. else
  13244. # FIXME: insert proper C++ library support
  13245. ld_shlibs_CXX=no
  13246. fi
  13247. ;;
  13248. esac
  13249. ;;
  13250. interix[3-9]*)
  13251. hardcode_direct_CXX=no
  13252. hardcode_shlibpath_var_CXX=no
  13253. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13254. export_dynamic_flag_spec_CXX='$wl-E'
  13255. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13256. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13257. # default) and relocated if they conflict, which is a slow very memory
  13258. # consuming and fragmenting process. To avoid this, we pick a random,
  13259. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13260. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13261. 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'
  13262. 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'
  13263. ;;
  13264. irix5* | irix6*)
  13265. case $cc_basename in
  13266. CC*)
  13267. # SGI C++
  13268. 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'
  13269. # Archives containing C++ object files must be created using
  13270. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13271. # necessary to make sure instantiated templates are included
  13272. # in the archive.
  13273. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13274. ;;
  13275. *)
  13276. if test yes = "$GXX"; then
  13277. if test no = "$with_gnu_ld"; then
  13278. 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'
  13279. else
  13280. 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'
  13281. fi
  13282. fi
  13283. link_all_deplibs_CXX=yes
  13284. ;;
  13285. esac
  13286. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13287. hardcode_libdir_separator_CXX=:
  13288. inherit_rpath_CXX=yes
  13289. ;;
  13290. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13291. case $cc_basename in
  13292. KCC*)
  13293. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13294. # KCC will only create a shared library if the output file
  13295. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13296. # to its proper name (with version) after linking.
  13297. 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'
  13298. 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'
  13299. # Commands to make compiler produce verbose output that lists
  13300. # what "hidden" libraries, object files and flags are used when
  13301. # linking a shared library.
  13302. #
  13303. # There doesn't appear to be a way to prevent this compiler from
  13304. # explicitly linking system object files so we need to strip them
  13305. # from the output so that they don't get included in the library
  13306. # dependencies.
  13307. 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"'
  13308. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13309. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13310. # Archives containing C++ object files must be created using
  13311. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13312. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13313. ;;
  13314. icpc* | ecpc* )
  13315. # Intel C++
  13316. with_gnu_ld=yes
  13317. # version 8.0 and above of icpc choke on multiply defined symbols
  13318. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13319. # earlier do not add the objects themselves.
  13320. case `$CC -V 2>&1` in
  13321. *"Version 7."*)
  13322. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13323. 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'
  13324. ;;
  13325. *) # Version 8.0 or newer
  13326. tmp_idyn=
  13327. case $host_cpu in
  13328. ia64*) tmp_idyn=' -i_dynamic';;
  13329. esac
  13330. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13331. 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'
  13332. ;;
  13333. esac
  13334. archive_cmds_need_lc_CXX=no
  13335. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13336. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13337. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13338. ;;
  13339. pgCC* | pgcpp*)
  13340. # Portland Group C++ compiler
  13341. case `$CC -V` in
  13342. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13343. prelink_cmds_CXX='tpldir=Template.dir~
  13344. rm -rf $tpldir~
  13345. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13346. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13347. old_archive_cmds_CXX='tpldir=Template.dir~
  13348. rm -rf $tpldir~
  13349. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13350. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13351. $RANLIB $oldlib'
  13352. archive_cmds_CXX='tpldir=Template.dir~
  13353. rm -rf $tpldir~
  13354. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13355. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13356. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13357. rm -rf $tpldir~
  13358. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13359. $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'
  13360. ;;
  13361. *) # Version 6 and above use weak symbols
  13362. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13363. 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'
  13364. ;;
  13365. esac
  13366. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13367. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13368. 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'
  13369. ;;
  13370. cxx*)
  13371. # Compaq C++
  13372. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13373. 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'
  13374. runpath_var=LD_RUN_PATH
  13375. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13376. hardcode_libdir_separator_CXX=:
  13377. # Commands to make compiler produce verbose output that lists
  13378. # what "hidden" libraries, object files and flags are used when
  13379. # linking a shared library.
  13380. #
  13381. # There doesn't appear to be a way to prevent this compiler from
  13382. # explicitly linking system object files so we need to strip them
  13383. # from the output so that they don't get included in the library
  13384. # dependencies.
  13385. 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'
  13386. ;;
  13387. xl* | mpixl* | bgxl*)
  13388. # IBM XL 8.0 on PPC, with GNU ld
  13389. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13390. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13391. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13392. if test yes = "$supports_anon_versioning"; then
  13393. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13394. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13395. echo "local: *; };" >> $output_objdir/$libname.ver~
  13396. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13397. fi
  13398. ;;
  13399. *)
  13400. case `$CC -V 2>&1 | sed 5q` in
  13401. *Sun\ C*)
  13402. # Sun C++ 5.9
  13403. no_undefined_flag_CXX=' -zdefs'
  13404. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13405. 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'
  13406. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13407. 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'
  13408. compiler_needs_object_CXX=yes
  13409. # Not sure whether something based on
  13410. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13411. # would be better.
  13412. output_verbose_link_cmd='func_echo_all'
  13413. # Archives containing C++ object files must be created using
  13414. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13415. # necessary to make sure instantiated templates are included
  13416. # in the archive.
  13417. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13418. ;;
  13419. esac
  13420. ;;
  13421. esac
  13422. ;;
  13423. lynxos*)
  13424. # FIXME: insert proper C++ library support
  13425. ld_shlibs_CXX=no
  13426. ;;
  13427. m88k*)
  13428. # FIXME: insert proper C++ library support
  13429. ld_shlibs_CXX=no
  13430. ;;
  13431. mvs*)
  13432. case $cc_basename in
  13433. cxx*)
  13434. # FIXME: insert proper C++ library support
  13435. ld_shlibs_CXX=no
  13436. ;;
  13437. *)
  13438. # FIXME: insert proper C++ library support
  13439. ld_shlibs_CXX=no
  13440. ;;
  13441. esac
  13442. ;;
  13443. netbsd*)
  13444. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13445. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13446. wlarc=
  13447. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13448. hardcode_direct_CXX=yes
  13449. hardcode_shlibpath_var_CXX=no
  13450. fi
  13451. # Workaround some broken pre-1.5 toolchains
  13452. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13453. ;;
  13454. *nto* | *qnx*)
  13455. ld_shlibs_CXX=yes
  13456. ;;
  13457. openbsd* | bitrig*)
  13458. if test -f /usr/libexec/ld.so; then
  13459. hardcode_direct_CXX=yes
  13460. hardcode_shlibpath_var_CXX=no
  13461. hardcode_direct_absolute_CXX=yes
  13462. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13463. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13464. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13465. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13466. export_dynamic_flag_spec_CXX='$wl-E'
  13467. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13468. fi
  13469. output_verbose_link_cmd=func_echo_all
  13470. else
  13471. ld_shlibs_CXX=no
  13472. fi
  13473. ;;
  13474. osf3* | osf4* | osf5*)
  13475. case $cc_basename in
  13476. KCC*)
  13477. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13478. # KCC will only create a shared library if the output file
  13479. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13480. # to its proper name (with version) after linking.
  13481. 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'
  13482. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13483. hardcode_libdir_separator_CXX=:
  13484. # Archives containing C++ object files must be created using
  13485. # the KAI C++ compiler.
  13486. case $host in
  13487. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13488. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13489. esac
  13490. ;;
  13491. RCC*)
  13492. # Rational C++ 2.4.1
  13493. # FIXME: insert proper C++ library support
  13494. ld_shlibs_CXX=no
  13495. ;;
  13496. cxx*)
  13497. case $host in
  13498. osf3*)
  13499. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13500. 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'
  13501. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13502. ;;
  13503. *)
  13504. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13505. 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'
  13506. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13507. echo "-hidden">> $lib.exp~
  13508. $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~
  13509. $RM $lib.exp'
  13510. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13511. ;;
  13512. esac
  13513. hardcode_libdir_separator_CXX=:
  13514. # Commands to make compiler produce verbose output that lists
  13515. # what "hidden" libraries, object files and flags are used when
  13516. # linking a shared library.
  13517. #
  13518. # There doesn't appear to be a way to prevent this compiler from
  13519. # explicitly linking system object files so we need to strip them
  13520. # from the output so that they don't get included in the library
  13521. # dependencies.
  13522. 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"'
  13523. ;;
  13524. *)
  13525. if test yes,no = "$GXX,$with_gnu_ld"; then
  13526. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13527. case $host in
  13528. osf3*)
  13529. 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'
  13530. ;;
  13531. *)
  13532. 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'
  13533. ;;
  13534. esac
  13535. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13536. hardcode_libdir_separator_CXX=:
  13537. # Commands to make compiler produce verbose output that lists
  13538. # what "hidden" libraries, object files and flags are used when
  13539. # linking a shared library.
  13540. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13541. else
  13542. # FIXME: insert proper C++ library support
  13543. ld_shlibs_CXX=no
  13544. fi
  13545. ;;
  13546. esac
  13547. ;;
  13548. psos*)
  13549. # FIXME: insert proper C++ library support
  13550. ld_shlibs_CXX=no
  13551. ;;
  13552. sunos4*)
  13553. case $cc_basename in
  13554. CC*)
  13555. # Sun C++ 4.x
  13556. # FIXME: insert proper C++ library support
  13557. ld_shlibs_CXX=no
  13558. ;;
  13559. lcc*)
  13560. # Lucid
  13561. # FIXME: insert proper C++ library support
  13562. ld_shlibs_CXX=no
  13563. ;;
  13564. *)
  13565. # FIXME: insert proper C++ library support
  13566. ld_shlibs_CXX=no
  13567. ;;
  13568. esac
  13569. ;;
  13570. solaris*)
  13571. case $cc_basename in
  13572. CC* | sunCC*)
  13573. # Sun C++ 4.2, 5.x and Centerline C++
  13574. archive_cmds_need_lc_CXX=yes
  13575. no_undefined_flag_CXX=' -zdefs'
  13576. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13577. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13578. $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'
  13579. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13580. hardcode_shlibpath_var_CXX=no
  13581. case $host_os in
  13582. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13583. *)
  13584. # The compiler driver will combine and reorder linker options,
  13585. # but understands '-z linker_flag'.
  13586. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13587. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13588. ;;
  13589. esac
  13590. link_all_deplibs_CXX=yes
  13591. output_verbose_link_cmd='func_echo_all'
  13592. # Archives containing C++ object files must be created using
  13593. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13594. # necessary to make sure instantiated templates are included
  13595. # in the archive.
  13596. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13597. ;;
  13598. gcx*)
  13599. # Green Hills C++ Compiler
  13600. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13601. # The C++ compiler must be used to create the archive.
  13602. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13603. ;;
  13604. *)
  13605. # GNU C++ compiler with Solaris linker
  13606. if test yes,no = "$GXX,$with_gnu_ld"; then
  13607. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13608. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13609. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13610. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13611. $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'
  13612. # Commands to make compiler produce verbose output that lists
  13613. # what "hidden" libraries, object files and flags are used when
  13614. # linking a shared library.
  13615. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13616. else
  13617. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13618. # platform.
  13619. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13620. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13621. $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'
  13622. # Commands to make compiler produce verbose output that lists
  13623. # what "hidden" libraries, object files and flags are used when
  13624. # linking a shared library.
  13625. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13626. fi
  13627. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13628. case $host_os in
  13629. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13630. *)
  13631. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13632. ;;
  13633. esac
  13634. fi
  13635. ;;
  13636. esac
  13637. ;;
  13638. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13639. no_undefined_flag_CXX='$wl-z,text'
  13640. archive_cmds_need_lc_CXX=no
  13641. hardcode_shlibpath_var_CXX=no
  13642. runpath_var='LD_RUN_PATH'
  13643. case $cc_basename in
  13644. CC*)
  13645. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13646. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13647. ;;
  13648. *)
  13649. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13650. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13651. ;;
  13652. esac
  13653. ;;
  13654. sysv5* | sco3.2v5* | sco5v6*)
  13655. # Note: We CANNOT use -z defs as we might desire, because we do not
  13656. # link with -lc, and that would cause any symbols used from libc to
  13657. # always be unresolved, which means just about no library would
  13658. # ever link correctly. If we're not using GNU ld we use -z text
  13659. # though, which does catch some bad symbols but isn't as heavy-handed
  13660. # as -z defs.
  13661. no_undefined_flag_CXX='$wl-z,text'
  13662. allow_undefined_flag_CXX='$wl-z,nodefs'
  13663. archive_cmds_need_lc_CXX=no
  13664. hardcode_shlibpath_var_CXX=no
  13665. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13666. hardcode_libdir_separator_CXX=':'
  13667. link_all_deplibs_CXX=yes
  13668. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13669. runpath_var='LD_RUN_PATH'
  13670. case $cc_basename in
  13671. CC*)
  13672. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13673. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13674. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13675. '"$old_archive_cmds_CXX"
  13676. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13677. '"$reload_cmds_CXX"
  13678. ;;
  13679. *)
  13680. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13681. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13682. ;;
  13683. esac
  13684. ;;
  13685. tandem*)
  13686. case $cc_basename in
  13687. NCC*)
  13688. # NonStop-UX NCC 3.20
  13689. # FIXME: insert proper C++ library support
  13690. ld_shlibs_CXX=no
  13691. ;;
  13692. *)
  13693. # FIXME: insert proper C++ library support
  13694. ld_shlibs_CXX=no
  13695. ;;
  13696. esac
  13697. ;;
  13698. vxworks*)
  13699. # FIXME: insert proper C++ library support
  13700. ld_shlibs_CXX=no
  13701. ;;
  13702. *)
  13703. # FIXME: insert proper C++ library support
  13704. ld_shlibs_CXX=no
  13705. ;;
  13706. esac
  13707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13708. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13709. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13710. GCC_CXX=$GXX
  13711. LD_CXX=$LD
  13712. ## CAVEAT EMPTOR:
  13713. ## There is no encapsulation within the following macros, do not change
  13714. ## the running order or otherwise move them around unless you know exactly
  13715. ## what you are doing...
  13716. # Dependencies to place before and after the object being linked:
  13717. predep_objects_CXX=
  13718. postdep_objects_CXX=
  13719. predeps_CXX=
  13720. postdeps_CXX=
  13721. compiler_lib_search_path_CXX=
  13722. cat > conftest.$ac_ext <<_LT_EOF
  13723. class Foo
  13724. {
  13725. public:
  13726. Foo (void) { a = 0; }
  13727. private:
  13728. int a;
  13729. };
  13730. _LT_EOF
  13731. _lt_libdeps_save_CFLAGS=$CFLAGS
  13732. case "$CC $CFLAGS " in #(
  13733. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13734. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13735. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13736. esac
  13737. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13738. (eval $ac_compile) 2>&5
  13739. ac_status=$?
  13740. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13741. test $ac_status = 0; }; then
  13742. # Parse the compiler output and extract the necessary
  13743. # objects, libraries and library flags.
  13744. # Sentinel used to keep track of whether or not we are before
  13745. # the conftest object file.
  13746. pre_test_object_deps_done=no
  13747. for p in `eval "$output_verbose_link_cmd"`; do
  13748. case $prev$p in
  13749. -L* | -R* | -l*)
  13750. # Some compilers place space between "-{L,R}" and the path.
  13751. # Remove the space.
  13752. if test x-L = "x$p" ||
  13753. test x-R = "x$p" ||
  13754. test x-l = "x$p"; then
  13755. prev=$p
  13756. continue
  13757. fi
  13758. # Expand the sysroot to ease extracting the directories later.
  13759. if test -z "$prev"; then
  13760. case $p in
  13761. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13762. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13763. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13764. esac
  13765. fi
  13766. case $p in
  13767. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13768. esac
  13769. if test no = "$pre_test_object_deps_done"; then
  13770. case $prev in
  13771. -L | -R)
  13772. # Internal compiler library paths should come after those
  13773. # provided the user. The postdeps already come after the
  13774. # user supplied libs so there is no need to process them.
  13775. if test -z "$compiler_lib_search_path_CXX"; then
  13776. compiler_lib_search_path_CXX=$prev$p
  13777. else
  13778. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13779. fi
  13780. ;;
  13781. # The "-l" case would never come before the object being
  13782. # linked, so don't bother handling this case.
  13783. esac
  13784. else
  13785. if test -z "$postdeps_CXX"; then
  13786. postdeps_CXX=$prev$p
  13787. else
  13788. postdeps_CXX="${postdeps_CXX} $prev$p"
  13789. fi
  13790. fi
  13791. prev=
  13792. ;;
  13793. *.lto.$objext) ;; # Ignore GCC LTO objects
  13794. *.$objext)
  13795. # This assumes that the test object file only shows up
  13796. # once in the compiler output.
  13797. if test "$p" = "conftest.$objext"; then
  13798. pre_test_object_deps_done=yes
  13799. continue
  13800. fi
  13801. if test no = "$pre_test_object_deps_done"; then
  13802. if test -z "$predep_objects_CXX"; then
  13803. predep_objects_CXX=$p
  13804. else
  13805. predep_objects_CXX="$predep_objects_CXX $p"
  13806. fi
  13807. else
  13808. if test -z "$postdep_objects_CXX"; then
  13809. postdep_objects_CXX=$p
  13810. else
  13811. postdep_objects_CXX="$postdep_objects_CXX $p"
  13812. fi
  13813. fi
  13814. ;;
  13815. *) ;; # Ignore the rest.
  13816. esac
  13817. done
  13818. # Clean up.
  13819. rm -f a.out a.exe
  13820. else
  13821. echo "libtool.m4: error: problem compiling CXX test program"
  13822. fi
  13823. $RM -f confest.$objext
  13824. CFLAGS=$_lt_libdeps_save_CFLAGS
  13825. # PORTME: override above test on systems where it is broken
  13826. case $host_os in
  13827. interix[3-9]*)
  13828. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13829. # hack all around it, let's just trust "g++" to DTRT.
  13830. predep_objects_CXX=
  13831. postdep_objects_CXX=
  13832. postdeps_CXX=
  13833. ;;
  13834. esac
  13835. case " $postdeps_CXX " in
  13836. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13837. esac
  13838. compiler_lib_search_dirs_CXX=
  13839. if test -n "${compiler_lib_search_path_CXX}"; then
  13840. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13841. fi
  13842. lt_prog_compiler_wl_CXX=
  13843. lt_prog_compiler_pic_CXX=
  13844. lt_prog_compiler_static_CXX=
  13845. # C++ specific cases for pic, static, wl, etc.
  13846. if test yes = "$GXX"; then
  13847. lt_prog_compiler_wl_CXX='-Wl,'
  13848. lt_prog_compiler_static_CXX='-static'
  13849. case $host_os in
  13850. aix*)
  13851. # All AIX code is PIC.
  13852. if test ia64 = "$host_cpu"; then
  13853. # AIX 5 now supports IA64 processor
  13854. lt_prog_compiler_static_CXX='-Bstatic'
  13855. fi
  13856. lt_prog_compiler_pic_CXX='-fPIC'
  13857. ;;
  13858. amigaos*)
  13859. case $host_cpu in
  13860. powerpc)
  13861. # see comment about AmigaOS4 .so support
  13862. lt_prog_compiler_pic_CXX='-fPIC'
  13863. ;;
  13864. m68k)
  13865. # FIXME: we need at least 68020 code to build shared libraries, but
  13866. # adding the '-m68020' flag to GCC prevents building anything better,
  13867. # like '-m68040'.
  13868. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13869. ;;
  13870. esac
  13871. ;;
  13872. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13873. # PIC is the default for these OSes.
  13874. ;;
  13875. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13876. # This hack is so that the source file can tell whether it is being
  13877. # built for inclusion in a dll (and should export symbols for example).
  13878. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13879. # (--disable-auto-import) libraries
  13880. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13881. case $host_os in
  13882. os2*)
  13883. lt_prog_compiler_static_CXX='$wl-static'
  13884. ;;
  13885. esac
  13886. ;;
  13887. darwin* | rhapsody*)
  13888. # PIC is the default on this platform
  13889. # Common symbols not allowed in MH_DYLIB files
  13890. lt_prog_compiler_pic_CXX='-fno-common'
  13891. ;;
  13892. *djgpp*)
  13893. # DJGPP does not support shared libraries at all
  13894. lt_prog_compiler_pic_CXX=
  13895. ;;
  13896. haiku*)
  13897. # PIC is the default for Haiku.
  13898. # The "-static" flag exists, but is broken.
  13899. lt_prog_compiler_static_CXX=
  13900. ;;
  13901. interix[3-9]*)
  13902. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13903. # Instead, we relocate shared libraries at runtime.
  13904. ;;
  13905. sysv4*MP*)
  13906. if test -d /usr/nec; then
  13907. lt_prog_compiler_pic_CXX=-Kconform_pic
  13908. fi
  13909. ;;
  13910. hpux*)
  13911. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13912. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13913. # sets the default TLS model and affects inlining.
  13914. case $host_cpu in
  13915. hppa*64*)
  13916. ;;
  13917. *)
  13918. lt_prog_compiler_pic_CXX='-fPIC'
  13919. ;;
  13920. esac
  13921. ;;
  13922. *qnx* | *nto*)
  13923. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13924. # it will coredump.
  13925. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13926. ;;
  13927. *)
  13928. lt_prog_compiler_pic_CXX='-fPIC'
  13929. ;;
  13930. esac
  13931. else
  13932. case $host_os in
  13933. aix[4-9]*)
  13934. # All AIX code is PIC.
  13935. if test ia64 = "$host_cpu"; then
  13936. # AIX 5 now supports IA64 processor
  13937. lt_prog_compiler_static_CXX='-Bstatic'
  13938. else
  13939. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13940. fi
  13941. ;;
  13942. chorus*)
  13943. case $cc_basename in
  13944. cxch68*)
  13945. # Green Hills C++ Compiler
  13946. # _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"
  13947. ;;
  13948. esac
  13949. ;;
  13950. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13951. # This hack is so that the source file can tell whether it is being
  13952. # built for inclusion in a dll (and should export symbols for example).
  13953. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13954. ;;
  13955. dgux*)
  13956. case $cc_basename in
  13957. ec++*)
  13958. lt_prog_compiler_pic_CXX='-KPIC'
  13959. ;;
  13960. ghcx*)
  13961. # Green Hills C++ Compiler
  13962. lt_prog_compiler_pic_CXX='-pic'
  13963. ;;
  13964. *)
  13965. ;;
  13966. esac
  13967. ;;
  13968. freebsd* | dragonfly* | midnightbsd*)
  13969. # FreeBSD uses GNU C++
  13970. ;;
  13971. hpux9* | hpux10* | hpux11*)
  13972. case $cc_basename in
  13973. CC*)
  13974. lt_prog_compiler_wl_CXX='-Wl,'
  13975. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13976. if test ia64 != "$host_cpu"; then
  13977. lt_prog_compiler_pic_CXX='+Z'
  13978. fi
  13979. ;;
  13980. aCC*)
  13981. lt_prog_compiler_wl_CXX='-Wl,'
  13982. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13983. case $host_cpu in
  13984. hppa*64*|ia64*)
  13985. # +Z the default
  13986. ;;
  13987. *)
  13988. lt_prog_compiler_pic_CXX='+Z'
  13989. ;;
  13990. esac
  13991. ;;
  13992. *)
  13993. ;;
  13994. esac
  13995. ;;
  13996. interix*)
  13997. # This is c89, which is MS Visual C++ (no shared libs)
  13998. # Anyone wants to do a port?
  13999. ;;
  14000. irix5* | irix6* | nonstopux*)
  14001. case $cc_basename in
  14002. CC*)
  14003. lt_prog_compiler_wl_CXX='-Wl,'
  14004. lt_prog_compiler_static_CXX='-non_shared'
  14005. # CC pic flag -KPIC is the default.
  14006. ;;
  14007. *)
  14008. ;;
  14009. esac
  14010. ;;
  14011. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14012. case $cc_basename in
  14013. KCC*)
  14014. # KAI C++ Compiler
  14015. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14016. lt_prog_compiler_pic_CXX='-fPIC'
  14017. ;;
  14018. ecpc* )
  14019. # old Intel C++ for x86_64, which still supported -KPIC.
  14020. lt_prog_compiler_wl_CXX='-Wl,'
  14021. lt_prog_compiler_pic_CXX='-KPIC'
  14022. lt_prog_compiler_static_CXX='-static'
  14023. ;;
  14024. icpc* )
  14025. # Intel C++, used to be incompatible with GCC.
  14026. # ICC 10 doesn't accept -KPIC any more.
  14027. lt_prog_compiler_wl_CXX='-Wl,'
  14028. lt_prog_compiler_pic_CXX='-fPIC'
  14029. lt_prog_compiler_static_CXX='-static'
  14030. ;;
  14031. pgCC* | pgcpp*)
  14032. # Portland Group C++ compiler
  14033. lt_prog_compiler_wl_CXX='-Wl,'
  14034. lt_prog_compiler_pic_CXX='-fpic'
  14035. lt_prog_compiler_static_CXX='-Bstatic'
  14036. ;;
  14037. cxx*)
  14038. # Compaq C++
  14039. # Make sure the PIC flag is empty. It appears that all Alpha
  14040. # Linux and Compaq Tru64 Unix objects are PIC.
  14041. lt_prog_compiler_pic_CXX=
  14042. lt_prog_compiler_static_CXX='-non_shared'
  14043. ;;
  14044. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14045. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14046. lt_prog_compiler_wl_CXX='-Wl,'
  14047. lt_prog_compiler_pic_CXX='-qpic'
  14048. lt_prog_compiler_static_CXX='-qstaticlink'
  14049. ;;
  14050. *)
  14051. case `$CC -V 2>&1 | sed 5q` in
  14052. *Sun\ C*)
  14053. # Sun C++ 5.9
  14054. lt_prog_compiler_pic_CXX='-KPIC'
  14055. lt_prog_compiler_static_CXX='-Bstatic'
  14056. lt_prog_compiler_wl_CXX='-Qoption ld '
  14057. ;;
  14058. esac
  14059. ;;
  14060. esac
  14061. ;;
  14062. lynxos*)
  14063. ;;
  14064. m88k*)
  14065. ;;
  14066. mvs*)
  14067. case $cc_basename in
  14068. cxx*)
  14069. lt_prog_compiler_pic_CXX='-W c,exportall'
  14070. ;;
  14071. *)
  14072. ;;
  14073. esac
  14074. ;;
  14075. netbsd*)
  14076. ;;
  14077. *qnx* | *nto*)
  14078. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14079. # it will coredump.
  14080. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14081. ;;
  14082. osf3* | osf4* | osf5*)
  14083. case $cc_basename in
  14084. KCC*)
  14085. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14086. ;;
  14087. RCC*)
  14088. # Rational C++ 2.4.1
  14089. lt_prog_compiler_pic_CXX='-pic'
  14090. ;;
  14091. cxx*)
  14092. # Digital/Compaq C++
  14093. lt_prog_compiler_wl_CXX='-Wl,'
  14094. # Make sure the PIC flag is empty. It appears that all Alpha
  14095. # Linux and Compaq Tru64 Unix objects are PIC.
  14096. lt_prog_compiler_pic_CXX=
  14097. lt_prog_compiler_static_CXX='-non_shared'
  14098. ;;
  14099. *)
  14100. ;;
  14101. esac
  14102. ;;
  14103. psos*)
  14104. ;;
  14105. solaris*)
  14106. case $cc_basename in
  14107. CC* | sunCC*)
  14108. # Sun C++ 4.2, 5.x and Centerline C++
  14109. lt_prog_compiler_pic_CXX='-KPIC'
  14110. lt_prog_compiler_static_CXX='-Bstatic'
  14111. lt_prog_compiler_wl_CXX='-Qoption ld '
  14112. ;;
  14113. gcx*)
  14114. # Green Hills C++ Compiler
  14115. lt_prog_compiler_pic_CXX='-PIC'
  14116. ;;
  14117. *)
  14118. ;;
  14119. esac
  14120. ;;
  14121. sunos4*)
  14122. case $cc_basename in
  14123. CC*)
  14124. # Sun C++ 4.x
  14125. lt_prog_compiler_pic_CXX='-pic'
  14126. lt_prog_compiler_static_CXX='-Bstatic'
  14127. ;;
  14128. lcc*)
  14129. # Lucid
  14130. lt_prog_compiler_pic_CXX='-pic'
  14131. ;;
  14132. *)
  14133. ;;
  14134. esac
  14135. ;;
  14136. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14137. case $cc_basename in
  14138. CC*)
  14139. lt_prog_compiler_wl_CXX='-Wl,'
  14140. lt_prog_compiler_pic_CXX='-KPIC'
  14141. lt_prog_compiler_static_CXX='-Bstatic'
  14142. ;;
  14143. esac
  14144. ;;
  14145. tandem*)
  14146. case $cc_basename in
  14147. NCC*)
  14148. # NonStop-UX NCC 3.20
  14149. lt_prog_compiler_pic_CXX='-KPIC'
  14150. ;;
  14151. *)
  14152. ;;
  14153. esac
  14154. ;;
  14155. vxworks*)
  14156. ;;
  14157. *)
  14158. lt_prog_compiler_can_build_shared_CXX=no
  14159. ;;
  14160. esac
  14161. fi
  14162. case $host_os in
  14163. # For platforms that do not support PIC, -DPIC is meaningless:
  14164. *djgpp*)
  14165. lt_prog_compiler_pic_CXX=
  14166. ;;
  14167. *)
  14168. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14169. ;;
  14170. esac
  14171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14172. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14173. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14174. then :
  14175. printf %s "(cached) " >&6
  14176. else $as_nop
  14177. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14178. fi
  14179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14180. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14181. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14182. #
  14183. # Check to make sure the PIC flag actually works.
  14184. #
  14185. if test -n "$lt_prog_compiler_pic_CXX"; then
  14186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14187. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14188. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14189. then :
  14190. printf %s "(cached) " >&6
  14191. else $as_nop
  14192. lt_cv_prog_compiler_pic_works_CXX=no
  14193. ac_outfile=conftest.$ac_objext
  14194. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14195. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14196. # Insert the option either (1) after the last *FLAGS variable, or
  14197. # (2) before a word containing "conftest.", or (3) at the end.
  14198. # Note that $ac_compile itself does not contain backslashes and begins
  14199. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14200. # The option is referenced via a variable to avoid confusing sed.
  14201. lt_compile=`echo "$ac_compile" | $SED \
  14202. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14203. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14204. -e 's:$: $lt_compiler_flag:'`
  14205. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14206. (eval "$lt_compile" 2>conftest.err)
  14207. ac_status=$?
  14208. cat conftest.err >&5
  14209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14210. if (exit $ac_status) && test -s "$ac_outfile"; then
  14211. # The compiler can only warn and ignore the option if not recognized
  14212. # So say no if there are warnings other than the usual output.
  14213. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14214. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14215. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14216. lt_cv_prog_compiler_pic_works_CXX=yes
  14217. fi
  14218. fi
  14219. $RM conftest*
  14220. fi
  14221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14222. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14223. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14224. case $lt_prog_compiler_pic_CXX in
  14225. "" | " "*) ;;
  14226. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14227. esac
  14228. else
  14229. lt_prog_compiler_pic_CXX=
  14230. lt_prog_compiler_can_build_shared_CXX=no
  14231. fi
  14232. fi
  14233. #
  14234. # Check to make sure the static flag actually works.
  14235. #
  14236. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14238. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14239. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14240. then :
  14241. printf %s "(cached) " >&6
  14242. else $as_nop
  14243. lt_cv_prog_compiler_static_works_CXX=no
  14244. save_LDFLAGS=$LDFLAGS
  14245. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14246. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14247. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14248. # The linker can only warn and ignore the option if not recognized
  14249. # So say no if there are warnings
  14250. if test -s conftest.err; then
  14251. # Append any errors to the config.log.
  14252. cat conftest.err 1>&5
  14253. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14254. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14255. if diff conftest.exp conftest.er2 >/dev/null; then
  14256. lt_cv_prog_compiler_static_works_CXX=yes
  14257. fi
  14258. else
  14259. lt_cv_prog_compiler_static_works_CXX=yes
  14260. fi
  14261. fi
  14262. $RM -r conftest*
  14263. LDFLAGS=$save_LDFLAGS
  14264. fi
  14265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14266. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14267. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14268. :
  14269. else
  14270. lt_prog_compiler_static_CXX=
  14271. fi
  14272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14273. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14274. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14275. then :
  14276. printf %s "(cached) " >&6
  14277. else $as_nop
  14278. lt_cv_prog_compiler_c_o_CXX=no
  14279. $RM -r conftest 2>/dev/null
  14280. mkdir conftest
  14281. cd conftest
  14282. mkdir out
  14283. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14284. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14285. # Insert the option either (1) after the last *FLAGS variable, or
  14286. # (2) before a word containing "conftest.", or (3) at the end.
  14287. # Note that $ac_compile itself does not contain backslashes and begins
  14288. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14289. lt_compile=`echo "$ac_compile" | $SED \
  14290. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14291. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14292. -e 's:$: $lt_compiler_flag:'`
  14293. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14294. (eval "$lt_compile" 2>out/conftest.err)
  14295. ac_status=$?
  14296. cat out/conftest.err >&5
  14297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14298. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14299. then
  14300. # The compiler can only warn and ignore the option if not recognized
  14301. # So say no if there are warnings
  14302. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14303. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14304. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14305. lt_cv_prog_compiler_c_o_CXX=yes
  14306. fi
  14307. fi
  14308. chmod u+w . 2>&5
  14309. $RM conftest*
  14310. # SGI C++ compiler will create directory out/ii_files/ for
  14311. # template instantiation
  14312. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14313. $RM out/* && rmdir out
  14314. cd ..
  14315. $RM -r conftest
  14316. $RM conftest*
  14317. fi
  14318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14319. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14321. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14322. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14323. then :
  14324. printf %s "(cached) " >&6
  14325. else $as_nop
  14326. lt_cv_prog_compiler_c_o_CXX=no
  14327. $RM -r conftest 2>/dev/null
  14328. mkdir conftest
  14329. cd conftest
  14330. mkdir out
  14331. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14332. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14333. # Insert the option either (1) after the last *FLAGS variable, or
  14334. # (2) before a word containing "conftest.", or (3) at the end.
  14335. # Note that $ac_compile itself does not contain backslashes and begins
  14336. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14337. lt_compile=`echo "$ac_compile" | $SED \
  14338. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14339. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14340. -e 's:$: $lt_compiler_flag:'`
  14341. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14342. (eval "$lt_compile" 2>out/conftest.err)
  14343. ac_status=$?
  14344. cat out/conftest.err >&5
  14345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14346. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14347. then
  14348. # The compiler can only warn and ignore the option if not recognized
  14349. # So say no if there are warnings
  14350. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14351. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14352. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14353. lt_cv_prog_compiler_c_o_CXX=yes
  14354. fi
  14355. fi
  14356. chmod u+w . 2>&5
  14357. $RM conftest*
  14358. # SGI C++ compiler will create directory out/ii_files/ for
  14359. # template instantiation
  14360. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14361. $RM out/* && rmdir out
  14362. cd ..
  14363. $RM -r conftest
  14364. $RM conftest*
  14365. fi
  14366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14367. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14368. hard_links=nottested
  14369. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14370. # do not overwrite the value of need_locks provided by the user
  14371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14372. printf %s "checking if we can lock with hard links... " >&6; }
  14373. hard_links=yes
  14374. $RM conftest*
  14375. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14376. touch conftest.a
  14377. ln conftest.a conftest.b 2>&5 || hard_links=no
  14378. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14380. printf "%s\n" "$hard_links" >&6; }
  14381. if test no = "$hard_links"; then
  14382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14383. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14384. need_locks=warn
  14385. fi
  14386. else
  14387. need_locks=no
  14388. fi
  14389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14390. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14391. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14392. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14393. case $host_os in
  14394. aix[4-9]*)
  14395. # If we're using GNU nm, then we don't want the "-C" option.
  14396. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14397. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14398. # weak defined symbols like other global defined symbols, whereas
  14399. # GNU nm marks them as "W".
  14400. # While the 'weak' keyword is ignored in the Export File, we need
  14401. # it in the Import File for the 'aix-soname' feature, so we have
  14402. # to replace the "-B" option with "-P" for AIX nm.
  14403. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14404. 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'
  14405. else
  14406. 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'
  14407. fi
  14408. ;;
  14409. pw32*)
  14410. export_symbols_cmds_CXX=$ltdll_cmds
  14411. ;;
  14412. cygwin* | mingw* | cegcc*)
  14413. case $cc_basename in
  14414. cl*)
  14415. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14416. ;;
  14417. *)
  14418. 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'
  14419. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14420. ;;
  14421. esac
  14422. ;;
  14423. *)
  14424. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14425. ;;
  14426. esac
  14427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14428. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14429. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14430. with_gnu_ld_CXX=$with_gnu_ld
  14431. #
  14432. # Do we need to explicitly link libc?
  14433. #
  14434. case "x$archive_cmds_need_lc_CXX" in
  14435. x|xyes)
  14436. # Assume -lc should be added
  14437. archive_cmds_need_lc_CXX=yes
  14438. if test yes,yes = "$GCC,$enable_shared"; then
  14439. case $archive_cmds_CXX in
  14440. *'~'*)
  14441. # FIXME: we may have to deal with multi-command sequences.
  14442. ;;
  14443. '$CC '*)
  14444. # Test whether the compiler implicitly links with -lc since on some
  14445. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14446. # to ld, don't add -lc before -lgcc.
  14447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14448. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14449. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14450. then :
  14451. printf %s "(cached) " >&6
  14452. else $as_nop
  14453. $RM conftest*
  14454. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14455. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14456. (eval $ac_compile) 2>&5
  14457. ac_status=$?
  14458. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14459. test $ac_status = 0; } 2>conftest.err; then
  14460. soname=conftest
  14461. lib=conftest
  14462. libobjs=conftest.$ac_objext
  14463. deplibs=
  14464. wl=$lt_prog_compiler_wl_CXX
  14465. pic_flag=$lt_prog_compiler_pic_CXX
  14466. compiler_flags=-v
  14467. linker_flags=-v
  14468. verstring=
  14469. output_objdir=.
  14470. libname=conftest
  14471. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14472. allow_undefined_flag_CXX=
  14473. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14474. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14475. ac_status=$?
  14476. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14477. test $ac_status = 0; }
  14478. then
  14479. lt_cv_archive_cmds_need_lc_CXX=no
  14480. else
  14481. lt_cv_archive_cmds_need_lc_CXX=yes
  14482. fi
  14483. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14484. else
  14485. cat conftest.err 1>&5
  14486. fi
  14487. $RM conftest*
  14488. fi
  14489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14490. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14491. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14492. ;;
  14493. esac
  14494. fi
  14495. ;;
  14496. esac
  14497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14498. printf %s "checking dynamic linker characteristics... " >&6; }
  14499. library_names_spec=
  14500. libname_spec='lib$name'
  14501. soname_spec=
  14502. shrext_cmds=.so
  14503. postinstall_cmds=
  14504. postuninstall_cmds=
  14505. finish_cmds=
  14506. finish_eval=
  14507. shlibpath_var=
  14508. shlibpath_overrides_runpath=unknown
  14509. version_type=none
  14510. dynamic_linker="$host_os ld.so"
  14511. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14512. need_lib_prefix=unknown
  14513. hardcode_into_libs=no
  14514. # when you set need_version to no, make sure it does not cause -set_version
  14515. # flags to be left without arguments
  14516. need_version=unknown
  14517. case $host_os in
  14518. aix3*)
  14519. version_type=linux # correct to gnu/linux during the next big refactor
  14520. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14521. shlibpath_var=LIBPATH
  14522. # AIX 3 has no versioning support, so we append a major version to the name.
  14523. soname_spec='$libname$release$shared_ext$major'
  14524. ;;
  14525. aix[4-9]*)
  14526. version_type=linux # correct to gnu/linux during the next big refactor
  14527. need_lib_prefix=no
  14528. need_version=no
  14529. hardcode_into_libs=yes
  14530. if test ia64 = "$host_cpu"; then
  14531. # AIX 5 supports IA64
  14532. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14533. shlibpath_var=LD_LIBRARY_PATH
  14534. else
  14535. # With GCC up to 2.95.x, collect2 would create an import file
  14536. # for dependence libraries. The import file would start with
  14537. # the line '#! .'. This would cause the generated library to
  14538. # depend on '.', always an invalid library. This was fixed in
  14539. # development snapshots of GCC prior to 3.0.
  14540. case $host_os in
  14541. aix4 | aix4.[01] | aix4.[01].*)
  14542. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14543. echo ' yes '
  14544. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14545. :
  14546. else
  14547. can_build_shared=no
  14548. fi
  14549. ;;
  14550. esac
  14551. # Using Import Files as archive members, it is possible to support
  14552. # filename-based versioning of shared library archives on AIX. While
  14553. # this would work for both with and without runtime linking, it will
  14554. # prevent static linking of such archives. So we do filename-based
  14555. # shared library versioning with .so extension only, which is used
  14556. # when both runtime linking and shared linking is enabled.
  14557. # Unfortunately, runtime linking may impact performance, so we do
  14558. # not want this to be the default eventually. Also, we use the
  14559. # versioned .so libs for executables only if there is the -brtl
  14560. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14561. # To allow for filename-based versioning support, we need to create
  14562. # libNAME.so.V as an archive file, containing:
  14563. # *) an Import File, referring to the versioned filename of the
  14564. # archive as well as the shared archive member, telling the
  14565. # bitwidth (32 or 64) of that shared object, and providing the
  14566. # list of exported symbols of that shared object, eventually
  14567. # decorated with the 'weak' keyword
  14568. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14569. # it being seen by the linker.
  14570. # At run time we better use the real file rather than another symlink,
  14571. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14572. case $with_aix_soname,$aix_use_runtimelinking in
  14573. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14574. # soname into executable. Probably we can add versioning support to
  14575. # collect2, so additional links can be useful in future.
  14576. aix,yes) # traditional libtool
  14577. dynamic_linker='AIX unversionable lib.so'
  14578. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14579. # instead of lib<name>.a to let people know that these are not
  14580. # typical AIX shared libraries.
  14581. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14582. ;;
  14583. aix,no) # traditional AIX only
  14584. dynamic_linker='AIX lib.a(lib.so.V)'
  14585. # We preserve .a as extension for shared libraries through AIX4.2
  14586. # and later when we are not doing run time linking.
  14587. library_names_spec='$libname$release.a $libname.a'
  14588. soname_spec='$libname$release$shared_ext$major'
  14589. ;;
  14590. svr4,*) # full svr4 only
  14591. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14592. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14593. # We do not specify a path in Import Files, so LIBPATH fires.
  14594. shlibpath_overrides_runpath=yes
  14595. ;;
  14596. *,yes) # both, prefer svr4
  14597. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14598. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14599. # unpreferred sharedlib libNAME.a needs extra handling
  14600. 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"'
  14601. 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"'
  14602. # We do not specify a path in Import Files, so LIBPATH fires.
  14603. shlibpath_overrides_runpath=yes
  14604. ;;
  14605. *,no) # both, prefer aix
  14606. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14607. library_names_spec='$libname$release.a $libname.a'
  14608. soname_spec='$libname$release$shared_ext$major'
  14609. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14610. 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)'
  14611. 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"'
  14612. ;;
  14613. esac
  14614. shlibpath_var=LIBPATH
  14615. fi
  14616. ;;
  14617. amigaos*)
  14618. case $host_cpu in
  14619. powerpc)
  14620. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14621. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14622. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14623. ;;
  14624. m68k)
  14625. library_names_spec='$libname.ixlibrary $libname.a'
  14626. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14627. 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'
  14628. ;;
  14629. esac
  14630. ;;
  14631. beos*)
  14632. library_names_spec='$libname$shared_ext'
  14633. dynamic_linker="$host_os ld.so"
  14634. shlibpath_var=LIBRARY_PATH
  14635. ;;
  14636. bsdi[45]*)
  14637. version_type=linux # correct to gnu/linux during the next big refactor
  14638. need_version=no
  14639. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14640. soname_spec='$libname$release$shared_ext$major'
  14641. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14642. shlibpath_var=LD_LIBRARY_PATH
  14643. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14644. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14645. # the default ld.so.conf also contains /usr/contrib/lib and
  14646. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14647. # libtool to hard-code these into programs
  14648. ;;
  14649. cygwin* | mingw* | pw32* | cegcc*)
  14650. version_type=windows
  14651. shrext_cmds=.dll
  14652. need_version=no
  14653. need_lib_prefix=no
  14654. case $GCC,$cc_basename in
  14655. yes,*)
  14656. # gcc
  14657. library_names_spec='$libname.dll.a'
  14658. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14659. postinstall_cmds='base_file=`basename \$file`~
  14660. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14661. dldir=$destdir/`dirname \$dlpath`~
  14662. test -d \$dldir || mkdir -p \$dldir~
  14663. $install_prog $dir/$dlname \$dldir/$dlname~
  14664. chmod a+x \$dldir/$dlname~
  14665. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14666. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14667. fi'
  14668. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14669. dlpath=$dir/\$dldll~
  14670. $RM \$dlpath'
  14671. shlibpath_overrides_runpath=yes
  14672. case $host_os in
  14673. cygwin*)
  14674. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14675. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14676. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14677. ;;
  14678. mingw* | cegcc*)
  14679. # MinGW DLLs use traditional 'lib' prefix
  14680. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14681. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14682. ;;
  14683. pw32*)
  14684. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14685. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14686. ;;
  14687. esac
  14688. dynamic_linker='Win32 ld.exe'
  14689. ;;
  14690. *,cl*)
  14691. # Native MSVC
  14692. libname_spec='$name'
  14693. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14694. library_names_spec='$libname.dll.lib'
  14695. case $build_os in
  14696. mingw*)
  14697. sys_lib_search_path_spec=
  14698. lt_save_ifs=$IFS
  14699. IFS=';'
  14700. for lt_path in $LIB
  14701. do
  14702. IFS=$lt_save_ifs
  14703. # Let DOS variable expansion print the short 8.3 style file name.
  14704. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14705. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14706. done
  14707. IFS=$lt_save_ifs
  14708. # Convert to MSYS style.
  14709. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14710. ;;
  14711. cygwin*)
  14712. # Convert to unix form, then to dos form, then back to unix form
  14713. # but this time dos style (no spaces!) so that the unix form looks
  14714. # like /cygdrive/c/PROGRA~1:/cygdr...
  14715. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14716. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14717. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14718. ;;
  14719. *)
  14720. sys_lib_search_path_spec=$LIB
  14721. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14722. # It is most probably a Windows format PATH.
  14723. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14724. else
  14725. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14726. fi
  14727. # FIXME: find the short name or the path components, as spaces are
  14728. # common. (e.g. "Program Files" -> "PROGRA~1")
  14729. ;;
  14730. esac
  14731. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14732. postinstall_cmds='base_file=`basename \$file`~
  14733. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14734. dldir=$destdir/`dirname \$dlpath`~
  14735. test -d \$dldir || mkdir -p \$dldir~
  14736. $install_prog $dir/$dlname \$dldir/$dlname'
  14737. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14738. dlpath=$dir/\$dldll~
  14739. $RM \$dlpath'
  14740. shlibpath_overrides_runpath=yes
  14741. dynamic_linker='Win32 link.exe'
  14742. ;;
  14743. *)
  14744. # Assume MSVC wrapper
  14745. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14746. dynamic_linker='Win32 ld.exe'
  14747. ;;
  14748. esac
  14749. # FIXME: first we should search . and the directory the executable is in
  14750. shlibpath_var=PATH
  14751. ;;
  14752. darwin* | rhapsody*)
  14753. dynamic_linker="$host_os dyld"
  14754. version_type=darwin
  14755. need_lib_prefix=no
  14756. need_version=no
  14757. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14758. soname_spec='$libname$release$major$shared_ext'
  14759. shlibpath_overrides_runpath=yes
  14760. shlibpath_var=DYLD_LIBRARY_PATH
  14761. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14762. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14763. ;;
  14764. dgux*)
  14765. version_type=linux # correct to gnu/linux during the next big refactor
  14766. need_lib_prefix=no
  14767. need_version=no
  14768. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14769. soname_spec='$libname$release$shared_ext$major'
  14770. shlibpath_var=LD_LIBRARY_PATH
  14771. ;;
  14772. freebsd* | dragonfly* | midnightbsd*)
  14773. # DragonFly does not have aout. When/if they implement a new
  14774. # versioning mechanism, adjust this.
  14775. if test -x /usr/bin/objformat; then
  14776. objformat=`/usr/bin/objformat`
  14777. else
  14778. case $host_os in
  14779. freebsd[23].*) objformat=aout ;;
  14780. *) objformat=elf ;;
  14781. esac
  14782. fi
  14783. version_type=freebsd-$objformat
  14784. case $version_type in
  14785. freebsd-elf*)
  14786. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14787. soname_spec='$libname$release$shared_ext$major'
  14788. need_version=no
  14789. need_lib_prefix=no
  14790. ;;
  14791. freebsd-*)
  14792. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14793. need_version=yes
  14794. ;;
  14795. esac
  14796. shlibpath_var=LD_LIBRARY_PATH
  14797. case $host_os in
  14798. freebsd2.*)
  14799. shlibpath_overrides_runpath=yes
  14800. ;;
  14801. freebsd3.[01]* | freebsdelf3.[01]*)
  14802. shlibpath_overrides_runpath=yes
  14803. hardcode_into_libs=yes
  14804. ;;
  14805. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14806. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14807. shlibpath_overrides_runpath=no
  14808. hardcode_into_libs=yes
  14809. ;;
  14810. *) # from 4.6 on, and DragonFly
  14811. shlibpath_overrides_runpath=yes
  14812. hardcode_into_libs=yes
  14813. ;;
  14814. esac
  14815. ;;
  14816. haiku*)
  14817. version_type=linux # correct to gnu/linux during the next big refactor
  14818. need_lib_prefix=no
  14819. need_version=no
  14820. dynamic_linker="$host_os runtime_loader"
  14821. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14822. soname_spec='$libname$release$shared_ext$major'
  14823. shlibpath_var=LIBRARY_PATH
  14824. shlibpath_overrides_runpath=no
  14825. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14826. hardcode_into_libs=yes
  14827. ;;
  14828. hpux9* | hpux10* | hpux11*)
  14829. # Give a soname corresponding to the major version so that dld.sl refuses to
  14830. # link against other versions.
  14831. version_type=sunos
  14832. need_lib_prefix=no
  14833. need_version=no
  14834. case $host_cpu in
  14835. ia64*)
  14836. shrext_cmds='.so'
  14837. hardcode_into_libs=yes
  14838. dynamic_linker="$host_os dld.so"
  14839. shlibpath_var=LD_LIBRARY_PATH
  14840. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14841. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14842. soname_spec='$libname$release$shared_ext$major'
  14843. if test 32 = "$HPUX_IA64_MODE"; then
  14844. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14845. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14846. else
  14847. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14848. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14849. fi
  14850. ;;
  14851. hppa*64*)
  14852. shrext_cmds='.sl'
  14853. hardcode_into_libs=yes
  14854. dynamic_linker="$host_os dld.sl"
  14855. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14856. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14857. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14858. soname_spec='$libname$release$shared_ext$major'
  14859. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14860. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14861. ;;
  14862. *)
  14863. shrext_cmds='.sl'
  14864. dynamic_linker="$host_os dld.sl"
  14865. shlibpath_var=SHLIB_PATH
  14866. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14867. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14868. soname_spec='$libname$release$shared_ext$major'
  14869. ;;
  14870. esac
  14871. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14872. postinstall_cmds='chmod 555 $lib'
  14873. # or fails outright, so override atomically:
  14874. install_override_mode=555
  14875. ;;
  14876. interix[3-9]*)
  14877. version_type=linux # correct to gnu/linux during the next big refactor
  14878. need_lib_prefix=no
  14879. need_version=no
  14880. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14881. soname_spec='$libname$release$shared_ext$major'
  14882. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14883. shlibpath_var=LD_LIBRARY_PATH
  14884. shlibpath_overrides_runpath=no
  14885. hardcode_into_libs=yes
  14886. ;;
  14887. irix5* | irix6* | nonstopux*)
  14888. case $host_os in
  14889. nonstopux*) version_type=nonstopux ;;
  14890. *)
  14891. if test yes = "$lt_cv_prog_gnu_ld"; then
  14892. version_type=linux # correct to gnu/linux during the next big refactor
  14893. else
  14894. version_type=irix
  14895. fi ;;
  14896. esac
  14897. need_lib_prefix=no
  14898. need_version=no
  14899. soname_spec='$libname$release$shared_ext$major'
  14900. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14901. case $host_os in
  14902. irix5* | nonstopux*)
  14903. libsuff= shlibsuff=
  14904. ;;
  14905. *)
  14906. case $LD in # libtool.m4 will add one of these switches to LD
  14907. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14908. libsuff= shlibsuff= libmagic=32-bit;;
  14909. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14910. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14911. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14912. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14913. *) libsuff= shlibsuff= libmagic=never-match;;
  14914. esac
  14915. ;;
  14916. esac
  14917. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14918. shlibpath_overrides_runpath=no
  14919. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14920. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14921. hardcode_into_libs=yes
  14922. ;;
  14923. # No shared lib support for Linux oldld, aout, or coff.
  14924. linux*oldld* | linux*aout* | linux*coff*)
  14925. dynamic_linker=no
  14926. ;;
  14927. linux*android*)
  14928. version_type=none # Android doesn't support versioned libraries.
  14929. need_lib_prefix=no
  14930. need_version=no
  14931. library_names_spec='$libname$release$shared_ext'
  14932. soname_spec='$libname$release$shared_ext'
  14933. finish_cmds=
  14934. shlibpath_var=LD_LIBRARY_PATH
  14935. shlibpath_overrides_runpath=yes
  14936. # This implies no fast_install, which is unacceptable.
  14937. # Some rework will be needed to allow for fast_install
  14938. # before this can be enabled.
  14939. hardcode_into_libs=yes
  14940. dynamic_linker='Android linker'
  14941. # Don't embed -rpath directories since the linker doesn't support them.
  14942. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14943. ;;
  14944. # This must be glibc/ELF.
  14945. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14946. version_type=linux # correct to gnu/linux during the next big refactor
  14947. need_lib_prefix=no
  14948. need_version=no
  14949. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14950. soname_spec='$libname$release$shared_ext$major'
  14951. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14952. shlibpath_var=LD_LIBRARY_PATH
  14953. shlibpath_overrides_runpath=no
  14954. # Some binutils ld are patched to set DT_RUNPATH
  14955. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14956. then :
  14957. printf %s "(cached) " >&6
  14958. else $as_nop
  14959. lt_cv_shlibpath_overrides_runpath=no
  14960. save_LDFLAGS=$LDFLAGS
  14961. save_libdir=$libdir
  14962. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14963. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14965. /* end confdefs.h. */
  14966. int
  14967. main (void)
  14968. {
  14969. ;
  14970. return 0;
  14971. }
  14972. _ACEOF
  14973. if ac_fn_cxx_try_link "$LINENO"
  14974. then :
  14975. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14976. then :
  14977. lt_cv_shlibpath_overrides_runpath=yes
  14978. fi
  14979. fi
  14980. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14981. conftest$ac_exeext conftest.$ac_ext
  14982. LDFLAGS=$save_LDFLAGS
  14983. libdir=$save_libdir
  14984. fi
  14985. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14986. # This implies no fast_install, which is unacceptable.
  14987. # Some rework will be needed to allow for fast_install
  14988. # before this can be enabled.
  14989. hardcode_into_libs=yes
  14990. # Add ABI-specific directories to the system library path.
  14991. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  14992. # Ideally, we could use ldconfig to report *all* directores which are
  14993. # searched for libraries, however this is still not possible. Aside from not
  14994. # being certain /sbin/ldconfig is available, command
  14995. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14996. # even though it is searched at run-time. Try to do the best guess by
  14997. # appending ld.so.conf contents (and includes) to the search path.
  14998. if test -f /etc/ld.so.conf; then
  14999. 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' ' '`
  15000. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15001. fi
  15002. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15003. # powerpc, because MkLinux only supported shared libraries with the
  15004. # GNU dynamic linker. Since this was broken with cross compilers,
  15005. # most powerpc-linux boxes support dynamic linking these days and
  15006. # people can always --disable-shared, the test was removed, and we
  15007. # assume the GNU/Linux dynamic linker is in use.
  15008. dynamic_linker='GNU/Linux ld.so'
  15009. ;;
  15010. netbsd*)
  15011. version_type=sunos
  15012. need_lib_prefix=no
  15013. need_version=no
  15014. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15015. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15016. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15017. dynamic_linker='NetBSD (a.out) ld.so'
  15018. else
  15019. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15020. soname_spec='$libname$release$shared_ext$major'
  15021. dynamic_linker='NetBSD ld.elf_so'
  15022. fi
  15023. shlibpath_var=LD_LIBRARY_PATH
  15024. shlibpath_overrides_runpath=yes
  15025. hardcode_into_libs=yes
  15026. ;;
  15027. newsos6)
  15028. version_type=linux # correct to gnu/linux during the next big refactor
  15029. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15030. shlibpath_var=LD_LIBRARY_PATH
  15031. shlibpath_overrides_runpath=yes
  15032. ;;
  15033. *nto* | *qnx*)
  15034. version_type=qnx
  15035. need_lib_prefix=no
  15036. need_version=no
  15037. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15038. soname_spec='$libname$release$shared_ext$major'
  15039. shlibpath_var=LD_LIBRARY_PATH
  15040. shlibpath_overrides_runpath=no
  15041. hardcode_into_libs=yes
  15042. dynamic_linker='ldqnx.so'
  15043. ;;
  15044. openbsd* | bitrig*)
  15045. version_type=sunos
  15046. sys_lib_dlsearch_path_spec=/usr/lib
  15047. need_lib_prefix=no
  15048. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15049. need_version=no
  15050. else
  15051. need_version=yes
  15052. fi
  15053. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15054. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15055. shlibpath_var=LD_LIBRARY_PATH
  15056. shlibpath_overrides_runpath=yes
  15057. ;;
  15058. os2*)
  15059. libname_spec='$name'
  15060. shrext_cmds=.dll
  15061. need_lib_prefix=no
  15062. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15063. # SDL customization: removed versioning support.
  15064. # version_type=windows
  15065. # need_version=no
  15066. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15067. # v=$($ECHO $release$versuffix | tr -d .-);
  15068. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15069. # $ECHO $n$v`$shared_ext'
  15070. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15071. library_names_spec='${libname}_dll.$libext'
  15072. dynamic_linker='OS/2 ld.exe'
  15073. shlibpath_var=BEGINLIBPATH
  15074. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15075. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15076. postinstall_cmds='base_file=`basename \$file`~
  15077. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15078. dldir=$destdir/`dirname \$dlpath`~
  15079. test -d \$dldir || mkdir -p \$dldir~
  15080. $install_prog $dir/$dlname \$dldir/$dlname~
  15081. chmod a+x \$dldir/$dlname~
  15082. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15083. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15084. fi'
  15085. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15086. dlpath=$dir/\$dldll~
  15087. $RM \$dlpath'
  15088. ;;
  15089. osf3* | osf4* | osf5*)
  15090. version_type=osf
  15091. need_lib_prefix=no
  15092. need_version=no
  15093. soname_spec='$libname$release$shared_ext$major'
  15094. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15095. shlibpath_var=LD_LIBRARY_PATH
  15096. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15097. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15098. ;;
  15099. rdos*)
  15100. dynamic_linker=no
  15101. ;;
  15102. solaris*)
  15103. version_type=linux # correct to gnu/linux during the next big refactor
  15104. need_lib_prefix=no
  15105. need_version=no
  15106. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15107. soname_spec='$libname$release$shared_ext$major'
  15108. shlibpath_var=LD_LIBRARY_PATH
  15109. shlibpath_overrides_runpath=yes
  15110. hardcode_into_libs=yes
  15111. # ldd complains unless libraries are executable
  15112. postinstall_cmds='chmod +x $lib'
  15113. ;;
  15114. sunos4*)
  15115. version_type=sunos
  15116. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15117. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15118. shlibpath_var=LD_LIBRARY_PATH
  15119. shlibpath_overrides_runpath=yes
  15120. if test yes = "$with_gnu_ld"; then
  15121. need_lib_prefix=no
  15122. fi
  15123. need_version=yes
  15124. ;;
  15125. sysv4 | sysv4.3*)
  15126. version_type=linux # correct to gnu/linux during the next big refactor
  15127. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15128. soname_spec='$libname$release$shared_ext$major'
  15129. shlibpath_var=LD_LIBRARY_PATH
  15130. case $host_vendor in
  15131. sni)
  15132. shlibpath_overrides_runpath=no
  15133. need_lib_prefix=no
  15134. runpath_var=LD_RUN_PATH
  15135. ;;
  15136. siemens)
  15137. need_lib_prefix=no
  15138. ;;
  15139. motorola)
  15140. need_lib_prefix=no
  15141. need_version=no
  15142. shlibpath_overrides_runpath=no
  15143. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15144. ;;
  15145. esac
  15146. ;;
  15147. sysv4*MP*)
  15148. if test -d /usr/nec; then
  15149. version_type=linux # correct to gnu/linux during the next big refactor
  15150. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15151. soname_spec='$libname$shared_ext.$major'
  15152. shlibpath_var=LD_LIBRARY_PATH
  15153. fi
  15154. ;;
  15155. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15156. version_type=sco
  15157. need_lib_prefix=no
  15158. need_version=no
  15159. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15160. soname_spec='$libname$release$shared_ext$major'
  15161. shlibpath_var=LD_LIBRARY_PATH
  15162. shlibpath_overrides_runpath=yes
  15163. hardcode_into_libs=yes
  15164. if test yes = "$with_gnu_ld"; then
  15165. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15166. else
  15167. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15168. case $host_os in
  15169. sco3.2v5*)
  15170. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15171. ;;
  15172. esac
  15173. fi
  15174. sys_lib_dlsearch_path_spec='/usr/lib'
  15175. ;;
  15176. tpf*)
  15177. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15178. version_type=linux # correct to gnu/linux during the next big refactor
  15179. need_lib_prefix=no
  15180. need_version=no
  15181. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15182. shlibpath_var=LD_LIBRARY_PATH
  15183. shlibpath_overrides_runpath=no
  15184. hardcode_into_libs=yes
  15185. ;;
  15186. uts4*)
  15187. version_type=linux # correct to gnu/linux during the next big refactor
  15188. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15189. soname_spec='$libname$release$shared_ext$major'
  15190. shlibpath_var=LD_LIBRARY_PATH
  15191. ;;
  15192. *)
  15193. dynamic_linker=no
  15194. ;;
  15195. esac
  15196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15197. printf "%s\n" "$dynamic_linker" >&6; }
  15198. test no = "$dynamic_linker" && can_build_shared=no
  15199. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15200. if test yes = "$GCC"; then
  15201. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15202. fi
  15203. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15204. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15205. fi
  15206. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15207. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15208. fi
  15209. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15210. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15211. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15212. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15213. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15214. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15216. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15217. hardcode_action_CXX=
  15218. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15219. test -n "$runpath_var_CXX" ||
  15220. test yes = "$hardcode_automatic_CXX"; then
  15221. # We can hardcode non-existent directories.
  15222. if test no != "$hardcode_direct_CXX" &&
  15223. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15224. # have to relink, otherwise we might link with an installed library
  15225. # when we should be linking with a yet-to-be-installed one
  15226. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15227. test no != "$hardcode_minus_L_CXX"; then
  15228. # Linking always hardcodes the temporary library directory.
  15229. hardcode_action_CXX=relink
  15230. else
  15231. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15232. hardcode_action_CXX=immediate
  15233. fi
  15234. else
  15235. # We cannot hardcode anything, or else we can only hardcode existing
  15236. # directories.
  15237. hardcode_action_CXX=unsupported
  15238. fi
  15239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15240. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15241. if test relink = "$hardcode_action_CXX" ||
  15242. test yes = "$inherit_rpath_CXX"; then
  15243. # Fast installation is not supported
  15244. enable_fast_install=no
  15245. elif test yes = "$shlibpath_overrides_runpath" ||
  15246. test no = "$enable_shared"; then
  15247. # Fast installation is not necessary
  15248. enable_fast_install=needless
  15249. fi
  15250. fi # test -n "$compiler"
  15251. CC=$lt_save_CC
  15252. CFLAGS=$lt_save_CFLAGS
  15253. LDCXX=$LD
  15254. LD=$lt_save_LD
  15255. GCC=$lt_save_GCC
  15256. with_gnu_ld=$lt_save_with_gnu_ld
  15257. lt_cv_path_LDCXX=$lt_cv_path_LD
  15258. lt_cv_path_LD=$lt_save_path_LD
  15259. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15260. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15261. fi # test yes != "$_lt_caught_CXX_error"
  15262. ac_ext=c
  15263. ac_cpp='$CPP $CPPFLAGS'
  15264. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15265. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15266. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15268. printf %s "checking for egrep... " >&6; }
  15269. if test ${ac_cv_path_EGREP+y}
  15270. then :
  15271. printf %s "(cached) " >&6
  15272. else $as_nop
  15273. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15274. then ac_cv_path_EGREP="$GREP -E"
  15275. else
  15276. if test -z "$EGREP"; then
  15277. ac_path_EGREP_found=false
  15278. # Loop through the user's path and test for each of PROGNAME-LIST
  15279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15280. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15281. do
  15282. IFS=$as_save_IFS
  15283. case $as_dir in #(((
  15284. '') as_dir=./ ;;
  15285. */) ;;
  15286. *) as_dir=$as_dir/ ;;
  15287. esac
  15288. for ac_prog in egrep
  15289. do
  15290. for ac_exec_ext in '' $ac_executable_extensions; do
  15291. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15292. as_fn_executable_p "$ac_path_EGREP" || continue
  15293. # Check for GNU ac_path_EGREP and select it if it is found.
  15294. # Check for GNU $ac_path_EGREP
  15295. case `"$ac_path_EGREP" --version 2>&1` in
  15296. *GNU*)
  15297. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15298. *)
  15299. ac_count=0
  15300. printf %s 0123456789 >"conftest.in"
  15301. while :
  15302. do
  15303. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15304. mv "conftest.tmp" "conftest.in"
  15305. cp "conftest.in" "conftest.nl"
  15306. printf "%s\n" 'EGREP' >> "conftest.nl"
  15307. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15308. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15309. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15310. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15311. # Best one so far, save it but keep looking for a better one
  15312. ac_cv_path_EGREP="$ac_path_EGREP"
  15313. ac_path_EGREP_max=$ac_count
  15314. fi
  15315. # 10*(2^10) chars as input seems more than enough
  15316. test $ac_count -gt 10 && break
  15317. done
  15318. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15319. esac
  15320. $ac_path_EGREP_found && break 3
  15321. done
  15322. done
  15323. done
  15324. IFS=$as_save_IFS
  15325. if test -z "$ac_cv_path_EGREP"; then
  15326. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15327. fi
  15328. else
  15329. ac_cv_path_EGREP=$EGREP
  15330. fi
  15331. fi
  15332. fi
  15333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15334. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15335. EGREP="$ac_cv_path_EGREP"
  15336. # Find a good install program. We prefer a C program (faster),
  15337. # so one script is as good as another. But avoid the broken or
  15338. # incompatible versions:
  15339. # SysV /etc/install, /usr/sbin/install
  15340. # SunOS /usr/etc/install
  15341. # IRIX /sbin/install
  15342. # AIX /bin/install
  15343. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15344. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15345. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15346. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15347. # OS/2's system install, which has a completely different semantic
  15348. # ./install, which can be erroneously created by make from ./install.sh.
  15349. # Reject install programs that cannot install multiple files.
  15350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15351. printf %s "checking for a BSD-compatible install... " >&6; }
  15352. if test -z "$INSTALL"; then
  15353. if test ${ac_cv_path_install+y}
  15354. then :
  15355. printf %s "(cached) " >&6
  15356. else $as_nop
  15357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15358. for as_dir in $PATH
  15359. do
  15360. IFS=$as_save_IFS
  15361. case $as_dir in #(((
  15362. '') as_dir=./ ;;
  15363. */) ;;
  15364. *) as_dir=$as_dir/ ;;
  15365. esac
  15366. # Account for fact that we put trailing slashes in our PATH walk.
  15367. case $as_dir in #((
  15368. ./ | /[cC]/* | \
  15369. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15370. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15371. /usr/ucb/* ) ;;
  15372. *)
  15373. # OSF1 and SCO ODT 3.0 have their own names for install.
  15374. # Don't use installbsd from OSF since it installs stuff as root
  15375. # by default.
  15376. for ac_prog in ginstall scoinst install; do
  15377. for ac_exec_ext in '' $ac_executable_extensions; do
  15378. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15379. if test $ac_prog = install &&
  15380. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15381. # AIX install. It has an incompatible calling convention.
  15382. :
  15383. elif test $ac_prog = install &&
  15384. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15385. # program-specific install script used by HP pwplus--don't use.
  15386. :
  15387. else
  15388. rm -rf conftest.one conftest.two conftest.dir
  15389. echo one > conftest.one
  15390. echo two > conftest.two
  15391. mkdir conftest.dir
  15392. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15393. test -s conftest.one && test -s conftest.two &&
  15394. test -s conftest.dir/conftest.one &&
  15395. test -s conftest.dir/conftest.two
  15396. then
  15397. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15398. break 3
  15399. fi
  15400. fi
  15401. fi
  15402. done
  15403. done
  15404. ;;
  15405. esac
  15406. done
  15407. IFS=$as_save_IFS
  15408. rm -rf conftest.one conftest.two conftest.dir
  15409. fi
  15410. if test ${ac_cv_path_install+y}; then
  15411. INSTALL=$ac_cv_path_install
  15412. else
  15413. # As a last resort, use the slow shell script. Don't cache a
  15414. # value for INSTALL within a source directory, because that will
  15415. # break other packages using the cache if that directory is
  15416. # removed, or if the value is a relative name.
  15417. INSTALL=$ac_install_sh
  15418. fi
  15419. fi
  15420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15421. printf "%s\n" "$INSTALL" >&6; }
  15422. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15423. # It thinks the first close brace ends the variable substitution.
  15424. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15425. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15426. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15428. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15429. set x ${MAKE-make}
  15430. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15431. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15432. then :
  15433. printf %s "(cached) " >&6
  15434. else $as_nop
  15435. cat >conftest.make <<\_ACEOF
  15436. SHELL = /bin/sh
  15437. all:
  15438. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15439. _ACEOF
  15440. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15441. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15442. *@@@%%%=?*=@@@%%%*)
  15443. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15444. *)
  15445. eval ac_cv_prog_make_${ac_make}_set=no;;
  15446. esac
  15447. rm -f conftest.make
  15448. fi
  15449. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15451. printf "%s\n" "yes" >&6; }
  15452. SET_MAKE=
  15453. else
  15454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15455. printf "%s\n" "no" >&6; }
  15456. SET_MAKE="MAKE=${MAKE-make}"
  15457. fi
  15458. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15459. if test -n "$ac_tool_prefix"; then
  15460. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15461. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15463. printf %s "checking for $ac_word... " >&6; }
  15464. if test ${ac_cv_path_PKG_CONFIG+y}
  15465. then :
  15466. printf %s "(cached) " >&6
  15467. else $as_nop
  15468. case $PKG_CONFIG in
  15469. [\\/]* | ?:[\\/]*)
  15470. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15471. ;;
  15472. *)
  15473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15474. for as_dir in $PATH
  15475. do
  15476. IFS=$as_save_IFS
  15477. case $as_dir in #(((
  15478. '') as_dir=./ ;;
  15479. */) ;;
  15480. *) as_dir=$as_dir/ ;;
  15481. esac
  15482. for ac_exec_ext in '' $ac_executable_extensions; do
  15483. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15484. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15485. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15486. break 2
  15487. fi
  15488. done
  15489. done
  15490. IFS=$as_save_IFS
  15491. ;;
  15492. esac
  15493. fi
  15494. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15495. if test -n "$PKG_CONFIG"; then
  15496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15497. printf "%s\n" "$PKG_CONFIG" >&6; }
  15498. else
  15499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15500. printf "%s\n" "no" >&6; }
  15501. fi
  15502. fi
  15503. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15504. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15505. # Extract the first word of "pkg-config", so it can be a program name with args.
  15506. set dummy pkg-config; ac_word=$2
  15507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15508. printf %s "checking for $ac_word... " >&6; }
  15509. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15510. then :
  15511. printf %s "(cached) " >&6
  15512. else $as_nop
  15513. case $ac_pt_PKG_CONFIG in
  15514. [\\/]* | ?:[\\/]*)
  15515. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15516. ;;
  15517. *)
  15518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15519. for as_dir in $PATH
  15520. do
  15521. IFS=$as_save_IFS
  15522. case $as_dir in #(((
  15523. '') as_dir=./ ;;
  15524. */) ;;
  15525. *) as_dir=$as_dir/ ;;
  15526. esac
  15527. for ac_exec_ext in '' $ac_executable_extensions; do
  15528. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15529. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15530. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15531. break 2
  15532. fi
  15533. done
  15534. done
  15535. IFS=$as_save_IFS
  15536. ;;
  15537. esac
  15538. fi
  15539. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15540. if test -n "$ac_pt_PKG_CONFIG"; then
  15541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15542. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15543. else
  15544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15545. printf "%s\n" "no" >&6; }
  15546. fi
  15547. if test "x$ac_pt_PKG_CONFIG" = x; then
  15548. PKG_CONFIG=""
  15549. else
  15550. case $cross_compiling:$ac_tool_warned in
  15551. yes:)
  15552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15553. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15554. ac_tool_warned=yes ;;
  15555. esac
  15556. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15557. fi
  15558. else
  15559. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15560. fi
  15561. fi
  15562. if test -n "$PKG_CONFIG"; then
  15563. _pkg_min_version=0.9.0
  15564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15565. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15566. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15568. printf "%s\n" "yes" >&6; }
  15569. else
  15570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15571. printf "%s\n" "no" >&6; }
  15572. PKG_CONFIG=""
  15573. fi
  15574. fi
  15575. if test -z "$AWK" ; then
  15576. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15577. fi
  15578. for ac_prog in gsort sort
  15579. do
  15580. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15581. set dummy $ac_prog; ac_word=$2
  15582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15583. printf %s "checking for $ac_word... " >&6; }
  15584. if test ${ac_cv_prog_SORT+y}
  15585. then :
  15586. printf %s "(cached) " >&6
  15587. else $as_nop
  15588. if test -n "$SORT"; then
  15589. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15590. else
  15591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15592. for as_dir in $PATH
  15593. do
  15594. IFS=$as_save_IFS
  15595. case $as_dir in #(((
  15596. '') as_dir=./ ;;
  15597. */) ;;
  15598. *) as_dir=$as_dir/ ;;
  15599. esac
  15600. for ac_exec_ext in '' $ac_executable_extensions; do
  15601. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15602. ac_cv_prog_SORT="$ac_prog"
  15603. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15604. break 2
  15605. fi
  15606. done
  15607. done
  15608. IFS=$as_save_IFS
  15609. fi
  15610. fi
  15611. SORT=$ac_cv_prog_SORT
  15612. if test -n "$SORT"; then
  15613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15614. printf "%s\n" "$SORT" >&6; }
  15615. else
  15616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15617. printf "%s\n" "no" >&6; }
  15618. fi
  15619. test -n "$SORT" && break
  15620. done
  15621. test -n "$SORT" || SORT="false"
  15622. if ! "$SORT" -V </dev/null >/dev/null
  15623. then :
  15624. as_fn_error $? "GNU sort(1) is required" "$LINENO" 5
  15625. fi
  15626. # Check whether --enable-largefile was given.
  15627. if test ${enable_largefile+y}
  15628. then :
  15629. enableval=$enable_largefile;
  15630. fi
  15631. if test "$enable_largefile" != no; then
  15632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15633. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15634. if test ${ac_cv_sys_largefile_CC+y}
  15635. then :
  15636. printf %s "(cached) " >&6
  15637. else $as_nop
  15638. ac_cv_sys_largefile_CC=no
  15639. if test "$GCC" != yes; then
  15640. ac_save_CC=$CC
  15641. while :; do
  15642. # IRIX 6.2 and later do not support large files by default,
  15643. # so use the C compiler's -n32 option if that helps.
  15644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15645. /* end confdefs.h. */
  15646. #include <sys/types.h>
  15647. /* Check that off_t can represent 2**63 - 1 correctly.
  15648. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15649. since some C++ compilers masquerading as C compilers
  15650. incorrectly reject 9223372036854775807. */
  15651. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15652. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15653. && LARGE_OFF_T % 2147483647 == 1)
  15654. ? 1 : -1];
  15655. int
  15656. main (void)
  15657. {
  15658. ;
  15659. return 0;
  15660. }
  15661. _ACEOF
  15662. if ac_fn_c_try_compile "$LINENO"
  15663. then :
  15664. break
  15665. fi
  15666. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15667. CC="$CC -n32"
  15668. if ac_fn_c_try_compile "$LINENO"
  15669. then :
  15670. ac_cv_sys_largefile_CC=' -n32'; break
  15671. fi
  15672. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15673. break
  15674. done
  15675. CC=$ac_save_CC
  15676. rm -f conftest.$ac_ext
  15677. fi
  15678. fi
  15679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15680. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15681. if test "$ac_cv_sys_largefile_CC" != no; then
  15682. CC=$CC$ac_cv_sys_largefile_CC
  15683. fi
  15684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15685. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15686. if test ${ac_cv_sys_file_offset_bits+y}
  15687. then :
  15688. printf %s "(cached) " >&6
  15689. else $as_nop
  15690. while :; do
  15691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15692. /* end confdefs.h. */
  15693. #include <sys/types.h>
  15694. /* Check that off_t can represent 2**63 - 1 correctly.
  15695. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15696. since some C++ compilers masquerading as C compilers
  15697. incorrectly reject 9223372036854775807. */
  15698. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15699. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15700. && LARGE_OFF_T % 2147483647 == 1)
  15701. ? 1 : -1];
  15702. int
  15703. main (void)
  15704. {
  15705. ;
  15706. return 0;
  15707. }
  15708. _ACEOF
  15709. if ac_fn_c_try_compile "$LINENO"
  15710. then :
  15711. ac_cv_sys_file_offset_bits=no; break
  15712. fi
  15713. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15715. /* end confdefs.h. */
  15716. #define _FILE_OFFSET_BITS 64
  15717. #include <sys/types.h>
  15718. /* Check that off_t can represent 2**63 - 1 correctly.
  15719. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15720. since some C++ compilers masquerading as C compilers
  15721. incorrectly reject 9223372036854775807. */
  15722. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15723. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15724. && LARGE_OFF_T % 2147483647 == 1)
  15725. ? 1 : -1];
  15726. int
  15727. main (void)
  15728. {
  15729. ;
  15730. return 0;
  15731. }
  15732. _ACEOF
  15733. if ac_fn_c_try_compile "$LINENO"
  15734. then :
  15735. ac_cv_sys_file_offset_bits=64; break
  15736. fi
  15737. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15738. ac_cv_sys_file_offset_bits=unknown
  15739. break
  15740. done
  15741. fi
  15742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15743. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15744. case $ac_cv_sys_file_offset_bits in #(
  15745. no | unknown) ;;
  15746. *)
  15747. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15748. ;;
  15749. esac
  15750. rm -rf conftest*
  15751. if test $ac_cv_sys_file_offset_bits = unknown; then
  15752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15753. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15754. if test ${ac_cv_sys_large_files+y}
  15755. then :
  15756. printf %s "(cached) " >&6
  15757. else $as_nop
  15758. while :; do
  15759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15760. /* end confdefs.h. */
  15761. #include <sys/types.h>
  15762. /* Check that off_t can represent 2**63 - 1 correctly.
  15763. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15764. since some C++ compilers masquerading as C compilers
  15765. incorrectly reject 9223372036854775807. */
  15766. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15767. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15768. && LARGE_OFF_T % 2147483647 == 1)
  15769. ? 1 : -1];
  15770. int
  15771. main (void)
  15772. {
  15773. ;
  15774. return 0;
  15775. }
  15776. _ACEOF
  15777. if ac_fn_c_try_compile "$LINENO"
  15778. then :
  15779. ac_cv_sys_large_files=no; break
  15780. fi
  15781. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15783. /* end confdefs.h. */
  15784. #define _LARGE_FILES 1
  15785. #include <sys/types.h>
  15786. /* Check that off_t can represent 2**63 - 1 correctly.
  15787. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15788. since some C++ compilers masquerading as C compilers
  15789. incorrectly reject 9223372036854775807. */
  15790. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15791. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15792. && LARGE_OFF_T % 2147483647 == 1)
  15793. ? 1 : -1];
  15794. int
  15795. main (void)
  15796. {
  15797. ;
  15798. return 0;
  15799. }
  15800. _ACEOF
  15801. if ac_fn_c_try_compile "$LINENO"
  15802. then :
  15803. ac_cv_sys_large_files=1; break
  15804. fi
  15805. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15806. ac_cv_sys_large_files=unknown
  15807. break
  15808. done
  15809. fi
  15810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15811. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15812. case $ac_cv_sys_large_files in #(
  15813. no | unknown) ;;
  15814. *)
  15815. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15816. ;;
  15817. esac
  15818. rm -rf conftest*
  15819. fi
  15820. fi
  15821. case "$host" in
  15822. *-*-mingw*)
  15823. # Except on msys, where make can't handle full pathnames (bug 1972)
  15824. ;;
  15825. *)
  15826. srcdir=`cd $srcdir && pwd`
  15827. ;;
  15828. esac
  15829. INCLUDE="-I$srcdir/include"
  15830. case "$host" in
  15831. *-*-nto-qnx*)
  15832. ;;
  15833. *)
  15834. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15835. ;;
  15836. esac
  15837. case "$host" in
  15838. *-*-haiku*)
  15839. LINKER='$(CXX)'
  15840. LIBTOOLLINKERTAG='CXX'
  15841. ;;
  15842. *)
  15843. LINKER='$(CC)'
  15844. LIBTOOLLINKERTAG='CC'
  15845. ;;
  15846. esac
  15847. if test x$srcdir != x.; then
  15848. INCLUDE="-Iinclude $INCLUDE"
  15849. elif test -d .git; then
  15850. as_fn_error $? "
  15851. *** When building from a git clone you should configure and build in a
  15852. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15853. " "$LINENO" 5
  15854. fi
  15855. BASE_CFLAGS=""
  15856. BASE_LDFLAGS=""
  15857. case "$host" in
  15858. *-*-cygwin*)
  15859. # We build SDL on cygwin without the UNIX emulation layer
  15860. save_CFLAGS="$CFLAGS"
  15861. have_no_cygwin=no
  15862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15863. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15864. CFLAGS="$save_CFLAGS -mno-cygwin"
  15865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15866. /* end confdefs.h. */
  15867. int
  15868. main (void)
  15869. {
  15870. ;
  15871. return 0;
  15872. }
  15873. _ACEOF
  15874. if ac_fn_c_try_compile "$LINENO"
  15875. then :
  15876. have_no_cygwin=yes
  15877. fi
  15878. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15880. printf "%s\n" "$have_no_cygwin" >&6; }
  15881. CFLAGS="$save_CFLAGS"
  15882. if test x$have_no_cygwin = xyes; then
  15883. BASE_CFLAGS="-mno-cygwin"
  15884. BASE_LDFLAGS="-mno-cygwin"
  15885. fi
  15886. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15887. ;;
  15888. esac
  15889. # Uncomment the following line if you want to force SDL and applications
  15890. # built with it to be compiled for a particular architecture.
  15891. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15892. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15893. # The default optimization for SDL is -O3 (Bug #31)
  15894. if test "x$orig_CFLAGS" = x; then
  15895. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15896. fi
  15897. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15898. BUILD_LDFLAGS="$LDFLAGS"
  15899. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15900. ## These are common directories to find software packages
  15901. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15902. # if test -d $path/include; then
  15903. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15904. # fi
  15905. # if test -d $path/lib; then
  15906. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15907. # fi
  15908. #done
  15909. SDL_CFLAGS="$BASE_CFLAGS"
  15910. SDL_LIBS="-lSDL2"
  15911. if test "x$BASE_LDFLAGS" != x; then
  15912. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15913. fi
  15914. if test "x$EXTRA_CFLAGS" != x; then
  15915. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15916. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15917. fi
  15918. if test "x$EXTRA_LDFLAGS" != x; then
  15919. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15920. fi
  15921. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15922. find_lib()
  15923. {
  15924. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15925. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15926. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15927. if test "$cross_compiling" = yes; then
  15928. host_lib_path=""
  15929. else
  15930. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15931. fi
  15932. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15933. 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`
  15934. if test x$lib != x; then
  15935. echo $lib
  15936. return
  15937. fi
  15938. done
  15939. }
  15940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15941. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15942. if test ${ac_cv_c_const+y}
  15943. then :
  15944. printf %s "(cached) " >&6
  15945. else $as_nop
  15946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15947. /* end confdefs.h. */
  15948. int
  15949. main (void)
  15950. {
  15951. #ifndef __cplusplus
  15952. /* Ultrix mips cc rejects this sort of thing. */
  15953. typedef int charset[2];
  15954. const charset cs = { 0, 0 };
  15955. /* SunOS 4.1.1 cc rejects this. */
  15956. char const *const *pcpcc;
  15957. char **ppc;
  15958. /* NEC SVR4.0.2 mips cc rejects this. */
  15959. struct point {int x, y;};
  15960. static struct point const zero = {0,0};
  15961. /* IBM XL C 1.02.0.0 rejects this.
  15962. It does not let you subtract one const X* pointer from another in
  15963. an arm of an if-expression whose if-part is not a constant
  15964. expression */
  15965. const char *g = "string";
  15966. pcpcc = &g + (g ? g-g : 0);
  15967. /* HPUX 7.0 cc rejects these. */
  15968. ++pcpcc;
  15969. ppc = (char**) pcpcc;
  15970. pcpcc = (char const *const *) ppc;
  15971. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15972. char tx;
  15973. char *t = &tx;
  15974. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15975. *t++ = 0;
  15976. if (s) return 0;
  15977. }
  15978. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15979. int x[] = {25, 17};
  15980. const int *foo = &x[0];
  15981. ++foo;
  15982. }
  15983. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15984. typedef const int *iptr;
  15985. iptr p = 0;
  15986. ++p;
  15987. }
  15988. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  15989. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15990. struct s { int j; const int *ap[3]; } bx;
  15991. struct s *b = &bx; b->j = 5;
  15992. }
  15993. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15994. const int foo = 10;
  15995. if (!foo) return 0;
  15996. }
  15997. return !cs[0] && !zero.x;
  15998. #endif
  15999. ;
  16000. return 0;
  16001. }
  16002. _ACEOF
  16003. if ac_fn_c_try_compile "$LINENO"
  16004. then :
  16005. ac_cv_c_const=yes
  16006. else $as_nop
  16007. ac_cv_c_const=no
  16008. fi
  16009. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16010. fi
  16011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16012. printf "%s\n" "$ac_cv_c_const" >&6; }
  16013. if test $ac_cv_c_const = no; then
  16014. printf "%s\n" "#define const /**/" >>confdefs.h
  16015. fi
  16016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16017. printf %s "checking for inline... " >&6; }
  16018. if test ${ac_cv_c_inline+y}
  16019. then :
  16020. printf %s "(cached) " >&6
  16021. else $as_nop
  16022. ac_cv_c_inline=no
  16023. for ac_kw in inline __inline__ __inline; do
  16024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16025. /* end confdefs.h. */
  16026. #ifndef __cplusplus
  16027. typedef int foo_t;
  16028. static $ac_kw foo_t static_foo (void) {return 0; }
  16029. $ac_kw foo_t foo (void) {return 0; }
  16030. #endif
  16031. _ACEOF
  16032. if ac_fn_c_try_compile "$LINENO"
  16033. then :
  16034. ac_cv_c_inline=$ac_kw
  16035. fi
  16036. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16037. test "$ac_cv_c_inline" != no && break
  16038. done
  16039. fi
  16040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16041. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16042. case $ac_cv_c_inline in
  16043. inline | yes) ;;
  16044. *)
  16045. case $ac_cv_c_inline in
  16046. no) ac_val=;;
  16047. *) ac_val=$ac_cv_c_inline;;
  16048. esac
  16049. cat >>confdefs.h <<_ACEOF
  16050. #ifndef __cplusplus
  16051. #define inline $ac_val
  16052. #endif
  16053. _ACEOF
  16054. ;;
  16055. esac
  16056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16057. printf %s "checking for working volatile... " >&6; }
  16058. if test ${ac_cv_c_volatile+y}
  16059. then :
  16060. printf %s "(cached) " >&6
  16061. else $as_nop
  16062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16063. /* end confdefs.h. */
  16064. int
  16065. main (void)
  16066. {
  16067. volatile int x;
  16068. int * volatile y = (int *) 0;
  16069. return !x && !y;
  16070. ;
  16071. return 0;
  16072. }
  16073. _ACEOF
  16074. if ac_fn_c_try_compile "$LINENO"
  16075. then :
  16076. ac_cv_c_volatile=yes
  16077. else $as_nop
  16078. ac_cv_c_volatile=no
  16079. fi
  16080. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16081. fi
  16082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16083. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16084. if test $ac_cv_c_volatile = no; then
  16085. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16086. fi
  16087. # Check whether --enable-assertions was given.
  16088. if test ${enable_assertions+y}
  16089. then :
  16090. enableval=$enable_assertions;
  16091. else $as_nop
  16092. enable_assertions=auto
  16093. fi
  16094. case "$enable_assertions" in
  16095. auto) # Use optimization settings to determine assertion level
  16096. ;;
  16097. disabled)
  16098. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16099. ;;
  16100. release)
  16101. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16102. ;;
  16103. enabled)
  16104. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16105. ;;
  16106. paranoid)
  16107. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16108. ;;
  16109. *)
  16110. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16111. ;;
  16112. esac
  16113. 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"
  16114. # Check whether --enable-dependency-tracking was given.
  16115. if test ${enable_dependency_tracking+y}
  16116. then :
  16117. enableval=$enable_dependency_tracking;
  16118. else $as_nop
  16119. enable_dependency_tracking=yes
  16120. fi
  16121. if test x$enable_dependency_tracking = xyes; then
  16122. have_gcc_mmd_mt=no
  16123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16124. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16126. /* end confdefs.h. */
  16127. #if !defined(__GNUC__) || __GNUC__ < 3
  16128. #error Dependency tracking requires GCC 3.0 or newer
  16129. #endif
  16130. int
  16131. main (void)
  16132. {
  16133. ;
  16134. return 0;
  16135. }
  16136. _ACEOF
  16137. if ac_fn_c_try_compile "$LINENO"
  16138. then :
  16139. have_gcc_mmd_mt=yes
  16140. fi
  16141. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16143. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16144. if test x$have_gcc_mmd_mt = xyes; then
  16145. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16146. fi
  16147. fi
  16148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16149. printf %s "checking for linker option --no-undefined... " >&6; }
  16150. have_no_undefined=no
  16151. case "$host" in
  16152. *-*-openbsd*)
  16153. ;;
  16154. *)
  16155. save_LDFLAGS="$LDFLAGS"
  16156. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16158. /* end confdefs.h. */
  16159. int
  16160. main (void)
  16161. {
  16162. ;
  16163. return 0;
  16164. }
  16165. _ACEOF
  16166. if ac_fn_c_try_link "$LINENO"
  16167. then :
  16168. have_no_undefined=yes
  16169. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16170. fi
  16171. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16172. conftest$ac_exeext conftest.$ac_ext
  16173. LDFLAGS="$save_LDFLAGS"
  16174. ;;
  16175. esac
  16176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16177. printf "%s\n" "$have_no_undefined" >&6; }
  16178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16179. printf %s "checking for linker option --dynamicbase... " >&6; }
  16180. have_dynamicbase=no
  16181. case "$host" in
  16182. *)
  16183. save_LDFLAGS="$LDFLAGS"
  16184. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16186. /* end confdefs.h. */
  16187. int
  16188. main (void)
  16189. {
  16190. ;
  16191. return 0;
  16192. }
  16193. _ACEOF
  16194. if ac_fn_c_try_link "$LINENO"
  16195. then :
  16196. have_dynamicbase=yes
  16197. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16198. fi
  16199. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16200. conftest$ac_exeext conftest.$ac_ext
  16201. LDFLAGS="$save_LDFLAGS"
  16202. ;;
  16203. esac
  16204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16205. printf "%s\n" "$have_dynamicbase" >&6; }
  16206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16207. printf %s "checking for linker option --nxcompat... " >&6; }
  16208. have_nxcompat=no
  16209. case "$host" in
  16210. *)
  16211. save_LDFLAGS="$LDFLAGS"
  16212. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16214. /* end confdefs.h. */
  16215. int
  16216. main (void)
  16217. {
  16218. ;
  16219. return 0;
  16220. }
  16221. _ACEOF
  16222. if ac_fn_c_try_link "$LINENO"
  16223. then :
  16224. have_nxcompat=yes
  16225. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16226. fi
  16227. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16228. conftest$ac_exeext conftest.$ac_ext
  16229. LDFLAGS="$save_LDFLAGS"
  16230. ;;
  16231. esac
  16232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16233. printf "%s\n" "$have_nxcompat" >&6; }
  16234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16235. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16236. have_high_entropy_va=no
  16237. case "$host" in
  16238. *)
  16239. save_LDFLAGS="$LDFLAGS"
  16240. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16242. /* end confdefs.h. */
  16243. int
  16244. main (void)
  16245. {
  16246. ;
  16247. return 0;
  16248. }
  16249. _ACEOF
  16250. if ac_fn_c_try_link "$LINENO"
  16251. then :
  16252. have_high_entropy_va=yes
  16253. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16254. fi
  16255. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16256. conftest$ac_exeext conftest.$ac_ext
  16257. LDFLAGS="$save_LDFLAGS"
  16258. ;;
  16259. esac
  16260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16261. printf "%s\n" "$have_high_entropy_va" >&6; }
  16262. # Check whether --enable-libc was given.
  16263. if test ${enable_libc+y}
  16264. then :
  16265. enableval=$enable_libc;
  16266. else $as_nop
  16267. enable_libc=yes
  16268. fi
  16269. if test x$enable_libc = xyes; then
  16270. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16271. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16272. if test "x$ac_cv_header_sys_types_h" = xyes
  16273. then :
  16274. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16275. fi
  16276. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16277. if test "x$ac_cv_header_stdio_h" = xyes
  16278. then :
  16279. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16280. fi
  16281. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16282. if test "x$ac_cv_header_stdlib_h" = xyes
  16283. then :
  16284. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16285. fi
  16286. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16287. if test "x$ac_cv_header_stddef_h" = xyes
  16288. then :
  16289. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16290. fi
  16291. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16292. if test "x$ac_cv_header_stdarg_h" = xyes
  16293. then :
  16294. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16295. fi
  16296. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16297. if test "x$ac_cv_header_malloc_h" = xyes
  16298. then :
  16299. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16300. fi
  16301. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16302. if test "x$ac_cv_header_memory_h" = xyes
  16303. then :
  16304. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16305. fi
  16306. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16307. if test "x$ac_cv_header_string_h" = xyes
  16308. then :
  16309. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16310. fi
  16311. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16312. if test "x$ac_cv_header_strings_h" = xyes
  16313. then :
  16314. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16315. fi
  16316. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16317. if test "x$ac_cv_header_wchar_h" = xyes
  16318. then :
  16319. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16320. fi
  16321. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16322. if test "x$ac_cv_header_inttypes_h" = xyes
  16323. then :
  16324. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16325. fi
  16326. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16327. if test "x$ac_cv_header_stdint_h" = xyes
  16328. then :
  16329. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16330. fi
  16331. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16332. if test "x$ac_cv_header_limits_h" = xyes
  16333. then :
  16334. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16335. fi
  16336. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16337. if test "x$ac_cv_header_ctype_h" = xyes
  16338. then :
  16339. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16340. fi
  16341. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16342. if test "x$ac_cv_header_math_h" = xyes
  16343. then :
  16344. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16345. fi
  16346. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16347. if test "x$ac_cv_header_float_h" = xyes
  16348. then :
  16349. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16350. fi
  16351. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16352. if test "x$ac_cv_header_iconv_h" = xyes
  16353. then :
  16354. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16355. fi
  16356. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16357. if test "x$ac_cv_header_signal_h" = xyes
  16358. then :
  16359. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16360. fi
  16361. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16362. if test "x$ac_cv_type_size_t" = xyes
  16363. then :
  16364. else $as_nop
  16365. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16366. fi
  16367. ac_ext=c
  16368. ac_cpp='$CPP $CPPFLAGS'
  16369. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16370. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16371. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16373. printf %s "checking how to run the C preprocessor... " >&6; }
  16374. # On Suns, sometimes $CPP names a directory.
  16375. if test -n "$CPP" && test -d "$CPP"; then
  16376. CPP=
  16377. fi
  16378. if test -z "$CPP"; then
  16379. if test ${ac_cv_prog_CPP+y}
  16380. then :
  16381. printf %s "(cached) " >&6
  16382. else $as_nop
  16383. # Double quotes because $CC needs to be expanded
  16384. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16385. do
  16386. ac_preproc_ok=false
  16387. for ac_c_preproc_warn_flag in '' yes
  16388. do
  16389. # Use a header file that comes with gcc, so configuring glibc
  16390. # with a fresh cross-compiler works.
  16391. # On the NeXT, cc -E runs the code through the compiler's parser,
  16392. # not just through cpp. "Syntax error" is here to catch this case.
  16393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16394. /* end confdefs.h. */
  16395. #include <limits.h>
  16396. Syntax error
  16397. _ACEOF
  16398. if ac_fn_c_try_cpp "$LINENO"
  16399. then :
  16400. else $as_nop
  16401. # Broken: fails on valid input.
  16402. continue
  16403. fi
  16404. rm -f conftest.err conftest.i conftest.$ac_ext
  16405. # OK, works on sane cases. Now check whether nonexistent headers
  16406. # can be detected and how.
  16407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16408. /* end confdefs.h. */
  16409. #include <ac_nonexistent.h>
  16410. _ACEOF
  16411. if ac_fn_c_try_cpp "$LINENO"
  16412. then :
  16413. # Broken: success on invalid input.
  16414. continue
  16415. else $as_nop
  16416. # Passes both tests.
  16417. ac_preproc_ok=:
  16418. break
  16419. fi
  16420. rm -f conftest.err conftest.i conftest.$ac_ext
  16421. done
  16422. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16423. rm -f conftest.i conftest.err conftest.$ac_ext
  16424. if $ac_preproc_ok
  16425. then :
  16426. break
  16427. fi
  16428. done
  16429. ac_cv_prog_CPP=$CPP
  16430. fi
  16431. CPP=$ac_cv_prog_CPP
  16432. else
  16433. ac_cv_prog_CPP=$CPP
  16434. fi
  16435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16436. printf "%s\n" "$CPP" >&6; }
  16437. ac_preproc_ok=false
  16438. for ac_c_preproc_warn_flag in '' yes
  16439. do
  16440. # Use a header file that comes with gcc, so configuring glibc
  16441. # with a fresh cross-compiler works.
  16442. # On the NeXT, cc -E runs the code through the compiler's parser,
  16443. # not just through cpp. "Syntax error" is here to catch this case.
  16444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16445. /* end confdefs.h. */
  16446. #include <limits.h>
  16447. Syntax error
  16448. _ACEOF
  16449. if ac_fn_c_try_cpp "$LINENO"
  16450. then :
  16451. else $as_nop
  16452. # Broken: fails on valid input.
  16453. continue
  16454. fi
  16455. rm -f conftest.err conftest.i conftest.$ac_ext
  16456. # OK, works on sane cases. Now check whether nonexistent headers
  16457. # can be detected and how.
  16458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16459. /* end confdefs.h. */
  16460. #include <ac_nonexistent.h>
  16461. _ACEOF
  16462. if ac_fn_c_try_cpp "$LINENO"
  16463. then :
  16464. # Broken: success on invalid input.
  16465. continue
  16466. else $as_nop
  16467. # Passes both tests.
  16468. ac_preproc_ok=:
  16469. break
  16470. fi
  16471. rm -f conftest.err conftest.i conftest.$ac_ext
  16472. done
  16473. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16474. rm -f conftest.i conftest.err conftest.$ac_ext
  16475. if $ac_preproc_ok
  16476. then :
  16477. else $as_nop
  16478. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16479. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16480. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16481. See \`config.log' for more details" "$LINENO" 5; }
  16482. fi
  16483. ac_ext=c
  16484. ac_cpp='$CPP $CPPFLAGS'
  16485. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16486. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16487. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16489. printf %s "checking for M_PI in math.h... " >&6; }
  16490. if test ${ac_cv_define_M_PI+y}
  16491. then :
  16492. printf %s "(cached) " >&6
  16493. else $as_nop
  16494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16495. /* end confdefs.h. */
  16496. #include <math.h>
  16497. #ifdef M_PI
  16498. YES_IS_DEFINED
  16499. #endif
  16500. _ACEOF
  16501. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16502. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16503. then :
  16504. ac_cv_define_M_PI=yes
  16505. else $as_nop
  16506. ac_cv_define_M_PI=no
  16507. fi
  16508. rm -rf conftest*
  16509. fi
  16510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16511. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16512. if test "$ac_cv_define_M_PI" = "yes" ; then
  16513. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16514. fi
  16515. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16516. # for constant arguments. Useless!
  16517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16518. printf %s "checking for working alloca.h... " >&6; }
  16519. if test ${ac_cv_working_alloca_h+y}
  16520. then :
  16521. printf %s "(cached) " >&6
  16522. else $as_nop
  16523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16524. /* end confdefs.h. */
  16525. #include <alloca.h>
  16526. int
  16527. main (void)
  16528. {
  16529. char *p = (char *) alloca (2 * sizeof (int));
  16530. if (p) return 0;
  16531. ;
  16532. return 0;
  16533. }
  16534. _ACEOF
  16535. if ac_fn_c_try_link "$LINENO"
  16536. then :
  16537. ac_cv_working_alloca_h=yes
  16538. else $as_nop
  16539. ac_cv_working_alloca_h=no
  16540. fi
  16541. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16542. conftest$ac_exeext conftest.$ac_ext
  16543. fi
  16544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16545. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16546. if test $ac_cv_working_alloca_h = yes; then
  16547. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16548. fi
  16549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16550. printf %s "checking for alloca... " >&6; }
  16551. if test ${ac_cv_func_alloca_works+y}
  16552. then :
  16553. printf %s "(cached) " >&6
  16554. else $as_nop
  16555. if test $ac_cv_working_alloca_h = yes; then
  16556. ac_cv_func_alloca_works=yes
  16557. else
  16558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16559. /* end confdefs.h. */
  16560. #include <stdlib.h>
  16561. #include <stddef.h>
  16562. #ifndef alloca
  16563. # ifdef __GNUC__
  16564. # define alloca __builtin_alloca
  16565. # elif defined _MSC_VER
  16566. # include <malloc.h>
  16567. # define alloca _alloca
  16568. # else
  16569. # ifdef __cplusplus
  16570. extern "C"
  16571. # endif
  16572. void *alloca (size_t);
  16573. # endif
  16574. #endif
  16575. int
  16576. main (void)
  16577. {
  16578. char *p = (char *) alloca (1);
  16579. if (p) return 0;
  16580. ;
  16581. return 0;
  16582. }
  16583. _ACEOF
  16584. if ac_fn_c_try_link "$LINENO"
  16585. then :
  16586. ac_cv_func_alloca_works=yes
  16587. else $as_nop
  16588. ac_cv_func_alloca_works=no
  16589. fi
  16590. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16591. conftest$ac_exeext conftest.$ac_ext
  16592. fi
  16593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16594. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16595. fi
  16596. if test $ac_cv_func_alloca_works = yes; then
  16597. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16598. else
  16599. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16600. # that cause trouble. Some versions do not even contain alloca or
  16601. # contain a buggy version. If you still want to use their alloca,
  16602. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16603. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16604. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16606. printf %s "checking stack direction for C alloca... " >&6; }
  16607. if test ${ac_cv_c_stack_direction+y}
  16608. then :
  16609. printf %s "(cached) " >&6
  16610. else $as_nop
  16611. if test "$cross_compiling" = yes
  16612. then :
  16613. ac_cv_c_stack_direction=0
  16614. else $as_nop
  16615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16616. /* end confdefs.h. */
  16617. $ac_includes_default
  16618. int
  16619. find_stack_direction (int *addr, int depth)
  16620. {
  16621. int dir, dummy = 0;
  16622. if (! addr)
  16623. addr = &dummy;
  16624. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16625. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16626. return dir + dummy;
  16627. }
  16628. int
  16629. main (int argc, char **argv)
  16630. {
  16631. return find_stack_direction (0, argc + !argv + 20) < 0;
  16632. }
  16633. _ACEOF
  16634. if ac_fn_c_try_run "$LINENO"
  16635. then :
  16636. ac_cv_c_stack_direction=1
  16637. else $as_nop
  16638. ac_cv_c_stack_direction=-1
  16639. fi
  16640. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16641. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16642. fi
  16643. fi
  16644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16645. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16646. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16647. fi
  16648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  16649. printf %s "checking for working memcmp... " >&6; }
  16650. if test ${ac_cv_func_memcmp_working+y}
  16651. then :
  16652. printf %s "(cached) " >&6
  16653. else $as_nop
  16654. if test "$cross_compiling" = yes
  16655. then :
  16656. ac_cv_func_memcmp_working=no
  16657. else $as_nop
  16658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16659. /* end confdefs.h. */
  16660. $ac_includes_default
  16661. int
  16662. main (void)
  16663. {
  16664. /* Some versions of memcmp are not 8-bit clean. */
  16665. char c0 = '\100', c1 = '\200', c2 = '\201';
  16666. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16667. return 1;
  16668. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16669. or more and with at least one buffer not starting on a 4-byte boundary.
  16670. William Lewis provided this test program. */
  16671. {
  16672. char foo[21];
  16673. char bar[21];
  16674. int i;
  16675. for (i = 0; i < 4; i++)
  16676. {
  16677. char *a = foo + i;
  16678. char *b = bar + i;
  16679. strcpy (a, "--------01111111");
  16680. strcpy (b, "--------10000000");
  16681. if (memcmp (a, b, 16) >= 0)
  16682. return 1;
  16683. }
  16684. return 0;
  16685. }
  16686. ;
  16687. return 0;
  16688. }
  16689. _ACEOF
  16690. if ac_fn_c_try_run "$LINENO"
  16691. then :
  16692. ac_cv_func_memcmp_working=yes
  16693. else $as_nop
  16694. ac_cv_func_memcmp_working=no
  16695. fi
  16696. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16697. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16698. fi
  16699. fi
  16700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  16701. printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
  16702. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16703. *" memcmp.$ac_objext "* ) ;;
  16704. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16705. ;;
  16706. esac
  16707. if test x$ac_cv_func_memcmp_working = xyes; then
  16708. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16709. fi
  16710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  16711. printf %s "checking for working strtod... " >&6; }
  16712. if test ${ac_cv_func_strtod+y}
  16713. then :
  16714. printf %s "(cached) " >&6
  16715. else $as_nop
  16716. if test "$cross_compiling" = yes
  16717. then :
  16718. ac_cv_func_strtod=no
  16719. else $as_nop
  16720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16721. /* end confdefs.h. */
  16722. $ac_includes_default
  16723. #ifndef strtod
  16724. double strtod ();
  16725. #endif
  16726. int
  16727. main (void)
  16728. {
  16729. {
  16730. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  16731. char *string = " +69";
  16732. char *term;
  16733. double value;
  16734. value = strtod (string, &term);
  16735. if (value != 69 || term != (string + 4))
  16736. return 1;
  16737. }
  16738. {
  16739. /* Under Solaris 2.4, strtod returns the wrong value for the
  16740. terminating character under some conditions. */
  16741. char *string = "NaN";
  16742. char *term;
  16743. strtod (string, &term);
  16744. if (term != string && *(term - 1) == 0)
  16745. return 1;
  16746. }
  16747. return 0;
  16748. }
  16749. _ACEOF
  16750. if ac_fn_c_try_run "$LINENO"
  16751. then :
  16752. ac_cv_func_strtod=yes
  16753. else $as_nop
  16754. ac_cv_func_strtod=no
  16755. fi
  16756. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16757. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16758. fi
  16759. fi
  16760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  16761. printf "%s\n" "$ac_cv_func_strtod" >&6; }
  16762. if test $ac_cv_func_strtod = no; then
  16763. case " $LIBOBJS " in
  16764. *" strtod.$ac_objext "* ) ;;
  16765. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  16766. ;;
  16767. esac
  16768. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  16769. if test "x$ac_cv_func_pow" = xyes
  16770. then :
  16771. fi
  16772. if test $ac_cv_func_pow = no; then
  16773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  16774. printf %s "checking for pow in -lm... " >&6; }
  16775. if test ${ac_cv_lib_m_pow+y}
  16776. then :
  16777. printf %s "(cached) " >&6
  16778. else $as_nop
  16779. ac_check_lib_save_LIBS=$LIBS
  16780. LIBS="-lm $LIBS"
  16781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16782. /* end confdefs.h. */
  16783. /* Override any GCC internal prototype to avoid an error.
  16784. Use char because int might match the return type of a GCC
  16785. builtin and then its argument prototype would still apply. */
  16786. char pow ();
  16787. int
  16788. main (void)
  16789. {
  16790. return pow ();
  16791. ;
  16792. return 0;
  16793. }
  16794. _ACEOF
  16795. if ac_fn_c_try_link "$LINENO"
  16796. then :
  16797. ac_cv_lib_m_pow=yes
  16798. else $as_nop
  16799. ac_cv_lib_m_pow=no
  16800. fi
  16801. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16802. conftest$ac_exeext conftest.$ac_ext
  16803. LIBS=$ac_check_lib_save_LIBS
  16804. fi
  16805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  16806. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  16807. if test "x$ac_cv_lib_m_pow" = xyes
  16808. then :
  16809. POW_LIB=-lm
  16810. else $as_nop
  16811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  16812. printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  16813. fi
  16814. fi
  16815. fi
  16816. if test x$ac_cv_func_strtod = xyes; then
  16817. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16818. fi
  16819. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16820. if test "x$ac_cv_func_mprotect" = xyes
  16821. then :
  16822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16823. /* end confdefs.h. */
  16824. #include <sys/types.h>
  16825. #include <sys/mman.h>
  16826. int
  16827. main (void)
  16828. {
  16829. ;
  16830. return 0;
  16831. }
  16832. _ACEOF
  16833. if ac_fn_c_try_compile "$LINENO"
  16834. then :
  16835. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16836. fi
  16837. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16838. fi
  16839. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16840. if test "x$ac_cv_func_malloc" = xyes
  16841. then :
  16842. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16843. fi
  16844. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16845. if test "x$ac_cv_func_calloc" = xyes
  16846. then :
  16847. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16848. fi
  16849. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16850. if test "x$ac_cv_func_realloc" = xyes
  16851. then :
  16852. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16853. fi
  16854. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16855. if test "x$ac_cv_func_free" = xyes
  16856. then :
  16857. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16858. fi
  16859. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16860. if test "x$ac_cv_func_getenv" = xyes
  16861. then :
  16862. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16863. fi
  16864. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16865. if test "x$ac_cv_func_setenv" = xyes
  16866. then :
  16867. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16868. fi
  16869. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16870. if test "x$ac_cv_func_putenv" = xyes
  16871. then :
  16872. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16873. fi
  16874. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16875. if test "x$ac_cv_func_unsetenv" = xyes
  16876. then :
  16877. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16878. fi
  16879. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16880. if test "x$ac_cv_func_bsearch" = xyes
  16881. then :
  16882. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16883. fi
  16884. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16885. if test "x$ac_cv_func_qsort" = xyes
  16886. then :
  16887. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16888. fi
  16889. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16890. if test "x$ac_cv_func_abs" = xyes
  16891. then :
  16892. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16893. fi
  16894. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16895. if test "x$ac_cv_func_bcopy" = xyes
  16896. then :
  16897. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16898. fi
  16899. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16900. if test "x$ac_cv_func_memset" = xyes
  16901. then :
  16902. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16903. fi
  16904. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16905. if test "x$ac_cv_func_memcpy" = xyes
  16906. then :
  16907. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16908. fi
  16909. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16910. if test "x$ac_cv_func_memmove" = xyes
  16911. then :
  16912. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16913. fi
  16914. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16915. if test "x$ac_cv_func_wcslen" = xyes
  16916. then :
  16917. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16918. fi
  16919. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16920. if test "x$ac_cv_func_wcslcpy" = xyes
  16921. then :
  16922. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16923. fi
  16924. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16925. if test "x$ac_cv_func_wcslcat" = xyes
  16926. then :
  16927. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16928. fi
  16929. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16930. if test "x$ac_cv_func__wcsdup" = xyes
  16931. then :
  16932. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16933. fi
  16934. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16935. if test "x$ac_cv_func_wcsdup" = xyes
  16936. then :
  16937. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16938. fi
  16939. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16940. if test "x$ac_cv_func_wcsstr" = xyes
  16941. then :
  16942. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16943. fi
  16944. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16945. if test "x$ac_cv_func_wcscmp" = xyes
  16946. then :
  16947. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16948. fi
  16949. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16950. if test "x$ac_cv_func_wcsncmp" = xyes
  16951. then :
  16952. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16953. fi
  16954. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16955. if test "x$ac_cv_func_wcscasecmp" = xyes
  16956. then :
  16957. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16958. fi
  16959. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16960. if test "x$ac_cv_func__wcsicmp" = xyes
  16961. then :
  16962. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16963. fi
  16964. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16965. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16966. then :
  16967. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16968. fi
  16969. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16970. if test "x$ac_cv_func__wcsnicmp" = xyes
  16971. then :
  16972. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16973. fi
  16974. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16975. if test "x$ac_cv_func_strlen" = xyes
  16976. then :
  16977. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16978. fi
  16979. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16980. if test "x$ac_cv_func_strlcpy" = xyes
  16981. then :
  16982. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16983. fi
  16984. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16985. if test "x$ac_cv_func_strlcat" = xyes
  16986. then :
  16987. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16988. fi
  16989. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16990. if test "x$ac_cv_func__strrev" = xyes
  16991. then :
  16992. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16993. fi
  16994. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16995. if test "x$ac_cv_func__strupr" = xyes
  16996. then :
  16997. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16998. fi
  16999. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  17000. if test "x$ac_cv_func__strlwr" = xyes
  17001. then :
  17002. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  17003. fi
  17004. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  17005. if test "x$ac_cv_func_index" = xyes
  17006. then :
  17007. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  17008. fi
  17009. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  17010. if test "x$ac_cv_func_rindex" = xyes
  17011. then :
  17012. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  17013. fi
  17014. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  17015. if test "x$ac_cv_func_strchr" = xyes
  17016. then :
  17017. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  17018. fi
  17019. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  17020. if test "x$ac_cv_func_strrchr" = xyes
  17021. then :
  17022. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  17023. fi
  17024. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  17025. if test "x$ac_cv_func_strstr" = xyes
  17026. then :
  17027. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  17028. fi
  17029. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  17030. if test "x$ac_cv_func_strtok_r" = xyes
  17031. then :
  17032. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  17033. fi
  17034. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  17035. if test "x$ac_cv_func_itoa" = xyes
  17036. then :
  17037. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  17038. fi
  17039. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  17040. if test "x$ac_cv_func__ltoa" = xyes
  17041. then :
  17042. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  17043. fi
  17044. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  17045. if test "x$ac_cv_func__uitoa" = xyes
  17046. then :
  17047. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  17048. fi
  17049. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  17050. if test "x$ac_cv_func__ultoa" = xyes
  17051. then :
  17052. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  17053. fi
  17054. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  17055. if test "x$ac_cv_func_strtol" = xyes
  17056. then :
  17057. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  17058. fi
  17059. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  17060. if test "x$ac_cv_func_strtoul" = xyes
  17061. then :
  17062. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  17063. fi
  17064. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  17065. if test "x$ac_cv_func__i64toa" = xyes
  17066. then :
  17067. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  17068. fi
  17069. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  17070. if test "x$ac_cv_func__ui64toa" = xyes
  17071. then :
  17072. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  17073. fi
  17074. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  17075. if test "x$ac_cv_func_strtoll" = xyes
  17076. then :
  17077. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  17078. fi
  17079. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  17080. if test "x$ac_cv_func_strtoull" = xyes
  17081. then :
  17082. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  17083. fi
  17084. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  17085. if test "x$ac_cv_func_atoi" = xyes
  17086. then :
  17087. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  17088. fi
  17089. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  17090. if test "x$ac_cv_func_atof" = xyes
  17091. then :
  17092. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  17093. fi
  17094. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  17095. if test "x$ac_cv_func_strcmp" = xyes
  17096. then :
  17097. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  17098. fi
  17099. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  17100. if test "x$ac_cv_func_strncmp" = xyes
  17101. then :
  17102. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  17103. fi
  17104. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  17105. if test "x$ac_cv_func__stricmp" = xyes
  17106. then :
  17107. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  17108. fi
  17109. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  17110. if test "x$ac_cv_func_strcasecmp" = xyes
  17111. then :
  17112. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  17113. fi
  17114. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  17115. if test "x$ac_cv_func__strnicmp" = xyes
  17116. then :
  17117. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  17118. fi
  17119. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  17120. if test "x$ac_cv_func_strncasecmp" = xyes
  17121. then :
  17122. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  17123. fi
  17124. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  17125. if test "x$ac_cv_func_vsscanf" = xyes
  17126. then :
  17127. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  17128. fi
  17129. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  17130. if test "x$ac_cv_func_vsnprintf" = xyes
  17131. then :
  17132. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  17133. fi
  17134. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  17135. if test "x$ac_cv_func_fopen64" = xyes
  17136. then :
  17137. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17138. fi
  17139. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17140. if test "x$ac_cv_func_fseeko" = xyes
  17141. then :
  17142. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17143. fi
  17144. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17145. if test "x$ac_cv_func_fseeko64" = xyes
  17146. then :
  17147. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17148. fi
  17149. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17150. if test "x$ac_cv_func_sigaction" = xyes
  17151. then :
  17152. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17153. fi
  17154. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17155. if test "x$ac_cv_func_setjmp" = xyes
  17156. then :
  17157. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17158. fi
  17159. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17160. if test "x$ac_cv_func_nanosleep" = xyes
  17161. then :
  17162. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17163. fi
  17164. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17165. if test "x$ac_cv_func_sysconf" = xyes
  17166. then :
  17167. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17168. fi
  17169. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17170. if test "x$ac_cv_func_sysctlbyname" = xyes
  17171. then :
  17172. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17173. fi
  17174. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17175. if test "x$ac_cv_func_getauxval" = xyes
  17176. then :
  17177. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17178. fi
  17179. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17180. if test "x$ac_cv_func_elf_aux_info" = xyes
  17181. then :
  17182. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17183. fi
  17184. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17185. if test "x$ac_cv_func_poll" = xyes
  17186. then :
  17187. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17188. fi
  17189. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17190. if test "x$ac_cv_func__Exit" = xyes
  17191. then :
  17192. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17193. fi
  17194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17195. printf %s "checking for pow in -lm... " >&6; }
  17196. if test ${ac_cv_lib_m_pow+y}
  17197. then :
  17198. printf %s "(cached) " >&6
  17199. else $as_nop
  17200. ac_check_lib_save_LIBS=$LIBS
  17201. LIBS="-lm $LIBS"
  17202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17203. /* end confdefs.h. */
  17204. /* Override any GCC internal prototype to avoid an error.
  17205. Use char because int might match the return type of a GCC
  17206. builtin and then its argument prototype would still apply. */
  17207. char pow ();
  17208. int
  17209. main (void)
  17210. {
  17211. return pow ();
  17212. ;
  17213. return 0;
  17214. }
  17215. _ACEOF
  17216. if ac_fn_c_try_link "$LINENO"
  17217. then :
  17218. ac_cv_lib_m_pow=yes
  17219. else $as_nop
  17220. ac_cv_lib_m_pow=no
  17221. fi
  17222. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17223. conftest$ac_exeext conftest.$ac_ext
  17224. LIBS=$ac_check_lib_save_LIBS
  17225. fi
  17226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17227. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17228. if test "x$ac_cv_lib_m_pow" = xyes
  17229. then :
  17230. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17231. fi
  17232. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17233. if test "x$ac_cv_func_acos" = xyes
  17234. then :
  17235. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17236. fi
  17237. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17238. if test "x$ac_cv_func_acosf" = xyes
  17239. then :
  17240. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17241. fi
  17242. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17243. if test "x$ac_cv_func_asin" = xyes
  17244. then :
  17245. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17246. fi
  17247. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17248. if test "x$ac_cv_func_asinf" = xyes
  17249. then :
  17250. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17251. fi
  17252. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17253. if test "x$ac_cv_func_atan" = xyes
  17254. then :
  17255. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17256. fi
  17257. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17258. if test "x$ac_cv_func_atanf" = xyes
  17259. then :
  17260. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17261. fi
  17262. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17263. if test "x$ac_cv_func_atan2" = xyes
  17264. then :
  17265. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17266. fi
  17267. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17268. if test "x$ac_cv_func_atan2f" = xyes
  17269. then :
  17270. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17271. fi
  17272. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17273. if test "x$ac_cv_func_ceil" = xyes
  17274. then :
  17275. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17276. fi
  17277. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17278. if test "x$ac_cv_func_ceilf" = xyes
  17279. then :
  17280. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17281. fi
  17282. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17283. if test "x$ac_cv_func_copysign" = xyes
  17284. then :
  17285. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17286. fi
  17287. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17288. if test "x$ac_cv_func_copysignf" = xyes
  17289. then :
  17290. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17291. fi
  17292. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17293. if test "x$ac_cv_func_cos" = xyes
  17294. then :
  17295. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17296. fi
  17297. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17298. if test "x$ac_cv_func_cosf" = xyes
  17299. then :
  17300. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17301. fi
  17302. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17303. if test "x$ac_cv_func_exp" = xyes
  17304. then :
  17305. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17306. fi
  17307. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17308. if test "x$ac_cv_func_expf" = xyes
  17309. then :
  17310. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17311. fi
  17312. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17313. if test "x$ac_cv_func_fabs" = xyes
  17314. then :
  17315. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17316. fi
  17317. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17318. if test "x$ac_cv_func_fabsf" = xyes
  17319. then :
  17320. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17321. fi
  17322. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17323. if test "x$ac_cv_func_floor" = xyes
  17324. then :
  17325. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17326. fi
  17327. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17328. if test "x$ac_cv_func_floorf" = xyes
  17329. then :
  17330. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17331. fi
  17332. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17333. if test "x$ac_cv_func_trunc" = xyes
  17334. then :
  17335. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17336. fi
  17337. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17338. if test "x$ac_cv_func_truncf" = xyes
  17339. then :
  17340. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17341. fi
  17342. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17343. if test "x$ac_cv_func_fmod" = xyes
  17344. then :
  17345. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17346. fi
  17347. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17348. if test "x$ac_cv_func_fmodf" = xyes
  17349. then :
  17350. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17351. fi
  17352. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17353. if test "x$ac_cv_func_log" = xyes
  17354. then :
  17355. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17356. fi
  17357. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17358. if test "x$ac_cv_func_logf" = xyes
  17359. then :
  17360. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17361. fi
  17362. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17363. if test "x$ac_cv_func_log10" = xyes
  17364. then :
  17365. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17366. fi
  17367. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17368. if test "x$ac_cv_func_log10f" = xyes
  17369. then :
  17370. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17371. fi
  17372. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17373. if test "x$ac_cv_func_lround" = xyes
  17374. then :
  17375. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17376. fi
  17377. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17378. if test "x$ac_cv_func_lroundf" = xyes
  17379. then :
  17380. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17381. fi
  17382. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17383. if test "x$ac_cv_func_pow" = xyes
  17384. then :
  17385. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17386. fi
  17387. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17388. if test "x$ac_cv_func_powf" = xyes
  17389. then :
  17390. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17391. fi
  17392. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17393. if test "x$ac_cv_func_round" = xyes
  17394. then :
  17395. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17396. fi
  17397. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17398. if test "x$ac_cv_func_roundf" = xyes
  17399. then :
  17400. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17401. fi
  17402. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17403. if test "x$ac_cv_func_scalbn" = xyes
  17404. then :
  17405. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17406. fi
  17407. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17408. if test "x$ac_cv_func_scalbnf" = xyes
  17409. then :
  17410. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17411. fi
  17412. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17413. if test "x$ac_cv_func_sin" = xyes
  17414. then :
  17415. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17416. fi
  17417. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17418. if test "x$ac_cv_func_sinf" = xyes
  17419. then :
  17420. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17421. fi
  17422. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17423. if test "x$ac_cv_func_sqrt" = xyes
  17424. then :
  17425. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17426. fi
  17427. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17428. if test "x$ac_cv_func_sqrtf" = xyes
  17429. then :
  17430. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17431. fi
  17432. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17433. if test "x$ac_cv_func_tan" = xyes
  17434. then :
  17435. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17436. fi
  17437. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17438. if test "x$ac_cv_func_tanf" = xyes
  17439. then :
  17440. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17441. fi
  17442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17443. printf %s "checking for iconv_open in -liconv... " >&6; }
  17444. if test ${ac_cv_lib_iconv_iconv_open+y}
  17445. then :
  17446. printf %s "(cached) " >&6
  17447. else $as_nop
  17448. ac_check_lib_save_LIBS=$LIBS
  17449. LIBS="-liconv $LIBS"
  17450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17451. /* end confdefs.h. */
  17452. /* Override any GCC internal prototype to avoid an error.
  17453. Use char because int might match the return type of a GCC
  17454. builtin and then its argument prototype would still apply. */
  17455. char iconv_open ();
  17456. int
  17457. main (void)
  17458. {
  17459. return iconv_open ();
  17460. ;
  17461. return 0;
  17462. }
  17463. _ACEOF
  17464. if ac_fn_c_try_link "$LINENO"
  17465. then :
  17466. ac_cv_lib_iconv_iconv_open=yes
  17467. else $as_nop
  17468. ac_cv_lib_iconv_iconv_open=no
  17469. fi
  17470. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17471. conftest$ac_exeext conftest.$ac_ext
  17472. LIBS=$ac_check_lib_save_LIBS
  17473. fi
  17474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17475. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17476. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17477. then :
  17478. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17479. fi
  17480. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17481. if test "x$ac_cv_func_iconv" = xyes
  17482. then :
  17483. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17484. fi
  17485. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17486. "
  17487. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17488. then :
  17489. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17490. fi
  17491. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17492. if test "x$ac_cv_header_libunwind_h" = xyes
  17493. then :
  17494. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17495. fi
  17496. fi
  17497. # Check whether --enable-gcc-atomics was given.
  17498. if test ${enable_gcc_atomics+y}
  17499. then :
  17500. enableval=$enable_gcc_atomics;
  17501. else $as_nop
  17502. enable_gcc_atomics=yes
  17503. fi
  17504. if test x$enable_gcc_atomics = xyes; then
  17505. have_gcc_atomics=no
  17506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17507. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17509. /* end confdefs.h. */
  17510. int
  17511. main (void)
  17512. {
  17513. int a;
  17514. void *x, *y, *z;
  17515. __sync_lock_test_and_set(&a, 4);
  17516. __sync_lock_test_and_set(&x, y);
  17517. __sync_fetch_and_add(&a, 1);
  17518. __sync_bool_compare_and_swap(&a, 5, 10);
  17519. __sync_bool_compare_and_swap(&x, y, z);
  17520. ;
  17521. return 0;
  17522. }
  17523. _ACEOF
  17524. if ac_fn_c_try_link "$LINENO"
  17525. then :
  17526. have_gcc_atomics=yes
  17527. fi
  17528. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17529. conftest$ac_exeext conftest.$ac_ext
  17530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17531. printf "%s\n" "$have_gcc_atomics" >&6; }
  17532. if test x$have_gcc_atomics = xyes; then
  17533. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17534. else
  17535. # See if we have the minimum operation needed for GCC atomics
  17536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17537. /* end confdefs.h. */
  17538. int
  17539. main (void)
  17540. {
  17541. int a;
  17542. __sync_lock_test_and_set(&a, 1);
  17543. __sync_lock_release(&a);
  17544. ;
  17545. return 0;
  17546. }
  17547. _ACEOF
  17548. if ac_fn_c_try_link "$LINENO"
  17549. then :
  17550. have_gcc_sync_lock_test_and_set=yes
  17551. fi
  17552. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17553. conftest$ac_exeext conftest.$ac_ext
  17554. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17555. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17556. fi
  17557. fi
  17558. fi
  17559. # Standard C sources
  17560. SOURCES="$SOURCES $srcdir/src/*.c"
  17561. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17562. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17563. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17564. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17565. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17566. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17567. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17568. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17569. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17570. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17571. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17572. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17573. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17574. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17575. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17576. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17577. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17578. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17579. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17580. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17581. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17582. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17583. case "$host" in
  17584. *-*-emscripten*)
  17585. default_atomic=no
  17586. ;;
  17587. *)
  17588. default_atomic=yes
  17589. ;;
  17590. esac
  17591. # Check whether --enable-atomic was given.
  17592. if test ${enable_atomic+y}
  17593. then :
  17594. enableval=$enable_atomic;
  17595. else $as_nop
  17596. enable_atomic=$default_atomic
  17597. fi
  17598. if test x$enable_atomic != xyes; then
  17599. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17600. else
  17601. SUMMARY_modules="${SUMMARY_modules} atomic"
  17602. fi
  17603. # Check whether --enable-audio was given.
  17604. if test ${enable_audio+y}
  17605. then :
  17606. enableval=$enable_audio;
  17607. else $as_nop
  17608. enable_audio=yes
  17609. fi
  17610. if test x$enable_audio != xyes; then
  17611. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17612. else
  17613. SUMMARY_modules="${SUMMARY_modules} audio"
  17614. fi
  17615. # Check whether --enable-video was given.
  17616. if test ${enable_video+y}
  17617. then :
  17618. enableval=$enable_video;
  17619. else $as_nop
  17620. enable_video=yes
  17621. fi
  17622. if test x$enable_video != xyes; then
  17623. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17624. else
  17625. SUMMARY_modules="${SUMMARY_modules} video"
  17626. fi
  17627. # Check whether --enable-render was given.
  17628. if test ${enable_render+y}
  17629. then :
  17630. enableval=$enable_render;
  17631. else $as_nop
  17632. enable_render=yes
  17633. fi
  17634. if test x$enable_render != xyes; then
  17635. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17636. else
  17637. SUMMARY_modules="${SUMMARY_modules} render"
  17638. fi
  17639. # Check whether --enable-events was given.
  17640. if test ${enable_events+y}
  17641. then :
  17642. enableval=$enable_events;
  17643. else $as_nop
  17644. enable_events=yes
  17645. fi
  17646. if test x$enable_events != xyes; then
  17647. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17648. else
  17649. SUMMARY_modules="${SUMMARY_modules} events"
  17650. fi
  17651. # Check whether --enable-joystick was given.
  17652. if test ${enable_joystick+y}
  17653. then :
  17654. enableval=$enable_joystick;
  17655. else $as_nop
  17656. enable_joystick=yes
  17657. fi
  17658. if test x$enable_joystick != xyes; then
  17659. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17660. else
  17661. SUMMARY_modules="${SUMMARY_modules} joystick"
  17662. fi
  17663. # Check whether --enable-haptic was given.
  17664. if test ${enable_haptic+y}
  17665. then :
  17666. enableval=$enable_haptic;
  17667. else $as_nop
  17668. enable_haptic=yes
  17669. fi
  17670. if test x$enable_haptic != xyes; then
  17671. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17672. else
  17673. SUMMARY_modules="${SUMMARY_modules} haptic"
  17674. fi
  17675. # Check whether --enable-hidapi was given.
  17676. if test ${enable_hidapi+y}
  17677. then :
  17678. enableval=$enable_hidapi;
  17679. else $as_nop
  17680. enable_hidapi=yes
  17681. fi
  17682. if test x$enable_hidapi != xyes; then
  17683. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17684. else
  17685. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17686. fi
  17687. # Check whether --enable-sensor was given.
  17688. if test ${enable_sensor+y}
  17689. then :
  17690. enableval=$enable_sensor;
  17691. else $as_nop
  17692. enable_sensor=yes
  17693. fi
  17694. if test x$enable_sensor != xyes; then
  17695. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17696. else
  17697. SUMMARY_modules="${SUMMARY_modules} sensor"
  17698. fi
  17699. # Check whether --enable-power was given.
  17700. if test ${enable_power+y}
  17701. then :
  17702. enableval=$enable_power;
  17703. else $as_nop
  17704. enable_power=yes
  17705. fi
  17706. if test x$enable_power != xyes; then
  17707. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17708. else
  17709. SUMMARY_modules="${SUMMARY_modules} power"
  17710. fi
  17711. # Check whether --enable-filesystem was given.
  17712. if test ${enable_filesystem+y}
  17713. then :
  17714. enableval=$enable_filesystem;
  17715. else $as_nop
  17716. enable_filesystem=yes
  17717. fi
  17718. if test x$enable_filesystem != xyes; then
  17719. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17720. else
  17721. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17722. fi
  17723. # Many subsystems depend on threads, so leave them enabled by default
  17724. #AC_ARG_ENABLE(threads,
  17725. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17726. # , enable_threads=yes)
  17727. enable_threads=yes
  17728. if test x$enable_threads != xyes; then
  17729. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17730. else
  17731. SUMMARY_modules="${SUMMARY_modules} threads"
  17732. fi
  17733. # Check whether --enable-timers was given.
  17734. if test ${enable_timers+y}
  17735. then :
  17736. enableval=$enable_timers;
  17737. else $as_nop
  17738. enable_timers=yes
  17739. fi
  17740. if test x$enable_timers != xyes; then
  17741. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17742. else
  17743. SUMMARY_modules="${SUMMARY_modules} timers"
  17744. fi
  17745. # Check whether --enable-file was given.
  17746. if test ${enable_file+y}
  17747. then :
  17748. enableval=$enable_file;
  17749. else $as_nop
  17750. enable_file=yes
  17751. fi
  17752. if test x$enable_file != xyes; then
  17753. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17754. else
  17755. SUMMARY_modules="${SUMMARY_modules} file"
  17756. fi
  17757. # Check whether --enable-misc was given.
  17758. if test ${enable_misc+y}
  17759. then :
  17760. enableval=$enable_misc;
  17761. else $as_nop
  17762. enable_misc=yes
  17763. fi
  17764. if test x$enable_misc != xyes; then
  17765. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17766. else
  17767. SUMMARY_modules="${SUMMARY_modules} misc"
  17768. fi
  17769. # Check whether --enable-locale was given.
  17770. if test ${enable_locale+y}
  17771. then :
  17772. enableval=$enable_locale;
  17773. else $as_nop
  17774. enable_locale=yes
  17775. fi
  17776. if test x$enable_locale != xyes; then
  17777. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17778. else
  17779. SUMMARY_modules="${SUMMARY_modules} locale"
  17780. fi
  17781. # Check whether --enable-loadso was given.
  17782. if test ${enable_loadso+y}
  17783. then :
  17784. enableval=$enable_loadso;
  17785. else $as_nop
  17786. enable_loadso=yes
  17787. fi
  17788. if test x$enable_loadso != xyes; then
  17789. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17790. else
  17791. SUMMARY_modules="${SUMMARY_modules} loadso"
  17792. fi
  17793. # Check whether --enable-cpuinfo was given.
  17794. if test ${enable_cpuinfo+y}
  17795. then :
  17796. enableval=$enable_cpuinfo;
  17797. else $as_nop
  17798. enable_cpuinfo=yes
  17799. fi
  17800. if test x$enable_cpuinfo != xyes; then
  17801. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17802. else
  17803. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17804. fi
  17805. # Check whether --enable-assembly was given.
  17806. if test ${enable_assembly+y}
  17807. then :
  17808. enableval=$enable_assembly;
  17809. else $as_nop
  17810. enable_assembly=yes
  17811. fi
  17812. if test x$enable_assembly = xyes; then
  17813. SUMMARY_modules="${SUMMARY_modules} assembly"
  17814. # Make sure that we don't generate floating point code that would
  17815. # cause illegal instruction exceptions on older processors
  17816. case "$host" in
  17817. *-*-darwin*)
  17818. # Don't need to worry about Apple hardware, it's all SSE capable
  17819. default_ssemath=yes
  17820. ;;
  17821. *64-*-*)
  17822. # x86 64-bit architectures all have SSE instructions
  17823. default_ssemath=yes
  17824. ;;
  17825. *)
  17826. default_ssemath=no
  17827. ;;
  17828. esac
  17829. # Check whether --enable-ssemath was given.
  17830. if test ${enable_ssemath+y}
  17831. then :
  17832. enableval=$enable_ssemath;
  17833. else $as_nop
  17834. enable_ssemath=$default_ssemath
  17835. fi
  17836. if test x$enable_ssemath = xno; then
  17837. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17838. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17839. fi
  17840. fi
  17841. # Check whether --enable-mmx was given.
  17842. if test ${enable_mmx+y}
  17843. then :
  17844. enableval=$enable_mmx;
  17845. else $as_nop
  17846. enable_mmx=yes
  17847. fi
  17848. if test x$enable_mmx = xyes; then
  17849. save_CFLAGS="$CFLAGS"
  17850. have_gcc_mmx=no
  17851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17852. printf %s "checking for GCC -mmmx option... " >&6; }
  17853. mmx_CFLAGS="-mmmx"
  17854. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17856. /* end confdefs.h. */
  17857. #ifdef __MINGW32__
  17858. #include <_mingw.h>
  17859. #ifdef __MINGW64_VERSION_MAJOR
  17860. #include <intrin.h>
  17861. #else
  17862. #include <mmintrin.h>
  17863. #endif
  17864. #else
  17865. #include <mmintrin.h>
  17866. #endif
  17867. #ifndef __MMX__
  17868. #error Assembler CPP flag not enabled
  17869. #endif
  17870. int
  17871. main (void)
  17872. {
  17873. ;
  17874. return 0;
  17875. }
  17876. _ACEOF
  17877. if ac_fn_c_try_compile "$LINENO"
  17878. then :
  17879. have_gcc_mmx=yes
  17880. fi
  17881. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17883. printf "%s\n" "$have_gcc_mmx" >&6; }
  17884. CFLAGS="$save_CFLAGS"
  17885. if test x$have_gcc_mmx = xyes; then
  17886. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17887. SUMMARY_math="${SUMMARY_math} mmx"
  17888. fi
  17889. fi
  17890. # Check whether --enable-3dnow was given.
  17891. if test ${enable_3dnow+y}
  17892. then :
  17893. enableval=$enable_3dnow;
  17894. else $as_nop
  17895. enable_3dnow=yes
  17896. fi
  17897. if test x$enable_3dnow = xyes; then
  17898. save_CFLAGS="$CFLAGS"
  17899. have_gcc_3dnow=no
  17900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17901. printf %s "checking for GCC -m3dnow option... " >&6; }
  17902. amd3dnow_CFLAGS="-m3dnow"
  17903. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17905. /* end confdefs.h. */
  17906. #include <mm3dnow.h>
  17907. #ifndef __3dNOW__
  17908. #error Assembler CPP flag not enabled
  17909. #endif
  17910. int
  17911. main (void)
  17912. {
  17913. void *p = 0;
  17914. _m_prefetch(p);
  17915. ;
  17916. return 0;
  17917. }
  17918. _ACEOF
  17919. if ac_fn_c_try_link "$LINENO"
  17920. then :
  17921. have_gcc_3dnow=yes
  17922. fi
  17923. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17924. conftest$ac_exeext conftest.$ac_ext
  17925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17926. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17927. CFLAGS="$save_CFLAGS"
  17928. if test x$have_gcc_3dnow = xyes; then
  17929. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17930. SUMMARY_math="${SUMMARY_math} 3dnow"
  17931. fi
  17932. fi
  17933. # Check whether --enable-sse was given.
  17934. if test ${enable_sse+y}
  17935. then :
  17936. enableval=$enable_sse;
  17937. else $as_nop
  17938. enable_sse=yes
  17939. fi
  17940. if test x$enable_sse = xyes; then
  17941. save_CFLAGS="$CFLAGS"
  17942. have_gcc_sse=no
  17943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17944. printf %s "checking for GCC -msse option... " >&6; }
  17945. sse_CFLAGS="-msse"
  17946. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17948. /* end confdefs.h. */
  17949. #ifdef __MINGW32__
  17950. #include <_mingw.h>
  17951. #ifdef __MINGW64_VERSION_MAJOR
  17952. #include <intrin.h>
  17953. #else
  17954. #include <xmmintrin.h>
  17955. #endif
  17956. #else
  17957. #include <xmmintrin.h>
  17958. #endif
  17959. #ifndef __SSE__
  17960. #error Assembler CPP flag not enabled
  17961. #endif
  17962. int
  17963. main (void)
  17964. {
  17965. ;
  17966. return 0;
  17967. }
  17968. _ACEOF
  17969. if ac_fn_c_try_compile "$LINENO"
  17970. then :
  17971. have_gcc_sse=yes
  17972. fi
  17973. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17975. printf "%s\n" "$have_gcc_sse" >&6; }
  17976. CFLAGS="$save_CFLAGS"
  17977. if test x$have_gcc_sse = xyes; then
  17978. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17979. SUMMARY_math="${SUMMARY_math} sse"
  17980. fi
  17981. fi
  17982. # Check whether --enable-sse2 was given.
  17983. if test ${enable_sse2+y}
  17984. then :
  17985. enableval=$enable_sse2;
  17986. else $as_nop
  17987. enable_sse2=$default_ssemath
  17988. fi
  17989. if test x$enable_sse2 = xyes; then
  17990. save_CFLAGS="$CFLAGS"
  17991. have_gcc_sse2=no
  17992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17993. printf %s "checking for GCC -msse2 option... " >&6; }
  17994. sse2_CFLAGS="-msse2"
  17995. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17997. /* end confdefs.h. */
  17998. #ifdef __MINGW32__
  17999. #include <_mingw.h>
  18000. #ifdef __MINGW64_VERSION_MAJOR
  18001. #include <intrin.h>
  18002. #else
  18003. #include <emmintrin.h>
  18004. #endif
  18005. #else
  18006. #include <emmintrin.h>
  18007. #endif
  18008. #ifndef __SSE2__
  18009. #error Assembler CPP flag not enabled
  18010. #endif
  18011. int
  18012. main (void)
  18013. {
  18014. ;
  18015. return 0;
  18016. }
  18017. _ACEOF
  18018. if ac_fn_c_try_compile "$LINENO"
  18019. then :
  18020. have_gcc_sse2=yes
  18021. fi
  18022. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  18024. printf "%s\n" "$have_gcc_sse2" >&6; }
  18025. CFLAGS="$save_CFLAGS"
  18026. if test x$have_gcc_sse2 = xyes; then
  18027. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  18028. SUMMARY_math="${SUMMARY_math} sse2"
  18029. fi
  18030. fi
  18031. # Check whether --enable-sse3 was given.
  18032. if test ${enable_sse3+y}
  18033. then :
  18034. enableval=$enable_sse3;
  18035. else $as_nop
  18036. enable_sse3=$default_ssemath
  18037. fi
  18038. if test x$enable_sse3 = xyes; then
  18039. save_CFLAGS="$CFLAGS"
  18040. have_gcc_sse3=no
  18041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  18042. printf %s "checking for GCC -msse3 option... " >&6; }
  18043. sse3_CFLAGS="-msse3"
  18044. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  18045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18046. /* end confdefs.h. */
  18047. #ifdef __MINGW32__
  18048. #include <_mingw.h>
  18049. #ifdef __MINGW64_VERSION_MAJOR
  18050. #include <intrin.h>
  18051. #else
  18052. #include <pmmintrin.h>
  18053. #endif
  18054. #else
  18055. #include <pmmintrin.h>
  18056. #endif
  18057. #ifndef __SSE2__
  18058. #error Assembler CPP flag not enabled
  18059. #endif
  18060. int
  18061. main (void)
  18062. {
  18063. ;
  18064. return 0;
  18065. }
  18066. _ACEOF
  18067. if ac_fn_c_try_compile "$LINENO"
  18068. then :
  18069. have_gcc_sse3=yes
  18070. fi
  18071. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  18073. printf "%s\n" "$have_gcc_sse3" >&6; }
  18074. CFLAGS="$save_CFLAGS"
  18075. if test x$have_gcc_sse3 = xyes; then
  18076. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  18077. SUMMARY_math="${SUMMARY_math} sse3"
  18078. fi
  18079. fi
  18080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  18081. printf %s "checking for immintrin.h... " >&6; }
  18082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18083. /* end confdefs.h. */
  18084. #include <immintrin.h>
  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_immintrin_h_hdr=yes
  18095. else $as_nop
  18096. have_immintrin_h_hdr=no
  18097. fi
  18098. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  18100. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  18101. if test x$have_immintrin_h_hdr = xyes; then
  18102. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  18103. fi
  18104. # Check whether --enable-altivec was given.
  18105. if test ${enable_altivec+y}
  18106. then :
  18107. enableval=$enable_altivec;
  18108. else $as_nop
  18109. enable_altivec=yes
  18110. fi
  18111. if test x$enable_altivec = xyes; then
  18112. save_CFLAGS="$CFLAGS"
  18113. have_gcc_altivec=no
  18114. have_altivec_h_hdr=no
  18115. altivec_CFLAGS="-maltivec"
  18116. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  18118. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  18119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18120. /* end confdefs.h. */
  18121. #include <altivec.h>
  18122. vector unsigned int vzero() {
  18123. return vec_splat_u32(0);
  18124. }
  18125. int
  18126. main (void)
  18127. {
  18128. ;
  18129. return 0;
  18130. }
  18131. _ACEOF
  18132. if ac_fn_c_try_compile "$LINENO"
  18133. then :
  18134. have_gcc_altivec=yes
  18135. have_altivec_h_hdr=yes
  18136. fi
  18137. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18139. printf "%s\n" "$have_gcc_altivec" >&6; }
  18140. if test x$have_gcc_altivec = xno; then
  18141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18142. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18144. /* end confdefs.h. */
  18145. vector unsigned int vzero() {
  18146. return vec_splat_u32(0);
  18147. }
  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_altivec=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_altivec" >&5
  18161. printf "%s\n" "$have_gcc_altivec" >&6; }
  18162. fi
  18163. if test x$have_gcc_altivec = xno; then
  18164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18165. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18166. altivec_CFLAGS="-faltivec"
  18167. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18169. /* end confdefs.h. */
  18170. #include <altivec.h>
  18171. vector unsigned int vzero() {
  18172. return vec_splat_u32(0);
  18173. }
  18174. int
  18175. main (void)
  18176. {
  18177. ;
  18178. return 0;
  18179. }
  18180. _ACEOF
  18181. if ac_fn_c_try_compile "$LINENO"
  18182. then :
  18183. have_gcc_altivec=yes
  18184. have_altivec_h_hdr=yes
  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_gcc_altivec" >&5
  18188. printf "%s\n" "$have_gcc_altivec" >&6; }
  18189. fi
  18190. if test x$have_gcc_altivec = xno; then
  18191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18192. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18194. /* end confdefs.h. */
  18195. vector unsigned int vzero() {
  18196. return vec_splat_u32(0);
  18197. }
  18198. int
  18199. main (void)
  18200. {
  18201. ;
  18202. return 0;
  18203. }
  18204. _ACEOF
  18205. if ac_fn_c_try_compile "$LINENO"
  18206. then :
  18207. have_gcc_altivec=yes
  18208. fi
  18209. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18211. printf "%s\n" "$have_gcc_altivec" >&6; }
  18212. fi
  18213. CFLAGS="$save_CFLAGS"
  18214. if test x$have_gcc_altivec = xyes; then
  18215. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18216. if test x$have_altivec_h_hdr = xyes; then
  18217. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18218. fi
  18219. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18220. SUMMARY_math="${SUMMARY_math} altivec"
  18221. fi
  18222. fi
  18223. fi
  18224. # Check whether --enable-lsx was given.
  18225. if test ${enable_lsx+y}
  18226. then :
  18227. enableval=$enable_lsx;
  18228. else $as_nop
  18229. enable_lsx=yes
  18230. fi
  18231. if test x$enable_lsx = xyes; then
  18232. save_CFLAGS="$CFLAGS"
  18233. have_gcc_lsx=no
  18234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18235. printf %s "checking for GCC -mlsx option... " >&6; }
  18236. lsx_CFLAGS="-mlsx"
  18237. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18239. /* end confdefs.h. */
  18240. #ifndef __loongarch_sx
  18241. #error Assembler CPP flag not enabled
  18242. #endif
  18243. int
  18244. main (void)
  18245. {
  18246. ;
  18247. return 0;
  18248. }
  18249. _ACEOF
  18250. if ac_fn_c_try_compile "$LINENO"
  18251. then :
  18252. have_gcc_lsx=yes
  18253. fi
  18254. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18256. printf "%s\n" "$have_gcc_lsx" >&6; }
  18257. CFLAGS="$save_CFLAGS"
  18258. if test x$have_gcc_lsx = xyes; then
  18259. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18260. SUMMARY_math="${SUMMARY_math} lsx"
  18261. fi
  18262. fi
  18263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18264. printf %s "checking for lsxintrin.h... " >&6; }
  18265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18266. /* end confdefs.h. */
  18267. #include <lsxintrin.h>
  18268. int
  18269. main (void)
  18270. {
  18271. ;
  18272. return 0;
  18273. }
  18274. _ACEOF
  18275. if ac_fn_c_try_compile "$LINENO"
  18276. then :
  18277. have_lsxintrin_h_hdr=yes
  18278. else $as_nop
  18279. have_lsxintrin_h_hdr=no
  18280. fi
  18281. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18283. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18284. if test x$have_lsxintrin_h_hdr = xyes; then
  18285. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18286. fi
  18287. # Check whether --enable-lasx was given.
  18288. if test ${enable_lasx+y}
  18289. then :
  18290. enableval=$enable_lasx;
  18291. else $as_nop
  18292. enable_LASX=yes
  18293. fi
  18294. if test x$enable_LASX = xyes; then
  18295. save_CFLAGS="$CFLAGS"
  18296. have_gcc_lasx=no
  18297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18298. printf %s "checking for GCC -mlasx option... " >&6; }
  18299. lasx_CFLAGS="-mlasx"
  18300. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18302. /* end confdefs.h. */
  18303. #ifndef __loongarch_asx
  18304. #error Assembler CPP flag not enabled
  18305. #endif
  18306. int
  18307. main (void)
  18308. {
  18309. ;
  18310. return 0;
  18311. }
  18312. _ACEOF
  18313. if ac_fn_c_try_compile "$LINENO"
  18314. then :
  18315. have_gcc_lasx=yes
  18316. fi
  18317. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18319. printf "%s\n" "$have_gcc_lasx" >&6; }
  18320. CFLAGS="$save_CFLAGS"
  18321. if test x$have_gcc_lasx = xyes; then
  18322. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18323. SUMMARY_math="${SUMMARY_math} lasx"
  18324. fi
  18325. fi
  18326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18327. printf %s "checking for lasxintrin.h... " >&6; }
  18328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18329. /* end confdefs.h. */
  18330. #include <lasxintrin.h>
  18331. int
  18332. main (void)
  18333. {
  18334. ;
  18335. return 0;
  18336. }
  18337. _ACEOF
  18338. if ac_fn_c_try_compile "$LINENO"
  18339. then :
  18340. have_lasxintrin_h_hdr=yes
  18341. else $as_nop
  18342. have_lasxintrin_h_hdr=no
  18343. fi
  18344. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18346. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18347. if test x$have_lasxintrin_h_hdr = xyes; then
  18348. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18349. fi
  18350. CheckOSS()
  18351. {
  18352. # Check whether --enable-oss was given.
  18353. if test ${enable_oss+y}
  18354. then :
  18355. enableval=$enable_oss;
  18356. else $as_nop
  18357. enable_oss=maybe
  18358. fi
  18359. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  18360. # use sndio instead. So on there, we default to disabled. You can force
  18361. # it on if you really want, though.
  18362. if test x$enable_oss = xmaybe; then
  18363. enable_oss=yes
  18364. case "$host" in
  18365. *-*-openbsd*)
  18366. enable_oss=no;;
  18367. esac
  18368. fi
  18369. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18371. printf %s "checking for OSS audio support... " >&6; }
  18372. have_oss=no
  18373. if test x$have_oss != xyes; then
  18374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18375. /* end confdefs.h. */
  18376. #include <sys/soundcard.h>
  18377. int
  18378. main (void)
  18379. {
  18380. int arg = SNDCTL_DSP_SETFRAGMENT;
  18381. ;
  18382. return 0;
  18383. }
  18384. _ACEOF
  18385. if ac_fn_c_try_compile "$LINENO"
  18386. then :
  18387. have_oss=yes
  18388. fi
  18389. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18390. fi
  18391. if test x$have_oss != xyes; then
  18392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18393. /* end confdefs.h. */
  18394. #include <soundcard.h>
  18395. int
  18396. main (void)
  18397. {
  18398. int arg = SNDCTL_DSP_SETFRAGMENT;
  18399. ;
  18400. return 0;
  18401. }
  18402. _ACEOF
  18403. if ac_fn_c_try_compile "$LINENO"
  18404. then :
  18405. have_oss=yes
  18406. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  18407. fi
  18408. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18409. fi
  18410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18411. printf "%s\n" "$have_oss" >&6; }
  18412. if test x$have_oss = xyes; then
  18413. SUMMARY_audio="${SUMMARY_audio} oss"
  18414. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18415. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18416. have_audio=yes
  18417. # We may need to link with ossaudio emulation library
  18418. case "$host" in
  18419. *-*-openbsd*|*-*-netbsd*)
  18420. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18421. esac
  18422. fi
  18423. fi
  18424. }
  18425. CheckALSA()
  18426. {
  18427. # Check whether --enable-alsa was given.
  18428. if test ${enable_alsa+y}
  18429. then :
  18430. enableval=$enable_alsa;
  18431. else $as_nop
  18432. enable_alsa=yes
  18433. fi
  18434. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18435. alsa_save_CFLAGS="$CFLAGS"
  18436. alsa_save_LDFLAGS="$LDFLAGS"
  18437. alsa_save_LIBS="$LIBS"
  18438. alsa_found=yes
  18439. # Check whether --with-alsa-prefix was given.
  18440. if test ${with_alsa_prefix+y}
  18441. then :
  18442. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18443. else $as_nop
  18444. alsa_prefix=""
  18445. fi
  18446. # Check whether --with-alsa-inc-prefix was given.
  18447. if test ${with_alsa_inc_prefix+y}
  18448. then :
  18449. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18450. else $as_nop
  18451. alsa_inc_prefix=""
  18452. fi
  18453. # Check whether --enable-alsatest was given.
  18454. if test ${enable_alsatest+y}
  18455. then :
  18456. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18457. else $as_nop
  18458. enable_alsatest=yes
  18459. fi
  18460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18461. printf %s "checking for ALSA CFLAGS... " >&6; }
  18462. if test "$alsa_inc_prefix" != "" ; then
  18463. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18464. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18465. fi
  18466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18467. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18469. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18470. if test "$alsa_prefix" != "" ; then
  18471. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18472. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18473. fi
  18474. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18475. LIBS=`echo $LIBS | sed 's/-lm//'`
  18476. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18477. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18478. LIBS=`echo $LIBS | sed 's/ //'`
  18479. LIBS="$ALSA_LIBS $LIBS"
  18480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18481. printf "%s\n" "$ALSA_LIBS" >&6; }
  18482. min_alsa_version=1.0.11
  18483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18484. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18485. no_alsa=""
  18486. alsa_min_major_version=`echo $min_alsa_version | \
  18487. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18488. alsa_min_minor_version=`echo $min_alsa_version | \
  18489. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18490. alsa_min_micro_version=`echo $min_alsa_version | \
  18491. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18492. ac_ext=c
  18493. ac_cpp='$CPP $CPPFLAGS'
  18494. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18495. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18496. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18498. /* end confdefs.h. */
  18499. #include <alsa/asoundlib.h>
  18500. int
  18501. main (void)
  18502. {
  18503. /* ensure backward compatibility */
  18504. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18505. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18506. #endif
  18507. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18508. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18509. #endif
  18510. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18511. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18512. #endif
  18513. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18514. exit(0);
  18515. # else
  18516. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18517. # error not present
  18518. # endif
  18519. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18520. exit(0);
  18521. # else
  18522. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18523. # error not present
  18524. # endif
  18525. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18526. # error not present
  18527. # endif
  18528. # endif
  18529. # endif
  18530. exit(0);
  18531. ;
  18532. return 0;
  18533. }
  18534. _ACEOF
  18535. if ac_fn_c_try_compile "$LINENO"
  18536. then :
  18537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18538. printf "%s\n" "found." >&6; }
  18539. else $as_nop
  18540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18541. printf "%s\n" "not present." >&6; }
  18542. alsa_found=no
  18543. fi
  18544. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18545. ac_ext=c
  18546. ac_cpp='$CPP $CPPFLAGS'
  18547. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18548. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18549. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18550. if test "x$enable_alsatest" = "xyes"; then
  18551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18552. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18553. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18554. then :
  18555. printf %s "(cached) " >&6
  18556. else $as_nop
  18557. ac_check_lib_save_LIBS=$LIBS
  18558. LIBS="-lasound $LIBS"
  18559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18560. /* end confdefs.h. */
  18561. /* Override any GCC internal prototype to avoid an error.
  18562. Use char because int might match the return type of a GCC
  18563. builtin and then its argument prototype would still apply. */
  18564. char snd_ctl_open ();
  18565. int
  18566. main (void)
  18567. {
  18568. return snd_ctl_open ();
  18569. ;
  18570. return 0;
  18571. }
  18572. _ACEOF
  18573. if ac_fn_c_try_link "$LINENO"
  18574. then :
  18575. ac_cv_lib_asound_snd_ctl_open=yes
  18576. else $as_nop
  18577. ac_cv_lib_asound_snd_ctl_open=no
  18578. fi
  18579. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18580. conftest$ac_exeext conftest.$ac_ext
  18581. LIBS=$ac_check_lib_save_LIBS
  18582. fi
  18583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18584. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18585. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18586. then :
  18587. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18588. LIBS="-lasound $LIBS"
  18589. else $as_nop
  18590. alsa_found=no
  18591. fi
  18592. fi
  18593. if test "x$alsa_found" = "xyes" ; then
  18594. have_alsa=yes
  18595. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18596. LIBS=`echo $LIBS | sed 's/ //'`
  18597. LIBS="-lasound $LIBS"
  18598. fi
  18599. if test "x$alsa_found" = "xno" ; then
  18600. have_alsa=no
  18601. CFLAGS="$alsa_save_CFLAGS"
  18602. LDFLAGS="$alsa_save_LDFLAGS"
  18603. LIBS="$alsa_save_LIBS"
  18604. ALSA_CFLAGS=""
  18605. ALSA_LIBS=""
  18606. fi
  18607. # Restore all flags from before the ALSA detection runs
  18608. CFLAGS="$alsa_save_CFLAGS"
  18609. LDFLAGS="$alsa_save_LDFLAGS"
  18610. LIBS="$alsa_save_LIBS"
  18611. if test x$have_alsa = xyes; then
  18612. # Check whether --enable-alsa-shared was given.
  18613. if test ${enable_alsa_shared+y}
  18614. then :
  18615. enableval=$enable_alsa_shared;
  18616. else $as_nop
  18617. enable_alsa_shared=yes
  18618. fi
  18619. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18620. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18621. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18622. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18623. if test x$have_loadso != xyes && \
  18624. test x$enable_alsa_shared = xyes; then
  18625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18626. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18627. fi
  18628. if test x$have_loadso = xyes && \
  18629. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18630. echo "-- dynamic libasound -> $alsa_lib"
  18631. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18632. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18633. else
  18634. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18635. SUMMARY_audio="${SUMMARY_audio} alsa"
  18636. fi
  18637. have_audio=yes
  18638. fi
  18639. fi
  18640. }
  18641. CheckJACK()
  18642. {
  18643. # Check whether --enable-jack was given.
  18644. if test ${enable_jack+y}
  18645. then :
  18646. enableval=$enable_jack;
  18647. else $as_nop
  18648. enable_jack=yes
  18649. fi
  18650. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18651. pkg_failed=no
  18652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18653. printf %s "checking for jack >= 0.125... " >&6; }
  18654. if test -n "$JACK_CFLAGS"; then
  18655. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18656. elif test -n "$PKG_CONFIG"; then
  18657. if test -n "$PKG_CONFIG" && \
  18658. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18659. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18660. ac_status=$?
  18661. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18662. test $ac_status = 0; }; then
  18663. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18664. test "x$?" != "x0" && pkg_failed=yes
  18665. else
  18666. pkg_failed=yes
  18667. fi
  18668. else
  18669. pkg_failed=untried
  18670. fi
  18671. if test -n "$JACK_LIBS"; then
  18672. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18673. elif test -n "$PKG_CONFIG"; then
  18674. if test -n "$PKG_CONFIG" && \
  18675. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18676. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18677. ac_status=$?
  18678. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18679. test $ac_status = 0; }; then
  18680. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18681. test "x$?" != "x0" && pkg_failed=yes
  18682. else
  18683. pkg_failed=yes
  18684. fi
  18685. else
  18686. pkg_failed=untried
  18687. fi
  18688. if test $pkg_failed = yes; then
  18689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18690. printf "%s\n" "no" >&6; }
  18691. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18692. _pkg_short_errors_supported=yes
  18693. else
  18694. _pkg_short_errors_supported=no
  18695. fi
  18696. if test $_pkg_short_errors_supported = yes; then
  18697. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18698. else
  18699. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18700. fi
  18701. # Put the nasty error message in config.log where it belongs
  18702. echo "$JACK_PKG_ERRORS" >&5
  18703. audio_jack=no
  18704. elif test $pkg_failed = untried; then
  18705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18706. printf "%s\n" "no" >&6; }
  18707. audio_jack=no
  18708. else
  18709. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18710. JACK_LIBS=$pkg_cv_JACK_LIBS
  18711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18712. printf "%s\n" "yes" >&6; }
  18713. audio_jack=yes
  18714. fi
  18715. if test x$audio_jack = xyes; then
  18716. # Check whether --enable-jack-shared was given.
  18717. if test ${enable_jack_shared+y}
  18718. then :
  18719. enableval=$enable_jack_shared;
  18720. else $as_nop
  18721. enable_jack_shared=yes
  18722. fi
  18723. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18724. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18725. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18726. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18727. if test x$have_loadso != xyes && \
  18728. test x$enable_jack_shared = xyes; then
  18729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18730. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18731. fi
  18732. if test x$have_loadso = xyes && \
  18733. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18734. echo "-- dynamic libjack -> $jack_lib"
  18735. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18736. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18737. case "$host" in
  18738. # On Solaris, jack must be linked deferred explicitly
  18739. # to prevent undefined symbol failures.
  18740. *-*-solaris*)
  18741. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18742. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18743. esac
  18744. else
  18745. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18746. SUMMARY_audio="${SUMMARY_audio} jack"
  18747. fi
  18748. have_audio=yes
  18749. fi
  18750. fi
  18751. }
  18752. CheckESD()
  18753. {
  18754. # Check whether --enable-esd was given.
  18755. if test ${enable_esd+y}
  18756. then :
  18757. enableval=$enable_esd;
  18758. else $as_nop
  18759. enable_esd=yes
  18760. fi
  18761. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18762. # Check whether --with-esd-prefix was given.
  18763. if test ${with_esd_prefix+y}
  18764. then :
  18765. withval=$with_esd_prefix; esd_prefix="$withval"
  18766. else $as_nop
  18767. esd_prefix=""
  18768. fi
  18769. # Check whether --with-esd-exec-prefix was given.
  18770. if test ${with_esd_exec_prefix+y}
  18771. then :
  18772. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18773. else $as_nop
  18774. esd_exec_prefix=""
  18775. fi
  18776. # Check whether --enable-esdtest was given.
  18777. if test ${enable_esdtest+y}
  18778. then :
  18779. enableval=$enable_esdtest;
  18780. else $as_nop
  18781. enable_esdtest=yes
  18782. fi
  18783. if test x$esd_exec_prefix != x ; then
  18784. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18785. if test x${ESD_CONFIG+set} != xset ; then
  18786. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18787. fi
  18788. fi
  18789. if test x$esd_prefix != x ; then
  18790. esd_args="$esd_args --prefix=$esd_prefix"
  18791. if test x${ESD_CONFIG+set} != xset ; then
  18792. ESD_CONFIG=$esd_prefix/bin/esd-config
  18793. fi
  18794. fi
  18795. # Extract the first word of "esd-config", so it can be a program name with args.
  18796. set dummy esd-config; ac_word=$2
  18797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18798. printf %s "checking for $ac_word... " >&6; }
  18799. if test ${ac_cv_path_ESD_CONFIG+y}
  18800. then :
  18801. printf %s "(cached) " >&6
  18802. else $as_nop
  18803. case $ESD_CONFIG in
  18804. [\\/]* | ?:[\\/]*)
  18805. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18806. ;;
  18807. *)
  18808. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18809. for as_dir in $PATH
  18810. do
  18811. IFS=$as_save_IFS
  18812. case $as_dir in #(((
  18813. '') as_dir=./ ;;
  18814. */) ;;
  18815. *) as_dir=$as_dir/ ;;
  18816. esac
  18817. for ac_exec_ext in '' $ac_executable_extensions; do
  18818. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18819. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18820. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18821. break 2
  18822. fi
  18823. done
  18824. done
  18825. IFS=$as_save_IFS
  18826. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18827. ;;
  18828. esac
  18829. fi
  18830. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18831. if test -n "$ESD_CONFIG"; then
  18832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18833. printf "%s\n" "$ESD_CONFIG" >&6; }
  18834. else
  18835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18836. printf "%s\n" "no" >&6; }
  18837. fi
  18838. min_esd_version=0.2.8
  18839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18840. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18841. no_esd=""
  18842. if test "$ESD_CONFIG" = "no" ; then
  18843. no_esd=yes
  18844. else
  18845. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18846. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18847. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18848. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18849. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18850. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18851. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18852. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18853. if test "x$enable_esdtest" = "xyes" ; then
  18854. ac_ext=c
  18855. ac_cpp='$CPP $CPPFLAGS'
  18856. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18857. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18858. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18859. ac_save_CFLAGS="$CFLAGS"
  18860. ac_save_LIBS="$LIBS"
  18861. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18862. LIBS="$LIBS $ESD_LIBS"
  18863. rm -f conf.esdtest
  18864. if test "$cross_compiling" = yes
  18865. then :
  18866. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18867. else $as_nop
  18868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18869. /* end confdefs.h. */
  18870. #include <stdio.h>
  18871. #include <stdlib.h>
  18872. #include <esd.h>
  18873. int main (void)
  18874. {
  18875. int major, minor, micro;
  18876. FILE *fp = fopen("conf.esdtest", "w");
  18877. if (fp) fclose(fp);
  18878. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18879. printf("%s, bad version string\n", "$min_esd_version");
  18880. exit(1);
  18881. }
  18882. if (($esd_major_version > major) ||
  18883. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18884. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18885. {
  18886. return 0;
  18887. }
  18888. else
  18889. {
  18890. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18891. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18892. printf("*** best to upgrade to the required version.\n");
  18893. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18894. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18895. printf("*** config.cache before re-running configure\n");
  18896. return 1;
  18897. }
  18898. }
  18899. _ACEOF
  18900. if ac_fn_c_try_run "$LINENO"
  18901. then :
  18902. else $as_nop
  18903. no_esd=yes
  18904. fi
  18905. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18906. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18907. fi
  18908. CFLAGS="$ac_save_CFLAGS"
  18909. LIBS="$ac_save_LIBS"
  18910. ac_ext=c
  18911. ac_cpp='$CPP $CPPFLAGS'
  18912. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18913. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18914. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18915. fi
  18916. fi
  18917. if test "x$no_esd" = x ; then
  18918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18919. printf "%s\n" "yes" >&6; }
  18920. have_esd=yes
  18921. else
  18922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18923. printf "%s\n" "no" >&6; }
  18924. if test "$ESD_CONFIG" = "no" ; then
  18925. echo "*** The esd-config script installed by ESD could not be found"
  18926. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  18927. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  18928. echo "*** full path to esd-config."
  18929. else
  18930. if test -f conf.esdtest ; then
  18931. :
  18932. else
  18933. echo "*** Could not run ESD test program, checking why..."
  18934. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18935. LIBS="$LIBS $ESD_LIBS"
  18936. ac_ext=c
  18937. ac_cpp='$CPP $CPPFLAGS'
  18938. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18939. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18940. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18942. /* end confdefs.h. */
  18943. #include <stdio.h>
  18944. #include <esd.h>
  18945. int
  18946. main (void)
  18947. {
  18948. return 0;
  18949. ;
  18950. return 0;
  18951. }
  18952. _ACEOF
  18953. if ac_fn_c_try_link "$LINENO"
  18954. then :
  18955. echo "*** The test program compiled, but did not run. This usually means"
  18956. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18957. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18958. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18959. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18960. echo "*** is required on your system"
  18961. echo "***"
  18962. echo "*** If you have an old version installed, it is best to remove it, although"
  18963. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18964. else $as_nop
  18965. echo "*** The test program failed to compile or link. See the file config.log for the"
  18966. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18967. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18968. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18969. fi
  18970. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18971. conftest$ac_exeext conftest.$ac_ext
  18972. CFLAGS="$ac_save_CFLAGS"
  18973. LIBS="$ac_save_LIBS"
  18974. ac_ext=c
  18975. ac_cpp='$CPP $CPPFLAGS'
  18976. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18977. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18978. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18979. fi
  18980. fi
  18981. ESD_CFLAGS=""
  18982. ESD_LIBS=""
  18983. have_esd=no
  18984. fi
  18985. rm -f conf.esdtest
  18986. if test x$have_esd = xyes; then
  18987. # Check whether --enable-esd-shared was given.
  18988. if test ${enable_esd_shared+y}
  18989. then :
  18990. enableval=$enable_esd_shared;
  18991. else $as_nop
  18992. enable_esd_shared=yes
  18993. fi
  18994. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18995. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  18996. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  18997. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  18998. if test x$have_loadso != xyes && \
  18999. test x$enable_esd_shared = xyes; then
  19000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  19001. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  19002. fi
  19003. if test x$have_loadso = xyes && \
  19004. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  19005. echo "-- dynamic libesd -> $esd_lib"
  19006. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  19007. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  19008. else
  19009. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  19010. SUMMARY_audio="${SUMMARY_audio} esd"
  19011. fi
  19012. have_audio=yes
  19013. fi
  19014. fi
  19015. }
  19016. CheckPipewire()
  19017. {
  19018. # Check whether --enable-pipewire was given.
  19019. if test ${enable_pipewire+y}
  19020. then :
  19021. enableval=$enable_pipewire;
  19022. else $as_nop
  19023. enable_pipewire=yes
  19024. fi
  19025. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  19026. pkg_failed=no
  19027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  19028. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  19029. if test -n "$PIPEWIRE_CFLAGS"; then
  19030. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  19031. elif test -n "$PKG_CONFIG"; then
  19032. if test -n "$PKG_CONFIG" && \
  19033. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19034. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19035. ac_status=$?
  19036. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19037. test $ac_status = 0; }; then
  19038. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19039. test "x$?" != "x0" && pkg_failed=yes
  19040. else
  19041. pkg_failed=yes
  19042. fi
  19043. else
  19044. pkg_failed=untried
  19045. fi
  19046. if test -n "$PIPEWIRE_LIBS"; then
  19047. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  19048. elif test -n "$PKG_CONFIG"; then
  19049. if test -n "$PKG_CONFIG" && \
  19050. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19051. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19052. ac_status=$?
  19053. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19054. test $ac_status = 0; }; then
  19055. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19056. test "x$?" != "x0" && pkg_failed=yes
  19057. else
  19058. pkg_failed=yes
  19059. fi
  19060. else
  19061. pkg_failed=untried
  19062. fi
  19063. if test $pkg_failed = yes; then
  19064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19065. printf "%s\n" "no" >&6; }
  19066. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19067. _pkg_short_errors_supported=yes
  19068. else
  19069. _pkg_short_errors_supported=no
  19070. fi
  19071. if test $_pkg_short_errors_supported = yes; then
  19072. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19073. else
  19074. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19075. fi
  19076. # Put the nasty error message in config.log where it belongs
  19077. echo "$PIPEWIRE_PKG_ERRORS" >&5
  19078. audio_pipewire=no
  19079. elif test $pkg_failed = untried; then
  19080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19081. printf "%s\n" "no" >&6; }
  19082. audio_pipewire=no
  19083. else
  19084. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19085. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19087. printf "%s\n" "yes" >&6; }
  19088. audio_pipewire=yes
  19089. fi
  19090. if test x$audio_pipewire = xyes; then
  19091. # Check whether --enable-pipewire-shared was given.
  19092. if test ${enable_pipewire_shared+y}
  19093. then :
  19094. enableval=$enable_pipewire_shared;
  19095. else $as_nop
  19096. enable_pipewire_shared=yes
  19097. fi
  19098. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19099. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19100. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19101. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19102. if test x$have_loadso != xyes && \
  19103. test x$enable_pipewire_shared = xyes; then
  19104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19105. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19106. fi
  19107. if test x$have_loadso = xyes && \
  19108. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19109. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19110. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19111. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19112. else
  19113. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19114. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19115. fi
  19116. have_audio=yes
  19117. fi
  19118. fi
  19119. }
  19120. CheckPulseAudio()
  19121. {
  19122. # Check whether --enable-pulseaudio was given.
  19123. if test ${enable_pulseaudio+y}
  19124. then :
  19125. enableval=$enable_pulseaudio;
  19126. else $as_nop
  19127. enable_pulseaudio=yes
  19128. fi
  19129. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19130. pkg_failed=no
  19131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  19132. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  19133. if test -n "$PULSEAUDIO_CFLAGS"; then
  19134. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19135. elif test -n "$PKG_CONFIG"; then
  19136. if test -n "$PKG_CONFIG" && \
  19137. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19138. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19139. ac_status=$?
  19140. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19141. test $ac_status = 0; }; then
  19142. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  19143. test "x$?" != "x0" && pkg_failed=yes
  19144. else
  19145. pkg_failed=yes
  19146. fi
  19147. else
  19148. pkg_failed=untried
  19149. fi
  19150. if test -n "$PULSEAUDIO_LIBS"; then
  19151. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19152. elif test -n "$PKG_CONFIG"; then
  19153. if test -n "$PKG_CONFIG" && \
  19154. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19155. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19156. ac_status=$?
  19157. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19158. test $ac_status = 0; }; then
  19159. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  19160. test "x$?" != "x0" && pkg_failed=yes
  19161. else
  19162. pkg_failed=yes
  19163. fi
  19164. else
  19165. pkg_failed=untried
  19166. fi
  19167. if test $pkg_failed = yes; then
  19168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19169. printf "%s\n" "no" >&6; }
  19170. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19171. _pkg_short_errors_supported=yes
  19172. else
  19173. _pkg_short_errors_supported=no
  19174. fi
  19175. if test $_pkg_short_errors_supported = yes; then
  19176. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19177. else
  19178. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19179. fi
  19180. # Put the nasty error message in config.log where it belongs
  19181. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19182. audio_pulseaudio=no
  19183. elif test $pkg_failed = untried; then
  19184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19185. printf "%s\n" "no" >&6; }
  19186. audio_pulseaudio=no
  19187. else
  19188. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19189. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19191. printf "%s\n" "yes" >&6; }
  19192. audio_pulseaudio=yes
  19193. fi
  19194. if test x$audio_pulseaudio = xyes; then
  19195. # Check whether --enable-pulseaudio-shared was given.
  19196. if test ${enable_pulseaudio_shared+y}
  19197. then :
  19198. enableval=$enable_pulseaudio_shared;
  19199. else $as_nop
  19200. enable_pulseaudio_shared=yes
  19201. fi
  19202. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19203. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19204. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19205. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19206. if test x$have_loadso != xyes && \
  19207. test x$enable_pulseaudio_shared = xyes; then
  19208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19209. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19210. fi
  19211. if test x$have_loadso = xyes && \
  19212. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19213. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  19214. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19215. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19216. case "$host" in
  19217. # On Solaris, pulseaudio must be linked deferred explicitly
  19218. # to prevent undefined symbol failures.
  19219. *-*-solaris*)
  19220. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19221. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19222. esac
  19223. else
  19224. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19225. SUMMARY_audio="${SUMMARY_audio} pulse"
  19226. fi
  19227. have_audio=yes
  19228. fi
  19229. fi
  19230. }
  19231. CheckARTSC()
  19232. {
  19233. # Check whether --enable-arts was given.
  19234. if test ${enable_arts+y}
  19235. then :
  19236. enableval=$enable_arts;
  19237. else $as_nop
  19238. enable_arts=yes
  19239. fi
  19240. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19241. # Extract the first word of "artsc-config", so it can be a program name with args.
  19242. set dummy artsc-config; ac_word=$2
  19243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19244. printf %s "checking for $ac_word... " >&6; }
  19245. if test ${ac_cv_path_ARTSCONFIG+y}
  19246. then :
  19247. printf %s "(cached) " >&6
  19248. else $as_nop
  19249. case $ARTSCONFIG in
  19250. [\\/]* | ?:[\\/]*)
  19251. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19252. ;;
  19253. *)
  19254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19255. for as_dir in $PATH
  19256. do
  19257. IFS=$as_save_IFS
  19258. case $as_dir in #(((
  19259. '') as_dir=./ ;;
  19260. */) ;;
  19261. *) as_dir=$as_dir/ ;;
  19262. esac
  19263. for ac_exec_ext in '' $ac_executable_extensions; do
  19264. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19265. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19266. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19267. break 2
  19268. fi
  19269. done
  19270. done
  19271. IFS=$as_save_IFS
  19272. ;;
  19273. esac
  19274. fi
  19275. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19276. if test -n "$ARTSCONFIG"; then
  19277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19278. printf "%s\n" "$ARTSCONFIG" >&6; }
  19279. else
  19280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19281. printf "%s\n" "no" >&6; }
  19282. fi
  19283. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19284. : # arts isn't installed
  19285. else
  19286. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19287. ARTS_LIBS=`$ARTSCONFIG --libs`
  19288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19289. printf %s "checking for aRts development environment... " >&6; }
  19290. audio_arts=no
  19291. save_CFLAGS="$CFLAGS"
  19292. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19294. /* end confdefs.h. */
  19295. #include <artsc.h>
  19296. int
  19297. main (void)
  19298. {
  19299. arts_stream_t stream;
  19300. ;
  19301. return 0;
  19302. }
  19303. _ACEOF
  19304. if ac_fn_c_try_compile "$LINENO"
  19305. then :
  19306. audio_arts=yes
  19307. fi
  19308. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19309. CFLAGS="$save_CFLAGS"
  19310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19311. printf "%s\n" "$audio_arts" >&6; }
  19312. if test x$audio_arts = xyes; then
  19313. # Check whether --enable-arts-shared was given.
  19314. if test ${enable_arts_shared+y}
  19315. then :
  19316. enableval=$enable_arts_shared;
  19317. else $as_nop
  19318. enable_arts_shared=yes
  19319. fi
  19320. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19321. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19322. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19323. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19324. if test x$have_loadso != xyes && \
  19325. test x$enable_arts_shared = xyes; then
  19326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19327. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19328. fi
  19329. if test x$have_loadso = xyes && \
  19330. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19331. echo "-- dynamic libartsc -> $arts_lib"
  19332. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19333. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19334. else
  19335. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19336. SUMMARY_audio="${SUMMARY_audio} arts"
  19337. fi
  19338. have_audio=yes
  19339. fi
  19340. fi
  19341. fi
  19342. }
  19343. CheckNAS()
  19344. {
  19345. # Check whether --enable-nas was given.
  19346. if test ${enable_nas+y}
  19347. then :
  19348. enableval=$enable_nas;
  19349. else $as_nop
  19350. enable_nas=yes
  19351. fi
  19352. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19353. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19354. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19355. then :
  19356. have_nas_hdr=yes
  19357. fi
  19358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19359. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19360. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19361. then :
  19362. printf %s "(cached) " >&6
  19363. else $as_nop
  19364. ac_check_lib_save_LIBS=$LIBS
  19365. LIBS="-laudio $LIBS"
  19366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19367. /* end confdefs.h. */
  19368. /* Override any GCC internal prototype to avoid an error.
  19369. Use char because int might match the return type of a GCC
  19370. builtin and then its argument prototype would still apply. */
  19371. char AuOpenServer ();
  19372. int
  19373. main (void)
  19374. {
  19375. return AuOpenServer ();
  19376. ;
  19377. return 0;
  19378. }
  19379. _ACEOF
  19380. if ac_fn_c_try_link "$LINENO"
  19381. then :
  19382. ac_cv_lib_audio_AuOpenServer=yes
  19383. else $as_nop
  19384. ac_cv_lib_audio_AuOpenServer=no
  19385. fi
  19386. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19387. conftest$ac_exeext conftest.$ac_ext
  19388. LIBS=$ac_check_lib_save_LIBS
  19389. fi
  19390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19391. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19392. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19393. then :
  19394. have_nas_lib=yes
  19395. fi
  19396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19397. printf %s "checking for NAS audio support... " >&6; }
  19398. have_nas=no
  19399. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19400. have_nas=yes
  19401. NAS_LIBS="-laudio"
  19402. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19403. have_nas=yes
  19404. NAS_CFLAGS="-I/usr/X11R6/include/"
  19405. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19406. fi
  19407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19408. printf "%s\n" "$have_nas" >&6; }
  19409. if test x$have_nas = xyes; then
  19410. # Check whether --enable-nas-shared was given.
  19411. if test ${enable_nas_shared+y}
  19412. then :
  19413. enableval=$enable_nas_shared;
  19414. else $as_nop
  19415. enable_nas_shared=yes
  19416. fi
  19417. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19418. if test x$have_loadso != xyes && \
  19419. test x$enable_nas_shared = xyes; then
  19420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19421. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19422. fi
  19423. if test x$have_loadso = xyes && \
  19424. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19425. echo "-- dynamic libaudio -> $nas_lib"
  19426. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19427. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19428. else
  19429. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19430. SUMMARY_audio="${SUMMARY_audio} nas"
  19431. fi
  19432. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19433. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19434. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19435. have_audio=yes
  19436. fi
  19437. fi
  19438. }
  19439. CheckSNDIO()
  19440. {
  19441. # Check whether --enable-sndio was given.
  19442. if test ${enable_sndio+y}
  19443. then :
  19444. enableval=$enable_sndio;
  19445. else $as_nop
  19446. enable_sndio=yes
  19447. fi
  19448. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19449. ac_fn_c_check_header_compile "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  19450. if test "x$ac_cv_header_sndio_h" = xyes
  19451. then :
  19452. have_sndio_hdr=yes
  19453. fi
  19454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  19455. printf %s "checking for sio_open in -lsndio... " >&6; }
  19456. if test ${ac_cv_lib_sndio_sio_open+y}
  19457. then :
  19458. printf %s "(cached) " >&6
  19459. else $as_nop
  19460. ac_check_lib_save_LIBS=$LIBS
  19461. LIBS="-lsndio $LIBS"
  19462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19463. /* end confdefs.h. */
  19464. /* Override any GCC internal prototype to avoid an error.
  19465. Use char because int might match the return type of a GCC
  19466. builtin and then its argument prototype would still apply. */
  19467. char sio_open ();
  19468. int
  19469. main (void)
  19470. {
  19471. return sio_open ();
  19472. ;
  19473. return 0;
  19474. }
  19475. _ACEOF
  19476. if ac_fn_c_try_link "$LINENO"
  19477. then :
  19478. ac_cv_lib_sndio_sio_open=yes
  19479. else $as_nop
  19480. ac_cv_lib_sndio_sio_open=no
  19481. fi
  19482. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19483. conftest$ac_exeext conftest.$ac_ext
  19484. LIBS=$ac_check_lib_save_LIBS
  19485. fi
  19486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  19487. printf "%s\n" "$ac_cv_lib_sndio_sio_open" >&6; }
  19488. if test "x$ac_cv_lib_sndio_sio_open" = xyes
  19489. then :
  19490. have_sndio_lib=yes
  19491. fi
  19492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  19493. printf %s "checking for sndio audio support... " >&6; }
  19494. have_sndio=no
  19495. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  19496. have_sndio=yes
  19497. SNDIO_LIBS="-lsndio"
  19498. fi
  19499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  19500. printf "%s\n" "$have_sndio" >&6; }
  19501. if test x$have_sndio = xyes; then
  19502. # Check whether --enable-sndio-shared was given.
  19503. if test ${enable_sndio_shared+y}
  19504. then :
  19505. enableval=$enable_sndio_shared;
  19506. else $as_nop
  19507. enable_sndio_shared=yes
  19508. fi
  19509. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19510. if test x$have_loadso != xyes && \
  19511. test x$enable_sndio_shared = xyes; then
  19512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19513. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19514. fi
  19515. if test x$have_loadso = xyes && \
  19516. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19517. echo "-- dynamic libsndio -> $sndio_lib"
  19518. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19519. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19520. else
  19521. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19522. SUMMARY_audio="${SUMMARY_audio} sndio"
  19523. fi
  19524. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19525. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19526. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19527. have_audio=yes
  19528. fi
  19529. fi
  19530. }
  19531. CheckFusionSound()
  19532. {
  19533. # Check whether --enable-fusionsound was given.
  19534. if test ${enable_fusionsound+y}
  19535. then :
  19536. enableval=$enable_fusionsound;
  19537. else $as_nop
  19538. enable_fusionsound=no
  19539. fi
  19540. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19541. pkg_failed=no
  19542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19543. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19544. if test -n "$FUSIONSOUND_CFLAGS"; then
  19545. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19546. elif test -n "$PKG_CONFIG"; then
  19547. if test -n "$PKG_CONFIG" && \
  19548. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19549. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19550. ac_status=$?
  19551. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19552. test $ac_status = 0; }; then
  19553. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19554. test "x$?" != "x0" && pkg_failed=yes
  19555. else
  19556. pkg_failed=yes
  19557. fi
  19558. else
  19559. pkg_failed=untried
  19560. fi
  19561. if test -n "$FUSIONSOUND_LIBS"; then
  19562. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19563. elif test -n "$PKG_CONFIG"; then
  19564. if test -n "$PKG_CONFIG" && \
  19565. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19566. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19567. ac_status=$?
  19568. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19569. test $ac_status = 0; }; then
  19570. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19571. test "x$?" != "x0" && pkg_failed=yes
  19572. else
  19573. pkg_failed=yes
  19574. fi
  19575. else
  19576. pkg_failed=untried
  19577. fi
  19578. if test $pkg_failed = yes; then
  19579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19580. printf "%s\n" "no" >&6; }
  19581. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19582. _pkg_short_errors_supported=yes
  19583. else
  19584. _pkg_short_errors_supported=no
  19585. fi
  19586. if test $_pkg_short_errors_supported = yes; then
  19587. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19588. else
  19589. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19590. fi
  19591. # Put the nasty error message in config.log where it belongs
  19592. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19593. fusionsound=no
  19594. elif test $pkg_failed = untried; then
  19595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19596. printf "%s\n" "no" >&6; }
  19597. fusionsound=no
  19598. else
  19599. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19600. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19602. printf "%s\n" "yes" >&6; }
  19603. fusionsound=yes
  19604. fi
  19605. if test x$fusionsound = xyes; then
  19606. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19607. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19608. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19609. # Check whether --enable-fusionsound-shared was given.
  19610. if test ${enable_fusionsound_shared+y}
  19611. then :
  19612. enableval=$enable_fusionsound_shared;
  19613. else $as_nop
  19614. enable_fusionsound_shared=yes
  19615. fi
  19616. fusionsound_shared=no
  19617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19618. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19619. if test x$have_loadso != xyes && \
  19620. test x$enable_fusionsound_shared = xyes; then
  19621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19622. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19623. fi
  19624. if test x$have_loadso = xyes && \
  19625. test x$enable_fusionsound_shared = xyes; then
  19626. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19627. fusionsound_shared=yes
  19628. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19629. else
  19630. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19631. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19632. fi
  19633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19634. printf "%s\n" "$fusionsound_shared" >&6; }
  19635. have_audio=yes
  19636. fi
  19637. fi
  19638. }
  19639. CheckDiskAudio()
  19640. {
  19641. # Check whether --enable-diskaudio was given.
  19642. if test ${enable_diskaudio+y}
  19643. then :
  19644. enableval=$enable_diskaudio;
  19645. else $as_nop
  19646. enable_diskaudio=yes
  19647. fi
  19648. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19649. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19650. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19651. SUMMARY_audio="${SUMMARY_audio} disk"
  19652. have_audio=yes
  19653. fi
  19654. }
  19655. CheckDummyAudio()
  19656. {
  19657. # Check whether --enable-dummyaudio was given.
  19658. if test ${enable_dummyaudio+y}
  19659. then :
  19660. enableval=$enable_dummyaudio;
  19661. else $as_nop
  19662. enable_dummyaudio=yes
  19663. fi
  19664. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19665. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19666. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19667. SUMMARY_audio="${SUMMARY_audio} dummy"
  19668. have_audio=yes
  19669. fi
  19670. }
  19671. CheckLibSampleRate()
  19672. {
  19673. # Check whether --enable-libsamplerate was given.
  19674. if test ${enable_libsamplerate+y}
  19675. then :
  19676. enableval=$enable_libsamplerate;
  19677. else $as_nop
  19678. enable_libsamplerate=yes
  19679. fi
  19680. if test x$enable_libsamplerate = xyes; then
  19681. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19682. if test "x$ac_cv_header_samplerate_h" = xyes
  19683. then :
  19684. have_samplerate_h_hdr=yes
  19685. else $as_nop
  19686. have_samplerate_h_hdr=no
  19687. fi
  19688. if test x$have_samplerate_h_hdr = xyes; then
  19689. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19690. # Check whether --enable-libsamplerate-shared was given.
  19691. if test ${enable_libsamplerate_shared+y}
  19692. then :
  19693. enableval=$enable_libsamplerate_shared;
  19694. else $as_nop
  19695. enable_libsamplerate_shared=yes
  19696. fi
  19697. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19698. if test x$have_loadso != xyes && \
  19699. test x$enable_libsamplerate_shared = xyes; then
  19700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19701. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19702. fi
  19703. if test x$have_loadso = xyes && \
  19704. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19705. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19706. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19707. else
  19708. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19709. fi
  19710. fi
  19711. fi
  19712. }
  19713. CheckARM()
  19714. {
  19715. # Check whether --enable-arm-simd was given.
  19716. if test ${enable_arm_simd+y}
  19717. then :
  19718. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19719. else $as_nop
  19720. enable_arm_simd=no
  19721. fi
  19722. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19723. save_CFLAGS="$CFLAGS"
  19724. have_arm_simd=no
  19725. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19727. printf %s "checking for ARM SIMD... " >&6; }
  19728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19729. /* end confdefs.h. */
  19730. .text
  19731. .arch armv6
  19732. .object_arch armv4
  19733. .arm
  19734. .altmacro
  19735. #ifndef __ARM_EABI__
  19736. #error EABI is required (to be sure that calling conventions are compatible)
  19737. #endif
  19738. pld [r0]
  19739. uqadd8 r0, r0, r0
  19740. _ACEOF
  19741. if ac_fn_c_try_compile "$LINENO"
  19742. then :
  19743. have_arm_simd=yes
  19744. fi
  19745. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19747. printf "%s\n" "$have_arm_simd" >&6; }
  19748. CFLAGS="$save_CFLAGS"
  19749. if test x$have_arm_simd = xyes; then
  19750. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19751. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19752. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19753. fi
  19754. fi
  19755. }
  19756. CheckNEON()
  19757. {
  19758. # Check whether --enable-arm-neon was given.
  19759. if test ${enable_arm_neon+y}
  19760. then :
  19761. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19762. else $as_nop
  19763. enable_arm_neon=no
  19764. fi
  19765. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19766. save_CFLAGS="$CFLAGS"
  19767. have_arm_neon=no
  19768. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19770. printf %s "checking for ARM NEON... " >&6; }
  19771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19772. /* end confdefs.h. */
  19773. .text
  19774. .fpu neon
  19775. .arch armv7a
  19776. .object_arch armv4
  19777. .eabi_attribute 10, 0
  19778. .arm
  19779. .altmacro
  19780. #ifndef __ARM_EABI__
  19781. #error EABI is required (to be sure that calling conventions are compatible)
  19782. #endif
  19783. pld [r0]
  19784. vmovn.u16 d0, q0
  19785. _ACEOF
  19786. if ac_fn_c_try_compile "$LINENO"
  19787. then :
  19788. have_arm_neon=yes
  19789. fi
  19790. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19792. printf "%s\n" "$have_arm_neon" >&6; }
  19793. CFLAGS="$save_CFLAGS"
  19794. if test x$have_arm_neon = xyes; then
  19795. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19796. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19797. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19798. fi
  19799. fi
  19800. }
  19801. CheckObjectiveCARC()
  19802. {
  19803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19804. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19805. have_clang_objc_arc=no
  19806. save_CFLAGS="$CFLAGS"
  19807. CFLAGS="$save_CFLAGS -fobjc-arc"
  19808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19809. /* end confdefs.h. */
  19810. int x = 0;
  19811. int
  19812. main (void)
  19813. {
  19814. ;
  19815. return 0;
  19816. }
  19817. _ACEOF
  19818. if ac_fn_c_try_compile "$LINENO"
  19819. then :
  19820. have_clang_objc_arc=yes
  19821. fi
  19822. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19824. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19825. CFLAGS="$save_CFLAGS"
  19826. if test x$have_clang_objc_arc = xyes; then
  19827. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19828. fi
  19829. }
  19830. CheckVisibilityHidden()
  19831. {
  19832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19833. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19834. have_gcc_fvisibility=no
  19835. visibility_CFLAGS="-fvisibility=hidden"
  19836. save_CFLAGS="$CFLAGS"
  19837. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19839. /* end confdefs.h. */
  19840. #if !defined(__GNUC__) || __GNUC__ < 4
  19841. #error SDL only uses visibility attributes in GCC 4 or newer
  19842. #endif
  19843. int
  19844. main (void)
  19845. {
  19846. ;
  19847. return 0;
  19848. }
  19849. _ACEOF
  19850. if ac_fn_c_try_compile "$LINENO"
  19851. then :
  19852. have_gcc_fvisibility=yes
  19853. fi
  19854. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19856. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19857. CFLAGS="$save_CFLAGS"
  19858. if test x$have_gcc_fvisibility = xyes; then
  19859. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19860. fi
  19861. }
  19862. CheckNoStrictAliasing()
  19863. {
  19864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19865. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19866. have_gcc_no_strict_aliasing=no
  19867. save_CFLAGS="$CFLAGS"
  19868. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19870. /* end confdefs.h. */
  19871. int x = 0;
  19872. int
  19873. main (void)
  19874. {
  19875. ;
  19876. return 0;
  19877. }
  19878. _ACEOF
  19879. if ac_fn_c_try_compile "$LINENO"
  19880. then :
  19881. have_gcc_no_strict_aliasing=yes
  19882. fi
  19883. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19885. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19886. CFLAGS="$save_CFLAGS"
  19887. if test x$have_gcc_no_strict_aliasing = xyes; then
  19888. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19889. fi
  19890. }
  19891. CheckStackBoundary()
  19892. {
  19893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19894. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19895. have_gcc_preferred_stack_boundary=no
  19896. save_CFLAGS="$CFLAGS"
  19897. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  19898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19899. /* end confdefs.h. */
  19900. int x = 0;
  19901. int
  19902. main (void)
  19903. {
  19904. ;
  19905. return 0;
  19906. }
  19907. _ACEOF
  19908. if ac_fn_c_try_compile "$LINENO"
  19909. then :
  19910. have_gcc_preferred_stack_boundary=yes
  19911. fi
  19912. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  19914. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19915. CFLAGS="$save_CFLAGS"
  19916. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19917. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19918. fi
  19919. }
  19920. CheckDeclarationAfterStatement()
  19921. {
  19922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19923. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19924. have_gcc_declaration_after_statement=no
  19925. save_CFLAGS="$CFLAGS"
  19926. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19928. /* end confdefs.h. */
  19929. int x = 0;
  19930. int
  19931. main (void)
  19932. {
  19933. ;
  19934. return 0;
  19935. }
  19936. _ACEOF
  19937. if ac_fn_c_try_compile "$LINENO"
  19938. then :
  19939. have_gcc_declaration_after_statement=yes
  19940. fi
  19941. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19943. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19944. CFLAGS="$save_CFLAGS"
  19945. if test x$have_gcc_declaration_after_statement = xyes; then
  19946. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19947. fi
  19948. }
  19949. CheckWarnAll()
  19950. {
  19951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19952. printf %s "checking for GCC -Wall option... " >&6; }
  19953. have_gcc_Wall=no
  19954. save_CFLAGS="$CFLAGS"
  19955. CFLAGS="$save_CFLAGS -Wall"
  19956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19957. /* end confdefs.h. */
  19958. int x = 0;
  19959. int
  19960. main (void)
  19961. {
  19962. ;
  19963. return 0;
  19964. }
  19965. _ACEOF
  19966. if ac_fn_c_try_compile "$LINENO"
  19967. then :
  19968. have_gcc_Wall=yes
  19969. fi
  19970. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19972. printf "%s\n" "$have_gcc_Wall" >&6; }
  19973. CFLAGS="$save_CFLAGS"
  19974. if test x$have_gcc_Wall = xyes; then
  19975. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19977. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19978. need_gcc_Wno_multichar=no
  19979. case "$host" in
  19980. *-*-haiku*)
  19981. need_gcc_Wno_multichar=yes
  19982. ;;
  19983. esac
  19984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  19985. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  19986. if test x$need_gcc_Wno_multichar = xyes; then
  19987. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  19988. fi
  19989. fi
  19990. }
  19991. CheckWayland()
  19992. {
  19993. # Check whether --enable-video-wayland was given.
  19994. if test ${enable_video_wayland+y}
  19995. then :
  19996. enableval=$enable_video_wayland;
  19997. else $as_nop
  19998. enable_video_wayland=yes
  19999. fi
  20000. # Check whether --enable-video-wayland-qt-touch was given.
  20001. if test ${enable_video_wayland_qt_touch+y}
  20002. then :
  20003. enableval=$enable_video_wayland_qt_touch;
  20004. else $as_nop
  20005. enable_video_wayland_qt_touch=yes
  20006. fi
  20007. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  20008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  20009. printf %s "checking for Wayland support... " >&6; }
  20010. video_wayland=no
  20011. if test x$video_opengl_egl = xyes && \
  20012. test x$video_opengles_v2 = xyes; then
  20013. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  20014. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  20015. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  20016. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  20017. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  20018. then :
  20019. WAYLAND_SCANNER_CODE_MODE=private-code
  20020. else $as_nop
  20021. WAYLAND_SCANNER_CODE_MODE=code
  20022. fi
  20023. video_wayland=yes
  20024. fi
  20025. fi
  20026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  20027. printf "%s\n" "$video_wayland" >&6; }
  20028. if test x$video_wayland = xyes; then
  20029. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  20030. if test x$enable_video_wayland_qt_touch = xyes; then
  20031. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  20032. fi
  20033. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  20034. SOURCES="$SOURCES $WAYLAND_SOURCES"
  20035. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  20036. # Check whether --enable-wayland-shared was given.
  20037. if test ${enable_wayland_shared+y}
  20038. then :
  20039. enableval=$enable_wayland_shared;
  20040. else $as_nop
  20041. enable_wayland_shared=maybe
  20042. fi
  20043. case "$host" in
  20044. *)
  20045. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20046. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20047. if test x$wayland_egl_lib = x; then
  20048. # This works in Ubuntu 13.10, maybe others
  20049. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20050. fi
  20051. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20052. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20053. ;;
  20054. esac
  20055. if test x$enable_wayland_shared = xmaybe; then
  20056. enable_wayland_shared=yes
  20057. fi
  20058. if test x$have_loadso != xyes && \
  20059. test x$enable_wayland_shared = xyes; then
  20060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20061. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20062. enable_wayland_shared=no
  20063. fi
  20064. if test x$have_loadso = xyes && \
  20065. test x$enable_wayland_shared = xyes && \
  20066. test x$wayland_client_lib != x && \
  20067. test x$wayland_egl_lib != x && \
  20068. test x$wayland_cursor_lib != x && \
  20069. test x$xkbcommon_lib != x; then
  20070. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20071. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20072. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20073. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20074. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20075. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20076. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20077. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20078. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20079. else
  20080. enable_wayland_shared=no
  20081. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20082. SUMMARY_video="${SUMMARY_video} wayland"
  20083. fi
  20084. have_video=yes
  20085. # Check whether --enable-libdecor was given.
  20086. if test ${enable_libdecor+y}
  20087. then :
  20088. enableval=$enable_libdecor;
  20089. else $as_nop
  20090. enable_libdecor=yes
  20091. fi
  20092. if test x$enable_libdecor = xyes; then
  20093. pkg_failed=no
  20094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20095. printf %s "checking for libdecor-0... " >&6; }
  20096. if test -n "$DECOR_CFLAGS"; then
  20097. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20098. elif test -n "$PKG_CONFIG"; then
  20099. if test -n "$PKG_CONFIG" && \
  20100. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20101. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20102. ac_status=$?
  20103. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20104. test $ac_status = 0; }; then
  20105. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20106. test "x$?" != "x0" && pkg_failed=yes
  20107. else
  20108. pkg_failed=yes
  20109. fi
  20110. else
  20111. pkg_failed=untried
  20112. fi
  20113. if test -n "$DECOR_LIBS"; then
  20114. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20115. elif test -n "$PKG_CONFIG"; then
  20116. if test -n "$PKG_CONFIG" && \
  20117. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20118. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20119. ac_status=$?
  20120. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20121. test $ac_status = 0; }; then
  20122. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20123. test "x$?" != "x0" && pkg_failed=yes
  20124. else
  20125. pkg_failed=yes
  20126. fi
  20127. else
  20128. pkg_failed=untried
  20129. fi
  20130. if test $pkg_failed = yes; then
  20131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20132. printf "%s\n" "no" >&6; }
  20133. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20134. _pkg_short_errors_supported=yes
  20135. else
  20136. _pkg_short_errors_supported=no
  20137. fi
  20138. if test $_pkg_short_errors_supported = yes; then
  20139. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20140. else
  20141. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20142. fi
  20143. # Put the nasty error message in config.log where it belongs
  20144. echo "$DECOR_PKG_ERRORS" >&5
  20145. video_libdecor=no
  20146. elif test $pkg_failed = untried; then
  20147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20148. printf "%s\n" "no" >&6; }
  20149. video_libdecor=no
  20150. else
  20151. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20152. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20154. printf "%s\n" "yes" >&6; }
  20155. video_libdecor=yes
  20156. fi
  20157. if test x$video_libdecor = xyes; then
  20158. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20159. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20160. # Check whether --enable-libdecor-shared was given.
  20161. if test ${enable_libdecor_shared+y}
  20162. then :
  20163. enableval=$enable_libdecor_shared;
  20164. else $as_nop
  20165. enable_libdecor_shared=yes
  20166. fi
  20167. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20168. if test x$enable_wayland_shared != xyes; then
  20169. enable_libdecor_shared=no
  20170. fi
  20171. if test x$have_loadso != xyes && \
  20172. test x$enable_libdecor_shared = xyes; then
  20173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20174. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20175. fi
  20176. if test x$have_loadso = xyes && \
  20177. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20178. echo "-- dynamic libdecor -> $decor_lib"
  20179. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20180. else
  20181. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20182. fi
  20183. fi
  20184. fi
  20185. fi
  20186. fi
  20187. }
  20188. CheckNativeClient()
  20189. {
  20190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20191. /* end confdefs.h. */
  20192. #if !defined(__native_client__)
  20193. #error "NO NACL"
  20194. #endif
  20195. int
  20196. main (void)
  20197. {
  20198. ;
  20199. return 0;
  20200. }
  20201. _ACEOF
  20202. if ac_fn_c_try_compile "$LINENO"
  20203. then :
  20204. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20205. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20206. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20207. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20208. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20209. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20210. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20211. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20212. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20213. SUMMARY_audio="${SUMMARY_audio} nacl"
  20214. have_audio=yes
  20215. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20216. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20217. have_video=yes
  20218. fi
  20219. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20220. }
  20221. CheckRPI()
  20222. {
  20223. # Check whether --enable-video-rpi was given.
  20224. if test ${enable_video_rpi+y}
  20225. then :
  20226. enableval=$enable_video_rpi;
  20227. else $as_nop
  20228. enable_video_rpi=yes
  20229. fi
  20230. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20231. pkg_failed=no
  20232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20233. printf %s "checking for bcm_host brcmegl... " >&6; }
  20234. if test -n "$RPI_CFLAGS"; then
  20235. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20236. elif test -n "$PKG_CONFIG"; then
  20237. if test -n "$PKG_CONFIG" && \
  20238. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20239. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20240. ac_status=$?
  20241. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20242. test $ac_status = 0; }; then
  20243. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20244. test "x$?" != "x0" && pkg_failed=yes
  20245. else
  20246. pkg_failed=yes
  20247. fi
  20248. else
  20249. pkg_failed=untried
  20250. fi
  20251. if test -n "$RPI_LIBS"; then
  20252. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20253. elif test -n "$PKG_CONFIG"; then
  20254. if test -n "$PKG_CONFIG" && \
  20255. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20256. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20257. ac_status=$?
  20258. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20259. test $ac_status = 0; }; then
  20260. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  20261. test "x$?" != "x0" && pkg_failed=yes
  20262. else
  20263. pkg_failed=yes
  20264. fi
  20265. else
  20266. pkg_failed=untried
  20267. fi
  20268. if test $pkg_failed = yes; then
  20269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20270. printf "%s\n" "no" >&6; }
  20271. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20272. _pkg_short_errors_supported=yes
  20273. else
  20274. _pkg_short_errors_supported=no
  20275. fi
  20276. if test $_pkg_short_errors_supported = yes; then
  20277. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20278. else
  20279. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20280. fi
  20281. # Put the nasty error message in config.log where it belongs
  20282. echo "$RPI_PKG_ERRORS" >&5
  20283. video_rpi=no
  20284. elif test $pkg_failed = untried; then
  20285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20286. printf "%s\n" "no" >&6; }
  20287. video_rpi=no
  20288. else
  20289. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20290. RPI_LIBS=$pkg_cv_RPI_LIBS
  20291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20292. printf "%s\n" "yes" >&6; }
  20293. video_rpi=yes
  20294. fi
  20295. if test x$video_rpi = xno; then
  20296. if test x$ARCH = xnetbsd; then
  20297. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20298. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20299. else
  20300. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20301. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20302. fi
  20303. fi
  20304. # Save the original compiler flags and libraries
  20305. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20306. # Add the Raspberry Pi compiler flags and libraries
  20307. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20309. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20310. have_video_rpi=no
  20311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20312. /* end confdefs.h. */
  20313. #include <bcm_host.h>
  20314. #include <EGL/eglplatform.h>
  20315. int
  20316. main (void)
  20317. {
  20318. EGL_DISPMANX_WINDOW_T window;
  20319. bcm_host_init();
  20320. ;
  20321. return 0;
  20322. }
  20323. _ACEOF
  20324. if ac_fn_c_try_link "$LINENO"
  20325. then :
  20326. have_video_rpi=yes
  20327. fi
  20328. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20329. conftest$ac_exeext conftest.$ac_ext
  20330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20331. printf "%s\n" "$have_video_rpi" >&6; }
  20332. # Restore the compiler flags and libraries
  20333. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20334. if test x$have_video_rpi = xyes; then
  20335. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20336. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20337. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20338. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20339. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20340. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20341. SUMMARY_video="${SUMMARY_video} rpi"
  20342. have_video=yes
  20343. fi
  20344. fi
  20345. }
  20346. CheckX11()
  20347. {
  20348. # Check whether --enable-video-x11 was given.
  20349. if test ${enable_video_x11+y}
  20350. then :
  20351. enableval=$enable_video_x11;
  20352. else $as_nop
  20353. enable_video_x11=yes
  20354. fi
  20355. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20356. case "$host" in
  20357. *-*-darwin*)
  20358. # This isn't necessary for X11, but fixes GLX detection
  20359. if test "x$x_includes" = xNONE && \
  20360. test "x$x_libraries" = xNONE && \
  20361. test -d /opt/X11/include && \
  20362. test -d /opt/X11/lib; then
  20363. x_includes="/opt/X11/include"
  20364. x_libraries="/opt/X11/lib"
  20365. fi
  20366. ;;
  20367. esac
  20368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20369. printf %s "checking for X... " >&6; }
  20370. # Check whether --with-x was given.
  20371. if test ${with_x+y}
  20372. then :
  20373. withval=$with_x;
  20374. fi
  20375. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20376. if test "x$with_x" = xno; then
  20377. # The user explicitly disabled X.
  20378. have_x=disabled
  20379. else
  20380. case $x_includes,$x_libraries in #(
  20381. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20382. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20383. then :
  20384. printf %s "(cached) " >&6
  20385. else $as_nop
  20386. # One or both of the vars are not set, and there is no cached value.
  20387. ac_x_includes=no
  20388. ac_x_libraries=no
  20389. # Do we need to do anything special at all?
  20390. ac_save_LIBS=$LIBS
  20391. LIBS="-lX11 $LIBS"
  20392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20393. /* end confdefs.h. */
  20394. #include <X11/Xlib.h>
  20395. int
  20396. main (void)
  20397. {
  20398. XrmInitialize ()
  20399. ;
  20400. return 0;
  20401. }
  20402. _ACEOF
  20403. if ac_fn_c_try_link "$LINENO"
  20404. then :
  20405. # We can compile and link X programs with no special options.
  20406. ac_x_includes=
  20407. ac_x_libraries=
  20408. fi
  20409. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20410. conftest$ac_exeext conftest.$ac_ext
  20411. LIBS="$ac_save_LIBS"
  20412. # If that didn't work, only try xmkmf and file system searches
  20413. # for native compilation.
  20414. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20415. then :
  20416. rm -f -r conftest.dir
  20417. if mkdir conftest.dir; then
  20418. cd conftest.dir
  20419. cat >Imakefile <<'_ACEOF'
  20420. incroot:
  20421. @echo incroot='${INCROOT}'
  20422. usrlibdir:
  20423. @echo usrlibdir='${USRLIBDIR}'
  20424. libdir:
  20425. @echo libdir='${LIBDIR}'
  20426. _ACEOF
  20427. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20428. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20429. for ac_var in incroot usrlibdir libdir; do
  20430. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20431. done
  20432. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20433. for ac_extension in a so sl dylib la dll; do
  20434. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20435. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20436. ac_im_usrlibdir=$ac_im_libdir; break
  20437. fi
  20438. done
  20439. # Screen out bogus values from the imake configuration. They are
  20440. # bogus both because they are the default anyway, and because
  20441. # using them would break gcc on systems where it needs fixed includes.
  20442. case $ac_im_incroot in
  20443. /usr/include) ac_x_includes= ;;
  20444. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20445. esac
  20446. case $ac_im_usrlibdir in
  20447. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20448. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20449. esac
  20450. fi
  20451. cd ..
  20452. rm -f -r conftest.dir
  20453. fi
  20454. # Standard set of common directories for X headers.
  20455. # Check X11 before X11Rn because it is often a symlink to the current release.
  20456. ac_x_header_dirs='
  20457. /usr/X11/include
  20458. /usr/X11R7/include
  20459. /usr/X11R6/include
  20460. /usr/X11R5/include
  20461. /usr/X11R4/include
  20462. /usr/include/X11
  20463. /usr/include/X11R7
  20464. /usr/include/X11R6
  20465. /usr/include/X11R5
  20466. /usr/include/X11R4
  20467. /usr/local/X11/include
  20468. /usr/local/X11R7/include
  20469. /usr/local/X11R6/include
  20470. /usr/local/X11R5/include
  20471. /usr/local/X11R4/include
  20472. /usr/local/include/X11
  20473. /usr/local/include/X11R7
  20474. /usr/local/include/X11R6
  20475. /usr/local/include/X11R5
  20476. /usr/local/include/X11R4
  20477. /opt/X11/include
  20478. /usr/X386/include
  20479. /usr/x386/include
  20480. /usr/XFree86/include/X11
  20481. /usr/include
  20482. /usr/local/include
  20483. /usr/unsupported/include
  20484. /usr/athena/include
  20485. /usr/local/x11r5/include
  20486. /usr/lpp/Xamples/include
  20487. /usr/openwin/include
  20488. /usr/openwin/share/include'
  20489. if test "$ac_x_includes" = no; then
  20490. # Guess where to find include files, by looking for Xlib.h.
  20491. # First, try using that file with no special directory specified.
  20492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20493. /* end confdefs.h. */
  20494. #include <X11/Xlib.h>
  20495. _ACEOF
  20496. if ac_fn_c_try_cpp "$LINENO"
  20497. then :
  20498. # We can compile using X headers with no special include directory.
  20499. ac_x_includes=
  20500. else $as_nop
  20501. for ac_dir in $ac_x_header_dirs; do
  20502. if test -r "$ac_dir/X11/Xlib.h"; then
  20503. ac_x_includes=$ac_dir
  20504. break
  20505. fi
  20506. done
  20507. fi
  20508. rm -f conftest.err conftest.i conftest.$ac_ext
  20509. fi # $ac_x_includes = no
  20510. if test "$ac_x_libraries" = no; then
  20511. # Check for the libraries.
  20512. # See if we find them without any special options.
  20513. # Don't add to $LIBS permanently.
  20514. ac_save_LIBS=$LIBS
  20515. LIBS="-lX11 $LIBS"
  20516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20517. /* end confdefs.h. */
  20518. #include <X11/Xlib.h>
  20519. int
  20520. main (void)
  20521. {
  20522. XrmInitialize ()
  20523. ;
  20524. return 0;
  20525. }
  20526. _ACEOF
  20527. if ac_fn_c_try_link "$LINENO"
  20528. then :
  20529. LIBS=$ac_save_LIBS
  20530. # We can link X programs with no special library path.
  20531. ac_x_libraries=
  20532. else $as_nop
  20533. LIBS=$ac_save_LIBS
  20534. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20535. do
  20536. # Don't even attempt the hair of trying to link an X program!
  20537. for ac_extension in a so sl dylib la dll; do
  20538. if test -r "$ac_dir/libX11.$ac_extension"; then
  20539. ac_x_libraries=$ac_dir
  20540. break 2
  20541. fi
  20542. done
  20543. done
  20544. fi
  20545. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20546. conftest$ac_exeext conftest.$ac_ext
  20547. fi # $ac_x_libraries = no
  20548. fi
  20549. # Record the results.
  20550. case $ac_x_includes,$ac_x_libraries in #(
  20551. no,* | *,no | *\'*) :
  20552. # Didn't find X, or a directory has "'" in its name.
  20553. ac_cv_have_x="have_x=no" ;; #(
  20554. *) :
  20555. # Record where we found X for the cache.
  20556. ac_cv_have_x="have_x=yes\
  20557. ac_x_includes='$ac_x_includes'\
  20558. ac_x_libraries='$ac_x_libraries'" ;;
  20559. esac
  20560. fi
  20561. ;; #(
  20562. *) have_x=yes;;
  20563. esac
  20564. eval "$ac_cv_have_x"
  20565. fi # $with_x != no
  20566. if test "$have_x" != yes; then
  20567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20568. printf "%s\n" "$have_x" >&6; }
  20569. no_x=yes
  20570. else
  20571. # If each of the values was on the command line, it overrides each guess.
  20572. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20573. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20574. # Update the cache value to reflect the command line values.
  20575. ac_cv_have_x="have_x=yes\
  20576. ac_x_includes='$x_includes'\
  20577. ac_x_libraries='$x_libraries'"
  20578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20579. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20580. fi
  20581. if test "$no_x" = yes; then
  20582. # Not all programs may use this symbol, but it does not hurt to define it.
  20583. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20584. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20585. else
  20586. if test -n "$x_includes"; then
  20587. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20588. fi
  20589. # It would also be nice to do this for all -L options, not just this one.
  20590. if test -n "$x_libraries"; then
  20591. X_LIBS="$X_LIBS -L$x_libraries"
  20592. # For Solaris; some versions of Sun CC require a space after -R and
  20593. # others require no space. Words are not sufficient . . . .
  20594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20595. printf %s "checking whether -R must be followed by a space... " >&6; }
  20596. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20597. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20598. ac_c_werror_flag=yes
  20599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20600. /* end confdefs.h. */
  20601. int
  20602. main (void)
  20603. {
  20604. ;
  20605. return 0;
  20606. }
  20607. _ACEOF
  20608. if ac_fn_c_try_link "$LINENO"
  20609. then :
  20610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20611. printf "%s\n" "no" >&6; }
  20612. X_LIBS="$X_LIBS -R$x_libraries"
  20613. else $as_nop
  20614. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20616. /* end confdefs.h. */
  20617. int
  20618. main (void)
  20619. {
  20620. ;
  20621. return 0;
  20622. }
  20623. _ACEOF
  20624. if ac_fn_c_try_link "$LINENO"
  20625. then :
  20626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20627. printf "%s\n" "yes" >&6; }
  20628. X_LIBS="$X_LIBS -R $x_libraries"
  20629. else $as_nop
  20630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20631. printf "%s\n" "neither works" >&6; }
  20632. fi
  20633. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20634. conftest$ac_exeext conftest.$ac_ext
  20635. fi
  20636. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20637. conftest$ac_exeext conftest.$ac_ext
  20638. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20639. LIBS=$ac_xsave_LIBS
  20640. fi
  20641. # Check for system-dependent libraries X programs must link with.
  20642. # Do this before checking for the system-independent R6 libraries
  20643. # (-lICE), since we may need -lsocket or whatever for X linking.
  20644. if test "$ISC" = yes; then
  20645. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20646. else
  20647. # Martyn Johnson says this is needed for Ultrix, if the X
  20648. # libraries were built with DECnet support. And Karl Berry says
  20649. # the Alpha needs dnet_stub (dnet does not exist).
  20650. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20652. /* end confdefs.h. */
  20653. /* Override any GCC internal prototype to avoid an error.
  20654. Use char because int might match the return type of a GCC
  20655. builtin and then its argument prototype would still apply. */
  20656. char XOpenDisplay ();
  20657. int
  20658. main (void)
  20659. {
  20660. return XOpenDisplay ();
  20661. ;
  20662. return 0;
  20663. }
  20664. _ACEOF
  20665. if ac_fn_c_try_link "$LINENO"
  20666. then :
  20667. else $as_nop
  20668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20669. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20670. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20671. then :
  20672. printf %s "(cached) " >&6
  20673. else $as_nop
  20674. ac_check_lib_save_LIBS=$LIBS
  20675. LIBS="-ldnet $LIBS"
  20676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20677. /* end confdefs.h. */
  20678. /* Override any GCC internal prototype to avoid an error.
  20679. Use char because int might match the return type of a GCC
  20680. builtin and then its argument prototype would still apply. */
  20681. char dnet_ntoa ();
  20682. int
  20683. main (void)
  20684. {
  20685. return dnet_ntoa ();
  20686. ;
  20687. return 0;
  20688. }
  20689. _ACEOF
  20690. if ac_fn_c_try_link "$LINENO"
  20691. then :
  20692. ac_cv_lib_dnet_dnet_ntoa=yes
  20693. else $as_nop
  20694. ac_cv_lib_dnet_dnet_ntoa=no
  20695. fi
  20696. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20697. conftest$ac_exeext conftest.$ac_ext
  20698. LIBS=$ac_check_lib_save_LIBS
  20699. fi
  20700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20701. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20702. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20703. then :
  20704. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20705. fi
  20706. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20708. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20709. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20710. then :
  20711. printf %s "(cached) " >&6
  20712. else $as_nop
  20713. ac_check_lib_save_LIBS=$LIBS
  20714. LIBS="-ldnet_stub $LIBS"
  20715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20716. /* end confdefs.h. */
  20717. /* Override any GCC internal prototype to avoid an error.
  20718. Use char because int might match the return type of a GCC
  20719. builtin and then its argument prototype would still apply. */
  20720. char dnet_ntoa ();
  20721. int
  20722. main (void)
  20723. {
  20724. return dnet_ntoa ();
  20725. ;
  20726. return 0;
  20727. }
  20728. _ACEOF
  20729. if ac_fn_c_try_link "$LINENO"
  20730. then :
  20731. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20732. else $as_nop
  20733. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20734. fi
  20735. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20736. conftest$ac_exeext conftest.$ac_ext
  20737. LIBS=$ac_check_lib_save_LIBS
  20738. fi
  20739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20740. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20741. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20742. then :
  20743. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20744. fi
  20745. fi
  20746. fi
  20747. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20748. conftest$ac_exeext conftest.$ac_ext
  20749. LIBS="$ac_xsave_LIBS"
  20750. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20751. # to get the SysV transport functions.
  20752. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20753. # needs -lnsl.
  20754. # The nsl library prevents programs from opening the X display
  20755. # on Irix 5.2, according to T.E. Dickey.
  20756. # The functions gethostbyname, getservbyname, and inet_addr are
  20757. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20758. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20759. if test "x$ac_cv_func_gethostbyname" = xyes
  20760. then :
  20761. fi
  20762. if test $ac_cv_func_gethostbyname = no; then
  20763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20764. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20765. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20766. then :
  20767. printf %s "(cached) " >&6
  20768. else $as_nop
  20769. ac_check_lib_save_LIBS=$LIBS
  20770. LIBS="-lnsl $LIBS"
  20771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20772. /* end confdefs.h. */
  20773. /* Override any GCC internal prototype to avoid an error.
  20774. Use char because int might match the return type of a GCC
  20775. builtin and then its argument prototype would still apply. */
  20776. char gethostbyname ();
  20777. int
  20778. main (void)
  20779. {
  20780. return gethostbyname ();
  20781. ;
  20782. return 0;
  20783. }
  20784. _ACEOF
  20785. if ac_fn_c_try_link "$LINENO"
  20786. then :
  20787. ac_cv_lib_nsl_gethostbyname=yes
  20788. else $as_nop
  20789. ac_cv_lib_nsl_gethostbyname=no
  20790. fi
  20791. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20792. conftest$ac_exeext conftest.$ac_ext
  20793. LIBS=$ac_check_lib_save_LIBS
  20794. fi
  20795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20796. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20797. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  20798. then :
  20799. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20800. fi
  20801. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20803. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  20804. if test ${ac_cv_lib_bsd_gethostbyname+y}
  20805. then :
  20806. printf %s "(cached) " >&6
  20807. else $as_nop
  20808. ac_check_lib_save_LIBS=$LIBS
  20809. LIBS="-lbsd $LIBS"
  20810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20811. /* end confdefs.h. */
  20812. /* Override any GCC internal prototype to avoid an error.
  20813. Use char because int might match the return type of a GCC
  20814. builtin and then its argument prototype would still apply. */
  20815. char gethostbyname ();
  20816. int
  20817. main (void)
  20818. {
  20819. return gethostbyname ();
  20820. ;
  20821. return 0;
  20822. }
  20823. _ACEOF
  20824. if ac_fn_c_try_link "$LINENO"
  20825. then :
  20826. ac_cv_lib_bsd_gethostbyname=yes
  20827. else $as_nop
  20828. ac_cv_lib_bsd_gethostbyname=no
  20829. fi
  20830. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20831. conftest$ac_exeext conftest.$ac_ext
  20832. LIBS=$ac_check_lib_save_LIBS
  20833. fi
  20834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20835. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20836. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20837. then :
  20838. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20839. fi
  20840. fi
  20841. fi
  20842. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20843. # socket/setsockopt and other routines are undefined under SCO ODT
  20844. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20845. # on later versions), says Simon Leinen: it contains gethostby*
  20846. # variants that don't use the name server (or something). -lsocket
  20847. # must be given before -lnsl if both are needed. We assume that
  20848. # if connect needs -lnsl, so does gethostbyname.
  20849. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20850. if test "x$ac_cv_func_connect" = xyes
  20851. then :
  20852. fi
  20853. if test $ac_cv_func_connect = no; then
  20854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20855. printf %s "checking for connect in -lsocket... " >&6; }
  20856. if test ${ac_cv_lib_socket_connect+y}
  20857. then :
  20858. printf %s "(cached) " >&6
  20859. else $as_nop
  20860. ac_check_lib_save_LIBS=$LIBS
  20861. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20863. /* end confdefs.h. */
  20864. /* Override any GCC internal prototype to avoid an error.
  20865. Use char because int might match the return type of a GCC
  20866. builtin and then its argument prototype would still apply. */
  20867. char connect ();
  20868. int
  20869. main (void)
  20870. {
  20871. return connect ();
  20872. ;
  20873. return 0;
  20874. }
  20875. _ACEOF
  20876. if ac_fn_c_try_link "$LINENO"
  20877. then :
  20878. ac_cv_lib_socket_connect=yes
  20879. else $as_nop
  20880. ac_cv_lib_socket_connect=no
  20881. fi
  20882. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20883. conftest$ac_exeext conftest.$ac_ext
  20884. LIBS=$ac_check_lib_save_LIBS
  20885. fi
  20886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20887. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20888. if test "x$ac_cv_lib_socket_connect" = xyes
  20889. then :
  20890. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20891. fi
  20892. fi
  20893. # Guillermo Gomez says -lposix is necessary on A/UX.
  20894. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20895. if test "x$ac_cv_func_remove" = xyes
  20896. then :
  20897. fi
  20898. if test $ac_cv_func_remove = no; then
  20899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20900. printf %s "checking for remove in -lposix... " >&6; }
  20901. if test ${ac_cv_lib_posix_remove+y}
  20902. then :
  20903. printf %s "(cached) " >&6
  20904. else $as_nop
  20905. ac_check_lib_save_LIBS=$LIBS
  20906. LIBS="-lposix $LIBS"
  20907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20908. /* end confdefs.h. */
  20909. /* Override any GCC internal prototype to avoid an error.
  20910. Use char because int might match the return type of a GCC
  20911. builtin and then its argument prototype would still apply. */
  20912. char remove ();
  20913. int
  20914. main (void)
  20915. {
  20916. return remove ();
  20917. ;
  20918. return 0;
  20919. }
  20920. _ACEOF
  20921. if ac_fn_c_try_link "$LINENO"
  20922. then :
  20923. ac_cv_lib_posix_remove=yes
  20924. else $as_nop
  20925. ac_cv_lib_posix_remove=no
  20926. fi
  20927. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20928. conftest$ac_exeext conftest.$ac_ext
  20929. LIBS=$ac_check_lib_save_LIBS
  20930. fi
  20931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20932. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20933. if test "x$ac_cv_lib_posix_remove" = xyes
  20934. then :
  20935. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20936. fi
  20937. fi
  20938. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20939. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20940. if test "x$ac_cv_func_shmat" = xyes
  20941. then :
  20942. fi
  20943. if test $ac_cv_func_shmat = no; then
  20944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20945. printf %s "checking for shmat in -lipc... " >&6; }
  20946. if test ${ac_cv_lib_ipc_shmat+y}
  20947. then :
  20948. printf %s "(cached) " >&6
  20949. else $as_nop
  20950. ac_check_lib_save_LIBS=$LIBS
  20951. LIBS="-lipc $LIBS"
  20952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20953. /* end confdefs.h. */
  20954. /* Override any GCC internal prototype to avoid an error.
  20955. Use char because int might match the return type of a GCC
  20956. builtin and then its argument prototype would still apply. */
  20957. char shmat ();
  20958. int
  20959. main (void)
  20960. {
  20961. return shmat ();
  20962. ;
  20963. return 0;
  20964. }
  20965. _ACEOF
  20966. if ac_fn_c_try_link "$LINENO"
  20967. then :
  20968. ac_cv_lib_ipc_shmat=yes
  20969. else $as_nop
  20970. ac_cv_lib_ipc_shmat=no
  20971. fi
  20972. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20973. conftest$ac_exeext conftest.$ac_ext
  20974. LIBS=$ac_check_lib_save_LIBS
  20975. fi
  20976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20977. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  20978. if test "x$ac_cv_lib_ipc_shmat" = xyes
  20979. then :
  20980. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20981. fi
  20982. fi
  20983. fi
  20984. # Check for libraries that X11R6 Xt/Xaw programs need.
  20985. ac_save_LDFLAGS=$LDFLAGS
  20986. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  20987. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  20988. # check for ICE first), but we must link in the order -lSM -lICE or
  20989. # we get undefined symbols. So assume we have SM if we have ICE.
  20990. # These have to be linked with before -lX11, unlike the other
  20991. # libraries we check for below, so use a different variable.
  20992. # John Interrante, Karl Berry
  20993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  20994. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  20995. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  20996. then :
  20997. printf %s "(cached) " >&6
  20998. else $as_nop
  20999. ac_check_lib_save_LIBS=$LIBS
  21000. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  21001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21002. /* end confdefs.h. */
  21003. /* Override any GCC internal prototype to avoid an error.
  21004. Use char because int might match the return type of a GCC
  21005. builtin and then its argument prototype would still apply. */
  21006. char IceConnectionNumber ();
  21007. int
  21008. main (void)
  21009. {
  21010. return IceConnectionNumber ();
  21011. ;
  21012. return 0;
  21013. }
  21014. _ACEOF
  21015. if ac_fn_c_try_link "$LINENO"
  21016. then :
  21017. ac_cv_lib_ICE_IceConnectionNumber=yes
  21018. else $as_nop
  21019. ac_cv_lib_ICE_IceConnectionNumber=no
  21020. fi
  21021. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21022. conftest$ac_exeext conftest.$ac_ext
  21023. LIBS=$ac_check_lib_save_LIBS
  21024. fi
  21025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  21026. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  21027. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  21028. then :
  21029. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21030. fi
  21031. LDFLAGS=$ac_save_LDFLAGS
  21032. fi
  21033. if test x$have_x = xyes; then
  21034. # Check whether --enable-x11-shared was given.
  21035. if test ${enable_x11_shared+y}
  21036. then :
  21037. enableval=$enable_x11_shared;
  21038. else $as_nop
  21039. enable_x11_shared=maybe
  21040. fi
  21041. case "$host" in
  21042. *-*-darwin*)
  21043. # Apple now puts this in /opt/X11
  21044. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21045. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21046. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21047. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21048. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21049. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21050. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21051. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21052. ;;
  21053. *-*-openbsd*)
  21054. x11_lib='libX11.so'
  21055. x11ext_lib='libXext.so'
  21056. xcursor_lib='libXcursor.so'
  21057. xinput_lib='libXi.so'
  21058. xfixes_lib='libXfixes.so'
  21059. xrandr_lib='libXrandr.so'
  21060. xrender_lib='libXrender.so'
  21061. xss_lib='libXss.so'
  21062. ;;
  21063. *)
  21064. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21065. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21066. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21067. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21068. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21069. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21070. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21071. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21072. ;;
  21073. esac
  21074. if test x$ac_cv_func_shmat != xyes; then
  21075. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21076. fi
  21077. CFLAGS="$CFLAGS $X_CFLAGS"
  21078. LDFLAGS="$LDFLAGS $X_LIBS"
  21079. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21080. #include <X11/Xproto.h>
  21081. "
  21082. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21083. then :
  21084. have_xext_h_hdr=yes
  21085. else $as_nop
  21086. have_xext_h_hdr=no
  21087. fi
  21088. if test x$have_xext_h_hdr != xyes; then
  21089. as_fn_error $? "
  21090. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21091. " "$LINENO" 5
  21092. fi
  21093. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21094. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21095. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21096. # Needed so SDL applications can include SDL_syswm.h
  21097. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21098. if test x$enable_x11_shared = xmaybe; then
  21099. enable_x11_shared=yes
  21100. fi
  21101. if test x$have_loadso != xyes && \
  21102. test x$enable_x11_shared = xyes; then
  21103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21104. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21105. enable_x11_shared=no
  21106. fi
  21107. if test x$have_loadso = xyes && \
  21108. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21109. echo "-- dynamic libX11 -> $x11_lib"
  21110. echo "-- dynamic libX11ext -> $x11ext_lib"
  21111. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21112. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21113. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21114. else
  21115. enable_x11_shared=no
  21116. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21117. SUMMARY_video="${SUMMARY_video} x11"
  21118. fi
  21119. have_video=yes
  21120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21121. printf %s "checking for XGenericEvent... " >&6; }
  21122. have_XGenericEvent=no
  21123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21124. /* end confdefs.h. */
  21125. #include <X11/Xlib.h>
  21126. int
  21127. main (void)
  21128. {
  21129. Display *display;
  21130. XEvent event;
  21131. XGenericEventCookie *cookie = &event.xcookie;
  21132. XNextEvent(display, &event);
  21133. XGetEventData(display, cookie);
  21134. XFreeEventData(display, cookie);
  21135. ;
  21136. return 0;
  21137. }
  21138. _ACEOF
  21139. if ac_fn_c_try_compile "$LINENO"
  21140. then :
  21141. have_XGenericEvent=yes
  21142. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21143. fi
  21144. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21146. printf "%s\n" "$have_XGenericEvent" >&6; }
  21147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21148. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21149. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21150. then :
  21151. printf %s "(cached) " >&6
  21152. else $as_nop
  21153. ac_check_lib_save_LIBS=$LIBS
  21154. LIBS="-lX11 $LIBS"
  21155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21156. /* end confdefs.h. */
  21157. /* Override any GCC internal prototype to avoid an error.
  21158. Use char because int might match the return type of a GCC
  21159. builtin and then its argument prototype would still apply. */
  21160. char XkbKeycodeToKeysym ();
  21161. int
  21162. main (void)
  21163. {
  21164. return XkbKeycodeToKeysym ();
  21165. ;
  21166. return 0;
  21167. }
  21168. _ACEOF
  21169. if ac_fn_c_try_link "$LINENO"
  21170. then :
  21171. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21172. else $as_nop
  21173. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21174. fi
  21175. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21176. conftest$ac_exeext conftest.$ac_ext
  21177. LIBS=$ac_check_lib_save_LIBS
  21178. fi
  21179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21180. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21181. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21182. then :
  21183. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21184. fi
  21185. # Check whether --enable-video-x11-xcursor was given.
  21186. if test ${enable_video_x11_xcursor+y}
  21187. then :
  21188. enableval=$enable_video_x11_xcursor;
  21189. else $as_nop
  21190. enable_video_x11_xcursor=yes
  21191. fi
  21192. if test x$enable_video_x11_xcursor = xyes; then
  21193. definitely_enable_video_x11_xcursor=no
  21194. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21195. "
  21196. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21197. then :
  21198. have_xcursor_h_hdr=yes
  21199. else $as_nop
  21200. have_xcursor_h_hdr=no
  21201. fi
  21202. if test x$have_xcursor_h_hdr = xyes; then
  21203. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21204. echo "-- dynamic libXcursor -> $xcursor_lib"
  21205. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21206. definitely_enable_video_x11_xcursor=yes
  21207. else
  21208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21209. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21210. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21211. then :
  21212. printf %s "(cached) " >&6
  21213. else $as_nop
  21214. ac_check_lib_save_LIBS=$LIBS
  21215. LIBS="-lXcursor $LIBS"
  21216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21217. /* end confdefs.h. */
  21218. /* Override any GCC internal prototype to avoid an error.
  21219. Use char because int might match the return type of a GCC
  21220. builtin and then its argument prototype would still apply. */
  21221. char XcursorImageCreate ();
  21222. int
  21223. main (void)
  21224. {
  21225. return XcursorImageCreate ();
  21226. ;
  21227. return 0;
  21228. }
  21229. _ACEOF
  21230. if ac_fn_c_try_link "$LINENO"
  21231. then :
  21232. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21233. else $as_nop
  21234. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21235. fi
  21236. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21237. conftest$ac_exeext conftest.$ac_ext
  21238. LIBS=$ac_check_lib_save_LIBS
  21239. fi
  21240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21241. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21242. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21243. then :
  21244. have_xcursor_lib=yes
  21245. fi
  21246. if test x$have_xcursor_lib = xyes ; then
  21247. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21248. definitely_enable_video_x11_xcursor=yes
  21249. fi
  21250. fi
  21251. fi
  21252. fi
  21253. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21254. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21255. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21256. fi
  21257. # Check whether --enable-video-x11-xdbe was given.
  21258. if test ${enable_video_x11_xdbe+y}
  21259. then :
  21260. enableval=$enable_video_x11_xdbe;
  21261. else $as_nop
  21262. enable_video_x11_xdbe=yes
  21263. fi
  21264. if test x$enable_video_x11_xdbe = xyes; then
  21265. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21266. "
  21267. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21268. then :
  21269. have_dbe_h_hdr=yes
  21270. else $as_nop
  21271. have_dbe_h_hdr=no
  21272. fi
  21273. if test x$have_dbe_h_hdr = xyes; then
  21274. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21275. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21276. fi
  21277. fi
  21278. # Check whether --enable-video-x11-xinput was given.
  21279. if test ${enable_video_x11_xinput+y}
  21280. then :
  21281. enableval=$enable_video_x11_xinput;
  21282. else $as_nop
  21283. enable_video_x11_xinput=yes
  21284. fi
  21285. if test x$enable_video_x11_xinput = xyes; then
  21286. definitely_enable_video_x11_xinput=no
  21287. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21288. "
  21289. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21290. then :
  21291. have_xinput_h_hdr=yes
  21292. else $as_nop
  21293. have_xinput_h_hdr=no
  21294. fi
  21295. if test x$have_xinput_h_hdr = xyes; then
  21296. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21297. echo "-- dynamic libXi -> $xinput_lib"
  21298. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21299. definitely_enable_video_x11_xinput=yes
  21300. else
  21301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21302. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21303. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21304. then :
  21305. printf %s "(cached) " >&6
  21306. else $as_nop
  21307. ac_check_lib_save_LIBS=$LIBS
  21308. LIBS="-lXi $LIBS"
  21309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21310. /* end confdefs.h. */
  21311. /* Override any GCC internal prototype to avoid an error.
  21312. Use char because int might match the return type of a GCC
  21313. builtin and then its argument prototype would still apply. */
  21314. char XOpenDevice ();
  21315. int
  21316. main (void)
  21317. {
  21318. return XOpenDevice ();
  21319. ;
  21320. return 0;
  21321. }
  21322. _ACEOF
  21323. if ac_fn_c_try_link "$LINENO"
  21324. then :
  21325. ac_cv_lib_Xi_XOpenDevice=yes
  21326. else $as_nop
  21327. ac_cv_lib_Xi_XOpenDevice=no
  21328. fi
  21329. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21330. conftest$ac_exeext conftest.$ac_ext
  21331. LIBS=$ac_check_lib_save_LIBS
  21332. fi
  21333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21334. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21335. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21336. then :
  21337. have_xinput_lib=yes
  21338. fi
  21339. if test x$have_xinput_lib = xyes ; then
  21340. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21341. definitely_enable_video_x11_xinput=yes
  21342. fi
  21343. fi
  21344. fi
  21345. fi
  21346. if test x$definitely_enable_video_x11_xinput = xyes; then
  21347. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21348. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21350. printf %s "checking for xinput2 multitouch... " >&6; }
  21351. have_xinput2_multitouch=no
  21352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21353. /* end confdefs.h. */
  21354. #include <X11/Xlib.h>
  21355. #include <X11/Xproto.h>
  21356. #include <X11/extensions/XInput2.h>
  21357. int
  21358. main (void)
  21359. {
  21360. int event_type = XI_TouchBegin;
  21361. XITouchClassInfo *t;
  21362. ;
  21363. return 0;
  21364. }
  21365. _ACEOF
  21366. if ac_fn_c_try_compile "$LINENO"
  21367. then :
  21368. have_xinput2_multitouch=yes
  21369. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21370. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21371. fi
  21372. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21374. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21375. fi
  21376. # Check whether --enable-video-x11-xfixes was given.
  21377. if test ${enable_video_x11_xfixes+y}
  21378. then :
  21379. enableval=$enable_video_x11_xfixes;
  21380. else $as_nop
  21381. enable_video_x11_xfixes=yes
  21382. fi
  21383. if test x$enable_video_x11_xfixes = xyes; then
  21384. definitely_enable_video_x11_xfixes=no
  21385. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21387. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21389. /* end confdefs.h. */
  21390. #include <X11/Xlib.h>
  21391. #include <X11/Xproto.h>
  21392. #include <X11/extensions/XInput2.h>
  21393. #include <X11/extensions/Xfixes.h>
  21394. int
  21395. main (void)
  21396. {
  21397. BarrierEventID b;
  21398. ;
  21399. return 0;
  21400. }
  21401. _ACEOF
  21402. if ac_fn_c_try_compile "$LINENO"
  21403. then :
  21404. have_xfixes_h_hdr=yes
  21405. else $as_nop
  21406. have_xfixes_h_hdr=no
  21407. fi
  21408. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21410. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21411. if test x$have_xfixes_h_hdr = xyes; then
  21412. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21413. echo "-- dynamic libXfixes -> $xfixes_lib"
  21414. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21415. definitely_enable_video_x11_xfixes=yes
  21416. else
  21417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21418. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21419. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21420. then :
  21421. printf %s "(cached) " >&6
  21422. else $as_nop
  21423. ac_check_lib_save_LIBS=$LIBS
  21424. LIBS="-lXfixes $LIBS"
  21425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21426. /* end confdefs.h. */
  21427. /* Override any GCC internal prototype to avoid an error.
  21428. Use char because int might match the return type of a GCC
  21429. builtin and then its argument prototype would still apply. */
  21430. char XFixesCreatePointerBarrier ();
  21431. int
  21432. main (void)
  21433. {
  21434. return XFixesCreatePointerBarrier ();
  21435. ;
  21436. return 0;
  21437. }
  21438. _ACEOF
  21439. if ac_fn_c_try_link "$LINENO"
  21440. then :
  21441. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21442. else $as_nop
  21443. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21444. fi
  21445. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21446. conftest$ac_exeext conftest.$ac_ext
  21447. LIBS=$ac_check_lib_save_LIBS
  21448. fi
  21449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21450. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21451. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21452. then :
  21453. have_xfixes_lib=yes
  21454. fi
  21455. if test x$have_xfixes_lib = xyes ; then
  21456. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21457. definitely_enable_video_x11_xfixes=yes
  21458. fi
  21459. fi
  21460. fi
  21461. fi
  21462. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21463. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21464. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21465. fi
  21466. # Check whether --enable-video-x11-xrandr was given.
  21467. if test ${enable_video_x11_xrandr+y}
  21468. then :
  21469. enableval=$enable_video_x11_xrandr;
  21470. else $as_nop
  21471. enable_video_x11_xrandr=yes
  21472. fi
  21473. if test x$enable_video_x11_xrandr = xyes; then
  21474. definitely_enable_video_x11_xrandr=no
  21475. have_xrandr_h_hdr=no
  21476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21477. /* end confdefs.h. */
  21478. #include <X11/Xlib.h>
  21479. #include <X11/extensions/Xrandr.h>
  21480. int
  21481. main (void)
  21482. {
  21483. XRRScreenResources *res = NULL;
  21484. ;
  21485. return 0;
  21486. }
  21487. _ACEOF
  21488. if ac_fn_c_try_compile "$LINENO"
  21489. then :
  21490. have_xrandr_h_hdr=yes
  21491. fi
  21492. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21493. if test x$have_xrandr_h_hdr = xyes; then
  21494. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21495. echo "-- dynamic libXrandr -> $xrandr_lib"
  21496. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21497. definitely_enable_video_x11_xrandr=yes
  21498. else
  21499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21500. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21501. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21502. then :
  21503. printf %s "(cached) " >&6
  21504. else $as_nop
  21505. ac_check_lib_save_LIBS=$LIBS
  21506. LIBS="-lXrandr $LIBS"
  21507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21508. /* end confdefs.h. */
  21509. /* Override any GCC internal prototype to avoid an error.
  21510. Use char because int might match the return type of a GCC
  21511. builtin and then its argument prototype would still apply. */
  21512. char XRRQueryExtension ();
  21513. int
  21514. main (void)
  21515. {
  21516. return XRRQueryExtension ();
  21517. ;
  21518. return 0;
  21519. }
  21520. _ACEOF
  21521. if ac_fn_c_try_link "$LINENO"
  21522. then :
  21523. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21524. else $as_nop
  21525. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21526. fi
  21527. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21528. conftest$ac_exeext conftest.$ac_ext
  21529. LIBS=$ac_check_lib_save_LIBS
  21530. fi
  21531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21532. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21533. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21534. then :
  21535. have_xrandr_lib=yes
  21536. fi
  21537. if test x$have_xrandr_lib = xyes ; then
  21538. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21539. definitely_enable_video_x11_xrandr=yes
  21540. fi
  21541. fi
  21542. fi
  21543. fi
  21544. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21545. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21546. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21547. fi
  21548. # Check whether --enable-video-x11-scrnsaver was given.
  21549. if test ${enable_video_x11_scrnsaver+y}
  21550. then :
  21551. enableval=$enable_video_x11_scrnsaver;
  21552. else $as_nop
  21553. enable_video_x11_scrnsaver=yes
  21554. fi
  21555. if test x$enable_video_x11_scrnsaver = xyes; then
  21556. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21557. "
  21558. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21559. then :
  21560. have_scrnsaver_h_hdr=yes
  21561. else $as_nop
  21562. have_scrnsaver_h_hdr=no
  21563. fi
  21564. if test x$have_scrnsaver_h_hdr = xyes; then
  21565. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21566. echo "-- dynamic libXss -> $xss_lib"
  21567. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21568. definitely_enable_video_x11_scrnsaver=yes
  21569. else
  21570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21571. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21572. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21573. then :
  21574. printf %s "(cached) " >&6
  21575. else $as_nop
  21576. ac_check_lib_save_LIBS=$LIBS
  21577. LIBS="-lXss $LIBS"
  21578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21579. /* end confdefs.h. */
  21580. /* Override any GCC internal prototype to avoid an error.
  21581. Use char because int might match the return type of a GCC
  21582. builtin and then its argument prototype would still apply. */
  21583. char XScreenSaverSuspend ();
  21584. int
  21585. main (void)
  21586. {
  21587. return XScreenSaverSuspend ();
  21588. ;
  21589. return 0;
  21590. }
  21591. _ACEOF
  21592. if ac_fn_c_try_link "$LINENO"
  21593. then :
  21594. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21595. else $as_nop
  21596. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21597. fi
  21598. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21599. conftest$ac_exeext conftest.$ac_ext
  21600. LIBS=$ac_check_lib_save_LIBS
  21601. fi
  21602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21603. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21604. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21605. then :
  21606. have_xss_lib=yes
  21607. fi
  21608. if test x$have_xss_lib = xyes ; then
  21609. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21610. definitely_enable_video_x11_scrnsaver=yes
  21611. fi
  21612. fi
  21613. fi
  21614. fi
  21615. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21616. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21617. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21618. fi
  21619. # Check whether --enable-video-x11-xshape was given.
  21620. if test ${enable_video_x11_xshape+y}
  21621. then :
  21622. enableval=$enable_video_x11_xshape;
  21623. else $as_nop
  21624. enable_video_x11_xshape=yes
  21625. fi
  21626. if test x$enable_video_x11_xshape = xyes; then
  21627. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21628. "
  21629. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21630. then :
  21631. have_shape_h_hdr=yes
  21632. else $as_nop
  21633. have_shape_h_hdr=no
  21634. fi
  21635. if test x$have_shape_h_hdr = xyes; then
  21636. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21637. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21638. fi
  21639. fi
  21640. fi
  21641. fi
  21642. if test x$have_x != xyes; then
  21643. # Prevent Mesa from including X11 headers
  21644. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21645. fi
  21646. }
  21647. CheckVivanteVideo()
  21648. {
  21649. # Check whether --enable-video-vivante was given.
  21650. if test ${enable_video_vivante+y}
  21651. then :
  21652. enableval=$enable_video_vivante;
  21653. else $as_nop
  21654. enable_video_vivante=yes
  21655. fi
  21656. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21658. printf %s "checking for Vivante VDK API... " >&6; }
  21659. have_vivante_vdk=no
  21660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21661. /* end confdefs.h. */
  21662. #define LINUX
  21663. #define EGL_API_FB
  21664. #include <gc_vdk.h>
  21665. int
  21666. main (void)
  21667. {
  21668. ;
  21669. return 0;
  21670. }
  21671. _ACEOF
  21672. if ac_fn_c_try_compile "$LINENO"
  21673. then :
  21674. have_vivante_vdk=yes
  21675. fi
  21676. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21678. printf "%s\n" "$have_vivante_vdk" >&6; }
  21679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21680. printf %s "checking for Vivante FB API... " >&6; }
  21681. have_vivante_egl=no
  21682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21683. /* end confdefs.h. */
  21684. #define LINUX
  21685. #define EGL_API_FB
  21686. #include <EGL/eglvivante.h>
  21687. int
  21688. main (void)
  21689. {
  21690. ;
  21691. return 0;
  21692. }
  21693. _ACEOF
  21694. if ac_fn_c_try_compile "$LINENO"
  21695. then :
  21696. have_vivante_egl=yes
  21697. fi
  21698. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21700. printf "%s\n" "$have_vivante_egl" >&6; }
  21701. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21702. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21703. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21704. if test x$have_vivante_vdk = xyes; then
  21705. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21706. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21707. fi
  21708. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21709. SUMMARY_video="${SUMMARY_video} vivante"
  21710. have_video=yes
  21711. fi
  21712. fi
  21713. }
  21714. CheckHaikuVideo()
  21715. {
  21716. if test x$enable_video = xyes; then
  21717. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21718. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21719. have_video=yes
  21720. SUMMARY_video="${SUMMARY_video} haiku"
  21721. fi
  21722. }
  21723. CheckCOCOA()
  21724. {
  21725. # Check whether --enable-video-cocoa was given.
  21726. if test ${enable_video_cocoa+y}
  21727. then :
  21728. enableval=$enable_video_cocoa;
  21729. else $as_nop
  21730. enable_video_cocoa=yes
  21731. fi
  21732. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21733. save_CFLAGS="$CFLAGS"
  21734. CFLAGS="$CFLAGS -x objective-c"
  21735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21736. printf %s "checking for Cocoa framework... " >&6; }
  21737. have_cocoa=no
  21738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21739. /* end confdefs.h. */
  21740. #import <Cocoa/Cocoa.h>
  21741. int
  21742. main (void)
  21743. {
  21744. ;
  21745. return 0;
  21746. }
  21747. _ACEOF
  21748. if ac_fn_c_try_compile "$LINENO"
  21749. then :
  21750. have_cocoa=yes
  21751. fi
  21752. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21754. printf "%s\n" "$have_cocoa" >&6; }
  21755. CFLAGS="$save_CFLAGS"
  21756. if test x$have_cocoa = xyes; then
  21757. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21758. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21759. SUMMARY_video="${SUMMARY_video} cocoa"
  21760. have_video=yes
  21761. fi
  21762. fi
  21763. }
  21764. CheckMETAL()
  21765. {
  21766. # Check whether --enable-video-metal was given.
  21767. if test ${enable_video_metal+y}
  21768. then :
  21769. enableval=$enable_video_metal;
  21770. else $as_nop
  21771. enable_video_metal=yes
  21772. fi
  21773. # Check whether --enable-render-metal was given.
  21774. if test ${enable_render_metal+y}
  21775. then :
  21776. enableval=$enable_render_metal;
  21777. else $as_nop
  21778. enable_render_metal=yes
  21779. fi
  21780. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  21781. save_CFLAGS="$CFLAGS"
  21782. CFLAGS="$CFLAGS -x objective-c"
  21783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  21784. printf %s "checking for Metal framework... " >&6; }
  21785. have_metal=no
  21786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21787. /* end confdefs.h. */
  21788. #import <Cocoa/Cocoa.h>
  21789. #import <Metal/Metal.h>
  21790. #import <QuartzCore/CAMetalLayer.h>
  21791. #if TARGET_CPU_X86
  21792. #error Metal doesn't work on this configuration
  21793. #endif
  21794. int
  21795. main (void)
  21796. {
  21797. ;
  21798. return 0;
  21799. }
  21800. _ACEOF
  21801. if ac_fn_c_try_compile "$LINENO"
  21802. then :
  21803. have_metal=yes
  21804. fi
  21805. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21806. CFLAGS="$save_CFLAGS"
  21807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  21808. printf "%s\n" "$have_metal" >&6; }
  21809. if test x$have_metal = xyes; then
  21810. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  21811. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21812. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  21813. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  21814. fi
  21815. SUMMARY_video="${SUMMARY_video} metal"
  21816. else
  21817. enable_video_metal=no
  21818. enable_render_metal=no
  21819. fi
  21820. fi
  21821. }
  21822. CheckDirectFB()
  21823. {
  21824. # Check whether --enable-video-directfb was given.
  21825. if test ${enable_video_directfb+y}
  21826. then :
  21827. enableval=$enable_video_directfb;
  21828. else $as_nop
  21829. enable_video_directfb=no
  21830. fi
  21831. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  21832. pkg_failed=no
  21833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  21834. printf %s "checking for directfb >= 1.0.0... " >&6; }
  21835. if test -n "$DIRECTFB_CFLAGS"; then
  21836. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  21837. elif test -n "$PKG_CONFIG"; then
  21838. if test -n "$PKG_CONFIG" && \
  21839. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21840. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21841. ac_status=$?
  21842. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21843. test $ac_status = 0; }; then
  21844. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  21845. test "x$?" != "x0" && pkg_failed=yes
  21846. else
  21847. pkg_failed=yes
  21848. fi
  21849. else
  21850. pkg_failed=untried
  21851. fi
  21852. if test -n "$DIRECTFB_LIBS"; then
  21853. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  21854. elif test -n "$PKG_CONFIG"; then
  21855. if test -n "$PKG_CONFIG" && \
  21856. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21857. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21858. ac_status=$?
  21859. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21860. test $ac_status = 0; }; then
  21861. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  21862. test "x$?" != "x0" && pkg_failed=yes
  21863. else
  21864. pkg_failed=yes
  21865. fi
  21866. else
  21867. pkg_failed=untried
  21868. fi
  21869. if test $pkg_failed = yes; then
  21870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21871. printf "%s\n" "no" >&6; }
  21872. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21873. _pkg_short_errors_supported=yes
  21874. else
  21875. _pkg_short_errors_supported=no
  21876. fi
  21877. if test $_pkg_short_errors_supported = yes; then
  21878. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21879. else
  21880. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21881. fi
  21882. # Put the nasty error message in config.log where it belongs
  21883. echo "$DIRECTFB_PKG_ERRORS" >&5
  21884. video_directfb=no
  21885. elif test $pkg_failed = untried; then
  21886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21887. printf "%s\n" "no" >&6; }
  21888. video_directfb=no
  21889. else
  21890. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  21891. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  21892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21893. printf "%s\n" "yes" >&6; }
  21894. video_directfb=yes
  21895. fi
  21896. if test x$video_directfb = xyes; then
  21897. # SuSE 11.1 installs directfb-config without directfb-devel
  21898. save_CPPFLAGS="$CPPFLAGS"
  21899. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  21900. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  21901. if test "x$ac_cv_header_directfb_h" = xyes
  21902. then :
  21903. have_directfb_hdr=yes
  21904. else $as_nop
  21905. have_directfb_hdr=no
  21906. fi
  21907. CPPFLAGS="$save_CPPFLAGS"
  21908. video_directfb=$have_directfb_hdr
  21909. fi
  21910. if test x$video_directfb = xyes; then
  21911. # Check whether --enable-directfb-shared was given.
  21912. if test ${enable_directfb_shared+y}
  21913. then :
  21914. enableval=$enable_directfb_shared;
  21915. else $as_nop
  21916. enable_directfb_shared=yes
  21917. fi
  21918. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  21919. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  21920. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  21921. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  21922. directfb_shared=no
  21923. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  21924. if test x$have_loadso != xyes && \
  21925. test x$enable_directfb_shared = xyes; then
  21926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  21927. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  21928. fi
  21929. if test x$have_loadso = xyes && \
  21930. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  21931. directfb_shared=yes
  21932. echo "-- dynamic libdirectfb -> $directfb_lib"
  21933. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  21934. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  21935. else
  21936. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  21937. SUMMARY_video="${SUMMARY_video} directfb"
  21938. fi
  21939. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  21940. have_video=yes
  21941. fi
  21942. fi
  21943. }
  21944. CheckKMSDRM()
  21945. {
  21946. # Check whether --enable-video-kmsdrm was given.
  21947. if test ${enable_video_kmsdrm+y}
  21948. then :
  21949. enableval=$enable_video_kmsdrm;
  21950. else $as_nop
  21951. enable_video_kmsdrm=yes
  21952. fi
  21953. if test x$enable_video = xyes && \
  21954. test x$enable_video_kmsdrm = xyes && \
  21955. test x$video_opengl_egl = xyes; then
  21956. video_kmsdrm=no
  21957. pkg_failed=no
  21958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21959. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  21960. if test -n "$LIBDRM_CFLAGS"; then
  21961. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21962. elif test -n "$PKG_CONFIG"; then
  21963. if test -n "$PKG_CONFIG" && \
  21964. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21965. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21966. ac_status=$?
  21967. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21968. test $ac_status = 0; }; then
  21969. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  21970. test "x$?" != "x0" && pkg_failed=yes
  21971. else
  21972. pkg_failed=yes
  21973. fi
  21974. else
  21975. pkg_failed=untried
  21976. fi
  21977. if test -n "$LIBDRM_LIBS"; then
  21978. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  21979. elif test -n "$PKG_CONFIG"; then
  21980. if test -n "$PKG_CONFIG" && \
  21981. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21982. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21983. ac_status=$?
  21984. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21985. test $ac_status = 0; }; then
  21986. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  21987. test "x$?" != "x0" && pkg_failed=yes
  21988. else
  21989. pkg_failed=yes
  21990. fi
  21991. else
  21992. pkg_failed=untried
  21993. fi
  21994. if test $pkg_failed = yes; then
  21995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21996. printf "%s\n" "no" >&6; }
  21997. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21998. _pkg_short_errors_supported=yes
  21999. else
  22000. _pkg_short_errors_supported=no
  22001. fi
  22002. if test $_pkg_short_errors_supported = yes; then
  22003. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22004. else
  22005. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22006. fi
  22007. # Put the nasty error message in config.log where it belongs
  22008. echo "$LIBDRM_PKG_ERRORS" >&5
  22009. libdrm_avail=no
  22010. elif test $pkg_failed = untried; then
  22011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22012. printf "%s\n" "no" >&6; }
  22013. libdrm_avail=no
  22014. else
  22015. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  22016. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  22017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22018. printf "%s\n" "yes" >&6; }
  22019. libdrm_avail=yes
  22020. fi
  22021. pkg_failed=no
  22022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  22023. printf %s "checking for gbm >= 11.1.0... " >&6; }
  22024. if test -n "$LIBGBM_CFLAGS"; then
  22025. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  22026. elif test -n "$PKG_CONFIG"; then
  22027. if test -n "$PKG_CONFIG" && \
  22028. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22029. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22030. ac_status=$?
  22031. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22032. test $ac_status = 0; }; then
  22033. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  22034. test "x$?" != "x0" && pkg_failed=yes
  22035. else
  22036. pkg_failed=yes
  22037. fi
  22038. else
  22039. pkg_failed=untried
  22040. fi
  22041. if test -n "$LIBGBM_LIBS"; then
  22042. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  22043. elif test -n "$PKG_CONFIG"; then
  22044. if test -n "$PKG_CONFIG" && \
  22045. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22046. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22047. ac_status=$?
  22048. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22049. test $ac_status = 0; }; then
  22050. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22051. test "x$?" != "x0" && pkg_failed=yes
  22052. else
  22053. pkg_failed=yes
  22054. fi
  22055. else
  22056. pkg_failed=untried
  22057. fi
  22058. if test $pkg_failed = yes; then
  22059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22060. printf "%s\n" "no" >&6; }
  22061. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22062. _pkg_short_errors_supported=yes
  22063. else
  22064. _pkg_short_errors_supported=no
  22065. fi
  22066. if test $_pkg_short_errors_supported = yes; then
  22067. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22068. else
  22069. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22070. fi
  22071. # Put the nasty error message in config.log where it belongs
  22072. echo "$LIBGBM_PKG_ERRORS" >&5
  22073. libgbm_avail=no
  22074. elif test $pkg_failed = untried; then
  22075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22076. printf "%s\n" "no" >&6; }
  22077. libgbm_avail=no
  22078. else
  22079. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22080. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22082. printf "%s\n" "yes" >&6; }
  22083. libgbm_avail=yes
  22084. fi
  22085. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22086. video_kmsdrm=yes
  22087. fi
  22088. if test x$video_kmsdrm = xyes; then
  22089. # Check whether --enable-kmsdrm-shared was given.
  22090. if test ${enable_kmsdrm_shared+y}
  22091. then :
  22092. enableval=$enable_kmsdrm_shared;
  22093. else $as_nop
  22094. enable_kmsdrm_shared=yes
  22095. fi
  22096. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22097. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22098. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22100. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22101. kmsdrm_shared=no
  22102. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22103. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22104. if test x$have_loadso != xyes && \
  22105. test x$enable_kmsdrm_shared = xyes; then
  22106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22107. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22108. fi
  22109. if test x$have_loadso = xyes && \
  22110. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22111. kmsdrm_shared=yes
  22112. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22113. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22114. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22115. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22116. else
  22117. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22118. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22119. fi
  22120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22121. printf "%s\n" "$kmsdrm_shared" >&6; }
  22122. if test x$kmsdrm_shared = xyes; then
  22123. echo "-- dynamic libdrm -> $drm_lib"
  22124. echo "-- dynamic libgbm -> $gbm_lib"
  22125. fi
  22126. have_video=yes
  22127. fi
  22128. fi
  22129. }
  22130. CheckDummyVideo()
  22131. {
  22132. # Check whether --enable-video-dummy was given.
  22133. if test ${enable_video_dummy+y}
  22134. then :
  22135. enableval=$enable_video_dummy;
  22136. else $as_nop
  22137. enable_video_dummy=yes
  22138. fi
  22139. if test x$enable_video_dummy = xyes; then
  22140. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22141. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22142. have_video=yes
  22143. SUMMARY_video="${SUMMARY_video} dummy"
  22144. fi
  22145. }
  22146. CheckOffscreenVideo()
  22147. {
  22148. # Check whether --enable-video-offscreen was given.
  22149. if test ${enable_video_offscreen+y}
  22150. then :
  22151. enableval=$enable_video_offscreen;
  22152. else $as_nop
  22153. enable_video_offscreen=no
  22154. fi
  22155. if test x$enable_video_offscreen = xyes; then
  22156. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22157. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22158. have_video=yes
  22159. SUMMARY_video="${SUMMARY_video} offscreen"
  22160. fi
  22161. }
  22162. CheckQNXVideo()
  22163. {
  22164. if test x$enable_video = xyes; then
  22165. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22166. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22167. have_video=yes
  22168. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22169. SUMMARY_video="${SUMMARY_video} qnx"
  22170. fi
  22171. }
  22172. CheckQNXAudio()
  22173. {
  22174. if test x$enable_audio = xyes; then
  22175. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22176. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22177. have_audio=yes
  22178. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22179. SUMMARY_audio="${SUMMARY_audio} qsa"
  22180. fi
  22181. }
  22182. # Check whether --enable-video-opengl was given.
  22183. if test ${enable_video_opengl+y}
  22184. then :
  22185. enableval=$enable_video_opengl;
  22186. else $as_nop
  22187. enable_video_opengl=yes
  22188. fi
  22189. CheckGLX()
  22190. {
  22191. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22193. printf %s "checking for GLX support... " >&6; }
  22194. video_opengl_glx=no
  22195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22196. /* end confdefs.h. */
  22197. #include <GL/glx.h>
  22198. int
  22199. main (void)
  22200. {
  22201. ;
  22202. return 0;
  22203. }
  22204. _ACEOF
  22205. if ac_fn_c_try_compile "$LINENO"
  22206. then :
  22207. video_opengl_glx=yes
  22208. fi
  22209. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22211. printf "%s\n" "$video_opengl_glx" >&6; }
  22212. if test x$video_opengl_glx = xyes; then
  22213. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22214. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22215. fi
  22216. fi
  22217. }
  22218. # Check whether --enable-video-opengles was given.
  22219. if test ${enable_video_opengles+y}
  22220. then :
  22221. enableval=$enable_video_opengles;
  22222. else $as_nop
  22223. enable_video_opengles=yes
  22224. fi
  22225. # Check whether --enable-video-opengles1 was given.
  22226. if test ${enable_video_opengles1+y}
  22227. then :
  22228. enableval=$enable_video_opengles1;
  22229. else $as_nop
  22230. enable_video_opengles1=yes
  22231. fi
  22232. # Check whether --enable-video-opengles2 was given.
  22233. if test ${enable_video_opengles2+y}
  22234. then :
  22235. enableval=$enable_video_opengles2;
  22236. else $as_nop
  22237. enable_video_opengles2=yes
  22238. fi
  22239. CheckEGL()
  22240. {
  22241. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22243. printf %s "checking for EGL support... " >&6; }
  22244. video_opengl_egl=no
  22245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22246. /* end confdefs.h. */
  22247. #define LINUX
  22248. #define EGL_API_FB
  22249. #define MESA_EGL_NO_X11_HEADERS
  22250. #define EGL_NO_X11
  22251. #include <EGL/egl.h>
  22252. #include <EGL/eglext.h>
  22253. int
  22254. main (void)
  22255. {
  22256. ;
  22257. return 0;
  22258. }
  22259. _ACEOF
  22260. if ac_fn_c_try_compile "$LINENO"
  22261. then :
  22262. video_opengl_egl=yes
  22263. fi
  22264. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22266. printf "%s\n" "$video_opengl_egl" >&6; }
  22267. if test x$video_opengl_egl = xyes; then
  22268. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22269. fi
  22270. fi
  22271. }
  22272. CheckOpenGL()
  22273. {
  22274. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22276. printf %s "checking for OpenGL headers... " >&6; }
  22277. video_opengl=no
  22278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22279. /* end confdefs.h. */
  22280. #include <GL/gl.h>
  22281. #include <GL/glext.h>
  22282. int
  22283. main (void)
  22284. {
  22285. ;
  22286. return 0;
  22287. }
  22288. _ACEOF
  22289. if ac_fn_c_try_compile "$LINENO"
  22290. then :
  22291. video_opengl=yes
  22292. fi
  22293. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22295. printf "%s\n" "$video_opengl" >&6; }
  22296. if test x$video_opengl = xyes; then
  22297. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22298. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22299. SUMMARY_video="${SUMMARY_video} opengl"
  22300. fi
  22301. fi
  22302. }
  22303. CheckOpenGLES()
  22304. {
  22305. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22306. if test x$enable_video_opengles1 = xyes; then
  22307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22308. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22309. video_opengles_v1=no
  22310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22311. /* end confdefs.h. */
  22312. #include <GLES/gl.h>
  22313. #include <GLES/glext.h>
  22314. int
  22315. main (void)
  22316. {
  22317. ;
  22318. return 0;
  22319. }
  22320. _ACEOF
  22321. if ac_fn_c_try_compile "$LINENO"
  22322. then :
  22323. video_opengles_v1=yes
  22324. fi
  22325. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22327. printf "%s\n" "$video_opengles_v1" >&6; }
  22328. if test x$video_opengles_v1 = xyes; then
  22329. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22330. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22331. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22332. fi
  22333. fi
  22334. if test x$enable_video_opengles2 = xyes; then
  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_ES2 1" >>confdefs.h
  22358. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22359. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22360. fi
  22361. fi
  22362. fi
  22363. }
  22364. CheckWINDOWSGL()
  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_WGL 1" >>confdefs.h
  22369. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22370. SUMMARY_video="${SUMMARY_video} opengl"
  22371. fi
  22372. }
  22373. CheckWINDOWSGLES()
  22374. {
  22375. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22377. printf %s "checking for EGL support... " >&6; }
  22378. video_opengl_egl=no
  22379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22380. /* end confdefs.h. */
  22381. #include <EGL/egl.h>
  22382. int
  22383. main (void)
  22384. {
  22385. ;
  22386. return 0;
  22387. }
  22388. _ACEOF
  22389. if ac_fn_c_try_compile "$LINENO"
  22390. then :
  22391. video_opengl_egl=yes
  22392. fi
  22393. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22395. printf "%s\n" "$video_opengl_egl" >&6; }
  22396. if test x$video_opengl_egl = xyes; then
  22397. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22398. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22399. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22400. fi
  22401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22402. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22403. video_opengles_v2=no
  22404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22405. /* end confdefs.h. */
  22406. #include <GLES2/gl2.h>
  22407. #include <GLES2/gl2ext.h>
  22408. int
  22409. main (void)
  22410. {
  22411. ;
  22412. return 0;
  22413. }
  22414. _ACEOF
  22415. if ac_fn_c_try_compile "$LINENO"
  22416. then :
  22417. video_opengles_v2=yes
  22418. fi
  22419. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22421. printf "%s\n" "$video_opengles_v2" >&6; }
  22422. if test x$video_opengles_v2 = xyes; then
  22423. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22424. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22425. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22426. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22427. fi
  22428. fi
  22429. }
  22430. CheckHaikuGL()
  22431. {
  22432. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22433. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22434. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22435. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22436. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22437. SUMMARY_video="${SUMMARY_video} opengl"
  22438. fi
  22439. }
  22440. CheckMacGL()
  22441. {
  22442. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22443. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22444. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22445. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22446. SUMMARY_video="${SUMMARY_video} opengl"
  22447. fi
  22448. }
  22449. CheckMacGLES()
  22450. {
  22451. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22452. video_opengl_egl=yes
  22453. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22454. video_opengles_v2=yes
  22455. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22456. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22457. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22458. fi
  22459. }
  22460. CheckEmscriptenGLES()
  22461. {
  22462. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22464. printf %s "checking for EGL support... " >&6; }
  22465. video_opengl_egl=no
  22466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22467. /* end confdefs.h. */
  22468. #include <EGL/egl.h>
  22469. int
  22470. main (void)
  22471. {
  22472. ;
  22473. return 0;
  22474. }
  22475. _ACEOF
  22476. if ac_fn_c_try_compile "$LINENO"
  22477. then :
  22478. video_opengl_egl=yes
  22479. fi
  22480. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22482. printf "%s\n" "$video_opengl_egl" >&6; }
  22483. if test x$video_opengl_egl = xyes; then
  22484. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22485. fi
  22486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22487. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22488. video_opengles_v2=no
  22489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22490. /* end confdefs.h. */
  22491. #include <GLES2/gl2.h>
  22492. #include <GLES2/gl2ext.h>
  22493. int
  22494. main (void)
  22495. {
  22496. ;
  22497. return 0;
  22498. }
  22499. _ACEOF
  22500. if ac_fn_c_try_compile "$LINENO"
  22501. then :
  22502. video_opengles_v2=yes
  22503. fi
  22504. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22506. printf "%s\n" "$video_opengles_v2" >&6; }
  22507. if test x$video_opengles_v2 = xyes; then
  22508. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22509. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22510. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22511. fi
  22512. fi
  22513. }
  22514. # Check whether --enable-video-vulkan was given.
  22515. if test ${enable_video_vulkan+y}
  22516. then :
  22517. enableval=$enable_video_vulkan;
  22518. else $as_nop
  22519. enable_video_vulkan=yes
  22520. fi
  22521. CheckVulkan()
  22522. {
  22523. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22524. case "$host" in
  22525. *-*-android*)
  22526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22527. /* end confdefs.h. */
  22528. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22529. #error Vulkan doesn't work on this configuration
  22530. #endif
  22531. int
  22532. main (void)
  22533. {
  22534. ;
  22535. return 0;
  22536. }
  22537. _ACEOF
  22538. if ac_fn_c_try_compile "$LINENO"
  22539. then :
  22540. else $as_nop
  22541. enable_video_vulkan=no
  22542. fi
  22543. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22544. ;;
  22545. *-*-darwin*)
  22546. save_CFLAGS="$CFLAGS"
  22547. CFLAGS="$CFLAGS -x objective-c"
  22548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22549. /* end confdefs.h. */
  22550. #include <Cocoa/Cocoa.h>
  22551. #include <Metal/Metal.h>
  22552. #include <QuartzCore/CAMetalLayer.h>
  22553. #if TARGET_CPU_X86
  22554. #error Vulkan doesn't work on this configuration
  22555. #endif
  22556. int
  22557. main (void)
  22558. {
  22559. ;
  22560. return 0;
  22561. }
  22562. _ACEOF
  22563. if ac_fn_c_try_compile "$LINENO"
  22564. then :
  22565. else $as_nop
  22566. enable_video_vulkan=no
  22567. fi
  22568. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22569. CFLAGS="$save_CFLAGS"
  22570. ;;
  22571. *)
  22572. ;;
  22573. esac
  22574. if test x$enable_video_vulkan = xno; then
  22575. # For reasons I am totally unable to see, I get an undefined macro error if
  22576. # I put this in the AC_TRY_COMPILE.
  22577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22578. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22579. fi
  22580. fi
  22581. if test x$have_loadso != xyes; then
  22582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22583. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22584. enable_video_vulkan=no
  22585. fi
  22586. if test x$enable_video_vulkan = xyes; then
  22587. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22588. SUMMARY_video="${SUMMARY_video} vulkan"
  22589. fi
  22590. }
  22591. CheckInputEvents()
  22592. {
  22593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22594. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22595. use_input_events=no
  22596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22597. /* end confdefs.h. */
  22598. #include <linux/input.h>
  22599. int
  22600. main (void)
  22601. {
  22602. #ifndef EVIOCGNAME
  22603. #error EVIOCGNAME() ioctl not available
  22604. #endif
  22605. ;
  22606. return 0;
  22607. }
  22608. _ACEOF
  22609. if ac_fn_c_try_compile "$LINENO"
  22610. then :
  22611. use_input_events=yes
  22612. fi
  22613. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22615. printf "%s\n" "$use_input_events" >&6; }
  22616. if test x$use_input_events = xyes; then
  22617. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22618. SUMMARY_input="${SUMMARY_input} linuxev"
  22619. fi
  22620. }
  22621. CheckInputKD()
  22622. {
  22623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22624. printf %s "checking for Linux kd.h... " >&6; }
  22625. use_input_kd=no
  22626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22627. /* end confdefs.h. */
  22628. #include <linux/kd.h>
  22629. #include <linux/keyboard.h>
  22630. int
  22631. main (void)
  22632. {
  22633. struct kbentry kbe;
  22634. kbe.kb_table = KG_CTRL;
  22635. ioctl(0, KDGKBENT, &kbe);
  22636. ;
  22637. return 0;
  22638. }
  22639. _ACEOF
  22640. if ac_fn_c_try_compile "$LINENO"
  22641. then :
  22642. use_input_kd=yes
  22643. fi
  22644. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22646. printf "%s\n" "$use_input_kd" >&6; }
  22647. if test x$use_input_kd = xyes; then
  22648. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22649. SUMMARY_input="${SUMMARY_input} linuxkd"
  22650. fi
  22651. }
  22652. CheckInputKBIO()
  22653. {
  22654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22655. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22656. use_input_kbio=no
  22657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22658. /* end confdefs.h. */
  22659. #include <sys/kbio.h>
  22660. #include <sys/ioctl.h>
  22661. int
  22662. main (void)
  22663. {
  22664. accentmap_t accTable;
  22665. ioctl(0, KDENABIO, 1);
  22666. ;
  22667. return 0;
  22668. }
  22669. _ACEOF
  22670. if ac_fn_c_try_compile "$LINENO"
  22671. then :
  22672. use_input_kbio=yes
  22673. fi
  22674. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22676. printf "%s\n" "$use_input_kbio" >&6; }
  22677. if test x$use_input_kbio = xyes; then
  22678. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22679. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22680. fi
  22681. }
  22682. CheckInputWSCONS()
  22683. {
  22684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22685. printf %s "checking for OpenBSD wscons... " >&6; }
  22686. use_input_wscons=no
  22687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22688. /* end confdefs.h. */
  22689. #include <sys/time.h>
  22690. #include <dev/wscons/wsconsio.h>
  22691. #include <dev/wscons/wsksymdef.h>
  22692. #include <dev/wscons/wsksymvar.h>
  22693. #include <sys/ioctl.h>
  22694. int
  22695. main (void)
  22696. {
  22697. struct wskbd_map_data data;
  22698. ioctl(0, WSKBDIO_GETMAP, &data);
  22699. ;
  22700. return 0;
  22701. }
  22702. _ACEOF
  22703. if ac_fn_c_try_compile "$LINENO"
  22704. then :
  22705. use_input_wscons=yes
  22706. fi
  22707. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  22709. printf "%s\n" "$use_input_wscons" >&6; }
  22710. if test x$use_input_wscons = xyes; then
  22711. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  22712. SUMMARY_input="${SUMMARY_input} wscons"
  22713. fi
  22714. }
  22715. CheckLibUDev()
  22716. {
  22717. # Check whether --enable-libudev was given.
  22718. if test ${enable_libudev+y}
  22719. then :
  22720. enableval=$enable_libudev;
  22721. else $as_nop
  22722. enable_libudev=yes
  22723. fi
  22724. if test x$enable_libudev = xyes; then
  22725. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  22726. if test "x$ac_cv_header_libudev_h" = xyes
  22727. then :
  22728. have_libudev_h_hdr=yes
  22729. else $as_nop
  22730. have_libudev_h_hdr=no
  22731. fi
  22732. if test x$have_libudev_h_hdr = xyes; then
  22733. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  22734. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22735. if test x$udev_lib != x; then
  22736. echo "-- dynamic udev -> $udev_lib"
  22737. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  22738. fi
  22739. fi
  22740. fi
  22741. }
  22742. CheckDBus()
  22743. {
  22744. # Check whether --enable-dbus was given.
  22745. if test ${enable_dbus+y}
  22746. then :
  22747. enableval=$enable_dbus;
  22748. else $as_nop
  22749. enable_dbus=yes
  22750. fi
  22751. if test x$enable_dbus = xyes; then
  22752. pkg_failed=no
  22753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  22754. printf %s "checking for dbus-1... " >&6; }
  22755. if test -n "$DBUS_CFLAGS"; then
  22756. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  22757. elif test -n "$PKG_CONFIG"; then
  22758. if test -n "$PKG_CONFIG" && \
  22759. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22760. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22761. ac_status=$?
  22762. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22763. test $ac_status = 0; }; then
  22764. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  22765. test "x$?" != "x0" && pkg_failed=yes
  22766. else
  22767. pkg_failed=yes
  22768. fi
  22769. else
  22770. pkg_failed=untried
  22771. fi
  22772. if test -n "$DBUS_LIBS"; then
  22773. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  22774. elif test -n "$PKG_CONFIG"; then
  22775. if test -n "$PKG_CONFIG" && \
  22776. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22777. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22778. ac_status=$?
  22779. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22780. test $ac_status = 0; }; then
  22781. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  22782. test "x$?" != "x0" && pkg_failed=yes
  22783. else
  22784. pkg_failed=yes
  22785. fi
  22786. else
  22787. pkg_failed=untried
  22788. fi
  22789. if test $pkg_failed = yes; then
  22790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22791. printf "%s\n" "no" >&6; }
  22792. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22793. _pkg_short_errors_supported=yes
  22794. else
  22795. _pkg_short_errors_supported=no
  22796. fi
  22797. if test $_pkg_short_errors_supported = yes; then
  22798. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  22799. else
  22800. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  22801. fi
  22802. # Put the nasty error message in config.log where it belongs
  22803. echo "$DBUS_PKG_ERRORS" >&5
  22804. have_dbus=no
  22805. elif test $pkg_failed = untried; then
  22806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22807. printf "%s\n" "no" >&6; }
  22808. have_dbus=no
  22809. else
  22810. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  22811. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  22812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22813. printf "%s\n" "yes" >&6; }
  22814. have_dbus=yes
  22815. fi
  22816. save_CPPFLAGS="$CPPFLAGS"
  22817. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  22818. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  22819. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  22820. then :
  22821. have_dbus_dbus_h_hdr=yes
  22822. else $as_nop
  22823. have_dbus_dbus_h_hdr=no
  22824. fi
  22825. CPPFLAGS="$save_CPPFLAGS"
  22826. if test x$have_dbus_dbus_h_hdr = xyes; then
  22827. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  22828. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  22829. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  22830. fi
  22831. fi
  22832. }
  22833. CheckIME()
  22834. {
  22835. # Check whether --enable-ime was given.
  22836. if test ${enable_ime+y}
  22837. then :
  22838. enableval=$enable_ime;
  22839. else $as_nop
  22840. enable_ime=yes
  22841. fi
  22842. if test x$enable_ime = xyes; then
  22843. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  22844. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  22845. fi
  22846. }
  22847. CheckInotify()
  22848. {
  22849. save_LIBS="$LIBS"
  22850. case "$host" in
  22851. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  22852. ;;
  22853. esac
  22854. for ac_header in sys/inotify.h
  22855. do :
  22856. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  22857. if test "x$ac_cv_header_sys_inotify_h" = xyes
  22858. then :
  22859. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  22860. have_inotify_inotify_h_hdr=yes
  22861. fi
  22862. done
  22863. for ac_func in inotify_init
  22864. do :
  22865. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  22866. if test "x$ac_cv_func_inotify_init" = xyes
  22867. then :
  22868. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  22869. have_inotify=yes
  22870. fi
  22871. done
  22872. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  22873. if test "x$ac_cv_func_inotify_init1" = xyes
  22874. then :
  22875. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  22876. fi
  22877. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  22878. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  22879. case "$host" in
  22880. *-*-freebsd*|*-*-dragonfly*)
  22881. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  22882. ;;
  22883. esac
  22884. fi
  22885. LIBS="$save_LIBS"
  22886. }
  22887. CheckIBus()
  22888. {
  22889. # Check whether --enable-ibus was given.
  22890. if test ${enable_ibus+y}
  22891. then :
  22892. enableval=$enable_ibus;
  22893. else $as_nop
  22894. enable_ibus=yes
  22895. fi
  22896. if test x$enable_ibus = xyes; then
  22897. pkg_failed=no
  22898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22899. printf %s "checking for ibus-1.0... " >&6; }
  22900. if test -n "$IBUS_CFLAGS"; then
  22901. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  22902. elif test -n "$PKG_CONFIG"; then
  22903. if test -n "$PKG_CONFIG" && \
  22904. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22905. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22906. ac_status=$?
  22907. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22908. test $ac_status = 0; }; then
  22909. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  22910. test "x$?" != "x0" && pkg_failed=yes
  22911. else
  22912. pkg_failed=yes
  22913. fi
  22914. else
  22915. pkg_failed=untried
  22916. fi
  22917. if test -n "$IBUS_LIBS"; then
  22918. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  22919. elif test -n "$PKG_CONFIG"; then
  22920. if test -n "$PKG_CONFIG" && \
  22921. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22922. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22923. ac_status=$?
  22924. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22925. test $ac_status = 0; }; then
  22926. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  22927. test "x$?" != "x0" && pkg_failed=yes
  22928. else
  22929. pkg_failed=yes
  22930. fi
  22931. else
  22932. pkg_failed=untried
  22933. fi
  22934. if test $pkg_failed = yes; then
  22935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22936. printf "%s\n" "no" >&6; }
  22937. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22938. _pkg_short_errors_supported=yes
  22939. else
  22940. _pkg_short_errors_supported=no
  22941. fi
  22942. if test $_pkg_short_errors_supported = yes; then
  22943. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22944. else
  22945. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22946. fi
  22947. # Put the nasty error message in config.log where it belongs
  22948. echo "$IBUS_PKG_ERRORS" >&5
  22949. have_ibus=no
  22950. elif test $pkg_failed = untried; then
  22951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22952. printf "%s\n" "no" >&6; }
  22953. have_ibus=no
  22954. else
  22955. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  22956. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  22957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22958. printf "%s\n" "yes" >&6; }
  22959. have_ibus=yes
  22960. fi
  22961. save_CPPFLAGS="$CPPFLAGS"
  22962. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  22963. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  22964. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  22965. then :
  22966. have_ibus_ibus_h_hdr=yes
  22967. else $as_nop
  22968. have_ibus_ibus_h_hdr=no
  22969. fi
  22970. CPPFLAGS="$save_CPPFLAGS"
  22971. if test x$have_ibus_ibus_h_hdr = xyes; then
  22972. if test x$enable_ime != xyes; then
  22973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  22974. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  22975. have_ibus_ibus_h_hdr=no
  22976. elif test x$enable_dbus != xyes; then
  22977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  22978. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  22979. have_ibus_ibus_h_hdr=no
  22980. elif test x$have_inotify_inotify_h_hdr != xyes; then
  22981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  22982. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  22983. have_ibus_ibus_h_hdr=no
  22984. else
  22985. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  22986. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  22987. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  22988. fi
  22989. fi
  22990. fi
  22991. }
  22992. CheckFcitx()
  22993. {
  22994. # Check whether --enable-fcitx was given.
  22995. if test ${enable_fcitx+y}
  22996. then :
  22997. enableval=$enable_fcitx;
  22998. else $as_nop
  22999. enable_fcitx=yes
  23000. fi
  23001. if test x$enable_fcitx = xyes; then
  23002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  23003. printf %s "checking for fcitx support... " >&6; }
  23004. have_fcitx=no
  23005. if test x$enable_ime != xyes; then
  23006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  23007. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  23008. elif test x$have_dbus_dbus_h_hdr != xyes; then
  23009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  23010. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  23011. else
  23012. have_fcitx=yes
  23013. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  23014. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  23015. fi
  23016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  23017. printf "%s\n" "$have_fcitx" >&6; }
  23018. fi
  23019. }
  23020. CheckJoystickMFI()
  23021. {
  23022. # Check whether --enable-joystick-mfi was given.
  23023. if test ${enable_joystick_mfi+y}
  23024. then :
  23025. enableval=$enable_joystick_mfi;
  23026. else $as_nop
  23027. enable_joystick_mfi=yes
  23028. fi
  23029. if test x$enable_joystick_mfi = xyes; then
  23030. save_CFLAGS="$CFLAGS"
  23031. save_LDFLAGS="$LDFLAGS"
  23032. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  23033. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  23035. printf %s "checking for GameController framework... " >&6; }
  23036. enable_joystick_mfi=no
  23037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23038. /* end confdefs.h. */
  23039. #include <AvailabilityMacros.h>
  23040. #include <TargetConditionals.h>
  23041. #import <GameController/GameController.h>
  23042. int
  23043. main (void)
  23044. {
  23045. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23046. #error GameController framework doesn't work on this configuration
  23047. #endif
  23048. #if TARGET_CPU_X86
  23049. #error GameController framework doesn't work on this configuration
  23050. #endif
  23051. ;
  23052. return 0;
  23053. }
  23054. _ACEOF
  23055. if ac_fn_c_try_link "$LINENO"
  23056. then :
  23057. enable_joystick_mfi=yes
  23058. fi
  23059. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23060. conftest$ac_exeext conftest.$ac_ext
  23061. CFLAGS="$save_CFLAGS"
  23062. LDFLAGS="$save_LDFLAGS"
  23063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23064. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23065. if test x$enable_joystick_mfi = xyes; then
  23066. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23067. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23068. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23069. fi
  23070. fi
  23071. }
  23072. CheckPTHREAD()
  23073. {
  23074. case "$host" in
  23075. *-*-emscripten*)
  23076. enable_pthreads_default=no
  23077. ;;
  23078. *)
  23079. enable_pthreads_default=yes
  23080. ;;
  23081. esac
  23082. # Check whether --enable-pthreads was given.
  23083. if test ${enable_pthreads+y}
  23084. then :
  23085. enableval=$enable_pthreads;
  23086. else $as_nop
  23087. enable_pthreads=maybe
  23088. fi
  23089. # Check whether --enable-pthread-sem was given.
  23090. if test ${enable_pthread_sem+y}
  23091. then :
  23092. enableval=$enable_pthread_sem;
  23093. else $as_nop
  23094. enable_pthread_sem=maybe
  23095. fi
  23096. if test x$enable_pthreads = xmaybe; then
  23097. enable_pthreads=$enable_pthreads_default
  23098. fi
  23099. if test x$enable_pthread_sem = xmaybe; then
  23100. enable_pthread_sem=$enable_pthreads
  23101. fi
  23102. case "$host" in
  23103. *-*-android*)
  23104. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23105. pthread_lib=""
  23106. ;;
  23107. *-*-linux*|*-*-uclinux*)
  23108. pthread_cflags="-D_REENTRANT"
  23109. pthread_lib="-lpthread"
  23110. ;;
  23111. *-*-bsdi*)
  23112. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23113. pthread_lib=""
  23114. ;;
  23115. *-*-darwin*)
  23116. pthread_cflags="-D_THREAD_SAFE"
  23117. # causes Carbon.p complaints?
  23118. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23119. ;;
  23120. *-*-freebsd*|*-*-dragonfly*)
  23121. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23122. pthread_lib="-pthread"
  23123. ;;
  23124. *-*-netbsd*)
  23125. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23126. pthread_lib="-lpthread"
  23127. ;;
  23128. *-*-openbsd*)
  23129. pthread_cflags="-D_REENTRANT"
  23130. pthread_lib="-pthread"
  23131. ;;
  23132. *-*-solaris2.9)
  23133. # From Solaris 9+, posix4's preferred name is rt.
  23134. pthread_cflags="-D_REENTRANT"
  23135. pthread_lib="-lpthread -lrt"
  23136. ;;
  23137. *-*-solaris2.10)
  23138. # Solaris 10+ merged pthread into libc.
  23139. pthread_cflags="-D_REENTRANT"
  23140. pthread_lib="-lrt"
  23141. ;;
  23142. *-*-solaris*)
  23143. # Solaris 11+ merged rt into libc.
  23144. pthread_cflags="-D_REENTRANT"
  23145. pthread_lib=""
  23146. ;;
  23147. *-*-sysv5*)
  23148. pthread_cflags="-D_REENTRANT -Kthread"
  23149. pthread_lib=""
  23150. ;;
  23151. *-*-aix*)
  23152. pthread_cflags="-D_REENTRANT -mthreads"
  23153. pthread_lib="-lpthread"
  23154. ;;
  23155. *-*-hpux11*)
  23156. pthread_cflags="-D_REENTRANT"
  23157. pthread_lib="-L/usr/lib -lpthread"
  23158. ;;
  23159. *-*-haiku*)
  23160. pthread_cflags="-D_REENTRANT"
  23161. pthread_lib=""
  23162. ;;
  23163. *-*-nto*)
  23164. pthread_cflags="-D_REENTRANT"
  23165. pthread_lib=""
  23166. ;;
  23167. *-*-emscripten*)
  23168. pthread_cflags="-D_REENTRANT -pthread"
  23169. pthread_lib="-pthread"
  23170. ;;
  23171. *)
  23172. pthread_cflags="-D_REENTRANT"
  23173. pthread_lib="-lpthread"
  23174. ;;
  23175. esac
  23176. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23177. # Save the original compiler flags and libraries
  23178. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23179. # Add the pthread compiler flags and libraries
  23180. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23181. # Check to see if we have pthread support on this system
  23182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23183. printf %s "checking for pthreads... " >&6; }
  23184. use_pthreads=no
  23185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23186. /* end confdefs.h. */
  23187. #include <pthread.h>
  23188. int
  23189. main (void)
  23190. {
  23191. pthread_attr_t type;
  23192. pthread_attr_init(&type);
  23193. ;
  23194. return 0;
  23195. }
  23196. _ACEOF
  23197. if ac_fn_c_try_link "$LINENO"
  23198. then :
  23199. use_pthreads=yes
  23200. fi
  23201. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23202. conftest$ac_exeext conftest.$ac_ext
  23203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23204. printf "%s\n" "$use_pthreads" >&6; }
  23205. # Restore the compiler flags and libraries
  23206. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23207. # Do futher testing if we have pthread support...
  23208. if test x$use_pthreads = xyes; then
  23209. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23210. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23211. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23212. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23213. # Save the original compiler flags and libraries
  23214. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23215. # Add the pthread compiler flags and libraries
  23216. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23217. # Check to see if recursive mutexes are available
  23218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23219. printf %s "checking for recursive mutexes... " >&6; }
  23220. has_recursive_mutexes=no
  23221. if test x$has_recursive_mutexes = xno; then
  23222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23223. /* end confdefs.h. */
  23224. #define _GNU_SOURCE 1
  23225. #include <pthread.h>
  23226. int
  23227. main (void)
  23228. {
  23229. pthread_mutexattr_t attr;
  23230. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23231. ;
  23232. return 0;
  23233. }
  23234. _ACEOF
  23235. if ac_fn_c_try_link "$LINENO"
  23236. then :
  23237. has_recursive_mutexes=yes
  23238. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23239. fi
  23240. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23241. conftest$ac_exeext conftest.$ac_ext
  23242. fi
  23243. if test x$has_recursive_mutexes = xno; then
  23244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23245. /* end confdefs.h. */
  23246. #define _GNU_SOURCE 1
  23247. #include <pthread.h>
  23248. int
  23249. main (void)
  23250. {
  23251. pthread_mutexattr_t attr;
  23252. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23253. ;
  23254. return 0;
  23255. }
  23256. _ACEOF
  23257. if ac_fn_c_try_link "$LINENO"
  23258. then :
  23259. has_recursive_mutexes=yes
  23260. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23261. fi
  23262. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23263. conftest$ac_exeext conftest.$ac_ext
  23264. fi
  23265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23266. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23267. # Check to see if pthread semaphore support is missing
  23268. if test x$enable_pthread_sem = xyes; then
  23269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23270. printf %s "checking for pthread semaphores... " >&6; }
  23271. have_pthread_sem=no
  23272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23273. /* end confdefs.h. */
  23274. #include <pthread.h>
  23275. #include <semaphore.h>
  23276. int
  23277. main (void)
  23278. {
  23279. ;
  23280. return 0;
  23281. }
  23282. _ACEOF
  23283. if ac_fn_c_try_compile "$LINENO"
  23284. then :
  23285. have_pthread_sem=yes
  23286. fi
  23287. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23289. printf "%s\n" "$have_pthread_sem" >&6; }
  23290. fi
  23291. if test x$have_pthread_sem = xyes; then
  23292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23293. printf %s "checking for sem_timedwait... " >&6; }
  23294. have_sem_timedwait=no
  23295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23296. /* end confdefs.h. */
  23297. #include <pthread.h>
  23298. #include <semaphore.h>
  23299. int
  23300. main (void)
  23301. {
  23302. sem_timedwait(NULL, NULL);
  23303. ;
  23304. return 0;
  23305. }
  23306. _ACEOF
  23307. if ac_fn_c_try_link "$LINENO"
  23308. then :
  23309. have_sem_timedwait=yes
  23310. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23311. fi
  23312. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23313. conftest$ac_exeext conftest.$ac_ext
  23314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23315. printf "%s\n" "$have_sem_timedwait" >&6; }
  23316. fi
  23317. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23318. "
  23319. if test "x$ac_cv_header_pthread_np_h" = xyes
  23320. then :
  23321. have_pthread_np_h=yes
  23322. else $as_nop
  23323. have_pthread_np_h=no
  23324. fi
  23325. if test x$have_pthread_np_h = xyes; then
  23326. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23327. fi
  23328. # Check to see if pthread naming is available
  23329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23330. printf %s "checking for pthread_setname_np... " >&6; }
  23331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23332. /* end confdefs.h. */
  23333. /* Override any GCC internal prototype to avoid an error.
  23334. Use char because int might match the return type of a GCC
  23335. builtin and then its argument prototype would still apply. */
  23336. char pthread_setname_np ();
  23337. int
  23338. main (void)
  23339. {
  23340. return pthread_setname_np ();
  23341. ;
  23342. return 0;
  23343. }
  23344. _ACEOF
  23345. if ac_fn_c_try_link "$LINENO"
  23346. then :
  23347. has_pthread_setname_np=yes
  23348. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23349. else $as_nop
  23350. has_pthread_setname_np=no
  23351. fi
  23352. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23353. conftest$ac_exeext conftest.$ac_ext
  23354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23355. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23357. printf %s "checking for pthread_set_name_np... " >&6; }
  23358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23359. /* end confdefs.h. */
  23360. /* Override any GCC internal prototype to avoid an error.
  23361. Use char because int might match the return type of a GCC
  23362. builtin and then its argument prototype would still apply. */
  23363. char pthread_set_name_np ();
  23364. int
  23365. main (void)
  23366. {
  23367. return pthread_set_name_np ();
  23368. ;
  23369. return 0;
  23370. }
  23371. _ACEOF
  23372. if ac_fn_c_try_link "$LINENO"
  23373. then :
  23374. has_pthread_set_name_np=yes
  23375. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23376. else $as_nop
  23377. has_pthread_set_name_np=no
  23378. fi
  23379. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23380. conftest$ac_exeext conftest.$ac_ext
  23381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23382. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23383. # Restore the compiler flags and libraries
  23384. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23385. # Basic thread creation functions
  23386. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23387. # Semaphores
  23388. # We can fake these with mutexes and condition variables if necessary
  23389. if test x$have_pthread_sem = xyes; then
  23390. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23391. else
  23392. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23393. fi
  23394. # Mutexes
  23395. # We can fake these with semaphores if necessary
  23396. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23397. # Condition variables
  23398. # We can fake these with semaphores and mutexes if necessary
  23399. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23400. # Thread local storage
  23401. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23402. have_threads=yes
  23403. fi
  23404. fi
  23405. }
  23406. CheckWINDOWS()
  23407. {
  23408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23409. printf %s "checking Windows compiler... " >&6; }
  23410. have_win32_gcc=no
  23411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23412. /* end confdefs.h. */
  23413. #include <windows.h>
  23414. int
  23415. main (void)
  23416. {
  23417. ;
  23418. return 0;
  23419. }
  23420. _ACEOF
  23421. if ac_fn_c_try_compile "$LINENO"
  23422. then :
  23423. have_win32_gcc=yes
  23424. fi
  23425. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23427. printf "%s\n" "$have_win32_gcc" >&6; }
  23428. if test x$have_win32_gcc != xyes; then
  23429. as_fn_error $? "
  23430. *** Your compiler ($CC) does not produce Windows executables!
  23431. " "$LINENO" 5
  23432. fi
  23433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23434. printf %s "checking Windows CE... " >&6; }
  23435. have_wince=no
  23436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23437. /* end confdefs.h. */
  23438. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23439. #error This is not Windows CE
  23440. #endif
  23441. int
  23442. main (void)
  23443. {
  23444. ;
  23445. return 0;
  23446. }
  23447. _ACEOF
  23448. if ac_fn_c_try_compile "$LINENO"
  23449. then :
  23450. have_wince=yes
  23451. as_fn_error $? "
  23452. *** Sorry, Windows CE is no longer supported.
  23453. " "$LINENO" 5
  23454. fi
  23455. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23457. printf "%s\n" "$have_wince" >&6; }
  23458. # This fixes Windows stack alignment with newer GCC
  23459. CheckStackBoundary
  23460. # headers needed elsewhere
  23461. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23462. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23463. then :
  23464. have_tpcshrd_h=yes
  23465. fi
  23466. if test x$have_tpcshrd_h = xyes; then
  23467. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23468. fi
  23469. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23470. if test "x$ac_cv_header_roapi_h" = xyes
  23471. then :
  23472. have_roapi_h=yes
  23473. fi
  23474. if test x$have_roapi_h = xyes; then
  23475. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23476. fi
  23477. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23478. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23479. then :
  23480. have_shellscalingapi_h=yes
  23481. fi
  23482. if test x$shellscalingapi_h = xyes; then
  23483. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23484. fi
  23485. }
  23486. CheckOS2()
  23487. {
  23488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23489. printf %s "checking OS/2 compiler... " >&6; }
  23490. have_os2_gcc=no
  23491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23492. /* end confdefs.h. */
  23493. #include <os2.h>
  23494. int
  23495. main (void)
  23496. {
  23497. ;
  23498. return 0;
  23499. }
  23500. _ACEOF
  23501. if ac_fn_c_try_compile "$LINENO"
  23502. then :
  23503. have_os2_gcc=yes
  23504. fi
  23505. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23507. printf "%s\n" "$have_os2_gcc" >&6; }
  23508. if test x$have_os2_gcc != xyes; then
  23509. as_fn_error $? "
  23510. *** Your compiler ($CC) does not produce OS/2 executables!
  23511. " "$LINENO" 5
  23512. fi
  23513. }
  23514. CheckDIRECTX()
  23515. {
  23516. # Check whether --enable-directx was given.
  23517. if test ${enable_directx+y}
  23518. then :
  23519. enableval=$enable_directx;
  23520. else $as_nop
  23521. enable_directx=yes
  23522. fi
  23523. if test x$enable_directx = xyes; then
  23524. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23525. if test "x$ac_cv_header_d3d9_h" = xyes
  23526. then :
  23527. have_d3d=yes
  23528. fi
  23529. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23530. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23531. then :
  23532. have_d3d11=yes
  23533. fi
  23534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  23535. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  23536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23537. /* end confdefs.h. */
  23538. #include <winsdkver.h>
  23539. #include <sdkddkver.h>
  23540. #include <d3d12.h>
  23541. ID3D12Device1 *device;
  23542. #if WDK_NTDDI_VERSION <= 0x0A000008
  23543. asdf
  23544. #endif
  23545. int
  23546. main (void)
  23547. {
  23548. ;
  23549. return 0;
  23550. }
  23551. _ACEOF
  23552. if ac_fn_c_try_compile "$LINENO"
  23553. then :
  23554. have_d3d12=yes
  23555. else $as_nop
  23556. have_d3d12=no
  23557. fi
  23558. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23560. printf "%s\n" "$have_d3d12" >&6; }
  23561. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23562. if test "x$ac_cv_header_ddraw_h" = xyes
  23563. then :
  23564. have_ddraw=yes
  23565. fi
  23566. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23567. if test "x$ac_cv_header_dsound_h" = xyes
  23568. then :
  23569. have_dsound=yes
  23570. fi
  23571. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23572. if test "x$ac_cv_header_dinput_h" = xyes
  23573. then :
  23574. have_dinput=yes
  23575. fi
  23576. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23577. if test "x$ac_cv_header_dxgi_h" = xyes
  23578. then :
  23579. have_dxgi=yes
  23580. fi
  23581. if test x$have_ddraw = xyes; then
  23582. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23583. fi
  23584. if test x$have_dinput = xyes; then
  23585. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23586. fi
  23587. if test x$have_dsound = xyes; then
  23588. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23589. fi
  23590. if test x$have_dxgi = xyes; then
  23591. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23592. fi
  23593. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23594. # FIXME: ...so force it off for now.
  23595. case "$host" in
  23596. *-*-cygwin*)
  23597. have_dinput=false
  23598. ;;
  23599. esac
  23600. fi
  23601. # Check whether --enable-xinput was given.
  23602. if test ${enable_xinput+y}
  23603. then :
  23604. enableval=$enable_xinput;
  23605. else $as_nop
  23606. enable_xinput=yes
  23607. fi
  23608. if test x$enable_xinput = xyes; then
  23609. have_xinput_gamepadex=no
  23610. have_xinput_stateex=no
  23611. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23612. if test "x$ac_cv_header_xinput_h" = xyes
  23613. then :
  23614. have_xinput=yes
  23615. fi
  23616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  23617. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  23618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23619. /* end confdefs.h. */
  23620. #include <windows.h>
  23621. #include <xinput.h>
  23622. XINPUT_GAMEPAD_EX x1;
  23623. int
  23624. main (void)
  23625. {
  23626. ;
  23627. return 0;
  23628. }
  23629. _ACEOF
  23630. if ac_fn_c_try_compile "$LINENO"
  23631. then :
  23632. have_xinput_gamepadex=yes
  23633. fi
  23634. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  23636. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  23637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  23638. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  23639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23640. /* end confdefs.h. */
  23641. #include <windows.h>
  23642. #include <xinput.h>
  23643. XINPUT_STATE_EX s1;
  23644. int
  23645. main (void)
  23646. {
  23647. ;
  23648. return 0;
  23649. }
  23650. _ACEOF
  23651. if ac_fn_c_try_compile "$LINENO"
  23652. then :
  23653. have_xinput_stateex=yes
  23654. fi
  23655. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  23657. printf "%s\n" "$have_xinput_stateex" >&6; }
  23658. if test x$have_xinput = xyes; then
  23659. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23660. fi
  23661. if test x$have_xinput_gamepadex = xyes; then
  23662. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  23663. fi
  23664. if test x$have_xinput_stateex = xyes; then
  23665. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  23666. fi
  23667. fi
  23668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23669. printf %s "checking for windows.gaming.input.h... " >&6; }
  23670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23671. /* end confdefs.h. */
  23672. #define COBJMACROS
  23673. #include <windows.gaming.input.h>
  23674. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23675. int
  23676. main (void)
  23677. {
  23678. ;
  23679. return 0;
  23680. }
  23681. _ACEOF
  23682. if ac_fn_c_try_compile "$LINENO"
  23683. then :
  23684. have_wgi=yes
  23685. else $as_nop
  23686. have_wgi=no
  23687. fi
  23688. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23690. printf "%s\n" "$have_wgi" >&6; }
  23691. if test x$have_wgi = xyes; then
  23692. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23693. fi
  23694. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23695. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23696. then :
  23697. have_wasapi=yes
  23698. fi
  23699. if test x$have_wasapi = xyes; then
  23700. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23701. fi
  23702. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23703. if test "x$ac_cv_header_audioclient_h" = xyes
  23704. then :
  23705. else $as_nop
  23706. have_wasapi=no
  23707. fi
  23708. if test x$have_wasapi = xyes; then
  23709. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23710. fi
  23711. # Check whether --enable-wasapi was given.
  23712. if test ${enable_wasapi+y}
  23713. then :
  23714. enableval=$enable_wasapi;
  23715. else $as_nop
  23716. enable_wasapi=yes
  23717. fi
  23718. }
  23719. CheckDLOPEN()
  23720. {
  23721. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23722. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23723. if test "x$ac_cv_header_dlfcn_h" = xyes
  23724. then :
  23725. have_dlfcn_h=yes
  23726. else $as_nop
  23727. have_dlfcn_h=no
  23728. fi
  23729. have_dlopen=no
  23730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23731. printf %s "checking for dlopen in -lc... " >&6; }
  23732. if test ${ac_cv_lib_c_dlopen+y}
  23733. then :
  23734. printf %s "(cached) " >&6
  23735. else $as_nop
  23736. ac_check_lib_save_LIBS=$LIBS
  23737. LIBS="-lc $LIBS"
  23738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23739. /* end confdefs.h. */
  23740. /* Override any GCC internal prototype to avoid an error.
  23741. Use char because int might match the return type of a GCC
  23742. builtin and then its argument prototype would still apply. */
  23743. char dlopen ();
  23744. int
  23745. main (void)
  23746. {
  23747. return dlopen ();
  23748. ;
  23749. return 0;
  23750. }
  23751. _ACEOF
  23752. if ac_fn_c_try_link "$LINENO"
  23753. then :
  23754. ac_cv_lib_c_dlopen=yes
  23755. else $as_nop
  23756. ac_cv_lib_c_dlopen=no
  23757. fi
  23758. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23759. conftest$ac_exeext conftest.$ac_ext
  23760. LIBS=$ac_check_lib_save_LIBS
  23761. fi
  23762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  23763. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  23764. if test "x$ac_cv_lib_c_dlopen" = xyes
  23765. then :
  23766. have_dlopen=yes
  23767. else $as_nop
  23768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  23769. printf %s "checking for dlopen in -ldl... " >&6; }
  23770. if test ${ac_cv_lib_dl_dlopen+y}
  23771. then :
  23772. printf %s "(cached) " >&6
  23773. else $as_nop
  23774. ac_check_lib_save_LIBS=$LIBS
  23775. LIBS="-ldl $LIBS"
  23776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23777. /* end confdefs.h. */
  23778. /* Override any GCC internal prototype to avoid an error.
  23779. Use char because int might match the return type of a GCC
  23780. builtin and then its argument prototype would still apply. */
  23781. char dlopen ();
  23782. int
  23783. main (void)
  23784. {
  23785. return dlopen ();
  23786. ;
  23787. return 0;
  23788. }
  23789. _ACEOF
  23790. if ac_fn_c_try_link "$LINENO"
  23791. then :
  23792. ac_cv_lib_dl_dlopen=yes
  23793. else $as_nop
  23794. ac_cv_lib_dl_dlopen=no
  23795. fi
  23796. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23797. conftest$ac_exeext conftest.$ac_ext
  23798. LIBS=$ac_check_lib_save_LIBS
  23799. fi
  23800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  23801. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  23802. if test "x$ac_cv_lib_dl_dlopen" = xyes
  23803. then :
  23804. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  23805. fi
  23806. fi
  23807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  23808. printf %s "checking for dlopen... " >&6; }
  23809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  23810. printf "%s\n" "$have_dlopen" >&6; }
  23811. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  23812. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  23813. if test x$enable_loadso = xyes; then
  23814. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  23815. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  23816. have_loadso=yes
  23817. fi
  23818. fi
  23819. }
  23820. CheckO_CLOEXEC()
  23821. {
  23822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  23823. printf %s "checking for O_CLOEXEC... " >&6; }
  23824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23825. /* end confdefs.h. */
  23826. #include <fcntl.h>
  23827. int flag = O_CLOEXEC;
  23828. int
  23829. main (void)
  23830. {
  23831. ;
  23832. return 0;
  23833. }
  23834. _ACEOF
  23835. if ac_fn_c_try_compile "$LINENO"
  23836. then :
  23837. have_o_cloexec=yes
  23838. else $as_nop
  23839. have_o_cloexec=no
  23840. fi
  23841. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  23843. printf "%s\n" "$have_o_cloexec" >&6; }
  23844. if test $have_o_cloexec = yes; then
  23845. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  23846. fi
  23847. }
  23848. CheckUSBHID()
  23849. {
  23850. case "$host" in
  23851. *-*-*bsd*|*-*-dragonfly*)
  23852. if test x$enable_joystick = xyes; then
  23853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  23854. printf %s "checking for hid_init in -lusbhid... " >&6; }
  23855. if test ${ac_cv_lib_usbhid_hid_init+y}
  23856. then :
  23857. printf %s "(cached) " >&6
  23858. else $as_nop
  23859. ac_check_lib_save_LIBS=$LIBS
  23860. LIBS="-lusbhid $LIBS"
  23861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23862. /* end confdefs.h. */
  23863. /* Override any GCC internal prototype to avoid an error.
  23864. Use char because int might match the return type of a GCC
  23865. builtin and then its argument prototype would still apply. */
  23866. char hid_init ();
  23867. int
  23868. main (void)
  23869. {
  23870. return hid_init ();
  23871. ;
  23872. return 0;
  23873. }
  23874. _ACEOF
  23875. if ac_fn_c_try_link "$LINENO"
  23876. then :
  23877. ac_cv_lib_usbhid_hid_init=yes
  23878. else $as_nop
  23879. ac_cv_lib_usbhid_hid_init=no
  23880. fi
  23881. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23882. conftest$ac_exeext conftest.$ac_ext
  23883. LIBS=$ac_check_lib_save_LIBS
  23884. fi
  23885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  23886. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  23887. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  23888. then :
  23889. have_libusbhid=yes
  23890. fi
  23891. if test x$have_libusbhid = xyes; then
  23892. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  23893. if test "x$ac_cv_header_usbhid_h" = xyes
  23894. then :
  23895. USB_CFLAGS="-DHAVE_USBHID_H"
  23896. fi
  23897. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  23898. if test "x$ac_cv_header_libusbhid_h" = xyes
  23899. then :
  23900. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  23901. fi
  23902. USB_LIBS="$USB_LIBS -lusbhid"
  23903. else
  23904. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  23905. if test "x$ac_cv_header_usb_h" = xyes
  23906. then :
  23907. USB_CFLAGS="-DHAVE_USB_H"
  23908. fi
  23909. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23910. if test "x$ac_cv_header_libusb_h" = xyes
  23911. then :
  23912. USB_CFLAGS="-DHAVE_LIBUSB_H"
  23913. fi
  23914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  23915. printf %s "checking for hid_init in -lusb... " >&6; }
  23916. if test ${ac_cv_lib_usb_hid_init+y}
  23917. then :
  23918. printf %s "(cached) " >&6
  23919. else $as_nop
  23920. ac_check_lib_save_LIBS=$LIBS
  23921. LIBS="-lusb $LIBS"
  23922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23923. /* end confdefs.h. */
  23924. /* Override any GCC internal prototype to avoid an error.
  23925. Use char because int might match the return type of a GCC
  23926. builtin and then its argument prototype would still apply. */
  23927. char hid_init ();
  23928. int
  23929. main (void)
  23930. {
  23931. return hid_init ();
  23932. ;
  23933. return 0;
  23934. }
  23935. _ACEOF
  23936. if ac_fn_c_try_link "$LINENO"
  23937. then :
  23938. ac_cv_lib_usb_hid_init=yes
  23939. else $as_nop
  23940. ac_cv_lib_usb_hid_init=no
  23941. fi
  23942. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23943. conftest$ac_exeext conftest.$ac_ext
  23944. LIBS=$ac_check_lib_save_LIBS
  23945. fi
  23946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  23947. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  23948. if test "x$ac_cv_lib_usb_hid_init" = xyes
  23949. then :
  23950. USB_LIBS="$USB_LIBS -lusb"
  23951. fi
  23952. fi
  23953. save_CFLAGS="$CFLAGS"
  23954. CFLAGS="$CFLAGS $USB_CFLAGS"
  23955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  23956. printf %s "checking for usbhid... " >&6; }
  23957. have_usbhid=no
  23958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23959. /* end confdefs.h. */
  23960. #include <sys/types.h>
  23961. #if defined(HAVE_USB_H)
  23962. #include <usb.h>
  23963. #endif
  23964. #ifdef __DragonFly__
  23965. # include <bus/u4b/usb.h>
  23966. # include <bus/u4b/usbhid.h>
  23967. #else
  23968. # include <dev/usb/usb.h>
  23969. # include <dev/usb/usbhid.h>
  23970. #endif
  23971. #if defined(HAVE_USBHID_H)
  23972. #include <usbhid.h>
  23973. #elif defined(HAVE_LIBUSB_H)
  23974. #include <libusb.h>
  23975. #elif defined(HAVE_LIBUSBHID_H)
  23976. #include <libusbhid.h>
  23977. #endif
  23978. int
  23979. main (void)
  23980. {
  23981. struct report_desc *repdesc;
  23982. struct usb_ctl_report *repbuf;
  23983. hid_kind_t hidkind;
  23984. ;
  23985. return 0;
  23986. }
  23987. _ACEOF
  23988. if ac_fn_c_try_compile "$LINENO"
  23989. then :
  23990. have_usbhid=yes
  23991. fi
  23992. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  23994. printf "%s\n" "$have_usbhid" >&6; }
  23995. if test x$have_usbhid = xyes; then
  23996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  23997. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  23998. have_usbhid_ucr_data=no
  23999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24000. /* end confdefs.h. */
  24001. #include <sys/types.h>
  24002. #if defined(HAVE_USB_H)
  24003. #include <usb.h>
  24004. #endif
  24005. #ifdef __DragonFly__
  24006. # include <bus/u4b/usb.h>
  24007. # include <bus/u4b/usbhid.h>
  24008. #else
  24009. # include <dev/usb/usb.h>
  24010. # include <dev/usb/usbhid.h>
  24011. #endif
  24012. #if defined(HAVE_USBHID_H)
  24013. #include <usbhid.h>
  24014. #elif defined(HAVE_LIBUSB_H)
  24015. #include <libusb.h>
  24016. #elif defined(HAVE_LIBUSBHID_H)
  24017. #include <libusbhid.h>
  24018. #endif
  24019. int
  24020. main (void)
  24021. {
  24022. struct usb_ctl_report buf;
  24023. if (buf.ucr_data) { }
  24024. ;
  24025. return 0;
  24026. }
  24027. _ACEOF
  24028. if ac_fn_c_try_compile "$LINENO"
  24029. then :
  24030. have_usbhid_ucr_data=yes
  24031. fi
  24032. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24033. if test x$have_usbhid_ucr_data = xyes; then
  24034. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  24035. fi
  24036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  24037. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  24038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  24039. printf %s "checking for new usbhid API... " >&6; }
  24040. have_usbhid_new=no
  24041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24042. /* end confdefs.h. */
  24043. #include <sys/types.h>
  24044. #if defined(HAVE_USB_H)
  24045. #include <usb.h>
  24046. #endif
  24047. #ifdef __DragonFly__
  24048. #include <bus/u4b/usb.h>
  24049. #include <bus/u4b/usbhid.h>
  24050. #else
  24051. #include <dev/usb/usb.h>
  24052. #include <dev/usb/usbhid.h>
  24053. #endif
  24054. #if defined(HAVE_USBHID_H)
  24055. #include <usbhid.h>
  24056. #elif defined(HAVE_LIBUSB_H)
  24057. #include <libusb.h>
  24058. #elif defined(HAVE_LIBUSBHID_H)
  24059. #include <libusbhid.h>
  24060. #endif
  24061. int
  24062. main (void)
  24063. {
  24064. report_desc_t d;
  24065. hid_start_parse(d, 1, 1);
  24066. ;
  24067. return 0;
  24068. }
  24069. _ACEOF
  24070. if ac_fn_c_try_compile "$LINENO"
  24071. then :
  24072. have_usbhid_new=yes
  24073. fi
  24074. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24075. if test x$have_usbhid_new = xyes; then
  24076. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24077. fi
  24078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24079. printf "%s\n" "$have_usbhid_new" >&6; }
  24080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24081. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24082. have_machine_joystick=no
  24083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24084. /* end confdefs.h. */
  24085. #include <machine/joystick.h>
  24086. int
  24087. main (void)
  24088. {
  24089. struct joystick t;
  24090. ;
  24091. return 0;
  24092. }
  24093. _ACEOF
  24094. if ac_fn_c_try_compile "$LINENO"
  24095. then :
  24096. have_machine_joystick=yes
  24097. fi
  24098. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24099. if test x$have_machine_joystick = xyes; then
  24100. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24101. fi
  24102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24103. printf "%s\n" "$have_machine_joystick" >&6; }
  24104. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24105. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24106. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24107. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24108. have_joystick=yes
  24109. fi
  24110. CFLAGS="$save_CFLAGS"
  24111. fi
  24112. ;;
  24113. esac
  24114. }
  24115. CheckHIDAPI()
  24116. {
  24117. # Check whether --enable-hidapi-joystick was given.
  24118. if test ${enable_hidapi_joystick+y}
  24119. then :
  24120. enableval=$enable_hidapi_joystick;
  24121. else $as_nop
  24122. enable_hidapi_joystick=yes
  24123. fi
  24124. # Check whether --enable-hidapi-libusb was given.
  24125. if test ${enable_hidapi_libusb+y}
  24126. then :
  24127. enableval=$enable_hidapi_libusb;
  24128. else $as_nop
  24129. enable_hidapi_libusb=maybe
  24130. fi
  24131. if test x$enable_hidapi = xyes; then
  24132. case "$host" in
  24133. # libusb does not support iOS
  24134. *-ios-* )
  24135. enable_hidapi_libusb=no
  24136. ;;
  24137. # On the other hand, *BSD specifically uses libusb only
  24138. *-*-*bsd* )
  24139. enable_hidapi_libusb=yes
  24140. require_hidapi_libusb=yes
  24141. ;;
  24142. *-*-os2* )
  24143. enable_hidapi_libusb=yes
  24144. ;;
  24145. esac
  24146. hidapi_support=yes
  24147. if test x$enable_hidapi_libusb = xyes; then
  24148. pkg_failed=no
  24149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24150. printf %s "checking for libusb-1.0... " >&6; }
  24151. if test -n "$LIBUSB_CFLAGS"; then
  24152. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24153. elif test -n "$PKG_CONFIG"; then
  24154. if test -n "$PKG_CONFIG" && \
  24155. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24156. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24157. ac_status=$?
  24158. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24159. test $ac_status = 0; }; then
  24160. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24161. test "x$?" != "x0" && pkg_failed=yes
  24162. else
  24163. pkg_failed=yes
  24164. fi
  24165. else
  24166. pkg_failed=untried
  24167. fi
  24168. if test -n "$LIBUSB_LIBS"; then
  24169. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24170. elif test -n "$PKG_CONFIG"; then
  24171. if test -n "$PKG_CONFIG" && \
  24172. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24173. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24174. ac_status=$?
  24175. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24176. test $ac_status = 0; }; then
  24177. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24178. test "x$?" != "x0" && pkg_failed=yes
  24179. else
  24180. pkg_failed=yes
  24181. fi
  24182. else
  24183. pkg_failed=untried
  24184. fi
  24185. if test $pkg_failed = yes; then
  24186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24187. printf "%s\n" "no" >&6; }
  24188. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24189. _pkg_short_errors_supported=yes
  24190. else
  24191. _pkg_short_errors_supported=no
  24192. fi
  24193. if test $_pkg_short_errors_supported = yes; then
  24194. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24195. else
  24196. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24197. fi
  24198. # Put the nasty error message in config.log where it belongs
  24199. echo "$LIBUSB_PKG_ERRORS" >&5
  24200. have_libusb=no
  24201. elif test $pkg_failed = untried; then
  24202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24203. printf "%s\n" "no" >&6; }
  24204. have_libusb=no
  24205. else
  24206. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24207. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24209. printf "%s\n" "yes" >&6; }
  24210. have_libusb=yes
  24211. fi
  24212. save_CPPFLAGS="$CPPFLAGS"
  24213. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24214. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24215. if test "x$ac_cv_header_libusb_h" = xyes
  24216. then :
  24217. have_libusb_h=yes
  24218. else $as_nop
  24219. have_libusb_h=no
  24220. fi
  24221. CPPFLAGS="$save_CPPFLAGS"
  24222. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24223. hidapi_support=no
  24224. fi
  24225. fi
  24226. if test x$hidapi_support = xyes; then
  24227. if test x$have_libusb_h = xyes; then
  24228. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24229. if test x$require_hidapi_libusb = xyes; then
  24230. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24231. else
  24232. if test x$have_loadso != xyes; then
  24233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24234. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24235. fi
  24236. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24237. libusb_lib=""
  24238. case "$host" in
  24239. *-*-darwin* )
  24240. libusb_lib="libusb-1.0.0.dylib"
  24241. ;;
  24242. *-*-cygwin* | *-*-mingw* )
  24243. libusb_lib="libusb-1.0.dll"
  24244. ;;
  24245. *-*-os2* )
  24246. libusb_lib="usb100.dll"
  24247. ;;
  24248. esac
  24249. if test x$libusb_lib = x; then
  24250. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24251. fi
  24252. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24253. fi
  24254. fi
  24255. fi
  24256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24257. printf %s "checking for hidapi joystick support... " >&6; }
  24258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24259. printf "%s\n" "$hidapi_support" >&6; }
  24260. fi
  24261. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24262. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24263. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24264. fi
  24265. }
  24266. CheckClockGettime()
  24267. {
  24268. # Check whether --enable-clock_gettime was given.
  24269. if test ${enable_clock_gettime+y}
  24270. then :
  24271. enableval=$enable_clock_gettime;
  24272. else $as_nop
  24273. enable_clock_gettime=yes
  24274. fi
  24275. if test x$enable_clock_gettime = xyes; then
  24276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24277. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24278. if test ${ac_cv_lib_rt_clock_gettime+y}
  24279. then :
  24280. printf %s "(cached) " >&6
  24281. else $as_nop
  24282. ac_check_lib_save_LIBS=$LIBS
  24283. LIBS="-lrt $LIBS"
  24284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24285. /* end confdefs.h. */
  24286. /* Override any GCC internal prototype to avoid an error.
  24287. Use char because int might match the return type of a GCC
  24288. builtin and then its argument prototype would still apply. */
  24289. char clock_gettime ();
  24290. int
  24291. main (void)
  24292. {
  24293. return clock_gettime ();
  24294. ;
  24295. return 0;
  24296. }
  24297. _ACEOF
  24298. if ac_fn_c_try_link "$LINENO"
  24299. then :
  24300. ac_cv_lib_rt_clock_gettime=yes
  24301. else $as_nop
  24302. ac_cv_lib_rt_clock_gettime=no
  24303. fi
  24304. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24305. conftest$ac_exeext conftest.$ac_ext
  24306. LIBS=$ac_check_lib_save_LIBS
  24307. fi
  24308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24309. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24310. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24311. then :
  24312. have_clock_gettime=yes
  24313. fi
  24314. if test x$have_clock_gettime = xyes; then
  24315. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24316. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24317. else
  24318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24319. printf %s "checking for clock_gettime in -lc... " >&6; }
  24320. if test ${ac_cv_lib_c_clock_gettime+y}
  24321. then :
  24322. printf %s "(cached) " >&6
  24323. else $as_nop
  24324. ac_check_lib_save_LIBS=$LIBS
  24325. LIBS="-lc $LIBS"
  24326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24327. /* end confdefs.h. */
  24328. /* Override any GCC internal prototype to avoid an error.
  24329. Use char because int might match the return type of a GCC
  24330. builtin and then its argument prototype would still apply. */
  24331. char clock_gettime ();
  24332. int
  24333. main (void)
  24334. {
  24335. return clock_gettime ();
  24336. ;
  24337. return 0;
  24338. }
  24339. _ACEOF
  24340. if ac_fn_c_try_link "$LINENO"
  24341. then :
  24342. ac_cv_lib_c_clock_gettime=yes
  24343. else $as_nop
  24344. ac_cv_lib_c_clock_gettime=no
  24345. fi
  24346. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24347. conftest$ac_exeext conftest.$ac_ext
  24348. LIBS=$ac_check_lib_save_LIBS
  24349. fi
  24350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24351. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24352. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24353. then :
  24354. have_clock_gettime=yes
  24355. fi
  24356. if test x$have_clock_gettime = xyes; then
  24357. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24358. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  24359. fi
  24360. fi
  24361. fi
  24362. }
  24363. CheckLinuxVersion()
  24364. {
  24365. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24366. if test "x$ac_cv_header_linux_version_h" = xyes
  24367. then :
  24368. have_linux_version_h=yes
  24369. fi
  24370. if test x$have_linux_version_h = xyes; then
  24371. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24372. fi
  24373. }
  24374. CheckRPATH()
  24375. {
  24376. # Check whether --enable-rpath was given.
  24377. if test ${enable_rpath+y}
  24378. then :
  24379. enableval=$enable_rpath;
  24380. else $as_nop
  24381. enable_rpath=yes
  24382. fi
  24383. }
  24384. CheckEventSignals()
  24385. {
  24386. # Check whether --enable-backgrounding-signal was given.
  24387. if test ${enable_backgrounding_signal+y}
  24388. then :
  24389. enableval=$enable_backgrounding_signal;
  24390. else $as_nop
  24391. enable_backgrounding_signal=no
  24392. fi
  24393. if test x$enable_backgrounding_signal != xno; then
  24394. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24395. fi
  24396. # Check whether --enable-foregrounding-signal was given.
  24397. if test ${enable_foregrounding_signal+y}
  24398. then :
  24399. enableval=$enable_foregrounding_signal;
  24400. else $as_nop
  24401. enable_foregrounding_signal=no
  24402. fi
  24403. if test x$enable_foregrounding_signal != xno; then
  24404. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24405. fi
  24406. }
  24407. CheckVirtualJoystick()
  24408. {
  24409. # Check whether --enable-joystick-virtual was given.
  24410. if test ${enable_joystick_virtual+y}
  24411. then :
  24412. enableval=$enable_joystick_virtual;
  24413. else $as_nop
  24414. enable_joystick_virtual=yes
  24415. fi
  24416. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24417. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24418. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24419. have_joystick_virtual=yes
  24420. fi
  24421. }
  24422. CheckWarnAll
  24423. CheckNoStrictAliasing
  24424. CheckEventSignals
  24425. have_locale=no
  24426. case "$host" in
  24427. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24428. case "$host" in
  24429. *-*-android*)
  24430. # Android
  24431. ARCH=android
  24432. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24433. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24434. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24435. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24436. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24437. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24438. if test x$enable_video = xyes; then
  24439. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24440. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24441. SUMMARY_video="${SUMMARY_video} android"
  24442. have_video=yes
  24443. fi
  24444. ;;
  24445. *-*-linux*) ARCH=linux ;;
  24446. *-*-uclinux*) ARCH=linux ;;
  24447. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24448. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24449. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24450. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24451. *-*-bsdi*) ARCH=bsdi ;;
  24452. *-*-freebsd*) ARCH=freebsd ;;
  24453. *-*-dragonfly*) ARCH=freebsd ;;
  24454. *-*-netbsd*) ARCH=netbsd ;;
  24455. *-*-openbsd*) ARCH=openbsd ;;
  24456. *-*-sysv5*) ARCH=sysv5 ;;
  24457. *-*-solaris*) ARCH=solaris ;;
  24458. *-*-hpux*) ARCH=hpux ;;
  24459. *-*-aix*) ARCH=aix ;;
  24460. *-*-minix*) ARCH=minix ;;
  24461. *-*-nto*) ARCH=nto
  24462. CheckQNXVideo
  24463. ;;
  24464. esac
  24465. CheckVisibilityHidden
  24466. CheckDeclarationAfterStatement
  24467. CheckDummyVideo
  24468. CheckOffscreenVideo
  24469. CheckDiskAudio
  24470. CheckDummyAudio
  24471. CheckDLOPEN
  24472. CheckARM
  24473. CheckNEON
  24474. CheckO_CLOEXEC
  24475. CheckOSS
  24476. CheckALSA
  24477. CheckPipewire
  24478. CheckPulseAudio
  24479. CheckJACK
  24480. CheckARTSC
  24481. CheckESD
  24482. CheckNAS
  24483. CheckSNDIO
  24484. CheckFusionSound
  24485. CheckLibSampleRate
  24486. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24487. CheckRPI
  24488. CheckX11
  24489. CheckDirectFB
  24490. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24491. CheckEGL
  24492. CheckKMSDRM
  24493. CheckGLX
  24494. CheckOpenGL
  24495. CheckOpenGLES
  24496. CheckVulkan
  24497. CheckWayland
  24498. CheckInputEvents
  24499. CheckLibUDev
  24500. CheckDBus
  24501. CheckIME
  24502. CheckInotify
  24503. CheckIBus
  24504. CheckFcitx
  24505. case $ARCH in
  24506. linux)
  24507. CheckInputKD
  24508. ;;
  24509. freebsd)
  24510. CheckInputKBIO
  24511. ;;
  24512. openbsd|netbsd)
  24513. CheckInputWSCONS
  24514. ;;
  24515. esac
  24516. CheckUSBHID
  24517. CheckHIDAPI
  24518. CheckPTHREAD
  24519. CheckClockGettime
  24520. CheckLinuxVersion
  24521. CheckRPATH
  24522. CheckVivanteVideo
  24523. # Set up files for the misc library
  24524. if test x$enable_misc = xyes; then
  24525. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24526. have_misc=yes
  24527. fi
  24528. # Set up files for the locale library
  24529. if test x$enable_locale = xyes; then
  24530. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24531. have_locale=yes
  24532. fi
  24533. # Set up files for the audio library
  24534. if test x$enable_audio = xyes; then
  24535. case $ARCH in
  24536. sysv5|solaris|hpux)
  24537. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24538. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24539. SUMMARY_audio="${SUMMARY_audio} sun"
  24540. have_audio=yes
  24541. ;;
  24542. netbsd) # Don't use this on OpenBSD, it's busted.
  24543. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24544. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24545. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24546. have_audio=yes
  24547. ;;
  24548. aix)
  24549. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24550. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24551. SUMMARY_audio="${SUMMARY_audio} paudio"
  24552. have_audio=yes
  24553. ;;
  24554. android)
  24555. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24556. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24557. SUMMARY_audio="${SUMMARY_audio} android"
  24558. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24559. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24560. SUMMARY_audio="${SUMMARY_audio} openslES"
  24561. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24562. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24563. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24564. have_audio=yes
  24565. ;;
  24566. nto)
  24567. CheckQNXAudio
  24568. ;;
  24569. esac
  24570. fi
  24571. # Set up files for the joystick library
  24572. if test x$enable_joystick = xyes; then
  24573. case $ARCH in
  24574. linux)
  24575. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24576. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24577. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24578. have_joystick=yes
  24579. ;;
  24580. freebsd)
  24581. if test x$use_input_events = xyes; then
  24582. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24583. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24584. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24585. have_joystick=yes
  24586. fi
  24587. ;;
  24588. android)
  24589. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24590. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24591. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24592. have_joystick=yes
  24593. ;;
  24594. esac
  24595. fi
  24596. # Set up files for the haptic library
  24597. if test x$enable_haptic = xyes; then
  24598. case $ARCH in
  24599. linux|freebsd)
  24600. if test x$use_input_events = xyes; then
  24601. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24602. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24603. have_haptic=yes
  24604. fi
  24605. ;;
  24606. android)
  24607. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24608. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24609. have_haptic=yes
  24610. ;;
  24611. esac
  24612. fi
  24613. # Set up files for the sensor library
  24614. if test x$enable_sensor = xyes; then
  24615. case $ARCH in
  24616. android)
  24617. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24618. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24619. have_sensor=yes
  24620. ;;
  24621. esac
  24622. fi
  24623. # Set up files for the power library
  24624. if test x$enable_power = xyes; then
  24625. case $ARCH in
  24626. linux)
  24627. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24628. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24629. have_power=yes
  24630. ;;
  24631. android)
  24632. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24633. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24634. have_power=yes
  24635. ;;
  24636. esac
  24637. fi
  24638. # Set up files for the filesystem library
  24639. if test x$enable_filesystem = xyes; then
  24640. case $ARCH in
  24641. android)
  24642. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24643. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24644. have_filesystem=yes
  24645. ;;
  24646. *)
  24647. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24648. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24649. have_filesystem=yes
  24650. ;;
  24651. esac
  24652. fi
  24653. # Set up files for the timer library
  24654. if test x$enable_timers = xyes; then
  24655. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24656. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24657. have_timers=yes
  24658. fi
  24659. # Set up files for udev hotplugging support
  24660. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24661. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24662. fi
  24663. # Set up files for evdev input
  24664. if test x$use_input_events = xyes; then
  24665. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24666. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24667. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24668. fi
  24669. # Set up files for wscons input
  24670. if test x$use_input_wscons = xyes; then
  24671. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24672. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24673. fi
  24674. # Set up other core UNIX files
  24675. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24676. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24677. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24678. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24679. ;;
  24680. *-*-cygwin* | *-*-mingw*)
  24681. ARCH=win32
  24682. if test "$build" != "$host"; then # cross-compiling
  24683. # Default cross-compile location
  24684. ac_default_prefix=/usr/local/cross-tools/$host
  24685. else
  24686. # Look for the location of the tools and install there
  24687. if test "$BUILD_PREFIX" != ""; then
  24688. ac_default_prefix=$BUILD_PREFIX
  24689. fi
  24690. fi
  24691. if test x$enable_loadso = xyes; then
  24692. have_loadso=yes
  24693. fi
  24694. CheckDeclarationAfterStatement
  24695. CheckDummyVideo
  24696. CheckOffscreenVideo
  24697. CheckDiskAudio
  24698. CheckDummyAudio
  24699. CheckWINDOWS
  24700. CheckWINDOWSGL
  24701. CheckWINDOWSGLES
  24702. CheckVulkan
  24703. CheckDIRECTX
  24704. CheckHIDAPI
  24705. # Set up the core platform files
  24706. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24707. # Set up files for the misc library
  24708. if test x$enable_misc = xyes; then
  24709. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24710. have_misc=yes
  24711. fi
  24712. # Use the Windows locale APIs.
  24713. if test x$enable_locale = xyes; then
  24714. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24715. have_locale=yes
  24716. fi
  24717. # Set up files for the video library
  24718. if test x$enable_video = xyes; then
  24719. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24720. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24721. have_video=yes
  24722. # Check whether --enable-render-d3d was given.
  24723. if test ${enable_render_d3d+y}
  24724. then :
  24725. enableval=$enable_render_d3d;
  24726. else $as_nop
  24727. enable_render_d3d=yes
  24728. fi
  24729. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24730. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24731. SUMMARY_video="${SUMMARY_video} d3d9"
  24732. fi
  24733. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24734. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24735. SUMMARY_video="${SUMMARY_video} d3d11"
  24736. fi
  24737. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24738. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24739. SUMMARY_video="${SUMMARY_video} d3d12"
  24740. fi
  24741. fi
  24742. # Set up files for the audio library
  24743. if test x$enable_audio = xyes; then
  24744. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  24745. SUMMARY_audio="${SUMMARY_audio} winmm"
  24746. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  24747. if test x$have_dsound = xyes; then
  24748. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  24749. SUMMARY_audio="${SUMMARY_audio} directsound"
  24750. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  24751. fi
  24752. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  24753. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  24754. SUMMARY_audio="${SUMMARY_audio} wasapi"
  24755. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  24756. fi
  24757. have_audio=yes
  24758. fi
  24759. # Set up files for the joystick library
  24760. if test x$enable_joystick = xyes; then
  24761. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  24762. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  24763. if test x$have_xinput = xyes; then
  24764. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  24765. fi
  24766. if test x$have_wgi = xyes; then
  24767. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  24768. fi
  24769. if test x$have_dinput = xyes; then
  24770. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  24771. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  24772. fi
  24773. fi
  24774. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  24775. have_joystick=yes
  24776. fi
  24777. if test x$enable_haptic = xyes; then
  24778. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  24779. if test x$have_xinput = xyes; then
  24780. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  24781. fi
  24782. if test x$have_dinput = xyes; then
  24783. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  24784. fi
  24785. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  24786. have_haptic=yes
  24787. fi
  24788. fi
  24789. # Set up files for the sensor library
  24790. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  24791. if test "x$ac_cv_header_sensorsapi_h" = xyes
  24792. then :
  24793. have_winsensors=yes
  24794. else $as_nop
  24795. have_winsensors=no
  24796. fi
  24797. if test x$have_winsensors = xyes; then
  24798. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  24799. fi
  24800. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  24801. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  24802. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  24803. have_sensor=yes
  24804. fi
  24805. # Set up files for the power library
  24806. if test x$enable_power = xyes; then
  24807. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  24808. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  24809. have_power=yes
  24810. fi
  24811. # Set up files for the filesystem library
  24812. if test x$enable_filesystem = xyes; then
  24813. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  24814. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  24815. have_filesystem=yes
  24816. fi
  24817. # Set up files for the thread library
  24818. if test x$enable_threads = xyes; then
  24819. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  24820. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  24821. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  24822. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  24823. have_threads=yes
  24824. fi
  24825. # Set up files for the timer library
  24826. if test x$enable_timers = xyes; then
  24827. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  24828. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  24829. have_timers=yes
  24830. fi
  24831. # Set up files for the shared object loading library
  24832. if test x$enable_loadso = xyes; then
  24833. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  24834. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  24835. fi
  24836. # Set up the system libraries we need
  24837. if test -f /lib/w32api/libuuid.a; then
  24838. LIBUUID=/lib/w32api/libuuid.a
  24839. else
  24840. LIBUUID=-luuid
  24841. fi
  24842. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  24843. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  24844. # The Windows platform requires special setup
  24845. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  24846. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  24847. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  24848. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  24849. # Check to see if this is a mingw or cygwin build
  24850. have_mingw32=
  24851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  24852. printf %s "checking for main in -lmingw32... " >&6; }
  24853. if test ${ac_cv_lib_mingw32_main+y}
  24854. then :
  24855. printf %s "(cached) " >&6
  24856. else $as_nop
  24857. ac_check_lib_save_LIBS=$LIBS
  24858. LIBS="-lmingw32 $LIBS"
  24859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24860. /* end confdefs.h. */
  24861. int
  24862. main (void)
  24863. {
  24864. return main ();
  24865. ;
  24866. return 0;
  24867. }
  24868. _ACEOF
  24869. if ac_fn_c_try_link "$LINENO"
  24870. then :
  24871. ac_cv_lib_mingw32_main=yes
  24872. else $as_nop
  24873. ac_cv_lib_mingw32_main=no
  24874. fi
  24875. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24876. conftest$ac_exeext conftest.$ac_ext
  24877. LIBS=$ac_check_lib_save_LIBS
  24878. fi
  24879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  24880. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  24881. if test "x$ac_cv_lib_mingw32_main" = xyes
  24882. then :
  24883. have_mingw32=yes
  24884. fi
  24885. if test x$have_mingw32 = xyes; then
  24886. SDL_LIBS="-lmingw32 $SDL_LIBS"
  24887. else
  24888. SDL_LIBS="-lcygwin $SDL_LIBS"
  24889. fi
  24890. ;;
  24891. *-*-beos*)
  24892. as_fn_error $? "
  24893. *** BeOS support has been removed as of SDL 2.0.2.
  24894. " "$LINENO" 5
  24895. ;;
  24896. *-*-haiku*)
  24897. ARCH=haiku
  24898. ac_default_prefix=/boot/system
  24899. CheckDummyVideo
  24900. CheckOffscreenVideo
  24901. CheckDiskAudio
  24902. CheckDummyAudio
  24903. CheckDLOPEN
  24904. CheckO_CLOEXEC
  24905. CheckHaikuVideo
  24906. CheckHaikuGL
  24907. CheckPTHREAD
  24908. # Set up files for the audio library
  24909. if test x$enable_audio = xyes; then
  24910. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  24911. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  24912. SUMMARY_audio="${SUMMARY_audio} haiku"
  24913. have_audio=yes
  24914. fi
  24915. # Set up files for the joystick library
  24916. if test x$enable_joystick = xyes; then
  24917. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  24918. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  24919. have_joystick=yes
  24920. fi
  24921. # Set up files for the timer library
  24922. if test x$enable_timers = xyes; then
  24923. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  24924. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  24925. have_timers=yes
  24926. fi
  24927. # Set up files for the system power library
  24928. if test x$enable_power = xyes; then
  24929. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  24930. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  24931. have_power=yes
  24932. fi
  24933. # Set up files for the system filesystem library
  24934. if test x$enable_filesystem = xyes; then
  24935. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  24936. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  24937. have_filesystem=yes
  24938. fi
  24939. # Set up files for the misc library
  24940. if test x$enable_misc = xyes; then
  24941. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  24942. have_misc=yes
  24943. fi
  24944. # Set up files for the locale library
  24945. if test x$enable_locale = xyes; then
  24946. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  24947. have_locale=yes
  24948. fi
  24949. # The Haiku platform requires special setup.
  24950. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  24951. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  24952. ;;
  24953. *-ios-*)
  24954. ARCH=ios
  24955. CheckVisibilityHidden
  24956. CheckDeclarationAfterStatement
  24957. CheckDummyVideo
  24958. CheckOffscreenVideo
  24959. CheckDiskAudio
  24960. CheckDummyAudio
  24961. CheckDLOPEN
  24962. CheckO_CLOEXEC
  24963. CheckMETAL
  24964. CheckVulkan
  24965. CheckPTHREAD
  24966. # Set up files for the misc library
  24967. if test x$enable_misc = xyes; then
  24968. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  24969. have_misc=yes
  24970. fi
  24971. # Set up files for the locale library
  24972. if test x$enable_locale = xyes; then
  24973. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24974. have_locale=yes
  24975. fi
  24976. # Set up files for the audio library
  24977. if test x$enable_audio = xyes; then
  24978. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24979. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24980. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24981. have_audio=yes
  24982. fi
  24983. # Set up files for the joystick library
  24984. if test x$enable_joystick = xyes; then
  24985. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  24986. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24987. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24988. have_joystick=yes
  24989. else
  24990. # Need this code for accelerometer as joystick support
  24991. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24992. fi
  24993. # Set up files for the haptic library
  24994. #if test x$enable_haptic = xyes; then
  24995. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24996. # have_haptic=yes
  24997. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24998. #fi
  24999. # Set up files for the sensor library
  25000. if test x$enable_sensor = xyes; then
  25001. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  25002. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  25003. have_sensor=yes
  25004. fi
  25005. # Set up files for the power library
  25006. if test x$enable_power = xyes; then
  25007. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  25008. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  25009. have_power=yes
  25010. fi
  25011. # Set up files for the filesystem library
  25012. if test x$enable_filesystem = xyes; then
  25013. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25014. have_filesystem=yes
  25015. fi
  25016. # Set up additional files for the file library
  25017. if test x$enable_file = xyes; then
  25018. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25019. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25020. fi
  25021. # Set up files for the timer library
  25022. if test x$enable_timers = xyes; then
  25023. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25024. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25025. have_timers=yes
  25026. fi
  25027. # Set up other core UNIX files
  25028. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25029. # The iOS platform requires special setup.
  25030. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  25031. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  25032. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  25033. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  25034. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  25035. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  25036. SUMMARY_video="${SUMMARY_video} uikit"
  25037. have_video=yes
  25038. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  25039. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  25040. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  25041. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  25042. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  25043. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  25044. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  25045. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25046. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25047. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25048. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25049. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25050. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25051. fi
  25052. ;;
  25053. *-*-darwin* )
  25054. # This could be either full "Mac OS X", or plain "Darwin" which is
  25055. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25056. # Next line is broken, and a few files below require Mac OS X (full)
  25057. ARCH=macosx
  25058. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25059. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25060. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25061. CheckObjectiveCARC
  25062. CheckVisibilityHidden
  25063. CheckDeclarationAfterStatement
  25064. CheckDummyVideo
  25065. CheckOffscreenVideo
  25066. CheckDiskAudio
  25067. CheckDummyAudio
  25068. CheckDLOPEN
  25069. CheckO_CLOEXEC
  25070. CheckCOCOA
  25071. CheckMETAL
  25072. CheckX11
  25073. CheckMacGL
  25074. CheckMacGLES
  25075. CheckGLX
  25076. CheckOpenGL
  25077. CheckVulkan
  25078. CheckPTHREAD
  25079. CheckHIDAPI
  25080. # Set up files for the misc library
  25081. if test x$enable_misc = xyes; then
  25082. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25083. have_misc=yes
  25084. fi
  25085. # Set up files for the locale library
  25086. if test x$enable_locale = xyes; then
  25087. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25088. have_locale=yes
  25089. fi
  25090. # Set up files for the audio library
  25091. if test x$enable_audio = xyes; then
  25092. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25093. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25094. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25095. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25096. have_audio=yes
  25097. fi
  25098. # Set up files for the joystick library
  25099. if test x$enable_joystick = xyes; then
  25100. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25101. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25102. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25103. CheckJoystickMFI
  25104. have_joystick=yes
  25105. fi
  25106. # Set up files for the haptic library
  25107. if test x$enable_haptic = xyes; then
  25108. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25109. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25110. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25111. have_haptic=yes
  25112. fi
  25113. # Set up files for the power library
  25114. if test x$enable_power = xyes; then
  25115. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25116. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25117. have_power=yes
  25118. fi
  25119. # Set up files for the filesystem library
  25120. if test x$enable_filesystem = xyes; then
  25121. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25122. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25123. have_filesystem=yes
  25124. fi
  25125. # Set up files for the timer library
  25126. if test x$enable_timers = xyes; then
  25127. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25128. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25129. have_timers=yes
  25130. fi
  25131. # Set up additional files for the file library
  25132. if test x$enable_file = xyes; then
  25133. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25134. fi
  25135. # Set up other core UNIX files
  25136. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25137. # The Mac OS X platform requires special setup.
  25138. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25139. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25140. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25141. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25142. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25143. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25144. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25145. fi
  25146. ;;
  25147. *-nacl|*-pnacl)
  25148. ARCH=nacl
  25149. CheckNativeClient
  25150. CheckDummyAudio
  25151. CheckDummyVideo
  25152. CheckOffscreenVideo
  25153. CheckInputEvents
  25154. CheckPTHREAD
  25155. CheckO_CLOEXEC
  25156. # Set up files for the timer library
  25157. if test x$enable_timers = xyes; then
  25158. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25159. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25160. have_timers=yes
  25161. fi
  25162. if test x$enable_filesystem = xyes; then
  25163. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25164. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25165. have_filesystem=yes
  25166. fi
  25167. ;;
  25168. *-*-emscripten* )
  25169. if test x$enable_video = xyes; then
  25170. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25171. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25172. have_video=yes
  25173. SUMMARY_video="${SUMMARY_video} emscripten"
  25174. fi
  25175. if test x$enable_audio = xyes; then
  25176. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25177. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25178. have_audio=yes
  25179. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25180. fi
  25181. CheckVisibilityHidden
  25182. CheckDeclarationAfterStatement
  25183. CheckDummyVideo
  25184. CheckOffscreenVideo
  25185. CheckDiskAudio
  25186. CheckDummyAudio
  25187. CheckPTHREAD
  25188. CheckDLOPEN
  25189. CheckClockGettime
  25190. CheckEmscriptenGLES
  25191. # Set up files for the misc library
  25192. if test x$enable_misc = xyes; then
  25193. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25194. have_misc=yes
  25195. fi
  25196. # Set up files for the power library
  25197. if test x$enable_power = xyes; then
  25198. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25199. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25200. have_power=yes
  25201. fi
  25202. # Set up files for the joystick library
  25203. if test x$enable_joystick = xyes; then
  25204. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25205. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25206. have_joystick=yes
  25207. fi
  25208. # Set up files for the filesystem library
  25209. if test x$enable_filesystem = xyes; then
  25210. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25211. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25212. have_filesystem=yes
  25213. fi
  25214. # Set up files for the timer library
  25215. if test x$enable_timers = xyes; then
  25216. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25217. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25218. have_timers=yes
  25219. fi
  25220. # Set up files for the locale library
  25221. if test x$enable_locale = xyes; then
  25222. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25223. have_locale=yes
  25224. fi
  25225. ;;
  25226. *-*-riscos*)
  25227. ARCH=riscos
  25228. CheckVisibilityHidden
  25229. CheckDeclarationAfterStatement
  25230. CheckDummyVideo
  25231. CheckOffscreenVideo
  25232. CheckDiskAudio
  25233. CheckDummyAudio
  25234. CheckDLOPEN
  25235. CheckO_CLOEXEC
  25236. CheckOSS
  25237. CheckPTHREAD
  25238. CheckClockGettime
  25239. # Set up files for the misc library
  25240. if test x$enable_misc = xyes; then
  25241. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25242. have_misc=yes
  25243. fi
  25244. # Set up files for the video library
  25245. if test x$enable_video = xyes; then
  25246. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25247. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25248. have_video=yes
  25249. SUMMARY_video="${SUMMARY_video} riscos"
  25250. fi
  25251. # Set up files for the filesystem library
  25252. if test x$enable_filesystem = xyes; then
  25253. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25254. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25255. have_filesystem=yes
  25256. fi
  25257. # Set up files for the timer library
  25258. if test x$enable_timers = xyes; then
  25259. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25260. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25261. have_timers=yes
  25262. fi
  25263. ;;
  25264. *-*-os2*)
  25265. ARCH=os2
  25266. if test "$build" != "$host"; then # cross-compiling
  25267. # Default cross-compile location
  25268. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25269. else
  25270. # Look for the location of the tools and install there
  25271. if test "$BUILD_PREFIX" != ""; then
  25272. ac_default_prefix=$BUILD_PREFIX
  25273. fi
  25274. fi
  25275. enable_static=no # disable static builds
  25276. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25277. CheckOS2
  25278. CheckDeclarationAfterStatement
  25279. CheckDummyVideo
  25280. CheckDiskAudio
  25281. CheckDummyAudio
  25282. CheckHIDAPI
  25283. # Set up the core platform files
  25284. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25285. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25286. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25287. fi
  25288. # Use the Unix locale APIs.
  25289. if test x$enable_locale = xyes; then
  25290. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25291. have_locale=yes
  25292. fi
  25293. # Set up files for the video library
  25294. if test x$enable_video = xyes; then
  25295. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25296. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25297. have_video=yes
  25298. SUMMARY_video="${SUMMARY_video} os/2"
  25299. fi
  25300. # Set up files for the audio library
  25301. if test x$enable_audio = xyes; then
  25302. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25303. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25304. have_audio=yes
  25305. SUMMARY_audio="${SUMMARY_audio} os/2"
  25306. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25307. fi
  25308. # Set up files for the thread library
  25309. if test x$enable_threads = xyes; then
  25310. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25311. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25312. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25313. have_threads=yes
  25314. fi
  25315. # Set up files for the timer library
  25316. if test x$enable_timers = xyes; then
  25317. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25318. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25319. have_timers=yes
  25320. fi
  25321. # Set up files for the shared object loading library
  25322. if test x$enable_loadso = xyes; then
  25323. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25324. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25325. have_loadso=yes
  25326. fi
  25327. # Set up files for the filesystem library
  25328. if test x$enable_filesystem = xyes; then
  25329. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25330. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25331. have_filesystem=yes
  25332. fi
  25333. # Set up files for the joystick library
  25334. if test x$enable_joystick = xyes; then
  25335. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25336. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25337. have_joystick=yes
  25338. fi
  25339. ;;
  25340. *)
  25341. as_fn_error $? "
  25342. *** Unsupported host: Please add to configure.ac
  25343. " "$LINENO" 5
  25344. ;;
  25345. esac
  25346. CheckVirtualJoystick
  25347. # Check whether to install sdl2-config
  25348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25349. printf %s "checking whether to install sdl2-config... " >&6; }
  25350. # Check whether --enable-sdl2-config was given.
  25351. if test ${enable_sdl2_config+y}
  25352. then :
  25353. enableval=$enable_sdl2_config; case "${enableval}" in
  25354. yes) enable_sdl2_config="TRUE" ;;
  25355. no) enable_sdl2_config="FALSE" ;;
  25356. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25357. esac
  25358. else $as_nop
  25359. enable_sdl2_config="TRUE"
  25360. fi
  25361. if test "$enable_sdl2_config" = "TRUE"; then
  25362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25363. printf "%s\n" "yes" >&6; }
  25364. else
  25365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25366. printf "%s\n" "no" >&6; }
  25367. fi
  25368. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25369. # Verify that we have all the platform specific files we need
  25370. if test x$have_audio != xyes; then
  25371. if test x$enable_audio = xyes; then
  25372. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25373. fi
  25374. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25375. fi
  25376. if test x$have_video != xyes; then
  25377. if test x$enable_video = xyes; then
  25378. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25379. fi
  25380. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25381. fi
  25382. if test x$have_misc != xyes; then
  25383. if test x$enable_misc = xyes; then
  25384. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25385. fi
  25386. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25387. fi
  25388. if test x$have_locale != xyes; then
  25389. if test x$enable_locale = xyes; then
  25390. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25391. fi
  25392. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25393. fi
  25394. if test x$have_joystick != xyes; then
  25395. if test x$enable_joystick = xyes; then
  25396. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25397. fi
  25398. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25399. fi
  25400. if test x$have_haptic != xyes; then
  25401. if test x$enable_haptic = xyes; then
  25402. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25403. fi
  25404. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25405. fi
  25406. if test x$have_sensor != xyes; then
  25407. if test x$enable_sensor = xyes; then
  25408. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25409. fi
  25410. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25411. fi
  25412. if test x$have_threads != xyes; then
  25413. if test x$enable_threads = xyes; then
  25414. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25415. fi
  25416. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25417. fi
  25418. if test x$have_timers != xyes; then
  25419. if test x$enable_timers = xyes; then
  25420. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25421. fi
  25422. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25423. fi
  25424. if test x$have_filesystem != xyes; then
  25425. if test x$enable_filesystem = xyes; then
  25426. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25427. fi
  25428. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25429. fi
  25430. if test x$have_loadso != xyes; then
  25431. if test x$enable_loadso = xyes; then
  25432. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25433. fi
  25434. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25435. fi
  25436. if test x$SDLMAIN_SOURCES = x; then
  25437. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25438. fi
  25439. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25440. if test x$video_wayland = xyes; then
  25441. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25442. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25443. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25444. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25445. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25446. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25447. echo ;\
  25448. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25449. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25450. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25451. echo ;\
  25452. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25453. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25454. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25455. echo ;\
  25456. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25457. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25458. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25459. done ;\
  25460. echo ;\
  25461. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25462. fi
  25463. OBJECTS=`echo $SOURCES`
  25464. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25465. for EXT in asm cc m c S; do
  25466. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25467. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25468. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25469. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25470. done
  25471. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25472. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25473. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25474. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25475. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25476. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25477. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25478. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25479. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25480. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25481. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25482. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25483. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25484. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25485. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25486. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25487. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25488. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25489. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25490. # Set runtime shared library paths as needed
  25491. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25492. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25493. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25495. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25496. have_enable_new_dtags=no
  25497. save_LDFLAGS="$LDFLAGS"
  25498. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25500. /* end confdefs.h. */
  25501. int
  25502. main (void)
  25503. {
  25504. ;
  25505. return 0;
  25506. }
  25507. _ACEOF
  25508. if ac_fn_c_try_link "$LINENO"
  25509. then :
  25510. have_enable_new_dtags=yes
  25511. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25512. fi
  25513. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25514. conftest$ac_exeext conftest.$ac_ext
  25515. LDFLAGS="$save_LDFLAGS"
  25516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25517. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25518. fi
  25519. if test $ARCH = solaris; then
  25520. SDL_RLD_FLAGS="-R\${libdir}"
  25521. fi
  25522. else
  25523. SDL_RLD_FLAGS=""
  25524. fi
  25525. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25526. pkg_cmakedir='$libdir/cmake/SDL2'
  25527. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25528. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25529. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25530. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25531. _lcl_receval="$_lcl_from"
  25532. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25533. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25534. _lcl_receval_old=''
  25535. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25536. _lcl_receval_old="$_lcl_receval"
  25537. eval _lcl_receval="\"$_lcl_receval\""
  25538. done
  25539. echo "$_lcl_receval")`
  25540. _lcl_receval="$_lcl_to"
  25541. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25542. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25543. _lcl_receval_old=''
  25544. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25545. _lcl_receval_old="$_lcl_receval"
  25546. eval _lcl_receval="\"$_lcl_receval\""
  25547. done
  25548. echo "$_lcl_receval")`
  25549. _lcl_notation="$_lcl_from$_lcl_to"
  25550. case ":$_lcl_from:" in
  25551. # change empty paths to '.'
  25552. ::) _lcl_from='.' ;;
  25553. # strip trailing slashes
  25554. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25555. :*:) ;;
  25556. esac
  25557. # squeeze repeated slashes
  25558. case '/' in
  25559. # if the path contains any backslashes, turn slashes into backslashes
  25560. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25561. # if the path contains slashes, also turn backslashes into slashes
  25562. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25563. esac
  25564. case ":$_lcl_to:" in
  25565. # change empty paths to '.'
  25566. ::) _lcl_to='.' ;;
  25567. # strip trailing slashes
  25568. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25569. :*:) ;;
  25570. esac
  25571. # squeeze repeated slashes
  25572. case '/' in
  25573. # if the path contains any backslashes, turn slashes into backslashes
  25574. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25575. # if the path contains slashes, also turn backslashes into slashes
  25576. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25577. esac
  25578. _lcl_common_prefix=''
  25579. _lcl_second_prefix_match=''
  25580. while test "$_lcl_second_prefix_match" != 0; do
  25581. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25582. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25583. if test "$_lcl_second_prefix_match" != 0; then
  25584. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25585. _lcl_common_prefix="$_lcl_first_prefix"
  25586. else
  25587. _lcl_second_prefix_match=0
  25588. fi
  25589. fi
  25590. done
  25591. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25592. _lcl_first_rel=''
  25593. _lcl_tmp='xxx'
  25594. while test "$_lcl_tmp" != ''; do
  25595. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25596. if test "$_lcl_first_suffix" != ''; then
  25597. _lcl_first_suffix="$_lcl_tmp"
  25598. _lcl_first_rel="../$_lcl_first_rel"
  25599. fi
  25600. done
  25601. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25602. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25603. case ":$_lcl_result_tmp:" in
  25604. # change empty paths to '.'
  25605. ::) _lcl_result_tmp='.' ;;
  25606. # strip trailing slashes
  25607. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25608. :*:) ;;
  25609. esac
  25610. # squeeze repeated slashes
  25611. case "$_lcl_notation" in
  25612. # if the path contains any backslashes, turn slashes into backslashes
  25613. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25614. # if the path contains slashes, also turn backslashes into slashes
  25615. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25616. esac
  25617. eval $_lcl_result_var='$_lcl_result_tmp'
  25618. done
  25619. if test x$enable_shared = xyes; then
  25620. PKGCONFIG_LIBS_PRIV="
  25621. Libs.private:"
  25622. ENABLE_SHARED_TRUE=
  25623. ENABLE_SHARED_FALSE="#"
  25624. else
  25625. PKGCONFIG_LIBS_PRIV=
  25626. ENABLE_SHARED_TRUE="#"
  25627. ENABLE_SHARED_FALSE=
  25628. fi
  25629. if test x$enable_static = xyes; then
  25630. ENABLE_STATIC_TRUE=
  25631. ENABLE_STATIC_FALSE="#"
  25632. else
  25633. ENABLE_STATIC_TRUE="#"
  25634. ENABLE_STATIC_FALSE=
  25635. fi
  25636. cat >Makefile.rules <<__EOF__
  25637. # Build rules for objects
  25638. -include \$(OBJECTS:.lo=.d)
  25639. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25640. $srcdir/src/SDL.c: update-revision
  25641. $DEPENDS
  25642. $VERSION_DEPENDS
  25643. $SDLMAIN_DEPENDS
  25644. $SDLTEST_DEPENDS
  25645. $WAYLAND_PROTOCOLS_DEPENDS
  25646. __EOF__
  25647. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25648. ac_config_commands="$ac_config_commands sdl2_config"
  25649. SUMMARY="SDL2 Configure Summary:\n"
  25650. if test x$enable_shared = xyes; then
  25651. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25652. fi
  25653. if test x$enable_static = xyes; then
  25654. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25655. fi
  25656. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25657. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25658. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25659. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25660. if test x$have_x = xyes; then
  25661. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25662. fi
  25663. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25664. if test x$have_joystick_virtual = xyes; then
  25665. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25666. else
  25667. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25668. fi
  25669. if test x$have_samplerate_h_hdr = xyes; then
  25670. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25671. else
  25672. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25673. fi
  25674. if test x$have_libudev_h_hdr = xyes; then
  25675. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25676. else
  25677. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25678. fi
  25679. if test x$have_dbus_dbus_h_hdr = xyes; then
  25680. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25681. else
  25682. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25683. fi
  25684. if test x$enable_ime = xyes; then
  25685. SUMMARY="${SUMMARY}Using ime : YES\n"
  25686. else
  25687. SUMMARY="${SUMMARY}Using ime : NO\n"
  25688. fi
  25689. if test x$have_ibus_ibus_h_hdr = xyes; then
  25690. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25691. else
  25692. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25693. fi
  25694. if test x$have_fcitx = xyes; then
  25695. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25696. else
  25697. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25698. fi
  25699. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25700. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25701. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25702. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25703. SUMMARY="${SUMMARY}configure script with:\n"
  25704. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25705. fi
  25706. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25707. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25708. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25709. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25710. SUMMARY="${SUMMARY}configure script with:\n"
  25711. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25712. fi
  25713. ac_config_commands="$ac_config_commands summary"
  25714. cat >confcache <<\_ACEOF
  25715. # This file is a shell script that caches the results of configure
  25716. # tests run on this system so they can be shared between configure
  25717. # scripts and configure runs, see configure's option --config-cache.
  25718. # It is not useful on other systems. If it contains results you don't
  25719. # want to keep, you may remove or edit it.
  25720. #
  25721. # config.status only pays attention to the cache file if you give it
  25722. # the --recheck option to rerun configure.
  25723. #
  25724. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25725. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25726. # following values.
  25727. _ACEOF
  25728. # The following way of writing the cache mishandles newlines in values,
  25729. # but we know of no workaround that is simple, portable, and efficient.
  25730. # So, we kill variables containing newlines.
  25731. # Ultrix sh set writes to stderr and can't be redirected directly,
  25732. # and sets the high bit in the cache file unless we assign to the vars.
  25733. (
  25734. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25735. eval ac_val=\$$ac_var
  25736. case $ac_val in #(
  25737. *${as_nl}*)
  25738. case $ac_var in #(
  25739. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25740. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25741. esac
  25742. case $ac_var in #(
  25743. _ | IFS | as_nl) ;; #(
  25744. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25745. *) { eval $ac_var=; unset $ac_var;} ;;
  25746. esac ;;
  25747. esac
  25748. done
  25749. (set) 2>&1 |
  25750. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25751. *${as_nl}ac_space=\ *)
  25752. # `set' does not quote correctly, so add quotes: double-quote
  25753. # substitution turns \\\\ into \\, and sed turns \\ into \.
  25754. sed -n \
  25755. "s/'/'\\\\''/g;
  25756. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25757. ;; #(
  25758. *)
  25759. # `set' quotes correctly as required by POSIX, so do not add quotes.
  25760. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25761. ;;
  25762. esac |
  25763. sort
  25764. ) |
  25765. sed '
  25766. /^ac_cv_env_/b end
  25767. t clear
  25768. :clear
  25769. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  25770. t end
  25771. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25772. :end' >>confcache
  25773. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25774. if test -w "$cache_file"; then
  25775. if test "x$cache_file" != "x/dev/null"; then
  25776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25777. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  25778. if test ! -f "$cache_file" || test -h "$cache_file"; then
  25779. cat confcache >"$cache_file"
  25780. else
  25781. case $cache_file in #(
  25782. */* | ?:*)
  25783. mv -f confcache "$cache_file"$$ &&
  25784. mv -f "$cache_file"$$ "$cache_file" ;; #(
  25785. *)
  25786. mv -f confcache "$cache_file" ;;
  25787. esac
  25788. fi
  25789. fi
  25790. else
  25791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  25792. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  25793. fi
  25794. fi
  25795. rm -f confcache
  25796. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25797. # Let make expand exec_prefix.
  25798. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25799. DEFS=-DHAVE_CONFIG_H
  25800. ac_libobjs=
  25801. ac_ltlibobjs=
  25802. U=
  25803. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25804. # 1. Remove the extension, and $U if already installed.
  25805. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25806. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  25807. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25808. # will be set to the directory where LIBOBJS objects are built.
  25809. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25810. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  25811. done
  25812. LIBOBJS=$ac_libobjs
  25813. LTLIBOBJS=$ac_ltlibobjs
  25814. : "${CONFIG_STATUS=./config.status}"
  25815. ac_write_fail=0
  25816. ac_clean_files_save=$ac_clean_files
  25817. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  25819. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  25820. as_write_fail=0
  25821. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  25822. #! $SHELL
  25823. # Generated by $as_me.
  25824. # Run this file to recreate the current configuration.
  25825. # Compiler output produced by configure, useful for debugging
  25826. # configure, is in config.log if it exists.
  25827. debug=false
  25828. ac_cs_recheck=false
  25829. ac_cs_silent=false
  25830. SHELL=\${CONFIG_SHELL-$SHELL}
  25831. export SHELL
  25832. _ASEOF
  25833. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  25834. ## -------------------- ##
  25835. ## M4sh Initialization. ##
  25836. ## -------------------- ##
  25837. # Be more Bourne compatible
  25838. DUALCASE=1; export DUALCASE # for MKS sh
  25839. as_nop=:
  25840. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  25841. then :
  25842. emulate sh
  25843. NULLCMD=:
  25844. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25845. # is contrary to our usage. Disable this feature.
  25846. alias -g '${1+"$@"}'='"$@"'
  25847. setopt NO_GLOB_SUBST
  25848. else $as_nop
  25849. case `(set -o) 2>/dev/null` in #(
  25850. *posix*) :
  25851. set -o posix ;; #(
  25852. *) :
  25853. ;;
  25854. esac
  25855. fi
  25856. # Reset variables that may have inherited troublesome values from
  25857. # the environment.
  25858. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  25859. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  25860. # side effect of setting IFS to empty, thus disabling word splitting.)
  25861. # Quoting is to prevent editors from complaining about space-tab.
  25862. as_nl='
  25863. '
  25864. export as_nl
  25865. IFS=" "" $as_nl"
  25866. PS1='$ '
  25867. PS2='> '
  25868. PS4='+ '
  25869. # Ensure predictable behavior from utilities with locale-dependent output.
  25870. LC_ALL=C
  25871. export LC_ALL
  25872. LANGUAGE=C
  25873. export LANGUAGE
  25874. # We cannot yet rely on "unset" to work, but we need these variables
  25875. # to be unset--not just set to an empty or harmless value--now, to
  25876. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  25877. # also avoids known problems related to "unset" and subshell syntax
  25878. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  25879. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  25880. do eval test \${$as_var+y} \
  25881. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  25882. done
  25883. # Ensure that fds 0, 1, and 2 are open.
  25884. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  25885. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  25886. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  25887. # The user is always right.
  25888. if ${PATH_SEPARATOR+false} :; then
  25889. PATH_SEPARATOR=:
  25890. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  25891. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  25892. PATH_SEPARATOR=';'
  25893. }
  25894. fi
  25895. # Find who we are. Look in the path if we contain no directory separator.
  25896. as_myself=
  25897. case $0 in #((
  25898. *[\\/]* ) as_myself=$0 ;;
  25899. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25900. for as_dir in $PATH
  25901. do
  25902. IFS=$as_save_IFS
  25903. case $as_dir in #(((
  25904. '') as_dir=./ ;;
  25905. */) ;;
  25906. *) as_dir=$as_dir/ ;;
  25907. esac
  25908. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  25909. done
  25910. IFS=$as_save_IFS
  25911. ;;
  25912. esac
  25913. # We did not find ourselves, most probably we were run as `sh COMMAND'
  25914. # in which case we are not to be found in the path.
  25915. if test "x$as_myself" = x; then
  25916. as_myself=$0
  25917. fi
  25918. if test ! -f "$as_myself"; then
  25919. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  25920. exit 1
  25921. fi
  25922. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  25923. # ----------------------------------------
  25924. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  25925. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  25926. # script with STATUS, using 1 if that was 0.
  25927. as_fn_error ()
  25928. {
  25929. as_status=$1; test $as_status -eq 0 && as_status=1
  25930. if test "$4"; then
  25931. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  25932. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  25933. fi
  25934. printf "%s\n" "$as_me: error: $2" >&2
  25935. as_fn_exit $as_status
  25936. } # as_fn_error
  25937. # as_fn_set_status STATUS
  25938. # -----------------------
  25939. # Set $? to STATUS, without forking.
  25940. as_fn_set_status ()
  25941. {
  25942. return $1
  25943. } # as_fn_set_status
  25944. # as_fn_exit STATUS
  25945. # -----------------
  25946. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  25947. as_fn_exit ()
  25948. {
  25949. set +e
  25950. as_fn_set_status $1
  25951. exit $1
  25952. } # as_fn_exit
  25953. # as_fn_unset VAR
  25954. # ---------------
  25955. # Portably unset VAR.
  25956. as_fn_unset ()
  25957. {
  25958. { eval $1=; unset $1;}
  25959. }
  25960. as_unset=as_fn_unset
  25961. # as_fn_append VAR VALUE
  25962. # ----------------------
  25963. # Append the text in VALUE to the end of the definition contained in VAR. Take
  25964. # advantage of any shell optimizations that allow amortized linear growth over
  25965. # repeated appends, instead of the typical quadratic growth present in naive
  25966. # implementations.
  25967. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  25968. then :
  25969. eval 'as_fn_append ()
  25970. {
  25971. eval $1+=\$2
  25972. }'
  25973. else $as_nop
  25974. as_fn_append ()
  25975. {
  25976. eval $1=\$$1\$2
  25977. }
  25978. fi # as_fn_append
  25979. # as_fn_arith ARG...
  25980. # ------------------
  25981. # Perform arithmetic evaluation on the ARGs, and store the result in the
  25982. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  25983. # must be portable across $(()) and expr.
  25984. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  25985. then :
  25986. eval 'as_fn_arith ()
  25987. {
  25988. as_val=$(( $* ))
  25989. }'
  25990. else $as_nop
  25991. as_fn_arith ()
  25992. {
  25993. as_val=`expr "$@" || test $? -eq 1`
  25994. }
  25995. fi # as_fn_arith
  25996. if expr a : '\(a\)' >/dev/null 2>&1 &&
  25997. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  25998. as_expr=expr
  25999. else
  26000. as_expr=false
  26001. fi
  26002. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  26003. as_basename=basename
  26004. else
  26005. as_basename=false
  26006. fi
  26007. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  26008. as_dirname=dirname
  26009. else
  26010. as_dirname=false
  26011. fi
  26012. as_me=`$as_basename -- "$0" ||
  26013. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26014. X"$0" : 'X\(//\)$' \| \
  26015. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  26016. printf "%s\n" X/"$0" |
  26017. sed '/^.*\/\([^/][^/]*\)\/*$/{
  26018. s//\1/
  26019. q
  26020. }
  26021. /^X\/\(\/\/\)$/{
  26022. s//\1/
  26023. q
  26024. }
  26025. /^X\/\(\/\).*/{
  26026. s//\1/
  26027. q
  26028. }
  26029. s/.*/./; q'`
  26030. # Avoid depending upon Character Ranges.
  26031. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26032. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26033. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26034. as_cr_digits='0123456789'
  26035. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26036. # Determine whether it's possible to make 'echo' print without a newline.
  26037. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26038. # for compatibility with existing Makefiles.
  26039. ECHO_C= ECHO_N= ECHO_T=
  26040. case `echo -n x` in #(((((
  26041. -n*)
  26042. case `echo 'xy\c'` in
  26043. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26044. xy) ECHO_C='\c';;
  26045. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26046. ECHO_T=' ';;
  26047. esac;;
  26048. *)
  26049. ECHO_N='-n';;
  26050. esac
  26051. # For backward compatibility with old third-party macros, we provide
  26052. # the shell variables $as_echo and $as_echo_n. New code should use
  26053. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26054. as_echo='printf %s\n'
  26055. as_echo_n='printf %s'
  26056. rm -f conf$$ conf$$.exe conf$$.file
  26057. if test -d conf$$.dir; then
  26058. rm -f conf$$.dir/conf$$.file
  26059. else
  26060. rm -f conf$$.dir
  26061. mkdir conf$$.dir 2>/dev/null
  26062. fi
  26063. if (echo >conf$$.file) 2>/dev/null; then
  26064. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26065. as_ln_s='ln -s'
  26066. # ... but there are two gotchas:
  26067. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26068. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26069. # In both cases, we have to default to `cp -pR'.
  26070. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26071. as_ln_s='cp -pR'
  26072. elif ln conf$$.file conf$$ 2>/dev/null; then
  26073. as_ln_s=ln
  26074. else
  26075. as_ln_s='cp -pR'
  26076. fi
  26077. else
  26078. as_ln_s='cp -pR'
  26079. fi
  26080. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26081. rmdir conf$$.dir 2>/dev/null
  26082. # as_fn_mkdir_p
  26083. # -------------
  26084. # Create "$as_dir" as a directory, including parents if necessary.
  26085. as_fn_mkdir_p ()
  26086. {
  26087. case $as_dir in #(
  26088. -*) as_dir=./$as_dir;;
  26089. esac
  26090. test -d "$as_dir" || eval $as_mkdir_p || {
  26091. as_dirs=
  26092. while :; do
  26093. case $as_dir in #(
  26094. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26095. *) as_qdir=$as_dir;;
  26096. esac
  26097. as_dirs="'$as_qdir' $as_dirs"
  26098. as_dir=`$as_dirname -- "$as_dir" ||
  26099. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26100. X"$as_dir" : 'X\(//\)[^/]' \| \
  26101. X"$as_dir" : 'X\(//\)$' \| \
  26102. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26103. printf "%s\n" X"$as_dir" |
  26104. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26105. s//\1/
  26106. q
  26107. }
  26108. /^X\(\/\/\)[^/].*/{
  26109. s//\1/
  26110. q
  26111. }
  26112. /^X\(\/\/\)$/{
  26113. s//\1/
  26114. q
  26115. }
  26116. /^X\(\/\).*/{
  26117. s//\1/
  26118. q
  26119. }
  26120. s/.*/./; q'`
  26121. test -d "$as_dir" && break
  26122. done
  26123. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26124. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26125. } # as_fn_mkdir_p
  26126. if mkdir -p . 2>/dev/null; then
  26127. as_mkdir_p='mkdir -p "$as_dir"'
  26128. else
  26129. test -d ./-p && rmdir ./-p
  26130. as_mkdir_p=false
  26131. fi
  26132. # as_fn_executable_p FILE
  26133. # -----------------------
  26134. # Test if FILE is an executable regular file.
  26135. as_fn_executable_p ()
  26136. {
  26137. test -f "$1" && test -x "$1"
  26138. } # as_fn_executable_p
  26139. as_test_x='test -x'
  26140. as_executable_p=as_fn_executable_p
  26141. # Sed expression to map a string onto a valid CPP name.
  26142. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26143. # Sed expression to map a string onto a valid variable name.
  26144. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26145. exec 6>&1
  26146. ## ----------------------------------- ##
  26147. ## Main body of $CONFIG_STATUS script. ##
  26148. ## ----------------------------------- ##
  26149. _ASEOF
  26150. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26151. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26152. # Save the log message, to keep $0 and so on meaningful, and to
  26153. # report actual input values of CONFIG_FILES etc. instead of their
  26154. # values after options handling.
  26155. ac_log="
  26156. This file was extended by $as_me, which was
  26157. generated by GNU Autoconf 2.71. Invocation command line was
  26158. CONFIG_FILES = $CONFIG_FILES
  26159. CONFIG_HEADERS = $CONFIG_HEADERS
  26160. CONFIG_LINKS = $CONFIG_LINKS
  26161. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26162. $ $0 $@
  26163. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26164. "
  26165. _ACEOF
  26166. case $ac_config_files in *"
  26167. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26168. esac
  26169. case $ac_config_headers in *"
  26170. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26171. esac
  26172. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26173. # Files that config.status was made for.
  26174. config_files="$ac_config_files"
  26175. config_headers="$ac_config_headers"
  26176. config_commands="$ac_config_commands"
  26177. _ACEOF
  26178. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26179. ac_cs_usage="\
  26180. \`$as_me' instantiates files and other configuration actions
  26181. from templates according to the current configuration. Unless the files
  26182. and actions are specified as TAGs, all are instantiated by default.
  26183. Usage: $0 [OPTION]... [TAG]...
  26184. -h, --help print this help, then exit
  26185. -V, --version print version number and configuration settings, then exit
  26186. --config print configuration, then exit
  26187. -q, --quiet, --silent
  26188. do not print progress messages
  26189. -d, --debug don't remove temporary files
  26190. --recheck update $as_me by reconfiguring in the same conditions
  26191. --file=FILE[:TEMPLATE]
  26192. instantiate the configuration file FILE
  26193. --header=FILE[:TEMPLATE]
  26194. instantiate the configuration header FILE
  26195. Configuration files:
  26196. $config_files
  26197. Configuration headers:
  26198. $config_headers
  26199. Configuration commands:
  26200. $config_commands
  26201. Report bugs to the package provider."
  26202. _ACEOF
  26203. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26204. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26205. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26206. ac_cs_config='$ac_cs_config_escaped'
  26207. ac_cs_version="\\
  26208. config.status
  26209. configured by $0, generated by GNU Autoconf 2.71,
  26210. with options \\"\$ac_cs_config\\"
  26211. Copyright (C) 2021 Free Software Foundation, Inc.
  26212. This config.status script is free software; the Free Software Foundation
  26213. gives unlimited permission to copy, distribute and modify it."
  26214. ac_pwd='$ac_pwd'
  26215. srcdir='$srcdir'
  26216. INSTALL='$INSTALL'
  26217. AWK='$AWK'
  26218. test -n "\$AWK" || AWK=awk
  26219. _ACEOF
  26220. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26221. # The default lists apply if the user does not specify any file.
  26222. ac_need_defaults=:
  26223. while test $# != 0
  26224. do
  26225. case $1 in
  26226. --*=?*)
  26227. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26228. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26229. ac_shift=:
  26230. ;;
  26231. --*=)
  26232. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26233. ac_optarg=
  26234. ac_shift=:
  26235. ;;
  26236. *)
  26237. ac_option=$1
  26238. ac_optarg=$2
  26239. ac_shift=shift
  26240. ;;
  26241. esac
  26242. case $ac_option in
  26243. # Handling of the options.
  26244. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26245. ac_cs_recheck=: ;;
  26246. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26247. printf "%s\n" "$ac_cs_version"; exit ;;
  26248. --config | --confi | --conf | --con | --co | --c )
  26249. printf "%s\n" "$ac_cs_config"; exit ;;
  26250. --debug | --debu | --deb | --de | --d | -d )
  26251. debug=: ;;
  26252. --file | --fil | --fi | --f )
  26253. $ac_shift
  26254. case $ac_optarg in
  26255. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26256. '') as_fn_error $? "missing file argument" ;;
  26257. esac
  26258. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26259. ac_need_defaults=false;;
  26260. --header | --heade | --head | --hea )
  26261. $ac_shift
  26262. case $ac_optarg in
  26263. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26264. esac
  26265. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26266. ac_need_defaults=false;;
  26267. --he | --h)
  26268. # Conflict between --help and --header
  26269. as_fn_error $? "ambiguous option: \`$1'
  26270. Try \`$0 --help' for more information.";;
  26271. --help | --hel | -h )
  26272. printf "%s\n" "$ac_cs_usage"; exit ;;
  26273. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26274. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26275. ac_cs_silent=: ;;
  26276. # This is an error.
  26277. -*) as_fn_error $? "unrecognized option: \`$1'
  26278. Try \`$0 --help' for more information." ;;
  26279. *) as_fn_append ac_config_targets " $1"
  26280. ac_need_defaults=false ;;
  26281. esac
  26282. shift
  26283. done
  26284. ac_configure_extra_args=
  26285. if $ac_cs_silent; then
  26286. exec 6>/dev/null
  26287. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26288. fi
  26289. _ACEOF
  26290. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26291. if \$ac_cs_recheck; then
  26292. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26293. shift
  26294. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26295. CONFIG_SHELL='$SHELL'
  26296. export CONFIG_SHELL
  26297. exec "\$@"
  26298. fi
  26299. _ACEOF
  26300. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26301. exec 5>>config.log
  26302. {
  26303. echo
  26304. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26305. ## Running $as_me. ##
  26306. _ASBOX
  26307. printf "%s\n" "$ac_log"
  26308. } >&5
  26309. _ACEOF
  26310. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26311. #
  26312. # INIT-COMMANDS
  26313. #
  26314. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26315. # if CDPATH is set.
  26316. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26317. sed_quote_subst='$sed_quote_subst'
  26318. double_quote_subst='$double_quote_subst'
  26319. delay_variable_subst='$delay_variable_subst'
  26320. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26321. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26322. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26323. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26324. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26325. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26326. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26327. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26328. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26329. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26330. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26331. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26332. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26333. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26334. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26335. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26336. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26337. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26338. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26339. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26340. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26341. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26342. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26343. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26344. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26345. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26346. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26347. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26348. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26349. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26350. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26351. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26352. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26353. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26354. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26355. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26356. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26357. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26358. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26359. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26360. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26361. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26362. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26363. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26364. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26365. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26366. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26367. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26368. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26369. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26370. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26371. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26372. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26373. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26374. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26375. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26376. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26377. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26378. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26379. 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"`'
  26380. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26381. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26382. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26383. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26384. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26385. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26386. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26387. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26388. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26389. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26390. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26391. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26392. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26393. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26394. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26395. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26396. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26397. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26398. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26399. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26400. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26401. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26402. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26403. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26404. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26405. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26406. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26407. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26408. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26409. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26410. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26411. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26412. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26413. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26414. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26415. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26416. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26417. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26418. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26419. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26420. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26421. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26422. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26423. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26424. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26425. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26426. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26427. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26428. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26429. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26430. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26431. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26432. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26433. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26434. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26435. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26436. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26437. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26438. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26439. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26440. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26441. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26442. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26443. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26444. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26445. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26446. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26447. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26448. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26449. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26450. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26451. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26452. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26453. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26454. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26455. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26456. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26457. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26458. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26459. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26460. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26461. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26462. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26463. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26464. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26465. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26466. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26467. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26468. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26469. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26470. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26471. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26472. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26473. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26474. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26475. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26476. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26477. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26478. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26479. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26480. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26481. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26482. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26483. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26484. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26485. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26486. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26487. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26488. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26489. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26490. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26491. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26492. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26493. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26494. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26495. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26496. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26497. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26498. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26499. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26500. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26501. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26502. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26503. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26504. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26505. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26506. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26507. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26508. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26509. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26510. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26511. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26512. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26513. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26514. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26515. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26516. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26517. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26518. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26519. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26520. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26521. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26522. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26523. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26524. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26525. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26526. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26527. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26528. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26529. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26530. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26531. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26532. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26533. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26534. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26535. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26536. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26537. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26538. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26539. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26540. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26541. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26542. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26543. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26544. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26545. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26546. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26547. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26548. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26549. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26550. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26551. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26552. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26553. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26554. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26555. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26556. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26557. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26558. LTCC='$LTCC'
  26559. LTCFLAGS='$LTCFLAGS'
  26560. compiler='$compiler_DEFAULT'
  26561. # A function that is used when there is no print builtin or printf.
  26562. func_fallback_echo ()
  26563. {
  26564. eval 'cat <<_LTECHO_EOF
  26565. \$1
  26566. _LTECHO_EOF'
  26567. }
  26568. # Quote evaled strings.
  26569. for var in AS \
  26570. DLLTOOL \
  26571. OBJDUMP \
  26572. SHELL \
  26573. ECHO \
  26574. PATH_SEPARATOR \
  26575. SED \
  26576. GREP \
  26577. EGREP \
  26578. FGREP \
  26579. LD \
  26580. NM \
  26581. LN_S \
  26582. lt_SP2NL \
  26583. lt_NL2SP \
  26584. reload_flag \
  26585. deplibs_check_method \
  26586. file_magic_cmd \
  26587. file_magic_glob \
  26588. want_nocaseglob \
  26589. sharedlib_from_linklib_cmd \
  26590. AR \
  26591. AR_FLAGS \
  26592. archiver_list_spec \
  26593. STRIP \
  26594. RANLIB \
  26595. CC \
  26596. CFLAGS \
  26597. compiler \
  26598. lt_cv_sys_global_symbol_pipe \
  26599. lt_cv_sys_global_symbol_to_cdecl \
  26600. lt_cv_sys_global_symbol_to_import \
  26601. lt_cv_sys_global_symbol_to_c_name_address \
  26602. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26603. lt_cv_nm_interface \
  26604. nm_file_list_spec \
  26605. lt_cv_truncate_bin \
  26606. lt_prog_compiler_no_builtin_flag \
  26607. lt_prog_compiler_pic \
  26608. lt_prog_compiler_wl \
  26609. lt_prog_compiler_static \
  26610. lt_cv_prog_compiler_c_o \
  26611. need_locks \
  26612. MANIFEST_TOOL \
  26613. DSYMUTIL \
  26614. NMEDIT \
  26615. LIPO \
  26616. OTOOL \
  26617. OTOOL64 \
  26618. shrext_cmds \
  26619. export_dynamic_flag_spec \
  26620. whole_archive_flag_spec \
  26621. compiler_needs_object \
  26622. with_gnu_ld \
  26623. allow_undefined_flag \
  26624. no_undefined_flag \
  26625. hardcode_libdir_flag_spec \
  26626. hardcode_libdir_separator \
  26627. exclude_expsyms \
  26628. include_expsyms \
  26629. file_list_spec \
  26630. variables_saved_for_relink \
  26631. libname_spec \
  26632. library_names_spec \
  26633. soname_spec \
  26634. install_override_mode \
  26635. finish_eval \
  26636. old_striplib \
  26637. striplib \
  26638. compiler_lib_search_dirs \
  26639. predep_objects \
  26640. postdep_objects \
  26641. predeps \
  26642. postdeps \
  26643. compiler_lib_search_path \
  26644. LD_RC \
  26645. LD_CXX \
  26646. reload_flag_RC \
  26647. reload_flag_CXX \
  26648. compiler_RC \
  26649. compiler_CXX \
  26650. lt_prog_compiler_no_builtin_flag_RC \
  26651. lt_prog_compiler_no_builtin_flag_CXX \
  26652. lt_prog_compiler_pic_RC \
  26653. lt_prog_compiler_pic_CXX \
  26654. lt_prog_compiler_wl_RC \
  26655. lt_prog_compiler_wl_CXX \
  26656. lt_prog_compiler_static_RC \
  26657. lt_prog_compiler_static_CXX \
  26658. lt_cv_prog_compiler_c_o_RC \
  26659. lt_cv_prog_compiler_c_o_CXX \
  26660. export_dynamic_flag_spec_RC \
  26661. export_dynamic_flag_spec_CXX \
  26662. whole_archive_flag_spec_RC \
  26663. whole_archive_flag_spec_CXX \
  26664. compiler_needs_object_RC \
  26665. compiler_needs_object_CXX \
  26666. with_gnu_ld_RC \
  26667. with_gnu_ld_CXX \
  26668. allow_undefined_flag_RC \
  26669. allow_undefined_flag_CXX \
  26670. no_undefined_flag_RC \
  26671. no_undefined_flag_CXX \
  26672. hardcode_libdir_flag_spec_RC \
  26673. hardcode_libdir_flag_spec_CXX \
  26674. hardcode_libdir_separator_RC \
  26675. hardcode_libdir_separator_CXX \
  26676. exclude_expsyms_RC \
  26677. exclude_expsyms_CXX \
  26678. include_expsyms_RC \
  26679. include_expsyms_CXX \
  26680. file_list_spec_RC \
  26681. file_list_spec_CXX \
  26682. compiler_lib_search_dirs_RC \
  26683. compiler_lib_search_dirs_CXX \
  26684. predep_objects_RC \
  26685. predep_objects_CXX \
  26686. postdep_objects_RC \
  26687. postdep_objects_CXX \
  26688. predeps_RC \
  26689. predeps_CXX \
  26690. postdeps_RC \
  26691. postdeps_CXX \
  26692. compiler_lib_search_path_RC \
  26693. compiler_lib_search_path_CXX; do
  26694. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26695. *[\\\\\\\`\\"\\\$]*)
  26696. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26697. ;;
  26698. *)
  26699. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26700. ;;
  26701. esac
  26702. done
  26703. # Double-quote double-evaled strings.
  26704. for var in reload_cmds \
  26705. old_postinstall_cmds \
  26706. old_postuninstall_cmds \
  26707. old_archive_cmds \
  26708. extract_expsyms_cmds \
  26709. old_archive_from_new_cmds \
  26710. old_archive_from_expsyms_cmds \
  26711. archive_cmds \
  26712. archive_expsym_cmds \
  26713. module_cmds \
  26714. module_expsym_cmds \
  26715. export_symbols_cmds \
  26716. prelink_cmds \
  26717. postlink_cmds \
  26718. postinstall_cmds \
  26719. postuninstall_cmds \
  26720. finish_cmds \
  26721. sys_lib_search_path_spec \
  26722. configure_time_dlsearch_path \
  26723. configure_time_lt_sys_library_path \
  26724. reload_cmds_RC \
  26725. reload_cmds_CXX \
  26726. old_archive_cmds_RC \
  26727. old_archive_cmds_CXX \
  26728. old_archive_from_new_cmds_RC \
  26729. old_archive_from_new_cmds_CXX \
  26730. old_archive_from_expsyms_cmds_RC \
  26731. old_archive_from_expsyms_cmds_CXX \
  26732. archive_cmds_RC \
  26733. archive_cmds_CXX \
  26734. archive_expsym_cmds_RC \
  26735. archive_expsym_cmds_CXX \
  26736. module_cmds_RC \
  26737. module_cmds_CXX \
  26738. module_expsym_cmds_RC \
  26739. module_expsym_cmds_CXX \
  26740. export_symbols_cmds_RC \
  26741. export_symbols_cmds_CXX \
  26742. prelink_cmds_RC \
  26743. prelink_cmds_CXX \
  26744. postlink_cmds_RC \
  26745. postlink_cmds_CXX; do
  26746. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26747. *[\\\\\\\`\\"\\\$]*)
  26748. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26749. ;;
  26750. *)
  26751. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26752. ;;
  26753. esac
  26754. done
  26755. ac_aux_dir='$ac_aux_dir'
  26756. # See if we are running on zsh, and set the options that allow our
  26757. # commands through without removal of \ escapes INIT.
  26758. if test -n "\${ZSH_VERSION+set}"; then
  26759. setopt NO_GLOB_SUBST
  26760. fi
  26761. PACKAGE='$PACKAGE'
  26762. VERSION='$VERSION'
  26763. RM='$RM'
  26764. ofile='$ofile'
  26765. SUMMARY="$SUMMARY"
  26766. _ACEOF
  26767. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26768. # Handling of arguments.
  26769. for ac_config_target in $ac_config_targets
  26770. do
  26771. case $ac_config_target in
  26772. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  26773. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26774. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  26775. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  26776. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  26777. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  26778. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  26779. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  26780. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  26781. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  26782. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  26783. esac
  26784. done
  26785. # If the user did not use the arguments to specify the items to instantiate,
  26786. # then the envvar interface is used. Set only those that are not.
  26787. # We use the long form for the default assignment because of an extremely
  26788. # bizarre bug on SunOS 4.1.3.
  26789. if $ac_need_defaults; then
  26790. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  26791. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  26792. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  26793. fi
  26794. # Have a temporary directory for convenience. Make it in the build tree
  26795. # simply because there is no reason against having it here, and in addition,
  26796. # creating and moving files from /tmp can sometimes cause problems.
  26797. # Hook for its removal unless debugging.
  26798. # Note that there is a small window in which the directory will not be cleaned:
  26799. # after its creation but before its name has been assigned to `$tmp'.
  26800. $debug ||
  26801. {
  26802. tmp= ac_tmp=
  26803. trap 'exit_status=$?
  26804. : "${ac_tmp:=$tmp}"
  26805. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  26806. ' 0
  26807. trap 'as_fn_exit 1' 1 2 13 15
  26808. }
  26809. # Create a (secure) tmp directory for tmp files.
  26810. {
  26811. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26812. test -d "$tmp"
  26813. } ||
  26814. {
  26815. tmp=./conf$$-$RANDOM
  26816. (umask 077 && mkdir "$tmp")
  26817. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  26818. ac_tmp=$tmp
  26819. # Set up the scripts for CONFIG_FILES section.
  26820. # No need to generate them if there are no CONFIG_FILES.
  26821. # This happens for instance with `./config.status config.h'.
  26822. if test -n "$CONFIG_FILES"; then
  26823. ac_cr=`echo X | tr X '\015'`
  26824. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  26825. # But we know of no other shell where ac_cr would be empty at this
  26826. # point, so we can use a bashism as a fallback.
  26827. if test "x$ac_cr" = x; then
  26828. eval ac_cr=\$\'\\r\'
  26829. fi
  26830. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26831. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26832. ac_cs_awk_cr='\\r'
  26833. else
  26834. ac_cs_awk_cr=$ac_cr
  26835. fi
  26836. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  26837. _ACEOF
  26838. {
  26839. echo "cat >conf$$subs.awk <<_ACEOF" &&
  26840. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26841. echo "_ACEOF"
  26842. } >conf$$subs.sh ||
  26843. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26844. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  26845. ac_delim='%!_!# '
  26846. for ac_last_try in false false false false false :; do
  26847. . ./conf$$subs.sh ||
  26848. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26849. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26850. if test $ac_delim_n = $ac_delim_num; then
  26851. break
  26852. elif $ac_last_try; then
  26853. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26854. else
  26855. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26856. fi
  26857. done
  26858. rm -f conf$$subs.sh
  26859. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26860. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  26861. _ACEOF
  26862. sed -n '
  26863. h
  26864. s/^/S["/; s/!.*/"]=/
  26865. p
  26866. g
  26867. s/^[^!]*!//
  26868. :repl
  26869. t repl
  26870. s/'"$ac_delim"'$//
  26871. t delim
  26872. :nl
  26873. h
  26874. s/\(.\{148\}\)..*/\1/
  26875. t more1
  26876. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  26877. p
  26878. n
  26879. b repl
  26880. :more1
  26881. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26882. p
  26883. g
  26884. s/.\{148\}//
  26885. t nl
  26886. :delim
  26887. h
  26888. s/\(.\{148\}\)..*/\1/
  26889. t more2
  26890. s/["\\]/\\&/g; s/^/"/; s/$/"/
  26891. p
  26892. b
  26893. :more2
  26894. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26895. p
  26896. g
  26897. s/.\{148\}//
  26898. t delim
  26899. ' <conf$$subs.awk | sed '
  26900. /^[^""]/{
  26901. N
  26902. s/\n//
  26903. }
  26904. ' >>$CONFIG_STATUS || ac_write_fail=1
  26905. rm -f conf$$subs.awk
  26906. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26907. _ACAWK
  26908. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  26909. for (key in S) S_is_set[key] = 1
  26910. FS = ""
  26911. }
  26912. {
  26913. line = $ 0
  26914. nfields = split(line, field, "@")
  26915. substed = 0
  26916. len = length(field[1])
  26917. for (i = 2; i < nfields; i++) {
  26918. key = field[i]
  26919. keylen = length(key)
  26920. if (S_is_set[key]) {
  26921. value = S[key]
  26922. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  26923. len += length(value) + length(field[++i])
  26924. substed = 1
  26925. } else
  26926. len += 1 + keylen
  26927. }
  26928. print line
  26929. }
  26930. _ACAWK
  26931. _ACEOF
  26932. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26933. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  26934. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  26935. else
  26936. cat
  26937. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  26938. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  26939. _ACEOF
  26940. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  26941. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  26942. # trailing colons and then remove the whole line if VPATH becomes empty
  26943. # (actually we leave an empty line to preserve line numbers).
  26944. if test "x$srcdir" = x.; then
  26945. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  26946. h
  26947. s///
  26948. s/^/:/
  26949. s/[ ]*$/:/
  26950. s/:\$(srcdir):/:/g
  26951. s/:\${srcdir}:/:/g
  26952. s/:@srcdir@:/:/g
  26953. s/^:*//
  26954. s/:*$//
  26955. x
  26956. s/\(=[ ]*\).*/\1/
  26957. G
  26958. s/\n//
  26959. s/^[^=]*=[ ]*$//
  26960. }'
  26961. fi
  26962. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26963. fi # test -n "$CONFIG_FILES"
  26964. # Set up the scripts for CONFIG_HEADERS section.
  26965. # No need to generate them if there are no CONFIG_HEADERS.
  26966. # This happens for instance with `./config.status Makefile'.
  26967. if test -n "$CONFIG_HEADERS"; then
  26968. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  26969. BEGIN {
  26970. _ACEOF
  26971. # Transform confdefs.h into an awk script `defines.awk', embedded as
  26972. # here-document in config.status, that substitutes the proper values into
  26973. # config.h.in to produce config.h.
  26974. # Create a delimiter string that does not exist in confdefs.h, to ease
  26975. # handling of long lines.
  26976. ac_delim='%!_!# '
  26977. for ac_last_try in false false :; do
  26978. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  26979. if test -z "$ac_tt"; then
  26980. break
  26981. elif $ac_last_try; then
  26982. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  26983. else
  26984. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26985. fi
  26986. done
  26987. # For the awk script, D is an array of macro values keyed by name,
  26988. # likewise P contains macro parameters if any. Preserve backslash
  26989. # newline sequences.
  26990. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  26991. sed -n '
  26992. s/.\{148\}/&'"$ac_delim"'/g
  26993. t rset
  26994. :rset
  26995. s/^[ ]*#[ ]*define[ ][ ]*/ /
  26996. t def
  26997. d
  26998. :def
  26999. s/\\$//
  27000. t bsnl
  27001. s/["\\]/\\&/g
  27002. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27003. D["\1"]=" \3"/p
  27004. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27005. d
  27006. :bsnl
  27007. s/["\\]/\\&/g
  27008. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27009. D["\1"]=" \3\\\\\\n"\\/p
  27010. t cont
  27011. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27012. t cont
  27013. d
  27014. :cont
  27015. n
  27016. s/.\{148\}/&'"$ac_delim"'/g
  27017. t clear
  27018. :clear
  27019. s/\\$//
  27020. t bsnlc
  27021. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27022. d
  27023. :bsnlc
  27024. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27025. b cont
  27026. ' <confdefs.h | sed '
  27027. s/'"$ac_delim"'/"\\\
  27028. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27029. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27030. for (key in D) D_is_set[key] = 1
  27031. FS = ""
  27032. }
  27033. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27034. line = \$ 0
  27035. split(line, arg, " ")
  27036. if (arg[1] == "#") {
  27037. defundef = arg[2]
  27038. mac1 = arg[3]
  27039. } else {
  27040. defundef = substr(arg[1], 2)
  27041. mac1 = arg[2]
  27042. }
  27043. split(mac1, mac2, "(") #)
  27044. macro = mac2[1]
  27045. prefix = substr(line, 1, index(line, defundef) - 1)
  27046. if (D_is_set[macro]) {
  27047. # Preserve the white space surrounding the "#".
  27048. print prefix "define", macro P[macro] D[macro]
  27049. next
  27050. } else {
  27051. # Replace #undef with comments. This is necessary, for example,
  27052. # in the case of _POSIX_SOURCE, which is predefined and required
  27053. # on some systems where configure will not decide to define it.
  27054. if (defundef == "undef") {
  27055. print "/*", prefix defundef, macro, "*/"
  27056. next
  27057. }
  27058. }
  27059. }
  27060. { print }
  27061. _ACAWK
  27062. _ACEOF
  27063. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27064. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27065. fi # test -n "$CONFIG_HEADERS"
  27066. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27067. shift
  27068. for ac_tag
  27069. do
  27070. case $ac_tag in
  27071. :[FHLC]) ac_mode=$ac_tag; continue;;
  27072. esac
  27073. case $ac_mode$ac_tag in
  27074. :[FHL]*:*);;
  27075. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27076. :[FH]-) ac_tag=-:-;;
  27077. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27078. esac
  27079. ac_save_IFS=$IFS
  27080. IFS=:
  27081. set x $ac_tag
  27082. IFS=$ac_save_IFS
  27083. shift
  27084. ac_file=$1
  27085. shift
  27086. case $ac_mode in
  27087. :L) ac_source=$1;;
  27088. :[FH])
  27089. ac_file_inputs=
  27090. for ac_f
  27091. do
  27092. case $ac_f in
  27093. -) ac_f="$ac_tmp/stdin";;
  27094. *) # Look for the file first in the build tree, then in the source tree
  27095. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27096. # because $ac_f cannot contain `:'.
  27097. test -f "$ac_f" ||
  27098. case $ac_f in
  27099. [\\/$]*) false;;
  27100. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27101. esac ||
  27102. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27103. esac
  27104. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27105. as_fn_append ac_file_inputs " '$ac_f'"
  27106. done
  27107. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27108. # use $as_me), people would be surprised to read:
  27109. # /* config.h. Generated by config.status. */
  27110. configure_input='Generated from '`
  27111. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27112. `' by configure.'
  27113. if test x"$ac_file" != x-; then
  27114. configure_input="$ac_file. $configure_input"
  27115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27116. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27117. fi
  27118. # Neutralize special characters interpreted by sed in replacement strings.
  27119. case $configure_input in #(
  27120. *\&* | *\|* | *\\* )
  27121. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27122. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27123. *) ac_sed_conf_input=$configure_input;;
  27124. esac
  27125. case $ac_tag in
  27126. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27127. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27128. esac
  27129. ;;
  27130. esac
  27131. ac_dir=`$as_dirname -- "$ac_file" ||
  27132. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27133. X"$ac_file" : 'X\(//\)[^/]' \| \
  27134. X"$ac_file" : 'X\(//\)$' \| \
  27135. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27136. printf "%s\n" X"$ac_file" |
  27137. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27138. s//\1/
  27139. q
  27140. }
  27141. /^X\(\/\/\)[^/].*/{
  27142. s//\1/
  27143. q
  27144. }
  27145. /^X\(\/\/\)$/{
  27146. s//\1/
  27147. q
  27148. }
  27149. /^X\(\/\).*/{
  27150. s//\1/
  27151. q
  27152. }
  27153. s/.*/./; q'`
  27154. as_dir="$ac_dir"; as_fn_mkdir_p
  27155. ac_builddir=.
  27156. case "$ac_dir" in
  27157. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27158. *)
  27159. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27160. # A ".." for each directory in $ac_dir_suffix.
  27161. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27162. case $ac_top_builddir_sub in
  27163. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27164. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27165. esac ;;
  27166. esac
  27167. ac_abs_top_builddir=$ac_pwd
  27168. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27169. # for backward compatibility:
  27170. ac_top_builddir=$ac_top_build_prefix
  27171. case $srcdir in
  27172. .) # We are building in place.
  27173. ac_srcdir=.
  27174. ac_top_srcdir=$ac_top_builddir_sub
  27175. ac_abs_top_srcdir=$ac_pwd ;;
  27176. [\\/]* | ?:[\\/]* ) # Absolute name.
  27177. ac_srcdir=$srcdir$ac_dir_suffix;
  27178. ac_top_srcdir=$srcdir
  27179. ac_abs_top_srcdir=$srcdir ;;
  27180. *) # Relative name.
  27181. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27182. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27183. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27184. esac
  27185. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27186. case $ac_mode in
  27187. :F)
  27188. #
  27189. # CONFIG_FILE
  27190. #
  27191. case $INSTALL in
  27192. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27193. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27194. esac
  27195. _ACEOF
  27196. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27197. # If the template does not know about datarootdir, expand it.
  27198. # FIXME: This hack should be removed a few years after 2.60.
  27199. ac_datarootdir_hack=; ac_datarootdir_seen=
  27200. ac_sed_dataroot='
  27201. /datarootdir/ {
  27202. p
  27203. q
  27204. }
  27205. /@datadir@/p
  27206. /@docdir@/p
  27207. /@infodir@/p
  27208. /@localedir@/p
  27209. /@mandir@/p'
  27210. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27211. *datarootdir*) ac_datarootdir_seen=yes;;
  27212. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27214. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27215. _ACEOF
  27216. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27217. ac_datarootdir_hack='
  27218. s&@datadir@&$datadir&g
  27219. s&@docdir@&$docdir&g
  27220. s&@infodir@&$infodir&g
  27221. s&@localedir@&$localedir&g
  27222. s&@mandir@&$mandir&g
  27223. s&\\\${datarootdir}&$datarootdir&g' ;;
  27224. esac
  27225. _ACEOF
  27226. # Neutralize VPATH when `$srcdir' = `.'.
  27227. # Shell code in configure.ac might set extrasub.
  27228. # FIXME: do we really want to maintain this feature?
  27229. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27230. ac_sed_extra="$ac_vpsub
  27231. $extrasub
  27232. _ACEOF
  27233. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27234. :t
  27235. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27236. s|@configure_input@|$ac_sed_conf_input|;t t
  27237. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27238. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27239. s&@srcdir@&$ac_srcdir&;t t
  27240. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27241. s&@top_srcdir@&$ac_top_srcdir&;t t
  27242. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27243. s&@builddir@&$ac_builddir&;t t
  27244. s&@abs_builddir@&$ac_abs_builddir&;t t
  27245. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27246. s&@INSTALL@&$ac_INSTALL&;t t
  27247. $ac_datarootdir_hack
  27248. "
  27249. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27250. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27251. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27252. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27253. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27254. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27256. which seems to be undefined. Please make sure it is defined" >&5
  27257. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27258. which seems to be undefined. Please make sure it is defined" >&2;}
  27259. rm -f "$ac_tmp/stdin"
  27260. case $ac_file in
  27261. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27262. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27263. esac \
  27264. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27265. ;;
  27266. :H)
  27267. #
  27268. # CONFIG_HEADER
  27269. #
  27270. if test x"$ac_file" != x-; then
  27271. {
  27272. printf "%s\n" "/* $configure_input */" >&1 \
  27273. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27274. } >"$ac_tmp/config.h" \
  27275. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27276. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27278. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27279. else
  27280. rm -f "$ac_file"
  27281. mv "$ac_tmp/config.h" "$ac_file" \
  27282. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27283. fi
  27284. else
  27285. printf "%s\n" "/* $configure_input */" >&1 \
  27286. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27287. || as_fn_error $? "could not create -" "$LINENO" 5
  27288. fi
  27289. ;;
  27290. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27291. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27292. ;;
  27293. esac
  27294. case $ac_file$ac_mode in
  27295. "libtool":C)
  27296. # See if we are running on zsh, and set the options that allow our
  27297. # commands through without removal of \ escapes.
  27298. if test -n "${ZSH_VERSION+set}"; then
  27299. setopt NO_GLOB_SUBST
  27300. fi
  27301. cfgfile=${ofile}T
  27302. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27303. $RM "$cfgfile"
  27304. cat <<_LT_EOF >> "$cfgfile"
  27305. #! $SHELL
  27306. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27307. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27308. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27309. # Provide generalized library-building support services.
  27310. # Written by Gordon Matzigkeit, 1996
  27311. # Copyright (C) 2014 Free Software Foundation, Inc.
  27312. # This is free software; see the source for copying conditions. There is NO
  27313. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27314. # GNU Libtool is free software; you can redistribute it and/or modify
  27315. # it under the terms of the GNU General Public License as published by
  27316. # the Free Software Foundation; either version 2 of of the License, or
  27317. # (at your option) any later version.
  27318. #
  27319. # As a special exception to the GNU General Public License, if you
  27320. # distribute this file as part of a program or library that is built
  27321. # using GNU Libtool, you may include this file under the same
  27322. # distribution terms that you use for the rest of that program.
  27323. #
  27324. # GNU Libtool is distributed in the hope that it will be useful, but
  27325. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27326. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27327. # GNU General Public License for more details.
  27328. #
  27329. # You should have received a copy of the GNU General Public License
  27330. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27331. # The names of the tagged configurations supported by this script.
  27332. available_tags='RC CXX '
  27333. # Configured defaults for sys_lib_dlsearch_path munging.
  27334. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27335. # ### BEGIN LIBTOOL CONFIG
  27336. # Which release of libtool.m4 was used?
  27337. macro_version=$macro_version
  27338. macro_revision=$macro_revision
  27339. # Assembler program.
  27340. AS=$lt_AS
  27341. # DLL creation program.
  27342. DLLTOOL=$lt_DLLTOOL
  27343. # Object dumper program.
  27344. OBJDUMP=$lt_OBJDUMP
  27345. # Whether or not to build shared libraries.
  27346. build_libtool_libs=$enable_shared
  27347. # Whether or not to build static libraries.
  27348. build_old_libs=$enable_static
  27349. # What type of objects to build.
  27350. pic_mode=$pic_mode
  27351. # Whether or not to optimize for fast installation.
  27352. fast_install=$enable_fast_install
  27353. # Shared archive member basename,for filename based shared library versioning on AIX.
  27354. shared_archive_member_spec=$shared_archive_member_spec
  27355. # Shell to use when invoking shell scripts.
  27356. SHELL=$lt_SHELL
  27357. # An echo program that protects backslashes.
  27358. ECHO=$lt_ECHO
  27359. # The PATH separator for the build system.
  27360. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27361. # The host system.
  27362. host_alias=$host_alias
  27363. host=$host
  27364. host_os=$host_os
  27365. # The build system.
  27366. build_alias=$build_alias
  27367. build=$build
  27368. build_os=$build_os
  27369. # A sed program that does not truncate output.
  27370. SED=$lt_SED
  27371. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27372. Xsed="\$SED -e 1s/^X//"
  27373. # A grep program that handles long lines.
  27374. GREP=$lt_GREP
  27375. # An ERE matcher.
  27376. EGREP=$lt_EGREP
  27377. # A literal string matcher.
  27378. FGREP=$lt_FGREP
  27379. # A BSD- or MS-compatible name lister.
  27380. NM=$lt_NM
  27381. # Whether we need soft or hard links.
  27382. LN_S=$lt_LN_S
  27383. # What is the maximum length of a command?
  27384. max_cmd_len=$max_cmd_len
  27385. # Object file suffix (normally "o").
  27386. objext=$ac_objext
  27387. # Executable file suffix (normally "").
  27388. exeext=$exeext
  27389. # whether the shell understands "unset".
  27390. lt_unset=$lt_unset
  27391. # turn spaces into newlines.
  27392. SP2NL=$lt_lt_SP2NL
  27393. # turn newlines into spaces.
  27394. NL2SP=$lt_lt_NL2SP
  27395. # convert \$build file names to \$host format.
  27396. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27397. # convert \$build files to toolchain format.
  27398. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27399. # Method to check whether dependent libraries are shared objects.
  27400. deplibs_check_method=$lt_deplibs_check_method
  27401. # Command to use when deplibs_check_method = "file_magic".
  27402. file_magic_cmd=$lt_file_magic_cmd
  27403. # How to find potential files when deplibs_check_method = "file_magic".
  27404. file_magic_glob=$lt_file_magic_glob
  27405. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27406. want_nocaseglob=$lt_want_nocaseglob
  27407. # Command to associate shared and link libraries.
  27408. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27409. # The archiver.
  27410. AR=$lt_AR
  27411. # Flags to create an archive.
  27412. AR_FLAGS=$lt_AR_FLAGS
  27413. # How to feed a file listing to the archiver.
  27414. archiver_list_spec=$lt_archiver_list_spec
  27415. # A symbol stripping program.
  27416. STRIP=$lt_STRIP
  27417. # Commands used to install an old-style archive.
  27418. RANLIB=$lt_RANLIB
  27419. old_postinstall_cmds=$lt_old_postinstall_cmds
  27420. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27421. # Whether to use a lock for old archive extraction.
  27422. lock_old_archive_extraction=$lock_old_archive_extraction
  27423. # A C compiler.
  27424. LTCC=$lt_CC
  27425. # LTCC compiler flags.
  27426. LTCFLAGS=$lt_CFLAGS
  27427. # Take the output of nm and produce a listing of raw symbols and C names.
  27428. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27429. # Transform the output of nm in a proper C declaration.
  27430. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27431. # Transform the output of nm into a list of symbols to manually relocate.
  27432. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27433. # Transform the output of nm in a C name address pair.
  27434. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27435. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27436. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27437. # The name lister interface.
  27438. nm_interface=$lt_lt_cv_nm_interface
  27439. # Specify filename containing input files for \$NM.
  27440. nm_file_list_spec=$lt_nm_file_list_spec
  27441. # The root where to search for dependent libraries,and where our libraries should be installed.
  27442. lt_sysroot=$lt_sysroot
  27443. # Command to truncate a binary pipe.
  27444. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27445. # The name of the directory that contains temporary libtool files.
  27446. objdir=$objdir
  27447. # Used to examine libraries when file_magic_cmd begins with "file".
  27448. MAGIC_CMD=$MAGIC_CMD
  27449. # Must we lock files when doing compilation?
  27450. need_locks=$lt_need_locks
  27451. # Manifest tool.
  27452. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27453. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27454. DSYMUTIL=$lt_DSYMUTIL
  27455. # Tool to change global to local symbols on Mac OS X.
  27456. NMEDIT=$lt_NMEDIT
  27457. # Tool to manipulate fat objects and archives on Mac OS X.
  27458. LIPO=$lt_LIPO
  27459. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27460. OTOOL=$lt_OTOOL
  27461. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27462. OTOOL64=$lt_OTOOL64
  27463. # Old archive suffix (normally "a").
  27464. libext=$libext
  27465. # Shared library suffix (normally ".so").
  27466. shrext_cmds=$lt_shrext_cmds
  27467. # The commands to extract the exported symbol list from a shared archive.
  27468. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27469. # Variables whose values should be saved in libtool wrapper scripts and
  27470. # restored at link time.
  27471. variables_saved_for_relink=$lt_variables_saved_for_relink
  27472. # Do we need the "lib" prefix for modules?
  27473. need_lib_prefix=$need_lib_prefix
  27474. # Do we need a version for libraries?
  27475. need_version=$need_version
  27476. # Library versioning type.
  27477. version_type=$version_type
  27478. # Shared library runtime path variable.
  27479. runpath_var=$runpath_var
  27480. # Shared library path variable.
  27481. shlibpath_var=$shlibpath_var
  27482. # Is shlibpath searched before the hard-coded library search path?
  27483. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27484. # Format of library name prefix.
  27485. libname_spec=$lt_libname_spec
  27486. # List of archive names. First name is the real one, the rest are links.
  27487. # The last name is the one that the linker finds with -lNAME
  27488. library_names_spec=$lt_library_names_spec
  27489. # The coded name of the library, if different from the real name.
  27490. soname_spec=$lt_soname_spec
  27491. # Permission mode override for installation of shared libraries.
  27492. install_override_mode=$lt_install_override_mode
  27493. # Command to use after installation of a shared archive.
  27494. postinstall_cmds=$lt_postinstall_cmds
  27495. # Command to use after uninstallation of a shared archive.
  27496. postuninstall_cmds=$lt_postuninstall_cmds
  27497. # Commands used to finish a libtool library installation in a directory.
  27498. finish_cmds=$lt_finish_cmds
  27499. # As "finish_cmds", except a single script fragment to be evaled but
  27500. # not shown.
  27501. finish_eval=$lt_finish_eval
  27502. # Whether we should hardcode library paths into libraries.
  27503. hardcode_into_libs=$hardcode_into_libs
  27504. # Compile-time system search path for libraries.
  27505. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27506. # Detected run-time system search path for libraries.
  27507. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27508. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27509. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27510. # Whether dlopen is supported.
  27511. dlopen_support=$enable_dlopen
  27512. # Whether dlopen of programs is supported.
  27513. dlopen_self=$enable_dlopen_self
  27514. # Whether dlopen of statically linked programs is supported.
  27515. dlopen_self_static=$enable_dlopen_self_static
  27516. # Commands to strip libraries.
  27517. old_striplib=$lt_old_striplib
  27518. striplib=$lt_striplib
  27519. # The linker used to build libraries.
  27520. LD=$lt_LD
  27521. # How to create reloadable object files.
  27522. reload_flag=$lt_reload_flag
  27523. reload_cmds=$lt_reload_cmds
  27524. # Commands used to build an old-style archive.
  27525. old_archive_cmds=$lt_old_archive_cmds
  27526. # A language specific compiler.
  27527. CC=$lt_compiler
  27528. # Is the compiler the GNU compiler?
  27529. with_gcc=$GCC
  27530. # Compiler flag to turn off builtin functions.
  27531. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27532. # Additional compiler flags for building library objects.
  27533. pic_flag=$lt_lt_prog_compiler_pic
  27534. # How to pass a linker flag through the compiler.
  27535. wl=$lt_lt_prog_compiler_wl
  27536. # Compiler flag to prevent dynamic linking.
  27537. link_static_flag=$lt_lt_prog_compiler_static
  27538. # Does compiler simultaneously support -c and -o options?
  27539. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27540. # Whether or not to add -lc for building shared libraries.
  27541. build_libtool_need_lc=$archive_cmds_need_lc
  27542. # Whether or not to disallow shared libs when runtime libs are static.
  27543. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27544. # Compiler flag to allow reflexive dlopens.
  27545. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27546. # Compiler flag to generate shared objects directly from archives.
  27547. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27548. # Whether the compiler copes with passing no objects directly.
  27549. compiler_needs_object=$lt_compiler_needs_object
  27550. # Create an old-style archive from a shared archive.
  27551. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27552. # Create a temporary old-style archive to link instead of a shared archive.
  27553. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27554. # Commands used to build a shared archive.
  27555. archive_cmds=$lt_archive_cmds
  27556. archive_expsym_cmds=$lt_archive_expsym_cmds
  27557. # Commands used to build a loadable module if different from building
  27558. # a shared archive.
  27559. module_cmds=$lt_module_cmds
  27560. module_expsym_cmds=$lt_module_expsym_cmds
  27561. # Whether we are building with GNU ld or not.
  27562. with_gnu_ld=$lt_with_gnu_ld
  27563. # Flag that allows shared libraries with undefined symbols to be built.
  27564. allow_undefined_flag=$lt_allow_undefined_flag
  27565. # Flag that enforces no undefined symbols.
  27566. no_undefined_flag=$lt_no_undefined_flag
  27567. # Flag to hardcode \$libdir into a binary during linking.
  27568. # This must work even if \$libdir does not exist
  27569. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27570. # Whether we need a single "-rpath" flag with a separated argument.
  27571. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27572. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27573. # DIR into the resulting binary.
  27574. hardcode_direct=$hardcode_direct
  27575. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27576. # DIR into the resulting binary and the resulting library dependency is
  27577. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27578. # library is relocated.
  27579. hardcode_direct_absolute=$hardcode_direct_absolute
  27580. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27581. # into the resulting binary.
  27582. hardcode_minus_L=$hardcode_minus_L
  27583. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27584. # into the resulting binary.
  27585. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27586. # Set to "yes" if building a shared library automatically hardcodes DIR
  27587. # into the library and all subsequent libraries and executables linked
  27588. # against it.
  27589. hardcode_automatic=$hardcode_automatic
  27590. # Set to yes if linker adds runtime paths of dependent libraries
  27591. # to runtime path list.
  27592. inherit_rpath=$inherit_rpath
  27593. # Whether libtool must link a program against all its dependency libraries.
  27594. link_all_deplibs=$link_all_deplibs
  27595. # Set to "yes" if exported symbols are required.
  27596. always_export_symbols=$always_export_symbols
  27597. # The commands to list exported symbols.
  27598. export_symbols_cmds=$lt_export_symbols_cmds
  27599. # Symbols that should not be listed in the preloaded symbols.
  27600. exclude_expsyms=$lt_exclude_expsyms
  27601. # Symbols that must always be exported.
  27602. include_expsyms=$lt_include_expsyms
  27603. # Commands necessary for linking programs (against libraries) with templates.
  27604. prelink_cmds=$lt_prelink_cmds
  27605. # Commands necessary for finishing linking programs.
  27606. postlink_cmds=$lt_postlink_cmds
  27607. # Specify filename containing input files.
  27608. file_list_spec=$lt_file_list_spec
  27609. # How to hardcode a shared library path into an executable.
  27610. hardcode_action=$hardcode_action
  27611. # The directories searched by this compiler when creating a shared library.
  27612. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27613. # Dependencies to place before and after the objects being linked to
  27614. # create a shared library.
  27615. predep_objects=$lt_predep_objects
  27616. postdep_objects=$lt_postdep_objects
  27617. predeps=$lt_predeps
  27618. postdeps=$lt_postdeps
  27619. # The library search path used internally by the compiler when linking
  27620. # a shared library.
  27621. compiler_lib_search_path=$lt_compiler_lib_search_path
  27622. # ### END LIBTOOL CONFIG
  27623. _LT_EOF
  27624. cat <<'_LT_EOF' >> "$cfgfile"
  27625. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27626. # func_munge_path_list VARIABLE PATH
  27627. # -----------------------------------
  27628. # VARIABLE is name of variable containing _space_ separated list of
  27629. # directories to be munged by the contents of PATH, which is string
  27630. # having a format:
  27631. # "DIR[:DIR]:"
  27632. # string "DIR[ DIR]" will be prepended to VARIABLE
  27633. # ":DIR[:DIR]"
  27634. # string "DIR[ DIR]" will be appended to VARIABLE
  27635. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27636. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27637. # "DIRA[ DIRA]" will be appended to VARIABLE
  27638. # "DIR[:DIR]"
  27639. # VARIABLE will be replaced by "DIR[ DIR]"
  27640. func_munge_path_list ()
  27641. {
  27642. case x$2 in
  27643. x)
  27644. ;;
  27645. *:)
  27646. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27647. ;;
  27648. x:*)
  27649. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27650. ;;
  27651. *::*)
  27652. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27653. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27654. ;;
  27655. *)
  27656. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27657. ;;
  27658. esac
  27659. }
  27660. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27661. func_cc_basename ()
  27662. {
  27663. for cc_temp in $*""; do
  27664. case $cc_temp in
  27665. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27666. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27667. \-*) ;;
  27668. *) break;;
  27669. esac
  27670. done
  27671. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27672. }
  27673. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27674. _LT_EOF
  27675. case $host_os in
  27676. aix3*)
  27677. cat <<\_LT_EOF >> "$cfgfile"
  27678. # AIX sometimes has problems with the GCC collect2 program. For some
  27679. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27680. # vanish in a puff of smoke.
  27681. if test set != "${COLLECT_NAMES+set}"; then
  27682. COLLECT_NAMES=
  27683. export COLLECT_NAMES
  27684. fi
  27685. _LT_EOF
  27686. ;;
  27687. esac
  27688. ltmain=$ac_aux_dir/ltmain.sh
  27689. # We use sed instead of cat because bash on DJGPP gets confused if
  27690. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27691. # text mode, it properly converts lines to CR/LF. This bash problem
  27692. # is reportedly fixed, but why not run on old versions too?
  27693. sed '$q' "$ltmain" >> "$cfgfile" \
  27694. || (rm -f "$cfgfile"; exit 1)
  27695. mv -f "$cfgfile" "$ofile" ||
  27696. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27697. chmod +x "$ofile"
  27698. cat <<_LT_EOF >> "$ofile"
  27699. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27700. # The linker used to build libraries.
  27701. LD=$lt_LD_RC
  27702. # How to create reloadable object files.
  27703. reload_flag=$lt_reload_flag_RC
  27704. reload_cmds=$lt_reload_cmds_RC
  27705. # Commands used to build an old-style archive.
  27706. old_archive_cmds=$lt_old_archive_cmds_RC
  27707. # A language specific compiler.
  27708. CC=$lt_compiler_RC
  27709. # Is the compiler the GNU compiler?
  27710. with_gcc=$GCC_RC
  27711. # Compiler flag to turn off builtin functions.
  27712. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27713. # Additional compiler flags for building library objects.
  27714. pic_flag=$lt_lt_prog_compiler_pic_RC
  27715. # How to pass a linker flag through the compiler.
  27716. wl=$lt_lt_prog_compiler_wl_RC
  27717. # Compiler flag to prevent dynamic linking.
  27718. link_static_flag=$lt_lt_prog_compiler_static_RC
  27719. # Does compiler simultaneously support -c and -o options?
  27720. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27721. # Whether or not to add -lc for building shared libraries.
  27722. build_libtool_need_lc=$archive_cmds_need_lc_RC
  27723. # Whether or not to disallow shared libs when runtime libs are static.
  27724. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  27725. # Compiler flag to allow reflexive dlopens.
  27726. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  27727. # Compiler flag to generate shared objects directly from archives.
  27728. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  27729. # Whether the compiler copes with passing no objects directly.
  27730. compiler_needs_object=$lt_compiler_needs_object_RC
  27731. # Create an old-style archive from a shared archive.
  27732. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  27733. # Create a temporary old-style archive to link instead of a shared archive.
  27734. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  27735. # Commands used to build a shared archive.
  27736. archive_cmds=$lt_archive_cmds_RC
  27737. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  27738. # Commands used to build a loadable module if different from building
  27739. # a shared archive.
  27740. module_cmds=$lt_module_cmds_RC
  27741. module_expsym_cmds=$lt_module_expsym_cmds_RC
  27742. # Whether we are building with GNU ld or not.
  27743. with_gnu_ld=$lt_with_gnu_ld_RC
  27744. # Flag that allows shared libraries with undefined symbols to be built.
  27745. allow_undefined_flag=$lt_allow_undefined_flag_RC
  27746. # Flag that enforces no undefined symbols.
  27747. no_undefined_flag=$lt_no_undefined_flag_RC
  27748. # Flag to hardcode \$libdir into a binary during linking.
  27749. # This must work even if \$libdir does not exist
  27750. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  27751. # Whether we need a single "-rpath" flag with a separated argument.
  27752. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  27753. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27754. # DIR into the resulting binary.
  27755. hardcode_direct=$hardcode_direct_RC
  27756. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27757. # DIR into the resulting binary and the resulting library dependency is
  27758. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27759. # library is relocated.
  27760. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  27761. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27762. # into the resulting binary.
  27763. hardcode_minus_L=$hardcode_minus_L_RC
  27764. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27765. # into the resulting binary.
  27766. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  27767. # Set to "yes" if building a shared library automatically hardcodes DIR
  27768. # into the library and all subsequent libraries and executables linked
  27769. # against it.
  27770. hardcode_automatic=$hardcode_automatic_RC
  27771. # Set to yes if linker adds runtime paths of dependent libraries
  27772. # to runtime path list.
  27773. inherit_rpath=$inherit_rpath_RC
  27774. # Whether libtool must link a program against all its dependency libraries.
  27775. link_all_deplibs=$link_all_deplibs_RC
  27776. # Set to "yes" if exported symbols are required.
  27777. always_export_symbols=$always_export_symbols_RC
  27778. # The commands to list exported symbols.
  27779. export_symbols_cmds=$lt_export_symbols_cmds_RC
  27780. # Symbols that should not be listed in the preloaded symbols.
  27781. exclude_expsyms=$lt_exclude_expsyms_RC
  27782. # Symbols that must always be exported.
  27783. include_expsyms=$lt_include_expsyms_RC
  27784. # Commands necessary for linking programs (against libraries) with templates.
  27785. prelink_cmds=$lt_prelink_cmds_RC
  27786. # Commands necessary for finishing linking programs.
  27787. postlink_cmds=$lt_postlink_cmds_RC
  27788. # Specify filename containing input files.
  27789. file_list_spec=$lt_file_list_spec_RC
  27790. # How to hardcode a shared library path into an executable.
  27791. hardcode_action=$hardcode_action_RC
  27792. # The directories searched by this compiler when creating a shared library.
  27793. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  27794. # Dependencies to place before and after the objects being linked to
  27795. # create a shared library.
  27796. predep_objects=$lt_predep_objects_RC
  27797. postdep_objects=$lt_postdep_objects_RC
  27798. predeps=$lt_predeps_RC
  27799. postdeps=$lt_postdeps_RC
  27800. # The library search path used internally by the compiler when linking
  27801. # a shared library.
  27802. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  27803. # ### END LIBTOOL TAG CONFIG: RC
  27804. _LT_EOF
  27805. cat <<_LT_EOF >> "$ofile"
  27806. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  27807. # The linker used to build libraries.
  27808. LD=$lt_LD_CXX
  27809. # How to create reloadable object files.
  27810. reload_flag=$lt_reload_flag_CXX
  27811. reload_cmds=$lt_reload_cmds_CXX
  27812. # Commands used to build an old-style archive.
  27813. old_archive_cmds=$lt_old_archive_cmds_CXX
  27814. # A language specific compiler.
  27815. CC=$lt_compiler_CXX
  27816. # Is the compiler the GNU compiler?
  27817. with_gcc=$GCC_CXX
  27818. # Compiler flag to turn off builtin functions.
  27819. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  27820. # Additional compiler flags for building library objects.
  27821. pic_flag=$lt_lt_prog_compiler_pic_CXX
  27822. # How to pass a linker flag through the compiler.
  27823. wl=$lt_lt_prog_compiler_wl_CXX
  27824. # Compiler flag to prevent dynamic linking.
  27825. link_static_flag=$lt_lt_prog_compiler_static_CXX
  27826. # Does compiler simultaneously support -c and -o options?
  27827. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  27828. # Whether or not to add -lc for building shared libraries.
  27829. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  27830. # Whether or not to disallow shared libs when runtime libs are static.
  27831. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  27832. # Compiler flag to allow reflexive dlopens.
  27833. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  27834. # Compiler flag to generate shared objects directly from archives.
  27835. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  27836. # Whether the compiler copes with passing no objects directly.
  27837. compiler_needs_object=$lt_compiler_needs_object_CXX
  27838. # Create an old-style archive from a shared archive.
  27839. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  27840. # Create a temporary old-style archive to link instead of a shared archive.
  27841. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  27842. # Commands used to build a shared archive.
  27843. archive_cmds=$lt_archive_cmds_CXX
  27844. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  27845. # Commands used to build a loadable module if different from building
  27846. # a shared archive.
  27847. module_cmds=$lt_module_cmds_CXX
  27848. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  27849. # Whether we are building with GNU ld or not.
  27850. with_gnu_ld=$lt_with_gnu_ld_CXX
  27851. # Flag that allows shared libraries with undefined symbols to be built.
  27852. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  27853. # Flag that enforces no undefined symbols.
  27854. no_undefined_flag=$lt_no_undefined_flag_CXX
  27855. # Flag to hardcode \$libdir into a binary during linking.
  27856. # This must work even if \$libdir does not exist
  27857. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  27858. # Whether we need a single "-rpath" flag with a separated argument.
  27859. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  27860. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27861. # DIR into the resulting binary.
  27862. hardcode_direct=$hardcode_direct_CXX
  27863. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27864. # DIR into the resulting binary and the resulting library dependency is
  27865. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27866. # library is relocated.
  27867. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  27868. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27869. # into the resulting binary.
  27870. hardcode_minus_L=$hardcode_minus_L_CXX
  27871. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27872. # into the resulting binary.
  27873. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  27874. # Set to "yes" if building a shared library automatically hardcodes DIR
  27875. # into the library and all subsequent libraries and executables linked
  27876. # against it.
  27877. hardcode_automatic=$hardcode_automatic_CXX
  27878. # Set to yes if linker adds runtime paths of dependent libraries
  27879. # to runtime path list.
  27880. inherit_rpath=$inherit_rpath_CXX
  27881. # Whether libtool must link a program against all its dependency libraries.
  27882. link_all_deplibs=$link_all_deplibs_CXX
  27883. # Set to "yes" if exported symbols are required.
  27884. always_export_symbols=$always_export_symbols_CXX
  27885. # The commands to list exported symbols.
  27886. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  27887. # Symbols that should not be listed in the preloaded symbols.
  27888. exclude_expsyms=$lt_exclude_expsyms_CXX
  27889. # Symbols that must always be exported.
  27890. include_expsyms=$lt_include_expsyms_CXX
  27891. # Commands necessary for linking programs (against libraries) with templates.
  27892. prelink_cmds=$lt_prelink_cmds_CXX
  27893. # Commands necessary for finishing linking programs.
  27894. postlink_cmds=$lt_postlink_cmds_CXX
  27895. # Specify filename containing input files.
  27896. file_list_spec=$lt_file_list_spec_CXX
  27897. # How to hardcode a shared library path into an executable.
  27898. hardcode_action=$hardcode_action_CXX
  27899. # The directories searched by this compiler when creating a shared library.
  27900. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  27901. # Dependencies to place before and after the objects being linked to
  27902. # create a shared library.
  27903. predep_objects=$lt_predep_objects_CXX
  27904. postdep_objects=$lt_postdep_objects_CXX
  27905. predeps=$lt_predeps_CXX
  27906. postdeps=$lt_postdeps_CXX
  27907. # The library search path used internally by the compiler when linking
  27908. # a shared library.
  27909. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  27910. # ### END LIBTOOL TAG CONFIG: CXX
  27911. _LT_EOF
  27912. ;;
  27913. "sdl2_config":C) chmod a+x sdl2-config ;;
  27914. "summary":C) printf "$SUMMARY" ;;
  27915. esac
  27916. done # for ac_tag
  27917. as_fn_exit 0
  27918. _ACEOF
  27919. ac_clean_files=$ac_clean_files_save
  27920. test $ac_write_fail = 0 ||
  27921. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  27922. # configure is writing to config.log, and then calls config.status.
  27923. # config.status does its own redirection, appending to config.log.
  27924. # Unfortunately, on DOS this fails, as config.log is still kept open
  27925. # by configure, so config.status won't be able to write to it; its
  27926. # output is simply discarded. So we exec the FD to /dev/null,
  27927. # effectively closing config.log, so it can be properly (re)opened and
  27928. # appended to by config.status. When coming back to configure, we
  27929. # need to make the FD available again.
  27930. if test "$no_create" != yes; then
  27931. ac_cs_success=:
  27932. ac_config_status_args=
  27933. test "$silent" = yes &&
  27934. ac_config_status_args="$ac_config_status_args --quiet"
  27935. exec 5>/dev/null
  27936. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  27937. exec 5>>config.log
  27938. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  27939. # would make configure fail if this is the last instruction.
  27940. $ac_cs_success || as_fn_exit 1
  27941. fi
  27942. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  27943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  27944. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  27945. fi