configure 884 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="src/SDL.c"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER_CODE_MODE
  582. WAYLAND_SCANNER
  583. EXTRA_LDFLAGS
  584. BUILD_LDFLAGS
  585. EXTRA_CFLAGS
  586. BUILD_CFLAGS
  587. SDLTEST_OBJECTS
  588. SDLMAIN_OBJECTS
  589. VERSION_OBJECTS
  590. GEN_OBJECTS
  591. GEN_HEADERS
  592. OBJECTS
  593. INCLUDE
  594. ac_aux_dir
  595. ENABLE_STATIC_FALSE
  596. ENABLE_STATIC_TRUE
  597. ENABLE_SHARED_FALSE
  598. ENABLE_SHARED_TRUE
  599. PKGCONFIG_LIBS_PRIV
  600. SDL_RLD_FLAGS
  601. SDL_STATIC_LIBS
  602. SDL_LIBS
  603. SDL_CFLAGS
  604. INSTALL_SDL2_CONFIG
  605. LIBUSB_LIBS
  606. LIBUSB_CFLAGS
  607. IBUS_LIBS
  608. IBUS_CFLAGS
  609. DBUS_LIBS
  610. DBUS_CFLAGS
  611. LIBGBM_LIBS
  612. LIBGBM_CFLAGS
  613. LIBDRM_LIBS
  614. LIBDRM_CFLAGS
  615. DIRECTFB_LIBS
  616. DIRECTFB_CFLAGS
  617. X_EXTRA_LIBS
  618. X_LIBS
  619. X_PRE_LIBS
  620. X_CFLAGS
  621. XMKMF
  622. RPI_LIBS
  623. RPI_CFLAGS
  624. DECOR_LIBS
  625. DECOR_CFLAGS
  626. FUSIONSOUND_LIBS
  627. FUSIONSOUND_CFLAGS
  628. ARTSCONFIG
  629. PULSEAUDIO_LIBS
  630. PULSEAUDIO_CFLAGS
  631. PIPEWIRE_LIBS
  632. PIPEWIRE_CFLAGS
  633. ESD_LIBS
  634. ESD_CFLAGS
  635. ESD_CONFIG
  636. JACK_LIBS
  637. JACK_CFLAGS
  638. ALSA_LIBS
  639. ALSA_CFLAGS
  640. POW_LIB
  641. LIBOBJS
  642. ALLOCA
  643. LIBTOOLLINKERTAG
  644. LINKER
  645. PKG_CONFIG_LIBDIR
  646. PKG_CONFIG_PATH
  647. PKG_CONFIG
  648. SET_MAKE
  649. INSTALL_DATA
  650. INSTALL_SCRIPT
  651. INSTALL_PROGRAM
  652. CXXCPP
  653. ac_ct_CXX
  654. CXXFLAGS
  655. CXX
  656. LT_AGE
  657. LT_REVISION
  658. LT_CURRENT
  659. LT_RELEASE
  660. RC
  661. CPP
  662. LT_SYS_LIBRARY_PATH
  663. OTOOL64
  664. OTOOL
  665. LIPO
  666. NMEDIT
  667. DSYMUTIL
  668. MANIFEST_TOOL
  669. AWK
  670. RANLIB
  671. STRIP
  672. ac_ct_AR
  673. AR
  674. LN_S
  675. NM
  676. ac_ct_DUMPBIN
  677. DUMPBIN
  678. LD
  679. FGREP
  680. EGREP
  681. GREP
  682. SED
  683. OBJEXT
  684. EXEEXT
  685. ac_ct_CC
  686. CPPFLAGS
  687. LDFLAGS
  688. CFLAGS
  689. CC
  690. host_os
  691. host_vendor
  692. host_cpu
  693. host
  694. build_os
  695. build_vendor
  696. build_cpu
  697. build
  698. LIBTOOL
  699. OBJDUMP
  700. DLLTOOL
  701. AS
  702. SDL_VERSION
  703. SDL_BINARY_AGE
  704. SDL_INTERFACE_AGE
  705. SDL_MICRO_VERSION
  706. SDL_MINOR_VERSION
  707. SDL_MAJOR_VERSION
  708. target_alias
  709. host_alias
  710. build_alias
  711. LIBS
  712. ECHO_T
  713. ECHO_N
  714. ECHO_C
  715. DEFS
  716. mandir
  717. localedir
  718. libdir
  719. psdir
  720. pdfdir
  721. dvidir
  722. htmldir
  723. infodir
  724. docdir
  725. oldincludedir
  726. includedir
  727. localstatedir
  728. sharedstatedir
  729. sysconfdir
  730. datadir
  731. datarootdir
  732. libexecdir
  733. sbindir
  734. bindir
  735. program_transform_name
  736. prefix
  737. exec_prefix
  738. PACKAGE_URL
  739. PACKAGE_BUGREPORT
  740. PACKAGE_STRING
  741. PACKAGE_VERSION
  742. PACKAGE_TARNAME
  743. PACKAGE_NAME
  744. PATH_SEPARATOR
  745. SHELL'
  746. ac_subst_files=''
  747. ac_user_opts='
  748. enable_option_checking
  749. enable_shared
  750. enable_static
  751. with_pic
  752. enable_fast_install
  753. with_aix_soname
  754. with_gnu_ld
  755. with_sysroot
  756. enable_libtool_lock
  757. enable_assertions
  758. enable_dependency_tracking
  759. enable_libc
  760. enable_gcc_atomics
  761. enable_atomic
  762. enable_audio
  763. enable_video
  764. enable_render
  765. enable_events
  766. enable_joystick
  767. enable_haptic
  768. enable_hidapi
  769. enable_sensor
  770. enable_power
  771. enable_filesystem
  772. enable_threads
  773. enable_timers
  774. enable_file
  775. enable_misc
  776. enable_locale
  777. enable_loadso
  778. enable_cpuinfo
  779. enable_assembly
  780. enable_ssemath
  781. enable_mmx
  782. enable_3dnow
  783. enable_sse
  784. enable_sse2
  785. enable_sse3
  786. enable_altivec
  787. enable_oss
  788. enable_alsa
  789. with_alsa_prefix
  790. with_alsa_inc_prefix
  791. enable_alsatest
  792. enable_alsa_shared
  793. enable_jack
  794. enable_jack_shared
  795. enable_esd
  796. with_esd_prefix
  797. with_esd_exec_prefix
  798. enable_esdtest
  799. enable_esd_shared
  800. enable_pipewire
  801. enable_pipewire_shared
  802. enable_pulseaudio
  803. enable_pulseaudio_shared
  804. enable_arts
  805. enable_arts_shared
  806. enable_nas
  807. enable_nas_shared
  808. enable_sndio
  809. enable_sndio_shared
  810. enable_fusionsound
  811. enable_fusionsound_shared
  812. enable_diskaudio
  813. enable_dummyaudio
  814. enable_libsamplerate
  815. enable_libsamplerate_shared
  816. enable_arm_simd
  817. enable_arm_neon
  818. enable_video_wayland
  819. enable_video_wayland_qt_touch
  820. enable_wayland_shared
  821. enable_libdecor
  822. enable_libdecor_shared
  823. enable_video_rpi
  824. enable_video_x11
  825. with_x
  826. enable_x11_shared
  827. enable_video_x11_xcursor
  828. enable_video_x11_xdbe
  829. enable_video_x11_xinput
  830. enable_video_x11_xfixes
  831. enable_video_x11_xrandr
  832. enable_video_x11_scrnsaver
  833. enable_video_x11_xshape
  834. enable_video_vivante
  835. enable_video_cocoa
  836. enable_video_metal
  837. enable_render_metal
  838. enable_video_directfb
  839. enable_directfb_shared
  840. enable_video_kmsdrm
  841. enable_kmsdrm_shared
  842. enable_video_dummy
  843. enable_video_offscreen
  844. enable_video_opengl
  845. enable_video_opengles
  846. enable_video_opengles1
  847. enable_video_opengles2
  848. enable_video_vulkan
  849. enable_libudev
  850. enable_dbus
  851. enable_ime
  852. enable_ibus
  853. enable_fcitx
  854. enable_joystick_mfi
  855. enable_pthreads
  856. enable_pthread_sem
  857. enable_directx
  858. enable_xinput
  859. enable_wasapi
  860. enable_hidapi_joystick
  861. enable_hidapi_libusb
  862. enable_clock_gettime
  863. enable_rpath
  864. enable_backgrounding_signal
  865. enable_foregrounding_signal
  866. enable_joystick_virtual
  867. enable_render_d3d
  868. enable_sdl2_config
  869. '
  870. ac_precious_vars='build_alias
  871. host_alias
  872. target_alias
  873. CC
  874. CFLAGS
  875. LDFLAGS
  876. LIBS
  877. CPPFLAGS
  878. LT_SYS_LIBRARY_PATH
  879. CPP
  880. CXX
  881. CXXFLAGS
  882. CCC
  883. CXXCPP
  884. PKG_CONFIG
  885. PKG_CONFIG_PATH
  886. PKG_CONFIG_LIBDIR
  887. JACK_CFLAGS
  888. JACK_LIBS
  889. PIPEWIRE_CFLAGS
  890. PIPEWIRE_LIBS
  891. PULSEAUDIO_CFLAGS
  892. PULSEAUDIO_LIBS
  893. FUSIONSOUND_CFLAGS
  894. FUSIONSOUND_LIBS
  895. DECOR_CFLAGS
  896. DECOR_LIBS
  897. RPI_CFLAGS
  898. RPI_LIBS
  899. XMKMF
  900. DIRECTFB_CFLAGS
  901. DIRECTFB_LIBS
  902. LIBDRM_CFLAGS
  903. LIBDRM_LIBS
  904. LIBGBM_CFLAGS
  905. LIBGBM_LIBS
  906. DBUS_CFLAGS
  907. DBUS_LIBS
  908. IBUS_CFLAGS
  909. IBUS_LIBS
  910. LIBUSB_CFLAGS
  911. LIBUSB_LIBS'
  912. # Initialize some variables set by options.
  913. ac_init_help=
  914. ac_init_version=false
  915. ac_unrecognized_opts=
  916. ac_unrecognized_sep=
  917. # The variables have the same names as the options, with
  918. # dashes changed to underlines.
  919. cache_file=/dev/null
  920. exec_prefix=NONE
  921. no_create=
  922. no_recursion=
  923. prefix=NONE
  924. program_prefix=NONE
  925. program_suffix=NONE
  926. program_transform_name=s,x,x,
  927. silent=
  928. site=
  929. srcdir=
  930. verbose=
  931. x_includes=NONE
  932. x_libraries=NONE
  933. # Installation directory options.
  934. # These are left unexpanded so users can "make install exec_prefix=/foo"
  935. # and all the variables that are supposed to be based on exec_prefix
  936. # by default will actually change.
  937. # Use braces instead of parens because sh, perl, etc. also accept them.
  938. # (The list follows the same order as the GNU Coding Standards.)
  939. bindir='${exec_prefix}/bin'
  940. sbindir='${exec_prefix}/sbin'
  941. libexecdir='${exec_prefix}/libexec'
  942. datarootdir='${prefix}/share'
  943. datadir='${datarootdir}'
  944. sysconfdir='${prefix}/etc'
  945. sharedstatedir='${prefix}/com'
  946. localstatedir='${prefix}/var'
  947. includedir='${prefix}/include'
  948. oldincludedir='/usr/include'
  949. docdir='${datarootdir}/doc/${PACKAGE}'
  950. infodir='${datarootdir}/info'
  951. htmldir='${docdir}'
  952. dvidir='${docdir}'
  953. pdfdir='${docdir}'
  954. psdir='${docdir}'
  955. libdir='${exec_prefix}/lib'
  956. localedir='${datarootdir}/locale'
  957. mandir='${datarootdir}/man'
  958. ac_prev=
  959. ac_dashdash=
  960. for ac_option
  961. do
  962. # If the previous option needs an argument, assign it.
  963. if test -n "$ac_prev"; then
  964. eval $ac_prev=\$ac_option
  965. ac_prev=
  966. continue
  967. fi
  968. case $ac_option in
  969. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  970. *=) ac_optarg= ;;
  971. *) ac_optarg=yes ;;
  972. esac
  973. # Accept the important Cygnus configure options, so we can diagnose typos.
  974. case $ac_dashdash$ac_option in
  975. --)
  976. ac_dashdash=yes ;;
  977. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  978. ac_prev=bindir ;;
  979. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  980. bindir=$ac_optarg ;;
  981. -build | --build | --buil | --bui | --bu)
  982. ac_prev=build_alias ;;
  983. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  984. build_alias=$ac_optarg ;;
  985. -cache-file | --cache-file | --cache-fil | --cache-fi \
  986. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  987. ac_prev=cache_file ;;
  988. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  989. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  990. cache_file=$ac_optarg ;;
  991. --config-cache | -C)
  992. cache_file=config.cache ;;
  993. -datadir | --datadir | --datadi | --datad)
  994. ac_prev=datadir ;;
  995. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  996. datadir=$ac_optarg ;;
  997. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  998. | --dataroo | --dataro | --datar)
  999. ac_prev=datarootdir ;;
  1000. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1001. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1002. datarootdir=$ac_optarg ;;
  1003. -disable-* | --disable-*)
  1004. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1005. # Reject names that are not valid shell variable names.
  1006. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1007. as_fn_error $? "invalid feature name: $ac_useropt"
  1008. ac_useropt_orig=$ac_useropt
  1009. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1010. case $ac_user_opts in
  1011. *"
  1012. "enable_$ac_useropt"
  1013. "*) ;;
  1014. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1015. ac_unrecognized_sep=', ';;
  1016. esac
  1017. eval enable_$ac_useropt=no ;;
  1018. -docdir | --docdir | --docdi | --doc | --do)
  1019. ac_prev=docdir ;;
  1020. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1021. docdir=$ac_optarg ;;
  1022. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1023. ac_prev=dvidir ;;
  1024. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1025. dvidir=$ac_optarg ;;
  1026. -enable-* | --enable-*)
  1027. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1028. # Reject names that are not valid shell variable names.
  1029. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1030. as_fn_error $? "invalid feature name: $ac_useropt"
  1031. ac_useropt_orig=$ac_useropt
  1032. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1033. case $ac_user_opts in
  1034. *"
  1035. "enable_$ac_useropt"
  1036. "*) ;;
  1037. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1038. ac_unrecognized_sep=', ';;
  1039. esac
  1040. eval enable_$ac_useropt=\$ac_optarg ;;
  1041. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1042. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1043. | --exec | --exe | --ex)
  1044. ac_prev=exec_prefix ;;
  1045. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1046. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1047. | --exec=* | --exe=* | --ex=*)
  1048. exec_prefix=$ac_optarg ;;
  1049. -gas | --gas | --ga | --g)
  1050. # Obsolete; use --with-gas.
  1051. with_gas=yes ;;
  1052. -help | --help | --hel | --he | -h)
  1053. ac_init_help=long ;;
  1054. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1055. ac_init_help=recursive ;;
  1056. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1057. ac_init_help=short ;;
  1058. -host | --host | --hos | --ho)
  1059. ac_prev=host_alias ;;
  1060. -host=* | --host=* | --hos=* | --ho=*)
  1061. host_alias=$ac_optarg ;;
  1062. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1063. ac_prev=htmldir ;;
  1064. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1065. | --ht=*)
  1066. htmldir=$ac_optarg ;;
  1067. -includedir | --includedir | --includedi | --included | --include \
  1068. | --includ | --inclu | --incl | --inc)
  1069. ac_prev=includedir ;;
  1070. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1071. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1072. includedir=$ac_optarg ;;
  1073. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1074. ac_prev=infodir ;;
  1075. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1076. infodir=$ac_optarg ;;
  1077. -libdir | --libdir | --libdi | --libd)
  1078. ac_prev=libdir ;;
  1079. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1080. libdir=$ac_optarg ;;
  1081. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1082. | --libexe | --libex | --libe)
  1083. ac_prev=libexecdir ;;
  1084. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1085. | --libexe=* | --libex=* | --libe=*)
  1086. libexecdir=$ac_optarg ;;
  1087. -localedir | --localedir | --localedi | --localed | --locale)
  1088. ac_prev=localedir ;;
  1089. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1090. localedir=$ac_optarg ;;
  1091. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1092. | --localstate | --localstat | --localsta | --localst | --locals)
  1093. ac_prev=localstatedir ;;
  1094. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1095. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1096. localstatedir=$ac_optarg ;;
  1097. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1098. ac_prev=mandir ;;
  1099. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1100. mandir=$ac_optarg ;;
  1101. -nfp | --nfp | --nf)
  1102. # Obsolete; use --without-fp.
  1103. with_fp=no ;;
  1104. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1105. | --no-cr | --no-c | -n)
  1106. no_create=yes ;;
  1107. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1108. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1109. no_recursion=yes ;;
  1110. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1111. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1112. | --oldin | --oldi | --old | --ol | --o)
  1113. ac_prev=oldincludedir ;;
  1114. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1115. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1116. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1117. oldincludedir=$ac_optarg ;;
  1118. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1119. ac_prev=prefix ;;
  1120. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1121. prefix=$ac_optarg ;;
  1122. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1123. | --program-pre | --program-pr | --program-p)
  1124. ac_prev=program_prefix ;;
  1125. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1126. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1127. program_prefix=$ac_optarg ;;
  1128. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1129. | --program-suf | --program-su | --program-s)
  1130. ac_prev=program_suffix ;;
  1131. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1132. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1133. program_suffix=$ac_optarg ;;
  1134. -program-transform-name | --program-transform-name \
  1135. | --program-transform-nam | --program-transform-na \
  1136. | --program-transform-n | --program-transform- \
  1137. | --program-transform | --program-transfor \
  1138. | --program-transfo | --program-transf \
  1139. | --program-trans | --program-tran \
  1140. | --progr-tra | --program-tr | --program-t)
  1141. ac_prev=program_transform_name ;;
  1142. -program-transform-name=* | --program-transform-name=* \
  1143. | --program-transform-nam=* | --program-transform-na=* \
  1144. | --program-transform-n=* | --program-transform-=* \
  1145. | --program-transform=* | --program-transfor=* \
  1146. | --program-transfo=* | --program-transf=* \
  1147. | --program-trans=* | --program-tran=* \
  1148. | --progr-tra=* | --program-tr=* | --program-t=*)
  1149. program_transform_name=$ac_optarg ;;
  1150. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1151. ac_prev=pdfdir ;;
  1152. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1153. pdfdir=$ac_optarg ;;
  1154. -psdir | --psdir | --psdi | --psd | --ps)
  1155. ac_prev=psdir ;;
  1156. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1157. psdir=$ac_optarg ;;
  1158. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1159. | -silent | --silent | --silen | --sile | --sil)
  1160. silent=yes ;;
  1161. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1162. ac_prev=sbindir ;;
  1163. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1164. | --sbi=* | --sb=*)
  1165. sbindir=$ac_optarg ;;
  1166. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1167. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1168. | --sharedst | --shareds | --shared | --share | --shar \
  1169. | --sha | --sh)
  1170. ac_prev=sharedstatedir ;;
  1171. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1172. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1173. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1174. | --sha=* | --sh=*)
  1175. sharedstatedir=$ac_optarg ;;
  1176. -site | --site | --sit)
  1177. ac_prev=site ;;
  1178. -site=* | --site=* | --sit=*)
  1179. site=$ac_optarg ;;
  1180. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1181. ac_prev=srcdir ;;
  1182. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1183. srcdir=$ac_optarg ;;
  1184. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1185. | --syscon | --sysco | --sysc | --sys | --sy)
  1186. ac_prev=sysconfdir ;;
  1187. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1188. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1189. sysconfdir=$ac_optarg ;;
  1190. -target | --target | --targe | --targ | --tar | --ta | --t)
  1191. ac_prev=target_alias ;;
  1192. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1193. target_alias=$ac_optarg ;;
  1194. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1195. verbose=yes ;;
  1196. -version | --version | --versio | --versi | --vers | -V)
  1197. ac_init_version=: ;;
  1198. -with-* | --with-*)
  1199. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1200. # Reject names that are not valid shell variable names.
  1201. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1202. as_fn_error $? "invalid package name: $ac_useropt"
  1203. ac_useropt_orig=$ac_useropt
  1204. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1205. case $ac_user_opts in
  1206. *"
  1207. "with_$ac_useropt"
  1208. "*) ;;
  1209. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1210. ac_unrecognized_sep=', ';;
  1211. esac
  1212. eval with_$ac_useropt=\$ac_optarg ;;
  1213. -without-* | --without-*)
  1214. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1215. # Reject names that are not valid shell variable names.
  1216. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1217. as_fn_error $? "invalid package name: $ac_useropt"
  1218. ac_useropt_orig=$ac_useropt
  1219. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1220. case $ac_user_opts in
  1221. *"
  1222. "with_$ac_useropt"
  1223. "*) ;;
  1224. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1225. ac_unrecognized_sep=', ';;
  1226. esac
  1227. eval with_$ac_useropt=no ;;
  1228. --x)
  1229. # Obsolete; use --with-x.
  1230. with_x=yes ;;
  1231. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1232. | --x-incl | --x-inc | --x-in | --x-i)
  1233. ac_prev=x_includes ;;
  1234. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1235. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1236. x_includes=$ac_optarg ;;
  1237. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1238. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1239. ac_prev=x_libraries ;;
  1240. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1241. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1242. x_libraries=$ac_optarg ;;
  1243. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1244. Try \`$0 --help' for more information"
  1245. ;;
  1246. *=*)
  1247. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1248. # Reject names that are not valid shell variable names.
  1249. case $ac_envvar in #(
  1250. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1251. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1252. esac
  1253. eval $ac_envvar=\$ac_optarg
  1254. export $ac_envvar ;;
  1255. *)
  1256. # FIXME: should be removed in autoconf 3.0.
  1257. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1258. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1259. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1260. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1261. ;;
  1262. esac
  1263. done
  1264. if test -n "$ac_prev"; then
  1265. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1266. as_fn_error $? "missing argument to $ac_option"
  1267. fi
  1268. if test -n "$ac_unrecognized_opts"; then
  1269. case $enable_option_checking in
  1270. no) ;;
  1271. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1272. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1273. esac
  1274. fi
  1275. # Check all directory arguments for consistency.
  1276. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1277. datadir sysconfdir sharedstatedir localstatedir includedir \
  1278. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1279. libdir localedir mandir
  1280. do
  1281. eval ac_val=\$$ac_var
  1282. # Remove trailing slashes.
  1283. case $ac_val in
  1284. */ )
  1285. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1286. eval $ac_var=\$ac_val;;
  1287. esac
  1288. # Be sure to have absolute directory names.
  1289. case $ac_val in
  1290. [\\/$]* | ?:[\\/]* ) continue;;
  1291. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1292. esac
  1293. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1294. done
  1295. # There might be people who depend on the old broken behavior: `$host'
  1296. # used to hold the argument of --host etc.
  1297. # FIXME: To remove some day.
  1298. build=$build_alias
  1299. host=$host_alias
  1300. target=$target_alias
  1301. # FIXME: To remove some day.
  1302. if test "x$host_alias" != x; then
  1303. if test "x$build_alias" = x; then
  1304. cross_compiling=maybe
  1305. elif test "x$build_alias" != "x$host_alias"; then
  1306. cross_compiling=yes
  1307. fi
  1308. fi
  1309. ac_tool_prefix=
  1310. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1311. test "$silent" = yes && exec 6>/dev/null
  1312. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1313. ac_ls_di=`ls -di .` &&
  1314. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1315. as_fn_error $? "working directory cannot be determined"
  1316. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1317. as_fn_error $? "pwd does not report name of working directory"
  1318. # Find the source files, if location was not specified.
  1319. if test -z "$srcdir"; then
  1320. ac_srcdir_defaulted=yes
  1321. # Try the directory containing this script, then the parent directory.
  1322. ac_confdir=`$as_dirname -- "$as_myself" ||
  1323. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1324. X"$as_myself" : 'X\(//\)[^/]' \| \
  1325. X"$as_myself" : 'X\(//\)$' \| \
  1326. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1327. $as_echo X"$as_myself" |
  1328. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1329. s//\1/
  1330. q
  1331. }
  1332. /^X\(\/\/\)[^/].*/{
  1333. s//\1/
  1334. q
  1335. }
  1336. /^X\(\/\/\)$/{
  1337. s//\1/
  1338. q
  1339. }
  1340. /^X\(\/\).*/{
  1341. s//\1/
  1342. q
  1343. }
  1344. s/.*/./; q'`
  1345. srcdir=$ac_confdir
  1346. if test ! -r "$srcdir/$ac_unique_file"; then
  1347. srcdir=..
  1348. fi
  1349. else
  1350. ac_srcdir_defaulted=no
  1351. fi
  1352. if test ! -r "$srcdir/$ac_unique_file"; then
  1353. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1354. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1355. fi
  1356. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1357. ac_abs_confdir=`(
  1358. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1359. pwd)`
  1360. # When building in place, set srcdir=.
  1361. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1362. srcdir=.
  1363. fi
  1364. # Remove unnecessary trailing slashes from srcdir.
  1365. # Double slashes in file names in object file debugging info
  1366. # mess up M-x gdb in Emacs.
  1367. case $srcdir in
  1368. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1369. esac
  1370. for ac_var in $ac_precious_vars; do
  1371. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1372. eval ac_env_${ac_var}_value=\$${ac_var}
  1373. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1374. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1375. done
  1376. #
  1377. # Report the --help message.
  1378. #
  1379. if test "$ac_init_help" = "long"; then
  1380. # Omit some internal or obsolete options to make the list less imposing.
  1381. # This message is too long to be a string in the A/UX 3.1 sh.
  1382. cat <<_ACEOF
  1383. \`configure' configures this package to adapt to many kinds of systems.
  1384. Usage: $0 [OPTION]... [VAR=VALUE]...
  1385. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1386. VAR=VALUE. See below for descriptions of some of the useful variables.
  1387. Defaults for the options are specified in brackets.
  1388. Configuration:
  1389. -h, --help display this help and exit
  1390. --help=short display options specific to this package
  1391. --help=recursive display the short help of all the included packages
  1392. -V, --version display version information and exit
  1393. -q, --quiet, --silent do not print \`checking ...' messages
  1394. --cache-file=FILE cache test results in FILE [disabled]
  1395. -C, --config-cache alias for \`--cache-file=config.cache'
  1396. -n, --no-create do not create output files
  1397. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1398. Installation directories:
  1399. --prefix=PREFIX install architecture-independent files in PREFIX
  1400. [$ac_default_prefix]
  1401. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1402. [PREFIX]
  1403. By default, \`make install' will install all the files in
  1404. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1405. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1406. for instance \`--prefix=\$HOME'.
  1407. For better control, use the options below.
  1408. Fine tuning of the installation directories:
  1409. --bindir=DIR user executables [EPREFIX/bin]
  1410. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1411. --libexecdir=DIR program executables [EPREFIX/libexec]
  1412. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1413. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1414. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1415. --libdir=DIR object code libraries [EPREFIX/lib]
  1416. --includedir=DIR C header files [PREFIX/include]
  1417. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1418. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1419. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1420. --infodir=DIR info documentation [DATAROOTDIR/info]
  1421. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1422. --mandir=DIR man documentation [DATAROOTDIR/man]
  1423. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1424. --htmldir=DIR html documentation [DOCDIR]
  1425. --dvidir=DIR dvi documentation [DOCDIR]
  1426. --pdfdir=DIR pdf documentation [DOCDIR]
  1427. --psdir=DIR ps documentation [DOCDIR]
  1428. _ACEOF
  1429. cat <<\_ACEOF
  1430. X features:
  1431. --x-includes=DIR X include files are in DIR
  1432. --x-libraries=DIR X library files are in DIR
  1433. System types:
  1434. --build=BUILD configure for building on BUILD [guessed]
  1435. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1436. _ACEOF
  1437. fi
  1438. if test -n "$ac_init_help"; then
  1439. cat <<\_ACEOF
  1440. Optional Features:
  1441. --disable-option-checking ignore unrecognized --enable/--with options
  1442. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1443. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1444. --enable-shared[=PKGS] build shared libraries [default=yes]
  1445. --enable-static[=PKGS] build static libraries [default=yes]
  1446. --enable-fast-install[=PKGS]
  1447. optimize for fast installation [default=yes]
  1448. --disable-libtool-lock avoid locking (might break parallel builds)
  1449. --enable-assertions Enable internal sanity checks
  1450. (auto/disabled/release/enabled/paranoid)
  1451. [default=auto]
  1452. --enable-dependency-tracking
  1453. Use gcc -MMD -MT dependency tracking [default=yes]
  1454. --enable-libc Use the system C library [default=yes]
  1455. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1456. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1457. --enable-audio Enable the audio subsystem [default=yes]
  1458. --enable-video Enable the video subsystem [default=yes]
  1459. --enable-render Enable the render subsystem [default=yes]
  1460. --enable-events Enable the events subsystem [default=yes]
  1461. --enable-joystick Enable the joystick subsystem [default=yes]
  1462. --enable-haptic Enable the haptic (force feedback) subsystem
  1463. [default=yes]
  1464. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1465. --enable-sensor Enable the sensor subsystem [default=yes]
  1466. --enable-power Enable the power subsystem [default=yes]
  1467. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1468. --enable-threads Enable the threading subsystem [default=yes]
  1469. --enable-timers Enable the timer subsystem [default=yes]
  1470. --enable-file Enable the file subsystem [default=yes]
  1471. --enable-misc Enable the misc subsystem [default=yes]
  1472. --enable-locale Enable the locale subsystem [default=yes]
  1473. --enable-loadso Enable the shared object loading subsystem
  1474. [default=yes]
  1475. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1476. --enable-assembly Enable assembly routines [default=yes]
  1477. --enable-ssemath Allow GCC to use SSE floating point math
  1478. [default=maybe]
  1479. --enable-mmx use MMX assembly routines [default=yes]
  1480. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1481. --enable-sse use SSE assembly routines [default=yes]
  1482. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1483. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1484. --enable-altivec use Altivec assembly routines [default=yes]
  1485. --enable-oss support the OSS audio API [default=maybe]
  1486. --enable-alsa support the ALSA audio API [default=yes]
  1487. --disable-alsatest Do not try to compile and run a test Alsa program
  1488. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1489. --enable-jack use JACK audio [default=yes]
  1490. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1491. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1492. --disable-esdtest Do not try to compile and run a test ESD program
  1493. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1494. --enable-pipewire use Pipewire audio [default=yes]
  1495. --enable-pipewire-shared
  1496. dynamically load Pipewire support [default=yes]
  1497. --enable-pulseaudio use PulseAudio [default=yes]
  1498. --enable-pulseaudio-shared
  1499. dynamically load PulseAudio support [default=yes]
  1500. --enable-arts support the Analog Real Time Synthesizer
  1501. [default=yes]
  1502. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1503. --enable-nas support the NAS audio API [default=yes]
  1504. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1505. --enable-sndio support the sndio audio API [default=yes]
  1506. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1507. --enable-fusionsound use FusionSound audio driver [default=no]
  1508. --enable-fusionsound-shared
  1509. dynamically load fusionsound audio support
  1510. [default=yes]
  1511. --enable-diskaudio support the disk writer audio driver [default=yes]
  1512. --enable-dummyaudio support the dummy audio driver [default=yes]
  1513. --enable-libsamplerate use libsamplerate for audio rate conversion
  1514. [default=yes]
  1515. --enable-libsamplerate-shared
  1516. dynamically load libsamplerate [default=yes]
  1517. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1518. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1519. --enable-video-wayland use Wayland video driver [default=yes]
  1520. --enable-video-wayland-qt-touch
  1521. QtWayland server support for Wayland video driver
  1522. [default=yes]
  1523. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1524. --enable-libdecor use libdecor for Wayland client-side decorations
  1525. [default=yes]
  1526. --enable-libdecor-shared
  1527. dynamically load libdecor [default=yes]
  1528. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1529. --enable-video-x11 use X11 video driver [default=yes]
  1530. --enable-x11-shared dynamically load X11 support [default=maybe]
  1531. --enable-video-x11-xcursor
  1532. enable X11 Xcursor support [default=yes]
  1533. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1534. --enable-video-x11-xinput
  1535. enable X11 XInput extension for manymouse, tablets,
  1536. etc [default=yes]
  1537. --enable-video-x11-xfixes
  1538. enable X11 Xfixes support [default=yes]
  1539. --enable-video-x11-xrandr
  1540. enable X11 Xrandr extension for fullscreen
  1541. [default=yes]
  1542. --enable-video-x11-scrnsaver
  1543. enable X11 screensaver extension [default=yes]
  1544. --enable-video-x11-xshape
  1545. enable X11 XShape support [default=yes]
  1546. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1547. --enable-video-cocoa use Cocoa video driver [default=yes]
  1548. --enable-video-metal include Metal support [default=yes]
  1549. --enable-render-metal enable the Metal render driver [default=yes]
  1550. --enable-video-directfb use DirectFB video driver [default=no]
  1551. --enable-directfb-shared
  1552. dynamically load directfb support [default=yes]
  1553. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1554. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1555. --enable-video-dummy use dummy video driver [default=yes]
  1556. --enable-video-offscreen
  1557. use offscreen video driver [default=no]
  1558. --enable-video-opengl include OpenGL support [default=yes]
  1559. --enable-video-opengles include OpenGL ES support [default=yes]
  1560. --enable-video-opengles1
  1561. include OpenGL ES 1.1 support [default=yes]
  1562. --enable-video-opengles2
  1563. include OpenGL ES 2.0 support [default=yes]
  1564. --enable-video-vulkan include Vulkan support [default=yes]
  1565. --enable-libudev enable libudev support [default=yes]
  1566. --enable-dbus enable D-Bus support [default=yes]
  1567. --enable-ime enable IME support [default=yes]
  1568. --enable-ibus enable IBus support [default=yes]
  1569. --enable-fcitx enable fcitx support [default=yes]
  1570. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1571. --enable-pthreads use POSIX threads for multi-threading
  1572. [default=maybe]
  1573. --enable-pthread-sem use pthread semaphores [default=maybe]
  1574. --enable-directx use DirectX for Windows audio/video [default=yes]
  1575. --enable-xinput use Xinput for Windows [default=yes]
  1576. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1577. --enable-hidapi-joystick
  1578. use HIDAPI for low level joystick drivers
  1579. [default=yes]
  1580. --enable-hidapi-libusb use libusb for low level joystick drivers
  1581. [default=maybe]
  1582. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1583. UNIX [default=yes]
  1584. --enable-rpath use an rpath when linking SDL [default=yes]
  1585. --enable-backgrounding-signal
  1586. number to use for magic backgrounding signal or 'no'
  1587. [default=no]
  1588. --enable-foregrounding-signal
  1589. number to use for magic foregrounding signal or 'no'
  1590. [default=no]
  1591. --enable-joystick-virtual
  1592. enable virtual joystick APIs [default=yes]
  1593. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1594. --enable-sdl2-config Install sdl2-config [default=yes]
  1595. Optional Packages:
  1596. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1597. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1598. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1599. both]
  1600. --with-aix-soname=aix|svr4|both
  1601. shared library versioning (aka "SONAME") variant to
  1602. provide on AIX, [default=aix].
  1603. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1604. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1605. compiler's sysroot if not specified).
  1606. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1607. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1608. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1609. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1610. --with-x use the X Window System
  1611. Some influential environment variables:
  1612. CC C compiler command
  1613. CFLAGS C compiler flags
  1614. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1615. nonstandard directory <lib dir>
  1616. LIBS libraries to pass to the linker, e.g. -l<library>
  1617. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1618. you have headers in a nonstandard directory <include dir>
  1619. LT_SYS_LIBRARY_PATH
  1620. User-defined run-time library search path.
  1621. CPP C preprocessor
  1622. CXX C++ compiler command
  1623. CXXFLAGS C++ compiler flags
  1624. CXXCPP C++ preprocessor
  1625. PKG_CONFIG path to pkg-config utility
  1626. PKG_CONFIG_PATH
  1627. directories to add to pkg-config's search path
  1628. PKG_CONFIG_LIBDIR
  1629. path overriding pkg-config's built-in search path
  1630. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1631. JACK_LIBS linker flags for JACK, overriding pkg-config
  1632. PIPEWIRE_CFLAGS
  1633. C compiler flags for PIPEWIRE, overriding pkg-config
  1634. PIPEWIRE_LIBS
  1635. linker flags for PIPEWIRE, overriding pkg-config
  1636. PULSEAUDIO_CFLAGS
  1637. C compiler flags for PULSEAUDIO, overriding pkg-config
  1638. PULSEAUDIO_LIBS
  1639. linker flags for PULSEAUDIO, overriding pkg-config
  1640. FUSIONSOUND_CFLAGS
  1641. C compiler flags for FUSIONSOUND, overriding pkg-config
  1642. FUSIONSOUND_LIBS
  1643. linker flags for FUSIONSOUND, overriding pkg-config
  1644. DECOR_CFLAGS
  1645. C compiler flags for DECOR, overriding pkg-config
  1646. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1647. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1648. RPI_LIBS linker flags for RPI, overriding pkg-config
  1649. XMKMF Path to xmkmf, Makefile generator for X Window System
  1650. DIRECTFB_CFLAGS
  1651. C compiler flags for DIRECTFB, overriding pkg-config
  1652. DIRECTFB_LIBS
  1653. linker flags for DIRECTFB, overriding pkg-config
  1654. LIBDRM_CFLAGS
  1655. C compiler flags for LIBDRM, overriding pkg-config
  1656. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1657. LIBGBM_CFLAGS
  1658. C compiler flags for LIBGBM, overriding pkg-config
  1659. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1660. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1661. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1662. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1663. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1664. LIBUSB_CFLAGS
  1665. C compiler flags for LIBUSB, overriding pkg-config
  1666. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1667. Use these variables to override the choices made by `configure' or to help
  1668. it to find libraries and programs with nonstandard names/locations.
  1669. Report bugs to the package provider.
  1670. _ACEOF
  1671. ac_status=$?
  1672. fi
  1673. if test "$ac_init_help" = "recursive"; then
  1674. # If there are subdirs, report their specific --help.
  1675. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1676. test -d "$ac_dir" ||
  1677. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1678. continue
  1679. ac_builddir=.
  1680. case "$ac_dir" in
  1681. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1682. *)
  1683. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1684. # A ".." for each directory in $ac_dir_suffix.
  1685. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1686. case $ac_top_builddir_sub in
  1687. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1688. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1689. esac ;;
  1690. esac
  1691. ac_abs_top_builddir=$ac_pwd
  1692. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1693. # for backward compatibility:
  1694. ac_top_builddir=$ac_top_build_prefix
  1695. case $srcdir in
  1696. .) # We are building in place.
  1697. ac_srcdir=.
  1698. ac_top_srcdir=$ac_top_builddir_sub
  1699. ac_abs_top_srcdir=$ac_pwd ;;
  1700. [\\/]* | ?:[\\/]* ) # Absolute name.
  1701. ac_srcdir=$srcdir$ac_dir_suffix;
  1702. ac_top_srcdir=$srcdir
  1703. ac_abs_top_srcdir=$srcdir ;;
  1704. *) # Relative name.
  1705. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1706. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1707. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1708. esac
  1709. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1710. cd "$ac_dir" || { ac_status=$?; continue; }
  1711. # Check for guested configure.
  1712. if test -f "$ac_srcdir/configure.gnu"; then
  1713. echo &&
  1714. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1715. elif test -f "$ac_srcdir/configure"; then
  1716. echo &&
  1717. $SHELL "$ac_srcdir/configure" --help=recursive
  1718. else
  1719. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1720. fi || ac_status=$?
  1721. cd "$ac_pwd" || { ac_status=$?; break; }
  1722. done
  1723. fi
  1724. test -n "$ac_init_help" && exit $ac_status
  1725. if $ac_init_version; then
  1726. cat <<\_ACEOF
  1727. configure
  1728. generated by GNU Autoconf 2.69
  1729. Copyright (C) 2012 Free Software Foundation, Inc.
  1730. This configure script is free software; the Free Software Foundation
  1731. gives unlimited permission to copy, distribute and modify it.
  1732. _ACEOF
  1733. exit
  1734. fi
  1735. ## ------------------------ ##
  1736. ## Autoconf initialization. ##
  1737. ## ------------------------ ##
  1738. # ac_fn_c_try_compile LINENO
  1739. # --------------------------
  1740. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1741. ac_fn_c_try_compile ()
  1742. {
  1743. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1744. rm -f conftest.$ac_objext
  1745. if { { ac_try="$ac_compile"
  1746. case "(($ac_try" in
  1747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1748. *) ac_try_echo=$ac_try;;
  1749. esac
  1750. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1751. $as_echo "$ac_try_echo"; } >&5
  1752. (eval "$ac_compile") 2>conftest.err
  1753. ac_status=$?
  1754. if test -s conftest.err; then
  1755. grep -v '^ *+' conftest.err >conftest.er1
  1756. cat conftest.er1 >&5
  1757. mv -f conftest.er1 conftest.err
  1758. fi
  1759. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1760. test $ac_status = 0; } && {
  1761. test -z "$ac_c_werror_flag" ||
  1762. test ! -s conftest.err
  1763. } && test -s conftest.$ac_objext; then :
  1764. ac_retval=0
  1765. else
  1766. $as_echo "$as_me: failed program was:" >&5
  1767. sed 's/^/| /' conftest.$ac_ext >&5
  1768. ac_retval=1
  1769. fi
  1770. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1771. as_fn_set_status $ac_retval
  1772. } # ac_fn_c_try_compile
  1773. # ac_fn_c_try_link LINENO
  1774. # -----------------------
  1775. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1776. ac_fn_c_try_link ()
  1777. {
  1778. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1779. rm -f conftest.$ac_objext conftest$ac_exeext
  1780. if { { ac_try="$ac_link"
  1781. case "(($ac_try" in
  1782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1783. *) ac_try_echo=$ac_try;;
  1784. esac
  1785. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1786. $as_echo "$ac_try_echo"; } >&5
  1787. (eval "$ac_link") 2>conftest.err
  1788. ac_status=$?
  1789. if test -s conftest.err; then
  1790. grep -v '^ *+' conftest.err >conftest.er1
  1791. cat conftest.er1 >&5
  1792. mv -f conftest.er1 conftest.err
  1793. fi
  1794. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1795. test $ac_status = 0; } && {
  1796. test -z "$ac_c_werror_flag" ||
  1797. test ! -s conftest.err
  1798. } && test -s conftest$ac_exeext && {
  1799. test "$cross_compiling" = yes ||
  1800. test -x conftest$ac_exeext
  1801. }; then :
  1802. ac_retval=0
  1803. else
  1804. $as_echo "$as_me: failed program was:" >&5
  1805. sed 's/^/| /' conftest.$ac_ext >&5
  1806. ac_retval=1
  1807. fi
  1808. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1809. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1810. # interfere with the next link command; also delete a directory that is
  1811. # left behind by Apple's compiler. We do this before executing the actions.
  1812. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1813. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1814. as_fn_set_status $ac_retval
  1815. } # ac_fn_c_try_link
  1816. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1817. # -------------------------------------------------------
  1818. # Tests whether HEADER exists and can be compiled using the include files in
  1819. # INCLUDES, setting the cache variable VAR accordingly.
  1820. ac_fn_c_check_header_compile ()
  1821. {
  1822. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1824. $as_echo_n "checking for $2... " >&6; }
  1825. if eval \${$3+:} false; then :
  1826. $as_echo_n "(cached) " >&6
  1827. else
  1828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1829. /* end confdefs.h. */
  1830. $4
  1831. #include <$2>
  1832. _ACEOF
  1833. if ac_fn_c_try_compile "$LINENO"; then :
  1834. eval "$3=yes"
  1835. else
  1836. eval "$3=no"
  1837. fi
  1838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1839. fi
  1840. eval ac_res=\$$3
  1841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1842. $as_echo "$ac_res" >&6; }
  1843. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1844. } # ac_fn_c_check_header_compile
  1845. # ac_fn_c_try_cpp LINENO
  1846. # ----------------------
  1847. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1848. ac_fn_c_try_cpp ()
  1849. {
  1850. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1851. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1852. case "(($ac_try" in
  1853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1854. *) ac_try_echo=$ac_try;;
  1855. esac
  1856. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1857. $as_echo "$ac_try_echo"; } >&5
  1858. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1859. ac_status=$?
  1860. if test -s conftest.err; then
  1861. grep -v '^ *+' conftest.err >conftest.er1
  1862. cat conftest.er1 >&5
  1863. mv -f conftest.er1 conftest.err
  1864. fi
  1865. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1866. test $ac_status = 0; } > conftest.i && {
  1867. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1868. test ! -s conftest.err
  1869. }; then :
  1870. ac_retval=0
  1871. else
  1872. $as_echo "$as_me: failed program was:" >&5
  1873. sed 's/^/| /' conftest.$ac_ext >&5
  1874. ac_retval=1
  1875. fi
  1876. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1877. as_fn_set_status $ac_retval
  1878. } # ac_fn_c_try_cpp
  1879. # ac_fn_c_try_run LINENO
  1880. # ----------------------
  1881. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1882. # that executables *can* be run.
  1883. ac_fn_c_try_run ()
  1884. {
  1885. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1886. if { { ac_try="$ac_link"
  1887. case "(($ac_try" in
  1888. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1889. *) ac_try_echo=$ac_try;;
  1890. esac
  1891. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1892. $as_echo "$ac_try_echo"; } >&5
  1893. (eval "$ac_link") 2>&5
  1894. ac_status=$?
  1895. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1896. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1897. { { case "(($ac_try" in
  1898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1899. *) ac_try_echo=$ac_try;;
  1900. esac
  1901. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1902. $as_echo "$ac_try_echo"; } >&5
  1903. (eval "$ac_try") 2>&5
  1904. ac_status=$?
  1905. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1906. test $ac_status = 0; }; }; then :
  1907. ac_retval=0
  1908. else
  1909. $as_echo "$as_me: program exited with status $ac_status" >&5
  1910. $as_echo "$as_me: failed program was:" >&5
  1911. sed 's/^/| /' conftest.$ac_ext >&5
  1912. ac_retval=$ac_status
  1913. fi
  1914. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1915. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1916. as_fn_set_status $ac_retval
  1917. } # ac_fn_c_try_run
  1918. # ac_fn_c_check_func LINENO FUNC VAR
  1919. # ----------------------------------
  1920. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1921. ac_fn_c_check_func ()
  1922. {
  1923. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1925. $as_echo_n "checking for $2... " >&6; }
  1926. if eval \${$3+:} false; then :
  1927. $as_echo_n "(cached) " >&6
  1928. else
  1929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1930. /* end confdefs.h. */
  1931. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1932. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1933. #define $2 innocuous_$2
  1934. /* System header to define __stub macros and hopefully few prototypes,
  1935. which can conflict with char $2 (); below.
  1936. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1937. <limits.h> exists even on freestanding compilers. */
  1938. #ifdef __STDC__
  1939. # include <limits.h>
  1940. #else
  1941. # include <assert.h>
  1942. #endif
  1943. #undef $2
  1944. /* Override any GCC internal prototype to avoid an error.
  1945. Use char because int might match the return type of a GCC
  1946. builtin and then its argument prototype would still apply. */
  1947. #ifdef __cplusplus
  1948. extern "C"
  1949. #endif
  1950. char $2 ();
  1951. /* The GNU C library defines this for functions which it implements
  1952. to always fail with ENOSYS. Some functions are actually named
  1953. something starting with __ and the normal name is an alias. */
  1954. #if defined __stub_$2 || defined __stub___$2
  1955. choke me
  1956. #endif
  1957. int
  1958. main ()
  1959. {
  1960. return $2 ();
  1961. ;
  1962. return 0;
  1963. }
  1964. _ACEOF
  1965. if ac_fn_c_try_link "$LINENO"; then :
  1966. eval "$3=yes"
  1967. else
  1968. eval "$3=no"
  1969. fi
  1970. rm -f core conftest.err conftest.$ac_objext \
  1971. conftest$ac_exeext conftest.$ac_ext
  1972. fi
  1973. eval ac_res=\$$3
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1975. $as_echo "$ac_res" >&6; }
  1976. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1977. } # ac_fn_c_check_func
  1978. # ac_fn_cxx_try_compile LINENO
  1979. # ----------------------------
  1980. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1981. ac_fn_cxx_try_compile ()
  1982. {
  1983. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1984. rm -f conftest.$ac_objext
  1985. if { { ac_try="$ac_compile"
  1986. case "(($ac_try" in
  1987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1988. *) ac_try_echo=$ac_try;;
  1989. esac
  1990. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1991. $as_echo "$ac_try_echo"; } >&5
  1992. (eval "$ac_compile") 2>conftest.err
  1993. ac_status=$?
  1994. if test -s conftest.err; then
  1995. grep -v '^ *+' conftest.err >conftest.er1
  1996. cat conftest.er1 >&5
  1997. mv -f conftest.er1 conftest.err
  1998. fi
  1999. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2000. test $ac_status = 0; } && {
  2001. test -z "$ac_cxx_werror_flag" ||
  2002. test ! -s conftest.err
  2003. } && test -s conftest.$ac_objext; then :
  2004. ac_retval=0
  2005. else
  2006. $as_echo "$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_compile
  2013. # ac_fn_cxx_try_cpp LINENO
  2014. # ------------------------
  2015. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2016. ac_fn_cxx_try_cpp ()
  2017. {
  2018. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2019. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2020. case "(($ac_try" in
  2021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2022. *) ac_try_echo=$ac_try;;
  2023. esac
  2024. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2025. $as_echo "$ac_try_echo"; } >&5
  2026. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2027. ac_status=$?
  2028. if test -s conftest.err; then
  2029. grep -v '^ *+' conftest.err >conftest.er1
  2030. cat conftest.er1 >&5
  2031. mv -f conftest.er1 conftest.err
  2032. fi
  2033. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2034. test $ac_status = 0; } > conftest.i && {
  2035. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2036. test ! -s conftest.err
  2037. }; then :
  2038. ac_retval=0
  2039. else
  2040. $as_echo "$as_me: failed program was:" >&5
  2041. sed 's/^/| /' conftest.$ac_ext >&5
  2042. ac_retval=1
  2043. fi
  2044. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2045. as_fn_set_status $ac_retval
  2046. } # ac_fn_cxx_try_cpp
  2047. # ac_fn_cxx_try_link LINENO
  2048. # -------------------------
  2049. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2050. ac_fn_cxx_try_link ()
  2051. {
  2052. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2053. rm -f conftest.$ac_objext conftest$ac_exeext
  2054. if { { ac_try="$ac_link"
  2055. case "(($ac_try" in
  2056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2057. *) ac_try_echo=$ac_try;;
  2058. esac
  2059. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2060. $as_echo "$ac_try_echo"; } >&5
  2061. (eval "$ac_link") 2>conftest.err
  2062. ac_status=$?
  2063. if test -s conftest.err; then
  2064. grep -v '^ *+' conftest.err >conftest.er1
  2065. cat conftest.er1 >&5
  2066. mv -f conftest.er1 conftest.err
  2067. fi
  2068. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2069. test $ac_status = 0; } && {
  2070. test -z "$ac_cxx_werror_flag" ||
  2071. test ! -s conftest.err
  2072. } && test -s conftest$ac_exeext && {
  2073. test "$cross_compiling" = yes ||
  2074. test -x conftest$ac_exeext
  2075. }; then :
  2076. ac_retval=0
  2077. else
  2078. $as_echo "$as_me: failed program was:" >&5
  2079. sed 's/^/| /' conftest.$ac_ext >&5
  2080. ac_retval=1
  2081. fi
  2082. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2083. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2084. # interfere with the next link command; also delete a directory that is
  2085. # left behind by Apple's compiler. We do this before executing the actions.
  2086. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2087. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2088. as_fn_set_status $ac_retval
  2089. } # ac_fn_cxx_try_link
  2090. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2091. # -------------------------------------------------------
  2092. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2093. # the include files in INCLUDES and setting the cache variable VAR
  2094. # accordingly.
  2095. ac_fn_c_check_header_mongrel ()
  2096. {
  2097. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2098. if eval \${$3+:} false; then :
  2099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2100. $as_echo_n "checking for $2... " >&6; }
  2101. if eval \${$3+:} false; then :
  2102. $as_echo_n "(cached) " >&6
  2103. fi
  2104. eval ac_res=\$$3
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2106. $as_echo "$ac_res" >&6; }
  2107. else
  2108. # Is the header compilable?
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2110. $as_echo_n "checking $2 usability... " >&6; }
  2111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2112. /* end confdefs.h. */
  2113. $4
  2114. #include <$2>
  2115. _ACEOF
  2116. if ac_fn_c_try_compile "$LINENO"; then :
  2117. ac_header_compiler=yes
  2118. else
  2119. ac_header_compiler=no
  2120. fi
  2121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2123. $as_echo "$ac_header_compiler" >&6; }
  2124. # Is the header present?
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2126. $as_echo_n "checking $2 presence... " >&6; }
  2127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2128. /* end confdefs.h. */
  2129. #include <$2>
  2130. _ACEOF
  2131. if ac_fn_c_try_cpp "$LINENO"; then :
  2132. ac_header_preproc=yes
  2133. else
  2134. ac_header_preproc=no
  2135. fi
  2136. rm -f conftest.err conftest.i conftest.$ac_ext
  2137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2138. $as_echo "$ac_header_preproc" >&6; }
  2139. # So? What about this header?
  2140. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2141. yes:no: )
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2143. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2144. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2145. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2146. ;;
  2147. no:yes:* )
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2149. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2151. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2152. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2153. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2154. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2155. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2157. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2158. ;;
  2159. esac
  2160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2161. $as_echo_n "checking for $2... " >&6; }
  2162. if eval \${$3+:} false; then :
  2163. $as_echo_n "(cached) " >&6
  2164. else
  2165. eval "$3=\$ac_header_compiler"
  2166. fi
  2167. eval ac_res=\$$3
  2168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2169. $as_echo "$ac_res" >&6; }
  2170. fi
  2171. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2172. } # ac_fn_c_check_header_mongrel
  2173. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2174. # -------------------------------------------
  2175. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2176. # variable VAR accordingly.
  2177. ac_fn_c_check_type ()
  2178. {
  2179. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2181. $as_echo_n "checking for $2... " >&6; }
  2182. if eval \${$3+:} false; then :
  2183. $as_echo_n "(cached) " >&6
  2184. else
  2185. eval "$3=no"
  2186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2187. /* end confdefs.h. */
  2188. $4
  2189. int
  2190. main ()
  2191. {
  2192. if (sizeof ($2))
  2193. return 0;
  2194. ;
  2195. return 0;
  2196. }
  2197. _ACEOF
  2198. if ac_fn_c_try_compile "$LINENO"; then :
  2199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2200. /* end confdefs.h. */
  2201. $4
  2202. int
  2203. main ()
  2204. {
  2205. if (sizeof (($2)))
  2206. return 0;
  2207. ;
  2208. return 0;
  2209. }
  2210. _ACEOF
  2211. if ac_fn_c_try_compile "$LINENO"; then :
  2212. else
  2213. eval "$3=yes"
  2214. fi
  2215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2216. fi
  2217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2218. fi
  2219. eval ac_res=\$$3
  2220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2221. $as_echo "$ac_res" >&6; }
  2222. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2223. } # ac_fn_c_check_type
  2224. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2225. # ----------------------------------------------------
  2226. # Tries to find if the field MEMBER exists in type AGGR, after including
  2227. # INCLUDES, setting cache variable VAR accordingly.
  2228. ac_fn_c_check_member ()
  2229. {
  2230. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2232. $as_echo_n "checking for $2.$3... " >&6; }
  2233. if eval \${$4+:} false; then :
  2234. $as_echo_n "(cached) " >&6
  2235. else
  2236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2237. /* end confdefs.h. */
  2238. $5
  2239. int
  2240. main ()
  2241. {
  2242. static $2 ac_aggr;
  2243. if (ac_aggr.$3)
  2244. return 0;
  2245. ;
  2246. return 0;
  2247. }
  2248. _ACEOF
  2249. if ac_fn_c_try_compile "$LINENO"; then :
  2250. eval "$4=yes"
  2251. else
  2252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2253. /* end confdefs.h. */
  2254. $5
  2255. int
  2256. main ()
  2257. {
  2258. static $2 ac_aggr;
  2259. if (sizeof ac_aggr.$3)
  2260. return 0;
  2261. ;
  2262. return 0;
  2263. }
  2264. _ACEOF
  2265. if ac_fn_c_try_compile "$LINENO"; then :
  2266. eval "$4=yes"
  2267. else
  2268. eval "$4=no"
  2269. fi
  2270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2271. fi
  2272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2273. fi
  2274. eval ac_res=\$$4
  2275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2276. $as_echo "$ac_res" >&6; }
  2277. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2278. } # ac_fn_c_check_member
  2279. cat >config.log <<_ACEOF
  2280. This file contains any messages produced by compilers while
  2281. running configure, to aid debugging if configure makes a mistake.
  2282. It was created by $as_me, which was
  2283. generated by GNU Autoconf 2.69. Invocation command line was
  2284. $ $0 $@
  2285. _ACEOF
  2286. exec 5>>config.log
  2287. {
  2288. cat <<_ASUNAME
  2289. ## --------- ##
  2290. ## Platform. ##
  2291. ## --------- ##
  2292. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2293. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2294. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2295. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2296. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2297. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2298. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2299. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2300. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2301. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2302. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2303. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2304. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2305. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2306. _ASUNAME
  2307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2308. for as_dir in $PATH
  2309. do
  2310. IFS=$as_save_IFS
  2311. test -z "$as_dir" && as_dir=.
  2312. $as_echo "PATH: $as_dir"
  2313. done
  2314. IFS=$as_save_IFS
  2315. } >&5
  2316. cat >&5 <<_ACEOF
  2317. ## ----------- ##
  2318. ## Core tests. ##
  2319. ## ----------- ##
  2320. _ACEOF
  2321. # Keep a trace of the command line.
  2322. # Strip out --no-create and --no-recursion so they do not pile up.
  2323. # Strip out --silent because we don't want to record it for future runs.
  2324. # Also quote any args containing shell meta-characters.
  2325. # Make two passes to allow for proper duplicate-argument suppression.
  2326. ac_configure_args=
  2327. ac_configure_args0=
  2328. ac_configure_args1=
  2329. ac_must_keep_next=false
  2330. for ac_pass in 1 2
  2331. do
  2332. for ac_arg
  2333. do
  2334. case $ac_arg in
  2335. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2336. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2337. | -silent | --silent | --silen | --sile | --sil)
  2338. continue ;;
  2339. *\'*)
  2340. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2341. esac
  2342. case $ac_pass in
  2343. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2344. 2)
  2345. as_fn_append ac_configure_args1 " '$ac_arg'"
  2346. if test $ac_must_keep_next = true; then
  2347. ac_must_keep_next=false # Got value, back to normal.
  2348. else
  2349. case $ac_arg in
  2350. *=* | --config-cache | -C | -disable-* | --disable-* \
  2351. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2352. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2353. | -with-* | --with-* | -without-* | --without-* | --x)
  2354. case "$ac_configure_args0 " in
  2355. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2356. esac
  2357. ;;
  2358. -* ) ac_must_keep_next=true ;;
  2359. esac
  2360. fi
  2361. as_fn_append ac_configure_args " '$ac_arg'"
  2362. ;;
  2363. esac
  2364. done
  2365. done
  2366. { ac_configure_args0=; unset ac_configure_args0;}
  2367. { ac_configure_args1=; unset ac_configure_args1;}
  2368. # When interrupted or exit'd, cleanup temporary files, and complete
  2369. # config.log. We remove comments because anyway the quotes in there
  2370. # would cause problems or look ugly.
  2371. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2372. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2373. trap 'exit_status=$?
  2374. # Save into config.log some information that might help in debugging.
  2375. {
  2376. echo
  2377. $as_echo "## ---------------- ##
  2378. ## Cache variables. ##
  2379. ## ---------------- ##"
  2380. echo
  2381. # The following way of writing the cache mishandles newlines in values,
  2382. (
  2383. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2384. eval ac_val=\$$ac_var
  2385. case $ac_val in #(
  2386. *${as_nl}*)
  2387. case $ac_var in #(
  2388. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2389. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2390. esac
  2391. case $ac_var in #(
  2392. _ | IFS | as_nl) ;; #(
  2393. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2394. *) { eval $ac_var=; unset $ac_var;} ;;
  2395. esac ;;
  2396. esac
  2397. done
  2398. (set) 2>&1 |
  2399. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2400. *${as_nl}ac_space=\ *)
  2401. sed -n \
  2402. "s/'\''/'\''\\\\'\'''\''/g;
  2403. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2404. ;; #(
  2405. *)
  2406. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2407. ;;
  2408. esac |
  2409. sort
  2410. )
  2411. echo
  2412. $as_echo "## ----------------- ##
  2413. ## Output variables. ##
  2414. ## ----------------- ##"
  2415. echo
  2416. for ac_var in $ac_subst_vars
  2417. do
  2418. eval ac_val=\$$ac_var
  2419. case $ac_val in
  2420. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2421. esac
  2422. $as_echo "$ac_var='\''$ac_val'\''"
  2423. done | sort
  2424. echo
  2425. if test -n "$ac_subst_files"; then
  2426. $as_echo "## ------------------- ##
  2427. ## File substitutions. ##
  2428. ## ------------------- ##"
  2429. echo
  2430. for ac_var in $ac_subst_files
  2431. do
  2432. eval ac_val=\$$ac_var
  2433. case $ac_val in
  2434. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2435. esac
  2436. $as_echo "$ac_var='\''$ac_val'\''"
  2437. done | sort
  2438. echo
  2439. fi
  2440. if test -s confdefs.h; then
  2441. $as_echo "## ----------- ##
  2442. ## confdefs.h. ##
  2443. ## ----------- ##"
  2444. echo
  2445. cat confdefs.h
  2446. echo
  2447. fi
  2448. test "$ac_signal" != 0 &&
  2449. $as_echo "$as_me: caught signal $ac_signal"
  2450. $as_echo "$as_me: exit $exit_status"
  2451. } >&5
  2452. rm -f core *.core core.conftest.* &&
  2453. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2454. exit $exit_status
  2455. ' 0
  2456. for ac_signal in 1 2 13 15; do
  2457. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2458. done
  2459. ac_signal=0
  2460. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2461. rm -f -r conftest* confdefs.h
  2462. $as_echo "/* confdefs.h */" > confdefs.h
  2463. # Predefined preprocessor variables.
  2464. cat >>confdefs.h <<_ACEOF
  2465. #define PACKAGE_NAME "$PACKAGE_NAME"
  2466. _ACEOF
  2467. cat >>confdefs.h <<_ACEOF
  2468. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2469. _ACEOF
  2470. cat >>confdefs.h <<_ACEOF
  2471. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2472. _ACEOF
  2473. cat >>confdefs.h <<_ACEOF
  2474. #define PACKAGE_STRING "$PACKAGE_STRING"
  2475. _ACEOF
  2476. cat >>confdefs.h <<_ACEOF
  2477. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2478. _ACEOF
  2479. cat >>confdefs.h <<_ACEOF
  2480. #define PACKAGE_URL "$PACKAGE_URL"
  2481. _ACEOF
  2482. # Let the site file select an alternate cache file if it wants to.
  2483. # Prefer an explicitly selected file to automatically selected ones.
  2484. ac_site_file1=NONE
  2485. ac_site_file2=NONE
  2486. if test -n "$CONFIG_SITE"; then
  2487. # We do not want a PATH search for config.site.
  2488. case $CONFIG_SITE in #((
  2489. -*) ac_site_file1=./$CONFIG_SITE;;
  2490. */*) ac_site_file1=$CONFIG_SITE;;
  2491. *) ac_site_file1=./$CONFIG_SITE;;
  2492. esac
  2493. elif test "x$prefix" != xNONE; then
  2494. ac_site_file1=$prefix/share/config.site
  2495. ac_site_file2=$prefix/etc/config.site
  2496. else
  2497. ac_site_file1=$ac_default_prefix/share/config.site
  2498. ac_site_file2=$ac_default_prefix/etc/config.site
  2499. fi
  2500. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2501. do
  2502. test "x$ac_site_file" = xNONE && continue
  2503. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2505. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2506. sed 's/^/| /' "$ac_site_file" >&5
  2507. . "$ac_site_file" \
  2508. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2509. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2510. as_fn_error $? "failed to load site script $ac_site_file
  2511. See \`config.log' for more details" "$LINENO" 5; }
  2512. fi
  2513. done
  2514. if test -r "$cache_file"; then
  2515. # Some versions of bash will fail to source /dev/null (special files
  2516. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2517. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2519. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2520. case $cache_file in
  2521. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2522. *) . "./$cache_file";;
  2523. esac
  2524. fi
  2525. else
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2527. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2528. >$cache_file
  2529. fi
  2530. # Check that the precious variables saved in the cache have kept the same
  2531. # value.
  2532. ac_cache_corrupted=false
  2533. for ac_var in $ac_precious_vars; do
  2534. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2535. eval ac_new_set=\$ac_env_${ac_var}_set
  2536. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2537. eval ac_new_val=\$ac_env_${ac_var}_value
  2538. case $ac_old_set,$ac_new_set in
  2539. set,)
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2541. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2542. ac_cache_corrupted=: ;;
  2543. ,set)
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2545. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2546. ac_cache_corrupted=: ;;
  2547. ,);;
  2548. *)
  2549. if test "x$ac_old_val" != "x$ac_new_val"; then
  2550. # differences in whitespace do not lead to failure.
  2551. ac_old_val_w=`echo x $ac_old_val`
  2552. ac_new_val_w=`echo x $ac_new_val`
  2553. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2555. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2556. ac_cache_corrupted=:
  2557. else
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2559. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2560. eval $ac_var=\$ac_old_val
  2561. fi
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2563. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2564. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2565. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2566. fi;;
  2567. esac
  2568. # Pass precious variables to config.status.
  2569. if test "$ac_new_set" = set; then
  2570. case $ac_new_val in
  2571. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2572. *) ac_arg=$ac_var=$ac_new_val ;;
  2573. esac
  2574. case " $ac_configure_args " in
  2575. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2576. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2577. esac
  2578. fi
  2579. done
  2580. if $ac_cache_corrupted; then
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2582. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2584. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2585. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2586. fi
  2587. ## -------------------- ##
  2588. ## Main body of script. ##
  2589. ## -------------------- ##
  2590. ac_ext=c
  2591. ac_cpp='$CPP $CPPFLAGS'
  2592. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2593. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2594. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2595. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2596. ac_aux_dir=
  2597. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2598. if test -f "$ac_dir/install-sh"; then
  2599. ac_aux_dir=$ac_dir
  2600. ac_install_sh="$ac_aux_dir/install-sh -c"
  2601. break
  2602. elif test -f "$ac_dir/install.sh"; then
  2603. ac_aux_dir=$ac_dir
  2604. ac_install_sh="$ac_aux_dir/install.sh -c"
  2605. break
  2606. elif test -f "$ac_dir/shtool"; then
  2607. ac_aux_dir=$ac_dir
  2608. ac_install_sh="$ac_aux_dir/shtool install -c"
  2609. break
  2610. fi
  2611. done
  2612. if test -z "$ac_aux_dir"; then
  2613. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2614. fi
  2615. # These three variables are undocumented and unsupported,
  2616. # and are intended to be withdrawn in a future Autoconf release.
  2617. # They can cause serious problems if a builder's source tree is in a directory
  2618. # whose full name contains unusual characters.
  2619. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2620. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2621. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2622. orig_CFLAGS="$CFLAGS"
  2623. # See docs/release_checklist.md
  2624. SDL_MAJOR_VERSION=2
  2625. SDL_MINOR_VERSION=23
  2626. SDL_MICRO_VERSION=0
  2627. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2628. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  2629. case "$SDL_MINOR_VERSION" in #(
  2630. *[02468]) :
  2631. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  2632. *) :
  2633. SDL_INTERFACE_AGE=0 ;; #(
  2634. *) :
  2635. ;;
  2636. esac
  2637. # libtool versioning
  2638. case `pwd` in
  2639. *\ * | *\ *)
  2640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2641. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2642. esac
  2643. macro_version='2.4.6'
  2644. macro_revision='2.4.6'
  2645. ltmain=$ac_aux_dir/ltmain.sh
  2646. # Make sure we can run config.sub.
  2647. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2648. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2650. $as_echo_n "checking build system type... " >&6; }
  2651. if ${ac_cv_build+:} false; then :
  2652. $as_echo_n "(cached) " >&6
  2653. else
  2654. ac_build_alias=$build_alias
  2655. test "x$ac_build_alias" = x &&
  2656. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2657. test "x$ac_build_alias" = x &&
  2658. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2659. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2660. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2661. fi
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2663. $as_echo "$ac_cv_build" >&6; }
  2664. case $ac_cv_build in
  2665. *-*-*) ;;
  2666. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2667. esac
  2668. build=$ac_cv_build
  2669. ac_save_IFS=$IFS; IFS='-'
  2670. set x $ac_cv_build
  2671. shift
  2672. build_cpu=$1
  2673. build_vendor=$2
  2674. shift; shift
  2675. # Remember, the first character of IFS is used to create $*,
  2676. # except with old shells:
  2677. build_os=$*
  2678. IFS=$ac_save_IFS
  2679. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2681. $as_echo_n "checking host system type... " >&6; }
  2682. if ${ac_cv_host+:} false; then :
  2683. $as_echo_n "(cached) " >&6
  2684. else
  2685. if test "x$host_alias" = x; then
  2686. ac_cv_host=$ac_cv_build
  2687. else
  2688. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2689. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2690. fi
  2691. fi
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2693. $as_echo "$ac_cv_host" >&6; }
  2694. case $ac_cv_host in
  2695. *-*-*) ;;
  2696. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2697. esac
  2698. host=$ac_cv_host
  2699. ac_save_IFS=$IFS; IFS='-'
  2700. set x $ac_cv_host
  2701. shift
  2702. host_cpu=$1
  2703. host_vendor=$2
  2704. shift; shift
  2705. # Remember, the first character of IFS is used to create $*,
  2706. # except with old shells:
  2707. host_os=$*
  2708. IFS=$ac_save_IFS
  2709. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2710. # Backslashify metacharacters that are still active within
  2711. # double-quoted strings.
  2712. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2713. # Same as above, but do not quote variable references.
  2714. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2715. # Sed substitution to delay expansion of an escaped shell variable in a
  2716. # double_quote_subst'ed string.
  2717. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2718. # Sed substitution to delay expansion of an escaped single quote.
  2719. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2720. # Sed substitution to avoid accidental globbing in evaled expressions
  2721. no_glob_subst='s/\*/\\\*/g'
  2722. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2723. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2724. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2726. $as_echo_n "checking how to print strings... " >&6; }
  2727. # Test print first, because it will be a builtin if present.
  2728. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2729. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2730. ECHO='print -r --'
  2731. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2732. ECHO='printf %s\n'
  2733. else
  2734. # Use this function as a fallback that always works.
  2735. func_fallback_echo ()
  2736. {
  2737. eval 'cat <<_LTECHO_EOF
  2738. $1
  2739. _LTECHO_EOF'
  2740. }
  2741. ECHO='func_fallback_echo'
  2742. fi
  2743. # func_echo_all arg...
  2744. # Invoke $ECHO with all args, space-separated.
  2745. func_echo_all ()
  2746. {
  2747. $ECHO ""
  2748. }
  2749. case $ECHO in
  2750. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2751. $as_echo "printf" >&6; } ;;
  2752. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2753. $as_echo "print -r" >&6; } ;;
  2754. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2755. $as_echo "cat" >&6; } ;;
  2756. esac
  2757. ac_ext=c
  2758. ac_cpp='$CPP $CPPFLAGS'
  2759. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2760. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2761. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2762. if test -n "$ac_tool_prefix"; then
  2763. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2764. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2766. $as_echo_n "checking for $ac_word... " >&6; }
  2767. if ${ac_cv_prog_CC+:} false; then :
  2768. $as_echo_n "(cached) " >&6
  2769. else
  2770. if test -n "$CC"; then
  2771. ac_cv_prog_CC="$CC" # Let the user override the test.
  2772. else
  2773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2774. for as_dir in $PATH
  2775. do
  2776. IFS=$as_save_IFS
  2777. test -z "$as_dir" && as_dir=.
  2778. for ac_exec_ext in '' $ac_executable_extensions; do
  2779. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2780. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2781. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2782. break 2
  2783. fi
  2784. done
  2785. done
  2786. IFS=$as_save_IFS
  2787. fi
  2788. fi
  2789. CC=$ac_cv_prog_CC
  2790. if test -n "$CC"; then
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2792. $as_echo "$CC" >&6; }
  2793. else
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2795. $as_echo "no" >&6; }
  2796. fi
  2797. fi
  2798. if test -z "$ac_cv_prog_CC"; then
  2799. ac_ct_CC=$CC
  2800. # Extract the first word of "gcc", so it can be a program name with args.
  2801. set dummy gcc; ac_word=$2
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2803. $as_echo_n "checking for $ac_word... " >&6; }
  2804. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2805. $as_echo_n "(cached) " >&6
  2806. else
  2807. if test -n "$ac_ct_CC"; then
  2808. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2809. else
  2810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2811. for as_dir in $PATH
  2812. do
  2813. IFS=$as_save_IFS
  2814. test -z "$as_dir" && as_dir=.
  2815. for ac_exec_ext in '' $ac_executable_extensions; do
  2816. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2817. ac_cv_prog_ac_ct_CC="gcc"
  2818. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2819. break 2
  2820. fi
  2821. done
  2822. done
  2823. IFS=$as_save_IFS
  2824. fi
  2825. fi
  2826. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2827. if test -n "$ac_ct_CC"; then
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2829. $as_echo "$ac_ct_CC" >&6; }
  2830. else
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2832. $as_echo "no" >&6; }
  2833. fi
  2834. if test "x$ac_ct_CC" = x; then
  2835. CC=""
  2836. else
  2837. case $cross_compiling:$ac_tool_warned in
  2838. yes:)
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2840. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2841. ac_tool_warned=yes ;;
  2842. esac
  2843. CC=$ac_ct_CC
  2844. fi
  2845. else
  2846. CC="$ac_cv_prog_CC"
  2847. fi
  2848. if test -z "$CC"; then
  2849. if test -n "$ac_tool_prefix"; then
  2850. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2851. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2853. $as_echo_n "checking for $ac_word... " >&6; }
  2854. if ${ac_cv_prog_CC+:} false; then :
  2855. $as_echo_n "(cached) " >&6
  2856. else
  2857. if test -n "$CC"; then
  2858. ac_cv_prog_CC="$CC" # Let the user override the test.
  2859. else
  2860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2861. for as_dir in $PATH
  2862. do
  2863. IFS=$as_save_IFS
  2864. test -z "$as_dir" && as_dir=.
  2865. for ac_exec_ext in '' $ac_executable_extensions; do
  2866. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2867. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2868. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2869. break 2
  2870. fi
  2871. done
  2872. done
  2873. IFS=$as_save_IFS
  2874. fi
  2875. fi
  2876. CC=$ac_cv_prog_CC
  2877. if test -n "$CC"; then
  2878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2879. $as_echo "$CC" >&6; }
  2880. else
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2882. $as_echo "no" >&6; }
  2883. fi
  2884. fi
  2885. fi
  2886. if test -z "$CC"; then
  2887. # Extract the first word of "cc", so it can be a program name with args.
  2888. set dummy cc; ac_word=$2
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2890. $as_echo_n "checking for $ac_word... " >&6; }
  2891. if ${ac_cv_prog_CC+:} false; then :
  2892. $as_echo_n "(cached) " >&6
  2893. else
  2894. if test -n "$CC"; then
  2895. ac_cv_prog_CC="$CC" # Let the user override the test.
  2896. else
  2897. ac_prog_rejected=no
  2898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2899. for as_dir in $PATH
  2900. do
  2901. IFS=$as_save_IFS
  2902. test -z "$as_dir" && as_dir=.
  2903. for ac_exec_ext in '' $ac_executable_extensions; do
  2904. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2905. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2906. ac_prog_rejected=yes
  2907. continue
  2908. fi
  2909. ac_cv_prog_CC="cc"
  2910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2911. break 2
  2912. fi
  2913. done
  2914. done
  2915. IFS=$as_save_IFS
  2916. if test $ac_prog_rejected = yes; then
  2917. # We found a bogon in the path, so make sure we never use it.
  2918. set dummy $ac_cv_prog_CC
  2919. shift
  2920. if test $# != 0; then
  2921. # We chose a different compiler from the bogus one.
  2922. # However, it has the same basename, so the bogon will be chosen
  2923. # first if we set CC to just the basename; use the full file name.
  2924. shift
  2925. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2926. fi
  2927. fi
  2928. fi
  2929. fi
  2930. CC=$ac_cv_prog_CC
  2931. if test -n "$CC"; then
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2933. $as_echo "$CC" >&6; }
  2934. else
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2936. $as_echo "no" >&6; }
  2937. fi
  2938. fi
  2939. if test -z "$CC"; then
  2940. if test -n "$ac_tool_prefix"; then
  2941. for ac_prog in cl.exe
  2942. do
  2943. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2944. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2946. $as_echo_n "checking for $ac_word... " >&6; }
  2947. if ${ac_cv_prog_CC+:} false; then :
  2948. $as_echo_n "(cached) " >&6
  2949. else
  2950. if test -n "$CC"; then
  2951. ac_cv_prog_CC="$CC" # Let the user override the test.
  2952. else
  2953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2954. for as_dir in $PATH
  2955. do
  2956. IFS=$as_save_IFS
  2957. test -z "$as_dir" && as_dir=.
  2958. for ac_exec_ext in '' $ac_executable_extensions; do
  2959. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2960. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2961. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2962. break 2
  2963. fi
  2964. done
  2965. done
  2966. IFS=$as_save_IFS
  2967. fi
  2968. fi
  2969. CC=$ac_cv_prog_CC
  2970. if test -n "$CC"; then
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2972. $as_echo "$CC" >&6; }
  2973. else
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2975. $as_echo "no" >&6; }
  2976. fi
  2977. test -n "$CC" && break
  2978. done
  2979. fi
  2980. if test -z "$CC"; then
  2981. ac_ct_CC=$CC
  2982. for ac_prog in cl.exe
  2983. do
  2984. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2985. set dummy $ac_prog; ac_word=$2
  2986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2987. $as_echo_n "checking for $ac_word... " >&6; }
  2988. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2989. $as_echo_n "(cached) " >&6
  2990. else
  2991. if test -n "$ac_ct_CC"; then
  2992. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2993. else
  2994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2995. for as_dir in $PATH
  2996. do
  2997. IFS=$as_save_IFS
  2998. test -z "$as_dir" && as_dir=.
  2999. for ac_exec_ext in '' $ac_executable_extensions; do
  3000. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3001. ac_cv_prog_ac_ct_CC="$ac_prog"
  3002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3003. break 2
  3004. fi
  3005. done
  3006. done
  3007. IFS=$as_save_IFS
  3008. fi
  3009. fi
  3010. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3011. if test -n "$ac_ct_CC"; then
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3013. $as_echo "$ac_ct_CC" >&6; }
  3014. else
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3016. $as_echo "no" >&6; }
  3017. fi
  3018. test -n "$ac_ct_CC" && break
  3019. done
  3020. if test "x$ac_ct_CC" = x; then
  3021. CC=""
  3022. else
  3023. case $cross_compiling:$ac_tool_warned in
  3024. yes:)
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3026. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3027. ac_tool_warned=yes ;;
  3028. esac
  3029. CC=$ac_ct_CC
  3030. fi
  3031. fi
  3032. fi
  3033. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3034. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3035. as_fn_error $? "no acceptable C compiler found in \$PATH
  3036. See \`config.log' for more details" "$LINENO" 5; }
  3037. # Provide some information about the compiler.
  3038. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3039. set X $ac_compile
  3040. ac_compiler=$2
  3041. for ac_option in --version -v -V -qversion; do
  3042. { { ac_try="$ac_compiler $ac_option >&5"
  3043. case "(($ac_try" in
  3044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3045. *) ac_try_echo=$ac_try;;
  3046. esac
  3047. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3048. $as_echo "$ac_try_echo"; } >&5
  3049. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3050. ac_status=$?
  3051. if test -s conftest.err; then
  3052. sed '10a\
  3053. ... rest of stderr output deleted ...
  3054. 10q' conftest.err >conftest.er1
  3055. cat conftest.er1 >&5
  3056. fi
  3057. rm -f conftest.er1 conftest.err
  3058. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3059. test $ac_status = 0; }
  3060. done
  3061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3062. /* end confdefs.h. */
  3063. int
  3064. main ()
  3065. {
  3066. ;
  3067. return 0;
  3068. }
  3069. _ACEOF
  3070. ac_clean_files_save=$ac_clean_files
  3071. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3072. # Try to create an executable without -o first, disregard a.out.
  3073. # It will help us diagnose broken compilers, and finding out an intuition
  3074. # of exeext.
  3075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3076. $as_echo_n "checking whether the C compiler works... " >&6; }
  3077. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3078. # The possible output files:
  3079. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3080. ac_rmfiles=
  3081. for ac_file in $ac_files
  3082. do
  3083. case $ac_file in
  3084. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3085. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3086. esac
  3087. done
  3088. rm -f $ac_rmfiles
  3089. if { { ac_try="$ac_link_default"
  3090. case "(($ac_try" in
  3091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3092. *) ac_try_echo=$ac_try;;
  3093. esac
  3094. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3095. $as_echo "$ac_try_echo"; } >&5
  3096. (eval "$ac_link_default") 2>&5
  3097. ac_status=$?
  3098. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3099. test $ac_status = 0; }; then :
  3100. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3101. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3102. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3103. # so that the user can short-circuit this test for compilers unknown to
  3104. # Autoconf.
  3105. for ac_file in $ac_files ''
  3106. do
  3107. test -f "$ac_file" || continue
  3108. case $ac_file in
  3109. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3110. ;;
  3111. [ab].out )
  3112. # We found the default executable, but exeext='' is most
  3113. # certainly right.
  3114. break;;
  3115. *.* )
  3116. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3117. then :; else
  3118. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3119. fi
  3120. # We set ac_cv_exeext here because the later test for it is not
  3121. # safe: cross compilers may not add the suffix if given an `-o'
  3122. # argument, so we may need to know it at that point already.
  3123. # Even if this section looks crufty: it has the advantage of
  3124. # actually working.
  3125. break;;
  3126. * )
  3127. break;;
  3128. esac
  3129. done
  3130. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3131. else
  3132. ac_file=''
  3133. fi
  3134. if test -z "$ac_file"; then :
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3136. $as_echo "no" >&6; }
  3137. $as_echo "$as_me: failed program was:" >&5
  3138. sed 's/^/| /' conftest.$ac_ext >&5
  3139. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3140. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3141. as_fn_error 77 "C compiler cannot create executables
  3142. See \`config.log' for more details" "$LINENO" 5; }
  3143. else
  3144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3145. $as_echo "yes" >&6; }
  3146. fi
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3148. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3150. $as_echo "$ac_file" >&6; }
  3151. ac_exeext=$ac_cv_exeext
  3152. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3153. ac_clean_files=$ac_clean_files_save
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3155. $as_echo_n "checking for suffix of executables... " >&6; }
  3156. if { { ac_try="$ac_link"
  3157. case "(($ac_try" in
  3158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3159. *) ac_try_echo=$ac_try;;
  3160. esac
  3161. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3162. $as_echo "$ac_try_echo"; } >&5
  3163. (eval "$ac_link") 2>&5
  3164. ac_status=$?
  3165. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3166. test $ac_status = 0; }; then :
  3167. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3168. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3169. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3170. # `rm'.
  3171. for ac_file in conftest.exe conftest conftest.*; do
  3172. test -f "$ac_file" || continue
  3173. case $ac_file in
  3174. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3175. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3176. break;;
  3177. * ) break;;
  3178. esac
  3179. done
  3180. else
  3181. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3182. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3183. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3184. See \`config.log' for more details" "$LINENO" 5; }
  3185. fi
  3186. rm -f conftest conftest$ac_cv_exeext
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3188. $as_echo "$ac_cv_exeext" >&6; }
  3189. rm -f conftest.$ac_ext
  3190. EXEEXT=$ac_cv_exeext
  3191. ac_exeext=$EXEEXT
  3192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3193. /* end confdefs.h. */
  3194. #include <stdio.h>
  3195. int
  3196. main ()
  3197. {
  3198. FILE *f = fopen ("conftest.out", "w");
  3199. return ferror (f) || fclose (f) != 0;
  3200. ;
  3201. return 0;
  3202. }
  3203. _ACEOF
  3204. ac_clean_files="$ac_clean_files conftest.out"
  3205. # Check that the compiler produces executables we can run. If not, either
  3206. # the compiler is broken, or we cross compile.
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3208. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3209. if test "$cross_compiling" != yes; then
  3210. { { ac_try="$ac_link"
  3211. case "(($ac_try" in
  3212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3213. *) ac_try_echo=$ac_try;;
  3214. esac
  3215. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3216. $as_echo "$ac_try_echo"; } >&5
  3217. (eval "$ac_link") 2>&5
  3218. ac_status=$?
  3219. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3220. test $ac_status = 0; }
  3221. if { ac_try='./conftest$ac_cv_exeext'
  3222. { { case "(($ac_try" in
  3223. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3224. *) ac_try_echo=$ac_try;;
  3225. esac
  3226. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3227. $as_echo "$ac_try_echo"; } >&5
  3228. (eval "$ac_try") 2>&5
  3229. ac_status=$?
  3230. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3231. test $ac_status = 0; }; }; then
  3232. cross_compiling=no
  3233. else
  3234. if test "$cross_compiling" = maybe; then
  3235. cross_compiling=yes
  3236. else
  3237. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3238. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3239. as_fn_error $? "cannot run C compiled programs.
  3240. If you meant to cross compile, use \`--host'.
  3241. See \`config.log' for more details" "$LINENO" 5; }
  3242. fi
  3243. fi
  3244. fi
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3246. $as_echo "$cross_compiling" >&6; }
  3247. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3248. ac_clean_files=$ac_clean_files_save
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3250. $as_echo_n "checking for suffix of object files... " >&6; }
  3251. if ${ac_cv_objext+:} false; then :
  3252. $as_echo_n "(cached) " >&6
  3253. else
  3254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3255. /* end confdefs.h. */
  3256. int
  3257. main ()
  3258. {
  3259. ;
  3260. return 0;
  3261. }
  3262. _ACEOF
  3263. rm -f conftest.o conftest.obj
  3264. if { { ac_try="$ac_compile"
  3265. case "(($ac_try" in
  3266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3267. *) ac_try_echo=$ac_try;;
  3268. esac
  3269. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3270. $as_echo "$ac_try_echo"; } >&5
  3271. (eval "$ac_compile") 2>&5
  3272. ac_status=$?
  3273. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3274. test $ac_status = 0; }; then :
  3275. for ac_file in conftest.o conftest.obj conftest.*; do
  3276. test -f "$ac_file" || continue;
  3277. case $ac_file in
  3278. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3279. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3280. break;;
  3281. esac
  3282. done
  3283. else
  3284. $as_echo "$as_me: failed program was:" >&5
  3285. sed 's/^/| /' conftest.$ac_ext >&5
  3286. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3287. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3288. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3289. See \`config.log' for more details" "$LINENO" 5; }
  3290. fi
  3291. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3292. fi
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3294. $as_echo "$ac_cv_objext" >&6; }
  3295. OBJEXT=$ac_cv_objext
  3296. ac_objext=$OBJEXT
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3298. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3299. if ${ac_cv_c_compiler_gnu+:} false; then :
  3300. $as_echo_n "(cached) " >&6
  3301. else
  3302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3303. /* end confdefs.h. */
  3304. int
  3305. main ()
  3306. {
  3307. #ifndef __GNUC__
  3308. choke me
  3309. #endif
  3310. ;
  3311. return 0;
  3312. }
  3313. _ACEOF
  3314. if ac_fn_c_try_compile "$LINENO"; then :
  3315. ac_compiler_gnu=yes
  3316. else
  3317. ac_compiler_gnu=no
  3318. fi
  3319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3320. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3321. fi
  3322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3323. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3324. if test $ac_compiler_gnu = yes; then
  3325. GCC=yes
  3326. else
  3327. GCC=
  3328. fi
  3329. ac_test_CFLAGS=${CFLAGS+set}
  3330. ac_save_CFLAGS=$CFLAGS
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3332. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3333. if ${ac_cv_prog_cc_g+:} false; then :
  3334. $as_echo_n "(cached) " >&6
  3335. else
  3336. ac_save_c_werror_flag=$ac_c_werror_flag
  3337. ac_c_werror_flag=yes
  3338. ac_cv_prog_cc_g=no
  3339. CFLAGS="-g"
  3340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3341. /* end confdefs.h. */
  3342. int
  3343. main ()
  3344. {
  3345. ;
  3346. return 0;
  3347. }
  3348. _ACEOF
  3349. if ac_fn_c_try_compile "$LINENO"; then :
  3350. ac_cv_prog_cc_g=yes
  3351. else
  3352. CFLAGS=""
  3353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3354. /* end confdefs.h. */
  3355. int
  3356. main ()
  3357. {
  3358. ;
  3359. return 0;
  3360. }
  3361. _ACEOF
  3362. if ac_fn_c_try_compile "$LINENO"; then :
  3363. else
  3364. ac_c_werror_flag=$ac_save_c_werror_flag
  3365. CFLAGS="-g"
  3366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3367. /* end confdefs.h. */
  3368. int
  3369. main ()
  3370. {
  3371. ;
  3372. return 0;
  3373. }
  3374. _ACEOF
  3375. if ac_fn_c_try_compile "$LINENO"; then :
  3376. ac_cv_prog_cc_g=yes
  3377. fi
  3378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3379. fi
  3380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3381. fi
  3382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3383. ac_c_werror_flag=$ac_save_c_werror_flag
  3384. fi
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3386. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3387. if test "$ac_test_CFLAGS" = set; then
  3388. CFLAGS=$ac_save_CFLAGS
  3389. elif test $ac_cv_prog_cc_g = yes; then
  3390. if test "$GCC" = yes; then
  3391. CFLAGS="-g -O2"
  3392. else
  3393. CFLAGS="-g"
  3394. fi
  3395. else
  3396. if test "$GCC" = yes; then
  3397. CFLAGS="-O2"
  3398. else
  3399. CFLAGS=
  3400. fi
  3401. fi
  3402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3403. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3404. if ${ac_cv_prog_cc_c89+:} false; then :
  3405. $as_echo_n "(cached) " >&6
  3406. else
  3407. ac_cv_prog_cc_c89=no
  3408. ac_save_CC=$CC
  3409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3410. /* end confdefs.h. */
  3411. #include <stdarg.h>
  3412. #include <stdio.h>
  3413. struct stat;
  3414. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3415. struct buf { int x; };
  3416. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3417. static char *e (p, i)
  3418. char **p;
  3419. int i;
  3420. {
  3421. return p[i];
  3422. }
  3423. static char *f (char * (*g) (char **, int), char **p, ...)
  3424. {
  3425. char *s;
  3426. va_list v;
  3427. va_start (v,p);
  3428. s = g (p, va_arg (v,int));
  3429. va_end (v);
  3430. return s;
  3431. }
  3432. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3433. function prototypes and stuff, but not '\xHH' hex character constants.
  3434. These don't provoke an error unfortunately, instead are silently treated
  3435. as 'x'. The following induces an error, until -std is added to get
  3436. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3437. array size at least. It's necessary to write '\x00'==0 to get something
  3438. that's true only with -std. */
  3439. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3440. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3441. inside strings and character constants. */
  3442. #define FOO(x) 'x'
  3443. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3444. int test (int i, double x);
  3445. struct s1 {int (*f) (int a);};
  3446. struct s2 {int (*f) (double a);};
  3447. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3448. int argc;
  3449. char **argv;
  3450. int
  3451. main ()
  3452. {
  3453. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3454. ;
  3455. return 0;
  3456. }
  3457. _ACEOF
  3458. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3459. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3460. do
  3461. CC="$ac_save_CC $ac_arg"
  3462. if ac_fn_c_try_compile "$LINENO"; then :
  3463. ac_cv_prog_cc_c89=$ac_arg
  3464. fi
  3465. rm -f core conftest.err conftest.$ac_objext
  3466. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3467. done
  3468. rm -f conftest.$ac_ext
  3469. CC=$ac_save_CC
  3470. fi
  3471. # AC_CACHE_VAL
  3472. case "x$ac_cv_prog_cc_c89" in
  3473. x)
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3475. $as_echo "none needed" >&6; } ;;
  3476. xno)
  3477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3478. $as_echo "unsupported" >&6; } ;;
  3479. *)
  3480. CC="$CC $ac_cv_prog_cc_c89"
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3482. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3483. esac
  3484. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3485. fi
  3486. ac_ext=c
  3487. ac_cpp='$CPP $CPPFLAGS'
  3488. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3489. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3490. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3492. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3493. if ${ac_cv_path_SED+:} false; then :
  3494. $as_echo_n "(cached) " >&6
  3495. else
  3496. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3497. for ac_i in 1 2 3 4 5 6 7; do
  3498. ac_script="$ac_script$as_nl$ac_script"
  3499. done
  3500. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3501. { ac_script=; unset ac_script;}
  3502. if test -z "$SED"; then
  3503. ac_path_SED_found=false
  3504. # Loop through the user's path and test for each of PROGNAME-LIST
  3505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3506. for as_dir in $PATH
  3507. do
  3508. IFS=$as_save_IFS
  3509. test -z "$as_dir" && as_dir=.
  3510. for ac_prog in sed gsed; do
  3511. for ac_exec_ext in '' $ac_executable_extensions; do
  3512. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3513. as_fn_executable_p "$ac_path_SED" || continue
  3514. # Check for GNU ac_path_SED and select it if it is found.
  3515. # Check for GNU $ac_path_SED
  3516. case `"$ac_path_SED" --version 2>&1` in
  3517. *GNU*)
  3518. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3519. *)
  3520. ac_count=0
  3521. $as_echo_n 0123456789 >"conftest.in"
  3522. while :
  3523. do
  3524. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3525. mv "conftest.tmp" "conftest.in"
  3526. cp "conftest.in" "conftest.nl"
  3527. $as_echo '' >> "conftest.nl"
  3528. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3529. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3530. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3531. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3532. # Best one so far, save it but keep looking for a better one
  3533. ac_cv_path_SED="$ac_path_SED"
  3534. ac_path_SED_max=$ac_count
  3535. fi
  3536. # 10*(2^10) chars as input seems more than enough
  3537. test $ac_count -gt 10 && break
  3538. done
  3539. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3540. esac
  3541. $ac_path_SED_found && break 3
  3542. done
  3543. done
  3544. done
  3545. IFS=$as_save_IFS
  3546. if test -z "$ac_cv_path_SED"; then
  3547. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3548. fi
  3549. else
  3550. ac_cv_path_SED=$SED
  3551. fi
  3552. fi
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3554. $as_echo "$ac_cv_path_SED" >&6; }
  3555. SED="$ac_cv_path_SED"
  3556. rm -f conftest.sed
  3557. test -z "$SED" && SED=sed
  3558. Xsed="$SED -e 1s/^X//"
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3560. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3561. if ${ac_cv_path_GREP+:} false; then :
  3562. $as_echo_n "(cached) " >&6
  3563. else
  3564. if test -z "$GREP"; then
  3565. ac_path_GREP_found=false
  3566. # Loop through the user's path and test for each of PROGNAME-LIST
  3567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3568. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3569. do
  3570. IFS=$as_save_IFS
  3571. test -z "$as_dir" && as_dir=.
  3572. for ac_prog in grep ggrep; do
  3573. for ac_exec_ext in '' $ac_executable_extensions; do
  3574. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3575. as_fn_executable_p "$ac_path_GREP" || continue
  3576. # Check for GNU ac_path_GREP and select it if it is found.
  3577. # Check for GNU $ac_path_GREP
  3578. case `"$ac_path_GREP" --version 2>&1` in
  3579. *GNU*)
  3580. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3581. *)
  3582. ac_count=0
  3583. $as_echo_n 0123456789 >"conftest.in"
  3584. while :
  3585. do
  3586. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3587. mv "conftest.tmp" "conftest.in"
  3588. cp "conftest.in" "conftest.nl"
  3589. $as_echo 'GREP' >> "conftest.nl"
  3590. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3591. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3592. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3593. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3594. # Best one so far, save it but keep looking for a better one
  3595. ac_cv_path_GREP="$ac_path_GREP"
  3596. ac_path_GREP_max=$ac_count
  3597. fi
  3598. # 10*(2^10) chars as input seems more than enough
  3599. test $ac_count -gt 10 && break
  3600. done
  3601. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3602. esac
  3603. $ac_path_GREP_found && break 3
  3604. done
  3605. done
  3606. done
  3607. IFS=$as_save_IFS
  3608. if test -z "$ac_cv_path_GREP"; then
  3609. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3610. fi
  3611. else
  3612. ac_cv_path_GREP=$GREP
  3613. fi
  3614. fi
  3615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3616. $as_echo "$ac_cv_path_GREP" >&6; }
  3617. GREP="$ac_cv_path_GREP"
  3618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3619. $as_echo_n "checking for egrep... " >&6; }
  3620. if ${ac_cv_path_EGREP+:} false; then :
  3621. $as_echo_n "(cached) " >&6
  3622. else
  3623. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3624. then ac_cv_path_EGREP="$GREP -E"
  3625. else
  3626. if test -z "$EGREP"; then
  3627. ac_path_EGREP_found=false
  3628. # Loop through the user's path and test for each of PROGNAME-LIST
  3629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3630. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3631. do
  3632. IFS=$as_save_IFS
  3633. test -z "$as_dir" && as_dir=.
  3634. for ac_prog in egrep; do
  3635. for ac_exec_ext in '' $ac_executable_extensions; do
  3636. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3637. as_fn_executable_p "$ac_path_EGREP" || continue
  3638. # Check for GNU ac_path_EGREP and select it if it is found.
  3639. # Check for GNU $ac_path_EGREP
  3640. case `"$ac_path_EGREP" --version 2>&1` in
  3641. *GNU*)
  3642. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3643. *)
  3644. ac_count=0
  3645. $as_echo_n 0123456789 >"conftest.in"
  3646. while :
  3647. do
  3648. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3649. mv "conftest.tmp" "conftest.in"
  3650. cp "conftest.in" "conftest.nl"
  3651. $as_echo 'EGREP' >> "conftest.nl"
  3652. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3653. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3654. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3655. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3656. # Best one so far, save it but keep looking for a better one
  3657. ac_cv_path_EGREP="$ac_path_EGREP"
  3658. ac_path_EGREP_max=$ac_count
  3659. fi
  3660. # 10*(2^10) chars as input seems more than enough
  3661. test $ac_count -gt 10 && break
  3662. done
  3663. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3664. esac
  3665. $ac_path_EGREP_found && break 3
  3666. done
  3667. done
  3668. done
  3669. IFS=$as_save_IFS
  3670. if test -z "$ac_cv_path_EGREP"; then
  3671. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3672. fi
  3673. else
  3674. ac_cv_path_EGREP=$EGREP
  3675. fi
  3676. fi
  3677. fi
  3678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3679. $as_echo "$ac_cv_path_EGREP" >&6; }
  3680. EGREP="$ac_cv_path_EGREP"
  3681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3682. $as_echo_n "checking for fgrep... " >&6; }
  3683. if ${ac_cv_path_FGREP+:} false; then :
  3684. $as_echo_n "(cached) " >&6
  3685. else
  3686. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3687. then ac_cv_path_FGREP="$GREP -F"
  3688. else
  3689. if test -z "$FGREP"; then
  3690. ac_path_FGREP_found=false
  3691. # Loop through the user's path and test for each of PROGNAME-LIST
  3692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3693. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3694. do
  3695. IFS=$as_save_IFS
  3696. test -z "$as_dir" && as_dir=.
  3697. for ac_prog in fgrep; do
  3698. for ac_exec_ext in '' $ac_executable_extensions; do
  3699. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3700. as_fn_executable_p "$ac_path_FGREP" || continue
  3701. # Check for GNU ac_path_FGREP and select it if it is found.
  3702. # Check for GNU $ac_path_FGREP
  3703. case `"$ac_path_FGREP" --version 2>&1` in
  3704. *GNU*)
  3705. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3706. *)
  3707. ac_count=0
  3708. $as_echo_n 0123456789 >"conftest.in"
  3709. while :
  3710. do
  3711. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3712. mv "conftest.tmp" "conftest.in"
  3713. cp "conftest.in" "conftest.nl"
  3714. $as_echo 'FGREP' >> "conftest.nl"
  3715. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3716. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3717. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3718. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3719. # Best one so far, save it but keep looking for a better one
  3720. ac_cv_path_FGREP="$ac_path_FGREP"
  3721. ac_path_FGREP_max=$ac_count
  3722. fi
  3723. # 10*(2^10) chars as input seems more than enough
  3724. test $ac_count -gt 10 && break
  3725. done
  3726. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3727. esac
  3728. $ac_path_FGREP_found && break 3
  3729. done
  3730. done
  3731. done
  3732. IFS=$as_save_IFS
  3733. if test -z "$ac_cv_path_FGREP"; then
  3734. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3735. fi
  3736. else
  3737. ac_cv_path_FGREP=$FGREP
  3738. fi
  3739. fi
  3740. fi
  3741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3742. $as_echo "$ac_cv_path_FGREP" >&6; }
  3743. FGREP="$ac_cv_path_FGREP"
  3744. test -z "$GREP" && GREP=grep
  3745. # Check whether --with-gnu-ld was given.
  3746. if test "${with_gnu_ld+set}" = set; then :
  3747. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  3748. else
  3749. with_gnu_ld=no
  3750. fi
  3751. ac_prog=ld
  3752. if test yes = "$GCC"; then
  3753. # Check if gcc -print-prog-name=ld gives a path.
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3755. $as_echo_n "checking for ld used by $CC... " >&6; }
  3756. case $host in
  3757. *-*-mingw*)
  3758. # gcc leaves a trailing carriage return, which upsets mingw
  3759. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3760. *)
  3761. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3762. esac
  3763. case $ac_prog in
  3764. # Accept absolute paths.
  3765. [\\/]* | ?:[\\/]*)
  3766. re_direlt='/[^/][^/]*/\.\./'
  3767. # Canonicalize the pathname of ld
  3768. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3769. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3770. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3771. done
  3772. test -z "$LD" && LD=$ac_prog
  3773. ;;
  3774. "")
  3775. # If it fails, then pretend we aren't using GCC.
  3776. ac_prog=ld
  3777. ;;
  3778. *)
  3779. # If it is relative, then search for the first ld in PATH.
  3780. with_gnu_ld=unknown
  3781. ;;
  3782. esac
  3783. elif test yes = "$with_gnu_ld"; then
  3784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3785. $as_echo_n "checking for GNU ld... " >&6; }
  3786. else
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3788. $as_echo_n "checking for non-GNU ld... " >&6; }
  3789. fi
  3790. if ${lt_cv_path_LD+:} false; then :
  3791. $as_echo_n "(cached) " >&6
  3792. else
  3793. if test -z "$LD"; then
  3794. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3795. for ac_dir in $PATH; do
  3796. IFS=$lt_save_ifs
  3797. test -z "$ac_dir" && ac_dir=.
  3798. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3799. lt_cv_path_LD=$ac_dir/$ac_prog
  3800. # Check to see if the program is GNU ld. I'd rather use --version,
  3801. # but apparently some variants of GNU ld only accept -v.
  3802. # Break only if it was the GNU/non-GNU ld that we prefer.
  3803. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3804. *GNU* | *'with BFD'*)
  3805. test no != "$with_gnu_ld" && break
  3806. ;;
  3807. *)
  3808. test yes != "$with_gnu_ld" && break
  3809. ;;
  3810. esac
  3811. fi
  3812. done
  3813. IFS=$lt_save_ifs
  3814. else
  3815. lt_cv_path_LD=$LD # Let the user override the test with a path.
  3816. fi
  3817. fi
  3818. LD=$lt_cv_path_LD
  3819. if test -n "$LD"; then
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3821. $as_echo "$LD" >&6; }
  3822. else
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3824. $as_echo "no" >&6; }
  3825. fi
  3826. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3828. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3829. if ${lt_cv_prog_gnu_ld+:} false; then :
  3830. $as_echo_n "(cached) " >&6
  3831. else
  3832. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3833. case `$LD -v 2>&1 </dev/null` in
  3834. *GNU* | *'with BFD'*)
  3835. lt_cv_prog_gnu_ld=yes
  3836. ;;
  3837. *)
  3838. lt_cv_prog_gnu_ld=no
  3839. ;;
  3840. esac
  3841. fi
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3843. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3844. with_gnu_ld=$lt_cv_prog_gnu_ld
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3846. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3847. if ${lt_cv_path_NM+:} false; then :
  3848. $as_echo_n "(cached) " >&6
  3849. else
  3850. if test -n "$NM"; then
  3851. # Let the user override the test.
  3852. lt_cv_path_NM=$NM
  3853. else
  3854. lt_nm_to_check=${ac_tool_prefix}nm
  3855. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3856. lt_nm_to_check="$lt_nm_to_check nm"
  3857. fi
  3858. for lt_tmp_nm in $lt_nm_to_check; do
  3859. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3860. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3861. IFS=$lt_save_ifs
  3862. test -z "$ac_dir" && ac_dir=.
  3863. tmp_nm=$ac_dir/$lt_tmp_nm
  3864. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3865. # Check to see if the nm accepts a BSD-compat flag.
  3866. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3867. # nm: unknown option "B" ignored
  3868. # Tru64's nm complains that /dev/null is an invalid object file
  3869. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3870. case $build_os in
  3871. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3872. *) lt_bad_file=/dev/null ;;
  3873. esac
  3874. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  3875. *$lt_bad_file* | *'Invalid file or object type'*)
  3876. lt_cv_path_NM="$tmp_nm -B"
  3877. break 2
  3878. ;;
  3879. *)
  3880. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3881. */dev/null*)
  3882. lt_cv_path_NM="$tmp_nm -p"
  3883. break 2
  3884. ;;
  3885. *)
  3886. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3887. continue # so that we can try to find one that supports BSD flags
  3888. ;;
  3889. esac
  3890. ;;
  3891. esac
  3892. fi
  3893. done
  3894. IFS=$lt_save_ifs
  3895. done
  3896. : ${lt_cv_path_NM=no}
  3897. fi
  3898. fi
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3900. $as_echo "$lt_cv_path_NM" >&6; }
  3901. if test no != "$lt_cv_path_NM"; then
  3902. NM=$lt_cv_path_NM
  3903. else
  3904. # Didn't find any BSD compatible name lister, look for dumpbin.
  3905. if test -n "$DUMPBIN"; then :
  3906. # Let the user override the test.
  3907. else
  3908. if test -n "$ac_tool_prefix"; then
  3909. for ac_prog in dumpbin "link -dump"
  3910. do
  3911. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3912. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3914. $as_echo_n "checking for $ac_word... " >&6; }
  3915. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3916. $as_echo_n "(cached) " >&6
  3917. else
  3918. if test -n "$DUMPBIN"; then
  3919. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3920. else
  3921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3922. for as_dir in $PATH
  3923. do
  3924. IFS=$as_save_IFS
  3925. test -z "$as_dir" && as_dir=.
  3926. for ac_exec_ext in '' $ac_executable_extensions; do
  3927. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3928. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3930. break 2
  3931. fi
  3932. done
  3933. done
  3934. IFS=$as_save_IFS
  3935. fi
  3936. fi
  3937. DUMPBIN=$ac_cv_prog_DUMPBIN
  3938. if test -n "$DUMPBIN"; then
  3939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3940. $as_echo "$DUMPBIN" >&6; }
  3941. else
  3942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3943. $as_echo "no" >&6; }
  3944. fi
  3945. test -n "$DUMPBIN" && break
  3946. done
  3947. fi
  3948. if test -z "$DUMPBIN"; then
  3949. ac_ct_DUMPBIN=$DUMPBIN
  3950. for ac_prog in dumpbin "link -dump"
  3951. do
  3952. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3953. set dummy $ac_prog; ac_word=$2
  3954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3955. $as_echo_n "checking for $ac_word... " >&6; }
  3956. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3957. $as_echo_n "(cached) " >&6
  3958. else
  3959. if test -n "$ac_ct_DUMPBIN"; then
  3960. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3961. else
  3962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3963. for as_dir in $PATH
  3964. do
  3965. IFS=$as_save_IFS
  3966. test -z "$as_dir" && as_dir=.
  3967. for ac_exec_ext in '' $ac_executable_extensions; do
  3968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3969. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3971. break 2
  3972. fi
  3973. done
  3974. done
  3975. IFS=$as_save_IFS
  3976. fi
  3977. fi
  3978. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3979. if test -n "$ac_ct_DUMPBIN"; then
  3980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3981. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3982. else
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3984. $as_echo "no" >&6; }
  3985. fi
  3986. test -n "$ac_ct_DUMPBIN" && break
  3987. done
  3988. if test "x$ac_ct_DUMPBIN" = x; then
  3989. DUMPBIN=":"
  3990. else
  3991. case $cross_compiling:$ac_tool_warned in
  3992. yes:)
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3994. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3995. ac_tool_warned=yes ;;
  3996. esac
  3997. DUMPBIN=$ac_ct_DUMPBIN
  3998. fi
  3999. fi
  4000. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4001. *COFF*)
  4002. DUMPBIN="$DUMPBIN -symbols -headers"
  4003. ;;
  4004. *)
  4005. DUMPBIN=:
  4006. ;;
  4007. esac
  4008. fi
  4009. if test : != "$DUMPBIN"; then
  4010. NM=$DUMPBIN
  4011. fi
  4012. fi
  4013. test -z "$NM" && NM=nm
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4015. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4016. if ${lt_cv_nm_interface+:} false; then :
  4017. $as_echo_n "(cached) " >&6
  4018. else
  4019. lt_cv_nm_interface="BSD nm"
  4020. echo "int some_variable = 0;" > conftest.$ac_ext
  4021. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4022. (eval "$ac_compile" 2>conftest.err)
  4023. cat conftest.err >&5
  4024. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4025. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4026. cat conftest.err >&5
  4027. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4028. cat conftest.out >&5
  4029. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4030. lt_cv_nm_interface="MS dumpbin"
  4031. fi
  4032. rm -f conftest*
  4033. fi
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4035. $as_echo "$lt_cv_nm_interface" >&6; }
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4037. $as_echo_n "checking whether ln -s works... " >&6; }
  4038. LN_S=$as_ln_s
  4039. if test "$LN_S" = "ln -s"; then
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4041. $as_echo "yes" >&6; }
  4042. else
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4044. $as_echo "no, using $LN_S" >&6; }
  4045. fi
  4046. # find the maximum length of command line arguments
  4047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4048. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4049. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4050. $as_echo_n "(cached) " >&6
  4051. else
  4052. i=0
  4053. teststring=ABCD
  4054. case $build_os in
  4055. msdosdjgpp*)
  4056. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4057. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4058. # during glob expansion). Even if it were fixed, the result of this
  4059. # check would be larger than it should be.
  4060. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4061. ;;
  4062. gnu*)
  4063. # Under GNU Hurd, this test is not required because there is
  4064. # no limit to the length of command line arguments.
  4065. # Libtool will interpret -1 as no limit whatsoever
  4066. lt_cv_sys_max_cmd_len=-1;
  4067. ;;
  4068. cygwin* | mingw* | cegcc*)
  4069. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4070. # about 5 minutes as the teststring grows exponentially.
  4071. # Worse, since 9x/ME are not pre-emptively multitasking,
  4072. # you end up with a "frozen" computer, even though with patience
  4073. # the test eventually succeeds (with a max line length of 256k).
  4074. # Instead, let's just punt: use the minimum linelength reported by
  4075. # all of the supported platforms: 8192 (on NT/2K/XP).
  4076. lt_cv_sys_max_cmd_len=8192;
  4077. ;;
  4078. mint*)
  4079. # On MiNT this can take a long time and run out of memory.
  4080. lt_cv_sys_max_cmd_len=8192;
  4081. ;;
  4082. amigaos*)
  4083. # On AmigaOS with pdksh, this test takes hours, literally.
  4084. # So we just punt and use a minimum line length of 8192.
  4085. lt_cv_sys_max_cmd_len=8192;
  4086. ;;
  4087. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4088. # This has been around since 386BSD, at least. Likely further.
  4089. if test -x /sbin/sysctl; then
  4090. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4091. elif test -x /usr/sbin/sysctl; then
  4092. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4093. else
  4094. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4095. fi
  4096. # And add a safety zone
  4097. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4098. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4099. ;;
  4100. interix*)
  4101. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4102. lt_cv_sys_max_cmd_len=196608
  4103. ;;
  4104. os2*)
  4105. # The test takes a long time on OS/2.
  4106. lt_cv_sys_max_cmd_len=8192
  4107. ;;
  4108. osf*)
  4109. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4110. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4111. # nice to cause kernel panics so lets avoid the loop below.
  4112. # First set a reasonable default.
  4113. lt_cv_sys_max_cmd_len=16384
  4114. #
  4115. if test -x /sbin/sysconfig; then
  4116. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4117. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4118. esac
  4119. fi
  4120. ;;
  4121. sco3.2v5*)
  4122. lt_cv_sys_max_cmd_len=102400
  4123. ;;
  4124. sysv5* | sco5v6* | sysv4.2uw2*)
  4125. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4126. if test -n "$kargmax"; then
  4127. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4128. else
  4129. lt_cv_sys_max_cmd_len=32768
  4130. fi
  4131. ;;
  4132. *)
  4133. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4134. if test -n "$lt_cv_sys_max_cmd_len" && \
  4135. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4136. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4137. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4138. else
  4139. # Make teststring a little bigger before we do anything with it.
  4140. # a 1K string should be a reasonable start.
  4141. for i in 1 2 3 4 5 6 7 8; do
  4142. teststring=$teststring$teststring
  4143. done
  4144. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4145. # If test is not a shell built-in, we'll probably end up computing a
  4146. # maximum length that is only half of the actual maximum length, but
  4147. # we can't tell.
  4148. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4149. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4150. test 17 != "$i" # 1/2 MB should be enough
  4151. do
  4152. i=`expr $i + 1`
  4153. teststring=$teststring$teststring
  4154. done
  4155. # Only check the string length outside the loop.
  4156. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4157. teststring=
  4158. # Add a significant safety factor because C++ compilers can tack on
  4159. # massive amounts of additional arguments before passing them to the
  4160. # linker. It appears as though 1/2 is a usable value.
  4161. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4162. fi
  4163. ;;
  4164. esac
  4165. fi
  4166. if test -n "$lt_cv_sys_max_cmd_len"; then
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4168. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4169. else
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4171. $as_echo "none" >&6; }
  4172. fi
  4173. max_cmd_len=$lt_cv_sys_max_cmd_len
  4174. : ${CP="cp -f"}
  4175. : ${MV="mv -f"}
  4176. : ${RM="rm -f"}
  4177. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4178. lt_unset=unset
  4179. else
  4180. lt_unset=false
  4181. fi
  4182. # test EBCDIC or ASCII
  4183. case `echo X|tr X '\101'` in
  4184. A) # ASCII based system
  4185. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4186. lt_SP2NL='tr \040 \012'
  4187. lt_NL2SP='tr \015\012 \040\040'
  4188. ;;
  4189. *) # EBCDIC based system
  4190. lt_SP2NL='tr \100 \n'
  4191. lt_NL2SP='tr \r\n \100\100'
  4192. ;;
  4193. esac
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4195. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4196. if ${lt_cv_to_host_file_cmd+:} false; then :
  4197. $as_echo_n "(cached) " >&6
  4198. else
  4199. case $host in
  4200. *-*-mingw* )
  4201. case $build in
  4202. *-*-mingw* ) # actually msys
  4203. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4204. ;;
  4205. *-*-cygwin* )
  4206. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4207. ;;
  4208. * ) # otherwise, assume *nix
  4209. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4210. ;;
  4211. esac
  4212. ;;
  4213. *-*-cygwin* )
  4214. case $build in
  4215. *-*-mingw* ) # actually msys
  4216. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4217. ;;
  4218. *-*-cygwin* )
  4219. lt_cv_to_host_file_cmd=func_convert_file_noop
  4220. ;;
  4221. * ) # otherwise, assume *nix
  4222. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4223. ;;
  4224. esac
  4225. ;;
  4226. * ) # unhandled hosts (and "normal" native builds)
  4227. lt_cv_to_host_file_cmd=func_convert_file_noop
  4228. ;;
  4229. esac
  4230. fi
  4231. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4233. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4235. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4236. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4237. $as_echo_n "(cached) " >&6
  4238. else
  4239. #assume ordinary cross tools, or native build.
  4240. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4241. case $host in
  4242. *-*-mingw* )
  4243. case $build in
  4244. *-*-mingw* ) # actually msys
  4245. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4246. ;;
  4247. esac
  4248. ;;
  4249. esac
  4250. fi
  4251. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4253. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4255. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4256. if ${lt_cv_ld_reload_flag+:} false; then :
  4257. $as_echo_n "(cached) " >&6
  4258. else
  4259. lt_cv_ld_reload_flag='-r'
  4260. fi
  4261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4262. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4263. reload_flag=$lt_cv_ld_reload_flag
  4264. case $reload_flag in
  4265. "" | " "*) ;;
  4266. *) reload_flag=" $reload_flag" ;;
  4267. esac
  4268. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4269. case $host_os in
  4270. cygwin* | mingw* | pw32* | cegcc*)
  4271. if test yes != "$GCC"; then
  4272. reload_cmds=false
  4273. fi
  4274. ;;
  4275. darwin*)
  4276. if test yes = "$GCC"; then
  4277. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4278. else
  4279. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4280. fi
  4281. ;;
  4282. esac
  4283. if test -n "$ac_tool_prefix"; then
  4284. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4285. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4287. $as_echo_n "checking for $ac_word... " >&6; }
  4288. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4289. $as_echo_n "(cached) " >&6
  4290. else
  4291. if test -n "$OBJDUMP"; then
  4292. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4293. else
  4294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4295. for as_dir in $PATH
  4296. do
  4297. IFS=$as_save_IFS
  4298. test -z "$as_dir" && as_dir=.
  4299. for ac_exec_ext in '' $ac_executable_extensions; do
  4300. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4301. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4303. break 2
  4304. fi
  4305. done
  4306. done
  4307. IFS=$as_save_IFS
  4308. fi
  4309. fi
  4310. OBJDUMP=$ac_cv_prog_OBJDUMP
  4311. if test -n "$OBJDUMP"; then
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4313. $as_echo "$OBJDUMP" >&6; }
  4314. else
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4316. $as_echo "no" >&6; }
  4317. fi
  4318. fi
  4319. if test -z "$ac_cv_prog_OBJDUMP"; then
  4320. ac_ct_OBJDUMP=$OBJDUMP
  4321. # Extract the first word of "objdump", so it can be a program name with args.
  4322. set dummy objdump; ac_word=$2
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4324. $as_echo_n "checking for $ac_word... " >&6; }
  4325. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4326. $as_echo_n "(cached) " >&6
  4327. else
  4328. if test -n "$ac_ct_OBJDUMP"; then
  4329. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4330. else
  4331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4332. for as_dir in $PATH
  4333. do
  4334. IFS=$as_save_IFS
  4335. test -z "$as_dir" && as_dir=.
  4336. for ac_exec_ext in '' $ac_executable_extensions; do
  4337. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4338. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4339. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4340. break 2
  4341. fi
  4342. done
  4343. done
  4344. IFS=$as_save_IFS
  4345. fi
  4346. fi
  4347. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4348. if test -n "$ac_ct_OBJDUMP"; then
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4350. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4351. else
  4352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4353. $as_echo "no" >&6; }
  4354. fi
  4355. if test "x$ac_ct_OBJDUMP" = x; then
  4356. OBJDUMP="false"
  4357. else
  4358. case $cross_compiling:$ac_tool_warned in
  4359. yes:)
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4361. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4362. ac_tool_warned=yes ;;
  4363. esac
  4364. OBJDUMP=$ac_ct_OBJDUMP
  4365. fi
  4366. else
  4367. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4368. fi
  4369. test -z "$OBJDUMP" && OBJDUMP=objdump
  4370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4371. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4372. if ${lt_cv_deplibs_check_method+:} false; then :
  4373. $as_echo_n "(cached) " >&6
  4374. else
  4375. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4376. lt_cv_file_magic_test_file=
  4377. lt_cv_deplibs_check_method='unknown'
  4378. # Need to set the preceding variable on all platforms that support
  4379. # interlibrary dependencies.
  4380. # 'none' -- dependencies not supported.
  4381. # 'unknown' -- same as none, but documents that we really don't know.
  4382. # 'pass_all' -- all dependencies passed with no checks.
  4383. # 'test_compile' -- check by making test program.
  4384. # 'file_magic [[regex]]' -- check by looking for files in library path
  4385. # that responds to the $file_magic_cmd with a given extended regex.
  4386. # If you have 'file' or equivalent on your system and you're not sure
  4387. # whether 'pass_all' will *always* work, you probably want this one.
  4388. case $host_os in
  4389. aix[4-9]*)
  4390. lt_cv_deplibs_check_method=pass_all
  4391. ;;
  4392. beos*)
  4393. lt_cv_deplibs_check_method=pass_all
  4394. ;;
  4395. bsdi[45]*)
  4396. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4397. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4398. lt_cv_file_magic_test_file=/shlib/libc.so
  4399. ;;
  4400. cygwin*)
  4401. # func_win32_libid is a shell function defined in ltmain.sh
  4402. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4403. lt_cv_file_magic_cmd='func_win32_libid'
  4404. lt_cv_deplibs_check_method=pass_all # SDL customization
  4405. ;;
  4406. mingw* | pw32*)
  4407. # Base MSYS/MinGW do not provide the 'file' command needed by
  4408. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4409. # unless we find 'file', for example because we are cross-compiling.
  4410. if ( file / ) >/dev/null 2>&1; then
  4411. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4412. lt_cv_file_magic_cmd='func_win32_libid'
  4413. else
  4414. # Keep this pattern in sync with the one in func_win32_libid.
  4415. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4416. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4417. fi
  4418. lt_cv_deplibs_check_method=pass_all # SDL customization
  4419. ;;
  4420. cegcc*)
  4421. # use the weaker test based on 'objdump'. See mingw*.
  4422. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4423. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4424. ;;
  4425. darwin* | rhapsody*)
  4426. lt_cv_deplibs_check_method=pass_all
  4427. ;;
  4428. freebsd* | dragonfly* | midnightbsd*)
  4429. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4430. case $host_cpu in
  4431. i*86 )
  4432. # Not sure whether the presence of OpenBSD here was a mistake.
  4433. # Let's accept both of them until this is cleared up.
  4434. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4435. lt_cv_file_magic_cmd=/usr/bin/file
  4436. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4437. ;;
  4438. esac
  4439. else
  4440. lt_cv_deplibs_check_method=pass_all
  4441. fi
  4442. ;;
  4443. haiku*)
  4444. lt_cv_deplibs_check_method=pass_all
  4445. ;;
  4446. hpux10.20* | hpux11*)
  4447. lt_cv_file_magic_cmd=/usr/bin/file
  4448. case $host_cpu in
  4449. ia64*)
  4450. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4451. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4452. ;;
  4453. hppa*64*)
  4454. 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]'
  4455. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4456. ;;
  4457. *)
  4458. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4459. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4460. ;;
  4461. esac
  4462. ;;
  4463. interix[3-9]*)
  4464. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4465. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4466. ;;
  4467. irix5* | irix6* | nonstopux*)
  4468. case $LD in
  4469. *-32|*"-32 ") libmagic=32-bit;;
  4470. *-n32|*"-n32 ") libmagic=N32;;
  4471. *-64|*"-64 ") libmagic=64-bit;;
  4472. *) libmagic=never-match;;
  4473. esac
  4474. lt_cv_deplibs_check_method=pass_all
  4475. ;;
  4476. # This must be glibc/ELF.
  4477. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4478. lt_cv_deplibs_check_method=pass_all
  4479. ;;
  4480. netbsd*)
  4481. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4482. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4483. else
  4484. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4485. fi
  4486. ;;
  4487. newos6*)
  4488. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4489. lt_cv_file_magic_cmd=/usr/bin/file
  4490. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4491. ;;
  4492. *nto* | *qnx*)
  4493. lt_cv_deplibs_check_method=pass_all
  4494. ;;
  4495. openbsd* | bitrig*)
  4496. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4497. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4498. else
  4499. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4500. fi
  4501. ;;
  4502. osf3* | osf4* | osf5*)
  4503. lt_cv_deplibs_check_method=pass_all
  4504. ;;
  4505. rdos*)
  4506. lt_cv_deplibs_check_method=pass_all
  4507. ;;
  4508. solaris*)
  4509. lt_cv_deplibs_check_method=pass_all
  4510. ;;
  4511. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4512. lt_cv_deplibs_check_method=pass_all
  4513. ;;
  4514. sysv4 | sysv4.3*)
  4515. case $host_vendor in
  4516. motorola)
  4517. 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]'
  4518. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4519. ;;
  4520. ncr)
  4521. lt_cv_deplibs_check_method=pass_all
  4522. ;;
  4523. sequent)
  4524. lt_cv_file_magic_cmd='/bin/file'
  4525. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4526. ;;
  4527. sni)
  4528. lt_cv_file_magic_cmd='/bin/file'
  4529. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4530. lt_cv_file_magic_test_file=/lib/libc.so
  4531. ;;
  4532. siemens)
  4533. lt_cv_deplibs_check_method=pass_all
  4534. ;;
  4535. pc)
  4536. lt_cv_deplibs_check_method=pass_all
  4537. ;;
  4538. esac
  4539. ;;
  4540. tpf*)
  4541. lt_cv_deplibs_check_method=pass_all
  4542. ;;
  4543. os2*)
  4544. lt_cv_deplibs_check_method=pass_all
  4545. ;;
  4546. esac
  4547. fi
  4548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4549. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4550. file_magic_glob=
  4551. want_nocaseglob=no
  4552. if test "$build" = "$host"; then
  4553. case $host_os in
  4554. mingw* | pw32*)
  4555. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4556. want_nocaseglob=yes
  4557. else
  4558. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4559. fi
  4560. ;;
  4561. esac
  4562. fi
  4563. file_magic_cmd=$lt_cv_file_magic_cmd
  4564. deplibs_check_method=$lt_cv_deplibs_check_method
  4565. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4566. if test -n "$ac_tool_prefix"; then
  4567. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4568. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4570. $as_echo_n "checking for $ac_word... " >&6; }
  4571. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4572. $as_echo_n "(cached) " >&6
  4573. else
  4574. if test -n "$DLLTOOL"; then
  4575. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4576. else
  4577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4578. for as_dir in $PATH
  4579. do
  4580. IFS=$as_save_IFS
  4581. test -z "$as_dir" && as_dir=.
  4582. for ac_exec_ext in '' $ac_executable_extensions; do
  4583. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4584. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4586. break 2
  4587. fi
  4588. done
  4589. done
  4590. IFS=$as_save_IFS
  4591. fi
  4592. fi
  4593. DLLTOOL=$ac_cv_prog_DLLTOOL
  4594. if test -n "$DLLTOOL"; then
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4596. $as_echo "$DLLTOOL" >&6; }
  4597. else
  4598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4599. $as_echo "no" >&6; }
  4600. fi
  4601. fi
  4602. if test -z "$ac_cv_prog_DLLTOOL"; then
  4603. ac_ct_DLLTOOL=$DLLTOOL
  4604. # Extract the first word of "dlltool", so it can be a program name with args.
  4605. set dummy dlltool; ac_word=$2
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4607. $as_echo_n "checking for $ac_word... " >&6; }
  4608. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4609. $as_echo_n "(cached) " >&6
  4610. else
  4611. if test -n "$ac_ct_DLLTOOL"; then
  4612. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4613. else
  4614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4615. for as_dir in $PATH
  4616. do
  4617. IFS=$as_save_IFS
  4618. test -z "$as_dir" && as_dir=.
  4619. for ac_exec_ext in '' $ac_executable_extensions; do
  4620. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4621. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4623. break 2
  4624. fi
  4625. done
  4626. done
  4627. IFS=$as_save_IFS
  4628. fi
  4629. fi
  4630. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4631. if test -n "$ac_ct_DLLTOOL"; then
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4633. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4634. else
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4636. $as_echo "no" >&6; }
  4637. fi
  4638. if test "x$ac_ct_DLLTOOL" = x; then
  4639. DLLTOOL="false"
  4640. else
  4641. case $cross_compiling:$ac_tool_warned in
  4642. yes:)
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4644. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4645. ac_tool_warned=yes ;;
  4646. esac
  4647. DLLTOOL=$ac_ct_DLLTOOL
  4648. fi
  4649. else
  4650. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4651. fi
  4652. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4654. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4655. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4656. $as_echo_n "(cached) " >&6
  4657. else
  4658. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4659. case $host_os in
  4660. cygwin* | mingw* | pw32* | cegcc*)
  4661. # two different shell functions defined in ltmain.sh;
  4662. # decide which one to use based on capabilities of $DLLTOOL
  4663. case `$DLLTOOL --help 2>&1` in
  4664. *--identify-strict*)
  4665. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4666. ;;
  4667. *)
  4668. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4669. ;;
  4670. esac
  4671. ;;
  4672. *)
  4673. # fallback: assume linklib IS sharedlib
  4674. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4675. ;;
  4676. esac
  4677. fi
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4679. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4680. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4681. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4682. if test -n "$ac_tool_prefix"; then
  4683. for ac_prog in ar
  4684. do
  4685. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4686. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4688. $as_echo_n "checking for $ac_word... " >&6; }
  4689. if ${ac_cv_prog_AR+:} false; then :
  4690. $as_echo_n "(cached) " >&6
  4691. else
  4692. if test -n "$AR"; then
  4693. ac_cv_prog_AR="$AR" # 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. test -z "$as_dir" && as_dir=.
  4700. for ac_exec_ext in '' $ac_executable_extensions; do
  4701. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4702. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4704. break 2
  4705. fi
  4706. done
  4707. done
  4708. IFS=$as_save_IFS
  4709. fi
  4710. fi
  4711. AR=$ac_cv_prog_AR
  4712. if test -n "$AR"; then
  4713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4714. $as_echo "$AR" >&6; }
  4715. else
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4717. $as_echo "no" >&6; }
  4718. fi
  4719. test -n "$AR" && break
  4720. done
  4721. fi
  4722. if test -z "$AR"; then
  4723. ac_ct_AR=$AR
  4724. for ac_prog in ar
  4725. do
  4726. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4727. set dummy $ac_prog; ac_word=$2
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4729. $as_echo_n "checking for $ac_word... " >&6; }
  4730. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4731. $as_echo_n "(cached) " >&6
  4732. else
  4733. if test -n "$ac_ct_AR"; then
  4734. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4735. else
  4736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4737. for as_dir in $PATH
  4738. do
  4739. IFS=$as_save_IFS
  4740. test -z "$as_dir" && as_dir=.
  4741. for ac_exec_ext in '' $ac_executable_extensions; do
  4742. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4743. ac_cv_prog_ac_ct_AR="$ac_prog"
  4744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4745. break 2
  4746. fi
  4747. done
  4748. done
  4749. IFS=$as_save_IFS
  4750. fi
  4751. fi
  4752. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4753. if test -n "$ac_ct_AR"; then
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4755. $as_echo "$ac_ct_AR" >&6; }
  4756. else
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4758. $as_echo "no" >&6; }
  4759. fi
  4760. test -n "$ac_ct_AR" && break
  4761. done
  4762. if test "x$ac_ct_AR" = x; then
  4763. AR="false"
  4764. else
  4765. case $cross_compiling:$ac_tool_warned in
  4766. yes:)
  4767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4768. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4769. ac_tool_warned=yes ;;
  4770. esac
  4771. AR=$ac_ct_AR
  4772. fi
  4773. fi
  4774. : ${AR=ar}
  4775. : ${AR_FLAGS=cru}
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4777. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4778. if ${lt_cv_ar_at_file+:} false; then :
  4779. $as_echo_n "(cached) " >&6
  4780. else
  4781. lt_cv_ar_at_file=no
  4782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4783. /* end confdefs.h. */
  4784. int
  4785. main ()
  4786. {
  4787. ;
  4788. return 0;
  4789. }
  4790. _ACEOF
  4791. if ac_fn_c_try_compile "$LINENO"; then :
  4792. echo conftest.$ac_objext > conftest.lst
  4793. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4794. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4795. (eval $lt_ar_try) 2>&5
  4796. ac_status=$?
  4797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4798. test $ac_status = 0; }
  4799. if test 0 -eq "$ac_status"; then
  4800. # Ensure the archiver fails upon bogus file names.
  4801. rm -f conftest.$ac_objext libconftest.a
  4802. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4803. (eval $lt_ar_try) 2>&5
  4804. ac_status=$?
  4805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4806. test $ac_status = 0; }
  4807. if test 0 -ne "$ac_status"; then
  4808. lt_cv_ar_at_file=@
  4809. fi
  4810. fi
  4811. rm -f conftest.* libconftest.a
  4812. fi
  4813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4814. fi
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4816. $as_echo "$lt_cv_ar_at_file" >&6; }
  4817. if test no = "$lt_cv_ar_at_file"; then
  4818. archiver_list_spec=
  4819. else
  4820. archiver_list_spec=$lt_cv_ar_at_file
  4821. fi
  4822. if test -n "$ac_tool_prefix"; then
  4823. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4824. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4826. $as_echo_n "checking for $ac_word... " >&6; }
  4827. if ${ac_cv_prog_STRIP+:} false; then :
  4828. $as_echo_n "(cached) " >&6
  4829. else
  4830. if test -n "$STRIP"; then
  4831. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4832. else
  4833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4834. for as_dir in $PATH
  4835. do
  4836. IFS=$as_save_IFS
  4837. test -z "$as_dir" && as_dir=.
  4838. for ac_exec_ext in '' $ac_executable_extensions; do
  4839. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4840. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4842. break 2
  4843. fi
  4844. done
  4845. done
  4846. IFS=$as_save_IFS
  4847. fi
  4848. fi
  4849. STRIP=$ac_cv_prog_STRIP
  4850. if test -n "$STRIP"; then
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4852. $as_echo "$STRIP" >&6; }
  4853. else
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4855. $as_echo "no" >&6; }
  4856. fi
  4857. fi
  4858. if test -z "$ac_cv_prog_STRIP"; then
  4859. ac_ct_STRIP=$STRIP
  4860. # Extract the first word of "strip", so it can be a program name with args.
  4861. set dummy strip; ac_word=$2
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4863. $as_echo_n "checking for $ac_word... " >&6; }
  4864. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4865. $as_echo_n "(cached) " >&6
  4866. else
  4867. if test -n "$ac_ct_STRIP"; then
  4868. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4869. else
  4870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4871. for as_dir in $PATH
  4872. do
  4873. IFS=$as_save_IFS
  4874. test -z "$as_dir" && as_dir=.
  4875. for ac_exec_ext in '' $ac_executable_extensions; do
  4876. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4877. ac_cv_prog_ac_ct_STRIP="strip"
  4878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4879. break 2
  4880. fi
  4881. done
  4882. done
  4883. IFS=$as_save_IFS
  4884. fi
  4885. fi
  4886. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4887. if test -n "$ac_ct_STRIP"; then
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4889. $as_echo "$ac_ct_STRIP" >&6; }
  4890. else
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4892. $as_echo "no" >&6; }
  4893. fi
  4894. if test "x$ac_ct_STRIP" = x; then
  4895. STRIP=":"
  4896. else
  4897. case $cross_compiling:$ac_tool_warned in
  4898. yes:)
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4900. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4901. ac_tool_warned=yes ;;
  4902. esac
  4903. STRIP=$ac_ct_STRIP
  4904. fi
  4905. else
  4906. STRIP="$ac_cv_prog_STRIP"
  4907. fi
  4908. test -z "$STRIP" && STRIP=:
  4909. if test -n "$ac_tool_prefix"; then
  4910. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4911. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4913. $as_echo_n "checking for $ac_word... " >&6; }
  4914. if ${ac_cv_prog_RANLIB+:} false; then :
  4915. $as_echo_n "(cached) " >&6
  4916. else
  4917. if test -n "$RANLIB"; then
  4918. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4919. else
  4920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4921. for as_dir in $PATH
  4922. do
  4923. IFS=$as_save_IFS
  4924. test -z "$as_dir" && as_dir=.
  4925. for ac_exec_ext in '' $ac_executable_extensions; do
  4926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4927. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4929. break 2
  4930. fi
  4931. done
  4932. done
  4933. IFS=$as_save_IFS
  4934. fi
  4935. fi
  4936. RANLIB=$ac_cv_prog_RANLIB
  4937. if test -n "$RANLIB"; then
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4939. $as_echo "$RANLIB" >&6; }
  4940. else
  4941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4942. $as_echo "no" >&6; }
  4943. fi
  4944. fi
  4945. if test -z "$ac_cv_prog_RANLIB"; then
  4946. ac_ct_RANLIB=$RANLIB
  4947. # Extract the first word of "ranlib", so it can be a program name with args.
  4948. set dummy ranlib; ac_word=$2
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4950. $as_echo_n "checking for $ac_word... " >&6; }
  4951. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4952. $as_echo_n "(cached) " >&6
  4953. else
  4954. if test -n "$ac_ct_RANLIB"; then
  4955. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4956. else
  4957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4958. for as_dir in $PATH
  4959. do
  4960. IFS=$as_save_IFS
  4961. test -z "$as_dir" && as_dir=.
  4962. for ac_exec_ext in '' $ac_executable_extensions; do
  4963. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4964. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4966. break 2
  4967. fi
  4968. done
  4969. done
  4970. IFS=$as_save_IFS
  4971. fi
  4972. fi
  4973. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4974. if test -n "$ac_ct_RANLIB"; then
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4976. $as_echo "$ac_ct_RANLIB" >&6; }
  4977. else
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4979. $as_echo "no" >&6; }
  4980. fi
  4981. if test "x$ac_ct_RANLIB" = x; then
  4982. RANLIB=":"
  4983. else
  4984. case $cross_compiling:$ac_tool_warned in
  4985. yes:)
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4987. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4988. ac_tool_warned=yes ;;
  4989. esac
  4990. RANLIB=$ac_ct_RANLIB
  4991. fi
  4992. else
  4993. RANLIB="$ac_cv_prog_RANLIB"
  4994. fi
  4995. test -z "$RANLIB" && RANLIB=:
  4996. # Determine commands to create old-style static archives.
  4997. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4998. old_postinstall_cmds='chmod 644 $oldlib'
  4999. old_postuninstall_cmds=
  5000. if test -n "$RANLIB"; then
  5001. case $host_os in
  5002. bitrig* | openbsd*)
  5003. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5004. ;;
  5005. *)
  5006. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5007. ;;
  5008. esac
  5009. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5010. fi
  5011. case $host_os in
  5012. darwin*)
  5013. lock_old_archive_extraction=yes ;;
  5014. *)
  5015. lock_old_archive_extraction=no ;;
  5016. esac
  5017. for ac_prog in gawk mawk nawk awk
  5018. do
  5019. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5020. set dummy $ac_prog; ac_word=$2
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5022. $as_echo_n "checking for $ac_word... " >&6; }
  5023. if ${ac_cv_prog_AWK+:} false; then :
  5024. $as_echo_n "(cached) " >&6
  5025. else
  5026. if test -n "$AWK"; then
  5027. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5028. else
  5029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5030. for as_dir in $PATH
  5031. do
  5032. IFS=$as_save_IFS
  5033. test -z "$as_dir" && as_dir=.
  5034. for ac_exec_ext in '' $ac_executable_extensions; do
  5035. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5036. ac_cv_prog_AWK="$ac_prog"
  5037. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5038. break 2
  5039. fi
  5040. done
  5041. done
  5042. IFS=$as_save_IFS
  5043. fi
  5044. fi
  5045. AWK=$ac_cv_prog_AWK
  5046. if test -n "$AWK"; then
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5048. $as_echo "$AWK" >&6; }
  5049. else
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5051. $as_echo "no" >&6; }
  5052. fi
  5053. test -n "$AWK" && break
  5054. done
  5055. # If no C compiler was specified, use CC.
  5056. LTCC=${LTCC-"$CC"}
  5057. # If no C compiler flags were specified, use CFLAGS.
  5058. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5059. # Allow CC to be a program name with arguments.
  5060. compiler=$CC
  5061. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5063. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5064. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5065. $as_echo_n "(cached) " >&6
  5066. else
  5067. # These are sane defaults that work on at least a few old systems.
  5068. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5069. # Character class describing NM global symbol codes.
  5070. symcode='[BCDEGRST]'
  5071. # Regexp to match symbols that can be accessed directly from C.
  5072. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5073. # Define system-specific variables.
  5074. case $host_os in
  5075. aix*)
  5076. symcode='[BCDT]'
  5077. ;;
  5078. cygwin* | mingw* | pw32* | cegcc*)
  5079. symcode='[ABCDGISTW]'
  5080. ;;
  5081. hpux*)
  5082. if test ia64 = "$host_cpu"; then
  5083. symcode='[ABCDEGRST]'
  5084. fi
  5085. ;;
  5086. irix* | nonstopux*)
  5087. symcode='[BCDEGRST]'
  5088. ;;
  5089. osf*)
  5090. symcode='[BCDEGQRST]'
  5091. ;;
  5092. solaris*)
  5093. symcode='[BCDRT]'
  5094. ;;
  5095. sco3.2v5*)
  5096. symcode='[DT]'
  5097. ;;
  5098. sysv4.2uw2*)
  5099. symcode='[DT]'
  5100. ;;
  5101. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5102. symcode='[ABDT]'
  5103. ;;
  5104. sysv4)
  5105. symcode='[DFNSTU]'
  5106. ;;
  5107. esac
  5108. # If we're using GNU nm, then use its standard symbol codes.
  5109. case `$NM -V 2>&1` in
  5110. *GNU* | *'with BFD'*)
  5111. symcode='[ABCDGIRSTW]' ;;
  5112. esac
  5113. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5114. # Gets list of data symbols to import.
  5115. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5116. # Adjust the below global symbol transforms to fixup imported variables.
  5117. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5118. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5119. lt_c_name_lib_hook="\
  5120. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5121. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5122. else
  5123. # Disable hooks by default.
  5124. lt_cv_sys_global_symbol_to_import=
  5125. lt_cdecl_hook=
  5126. lt_c_name_hook=
  5127. lt_c_name_lib_hook=
  5128. fi
  5129. # Transform an extracted symbol line into a proper C declaration.
  5130. # Some systems (esp. on ia64) link data and code symbols differently,
  5131. # so use this general approach.
  5132. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5133. $lt_cdecl_hook\
  5134. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5135. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5136. # Transform an extracted symbol line into symbol name and symbol address
  5137. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5138. $lt_c_name_hook\
  5139. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5140. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5141. # Transform an extracted symbol line into symbol name with lib prefix and
  5142. # symbol address.
  5143. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5144. $lt_c_name_lib_hook\
  5145. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5146. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5147. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5148. # Handle CRLF in mingw tool chain
  5149. opt_cr=
  5150. case $build_os in
  5151. mingw*)
  5152. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5153. ;;
  5154. esac
  5155. # Try without a prefix underscore, then with it.
  5156. for ac_symprfx in "" "_"; do
  5157. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5158. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5159. # Write the raw and C identifiers.
  5160. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5161. # Fake it for dumpbin and say T for any non-static function,
  5162. # D for any global variable and I for any imported variable.
  5163. # Also find C++ and __fastcall symbols from MSVC++,
  5164. # which start with @ or ?.
  5165. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5166. " {last_section=section; section=\$ 3};"\
  5167. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5168. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5169. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5170. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5171. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5172. " \$ 0!~/External *\|/{next};"\
  5173. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5174. " {if(hide[section]) next};"\
  5175. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5176. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5177. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5178. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5179. " ' prfx=^$ac_symprfx"
  5180. else
  5181. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5182. fi
  5183. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5184. # Check to see that the pipe works correctly.
  5185. pipe_works=no
  5186. rm -f conftest*
  5187. cat > conftest.$ac_ext <<_LT_EOF
  5188. #ifdef __cplusplus
  5189. extern "C" {
  5190. #endif
  5191. char nm_test_var;
  5192. void nm_test_func(void);
  5193. void nm_test_func(void){}
  5194. #ifdef __cplusplus
  5195. }
  5196. #endif
  5197. int main(){nm_test_var='a';nm_test_func();return(0);}
  5198. _LT_EOF
  5199. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5200. (eval $ac_compile) 2>&5
  5201. ac_status=$?
  5202. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5203. test $ac_status = 0; }; then
  5204. # Now try to grab the symbols.
  5205. nlist=conftest.nm
  5206. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5207. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5208. ac_status=$?
  5209. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5210. test $ac_status = 0; } && test -s "$nlist"; then
  5211. # Try sorting and uniquifying the output.
  5212. if sort "$nlist" | uniq > "$nlist"T; then
  5213. mv -f "$nlist"T "$nlist"
  5214. else
  5215. rm -f "$nlist"T
  5216. fi
  5217. # Make sure that we snagged all the symbols we need.
  5218. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5219. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5220. cat <<_LT_EOF > conftest.$ac_ext
  5221. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5222. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5223. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5224. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5225. # define LT_DLSYM_CONST
  5226. #elif defined __osf__
  5227. /* This system does not cope well with relocations in const data. */
  5228. # define LT_DLSYM_CONST
  5229. #else
  5230. # define LT_DLSYM_CONST const
  5231. #endif
  5232. #ifdef __cplusplus
  5233. extern "C" {
  5234. #endif
  5235. _LT_EOF
  5236. # Now generate the symbol file.
  5237. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5238. cat <<_LT_EOF >> conftest.$ac_ext
  5239. /* The mapping between symbol names and symbols. */
  5240. LT_DLSYM_CONST struct {
  5241. const char *name;
  5242. void *address;
  5243. }
  5244. lt__PROGRAM__LTX_preloaded_symbols[] =
  5245. {
  5246. { "@PROGRAM@", (void *) 0 },
  5247. _LT_EOF
  5248. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5249. cat <<\_LT_EOF >> conftest.$ac_ext
  5250. {0, (void *) 0}
  5251. };
  5252. /* This works around a problem in FreeBSD linker */
  5253. #ifdef FREEBSD_WORKAROUND
  5254. static const void *lt_preloaded_setup() {
  5255. return lt__PROGRAM__LTX_preloaded_symbols;
  5256. }
  5257. #endif
  5258. #ifdef __cplusplus
  5259. }
  5260. #endif
  5261. _LT_EOF
  5262. # Now try linking the two files.
  5263. mv conftest.$ac_objext conftstm.$ac_objext
  5264. lt_globsym_save_LIBS=$LIBS
  5265. lt_globsym_save_CFLAGS=$CFLAGS
  5266. LIBS=conftstm.$ac_objext
  5267. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5268. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5269. (eval $ac_link) 2>&5
  5270. ac_status=$?
  5271. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5272. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5273. pipe_works=yes
  5274. fi
  5275. LIBS=$lt_globsym_save_LIBS
  5276. CFLAGS=$lt_globsym_save_CFLAGS
  5277. else
  5278. echo "cannot find nm_test_func in $nlist" >&5
  5279. fi
  5280. else
  5281. echo "cannot find nm_test_var in $nlist" >&5
  5282. fi
  5283. else
  5284. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5285. fi
  5286. else
  5287. echo "$progname: failed program was:" >&5
  5288. cat conftest.$ac_ext >&5
  5289. fi
  5290. rm -rf conftest* conftst*
  5291. # Do not use the global_symbol_pipe unless it works.
  5292. if test yes = "$pipe_works"; then
  5293. break
  5294. else
  5295. lt_cv_sys_global_symbol_pipe=
  5296. fi
  5297. done
  5298. fi
  5299. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5300. lt_cv_sys_global_symbol_to_cdecl=
  5301. fi
  5302. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5304. $as_echo "failed" >&6; }
  5305. else
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5307. $as_echo "ok" >&6; }
  5308. fi
  5309. # Response file support.
  5310. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5311. nm_file_list_spec='@'
  5312. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5313. nm_file_list_spec='@'
  5314. fi
  5315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5316. $as_echo_n "checking for sysroot... " >&6; }
  5317. # Check whether --with-sysroot was given.
  5318. if test "${with_sysroot+set}" = set; then :
  5319. withval=$with_sysroot;
  5320. else
  5321. with_sysroot=no
  5322. fi
  5323. lt_sysroot=
  5324. case $with_sysroot in #(
  5325. yes)
  5326. if test yes = "$GCC"; then
  5327. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5328. fi
  5329. ;; #(
  5330. /*)
  5331. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5332. ;; #(
  5333. no|'')
  5334. ;; #(
  5335. *)
  5336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5337. $as_echo "$with_sysroot" >&6; }
  5338. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5339. ;;
  5340. esac
  5341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5342. $as_echo "${lt_sysroot:-no}" >&6; }
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5344. $as_echo_n "checking for a working dd... " >&6; }
  5345. if ${ac_cv_path_lt_DD+:} false; then :
  5346. $as_echo_n "(cached) " >&6
  5347. else
  5348. printf 0123456789abcdef0123456789abcdef >conftest.i
  5349. cat conftest.i conftest.i >conftest2.i
  5350. : ${lt_DD:=$DD}
  5351. if test -z "$lt_DD"; then
  5352. ac_path_lt_DD_found=false
  5353. # Loop through the user's path and test for each of PROGNAME-LIST
  5354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5355. for as_dir in $PATH
  5356. do
  5357. IFS=$as_save_IFS
  5358. test -z "$as_dir" && as_dir=.
  5359. for ac_prog in dd; do
  5360. for ac_exec_ext in '' $ac_executable_extensions; do
  5361. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5362. as_fn_executable_p "$ac_path_lt_DD" || continue
  5363. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5364. cmp -s conftest.i conftest.out \
  5365. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5366. fi
  5367. $ac_path_lt_DD_found && break 3
  5368. done
  5369. done
  5370. done
  5371. IFS=$as_save_IFS
  5372. if test -z "$ac_cv_path_lt_DD"; then
  5373. :
  5374. fi
  5375. else
  5376. ac_cv_path_lt_DD=$lt_DD
  5377. fi
  5378. rm -f conftest.i conftest2.i conftest.out
  5379. fi
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5381. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5383. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5384. if ${lt_cv_truncate_bin+:} false; then :
  5385. $as_echo_n "(cached) " >&6
  5386. else
  5387. printf 0123456789abcdef0123456789abcdef >conftest.i
  5388. cat conftest.i conftest.i >conftest2.i
  5389. lt_cv_truncate_bin=
  5390. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5391. cmp -s conftest.i conftest.out \
  5392. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5393. fi
  5394. rm -f conftest.i conftest2.i conftest.out
  5395. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5396. fi
  5397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5398. $as_echo "$lt_cv_truncate_bin" >&6; }
  5399. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5400. func_cc_basename ()
  5401. {
  5402. for cc_temp in $*""; do
  5403. case $cc_temp in
  5404. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5405. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5406. \-*) ;;
  5407. *) break;;
  5408. esac
  5409. done
  5410. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5411. }
  5412. # Check whether --enable-libtool-lock was given.
  5413. if test "${enable_libtool_lock+set}" = set; then :
  5414. enableval=$enable_libtool_lock;
  5415. fi
  5416. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5417. # Some flags need to be propagated to the compiler or linker for good
  5418. # libtool support.
  5419. case $host in
  5420. ia64-*-hpux*)
  5421. # Find out what ABI is being produced by ac_compile, and set mode
  5422. # options accordingly.
  5423. echo 'int i;' > conftest.$ac_ext
  5424. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5425. (eval $ac_compile) 2>&5
  5426. ac_status=$?
  5427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5428. test $ac_status = 0; }; then
  5429. case `/usr/bin/file conftest.$ac_objext` in
  5430. *ELF-32*)
  5431. HPUX_IA64_MODE=32
  5432. ;;
  5433. *ELF-64*)
  5434. HPUX_IA64_MODE=64
  5435. ;;
  5436. esac
  5437. fi
  5438. rm -rf conftest*
  5439. ;;
  5440. *-*-irix6*)
  5441. # Find out what ABI is being produced by ac_compile, and set linker
  5442. # options accordingly.
  5443. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5444. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5445. (eval $ac_compile) 2>&5
  5446. ac_status=$?
  5447. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5448. test $ac_status = 0; }; then
  5449. if test yes = "$lt_cv_prog_gnu_ld"; then
  5450. case `/usr/bin/file conftest.$ac_objext` in
  5451. *32-bit*)
  5452. LD="${LD-ld} -melf32bsmip"
  5453. ;;
  5454. *N32*)
  5455. LD="${LD-ld} -melf32bmipn32"
  5456. ;;
  5457. *64-bit*)
  5458. LD="${LD-ld} -melf64bmip"
  5459. ;;
  5460. esac
  5461. else
  5462. case `/usr/bin/file conftest.$ac_objext` in
  5463. *32-bit*)
  5464. LD="${LD-ld} -32"
  5465. ;;
  5466. *N32*)
  5467. LD="${LD-ld} -n32"
  5468. ;;
  5469. *64-bit*)
  5470. LD="${LD-ld} -64"
  5471. ;;
  5472. esac
  5473. fi
  5474. fi
  5475. rm -rf conftest*
  5476. ;;
  5477. mips64*-*linux*)
  5478. # Find out what ABI is being produced by ac_compile, and set linker
  5479. # options accordingly.
  5480. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5481. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5482. (eval $ac_compile) 2>&5
  5483. ac_status=$?
  5484. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5485. test $ac_status = 0; }; then
  5486. emul=elf
  5487. case `/usr/bin/file conftest.$ac_objext` in
  5488. *32-bit*)
  5489. emul="${emul}32"
  5490. ;;
  5491. *64-bit*)
  5492. emul="${emul}64"
  5493. ;;
  5494. esac
  5495. case `/usr/bin/file conftest.$ac_objext` in
  5496. *MSB*)
  5497. emul="${emul}btsmip"
  5498. ;;
  5499. *LSB*)
  5500. emul="${emul}ltsmip"
  5501. ;;
  5502. esac
  5503. case `/usr/bin/file conftest.$ac_objext` in
  5504. *N32*)
  5505. emul="${emul}n32"
  5506. ;;
  5507. esac
  5508. LD="${LD-ld} -m $emul"
  5509. fi
  5510. rm -rf conftest*
  5511. ;;
  5512. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5513. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5514. # Find out what ABI is being produced by ac_compile, and set linker
  5515. # options accordingly. Note that the listed cases only cover the
  5516. # situations where additional linker options are needed (such as when
  5517. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5518. # vice versa); the common cases where no linker options are needed do
  5519. # not appear in the list.
  5520. echo 'int i;' > conftest.$ac_ext
  5521. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5522. (eval $ac_compile) 2>&5
  5523. ac_status=$?
  5524. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5525. test $ac_status = 0; }; then
  5526. case `/usr/bin/file conftest.o` in
  5527. *32-bit*)
  5528. case $host in
  5529. x86_64-*kfreebsd*-gnu)
  5530. LD="${LD-ld} -m elf_i386_fbsd"
  5531. ;;
  5532. x86_64-*linux*)
  5533. case `/usr/bin/file conftest.o` in
  5534. *x86-64*)
  5535. LD="${LD-ld} -m elf32_x86_64"
  5536. ;;
  5537. *)
  5538. LD="${LD-ld} -m elf_i386"
  5539. ;;
  5540. esac
  5541. ;;
  5542. powerpc64le-*linux*)
  5543. LD="${LD-ld} -m elf32lppclinux"
  5544. ;;
  5545. powerpc64-*linux*)
  5546. LD="${LD-ld} -m elf32ppclinux"
  5547. ;;
  5548. s390x-*linux*)
  5549. LD="${LD-ld} -m elf_s390"
  5550. ;;
  5551. sparc64-*linux*)
  5552. LD="${LD-ld} -m elf32_sparc"
  5553. ;;
  5554. esac
  5555. ;;
  5556. *64-bit*)
  5557. case $host in
  5558. x86_64-*kfreebsd*-gnu)
  5559. LD="${LD-ld} -m elf_x86_64_fbsd"
  5560. ;;
  5561. x86_64-*linux*)
  5562. LD="${LD-ld} -m elf_x86_64"
  5563. ;;
  5564. powerpcle-*linux*|powerpc64le-*linux*)
  5565. LD="${LD-ld} -m elf64lppc"
  5566. ;;
  5567. powerpc-*linux*|powerpc64-*linux*)
  5568. LD="${LD-ld} -m elf64ppc"
  5569. ;;
  5570. s390*-*linux*|s390*-*tpf*)
  5571. LD="${LD-ld} -m elf64_s390"
  5572. ;;
  5573. sparc*-*linux*)
  5574. LD="${LD-ld} -m elf64_sparc"
  5575. ;;
  5576. esac
  5577. ;;
  5578. esac
  5579. fi
  5580. rm -rf conftest*
  5581. ;;
  5582. *-*-sco3.2v5*)
  5583. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5584. SAVE_CFLAGS=$CFLAGS
  5585. CFLAGS="$CFLAGS -belf"
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5587. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5588. if ${lt_cv_cc_needs_belf+:} false; then :
  5589. $as_echo_n "(cached) " >&6
  5590. else
  5591. ac_ext=c
  5592. ac_cpp='$CPP $CPPFLAGS'
  5593. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5594. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5595. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5597. /* end confdefs.h. */
  5598. int
  5599. main ()
  5600. {
  5601. ;
  5602. return 0;
  5603. }
  5604. _ACEOF
  5605. if ac_fn_c_try_link "$LINENO"; then :
  5606. lt_cv_cc_needs_belf=yes
  5607. else
  5608. lt_cv_cc_needs_belf=no
  5609. fi
  5610. rm -f core conftest.err conftest.$ac_objext \
  5611. conftest$ac_exeext conftest.$ac_ext
  5612. ac_ext=c
  5613. ac_cpp='$CPP $CPPFLAGS'
  5614. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5615. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5616. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5617. fi
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5619. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5620. if test yes != "$lt_cv_cc_needs_belf"; then
  5621. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5622. CFLAGS=$SAVE_CFLAGS
  5623. fi
  5624. ;;
  5625. *-*solaris*)
  5626. # Find out what ABI is being produced by ac_compile, and set linker
  5627. # options accordingly.
  5628. echo 'int i;' > conftest.$ac_ext
  5629. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5630. (eval $ac_compile) 2>&5
  5631. ac_status=$?
  5632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5633. test $ac_status = 0; }; then
  5634. case `/usr/bin/file conftest.o` in
  5635. *64-bit*)
  5636. case $lt_cv_prog_gnu_ld in
  5637. yes*)
  5638. case $host in
  5639. i?86-*-solaris*|x86_64-*-solaris*)
  5640. LD="${LD-ld} -m elf_x86_64"
  5641. ;;
  5642. sparc*-*-solaris*)
  5643. LD="${LD-ld} -m elf64_sparc"
  5644. ;;
  5645. esac
  5646. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5647. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5648. LD=${LD-ld}_sol2
  5649. fi
  5650. ;;
  5651. *)
  5652. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5653. LD="${LD-ld} -64"
  5654. fi
  5655. ;;
  5656. esac
  5657. ;;
  5658. esac
  5659. fi
  5660. rm -rf conftest*
  5661. ;;
  5662. esac
  5663. need_locks=$enable_libtool_lock
  5664. if test -n "$ac_tool_prefix"; then
  5665. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5666. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5668. $as_echo_n "checking for $ac_word... " >&6; }
  5669. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5670. $as_echo_n "(cached) " >&6
  5671. else
  5672. if test -n "$MANIFEST_TOOL"; then
  5673. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5674. else
  5675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5676. for as_dir in $PATH
  5677. do
  5678. IFS=$as_save_IFS
  5679. test -z "$as_dir" && as_dir=.
  5680. for ac_exec_ext in '' $ac_executable_extensions; do
  5681. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5682. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5683. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5684. break 2
  5685. fi
  5686. done
  5687. done
  5688. IFS=$as_save_IFS
  5689. fi
  5690. fi
  5691. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5692. if test -n "$MANIFEST_TOOL"; then
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5694. $as_echo "$MANIFEST_TOOL" >&6; }
  5695. else
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5697. $as_echo "no" >&6; }
  5698. fi
  5699. fi
  5700. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5701. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5702. # Extract the first word of "mt", so it can be a program name with args.
  5703. set dummy mt; ac_word=$2
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5705. $as_echo_n "checking for $ac_word... " >&6; }
  5706. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5707. $as_echo_n "(cached) " >&6
  5708. else
  5709. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5710. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5711. else
  5712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5713. for as_dir in $PATH
  5714. do
  5715. IFS=$as_save_IFS
  5716. test -z "$as_dir" && as_dir=.
  5717. for ac_exec_ext in '' $ac_executable_extensions; do
  5718. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5719. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5720. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5721. break 2
  5722. fi
  5723. done
  5724. done
  5725. IFS=$as_save_IFS
  5726. fi
  5727. fi
  5728. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5729. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5731. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5732. else
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5734. $as_echo "no" >&6; }
  5735. fi
  5736. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5737. MANIFEST_TOOL=":"
  5738. else
  5739. case $cross_compiling:$ac_tool_warned in
  5740. yes:)
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5742. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5743. ac_tool_warned=yes ;;
  5744. esac
  5745. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5746. fi
  5747. else
  5748. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5749. fi
  5750. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5752. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5753. if ${lt_cv_path_mainfest_tool+:} false; then :
  5754. $as_echo_n "(cached) " >&6
  5755. else
  5756. lt_cv_path_mainfest_tool=no
  5757. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5758. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5759. cat conftest.err >&5
  5760. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5761. lt_cv_path_mainfest_tool=yes
  5762. fi
  5763. rm -f conftest*
  5764. fi
  5765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5766. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5767. if test yes != "$lt_cv_path_mainfest_tool"; then
  5768. MANIFEST_TOOL=:
  5769. fi
  5770. case $host_os in
  5771. rhapsody* | darwin*)
  5772. if test -n "$ac_tool_prefix"; then
  5773. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5774. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5776. $as_echo_n "checking for $ac_word... " >&6; }
  5777. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5778. $as_echo_n "(cached) " >&6
  5779. else
  5780. if test -n "$DSYMUTIL"; then
  5781. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5782. else
  5783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5784. for as_dir in $PATH
  5785. do
  5786. IFS=$as_save_IFS
  5787. test -z "$as_dir" && as_dir=.
  5788. for ac_exec_ext in '' $ac_executable_extensions; do
  5789. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5790. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5792. break 2
  5793. fi
  5794. done
  5795. done
  5796. IFS=$as_save_IFS
  5797. fi
  5798. fi
  5799. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5800. if test -n "$DSYMUTIL"; then
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5802. $as_echo "$DSYMUTIL" >&6; }
  5803. else
  5804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5805. $as_echo "no" >&6; }
  5806. fi
  5807. fi
  5808. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5809. ac_ct_DSYMUTIL=$DSYMUTIL
  5810. # Extract the first word of "dsymutil", so it can be a program name with args.
  5811. set dummy dsymutil; ac_word=$2
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5813. $as_echo_n "checking for $ac_word... " >&6; }
  5814. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5815. $as_echo_n "(cached) " >&6
  5816. else
  5817. if test -n "$ac_ct_DSYMUTIL"; then
  5818. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5819. else
  5820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5821. for as_dir in $PATH
  5822. do
  5823. IFS=$as_save_IFS
  5824. test -z "$as_dir" && as_dir=.
  5825. for ac_exec_ext in '' $ac_executable_extensions; do
  5826. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5827. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5829. break 2
  5830. fi
  5831. done
  5832. done
  5833. IFS=$as_save_IFS
  5834. fi
  5835. fi
  5836. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5837. if test -n "$ac_ct_DSYMUTIL"; then
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5839. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5840. else
  5841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5842. $as_echo "no" >&6; }
  5843. fi
  5844. if test "x$ac_ct_DSYMUTIL" = x; then
  5845. DSYMUTIL=":"
  5846. else
  5847. case $cross_compiling:$ac_tool_warned in
  5848. yes:)
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5850. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5851. ac_tool_warned=yes ;;
  5852. esac
  5853. DSYMUTIL=$ac_ct_DSYMUTIL
  5854. fi
  5855. else
  5856. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5857. fi
  5858. if test -n "$ac_tool_prefix"; then
  5859. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5860. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5862. $as_echo_n "checking for $ac_word... " >&6; }
  5863. if ${ac_cv_prog_NMEDIT+:} false; then :
  5864. $as_echo_n "(cached) " >&6
  5865. else
  5866. if test -n "$NMEDIT"; then
  5867. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5868. else
  5869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5870. for as_dir in $PATH
  5871. do
  5872. IFS=$as_save_IFS
  5873. test -z "$as_dir" && as_dir=.
  5874. for ac_exec_ext in '' $ac_executable_extensions; do
  5875. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5876. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5878. break 2
  5879. fi
  5880. done
  5881. done
  5882. IFS=$as_save_IFS
  5883. fi
  5884. fi
  5885. NMEDIT=$ac_cv_prog_NMEDIT
  5886. if test -n "$NMEDIT"; then
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5888. $as_echo "$NMEDIT" >&6; }
  5889. else
  5890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5891. $as_echo "no" >&6; }
  5892. fi
  5893. fi
  5894. if test -z "$ac_cv_prog_NMEDIT"; then
  5895. ac_ct_NMEDIT=$NMEDIT
  5896. # Extract the first word of "nmedit", so it can be a program name with args.
  5897. set dummy nmedit; ac_word=$2
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5899. $as_echo_n "checking for $ac_word... " >&6; }
  5900. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5901. $as_echo_n "(cached) " >&6
  5902. else
  5903. if test -n "$ac_ct_NMEDIT"; then
  5904. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5905. else
  5906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5907. for as_dir in $PATH
  5908. do
  5909. IFS=$as_save_IFS
  5910. test -z "$as_dir" && as_dir=.
  5911. for ac_exec_ext in '' $ac_executable_extensions; do
  5912. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5913. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5915. break 2
  5916. fi
  5917. done
  5918. done
  5919. IFS=$as_save_IFS
  5920. fi
  5921. fi
  5922. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5923. if test -n "$ac_ct_NMEDIT"; then
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5925. $as_echo "$ac_ct_NMEDIT" >&6; }
  5926. else
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5928. $as_echo "no" >&6; }
  5929. fi
  5930. if test "x$ac_ct_NMEDIT" = x; then
  5931. NMEDIT=":"
  5932. else
  5933. case $cross_compiling:$ac_tool_warned in
  5934. yes:)
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5936. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5937. ac_tool_warned=yes ;;
  5938. esac
  5939. NMEDIT=$ac_ct_NMEDIT
  5940. fi
  5941. else
  5942. NMEDIT="$ac_cv_prog_NMEDIT"
  5943. fi
  5944. if test -n "$ac_tool_prefix"; then
  5945. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5946. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5948. $as_echo_n "checking for $ac_word... " >&6; }
  5949. if ${ac_cv_prog_LIPO+:} false; then :
  5950. $as_echo_n "(cached) " >&6
  5951. else
  5952. if test -n "$LIPO"; then
  5953. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5954. else
  5955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5956. for as_dir in $PATH
  5957. do
  5958. IFS=$as_save_IFS
  5959. test -z "$as_dir" && as_dir=.
  5960. for ac_exec_ext in '' $ac_executable_extensions; do
  5961. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5962. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5964. break 2
  5965. fi
  5966. done
  5967. done
  5968. IFS=$as_save_IFS
  5969. fi
  5970. fi
  5971. LIPO=$ac_cv_prog_LIPO
  5972. if test -n "$LIPO"; then
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5974. $as_echo "$LIPO" >&6; }
  5975. else
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5977. $as_echo "no" >&6; }
  5978. fi
  5979. fi
  5980. if test -z "$ac_cv_prog_LIPO"; then
  5981. ac_ct_LIPO=$LIPO
  5982. # Extract the first word of "lipo", so it can be a program name with args.
  5983. set dummy lipo; ac_word=$2
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5985. $as_echo_n "checking for $ac_word... " >&6; }
  5986. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5987. $as_echo_n "(cached) " >&6
  5988. else
  5989. if test -n "$ac_ct_LIPO"; then
  5990. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5991. else
  5992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5993. for as_dir in $PATH
  5994. do
  5995. IFS=$as_save_IFS
  5996. test -z "$as_dir" && as_dir=.
  5997. for ac_exec_ext in '' $ac_executable_extensions; do
  5998. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5999. ac_cv_prog_ac_ct_LIPO="lipo"
  6000. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6001. break 2
  6002. fi
  6003. done
  6004. done
  6005. IFS=$as_save_IFS
  6006. fi
  6007. fi
  6008. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6009. if test -n "$ac_ct_LIPO"; then
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6011. $as_echo "$ac_ct_LIPO" >&6; }
  6012. else
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6014. $as_echo "no" >&6; }
  6015. fi
  6016. if test "x$ac_ct_LIPO" = x; then
  6017. LIPO=":"
  6018. else
  6019. case $cross_compiling:$ac_tool_warned in
  6020. yes:)
  6021. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6022. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6023. ac_tool_warned=yes ;;
  6024. esac
  6025. LIPO=$ac_ct_LIPO
  6026. fi
  6027. else
  6028. LIPO="$ac_cv_prog_LIPO"
  6029. fi
  6030. if test -n "$ac_tool_prefix"; then
  6031. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6032. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6034. $as_echo_n "checking for $ac_word... " >&6; }
  6035. if ${ac_cv_prog_OTOOL+:} false; then :
  6036. $as_echo_n "(cached) " >&6
  6037. else
  6038. if test -n "$OTOOL"; then
  6039. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6040. else
  6041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6042. for as_dir in $PATH
  6043. do
  6044. IFS=$as_save_IFS
  6045. test -z "$as_dir" && as_dir=.
  6046. for ac_exec_ext in '' $ac_executable_extensions; do
  6047. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6048. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6049. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6050. break 2
  6051. fi
  6052. done
  6053. done
  6054. IFS=$as_save_IFS
  6055. fi
  6056. fi
  6057. OTOOL=$ac_cv_prog_OTOOL
  6058. if test -n "$OTOOL"; then
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6060. $as_echo "$OTOOL" >&6; }
  6061. else
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6063. $as_echo "no" >&6; }
  6064. fi
  6065. fi
  6066. if test -z "$ac_cv_prog_OTOOL"; then
  6067. ac_ct_OTOOL=$OTOOL
  6068. # Extract the first word of "otool", so it can be a program name with args.
  6069. set dummy otool; ac_word=$2
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6071. $as_echo_n "checking for $ac_word... " >&6; }
  6072. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6073. $as_echo_n "(cached) " >&6
  6074. else
  6075. if test -n "$ac_ct_OTOOL"; then
  6076. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6077. else
  6078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6079. for as_dir in $PATH
  6080. do
  6081. IFS=$as_save_IFS
  6082. test -z "$as_dir" && as_dir=.
  6083. for ac_exec_ext in '' $ac_executable_extensions; do
  6084. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6085. ac_cv_prog_ac_ct_OTOOL="otool"
  6086. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6087. break 2
  6088. fi
  6089. done
  6090. done
  6091. IFS=$as_save_IFS
  6092. fi
  6093. fi
  6094. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6095. if test -n "$ac_ct_OTOOL"; then
  6096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6097. $as_echo "$ac_ct_OTOOL" >&6; }
  6098. else
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6100. $as_echo "no" >&6; }
  6101. fi
  6102. if test "x$ac_ct_OTOOL" = x; then
  6103. OTOOL=":"
  6104. else
  6105. case $cross_compiling:$ac_tool_warned in
  6106. yes:)
  6107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6108. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6109. ac_tool_warned=yes ;;
  6110. esac
  6111. OTOOL=$ac_ct_OTOOL
  6112. fi
  6113. else
  6114. OTOOL="$ac_cv_prog_OTOOL"
  6115. fi
  6116. if test -n "$ac_tool_prefix"; then
  6117. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6118. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6120. $as_echo_n "checking for $ac_word... " >&6; }
  6121. if ${ac_cv_prog_OTOOL64+:} false; then :
  6122. $as_echo_n "(cached) " >&6
  6123. else
  6124. if test -n "$OTOOL64"; then
  6125. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6126. else
  6127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6128. for as_dir in $PATH
  6129. do
  6130. IFS=$as_save_IFS
  6131. test -z "$as_dir" && as_dir=.
  6132. for ac_exec_ext in '' $ac_executable_extensions; do
  6133. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6134. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6136. break 2
  6137. fi
  6138. done
  6139. done
  6140. IFS=$as_save_IFS
  6141. fi
  6142. fi
  6143. OTOOL64=$ac_cv_prog_OTOOL64
  6144. if test -n "$OTOOL64"; then
  6145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6146. $as_echo "$OTOOL64" >&6; }
  6147. else
  6148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6149. $as_echo "no" >&6; }
  6150. fi
  6151. fi
  6152. if test -z "$ac_cv_prog_OTOOL64"; then
  6153. ac_ct_OTOOL64=$OTOOL64
  6154. # Extract the first word of "otool64", so it can be a program name with args.
  6155. set dummy otool64; ac_word=$2
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6157. $as_echo_n "checking for $ac_word... " >&6; }
  6158. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6159. $as_echo_n "(cached) " >&6
  6160. else
  6161. if test -n "$ac_ct_OTOOL64"; then
  6162. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6163. else
  6164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6165. for as_dir in $PATH
  6166. do
  6167. IFS=$as_save_IFS
  6168. test -z "$as_dir" && as_dir=.
  6169. for ac_exec_ext in '' $ac_executable_extensions; do
  6170. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6171. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6172. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6173. break 2
  6174. fi
  6175. done
  6176. done
  6177. IFS=$as_save_IFS
  6178. fi
  6179. fi
  6180. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6181. if test -n "$ac_ct_OTOOL64"; then
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6183. $as_echo "$ac_ct_OTOOL64" >&6; }
  6184. else
  6185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6186. $as_echo "no" >&6; }
  6187. fi
  6188. if test "x$ac_ct_OTOOL64" = x; then
  6189. OTOOL64=":"
  6190. else
  6191. case $cross_compiling:$ac_tool_warned in
  6192. yes:)
  6193. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6194. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6195. ac_tool_warned=yes ;;
  6196. esac
  6197. OTOOL64=$ac_ct_OTOOL64
  6198. fi
  6199. else
  6200. OTOOL64="$ac_cv_prog_OTOOL64"
  6201. fi
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6203. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6204. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6205. $as_echo_n "(cached) " >&6
  6206. else
  6207. lt_cv_apple_cc_single_mod=no
  6208. if test -z "$LT_MULTI_MODULE"; then
  6209. # By default we will add the -single_module flag. You can override
  6210. # by either setting the environment variable LT_MULTI_MODULE
  6211. # non-empty at configure time, or by adding -multi_module to the
  6212. # link flags.
  6213. rm -rf libconftest.dylib*
  6214. echo "int foo(void){return 1;}" > conftest.c
  6215. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6216. -dynamiclib -Wl,-single_module conftest.c" >&5
  6217. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6218. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6219. _lt_result=$?
  6220. # If there is a non-empty error log, and "single_module"
  6221. # appears in it, assume the flag caused a linker warning
  6222. if test -s conftest.err && $GREP single_module conftest.err; then
  6223. cat conftest.err >&5
  6224. # Otherwise, if the output was created with a 0 exit code from
  6225. # the compiler, it worked.
  6226. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6227. lt_cv_apple_cc_single_mod=yes
  6228. else
  6229. cat conftest.err >&5
  6230. fi
  6231. rm -rf libconftest.dylib*
  6232. rm -f conftest.*
  6233. fi
  6234. fi
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6236. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6238. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6239. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6240. $as_echo_n "(cached) " >&6
  6241. else
  6242. lt_cv_ld_exported_symbols_list=no
  6243. save_LDFLAGS=$LDFLAGS
  6244. echo "_main" > conftest.sym
  6245. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6247. /* end confdefs.h. */
  6248. int
  6249. main ()
  6250. {
  6251. ;
  6252. return 0;
  6253. }
  6254. _ACEOF
  6255. if ac_fn_c_try_link "$LINENO"; then :
  6256. lt_cv_ld_exported_symbols_list=yes
  6257. else
  6258. lt_cv_ld_exported_symbols_list=no
  6259. fi
  6260. rm -f core conftest.err conftest.$ac_objext \
  6261. conftest$ac_exeext conftest.$ac_ext
  6262. LDFLAGS=$save_LDFLAGS
  6263. fi
  6264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6265. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6267. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6268. if ${lt_cv_ld_force_load+:} false; then :
  6269. $as_echo_n "(cached) " >&6
  6270. else
  6271. lt_cv_ld_force_load=no
  6272. cat > conftest.c << _LT_EOF
  6273. int forced_loaded() { return 2;}
  6274. _LT_EOF
  6275. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6276. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6277. echo "$AR cru libconftest.a conftest.o" >&5
  6278. $AR cru libconftest.a conftest.o 2>&5
  6279. echo "$RANLIB libconftest.a" >&5
  6280. $RANLIB libconftest.a 2>&5
  6281. cat > conftest.c << _LT_EOF
  6282. int main() { return 0;}
  6283. _LT_EOF
  6284. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6285. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6286. _lt_result=$?
  6287. if test -s conftest.err && $GREP force_load conftest.err; then
  6288. cat conftest.err >&5
  6289. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6290. lt_cv_ld_force_load=yes
  6291. else
  6292. cat conftest.err >&5
  6293. fi
  6294. rm -f conftest.err libconftest.a conftest conftest.c
  6295. rm -rf conftest.dSYM
  6296. fi
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6298. $as_echo "$lt_cv_ld_force_load" >&6; }
  6299. case $host_os in
  6300. rhapsody* | darwin1.[012])
  6301. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6302. darwin1.*)
  6303. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6304. darwin*)
  6305. case $MACOSX_DEPLOYMENT_TARGET,$host in
  6306. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6307. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6308. *)
  6309. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6310. esac
  6311. ;;
  6312. esac
  6313. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6314. _lt_dar_single_mod='$single_module'
  6315. fi
  6316. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6317. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6318. else
  6319. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6320. fi
  6321. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6322. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6323. else
  6324. _lt_dsymutil=
  6325. fi
  6326. ;;
  6327. esac
  6328. # func_munge_path_list VARIABLE PATH
  6329. # -----------------------------------
  6330. # VARIABLE is name of variable containing _space_ separated list of
  6331. # directories to be munged by the contents of PATH, which is string
  6332. # having a format:
  6333. # "DIR[:DIR]:"
  6334. # string "DIR[ DIR]" will be prepended to VARIABLE
  6335. # ":DIR[:DIR]"
  6336. # string "DIR[ DIR]" will be appended to VARIABLE
  6337. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6338. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6339. # "DIRA[ DIRA]" will be appended to VARIABLE
  6340. # "DIR[:DIR]"
  6341. # VARIABLE will be replaced by "DIR[ DIR]"
  6342. func_munge_path_list ()
  6343. {
  6344. case x$2 in
  6345. x)
  6346. ;;
  6347. *:)
  6348. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6349. ;;
  6350. x:*)
  6351. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6352. ;;
  6353. *::*)
  6354. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6355. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6356. ;;
  6357. *)
  6358. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6359. ;;
  6360. esac
  6361. }
  6362. ac_ext=c
  6363. ac_cpp='$CPP $CPPFLAGS'
  6364. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6365. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6366. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6368. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6369. # On Suns, sometimes $CPP names a directory.
  6370. if test -n "$CPP" && test -d "$CPP"; then
  6371. CPP=
  6372. fi
  6373. if test -z "$CPP"; then
  6374. if ${ac_cv_prog_CPP+:} false; then :
  6375. $as_echo_n "(cached) " >&6
  6376. else
  6377. # Double quotes because CPP needs to be expanded
  6378. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6379. do
  6380. ac_preproc_ok=false
  6381. for ac_c_preproc_warn_flag in '' yes
  6382. do
  6383. # Use a header file that comes with gcc, so configuring glibc
  6384. # with a fresh cross-compiler works.
  6385. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6386. # <limits.h> exists even on freestanding compilers.
  6387. # On the NeXT, cc -E runs the code through the compiler's parser,
  6388. # not just through cpp. "Syntax error" is here to catch this case.
  6389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6390. /* end confdefs.h. */
  6391. #ifdef __STDC__
  6392. # include <limits.h>
  6393. #else
  6394. # include <assert.h>
  6395. #endif
  6396. Syntax error
  6397. _ACEOF
  6398. if ac_fn_c_try_cpp "$LINENO"; then :
  6399. else
  6400. # Broken: fails on valid input.
  6401. continue
  6402. fi
  6403. rm -f conftest.err conftest.i conftest.$ac_ext
  6404. # OK, works on sane cases. Now check whether nonexistent headers
  6405. # can be detected and how.
  6406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6407. /* end confdefs.h. */
  6408. #include <ac_nonexistent.h>
  6409. _ACEOF
  6410. if ac_fn_c_try_cpp "$LINENO"; then :
  6411. # Broken: success on invalid input.
  6412. continue
  6413. else
  6414. # Passes both tests.
  6415. ac_preproc_ok=:
  6416. break
  6417. fi
  6418. rm -f conftest.err conftest.i conftest.$ac_ext
  6419. done
  6420. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6421. rm -f conftest.i conftest.err conftest.$ac_ext
  6422. if $ac_preproc_ok; then :
  6423. break
  6424. fi
  6425. done
  6426. ac_cv_prog_CPP=$CPP
  6427. fi
  6428. CPP=$ac_cv_prog_CPP
  6429. else
  6430. ac_cv_prog_CPP=$CPP
  6431. fi
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6433. $as_echo "$CPP" >&6; }
  6434. ac_preproc_ok=false
  6435. for ac_c_preproc_warn_flag in '' yes
  6436. do
  6437. # Use a header file that comes with gcc, so configuring glibc
  6438. # with a fresh cross-compiler works.
  6439. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6440. # <limits.h> exists even on freestanding compilers.
  6441. # On the NeXT, cc -E runs the code through the compiler's parser,
  6442. # not just through cpp. "Syntax error" is here to catch this case.
  6443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6444. /* end confdefs.h. */
  6445. #ifdef __STDC__
  6446. # include <limits.h>
  6447. #else
  6448. # include <assert.h>
  6449. #endif
  6450. Syntax error
  6451. _ACEOF
  6452. if ac_fn_c_try_cpp "$LINENO"; then :
  6453. else
  6454. # Broken: fails on valid input.
  6455. continue
  6456. fi
  6457. rm -f conftest.err conftest.i conftest.$ac_ext
  6458. # OK, works on sane cases. Now check whether nonexistent headers
  6459. # can be detected and how.
  6460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6461. /* end confdefs.h. */
  6462. #include <ac_nonexistent.h>
  6463. _ACEOF
  6464. if ac_fn_c_try_cpp "$LINENO"; then :
  6465. # Broken: success on invalid input.
  6466. continue
  6467. else
  6468. # Passes both tests.
  6469. ac_preproc_ok=:
  6470. break
  6471. fi
  6472. rm -f conftest.err conftest.i conftest.$ac_ext
  6473. done
  6474. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6475. rm -f conftest.i conftest.err conftest.$ac_ext
  6476. if $ac_preproc_ok; then :
  6477. else
  6478. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6479. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6480. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6481. See \`config.log' for more details" "$LINENO" 5; }
  6482. fi
  6483. ac_ext=c
  6484. ac_cpp='$CPP $CPPFLAGS'
  6485. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6486. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6487. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6489. $as_echo_n "checking for ANSI C header files... " >&6; }
  6490. if ${ac_cv_header_stdc+:} false; then :
  6491. $as_echo_n "(cached) " >&6
  6492. else
  6493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6494. /* end confdefs.h. */
  6495. #include <stdlib.h>
  6496. #include <stdarg.h>
  6497. #include <string.h>
  6498. #include <float.h>
  6499. int
  6500. main ()
  6501. {
  6502. ;
  6503. return 0;
  6504. }
  6505. _ACEOF
  6506. if ac_fn_c_try_compile "$LINENO"; then :
  6507. ac_cv_header_stdc=yes
  6508. else
  6509. ac_cv_header_stdc=no
  6510. fi
  6511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6512. if test $ac_cv_header_stdc = yes; then
  6513. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6515. /* end confdefs.h. */
  6516. #include <string.h>
  6517. _ACEOF
  6518. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6519. $EGREP "memchr" >/dev/null 2>&1; then :
  6520. else
  6521. ac_cv_header_stdc=no
  6522. fi
  6523. rm -f conftest*
  6524. fi
  6525. if test $ac_cv_header_stdc = yes; then
  6526. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6528. /* end confdefs.h. */
  6529. #include <stdlib.h>
  6530. _ACEOF
  6531. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6532. $EGREP "free" >/dev/null 2>&1; then :
  6533. else
  6534. ac_cv_header_stdc=no
  6535. fi
  6536. rm -f conftest*
  6537. fi
  6538. if test $ac_cv_header_stdc = yes; then
  6539. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6540. if test "$cross_compiling" = yes; then :
  6541. :
  6542. else
  6543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6544. /* end confdefs.h. */
  6545. #include <ctype.h>
  6546. #include <stdlib.h>
  6547. #if ((' ' & 0x0FF) == 0x020)
  6548. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6549. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6550. #else
  6551. # define ISLOWER(c) \
  6552. (('a' <= (c) && (c) <= 'i') \
  6553. || ('j' <= (c) && (c) <= 'r') \
  6554. || ('s' <= (c) && (c) <= 'z'))
  6555. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6556. #endif
  6557. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6558. int
  6559. main ()
  6560. {
  6561. int i;
  6562. for (i = 0; i < 256; i++)
  6563. if (XOR (islower (i), ISLOWER (i))
  6564. || toupper (i) != TOUPPER (i))
  6565. return 2;
  6566. return 0;
  6567. }
  6568. _ACEOF
  6569. if ac_fn_c_try_run "$LINENO"; then :
  6570. else
  6571. ac_cv_header_stdc=no
  6572. fi
  6573. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6574. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6575. fi
  6576. fi
  6577. fi
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6579. $as_echo "$ac_cv_header_stdc" >&6; }
  6580. if test $ac_cv_header_stdc = yes; then
  6581. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6582. fi
  6583. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6584. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6585. inttypes.h stdint.h unistd.h
  6586. do :
  6587. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6588. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6589. "
  6590. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6591. cat >>confdefs.h <<_ACEOF
  6592. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6593. _ACEOF
  6594. fi
  6595. done
  6596. for ac_header in dlfcn.h
  6597. do :
  6598. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6599. "
  6600. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6601. cat >>confdefs.h <<_ACEOF
  6602. #define HAVE_DLFCN_H 1
  6603. _ACEOF
  6604. fi
  6605. done
  6606. # Set options
  6607. enable_win32_dll=yes
  6608. case $host in
  6609. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6610. if test -n "$ac_tool_prefix"; then
  6611. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6612. set dummy ${ac_tool_prefix}as; ac_word=$2
  6613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6614. $as_echo_n "checking for $ac_word... " >&6; }
  6615. if ${ac_cv_prog_AS+:} false; then :
  6616. $as_echo_n "(cached) " >&6
  6617. else
  6618. if test -n "$AS"; then
  6619. ac_cv_prog_AS="$AS" # Let the user override the test.
  6620. else
  6621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6622. for as_dir in $PATH
  6623. do
  6624. IFS=$as_save_IFS
  6625. test -z "$as_dir" && as_dir=.
  6626. for ac_exec_ext in '' $ac_executable_extensions; do
  6627. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6628. ac_cv_prog_AS="${ac_tool_prefix}as"
  6629. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6630. break 2
  6631. fi
  6632. done
  6633. done
  6634. IFS=$as_save_IFS
  6635. fi
  6636. fi
  6637. AS=$ac_cv_prog_AS
  6638. if test -n "$AS"; then
  6639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6640. $as_echo "$AS" >&6; }
  6641. else
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6643. $as_echo "no" >&6; }
  6644. fi
  6645. fi
  6646. if test -z "$ac_cv_prog_AS"; then
  6647. ac_ct_AS=$AS
  6648. # Extract the first word of "as", so it can be a program name with args.
  6649. set dummy as; ac_word=$2
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6651. $as_echo_n "checking for $ac_word... " >&6; }
  6652. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6653. $as_echo_n "(cached) " >&6
  6654. else
  6655. if test -n "$ac_ct_AS"; then
  6656. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6657. else
  6658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6659. for as_dir in $PATH
  6660. do
  6661. IFS=$as_save_IFS
  6662. test -z "$as_dir" && as_dir=.
  6663. for ac_exec_ext in '' $ac_executable_extensions; do
  6664. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6665. ac_cv_prog_ac_ct_AS="as"
  6666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6667. break 2
  6668. fi
  6669. done
  6670. done
  6671. IFS=$as_save_IFS
  6672. fi
  6673. fi
  6674. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6675. if test -n "$ac_ct_AS"; then
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6677. $as_echo "$ac_ct_AS" >&6; }
  6678. else
  6679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6680. $as_echo "no" >&6; }
  6681. fi
  6682. if test "x$ac_ct_AS" = x; then
  6683. AS="false"
  6684. else
  6685. case $cross_compiling:$ac_tool_warned in
  6686. yes:)
  6687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6688. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6689. ac_tool_warned=yes ;;
  6690. esac
  6691. AS=$ac_ct_AS
  6692. fi
  6693. else
  6694. AS="$ac_cv_prog_AS"
  6695. fi
  6696. if test -n "$ac_tool_prefix"; then
  6697. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6698. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6700. $as_echo_n "checking for $ac_word... " >&6; }
  6701. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6702. $as_echo_n "(cached) " >&6
  6703. else
  6704. if test -n "$DLLTOOL"; then
  6705. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6706. else
  6707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6708. for as_dir in $PATH
  6709. do
  6710. IFS=$as_save_IFS
  6711. test -z "$as_dir" && as_dir=.
  6712. for ac_exec_ext in '' $ac_executable_extensions; do
  6713. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6714. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6715. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6716. break 2
  6717. fi
  6718. done
  6719. done
  6720. IFS=$as_save_IFS
  6721. fi
  6722. fi
  6723. DLLTOOL=$ac_cv_prog_DLLTOOL
  6724. if test -n "$DLLTOOL"; then
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6726. $as_echo "$DLLTOOL" >&6; }
  6727. else
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6729. $as_echo "no" >&6; }
  6730. fi
  6731. fi
  6732. if test -z "$ac_cv_prog_DLLTOOL"; then
  6733. ac_ct_DLLTOOL=$DLLTOOL
  6734. # Extract the first word of "dlltool", so it can be a program name with args.
  6735. set dummy dlltool; ac_word=$2
  6736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6737. $as_echo_n "checking for $ac_word... " >&6; }
  6738. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6739. $as_echo_n "(cached) " >&6
  6740. else
  6741. if test -n "$ac_ct_DLLTOOL"; then
  6742. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6743. else
  6744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6745. for as_dir in $PATH
  6746. do
  6747. IFS=$as_save_IFS
  6748. test -z "$as_dir" && as_dir=.
  6749. for ac_exec_ext in '' $ac_executable_extensions; do
  6750. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6751. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6753. break 2
  6754. fi
  6755. done
  6756. done
  6757. IFS=$as_save_IFS
  6758. fi
  6759. fi
  6760. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6761. if test -n "$ac_ct_DLLTOOL"; then
  6762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6763. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6764. else
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6766. $as_echo "no" >&6; }
  6767. fi
  6768. if test "x$ac_ct_DLLTOOL" = x; then
  6769. DLLTOOL="false"
  6770. else
  6771. case $cross_compiling:$ac_tool_warned in
  6772. yes:)
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6774. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6775. ac_tool_warned=yes ;;
  6776. esac
  6777. DLLTOOL=$ac_ct_DLLTOOL
  6778. fi
  6779. else
  6780. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6781. fi
  6782. if test -n "$ac_tool_prefix"; then
  6783. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6784. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6786. $as_echo_n "checking for $ac_word... " >&6; }
  6787. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6788. $as_echo_n "(cached) " >&6
  6789. else
  6790. if test -n "$OBJDUMP"; then
  6791. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6792. else
  6793. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6794. for as_dir in $PATH
  6795. do
  6796. IFS=$as_save_IFS
  6797. test -z "$as_dir" && as_dir=.
  6798. for ac_exec_ext in '' $ac_executable_extensions; do
  6799. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6800. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6801. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6802. break 2
  6803. fi
  6804. done
  6805. done
  6806. IFS=$as_save_IFS
  6807. fi
  6808. fi
  6809. OBJDUMP=$ac_cv_prog_OBJDUMP
  6810. if test -n "$OBJDUMP"; then
  6811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6812. $as_echo "$OBJDUMP" >&6; }
  6813. else
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6815. $as_echo "no" >&6; }
  6816. fi
  6817. fi
  6818. if test -z "$ac_cv_prog_OBJDUMP"; then
  6819. ac_ct_OBJDUMP=$OBJDUMP
  6820. # Extract the first word of "objdump", so it can be a program name with args.
  6821. set dummy objdump; ac_word=$2
  6822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6823. $as_echo_n "checking for $ac_word... " >&6; }
  6824. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6825. $as_echo_n "(cached) " >&6
  6826. else
  6827. if test -n "$ac_ct_OBJDUMP"; then
  6828. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6829. else
  6830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6831. for as_dir in $PATH
  6832. do
  6833. IFS=$as_save_IFS
  6834. test -z "$as_dir" && as_dir=.
  6835. for ac_exec_ext in '' $ac_executable_extensions; do
  6836. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6837. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6838. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6839. break 2
  6840. fi
  6841. done
  6842. done
  6843. IFS=$as_save_IFS
  6844. fi
  6845. fi
  6846. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6847. if test -n "$ac_ct_OBJDUMP"; then
  6848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6849. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6850. else
  6851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6852. $as_echo "no" >&6; }
  6853. fi
  6854. if test "x$ac_ct_OBJDUMP" = x; then
  6855. OBJDUMP="false"
  6856. else
  6857. case $cross_compiling:$ac_tool_warned in
  6858. yes:)
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6860. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6861. ac_tool_warned=yes ;;
  6862. esac
  6863. OBJDUMP=$ac_ct_OBJDUMP
  6864. fi
  6865. else
  6866. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6867. fi
  6868. ;;
  6869. esac
  6870. test -z "$AS" && AS=as
  6871. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6872. test -z "$OBJDUMP" && OBJDUMP=objdump
  6873. enable_dlopen=no
  6874. # Check whether --enable-shared was given.
  6875. if test "${enable_shared+set}" = set; then :
  6876. enableval=$enable_shared; p=${PACKAGE-default}
  6877. case $enableval in
  6878. yes) enable_shared=yes ;;
  6879. no) enable_shared=no ;;
  6880. *)
  6881. enable_shared=no
  6882. # Look at the argument we got. We use all the common list separators.
  6883. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6884. for pkg in $enableval; do
  6885. IFS=$lt_save_ifs
  6886. if test "X$pkg" = "X$p"; then
  6887. enable_shared=yes
  6888. fi
  6889. done
  6890. IFS=$lt_save_ifs
  6891. ;;
  6892. esac
  6893. else
  6894. enable_shared=yes
  6895. fi
  6896. # Check whether --enable-static was given.
  6897. if test "${enable_static+set}" = set; then :
  6898. enableval=$enable_static; p=${PACKAGE-default}
  6899. case $enableval in
  6900. yes) enable_static=yes ;;
  6901. no) enable_static=no ;;
  6902. *)
  6903. enable_static=no
  6904. # Look at the argument we got. We use all the common list separators.
  6905. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6906. for pkg in $enableval; do
  6907. IFS=$lt_save_ifs
  6908. if test "X$pkg" = "X$p"; then
  6909. enable_static=yes
  6910. fi
  6911. done
  6912. IFS=$lt_save_ifs
  6913. ;;
  6914. esac
  6915. else
  6916. enable_static=yes
  6917. fi
  6918. # Check whether --with-pic was given.
  6919. if test "${with_pic+set}" = set; then :
  6920. withval=$with_pic; lt_p=${PACKAGE-default}
  6921. case $withval in
  6922. yes|no) pic_mode=$withval ;;
  6923. *)
  6924. pic_mode=default
  6925. # Look at the argument we got. We use all the common list separators.
  6926. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6927. for lt_pkg in $withval; do
  6928. IFS=$lt_save_ifs
  6929. if test "X$lt_pkg" = "X$lt_p"; then
  6930. pic_mode=yes
  6931. fi
  6932. done
  6933. IFS=$lt_save_ifs
  6934. ;;
  6935. esac
  6936. else
  6937. pic_mode=default
  6938. fi
  6939. # Check whether --enable-fast-install was given.
  6940. if test "${enable_fast_install+set}" = set; then :
  6941. enableval=$enable_fast_install; p=${PACKAGE-default}
  6942. case $enableval in
  6943. yes) enable_fast_install=yes ;;
  6944. no) enable_fast_install=no ;;
  6945. *)
  6946. enable_fast_install=no
  6947. # Look at the argument we got. We use all the common list separators.
  6948. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6949. for pkg in $enableval; do
  6950. IFS=$lt_save_ifs
  6951. if test "X$pkg" = "X$p"; then
  6952. enable_fast_install=yes
  6953. fi
  6954. done
  6955. IFS=$lt_save_ifs
  6956. ;;
  6957. esac
  6958. else
  6959. enable_fast_install=yes
  6960. fi
  6961. shared_archive_member_spec=
  6962. case $host,$enable_shared in
  6963. power*-*-aix[5-9]*,yes)
  6964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6965. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6966. # Check whether --with-aix-soname was given.
  6967. if test "${with_aix_soname+set}" = set; then :
  6968. withval=$with_aix_soname; case $withval in
  6969. aix|svr4|both)
  6970. ;;
  6971. *)
  6972. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6973. ;;
  6974. esac
  6975. lt_cv_with_aix_soname=$with_aix_soname
  6976. else
  6977. if ${lt_cv_with_aix_soname+:} false; then :
  6978. $as_echo_n "(cached) " >&6
  6979. else
  6980. lt_cv_with_aix_soname=aix
  6981. fi
  6982. with_aix_soname=$lt_cv_with_aix_soname
  6983. fi
  6984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6985. $as_echo "$with_aix_soname" >&6; }
  6986. if test aix != "$with_aix_soname"; then
  6987. # For the AIX way of multilib, we name the shared archive member
  6988. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6989. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6990. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6991. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  6992. if test 64 = "${OBJECT_MODE-32}"; then
  6993. shared_archive_member_spec=shr_64
  6994. else
  6995. shared_archive_member_spec=shr
  6996. fi
  6997. fi
  6998. ;;
  6999. *)
  7000. with_aix_soname=aix
  7001. ;;
  7002. esac
  7003. # This can be used to rebuild libtool when needed
  7004. LIBTOOL_DEPS=$ltmain
  7005. # Always use our own libtool.
  7006. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7007. test -z "$LN_S" && LN_S="ln -s"
  7008. if test -n "${ZSH_VERSION+set}"; then
  7009. setopt NO_GLOB_SUBST
  7010. fi
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7012. $as_echo_n "checking for objdir... " >&6; }
  7013. if ${lt_cv_objdir+:} false; then :
  7014. $as_echo_n "(cached) " >&6
  7015. else
  7016. rm -f .libs 2>/dev/null
  7017. mkdir .libs 2>/dev/null
  7018. if test -d .libs; then
  7019. lt_cv_objdir=.libs
  7020. else
  7021. # MS-DOS does not allow filenames that begin with a dot.
  7022. lt_cv_objdir=_libs
  7023. fi
  7024. rmdir .libs 2>/dev/null
  7025. fi
  7026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7027. $as_echo "$lt_cv_objdir" >&6; }
  7028. objdir=$lt_cv_objdir
  7029. cat >>confdefs.h <<_ACEOF
  7030. #define LT_OBJDIR "$lt_cv_objdir/"
  7031. _ACEOF
  7032. case $host_os in
  7033. aix3*)
  7034. # AIX sometimes has problems with the GCC collect2 program. For some
  7035. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7036. # vanish in a puff of smoke.
  7037. if test set != "${COLLECT_NAMES+set}"; then
  7038. COLLECT_NAMES=
  7039. export COLLECT_NAMES
  7040. fi
  7041. ;;
  7042. esac
  7043. # Global variables:
  7044. ofile=libtool
  7045. can_build_shared=yes
  7046. # All known linkers require a '.a' archive for static linking (except MSVC,
  7047. # which needs '.lib').
  7048. libext=a
  7049. with_gnu_ld=$lt_cv_prog_gnu_ld
  7050. old_CC=$CC
  7051. old_CFLAGS=$CFLAGS
  7052. # Set sane defaults for various variables
  7053. test -z "$CC" && CC=cc
  7054. test -z "$LTCC" && LTCC=$CC
  7055. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7056. test -z "$LD" && LD=ld
  7057. test -z "$ac_objext" && ac_objext=o
  7058. func_cc_basename $compiler
  7059. cc_basename=$func_cc_basename_result
  7060. # Only perform the check for file, if the check method requires it
  7061. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7062. case $deplibs_check_method in
  7063. file_magic*)
  7064. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7066. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7067. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7068. $as_echo_n "(cached) " >&6
  7069. else
  7070. case $MAGIC_CMD in
  7071. [\\/*] | ?:[\\/]*)
  7072. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7073. ;;
  7074. *)
  7075. lt_save_MAGIC_CMD=$MAGIC_CMD
  7076. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7077. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7078. for ac_dir in $ac_dummy; do
  7079. IFS=$lt_save_ifs
  7080. test -z "$ac_dir" && ac_dir=.
  7081. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7082. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7083. if test -n "$file_magic_test_file"; then
  7084. case $deplibs_check_method in
  7085. "file_magic "*)
  7086. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7087. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7088. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7089. $EGREP "$file_magic_regex" > /dev/null; then
  7090. :
  7091. else
  7092. cat <<_LT_EOF 1>&2
  7093. *** Warning: the command libtool uses to detect shared libraries,
  7094. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7095. *** The result is that libtool may fail to recognize shared libraries
  7096. *** as such. This will affect the creation of libtool libraries that
  7097. *** depend on shared libraries, but programs linked with such libtool
  7098. *** libraries will work regardless of this problem. Nevertheless, you
  7099. *** may want to report the problem to your system manager and/or to
  7100. *** bug-libtool@gnu.org
  7101. _LT_EOF
  7102. fi ;;
  7103. esac
  7104. fi
  7105. break
  7106. fi
  7107. done
  7108. IFS=$lt_save_ifs
  7109. MAGIC_CMD=$lt_save_MAGIC_CMD
  7110. ;;
  7111. esac
  7112. fi
  7113. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7114. if test -n "$MAGIC_CMD"; then
  7115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7116. $as_echo "$MAGIC_CMD" >&6; }
  7117. else
  7118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7119. $as_echo "no" >&6; }
  7120. fi
  7121. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7122. if test -n "$ac_tool_prefix"; then
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7124. $as_echo_n "checking for file... " >&6; }
  7125. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7126. $as_echo_n "(cached) " >&6
  7127. else
  7128. case $MAGIC_CMD in
  7129. [\\/*] | ?:[\\/]*)
  7130. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7131. ;;
  7132. *)
  7133. lt_save_MAGIC_CMD=$MAGIC_CMD
  7134. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7135. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7136. for ac_dir in $ac_dummy; do
  7137. IFS=$lt_save_ifs
  7138. test -z "$ac_dir" && ac_dir=.
  7139. if test -f "$ac_dir/file"; then
  7140. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7141. if test -n "$file_magic_test_file"; then
  7142. case $deplibs_check_method in
  7143. "file_magic "*)
  7144. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7145. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7146. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7147. $EGREP "$file_magic_regex" > /dev/null; then
  7148. :
  7149. else
  7150. cat <<_LT_EOF 1>&2
  7151. *** Warning: the command libtool uses to detect shared libraries,
  7152. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7153. *** The result is that libtool may fail to recognize shared libraries
  7154. *** as such. This will affect the creation of libtool libraries that
  7155. *** depend on shared libraries, but programs linked with such libtool
  7156. *** libraries will work regardless of this problem. Nevertheless, you
  7157. *** may want to report the problem to your system manager and/or to
  7158. *** bug-libtool@gnu.org
  7159. _LT_EOF
  7160. fi ;;
  7161. esac
  7162. fi
  7163. break
  7164. fi
  7165. done
  7166. IFS=$lt_save_ifs
  7167. MAGIC_CMD=$lt_save_MAGIC_CMD
  7168. ;;
  7169. esac
  7170. fi
  7171. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7172. if test -n "$MAGIC_CMD"; then
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7174. $as_echo "$MAGIC_CMD" >&6; }
  7175. else
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7177. $as_echo "no" >&6; }
  7178. fi
  7179. else
  7180. MAGIC_CMD=:
  7181. fi
  7182. fi
  7183. fi
  7184. ;;
  7185. esac
  7186. # Use C for the default configuration in the libtool script
  7187. lt_save_CC=$CC
  7188. ac_ext=c
  7189. ac_cpp='$CPP $CPPFLAGS'
  7190. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7191. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7192. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7193. # Source file extension for C test sources.
  7194. ac_ext=c
  7195. # Object file extension for compiled C test sources.
  7196. objext=o
  7197. objext=$objext
  7198. # Code to be used in simple compile tests
  7199. lt_simple_compile_test_code="int some_variable = 0;"
  7200. # Code to be used in simple link tests
  7201. lt_simple_link_test_code='int main(){return(0);}'
  7202. # If no C compiler was specified, use CC.
  7203. LTCC=${LTCC-"$CC"}
  7204. # If no C compiler flags were specified, use CFLAGS.
  7205. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7206. # Allow CC to be a program name with arguments.
  7207. compiler=$CC
  7208. # Save the default compiler, since it gets overwritten when the other
  7209. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7210. compiler_DEFAULT=$CC
  7211. # save warnings/boilerplate of simple test code
  7212. ac_outfile=conftest.$ac_objext
  7213. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7214. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7215. _lt_compiler_boilerplate=`cat conftest.err`
  7216. $RM conftest*
  7217. ac_outfile=conftest.$ac_objext
  7218. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7219. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7220. _lt_linker_boilerplate=`cat conftest.err`
  7221. $RM -r conftest*
  7222. ## CAVEAT EMPTOR:
  7223. ## There is no encapsulation within the following macros, do not change
  7224. ## the running order or otherwise move them around unless you know exactly
  7225. ## what you are doing...
  7226. if test -n "$compiler"; then
  7227. lt_prog_compiler_no_builtin_flag=
  7228. if test yes = "$GCC"; then
  7229. case $cc_basename in
  7230. nvcc*)
  7231. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7232. *)
  7233. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7234. esac
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7236. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7237. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7238. $as_echo_n "(cached) " >&6
  7239. else
  7240. lt_cv_prog_compiler_rtti_exceptions=no
  7241. ac_outfile=conftest.$ac_objext
  7242. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7243. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7244. # Insert the option either (1) after the last *FLAGS variable, or
  7245. # (2) before a word containing "conftest.", or (3) at the end.
  7246. # Note that $ac_compile itself does not contain backslashes and begins
  7247. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7248. # The option is referenced via a variable to avoid confusing sed.
  7249. lt_compile=`echo "$ac_compile" | $SED \
  7250. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7251. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7252. -e 's:$: $lt_compiler_flag:'`
  7253. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7254. (eval "$lt_compile" 2>conftest.err)
  7255. ac_status=$?
  7256. cat conftest.err >&5
  7257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7258. if (exit $ac_status) && test -s "$ac_outfile"; then
  7259. # The compiler can only warn and ignore the option if not recognized
  7260. # So say no if there are warnings other than the usual output.
  7261. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7262. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7263. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7264. lt_cv_prog_compiler_rtti_exceptions=yes
  7265. fi
  7266. fi
  7267. $RM conftest*
  7268. fi
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7270. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7271. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7272. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7273. else
  7274. :
  7275. fi
  7276. fi
  7277. lt_prog_compiler_wl=
  7278. lt_prog_compiler_pic=
  7279. lt_prog_compiler_static=
  7280. if test yes = "$GCC"; then
  7281. lt_prog_compiler_wl='-Wl,'
  7282. lt_prog_compiler_static='-static'
  7283. case $host_os in
  7284. aix*)
  7285. # All AIX code is PIC.
  7286. if test ia64 = "$host_cpu"; then
  7287. # AIX 5 now supports IA64 processor
  7288. lt_prog_compiler_static='-Bstatic'
  7289. fi
  7290. lt_prog_compiler_pic='-fPIC'
  7291. ;;
  7292. amigaos*)
  7293. case $host_cpu in
  7294. powerpc)
  7295. # see comment about AmigaOS4 .so support
  7296. lt_prog_compiler_pic='-fPIC'
  7297. ;;
  7298. m68k)
  7299. # FIXME: we need at least 68020 code to build shared libraries, but
  7300. # adding the '-m68020' flag to GCC prevents building anything better,
  7301. # like '-m68040'.
  7302. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7303. ;;
  7304. esac
  7305. ;;
  7306. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7307. # PIC is the default for these OSes.
  7308. ;;
  7309. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7310. # This hack is so that the source file can tell whether it is being
  7311. # built for inclusion in a dll (and should export symbols for example).
  7312. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7313. # (--disable-auto-import) libraries
  7314. lt_prog_compiler_pic='-DDLL_EXPORT'
  7315. case $host_os in
  7316. os2*)
  7317. lt_prog_compiler_static='$wl-static'
  7318. ;;
  7319. esac
  7320. ;;
  7321. darwin* | rhapsody*)
  7322. # PIC is the default on this platform
  7323. # Common symbols not allowed in MH_DYLIB files
  7324. lt_prog_compiler_pic='-fno-common'
  7325. ;;
  7326. haiku*)
  7327. # PIC is the default for Haiku.
  7328. # The "-static" flag exists, but is broken.
  7329. lt_prog_compiler_static=
  7330. ;;
  7331. hpux*)
  7332. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7333. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7334. # sets the default TLS model and affects inlining.
  7335. case $host_cpu in
  7336. hppa*64*)
  7337. # +Z the default
  7338. ;;
  7339. *)
  7340. lt_prog_compiler_pic='-fPIC'
  7341. ;;
  7342. esac
  7343. ;;
  7344. interix[3-9]*)
  7345. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7346. # Instead, we relocate shared libraries at runtime.
  7347. ;;
  7348. msdosdjgpp*)
  7349. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7350. # on systems that don't support them.
  7351. lt_prog_compiler_can_build_shared=no
  7352. enable_shared=no
  7353. ;;
  7354. *nto* | *qnx*)
  7355. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7356. # it will coredump.
  7357. lt_prog_compiler_pic='-fPIC -shared'
  7358. ;;
  7359. sysv4*MP*)
  7360. if test -d /usr/nec; then
  7361. lt_prog_compiler_pic=-Kconform_pic
  7362. fi
  7363. ;;
  7364. *)
  7365. lt_prog_compiler_pic='-fPIC'
  7366. ;;
  7367. esac
  7368. case $cc_basename in
  7369. nvcc*) # Cuda Compiler Driver 2.2
  7370. lt_prog_compiler_wl='-Xlinker '
  7371. if test -n "$lt_prog_compiler_pic"; then
  7372. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7373. fi
  7374. ;;
  7375. esac
  7376. else
  7377. # PORTME Check for flag to pass linker flags through the system compiler.
  7378. case $host_os in
  7379. aix*)
  7380. lt_prog_compiler_wl='-Wl,'
  7381. if test ia64 = "$host_cpu"; then
  7382. # AIX 5 now supports IA64 processor
  7383. lt_prog_compiler_static='-Bstatic'
  7384. else
  7385. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7386. fi
  7387. ;;
  7388. darwin* | rhapsody*)
  7389. # PIC is the default on this platform
  7390. # Common symbols not allowed in MH_DYLIB files
  7391. lt_prog_compiler_pic='-fno-common'
  7392. case $cc_basename in
  7393. nagfor*)
  7394. # NAG Fortran compiler
  7395. lt_prog_compiler_wl='-Wl,-Wl,,'
  7396. lt_prog_compiler_pic='-PIC'
  7397. lt_prog_compiler_static='-Bstatic'
  7398. ;;
  7399. esac
  7400. ;;
  7401. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7402. # This hack is so that the source file can tell whether it is being
  7403. # built for inclusion in a dll (and should export symbols for example).
  7404. lt_prog_compiler_pic='-DDLL_EXPORT'
  7405. case $host_os in
  7406. os2*)
  7407. lt_prog_compiler_static='$wl-static'
  7408. ;;
  7409. esac
  7410. ;;
  7411. hpux9* | hpux10* | hpux11*)
  7412. lt_prog_compiler_wl='-Wl,'
  7413. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7414. # not for PA HP-UX.
  7415. case $host_cpu in
  7416. hppa*64*|ia64*)
  7417. # +Z the default
  7418. ;;
  7419. *)
  7420. lt_prog_compiler_pic='+Z'
  7421. ;;
  7422. esac
  7423. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7424. lt_prog_compiler_static='$wl-a ${wl}archive'
  7425. ;;
  7426. irix5* | irix6* | nonstopux*)
  7427. lt_prog_compiler_wl='-Wl,'
  7428. # PIC (with -KPIC) is the default.
  7429. lt_prog_compiler_static='-non_shared'
  7430. ;;
  7431. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7432. case $cc_basename in
  7433. # old Intel for x86_64, which still supported -KPIC.
  7434. ecc*)
  7435. lt_prog_compiler_wl='-Wl,'
  7436. lt_prog_compiler_pic='-KPIC'
  7437. lt_prog_compiler_static='-static'
  7438. ;;
  7439. # icc used to be incompatible with GCC.
  7440. # ICC 10 doesn't accept -KPIC any more.
  7441. icc* | ifort*)
  7442. lt_prog_compiler_wl='-Wl,'
  7443. lt_prog_compiler_pic='-fPIC'
  7444. lt_prog_compiler_static='-static'
  7445. ;;
  7446. # Lahey Fortran 8.1.
  7447. lf95*)
  7448. lt_prog_compiler_wl='-Wl,'
  7449. lt_prog_compiler_pic='--shared'
  7450. lt_prog_compiler_static='--static'
  7451. ;;
  7452. nagfor*)
  7453. # NAG Fortran compiler
  7454. lt_prog_compiler_wl='-Wl,-Wl,,'
  7455. lt_prog_compiler_pic='-PIC'
  7456. lt_prog_compiler_static='-Bstatic'
  7457. ;;
  7458. tcc*)
  7459. # Fabrice Bellard et al's Tiny C Compiler
  7460. lt_prog_compiler_wl='-Wl,'
  7461. lt_prog_compiler_pic='-fPIC'
  7462. lt_prog_compiler_static='-static'
  7463. ;;
  7464. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7465. # Portland Group compilers (*not* the Pentium gcc compiler,
  7466. # which looks to be a dead project)
  7467. lt_prog_compiler_wl='-Wl,'
  7468. lt_prog_compiler_pic='-fpic'
  7469. lt_prog_compiler_static='-Bstatic'
  7470. ;;
  7471. ccc*)
  7472. lt_prog_compiler_wl='-Wl,'
  7473. # All Alpha code is PIC.
  7474. lt_prog_compiler_static='-non_shared'
  7475. ;;
  7476. xl* | bgxl* | bgf* | mpixl*)
  7477. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7478. lt_prog_compiler_wl='-Wl,'
  7479. lt_prog_compiler_pic='-qpic'
  7480. lt_prog_compiler_static='-qstaticlink'
  7481. ;;
  7482. *)
  7483. case `$CC -V 2>&1 | sed 5q` in
  7484. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7485. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7486. lt_prog_compiler_pic='-KPIC'
  7487. lt_prog_compiler_static='-Bstatic'
  7488. lt_prog_compiler_wl=''
  7489. ;;
  7490. *Sun\ F* | *Sun*Fortran*)
  7491. lt_prog_compiler_pic='-KPIC'
  7492. lt_prog_compiler_static='-Bstatic'
  7493. lt_prog_compiler_wl='-Qoption ld '
  7494. ;;
  7495. *Sun\ C*)
  7496. # Sun C 5.9
  7497. lt_prog_compiler_pic='-KPIC'
  7498. lt_prog_compiler_static='-Bstatic'
  7499. lt_prog_compiler_wl='-Wl,'
  7500. ;;
  7501. *Intel*\ [CF]*Compiler*)
  7502. lt_prog_compiler_wl='-Wl,'
  7503. lt_prog_compiler_pic='-fPIC'
  7504. lt_prog_compiler_static='-static'
  7505. ;;
  7506. *Portland\ Group*)
  7507. lt_prog_compiler_wl='-Wl,'
  7508. lt_prog_compiler_pic='-fpic'
  7509. lt_prog_compiler_static='-Bstatic'
  7510. ;;
  7511. esac
  7512. ;;
  7513. esac
  7514. ;;
  7515. newsos6)
  7516. lt_prog_compiler_pic='-KPIC'
  7517. lt_prog_compiler_static='-Bstatic'
  7518. ;;
  7519. *nto* | *qnx*)
  7520. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7521. # it will coredump.
  7522. lt_prog_compiler_pic='-fPIC -shared'
  7523. ;;
  7524. osf3* | osf4* | osf5*)
  7525. lt_prog_compiler_wl='-Wl,'
  7526. # All OSF/1 code is PIC.
  7527. lt_prog_compiler_static='-non_shared'
  7528. ;;
  7529. rdos*)
  7530. lt_prog_compiler_static='-non_shared'
  7531. ;;
  7532. solaris*)
  7533. lt_prog_compiler_pic='-KPIC'
  7534. lt_prog_compiler_static='-Bstatic'
  7535. case $cc_basename in
  7536. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7537. lt_prog_compiler_wl='-Qoption ld ';;
  7538. *)
  7539. lt_prog_compiler_wl='-Wl,';;
  7540. esac
  7541. ;;
  7542. sunos4*)
  7543. lt_prog_compiler_wl='-Qoption ld '
  7544. lt_prog_compiler_pic='-PIC'
  7545. lt_prog_compiler_static='-Bstatic'
  7546. ;;
  7547. sysv4 | sysv4.2uw2* | sysv4.3*)
  7548. lt_prog_compiler_wl='-Wl,'
  7549. lt_prog_compiler_pic='-KPIC'
  7550. lt_prog_compiler_static='-Bstatic'
  7551. ;;
  7552. sysv4*MP*)
  7553. if test -d /usr/nec; then
  7554. lt_prog_compiler_pic='-Kconform_pic'
  7555. lt_prog_compiler_static='-Bstatic'
  7556. fi
  7557. ;;
  7558. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7559. lt_prog_compiler_wl='-Wl,'
  7560. lt_prog_compiler_pic='-KPIC'
  7561. lt_prog_compiler_static='-Bstatic'
  7562. ;;
  7563. unicos*)
  7564. lt_prog_compiler_wl='-Wl,'
  7565. lt_prog_compiler_can_build_shared=no
  7566. ;;
  7567. uts4*)
  7568. lt_prog_compiler_pic='-pic'
  7569. lt_prog_compiler_static='-Bstatic'
  7570. ;;
  7571. *)
  7572. lt_prog_compiler_can_build_shared=no
  7573. ;;
  7574. esac
  7575. fi
  7576. case $host_os in
  7577. # For platforms that do not support PIC, -DPIC is meaningless:
  7578. *djgpp*)
  7579. lt_prog_compiler_pic=
  7580. ;;
  7581. *)
  7582. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7583. ;;
  7584. esac
  7585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7586. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7587. if ${lt_cv_prog_compiler_pic+:} false; then :
  7588. $as_echo_n "(cached) " >&6
  7589. else
  7590. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7591. fi
  7592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7593. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7594. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7595. #
  7596. # Check to make sure the PIC flag actually works.
  7597. #
  7598. if test -n "$lt_prog_compiler_pic"; then
  7599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7600. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7601. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7602. $as_echo_n "(cached) " >&6
  7603. else
  7604. lt_cv_prog_compiler_pic_works=no
  7605. ac_outfile=conftest.$ac_objext
  7606. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7607. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7608. # Insert the option either (1) after the last *FLAGS variable, or
  7609. # (2) before a word containing "conftest.", or (3) at the end.
  7610. # Note that $ac_compile itself does not contain backslashes and begins
  7611. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7612. # The option is referenced via a variable to avoid confusing sed.
  7613. lt_compile=`echo "$ac_compile" | $SED \
  7614. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7615. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7616. -e 's:$: $lt_compiler_flag:'`
  7617. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7618. (eval "$lt_compile" 2>conftest.err)
  7619. ac_status=$?
  7620. cat conftest.err >&5
  7621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7622. if (exit $ac_status) && test -s "$ac_outfile"; then
  7623. # The compiler can only warn and ignore the option if not recognized
  7624. # So say no if there are warnings other than the usual output.
  7625. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7626. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7627. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7628. lt_cv_prog_compiler_pic_works=yes
  7629. fi
  7630. fi
  7631. $RM conftest*
  7632. fi
  7633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7634. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7635. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7636. case $lt_prog_compiler_pic in
  7637. "" | " "*) ;;
  7638. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7639. esac
  7640. else
  7641. lt_prog_compiler_pic=
  7642. lt_prog_compiler_can_build_shared=no
  7643. fi
  7644. fi
  7645. #
  7646. # Check to make sure the static flag actually works.
  7647. #
  7648. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7650. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7651. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7652. $as_echo_n "(cached) " >&6
  7653. else
  7654. lt_cv_prog_compiler_static_works=no
  7655. save_LDFLAGS=$LDFLAGS
  7656. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7657. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7658. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7659. # The linker can only warn and ignore the option if not recognized
  7660. # So say no if there are warnings
  7661. if test -s conftest.err; then
  7662. # Append any errors to the config.log.
  7663. cat conftest.err 1>&5
  7664. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7665. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7666. if diff conftest.exp conftest.er2 >/dev/null; then
  7667. lt_cv_prog_compiler_static_works=yes
  7668. fi
  7669. else
  7670. lt_cv_prog_compiler_static_works=yes
  7671. fi
  7672. fi
  7673. $RM -r conftest*
  7674. LDFLAGS=$save_LDFLAGS
  7675. fi
  7676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7677. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7678. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7679. :
  7680. else
  7681. lt_prog_compiler_static=
  7682. fi
  7683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7684. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7685. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7686. $as_echo_n "(cached) " >&6
  7687. else
  7688. lt_cv_prog_compiler_c_o=no
  7689. $RM -r conftest 2>/dev/null
  7690. mkdir conftest
  7691. cd conftest
  7692. mkdir out
  7693. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7694. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7695. # Insert the option either (1) after the last *FLAGS variable, or
  7696. # (2) before a word containing "conftest.", or (3) at the end.
  7697. # Note that $ac_compile itself does not contain backslashes and begins
  7698. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7699. lt_compile=`echo "$ac_compile" | $SED \
  7700. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7701. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7702. -e 's:$: $lt_compiler_flag:'`
  7703. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7704. (eval "$lt_compile" 2>out/conftest.err)
  7705. ac_status=$?
  7706. cat out/conftest.err >&5
  7707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7708. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7709. then
  7710. # The compiler can only warn and ignore the option if not recognized
  7711. # So say no if there are warnings
  7712. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7713. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7714. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7715. lt_cv_prog_compiler_c_o=yes
  7716. fi
  7717. fi
  7718. chmod u+w . 2>&5
  7719. $RM conftest*
  7720. # SGI C++ compiler will create directory out/ii_files/ for
  7721. # template instantiation
  7722. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7723. $RM out/* && rmdir out
  7724. cd ..
  7725. $RM -r conftest
  7726. $RM conftest*
  7727. fi
  7728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7729. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7731. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7732. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7733. $as_echo_n "(cached) " >&6
  7734. else
  7735. lt_cv_prog_compiler_c_o=no
  7736. $RM -r conftest 2>/dev/null
  7737. mkdir conftest
  7738. cd conftest
  7739. mkdir out
  7740. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7741. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7742. # Insert the option either (1) after the last *FLAGS variable, or
  7743. # (2) before a word containing "conftest.", or (3) at the end.
  7744. # Note that $ac_compile itself does not contain backslashes and begins
  7745. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7746. lt_compile=`echo "$ac_compile" | $SED \
  7747. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7748. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7749. -e 's:$: $lt_compiler_flag:'`
  7750. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7751. (eval "$lt_compile" 2>out/conftest.err)
  7752. ac_status=$?
  7753. cat out/conftest.err >&5
  7754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7755. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7756. then
  7757. # The compiler can only warn and ignore the option if not recognized
  7758. # So say no if there are warnings
  7759. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7760. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7761. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7762. lt_cv_prog_compiler_c_o=yes
  7763. fi
  7764. fi
  7765. chmod u+w . 2>&5
  7766. $RM conftest*
  7767. # SGI C++ compiler will create directory out/ii_files/ for
  7768. # template instantiation
  7769. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7770. $RM out/* && rmdir out
  7771. cd ..
  7772. $RM -r conftest
  7773. $RM conftest*
  7774. fi
  7775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7776. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7777. hard_links=nottested
  7778. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7779. # do not overwrite the value of need_locks provided by the user
  7780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7781. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7782. hard_links=yes
  7783. $RM conftest*
  7784. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7785. touch conftest.a
  7786. ln conftest.a conftest.b 2>&5 || hard_links=no
  7787. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7789. $as_echo "$hard_links" >&6; }
  7790. if test no = "$hard_links"; then
  7791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7792. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7793. need_locks=warn
  7794. fi
  7795. else
  7796. need_locks=no
  7797. fi
  7798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7799. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7800. runpath_var=
  7801. allow_undefined_flag=
  7802. always_export_symbols=no
  7803. archive_cmds=
  7804. archive_expsym_cmds=
  7805. compiler_needs_object=no
  7806. enable_shared_with_static_runtimes=no
  7807. export_dynamic_flag_spec=
  7808. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7809. hardcode_automatic=no
  7810. hardcode_direct=no
  7811. hardcode_direct_absolute=no
  7812. hardcode_libdir_flag_spec=
  7813. hardcode_libdir_separator=
  7814. hardcode_minus_L=no
  7815. hardcode_shlibpath_var=unsupported
  7816. inherit_rpath=no
  7817. link_all_deplibs=unknown
  7818. module_cmds=
  7819. module_expsym_cmds=
  7820. old_archive_from_new_cmds=
  7821. old_archive_from_expsyms_cmds=
  7822. thread_safe_flag_spec=
  7823. whole_archive_flag_spec=
  7824. # include_expsyms should be a list of space-separated symbols to be *always*
  7825. # included in the symbol list
  7826. include_expsyms=
  7827. # exclude_expsyms can be an extended regexp of symbols to exclude
  7828. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7829. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7830. # as well as any symbol that contains 'd'.
  7831. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7832. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7833. # platforms (ab)use it in PIC code, but their linkers get confused if
  7834. # the symbol is explicitly referenced. Since portable code cannot
  7835. # rely on this symbol name, it's probably fine to never include it in
  7836. # preloaded symbol tables.
  7837. # Exclude shared library initialization/finalization symbols.
  7838. extract_expsyms_cmds=
  7839. case $host_os in
  7840. cygwin* | mingw* | pw32* | cegcc*)
  7841. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7842. # When not using gcc, we currently assume that we are using
  7843. # Microsoft Visual C++.
  7844. if test yes != "$GCC"; then
  7845. with_gnu_ld=no
  7846. fi
  7847. ;;
  7848. interix*)
  7849. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7850. with_gnu_ld=yes
  7851. ;;
  7852. openbsd* | bitrig*)
  7853. with_gnu_ld=no
  7854. ;;
  7855. esac
  7856. ld_shlibs=yes
  7857. # On some targets, GNU ld is compatible enough with the native linker
  7858. # that we're better off using the native interface for both.
  7859. lt_use_gnu_ld_interface=no
  7860. if test yes = "$with_gnu_ld"; then
  7861. case $host_os in
  7862. aix*)
  7863. # The AIX port of GNU ld has always aspired to compatibility
  7864. # with the native linker. However, as the warning in the GNU ld
  7865. # block says, versions before 2.19.5* couldn't really create working
  7866. # shared libraries, regardless of the interface used.
  7867. case `$LD -v 2>&1` in
  7868. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7869. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7870. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7871. *)
  7872. lt_use_gnu_ld_interface=yes
  7873. ;;
  7874. esac
  7875. ;;
  7876. *)
  7877. lt_use_gnu_ld_interface=yes
  7878. ;;
  7879. esac
  7880. fi
  7881. if test yes = "$lt_use_gnu_ld_interface"; then
  7882. # If archive_cmds runs LD, not CC, wlarc should be empty
  7883. wlarc='$wl'
  7884. # Set some defaults for GNU ld with shared library support. These
  7885. # are reset later if shared libraries are not supported. Putting them
  7886. # here allows them to be overridden if necessary.
  7887. runpath_var=LD_RUN_PATH
  7888. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7889. export_dynamic_flag_spec='$wl--export-dynamic'
  7890. # ancient GNU ld didn't support --whole-archive et. al.
  7891. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7892. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7893. else
  7894. whole_archive_flag_spec=
  7895. fi
  7896. supports_anon_versioning=no
  7897. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  7898. *GNU\ gold*) supports_anon_versioning=yes ;;
  7899. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7900. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7901. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7902. *\ 2.11.*) ;; # other 2.11 versions
  7903. *) supports_anon_versioning=yes ;;
  7904. esac
  7905. # See if GNU ld supports shared libraries.
  7906. case $host_os in
  7907. aix[3-9]*)
  7908. # On AIX/PPC, the GNU linker is very broken
  7909. if test ia64 != "$host_cpu"; then
  7910. ld_shlibs=no
  7911. cat <<_LT_EOF 1>&2
  7912. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7913. *** to be unable to reliably create shared libraries on AIX.
  7914. *** Therefore, libtool is disabling shared libraries support. If you
  7915. *** really care for shared libraries, you may want to install binutils
  7916. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7917. *** You will then need to restart the configuration process.
  7918. _LT_EOF
  7919. fi
  7920. ;;
  7921. amigaos*)
  7922. case $host_cpu in
  7923. powerpc)
  7924. # see comment about AmigaOS4 .so support
  7925. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7926. archive_expsym_cmds=''
  7927. ;;
  7928. m68k)
  7929. 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)'
  7930. hardcode_libdir_flag_spec='-L$libdir'
  7931. hardcode_minus_L=yes
  7932. ;;
  7933. esac
  7934. ;;
  7935. beos*)
  7936. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7937. allow_undefined_flag=unsupported
  7938. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7939. # support --undefined. This deserves some investigation. FIXME
  7940. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7941. else
  7942. ld_shlibs=no
  7943. fi
  7944. ;;
  7945. cygwin* | mingw* | pw32* | cegcc*)
  7946. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7947. # as there is no search path for DLLs.
  7948. hardcode_libdir_flag_spec='-L$libdir'
  7949. export_dynamic_flag_spec='$wl--export-all-symbols'
  7950. allow_undefined_flag=unsupported
  7951. always_export_symbols=no
  7952. enable_shared_with_static_runtimes=yes
  7953. 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'
  7954. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7955. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7956. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7957. # If the export-symbols file already is a .def file, use it as
  7958. # is; otherwise, prepend EXPORTS...
  7959. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7960. cp $export_symbols $output_objdir/$soname.def;
  7961. else
  7962. echo EXPORTS > $output_objdir/$soname.def;
  7963. cat $export_symbols >> $output_objdir/$soname.def;
  7964. fi~
  7965. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7966. else
  7967. ld_shlibs=no
  7968. fi
  7969. ;;
  7970. haiku*)
  7971. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7972. link_all_deplibs=yes
  7973. ;;
  7974. os2*)
  7975. hardcode_libdir_flag_spec='-L$libdir'
  7976. hardcode_minus_L=yes
  7977. allow_undefined_flag=unsupported
  7978. shrext_cmds=.dll
  7979. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7980. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7981. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7982. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7983. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7984. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7985. emximp -o $lib $output_objdir/$libname.def'
  7986. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7987. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7988. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7989. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7990. prefix_cmds="$SED"~
  7991. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  7992. prefix_cmds="$prefix_cmds -e 1d";
  7993. fi~
  7994. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  7995. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  7996. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7997. emximp -o $lib $output_objdir/$libname.def'
  7998. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  7999. enable_shared_with_static_runtimes=yes
  8000. file_list_spec='@'
  8001. ;;
  8002. interix[3-9]*)
  8003. hardcode_direct=no
  8004. hardcode_shlibpath_var=no
  8005. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8006. export_dynamic_flag_spec='$wl-E'
  8007. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8008. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8009. # default) and relocated if they conflict, which is a slow very memory
  8010. # consuming and fragmenting process. To avoid this, we pick a random,
  8011. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8012. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8013. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8014. 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'
  8015. ;;
  8016. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8017. tmp_diet=no
  8018. if test linux-dietlibc = "$host_os"; then
  8019. case $cc_basename in
  8020. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8021. esac
  8022. fi
  8023. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8024. && test no = "$tmp_diet"
  8025. then
  8026. tmp_addflag=' $pic_flag'
  8027. tmp_sharedflag='-shared'
  8028. case $cc_basename,$host_cpu in
  8029. pgcc*) # Portland Group C compiler
  8030. 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'
  8031. tmp_addflag=' $pic_flag'
  8032. ;;
  8033. pgf77* | pgf90* | pgf95* | pgfortran*)
  8034. # Portland Group f77 and f90 compilers
  8035. 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'
  8036. tmp_addflag=' $pic_flag -Mnomain' ;;
  8037. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8038. tmp_addflag=' -i_dynamic' ;;
  8039. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8040. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8041. ifc* | ifort*) # Intel Fortran compiler
  8042. tmp_addflag=' -nofor_main' ;;
  8043. lf95*) # Lahey Fortran 8.1
  8044. whole_archive_flag_spec=
  8045. tmp_sharedflag='--shared' ;;
  8046. nagfor*) # NAGFOR 5.3
  8047. tmp_sharedflag='-Wl,-shared' ;;
  8048. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8049. tmp_sharedflag='-qmkshrobj'
  8050. tmp_addflag= ;;
  8051. nvcc*) # Cuda Compiler Driver 2.2
  8052. 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'
  8053. compiler_needs_object=yes
  8054. ;;
  8055. esac
  8056. case `$CC -V 2>&1 | sed 5q` in
  8057. *Sun\ C*) # Sun C 5.9
  8058. 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'
  8059. compiler_needs_object=yes
  8060. tmp_sharedflag='-G' ;;
  8061. *Sun\ F*) # Sun Fortran 8.3
  8062. tmp_sharedflag='-G' ;;
  8063. esac
  8064. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8065. if test yes = "$supports_anon_versioning"; then
  8066. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8067. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8068. echo "local: *; };" >> $output_objdir/$libname.ver~
  8069. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8070. fi
  8071. case $cc_basename in
  8072. tcc*)
  8073. export_dynamic_flag_spec='-rdynamic'
  8074. ;;
  8075. xlf* | bgf* | bgxlf* | mpixlf*)
  8076. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8077. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8078. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8079. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8080. if test yes = "$supports_anon_versioning"; then
  8081. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8082. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8083. echo "local: *; };" >> $output_objdir/$libname.ver~
  8084. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8085. fi
  8086. ;;
  8087. esac
  8088. else
  8089. ld_shlibs=no
  8090. fi
  8091. ;;
  8092. netbsd*)
  8093. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8094. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8095. wlarc=
  8096. else
  8097. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8098. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8099. fi
  8100. ;;
  8101. solaris*)
  8102. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8103. ld_shlibs=no
  8104. cat <<_LT_EOF 1>&2
  8105. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8106. *** create shared libraries on Solaris systems. Therefore, libtool
  8107. *** is disabling shared libraries support. We urge you to upgrade GNU
  8108. *** binutils to release 2.9.1 or newer. Another option is to modify
  8109. *** your PATH or compiler configuration so that the native linker is
  8110. *** used, and then restart.
  8111. _LT_EOF
  8112. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8113. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8114. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8115. else
  8116. ld_shlibs=no
  8117. fi
  8118. ;;
  8119. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8120. case `$LD -v 2>&1` in
  8121. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8122. ld_shlibs=no
  8123. cat <<_LT_EOF 1>&2
  8124. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8125. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8126. *** is disabling shared libraries support. We urge you to upgrade GNU
  8127. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8128. *** your PATH or compiler configuration so that the native linker is
  8129. *** used, and then restart.
  8130. _LT_EOF
  8131. ;;
  8132. *)
  8133. # For security reasons, it is highly recommended that you always
  8134. # use absolute paths for naming shared libraries, and exclude the
  8135. # DT_RUNPATH tag from executables and libraries. But doing so
  8136. # requires that you compile everything twice, which is a pain.
  8137. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8138. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8139. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8140. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8141. else
  8142. ld_shlibs=no
  8143. fi
  8144. ;;
  8145. esac
  8146. ;;
  8147. sunos4*)
  8148. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8149. wlarc=
  8150. hardcode_direct=yes
  8151. hardcode_shlibpath_var=no
  8152. ;;
  8153. *)
  8154. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8155. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8156. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8157. else
  8158. ld_shlibs=no
  8159. fi
  8160. ;;
  8161. esac
  8162. if test no = "$ld_shlibs"; then
  8163. runpath_var=
  8164. hardcode_libdir_flag_spec=
  8165. export_dynamic_flag_spec=
  8166. whole_archive_flag_spec=
  8167. fi
  8168. else
  8169. # PORTME fill in a description of your system's linker (not GNU ld)
  8170. case $host_os in
  8171. aix3*)
  8172. allow_undefined_flag=unsupported
  8173. always_export_symbols=yes
  8174. 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'
  8175. # Note: this linker hardcodes the directories in LIBPATH if there
  8176. # are no directories specified by -L.
  8177. hardcode_minus_L=yes
  8178. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8179. # Neither direct hardcoding nor static linking is supported with a
  8180. # broken collect2.
  8181. hardcode_direct=unsupported
  8182. fi
  8183. ;;
  8184. aix[4-9]*)
  8185. if test ia64 = "$host_cpu"; then
  8186. # On IA64, the linker does run time linking by default, so we don't
  8187. # have to do anything special.
  8188. aix_use_runtimelinking=no
  8189. exp_sym_flag='-Bexport'
  8190. no_entry_flag=
  8191. else
  8192. # If we're using GNU nm, then we don't want the "-C" option.
  8193. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8194. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8195. # weak defined symbols like other global defined symbols, whereas
  8196. # GNU nm marks them as "W".
  8197. # While the 'weak' keyword is ignored in the Export File, we need
  8198. # it in the Import File for the 'aix-soname' feature, so we have
  8199. # to replace the "-B" option with "-P" for AIX nm.
  8200. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8201. 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'
  8202. else
  8203. 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'
  8204. fi
  8205. aix_use_runtimelinking=no
  8206. # Test if we are trying to use run time linking or normal
  8207. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8208. # have runtime linking enabled, and use it for executables.
  8209. # For shared libraries, we enable/disable runtime linking
  8210. # depending on the kind of the shared library created -
  8211. # when "with_aix_soname,aix_use_runtimelinking" is:
  8212. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8213. # "aix,yes" lib.so shared, rtl:yes, for executables
  8214. # lib.a static archive
  8215. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8216. # lib.a(lib.so.V) shared, rtl:no, for executables
  8217. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8218. # lib.a(lib.so.V) shared, rtl:no
  8219. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8220. # lib.a static archive
  8221. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8222. for ld_flag in $LDFLAGS; do
  8223. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8224. aix_use_runtimelinking=yes
  8225. break
  8226. fi
  8227. done
  8228. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8229. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8230. # so we don't have lib.a shared libs to link our executables.
  8231. # We have to force runtime linking in this case.
  8232. aix_use_runtimelinking=yes
  8233. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8234. fi
  8235. ;;
  8236. esac
  8237. exp_sym_flag='-bexport'
  8238. no_entry_flag='-bnoentry'
  8239. fi
  8240. # When large executables or shared objects are built, AIX ld can
  8241. # have problems creating the table of contents. If linking a library
  8242. # or program results in "error TOC overflow" add -mminimal-toc to
  8243. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8244. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8245. archive_cmds=''
  8246. hardcode_direct=yes
  8247. hardcode_direct_absolute=yes
  8248. hardcode_libdir_separator=':'
  8249. link_all_deplibs=yes
  8250. file_list_spec='$wl-f,'
  8251. case $with_aix_soname,$aix_use_runtimelinking in
  8252. aix,*) ;; # traditional, no import file
  8253. svr4,* | *,yes) # use import file
  8254. # The Import File defines what to hardcode.
  8255. hardcode_direct=no
  8256. hardcode_direct_absolute=no
  8257. ;;
  8258. esac
  8259. if test yes = "$GCC"; then
  8260. case $host_os in aix4.[012]|aix4.[012].*)
  8261. # We only want to do this on AIX 4.2 and lower, the check
  8262. # below for broken collect2 doesn't work under 4.3+
  8263. collect2name=`$CC -print-prog-name=collect2`
  8264. if test -f "$collect2name" &&
  8265. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8266. then
  8267. # We have reworked collect2
  8268. :
  8269. else
  8270. # We have old collect2
  8271. hardcode_direct=unsupported
  8272. # It fails to find uninstalled libraries when the uninstalled
  8273. # path is not listed in the libpath. Setting hardcode_minus_L
  8274. # to unsupported forces relinking
  8275. hardcode_minus_L=yes
  8276. hardcode_libdir_flag_spec='-L$libdir'
  8277. hardcode_libdir_separator=
  8278. fi
  8279. ;;
  8280. esac
  8281. shared_flag='-shared'
  8282. if test yes = "$aix_use_runtimelinking"; then
  8283. shared_flag="$shared_flag "'$wl-G'
  8284. fi
  8285. # Need to ensure runtime linking is disabled for the traditional
  8286. # shared library, or the linker may eventually find shared libraries
  8287. # /with/ Import File - we do not want to mix them.
  8288. shared_flag_aix='-shared'
  8289. shared_flag_svr4='-shared $wl-G'
  8290. else
  8291. # not using gcc
  8292. if test ia64 = "$host_cpu"; then
  8293. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8294. # chokes on -Wl,-G. The following line is correct:
  8295. shared_flag='-G'
  8296. else
  8297. if test yes = "$aix_use_runtimelinking"; then
  8298. shared_flag='$wl-G'
  8299. else
  8300. shared_flag='$wl-bM:SRE'
  8301. fi
  8302. shared_flag_aix='$wl-bM:SRE'
  8303. shared_flag_svr4='$wl-G'
  8304. fi
  8305. fi
  8306. export_dynamic_flag_spec='$wl-bexpall'
  8307. # It seems that -bexpall does not export symbols beginning with
  8308. # underscore (_), so it is better to generate a list of symbols to export.
  8309. always_export_symbols=yes
  8310. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8311. # Warning - without using the other runtime loading flags (-brtl),
  8312. # -berok will link without error, but may produce a broken library.
  8313. allow_undefined_flag='-berok'
  8314. # Determine the default libpath from the value encoded in an
  8315. # empty executable.
  8316. if test set = "${lt_cv_aix_libpath+set}"; then
  8317. aix_libpath=$lt_cv_aix_libpath
  8318. else
  8319. if ${lt_cv_aix_libpath_+:} false; then :
  8320. $as_echo_n "(cached) " >&6
  8321. else
  8322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8323. /* end confdefs.h. */
  8324. int
  8325. main ()
  8326. {
  8327. ;
  8328. return 0;
  8329. }
  8330. _ACEOF
  8331. if ac_fn_c_try_link "$LINENO"; then :
  8332. lt_aix_libpath_sed='
  8333. /Import File Strings/,/^$/ {
  8334. /^0/ {
  8335. s/^0 *\([^ ]*\) *$/\1/
  8336. p
  8337. }
  8338. }'
  8339. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8340. # Check for a 64-bit object if we didn't find anything.
  8341. if test -z "$lt_cv_aix_libpath_"; then
  8342. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8343. fi
  8344. fi
  8345. rm -f core conftest.err conftest.$ac_objext \
  8346. conftest$ac_exeext conftest.$ac_ext
  8347. if test -z "$lt_cv_aix_libpath_"; then
  8348. lt_cv_aix_libpath_=/usr/lib:/lib
  8349. fi
  8350. fi
  8351. aix_libpath=$lt_cv_aix_libpath_
  8352. fi
  8353. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8354. 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
  8355. else
  8356. if test ia64 = "$host_cpu"; then
  8357. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8358. allow_undefined_flag="-z nodefs"
  8359. 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"
  8360. else
  8361. # Determine the default libpath from the value encoded in an
  8362. # empty executable.
  8363. if test set = "${lt_cv_aix_libpath+set}"; then
  8364. aix_libpath=$lt_cv_aix_libpath
  8365. else
  8366. if ${lt_cv_aix_libpath_+:} false; then :
  8367. $as_echo_n "(cached) " >&6
  8368. else
  8369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8370. /* end confdefs.h. */
  8371. int
  8372. main ()
  8373. {
  8374. ;
  8375. return 0;
  8376. }
  8377. _ACEOF
  8378. if ac_fn_c_try_link "$LINENO"; then :
  8379. lt_aix_libpath_sed='
  8380. /Import File Strings/,/^$/ {
  8381. /^0/ {
  8382. s/^0 *\([^ ]*\) *$/\1/
  8383. p
  8384. }
  8385. }'
  8386. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8387. # Check for a 64-bit object if we didn't find anything.
  8388. if test -z "$lt_cv_aix_libpath_"; then
  8389. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8390. fi
  8391. fi
  8392. rm -f core conftest.err conftest.$ac_objext \
  8393. conftest$ac_exeext conftest.$ac_ext
  8394. if test -z "$lt_cv_aix_libpath_"; then
  8395. lt_cv_aix_libpath_=/usr/lib:/lib
  8396. fi
  8397. fi
  8398. aix_libpath=$lt_cv_aix_libpath_
  8399. fi
  8400. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8401. # Warning - without using the other run time loading flags,
  8402. # -berok will link without error, but may produce a broken library.
  8403. no_undefined_flag=' $wl-bernotok'
  8404. allow_undefined_flag=' $wl-berok'
  8405. if test yes = "$with_gnu_ld"; then
  8406. # We only use this code for GNU lds that support --whole-archive.
  8407. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8408. else
  8409. # Exported symbols can be pulled into shared objects from archives
  8410. whole_archive_flag_spec='$convenience'
  8411. fi
  8412. archive_cmds_need_lc=yes
  8413. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8414. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8415. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8416. if test svr4 != "$with_aix_soname"; then
  8417. # This is similar to how AIX traditionally builds its shared libraries.
  8418. 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'
  8419. fi
  8420. if test aix != "$with_aix_soname"; then
  8421. 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'
  8422. else
  8423. # used by -dlpreopen to get the symbols
  8424. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8425. fi
  8426. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8427. fi
  8428. fi
  8429. ;;
  8430. amigaos*)
  8431. case $host_cpu in
  8432. powerpc)
  8433. # see comment about AmigaOS4 .so support
  8434. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8435. archive_expsym_cmds=''
  8436. ;;
  8437. m68k)
  8438. 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)'
  8439. hardcode_libdir_flag_spec='-L$libdir'
  8440. hardcode_minus_L=yes
  8441. ;;
  8442. esac
  8443. ;;
  8444. bsdi[45]*)
  8445. export_dynamic_flag_spec=-rdynamic
  8446. ;;
  8447. cygwin* | mingw* | pw32* | cegcc*)
  8448. # When not using gcc, we currently assume that we are using
  8449. # Microsoft Visual C++.
  8450. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8451. # no search path for DLLs.
  8452. case $cc_basename in
  8453. cl*)
  8454. # Native MSVC
  8455. hardcode_libdir_flag_spec=' '
  8456. allow_undefined_flag=unsupported
  8457. always_export_symbols=yes
  8458. file_list_spec='@'
  8459. # Tell ltmain to make .lib files, not .a files.
  8460. libext=lib
  8461. # Tell ltmain to make .dll files, not .so files.
  8462. shrext_cmds=.dll
  8463. # FIXME: Setting linknames here is a bad hack.
  8464. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8465. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8466. cp "$export_symbols" "$output_objdir/$soname.def";
  8467. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8468. else
  8469. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8470. fi~
  8471. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8472. linknames='
  8473. # The linker will not automatically build a static lib if we build a DLL.
  8474. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8475. enable_shared_with_static_runtimes=yes
  8476. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8477. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8478. # Don't use ranlib
  8479. old_postinstall_cmds='chmod 644 $oldlib'
  8480. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8481. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8482. case $lt_outputfile in
  8483. *.exe|*.EXE) ;;
  8484. *)
  8485. lt_outputfile=$lt_outputfile.exe
  8486. lt_tool_outputfile=$lt_tool_outputfile.exe
  8487. ;;
  8488. esac~
  8489. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8490. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8491. $RM "$lt_outputfile.manifest";
  8492. fi'
  8493. ;;
  8494. *)
  8495. # Assume MSVC wrapper
  8496. hardcode_libdir_flag_spec=' '
  8497. allow_undefined_flag=unsupported
  8498. # Tell ltmain to make .lib files, not .a files.
  8499. libext=lib
  8500. # Tell ltmain to make .dll files, not .so files.
  8501. shrext_cmds=.dll
  8502. # FIXME: Setting linknames here is a bad hack.
  8503. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8504. # The linker will automatically build a .lib file if we build a DLL.
  8505. old_archive_from_new_cmds='true'
  8506. # FIXME: Should let the user specify the lib program.
  8507. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8508. enable_shared_with_static_runtimes=yes
  8509. ;;
  8510. esac
  8511. ;;
  8512. darwin* | rhapsody*)
  8513. archive_cmds_need_lc=no
  8514. hardcode_direct=no
  8515. hardcode_automatic=yes
  8516. hardcode_shlibpath_var=unsupported
  8517. if test yes = "$lt_cv_ld_force_load"; then
  8518. 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\"`'
  8519. else
  8520. whole_archive_flag_spec=''
  8521. fi
  8522. link_all_deplibs=yes
  8523. allow_undefined_flag=$_lt_dar_allow_undefined
  8524. case $cc_basename in
  8525. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8526. *) _lt_dar_can_shared=$GCC ;;
  8527. esac
  8528. if test yes = "$_lt_dar_can_shared"; then
  8529. output_verbose_link_cmd=func_echo_all
  8530. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8531. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8532. 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"
  8533. 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"
  8534. else
  8535. ld_shlibs=no
  8536. fi
  8537. ;;
  8538. dgux*)
  8539. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8540. hardcode_libdir_flag_spec='-L$libdir'
  8541. hardcode_shlibpath_var=no
  8542. ;;
  8543. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8544. # support. Future versions do this automatically, but an explicit c++rt0.o
  8545. # does not break anything, and helps significantly (at the cost of a little
  8546. # extra space).
  8547. freebsd2.2*)
  8548. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8549. hardcode_libdir_flag_spec='-R$libdir'
  8550. hardcode_direct=yes
  8551. hardcode_shlibpath_var=no
  8552. ;;
  8553. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8554. freebsd2.*)
  8555. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8556. hardcode_direct=yes
  8557. hardcode_minus_L=yes
  8558. hardcode_shlibpath_var=no
  8559. ;;
  8560. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8561. freebsd* | dragonfly* | midnightbsd*)
  8562. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8563. hardcode_libdir_flag_spec='-R$libdir'
  8564. hardcode_direct=yes
  8565. hardcode_shlibpath_var=no
  8566. ;;
  8567. hpux9*)
  8568. if test yes = "$GCC"; then
  8569. 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'
  8570. else
  8571. 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'
  8572. fi
  8573. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8574. hardcode_libdir_separator=:
  8575. hardcode_direct=yes
  8576. # hardcode_minus_L: Not really in the search PATH,
  8577. # but as the default location of the library.
  8578. hardcode_minus_L=yes
  8579. export_dynamic_flag_spec='$wl-E'
  8580. ;;
  8581. hpux10*)
  8582. if test yes,no = "$GCC,$with_gnu_ld"; then
  8583. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8584. else
  8585. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8586. fi
  8587. if test no = "$with_gnu_ld"; then
  8588. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8589. hardcode_libdir_separator=:
  8590. hardcode_direct=yes
  8591. hardcode_direct_absolute=yes
  8592. export_dynamic_flag_spec='$wl-E'
  8593. # hardcode_minus_L: Not really in the search PATH,
  8594. # but as the default location of the library.
  8595. hardcode_minus_L=yes
  8596. fi
  8597. ;;
  8598. hpux11*)
  8599. if test yes,no = "$GCC,$with_gnu_ld"; then
  8600. case $host_cpu in
  8601. hppa*64*)
  8602. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8603. ;;
  8604. ia64*)
  8605. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8606. ;;
  8607. *)
  8608. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8609. ;;
  8610. esac
  8611. else
  8612. case $host_cpu in
  8613. hppa*64*)
  8614. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8615. ;;
  8616. ia64*)
  8617. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8618. ;;
  8619. *)
  8620. # Older versions of the 11.00 compiler do not understand -b yet
  8621. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8623. $as_echo_n "checking if $CC understands -b... " >&6; }
  8624. if ${lt_cv_prog_compiler__b+:} false; then :
  8625. $as_echo_n "(cached) " >&6
  8626. else
  8627. lt_cv_prog_compiler__b=no
  8628. save_LDFLAGS=$LDFLAGS
  8629. LDFLAGS="$LDFLAGS -b"
  8630. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8631. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8632. # The linker can only warn and ignore the option if not recognized
  8633. # So say no if there are warnings
  8634. if test -s conftest.err; then
  8635. # Append any errors to the config.log.
  8636. cat conftest.err 1>&5
  8637. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8638. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8639. if diff conftest.exp conftest.er2 >/dev/null; then
  8640. lt_cv_prog_compiler__b=yes
  8641. fi
  8642. else
  8643. lt_cv_prog_compiler__b=yes
  8644. fi
  8645. fi
  8646. $RM -r conftest*
  8647. LDFLAGS=$save_LDFLAGS
  8648. fi
  8649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8650. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8651. if test yes = "$lt_cv_prog_compiler__b"; then
  8652. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8653. else
  8654. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8655. fi
  8656. ;;
  8657. esac
  8658. fi
  8659. if test no = "$with_gnu_ld"; then
  8660. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8661. hardcode_libdir_separator=:
  8662. case $host_cpu in
  8663. hppa*64*|ia64*)
  8664. hardcode_direct=no
  8665. hardcode_shlibpath_var=no
  8666. ;;
  8667. *)
  8668. hardcode_direct=yes
  8669. hardcode_direct_absolute=yes
  8670. export_dynamic_flag_spec='$wl-E'
  8671. # hardcode_minus_L: Not really in the search PATH,
  8672. # but as the default location of the library.
  8673. hardcode_minus_L=yes
  8674. ;;
  8675. esac
  8676. fi
  8677. ;;
  8678. irix5* | irix6* | nonstopux*)
  8679. if test yes = "$GCC"; then
  8680. 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'
  8681. # Try to use the -exported_symbol ld option, if it does not
  8682. # work, assume that -exports_file does not work either and
  8683. # implicitly export all symbols.
  8684. # This should be the same for all languages, so no per-tag cache variable.
  8685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8686. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8687. if ${lt_cv_irix_exported_symbol+:} false; then :
  8688. $as_echo_n "(cached) " >&6
  8689. else
  8690. save_LDFLAGS=$LDFLAGS
  8691. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8693. /* end confdefs.h. */
  8694. int foo (void) { return 0; }
  8695. _ACEOF
  8696. if ac_fn_c_try_link "$LINENO"; then :
  8697. lt_cv_irix_exported_symbol=yes
  8698. else
  8699. lt_cv_irix_exported_symbol=no
  8700. fi
  8701. rm -f core conftest.err conftest.$ac_objext \
  8702. conftest$ac_exeext conftest.$ac_ext
  8703. LDFLAGS=$save_LDFLAGS
  8704. fi
  8705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8706. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8707. if test yes = "$lt_cv_irix_exported_symbol"; then
  8708. 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'
  8709. fi
  8710. else
  8711. 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'
  8712. 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'
  8713. fi
  8714. archive_cmds_need_lc='no'
  8715. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8716. hardcode_libdir_separator=:
  8717. inherit_rpath=yes
  8718. link_all_deplibs=yes
  8719. ;;
  8720. linux*)
  8721. case $cc_basename in
  8722. tcc*)
  8723. # Fabrice Bellard et al's Tiny C Compiler
  8724. ld_shlibs=yes
  8725. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8726. ;;
  8727. esac
  8728. ;;
  8729. netbsd*)
  8730. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8731. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8732. else
  8733. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8734. fi
  8735. hardcode_libdir_flag_spec='-R$libdir'
  8736. hardcode_direct=yes
  8737. hardcode_shlibpath_var=no
  8738. ;;
  8739. newsos6)
  8740. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8741. hardcode_direct=yes
  8742. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8743. hardcode_libdir_separator=:
  8744. hardcode_shlibpath_var=no
  8745. ;;
  8746. *nto* | *qnx*)
  8747. ;;
  8748. openbsd* | bitrig*)
  8749. if test -f /usr/libexec/ld.so; then
  8750. hardcode_direct=yes
  8751. hardcode_shlibpath_var=no
  8752. hardcode_direct_absolute=yes
  8753. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8754. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8755. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8756. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8757. export_dynamic_flag_spec='$wl-E'
  8758. else
  8759. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8760. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8761. fi
  8762. else
  8763. ld_shlibs=no
  8764. fi
  8765. ;;
  8766. os2*)
  8767. hardcode_libdir_flag_spec='-L$libdir'
  8768. hardcode_minus_L=yes
  8769. allow_undefined_flag=unsupported
  8770. shrext_cmds=.dll
  8771. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8772. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8773. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8774. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8775. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8776. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8777. emximp -o $lib $output_objdir/$libname.def'
  8778. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8779. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8780. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8781. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8782. prefix_cmds="$SED"~
  8783. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8784. prefix_cmds="$prefix_cmds -e 1d";
  8785. fi~
  8786. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8787. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8788. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8789. emximp -o $lib $output_objdir/$libname.def'
  8790. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8791. enable_shared_with_static_runtimes=yes
  8792. file_list_spec='@'
  8793. ;;
  8794. osf3*)
  8795. if test yes = "$GCC"; then
  8796. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8797. 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'
  8798. else
  8799. allow_undefined_flag=' -expect_unresolved \*'
  8800. 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'
  8801. fi
  8802. archive_cmds_need_lc='no'
  8803. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8804. hardcode_libdir_separator=:
  8805. ;;
  8806. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8807. if test yes = "$GCC"; then
  8808. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8809. 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'
  8810. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8811. else
  8812. allow_undefined_flag=' -expect_unresolved \*'
  8813. 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'
  8814. 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~
  8815. $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'
  8816. # Both c and cxx compiler support -rpath directly
  8817. hardcode_libdir_flag_spec='-rpath $libdir'
  8818. fi
  8819. archive_cmds_need_lc='no'
  8820. hardcode_libdir_separator=:
  8821. ;;
  8822. solaris*)
  8823. no_undefined_flag=' -z defs'
  8824. if test yes = "$GCC"; then
  8825. wlarc='$wl'
  8826. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8827. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8828. $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'
  8829. else
  8830. case `$CC -V 2>&1` in
  8831. *"Compilers 5.0"*)
  8832. wlarc=''
  8833. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8834. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8835. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8836. ;;
  8837. *)
  8838. wlarc='$wl'
  8839. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8840. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8841. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8842. ;;
  8843. esac
  8844. fi
  8845. hardcode_libdir_flag_spec='-R$libdir'
  8846. hardcode_shlibpath_var=no
  8847. case $host_os in
  8848. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8849. *)
  8850. # The compiler driver will combine and reorder linker options,
  8851. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8852. # but is careful enough not to reorder.
  8853. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8854. if test yes = "$GCC"; then
  8855. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8856. else
  8857. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8858. fi
  8859. ;;
  8860. esac
  8861. link_all_deplibs=yes
  8862. ;;
  8863. sunos4*)
  8864. if test sequent = "$host_vendor"; then
  8865. # Use $CC to link under sequent, because it throws in some extra .o
  8866. # files that make .init and .fini sections work.
  8867. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8868. else
  8869. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8870. fi
  8871. hardcode_libdir_flag_spec='-L$libdir'
  8872. hardcode_direct=yes
  8873. hardcode_minus_L=yes
  8874. hardcode_shlibpath_var=no
  8875. ;;
  8876. sysv4)
  8877. case $host_vendor in
  8878. sni)
  8879. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8880. hardcode_direct=yes # is this really true???
  8881. ;;
  8882. siemens)
  8883. ## LD is ld it makes a PLAMLIB
  8884. ## CC just makes a GrossModule.
  8885. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8886. reload_cmds='$CC -r -o $output$reload_objs'
  8887. hardcode_direct=no
  8888. ;;
  8889. motorola)
  8890. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8891. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8892. ;;
  8893. esac
  8894. runpath_var='LD_RUN_PATH'
  8895. hardcode_shlibpath_var=no
  8896. ;;
  8897. sysv4.3*)
  8898. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8899. hardcode_shlibpath_var=no
  8900. export_dynamic_flag_spec='-Bexport'
  8901. ;;
  8902. sysv4*MP*)
  8903. if test -d /usr/nec; then
  8904. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8905. hardcode_shlibpath_var=no
  8906. runpath_var=LD_RUN_PATH
  8907. hardcode_runpath_var=yes
  8908. ld_shlibs=yes
  8909. fi
  8910. ;;
  8911. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8912. no_undefined_flag='$wl-z,text'
  8913. archive_cmds_need_lc=no
  8914. hardcode_shlibpath_var=no
  8915. runpath_var='LD_RUN_PATH'
  8916. if test yes = "$GCC"; then
  8917. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8918. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8919. else
  8920. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8921. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8922. fi
  8923. ;;
  8924. sysv5* | sco3.2v5* | sco5v6*)
  8925. # Note: We CANNOT use -z defs as we might desire, because we do not
  8926. # link with -lc, and that would cause any symbols used from libc to
  8927. # always be unresolved, which means just about no library would
  8928. # ever link correctly. If we're not using GNU ld we use -z text
  8929. # though, which does catch some bad symbols but isn't as heavy-handed
  8930. # as -z defs.
  8931. no_undefined_flag='$wl-z,text'
  8932. allow_undefined_flag='$wl-z,nodefs'
  8933. archive_cmds_need_lc=no
  8934. hardcode_shlibpath_var=no
  8935. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8936. hardcode_libdir_separator=':'
  8937. link_all_deplibs=yes
  8938. export_dynamic_flag_spec='$wl-Bexport'
  8939. runpath_var='LD_RUN_PATH'
  8940. if test yes = "$GCC"; then
  8941. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8942. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8943. else
  8944. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8945. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8946. fi
  8947. ;;
  8948. uts4*)
  8949. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8950. hardcode_libdir_flag_spec='-L$libdir'
  8951. hardcode_shlibpath_var=no
  8952. ;;
  8953. *)
  8954. ld_shlibs=no
  8955. ;;
  8956. esac
  8957. if test sni = "$host_vendor"; then
  8958. case $host in
  8959. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8960. export_dynamic_flag_spec='$wl-Blargedynsym'
  8961. ;;
  8962. esac
  8963. fi
  8964. fi
  8965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8966. $as_echo "$ld_shlibs" >&6; }
  8967. test no = "$ld_shlibs" && can_build_shared=no
  8968. with_gnu_ld=$with_gnu_ld
  8969. #
  8970. # Do we need to explicitly link libc?
  8971. #
  8972. case "x$archive_cmds_need_lc" in
  8973. x|xyes)
  8974. # Assume -lc should be added
  8975. archive_cmds_need_lc=yes
  8976. if test yes,yes = "$GCC,$enable_shared"; then
  8977. case $archive_cmds in
  8978. *'~'*)
  8979. # FIXME: we may have to deal with multi-command sequences.
  8980. ;;
  8981. '$CC '*)
  8982. # Test whether the compiler implicitly links with -lc since on some
  8983. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8984. # to ld, don't add -lc before -lgcc.
  8985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8986. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8987. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8988. $as_echo_n "(cached) " >&6
  8989. else
  8990. $RM conftest*
  8991. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8992. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8993. (eval $ac_compile) 2>&5
  8994. ac_status=$?
  8995. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8996. test $ac_status = 0; } 2>conftest.err; then
  8997. soname=conftest
  8998. lib=conftest
  8999. libobjs=conftest.$ac_objext
  9000. deplibs=
  9001. wl=$lt_prog_compiler_wl
  9002. pic_flag=$lt_prog_compiler_pic
  9003. compiler_flags=-v
  9004. linker_flags=-v
  9005. verstring=
  9006. output_objdir=.
  9007. libname=conftest
  9008. lt_save_allow_undefined_flag=$allow_undefined_flag
  9009. allow_undefined_flag=
  9010. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9011. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9012. ac_status=$?
  9013. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9014. test $ac_status = 0; }
  9015. then
  9016. lt_cv_archive_cmds_need_lc=no
  9017. else
  9018. lt_cv_archive_cmds_need_lc=yes
  9019. fi
  9020. allow_undefined_flag=$lt_save_allow_undefined_flag
  9021. else
  9022. cat conftest.err 1>&5
  9023. fi
  9024. $RM conftest*
  9025. fi
  9026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9027. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9028. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9029. ;;
  9030. esac
  9031. fi
  9032. ;;
  9033. esac
  9034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9035. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9036. if test yes = "$GCC"; then
  9037. case $host_os in
  9038. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9039. *) lt_awk_arg='/^libraries:/' ;;
  9040. esac
  9041. case $host_os in
  9042. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9043. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9044. esac
  9045. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9046. case $lt_search_path_spec in
  9047. *\;*)
  9048. # if the path contains ";" then we assume it to be the separator
  9049. # otherwise default to the standard path separator (i.e. ":") - it is
  9050. # assumed that no part of a normal pathname contains ";" but that should
  9051. # okay in the real world where ";" in dirpaths is itself problematic.
  9052. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9053. ;;
  9054. *)
  9055. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9056. ;;
  9057. esac
  9058. # Ok, now we have the path, separated by spaces, we can step through it
  9059. # and add multilib dir if necessary...
  9060. lt_tmp_lt_search_path_spec=
  9061. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9062. # ...but if some path component already ends with the multilib dir we assume
  9063. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9064. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9065. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9066. lt_multi_os_dir=
  9067. ;;
  9068. esac
  9069. for lt_sys_path in $lt_search_path_spec; do
  9070. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9071. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9072. elif test -n "$lt_multi_os_dir"; then
  9073. test -d "$lt_sys_path" && \
  9074. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9075. fi
  9076. done
  9077. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9078. BEGIN {RS = " "; FS = "/|\n";} {
  9079. lt_foo = "";
  9080. lt_count = 0;
  9081. for (lt_i = NF; lt_i > 0; lt_i--) {
  9082. if ($lt_i != "" && $lt_i != ".") {
  9083. if ($lt_i == "..") {
  9084. lt_count++;
  9085. } else {
  9086. if (lt_count == 0) {
  9087. lt_foo = "/" $lt_i lt_foo;
  9088. } else {
  9089. lt_count--;
  9090. }
  9091. }
  9092. }
  9093. }
  9094. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9095. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9096. }'`
  9097. # AWK program above erroneously prepends '/' to C:/dos/paths
  9098. # for these hosts.
  9099. case $host_os in
  9100. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9101. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9102. esac
  9103. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9104. else
  9105. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9106. fi
  9107. library_names_spec=
  9108. libname_spec='lib$name'
  9109. soname_spec=
  9110. shrext_cmds=.so
  9111. postinstall_cmds=
  9112. postuninstall_cmds=
  9113. finish_cmds=
  9114. finish_eval=
  9115. shlibpath_var=
  9116. shlibpath_overrides_runpath=unknown
  9117. version_type=none
  9118. dynamic_linker="$host_os ld.so"
  9119. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9120. need_lib_prefix=unknown
  9121. hardcode_into_libs=no
  9122. # when you set need_version to no, make sure it does not cause -set_version
  9123. # flags to be left without arguments
  9124. need_version=unknown
  9125. case $host_os in
  9126. aix3*)
  9127. version_type=linux # correct to gnu/linux during the next big refactor
  9128. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9129. shlibpath_var=LIBPATH
  9130. # AIX 3 has no versioning support, so we append a major version to the name.
  9131. soname_spec='$libname$release$shared_ext$major'
  9132. ;;
  9133. aix[4-9]*)
  9134. version_type=linux # correct to gnu/linux during the next big refactor
  9135. need_lib_prefix=no
  9136. need_version=no
  9137. hardcode_into_libs=yes
  9138. if test ia64 = "$host_cpu"; then
  9139. # AIX 5 supports IA64
  9140. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9141. shlibpath_var=LD_LIBRARY_PATH
  9142. else
  9143. # With GCC up to 2.95.x, collect2 would create an import file
  9144. # for dependence libraries. The import file would start with
  9145. # the line '#! .'. This would cause the generated library to
  9146. # depend on '.', always an invalid library. This was fixed in
  9147. # development snapshots of GCC prior to 3.0.
  9148. case $host_os in
  9149. aix4 | aix4.[01] | aix4.[01].*)
  9150. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9151. echo ' yes '
  9152. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9153. :
  9154. else
  9155. can_build_shared=no
  9156. fi
  9157. ;;
  9158. esac
  9159. # Using Import Files as archive members, it is possible to support
  9160. # filename-based versioning of shared library archives on AIX. While
  9161. # this would work for both with and without runtime linking, it will
  9162. # prevent static linking of such archives. So we do filename-based
  9163. # shared library versioning with .so extension only, which is used
  9164. # when both runtime linking and shared linking is enabled.
  9165. # Unfortunately, runtime linking may impact performance, so we do
  9166. # not want this to be the default eventually. Also, we use the
  9167. # versioned .so libs for executables only if there is the -brtl
  9168. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9169. # To allow for filename-based versioning support, we need to create
  9170. # libNAME.so.V as an archive file, containing:
  9171. # *) an Import File, referring to the versioned filename of the
  9172. # archive as well as the shared archive member, telling the
  9173. # bitwidth (32 or 64) of that shared object, and providing the
  9174. # list of exported symbols of that shared object, eventually
  9175. # decorated with the 'weak' keyword
  9176. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9177. # it being seen by the linker.
  9178. # At run time we better use the real file rather than another symlink,
  9179. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9180. case $with_aix_soname,$aix_use_runtimelinking in
  9181. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9182. # soname into executable. Probably we can add versioning support to
  9183. # collect2, so additional links can be useful in future.
  9184. aix,yes) # traditional libtool
  9185. dynamic_linker='AIX unversionable lib.so'
  9186. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9187. # instead of lib<name>.a to let people know that these are not
  9188. # typical AIX shared libraries.
  9189. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9190. ;;
  9191. aix,no) # traditional AIX only
  9192. dynamic_linker='AIX lib.a(lib.so.V)'
  9193. # We preserve .a as extension for shared libraries through AIX4.2
  9194. # and later when we are not doing run time linking.
  9195. library_names_spec='$libname$release.a $libname.a'
  9196. soname_spec='$libname$release$shared_ext$major'
  9197. ;;
  9198. svr4,*) # full svr4 only
  9199. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9200. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9201. # We do not specify a path in Import Files, so LIBPATH fires.
  9202. shlibpath_overrides_runpath=yes
  9203. ;;
  9204. *,yes) # both, prefer svr4
  9205. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9206. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9207. # unpreferred sharedlib libNAME.a needs extra handling
  9208. 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"'
  9209. 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"'
  9210. # We do not specify a path in Import Files, so LIBPATH fires.
  9211. shlibpath_overrides_runpath=yes
  9212. ;;
  9213. *,no) # both, prefer aix
  9214. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9215. library_names_spec='$libname$release.a $libname.a'
  9216. soname_spec='$libname$release$shared_ext$major'
  9217. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9218. 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)'
  9219. 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"'
  9220. ;;
  9221. esac
  9222. shlibpath_var=LIBPATH
  9223. fi
  9224. ;;
  9225. amigaos*)
  9226. case $host_cpu in
  9227. powerpc)
  9228. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9229. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9230. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9231. ;;
  9232. m68k)
  9233. library_names_spec='$libname.ixlibrary $libname.a'
  9234. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9235. 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'
  9236. ;;
  9237. esac
  9238. ;;
  9239. beos*)
  9240. library_names_spec='$libname$shared_ext'
  9241. dynamic_linker="$host_os ld.so"
  9242. shlibpath_var=LIBRARY_PATH
  9243. ;;
  9244. bsdi[45]*)
  9245. version_type=linux # correct to gnu/linux during the next big refactor
  9246. need_version=no
  9247. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9248. soname_spec='$libname$release$shared_ext$major'
  9249. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9250. shlibpath_var=LD_LIBRARY_PATH
  9251. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9252. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9253. # the default ld.so.conf also contains /usr/contrib/lib and
  9254. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9255. # libtool to hard-code these into programs
  9256. ;;
  9257. cygwin* | mingw* | pw32* | cegcc*)
  9258. version_type=windows
  9259. shrext_cmds=.dll
  9260. need_version=no
  9261. need_lib_prefix=no
  9262. case $GCC,$cc_basename in
  9263. yes,*)
  9264. # gcc
  9265. library_names_spec='$libname.dll.a'
  9266. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9267. postinstall_cmds='base_file=`basename \$file`~
  9268. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9269. dldir=$destdir/`dirname \$dlpath`~
  9270. test -d \$dldir || mkdir -p \$dldir~
  9271. $install_prog $dir/$dlname \$dldir/$dlname~
  9272. chmod a+x \$dldir/$dlname~
  9273. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9274. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9275. fi'
  9276. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9277. dlpath=$dir/\$dldll~
  9278. $RM \$dlpath'
  9279. shlibpath_overrides_runpath=yes
  9280. case $host_os in
  9281. cygwin*)
  9282. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9283. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9284. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9285. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9286. ;;
  9287. mingw* | cegcc*)
  9288. # MinGW DLLs use traditional 'lib' prefix
  9289. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9290. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9291. ;;
  9292. pw32*)
  9293. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9294. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9295. ;;
  9296. esac
  9297. dynamic_linker='Win32 ld.exe'
  9298. ;;
  9299. *,cl*)
  9300. # Native MSVC
  9301. libname_spec='$name'
  9302. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9303. library_names_spec='$libname.dll.lib'
  9304. case $build_os in
  9305. mingw*)
  9306. sys_lib_search_path_spec=
  9307. lt_save_ifs=$IFS
  9308. IFS=';'
  9309. for lt_path in $LIB
  9310. do
  9311. IFS=$lt_save_ifs
  9312. # Let DOS variable expansion print the short 8.3 style file name.
  9313. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9314. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9315. done
  9316. IFS=$lt_save_ifs
  9317. # Convert to MSYS style.
  9318. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9319. ;;
  9320. cygwin*)
  9321. # Convert to unix form, then to dos form, then back to unix form
  9322. # but this time dos style (no spaces!) so that the unix form looks
  9323. # like /cygdrive/c/PROGRA~1:/cygdr...
  9324. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9325. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9326. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9327. ;;
  9328. *)
  9329. sys_lib_search_path_spec=$LIB
  9330. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9331. # It is most probably a Windows format PATH.
  9332. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9333. else
  9334. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9335. fi
  9336. # FIXME: find the short name or the path components, as spaces are
  9337. # common. (e.g. "Program Files" -> "PROGRA~1")
  9338. ;;
  9339. esac
  9340. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9341. postinstall_cmds='base_file=`basename \$file`~
  9342. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9343. dldir=$destdir/`dirname \$dlpath`~
  9344. test -d \$dldir || mkdir -p \$dldir~
  9345. $install_prog $dir/$dlname \$dldir/$dlname'
  9346. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9347. dlpath=$dir/\$dldll~
  9348. $RM \$dlpath'
  9349. shlibpath_overrides_runpath=yes
  9350. dynamic_linker='Win32 link.exe'
  9351. ;;
  9352. *)
  9353. # Assume MSVC wrapper
  9354. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9355. dynamic_linker='Win32 ld.exe'
  9356. ;;
  9357. esac
  9358. # FIXME: first we should search . and the directory the executable is in
  9359. shlibpath_var=PATH
  9360. ;;
  9361. darwin* | rhapsody*)
  9362. dynamic_linker="$host_os dyld"
  9363. version_type=darwin
  9364. need_lib_prefix=no
  9365. need_version=no
  9366. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9367. soname_spec='$libname$release$major$shared_ext'
  9368. shlibpath_overrides_runpath=yes
  9369. shlibpath_var=DYLD_LIBRARY_PATH
  9370. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9371. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9372. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9373. ;;
  9374. dgux*)
  9375. version_type=linux # correct to gnu/linux during the next big refactor
  9376. need_lib_prefix=no
  9377. need_version=no
  9378. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9379. soname_spec='$libname$release$shared_ext$major'
  9380. shlibpath_var=LD_LIBRARY_PATH
  9381. ;;
  9382. freebsd* | dragonfly* | midnightbsd*)
  9383. # DragonFly does not have aout. When/if they implement a new
  9384. # versioning mechanism, adjust this.
  9385. if test -x /usr/bin/objformat; then
  9386. objformat=`/usr/bin/objformat`
  9387. else
  9388. case $host_os in
  9389. freebsd[23].*) objformat=aout ;;
  9390. *) objformat=elf ;;
  9391. esac
  9392. fi
  9393. version_type=freebsd-$objformat
  9394. case $version_type in
  9395. freebsd-elf*)
  9396. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9397. soname_spec='$libname$release$shared_ext$major'
  9398. need_version=no
  9399. need_lib_prefix=no
  9400. ;;
  9401. freebsd-*)
  9402. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9403. need_version=yes
  9404. ;;
  9405. esac
  9406. shlibpath_var=LD_LIBRARY_PATH
  9407. case $host_os in
  9408. freebsd2.*)
  9409. shlibpath_overrides_runpath=yes
  9410. ;;
  9411. freebsd3.[01]* | freebsdelf3.[01]*)
  9412. shlibpath_overrides_runpath=yes
  9413. hardcode_into_libs=yes
  9414. ;;
  9415. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9416. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9417. shlibpath_overrides_runpath=no
  9418. hardcode_into_libs=yes
  9419. ;;
  9420. *) # from 4.6 on, and DragonFly
  9421. shlibpath_overrides_runpath=yes
  9422. hardcode_into_libs=yes
  9423. ;;
  9424. esac
  9425. ;;
  9426. haiku*)
  9427. version_type=linux # correct to gnu/linux during the next big refactor
  9428. need_lib_prefix=no
  9429. need_version=no
  9430. dynamic_linker="$host_os runtime_loader"
  9431. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9432. soname_spec='$libname$release$shared_ext$major'
  9433. shlibpath_var=LIBRARY_PATH
  9434. shlibpath_overrides_runpath=no
  9435. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9436. hardcode_into_libs=yes
  9437. ;;
  9438. hpux9* | hpux10* | hpux11*)
  9439. # Give a soname corresponding to the major version so that dld.sl refuses to
  9440. # link against other versions.
  9441. version_type=sunos
  9442. need_lib_prefix=no
  9443. need_version=no
  9444. case $host_cpu in
  9445. ia64*)
  9446. shrext_cmds='.so'
  9447. hardcode_into_libs=yes
  9448. dynamic_linker="$host_os dld.so"
  9449. shlibpath_var=LD_LIBRARY_PATH
  9450. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9451. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9452. soname_spec='$libname$release$shared_ext$major'
  9453. if test 32 = "$HPUX_IA64_MODE"; then
  9454. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9455. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9456. else
  9457. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9458. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9459. fi
  9460. ;;
  9461. hppa*64*)
  9462. shrext_cmds='.sl'
  9463. hardcode_into_libs=yes
  9464. dynamic_linker="$host_os dld.sl"
  9465. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9466. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9467. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9468. soname_spec='$libname$release$shared_ext$major'
  9469. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9470. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9471. ;;
  9472. *)
  9473. shrext_cmds='.sl'
  9474. dynamic_linker="$host_os dld.sl"
  9475. shlibpath_var=SHLIB_PATH
  9476. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9477. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9478. soname_spec='$libname$release$shared_ext$major'
  9479. ;;
  9480. esac
  9481. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9482. postinstall_cmds='chmod 555 $lib'
  9483. # or fails outright, so override atomically:
  9484. install_override_mode=555
  9485. ;;
  9486. interix[3-9]*)
  9487. version_type=linux # correct to gnu/linux during the next big refactor
  9488. need_lib_prefix=no
  9489. need_version=no
  9490. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9491. soname_spec='$libname$release$shared_ext$major'
  9492. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9493. shlibpath_var=LD_LIBRARY_PATH
  9494. shlibpath_overrides_runpath=no
  9495. hardcode_into_libs=yes
  9496. ;;
  9497. irix5* | irix6* | nonstopux*)
  9498. case $host_os in
  9499. nonstopux*) version_type=nonstopux ;;
  9500. *)
  9501. if test yes = "$lt_cv_prog_gnu_ld"; then
  9502. version_type=linux # correct to gnu/linux during the next big refactor
  9503. else
  9504. version_type=irix
  9505. fi ;;
  9506. esac
  9507. need_lib_prefix=no
  9508. need_version=no
  9509. soname_spec='$libname$release$shared_ext$major'
  9510. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9511. case $host_os in
  9512. irix5* | nonstopux*)
  9513. libsuff= shlibsuff=
  9514. ;;
  9515. *)
  9516. case $LD in # libtool.m4 will add one of these switches to LD
  9517. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9518. libsuff= shlibsuff= libmagic=32-bit;;
  9519. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9520. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9521. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9522. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9523. *) libsuff= shlibsuff= libmagic=never-match;;
  9524. esac
  9525. ;;
  9526. esac
  9527. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9528. shlibpath_overrides_runpath=no
  9529. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9530. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9531. hardcode_into_libs=yes
  9532. ;;
  9533. # No shared lib support for Linux oldld, aout, or coff.
  9534. linux*oldld* | linux*aout* | linux*coff*)
  9535. dynamic_linker=no
  9536. ;;
  9537. linux*android*)
  9538. version_type=none # Android doesn't support versioned libraries.
  9539. need_lib_prefix=no
  9540. need_version=no
  9541. library_names_spec='$libname$release$shared_ext'
  9542. soname_spec='$libname$release$shared_ext'
  9543. finish_cmds=
  9544. shlibpath_var=LD_LIBRARY_PATH
  9545. shlibpath_overrides_runpath=yes
  9546. # This implies no fast_install, which is unacceptable.
  9547. # Some rework will be needed to allow for fast_install
  9548. # before this can be enabled.
  9549. hardcode_into_libs=yes
  9550. dynamic_linker='Android linker'
  9551. # Don't embed -rpath directories since the linker doesn't support them.
  9552. hardcode_libdir_flag_spec='-L$libdir'
  9553. ;;
  9554. # This must be glibc/ELF.
  9555. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9556. version_type=linux # correct to gnu/linux during the next big refactor
  9557. need_lib_prefix=no
  9558. need_version=no
  9559. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9560. soname_spec='$libname$release$shared_ext$major'
  9561. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9562. shlibpath_var=LD_LIBRARY_PATH
  9563. shlibpath_overrides_runpath=no
  9564. # Some binutils ld are patched to set DT_RUNPATH
  9565. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9566. $as_echo_n "(cached) " >&6
  9567. else
  9568. lt_cv_shlibpath_overrides_runpath=no
  9569. save_LDFLAGS=$LDFLAGS
  9570. save_libdir=$libdir
  9571. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9572. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9574. /* end confdefs.h. */
  9575. int
  9576. main ()
  9577. {
  9578. ;
  9579. return 0;
  9580. }
  9581. _ACEOF
  9582. if ac_fn_c_try_link "$LINENO"; then :
  9583. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9584. lt_cv_shlibpath_overrides_runpath=yes
  9585. fi
  9586. fi
  9587. rm -f core conftest.err conftest.$ac_objext \
  9588. conftest$ac_exeext conftest.$ac_ext
  9589. LDFLAGS=$save_LDFLAGS
  9590. libdir=$save_libdir
  9591. fi
  9592. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9593. # This implies no fast_install, which is unacceptable.
  9594. # Some rework will be needed to allow for fast_install
  9595. # before this can be enabled.
  9596. hardcode_into_libs=yes
  9597. # Add ABI-specific directories to the system library path.
  9598. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9599. # Ideally, we could use ldconfig to report *all* directores which are
  9600. # searched for libraries, however this is still not possible. Aside from not
  9601. # being certain /sbin/ldconfig is available, command
  9602. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9603. # even though it is searched at run-time. Try to do the best guess by
  9604. # appending ld.so.conf contents (and includes) to the search path.
  9605. if test -f /etc/ld.so.conf; then
  9606. 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' ' '`
  9607. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9608. fi
  9609. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9610. # powerpc, because MkLinux only supported shared libraries with the
  9611. # GNU dynamic linker. Since this was broken with cross compilers,
  9612. # most powerpc-linux boxes support dynamic linking these days and
  9613. # people can always --disable-shared, the test was removed, and we
  9614. # assume the GNU/Linux dynamic linker is in use.
  9615. dynamic_linker='GNU/Linux ld.so'
  9616. ;;
  9617. netbsd*)
  9618. version_type=sunos
  9619. need_lib_prefix=no
  9620. need_version=no
  9621. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9622. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9623. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9624. dynamic_linker='NetBSD (a.out) ld.so'
  9625. else
  9626. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9627. soname_spec='$libname$release$shared_ext$major'
  9628. dynamic_linker='NetBSD ld.elf_so'
  9629. fi
  9630. shlibpath_var=LD_LIBRARY_PATH
  9631. shlibpath_overrides_runpath=yes
  9632. hardcode_into_libs=yes
  9633. ;;
  9634. newsos6)
  9635. version_type=linux # correct to gnu/linux during the next big refactor
  9636. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9637. shlibpath_var=LD_LIBRARY_PATH
  9638. shlibpath_overrides_runpath=yes
  9639. ;;
  9640. *nto* | *qnx*)
  9641. version_type=qnx
  9642. need_lib_prefix=no
  9643. need_version=no
  9644. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9645. soname_spec='$libname$release$shared_ext$major'
  9646. shlibpath_var=LD_LIBRARY_PATH
  9647. shlibpath_overrides_runpath=no
  9648. hardcode_into_libs=yes
  9649. dynamic_linker='ldqnx.so'
  9650. ;;
  9651. openbsd* | bitrig*)
  9652. version_type=sunos
  9653. sys_lib_dlsearch_path_spec=/usr/lib
  9654. need_lib_prefix=no
  9655. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9656. need_version=no
  9657. else
  9658. need_version=yes
  9659. fi
  9660. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9661. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9662. shlibpath_var=LD_LIBRARY_PATH
  9663. shlibpath_overrides_runpath=yes
  9664. ;;
  9665. os2*)
  9666. libname_spec='$name'
  9667. shrext_cmds=.dll
  9668. need_lib_prefix=no
  9669. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9670. # SDL customization: removed versioning support.
  9671. # version_type=windows
  9672. # need_version=no
  9673. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9674. # v=$($ECHO $release$versuffix | tr -d .-);
  9675. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9676. # $ECHO $n$v`$shared_ext'
  9677. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  9678. library_names_spec='${libname}_dll.$libext'
  9679. dynamic_linker='OS/2 ld.exe'
  9680. shlibpath_var=BEGINLIBPATH
  9681. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9682. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9683. postinstall_cmds='base_file=`basename \$file`~
  9684. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9685. dldir=$destdir/`dirname \$dlpath`~
  9686. test -d \$dldir || mkdir -p \$dldir~
  9687. $install_prog $dir/$dlname \$dldir/$dlname~
  9688. chmod a+x \$dldir/$dlname~
  9689. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9690. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9691. fi'
  9692. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9693. dlpath=$dir/\$dldll~
  9694. $RM \$dlpath'
  9695. ;;
  9696. osf3* | osf4* | osf5*)
  9697. version_type=osf
  9698. need_lib_prefix=no
  9699. need_version=no
  9700. soname_spec='$libname$release$shared_ext$major'
  9701. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9702. shlibpath_var=LD_LIBRARY_PATH
  9703. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9704. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9705. ;;
  9706. rdos*)
  9707. dynamic_linker=no
  9708. ;;
  9709. solaris*)
  9710. version_type=linux # correct to gnu/linux during the next big refactor
  9711. need_lib_prefix=no
  9712. need_version=no
  9713. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9714. soname_spec='$libname$release$shared_ext$major'
  9715. shlibpath_var=LD_LIBRARY_PATH
  9716. shlibpath_overrides_runpath=yes
  9717. hardcode_into_libs=yes
  9718. # ldd complains unless libraries are executable
  9719. postinstall_cmds='chmod +x $lib'
  9720. ;;
  9721. sunos4*)
  9722. version_type=sunos
  9723. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9724. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9725. shlibpath_var=LD_LIBRARY_PATH
  9726. shlibpath_overrides_runpath=yes
  9727. if test yes = "$with_gnu_ld"; then
  9728. need_lib_prefix=no
  9729. fi
  9730. need_version=yes
  9731. ;;
  9732. sysv4 | sysv4.3*)
  9733. version_type=linux # correct to gnu/linux during the next big refactor
  9734. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9735. soname_spec='$libname$release$shared_ext$major'
  9736. shlibpath_var=LD_LIBRARY_PATH
  9737. case $host_vendor in
  9738. sni)
  9739. shlibpath_overrides_runpath=no
  9740. need_lib_prefix=no
  9741. runpath_var=LD_RUN_PATH
  9742. ;;
  9743. siemens)
  9744. need_lib_prefix=no
  9745. ;;
  9746. motorola)
  9747. need_lib_prefix=no
  9748. need_version=no
  9749. shlibpath_overrides_runpath=no
  9750. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9751. ;;
  9752. esac
  9753. ;;
  9754. sysv4*MP*)
  9755. if test -d /usr/nec; then
  9756. version_type=linux # correct to gnu/linux during the next big refactor
  9757. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9758. soname_spec='$libname$shared_ext.$major'
  9759. shlibpath_var=LD_LIBRARY_PATH
  9760. fi
  9761. ;;
  9762. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9763. version_type=sco
  9764. need_lib_prefix=no
  9765. need_version=no
  9766. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9767. soname_spec='$libname$release$shared_ext$major'
  9768. shlibpath_var=LD_LIBRARY_PATH
  9769. shlibpath_overrides_runpath=yes
  9770. hardcode_into_libs=yes
  9771. if test yes = "$with_gnu_ld"; then
  9772. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9773. else
  9774. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9775. case $host_os in
  9776. sco3.2v5*)
  9777. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9778. ;;
  9779. esac
  9780. fi
  9781. sys_lib_dlsearch_path_spec='/usr/lib'
  9782. ;;
  9783. tpf*)
  9784. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9785. version_type=linux # correct to gnu/linux during the next big refactor
  9786. need_lib_prefix=no
  9787. need_version=no
  9788. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9789. shlibpath_var=LD_LIBRARY_PATH
  9790. shlibpath_overrides_runpath=no
  9791. hardcode_into_libs=yes
  9792. ;;
  9793. uts4*)
  9794. version_type=linux # correct to gnu/linux during the next big refactor
  9795. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9796. soname_spec='$libname$release$shared_ext$major'
  9797. shlibpath_var=LD_LIBRARY_PATH
  9798. ;;
  9799. *)
  9800. dynamic_linker=no
  9801. ;;
  9802. esac
  9803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9804. $as_echo "$dynamic_linker" >&6; }
  9805. test no = "$dynamic_linker" && can_build_shared=no
  9806. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9807. if test yes = "$GCC"; then
  9808. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9809. fi
  9810. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9811. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9812. fi
  9813. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9814. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9815. fi
  9816. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9817. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9818. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9819. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9820. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9821. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9823. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9824. hardcode_action=
  9825. if test -n "$hardcode_libdir_flag_spec" ||
  9826. test -n "$runpath_var" ||
  9827. test yes = "$hardcode_automatic"; then
  9828. # We can hardcode non-existent directories.
  9829. if test no != "$hardcode_direct" &&
  9830. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9831. # have to relink, otherwise we might link with an installed library
  9832. # when we should be linking with a yet-to-be-installed one
  9833. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9834. test no != "$hardcode_minus_L"; then
  9835. # Linking always hardcodes the temporary library directory.
  9836. hardcode_action=relink
  9837. else
  9838. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9839. hardcode_action=immediate
  9840. fi
  9841. else
  9842. # We cannot hardcode anything, or else we can only hardcode existing
  9843. # directories.
  9844. hardcode_action=unsupported
  9845. fi
  9846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9847. $as_echo "$hardcode_action" >&6; }
  9848. if test relink = "$hardcode_action" ||
  9849. test yes = "$inherit_rpath"; then
  9850. # Fast installation is not supported
  9851. enable_fast_install=no
  9852. elif test yes = "$shlibpath_overrides_runpath" ||
  9853. test no = "$enable_shared"; then
  9854. # Fast installation is not necessary
  9855. enable_fast_install=needless
  9856. fi
  9857. if test yes != "$enable_dlopen"; then
  9858. enable_dlopen=unknown
  9859. enable_dlopen_self=unknown
  9860. enable_dlopen_self_static=unknown
  9861. else
  9862. lt_cv_dlopen=no
  9863. lt_cv_dlopen_libs=
  9864. case $host_os in
  9865. beos*)
  9866. lt_cv_dlopen=load_add_on
  9867. lt_cv_dlopen_libs=
  9868. lt_cv_dlopen_self=yes
  9869. ;;
  9870. mingw* | pw32* | cegcc*)
  9871. lt_cv_dlopen=LoadLibrary
  9872. lt_cv_dlopen_libs=
  9873. ;;
  9874. cygwin*)
  9875. lt_cv_dlopen=dlopen
  9876. lt_cv_dlopen_libs=
  9877. ;;
  9878. darwin*)
  9879. # if libdl is installed we need to link against it
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9881. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9882. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9883. $as_echo_n "(cached) " >&6
  9884. else
  9885. ac_check_lib_save_LIBS=$LIBS
  9886. LIBS="-ldl $LIBS"
  9887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9888. /* end confdefs.h. */
  9889. /* Override any GCC internal prototype to avoid an error.
  9890. Use char because int might match the return type of a GCC
  9891. builtin and then its argument prototype would still apply. */
  9892. #ifdef __cplusplus
  9893. extern "C"
  9894. #endif
  9895. char dlopen ();
  9896. int
  9897. main ()
  9898. {
  9899. return dlopen ();
  9900. ;
  9901. return 0;
  9902. }
  9903. _ACEOF
  9904. if ac_fn_c_try_link "$LINENO"; then :
  9905. ac_cv_lib_dl_dlopen=yes
  9906. else
  9907. ac_cv_lib_dl_dlopen=no
  9908. fi
  9909. rm -f core conftest.err conftest.$ac_objext \
  9910. conftest$ac_exeext conftest.$ac_ext
  9911. LIBS=$ac_check_lib_save_LIBS
  9912. fi
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9914. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9915. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9916. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9917. else
  9918. lt_cv_dlopen=dyld
  9919. lt_cv_dlopen_libs=
  9920. lt_cv_dlopen_self=yes
  9921. fi
  9922. ;;
  9923. tpf*)
  9924. # Don't try to run any link tests for TPF. We know it's impossible
  9925. # because TPF is a cross-compiler, and we know how we open DSOs.
  9926. lt_cv_dlopen=dlopen
  9927. lt_cv_dlopen_libs=
  9928. lt_cv_dlopen_self=no
  9929. ;;
  9930. *)
  9931. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9932. if test "x$ac_cv_func_shl_load" = xyes; then :
  9933. lt_cv_dlopen=shl_load
  9934. else
  9935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9936. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9937. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9938. $as_echo_n "(cached) " >&6
  9939. else
  9940. ac_check_lib_save_LIBS=$LIBS
  9941. LIBS="-ldld $LIBS"
  9942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9943. /* end confdefs.h. */
  9944. /* Override any GCC internal prototype to avoid an error.
  9945. Use char because int might match the return type of a GCC
  9946. builtin and then its argument prototype would still apply. */
  9947. #ifdef __cplusplus
  9948. extern "C"
  9949. #endif
  9950. char shl_load ();
  9951. int
  9952. main ()
  9953. {
  9954. return shl_load ();
  9955. ;
  9956. return 0;
  9957. }
  9958. _ACEOF
  9959. if ac_fn_c_try_link "$LINENO"; then :
  9960. ac_cv_lib_dld_shl_load=yes
  9961. else
  9962. ac_cv_lib_dld_shl_load=no
  9963. fi
  9964. rm -f core conftest.err conftest.$ac_objext \
  9965. conftest$ac_exeext conftest.$ac_ext
  9966. LIBS=$ac_check_lib_save_LIBS
  9967. fi
  9968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9969. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9970. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9971. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9972. else
  9973. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9974. if test "x$ac_cv_func_dlopen" = xyes; then :
  9975. lt_cv_dlopen=dlopen
  9976. else
  9977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9978. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9979. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9980. $as_echo_n "(cached) " >&6
  9981. else
  9982. ac_check_lib_save_LIBS=$LIBS
  9983. LIBS="-ldl $LIBS"
  9984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9985. /* end confdefs.h. */
  9986. /* Override any GCC internal prototype to avoid an error.
  9987. Use char because int might match the return type of a GCC
  9988. builtin and then its argument prototype would still apply. */
  9989. #ifdef __cplusplus
  9990. extern "C"
  9991. #endif
  9992. char dlopen ();
  9993. int
  9994. main ()
  9995. {
  9996. return dlopen ();
  9997. ;
  9998. return 0;
  9999. }
  10000. _ACEOF
  10001. if ac_fn_c_try_link "$LINENO"; then :
  10002. ac_cv_lib_dl_dlopen=yes
  10003. else
  10004. ac_cv_lib_dl_dlopen=no
  10005. fi
  10006. rm -f core conftest.err conftest.$ac_objext \
  10007. conftest$ac_exeext conftest.$ac_ext
  10008. LIBS=$ac_check_lib_save_LIBS
  10009. fi
  10010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10011. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10012. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10013. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10014. else
  10015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10016. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10017. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10018. $as_echo_n "(cached) " >&6
  10019. else
  10020. ac_check_lib_save_LIBS=$LIBS
  10021. LIBS="-lsvld $LIBS"
  10022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10023. /* end confdefs.h. */
  10024. /* Override any GCC internal prototype to avoid an error.
  10025. Use char because int might match the return type of a GCC
  10026. builtin and then its argument prototype would still apply. */
  10027. #ifdef __cplusplus
  10028. extern "C"
  10029. #endif
  10030. char dlopen ();
  10031. int
  10032. main ()
  10033. {
  10034. return dlopen ();
  10035. ;
  10036. return 0;
  10037. }
  10038. _ACEOF
  10039. if ac_fn_c_try_link "$LINENO"; then :
  10040. ac_cv_lib_svld_dlopen=yes
  10041. else
  10042. ac_cv_lib_svld_dlopen=no
  10043. fi
  10044. rm -f core conftest.err conftest.$ac_objext \
  10045. conftest$ac_exeext conftest.$ac_ext
  10046. LIBS=$ac_check_lib_save_LIBS
  10047. fi
  10048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10049. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10050. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10051. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10052. else
  10053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10054. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10055. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10056. $as_echo_n "(cached) " >&6
  10057. else
  10058. ac_check_lib_save_LIBS=$LIBS
  10059. LIBS="-ldld $LIBS"
  10060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10061. /* end confdefs.h. */
  10062. /* Override any GCC internal prototype to avoid an error.
  10063. Use char because int might match the return type of a GCC
  10064. builtin and then its argument prototype would still apply. */
  10065. #ifdef __cplusplus
  10066. extern "C"
  10067. #endif
  10068. char dld_link ();
  10069. int
  10070. main ()
  10071. {
  10072. return dld_link ();
  10073. ;
  10074. return 0;
  10075. }
  10076. _ACEOF
  10077. if ac_fn_c_try_link "$LINENO"; then :
  10078. ac_cv_lib_dld_dld_link=yes
  10079. else
  10080. ac_cv_lib_dld_dld_link=no
  10081. fi
  10082. rm -f core conftest.err conftest.$ac_objext \
  10083. conftest$ac_exeext conftest.$ac_ext
  10084. LIBS=$ac_check_lib_save_LIBS
  10085. fi
  10086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10087. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10088. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10089. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10090. fi
  10091. fi
  10092. fi
  10093. fi
  10094. fi
  10095. fi
  10096. ;;
  10097. esac
  10098. if test no = "$lt_cv_dlopen"; then
  10099. enable_dlopen=no
  10100. else
  10101. enable_dlopen=yes
  10102. fi
  10103. case $lt_cv_dlopen in
  10104. dlopen)
  10105. save_CPPFLAGS=$CPPFLAGS
  10106. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10107. save_LDFLAGS=$LDFLAGS
  10108. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10109. save_LIBS=$LIBS
  10110. LIBS="$lt_cv_dlopen_libs $LIBS"
  10111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10112. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10113. if ${lt_cv_dlopen_self+:} false; then :
  10114. $as_echo_n "(cached) " >&6
  10115. else
  10116. if test yes = "$cross_compiling"; then :
  10117. lt_cv_dlopen_self=cross
  10118. else
  10119. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10120. lt_status=$lt_dlunknown
  10121. cat > conftest.$ac_ext <<_LT_EOF
  10122. #line $LINENO "configure"
  10123. #include "confdefs.h"
  10124. #if HAVE_DLFCN_H
  10125. #include <dlfcn.h>
  10126. #endif
  10127. #include <stdio.h>
  10128. #ifdef RTLD_GLOBAL
  10129. # define LT_DLGLOBAL RTLD_GLOBAL
  10130. #else
  10131. # ifdef DL_GLOBAL
  10132. # define LT_DLGLOBAL DL_GLOBAL
  10133. # else
  10134. # define LT_DLGLOBAL 0
  10135. # endif
  10136. #endif
  10137. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10138. find out it does not work in some platform. */
  10139. #ifndef LT_DLLAZY_OR_NOW
  10140. # ifdef RTLD_LAZY
  10141. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10142. # else
  10143. # ifdef DL_LAZY
  10144. # define LT_DLLAZY_OR_NOW DL_LAZY
  10145. # else
  10146. # ifdef RTLD_NOW
  10147. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10148. # else
  10149. # ifdef DL_NOW
  10150. # define LT_DLLAZY_OR_NOW DL_NOW
  10151. # else
  10152. # define LT_DLLAZY_OR_NOW 0
  10153. # endif
  10154. # endif
  10155. # endif
  10156. # endif
  10157. #endif
  10158. /* When -fvisibility=hidden is used, assume the code has been annotated
  10159. correspondingly for the symbols needed. */
  10160. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10161. int fnord () __attribute__((visibility("default")));
  10162. #endif
  10163. int fnord () { return 42; }
  10164. int main ()
  10165. {
  10166. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10167. int status = $lt_dlunknown;
  10168. if (self)
  10169. {
  10170. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10171. else
  10172. {
  10173. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10174. else puts (dlerror ());
  10175. }
  10176. /* dlclose (self); */
  10177. }
  10178. else
  10179. puts (dlerror ());
  10180. return status;
  10181. }
  10182. _LT_EOF
  10183. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10184. (eval $ac_link) 2>&5
  10185. ac_status=$?
  10186. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10187. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10188. (./conftest; exit; ) >&5 2>/dev/null
  10189. lt_status=$?
  10190. case x$lt_status in
  10191. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10192. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10193. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10194. esac
  10195. else :
  10196. # compilation failed
  10197. lt_cv_dlopen_self=no
  10198. fi
  10199. fi
  10200. rm -fr conftest*
  10201. fi
  10202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10203. $as_echo "$lt_cv_dlopen_self" >&6; }
  10204. if test yes = "$lt_cv_dlopen_self"; then
  10205. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10207. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10208. if ${lt_cv_dlopen_self_static+:} false; then :
  10209. $as_echo_n "(cached) " >&6
  10210. else
  10211. if test yes = "$cross_compiling"; then :
  10212. lt_cv_dlopen_self_static=cross
  10213. else
  10214. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10215. lt_status=$lt_dlunknown
  10216. cat > conftest.$ac_ext <<_LT_EOF
  10217. #line $LINENO "configure"
  10218. #include "confdefs.h"
  10219. #if HAVE_DLFCN_H
  10220. #include <dlfcn.h>
  10221. #endif
  10222. #include <stdio.h>
  10223. #ifdef RTLD_GLOBAL
  10224. # define LT_DLGLOBAL RTLD_GLOBAL
  10225. #else
  10226. # ifdef DL_GLOBAL
  10227. # define LT_DLGLOBAL DL_GLOBAL
  10228. # else
  10229. # define LT_DLGLOBAL 0
  10230. # endif
  10231. #endif
  10232. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10233. find out it does not work in some platform. */
  10234. #ifndef LT_DLLAZY_OR_NOW
  10235. # ifdef RTLD_LAZY
  10236. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10237. # else
  10238. # ifdef DL_LAZY
  10239. # define LT_DLLAZY_OR_NOW DL_LAZY
  10240. # else
  10241. # ifdef RTLD_NOW
  10242. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10243. # else
  10244. # ifdef DL_NOW
  10245. # define LT_DLLAZY_OR_NOW DL_NOW
  10246. # else
  10247. # define LT_DLLAZY_OR_NOW 0
  10248. # endif
  10249. # endif
  10250. # endif
  10251. # endif
  10252. #endif
  10253. /* When -fvisibility=hidden is used, assume the code has been annotated
  10254. correspondingly for the symbols needed. */
  10255. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10256. int fnord () __attribute__((visibility("default")));
  10257. #endif
  10258. int fnord () { return 42; }
  10259. int main ()
  10260. {
  10261. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10262. int status = $lt_dlunknown;
  10263. if (self)
  10264. {
  10265. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10266. else
  10267. {
  10268. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10269. else puts (dlerror ());
  10270. }
  10271. /* dlclose (self); */
  10272. }
  10273. else
  10274. puts (dlerror ());
  10275. return status;
  10276. }
  10277. _LT_EOF
  10278. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10279. (eval $ac_link) 2>&5
  10280. ac_status=$?
  10281. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10282. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10283. (./conftest; exit; ) >&5 2>/dev/null
  10284. lt_status=$?
  10285. case x$lt_status in
  10286. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10287. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10288. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10289. esac
  10290. else :
  10291. # compilation failed
  10292. lt_cv_dlopen_self_static=no
  10293. fi
  10294. fi
  10295. rm -fr conftest*
  10296. fi
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10298. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10299. fi
  10300. CPPFLAGS=$save_CPPFLAGS
  10301. LDFLAGS=$save_LDFLAGS
  10302. LIBS=$save_LIBS
  10303. ;;
  10304. esac
  10305. case $lt_cv_dlopen_self in
  10306. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10307. *) enable_dlopen_self=unknown ;;
  10308. esac
  10309. case $lt_cv_dlopen_self_static in
  10310. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10311. *) enable_dlopen_self_static=unknown ;;
  10312. esac
  10313. fi
  10314. striplib=
  10315. old_striplib=
  10316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10317. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10318. if test -z "$STRIP"; then
  10319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10320. $as_echo "no" >&6; }
  10321. else
  10322. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10323. old_striplib="$STRIP --strip-debug"
  10324. striplib="$STRIP --strip-unneeded"
  10325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10326. $as_echo "yes" >&6; }
  10327. else
  10328. case $host_os in
  10329. darwin*)
  10330. # FIXME - insert some real tests, host_os isn't really good enough
  10331. striplib="$STRIP -x"
  10332. old_striplib="$STRIP -S"
  10333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10334. $as_echo "yes" >&6; }
  10335. ;;
  10336. freebsd*)
  10337. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  10338. old_striplib="$STRIP --strip-debug"
  10339. striplib="$STRIP --strip-unneeded"
  10340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10341. $as_echo "yes" >&6; }
  10342. else
  10343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10344. $as_echo "no" >&6; }
  10345. fi
  10346. ;;
  10347. *)
  10348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10349. $as_echo "no" >&6; }
  10350. ;;
  10351. esac
  10352. fi
  10353. fi
  10354. # Report what library types will actually be built
  10355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10356. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10358. $as_echo "$can_build_shared" >&6; }
  10359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10360. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10361. test no = "$can_build_shared" && enable_shared=no
  10362. # On AIX, shared libraries and static libraries use the same namespace, and
  10363. # are all built from PIC.
  10364. case $host_os in
  10365. aix3*)
  10366. test yes = "$enable_shared" && enable_static=no
  10367. if test -n "$RANLIB"; then
  10368. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10369. postinstall_cmds='$RANLIB $lib'
  10370. fi
  10371. ;;
  10372. aix[4-9]*)
  10373. if test ia64 != "$host_cpu"; then
  10374. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10375. yes,aix,yes) ;; # shared object as lib.so file only
  10376. yes,svr4,*) ;; # shared object as lib.so archive member only
  10377. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10378. esac
  10379. fi
  10380. ;;
  10381. esac
  10382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10383. $as_echo "$enable_shared" >&6; }
  10384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10385. $as_echo_n "checking whether to build static libraries... " >&6; }
  10386. # Make sure either enable_shared or enable_static is yes.
  10387. test yes = "$enable_shared" || enable_static=yes
  10388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10389. $as_echo "$enable_static" >&6; }
  10390. fi
  10391. ac_ext=c
  10392. ac_cpp='$CPP $CPPFLAGS'
  10393. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10394. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10395. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10396. CC=$lt_save_CC
  10397. ac_config_commands="$ac_config_commands libtool"
  10398. # Only expand once:
  10399. if test -n "$ac_tool_prefix"; then
  10400. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10401. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10403. $as_echo_n "checking for $ac_word... " >&6; }
  10404. if ${ac_cv_prog_RC+:} false; then :
  10405. $as_echo_n "(cached) " >&6
  10406. else
  10407. if test -n "$RC"; then
  10408. ac_cv_prog_RC="$RC" # Let the user override the test.
  10409. else
  10410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10411. for as_dir in $PATH
  10412. do
  10413. IFS=$as_save_IFS
  10414. test -z "$as_dir" && as_dir=.
  10415. for ac_exec_ext in '' $ac_executable_extensions; do
  10416. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10417. ac_cv_prog_RC="${ac_tool_prefix}windres"
  10418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10419. break 2
  10420. fi
  10421. done
  10422. done
  10423. IFS=$as_save_IFS
  10424. fi
  10425. fi
  10426. RC=$ac_cv_prog_RC
  10427. if test -n "$RC"; then
  10428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  10429. $as_echo "$RC" >&6; }
  10430. else
  10431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10432. $as_echo "no" >&6; }
  10433. fi
  10434. fi
  10435. if test -z "$ac_cv_prog_RC"; then
  10436. ac_ct_RC=$RC
  10437. # Extract the first word of "windres", so it can be a program name with args.
  10438. set dummy windres; ac_word=$2
  10439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10440. $as_echo_n "checking for $ac_word... " >&6; }
  10441. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  10442. $as_echo_n "(cached) " >&6
  10443. else
  10444. if test -n "$ac_ct_RC"; then
  10445. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  10446. else
  10447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10448. for as_dir in $PATH
  10449. do
  10450. IFS=$as_save_IFS
  10451. test -z "$as_dir" && as_dir=.
  10452. for ac_exec_ext in '' $ac_executable_extensions; do
  10453. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10454. ac_cv_prog_ac_ct_RC="windres"
  10455. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10456. break 2
  10457. fi
  10458. done
  10459. done
  10460. IFS=$as_save_IFS
  10461. fi
  10462. fi
  10463. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  10464. if test -n "$ac_ct_RC"; then
  10465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  10466. $as_echo "$ac_ct_RC" >&6; }
  10467. else
  10468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10469. $as_echo "no" >&6; }
  10470. fi
  10471. if test "x$ac_ct_RC" = x; then
  10472. RC=""
  10473. else
  10474. case $cross_compiling:$ac_tool_warned in
  10475. yes:)
  10476. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10477. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10478. ac_tool_warned=yes ;;
  10479. esac
  10480. RC=$ac_ct_RC
  10481. fi
  10482. else
  10483. RC="$ac_cv_prog_RC"
  10484. fi
  10485. # Source file extension for RC test sources.
  10486. ac_ext=rc
  10487. # Object file extension for compiled RC test sources.
  10488. objext=o
  10489. objext_RC=$objext
  10490. # Code to be used in simple compile tests
  10491. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10492. # Code to be used in simple link tests
  10493. lt_simple_link_test_code=$lt_simple_compile_test_code
  10494. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10495. # If no C compiler was specified, use CC.
  10496. LTCC=${LTCC-"$CC"}
  10497. # If no C compiler flags were specified, use CFLAGS.
  10498. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10499. # Allow CC to be a program name with arguments.
  10500. compiler=$CC
  10501. # save warnings/boilerplate of simple test code
  10502. ac_outfile=conftest.$ac_objext
  10503. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10504. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10505. _lt_compiler_boilerplate=`cat conftest.err`
  10506. $RM conftest*
  10507. ac_outfile=conftest.$ac_objext
  10508. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10509. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10510. _lt_linker_boilerplate=`cat conftest.err`
  10511. $RM -r conftest*
  10512. # Allow CC to be a program name with arguments.
  10513. lt_save_CC=$CC
  10514. lt_save_CFLAGS=$CFLAGS
  10515. lt_save_GCC=$GCC
  10516. GCC=
  10517. CC=${RC-"windres"}
  10518. CFLAGS=
  10519. compiler=$CC
  10520. compiler_RC=$CC
  10521. func_cc_basename $compiler
  10522. cc_basename=$func_cc_basename_result
  10523. lt_cv_prog_compiler_c_o_RC=yes
  10524. if test -n "$compiler"; then
  10525. :
  10526. fi
  10527. GCC=$lt_save_GCC
  10528. ac_ext=c
  10529. ac_cpp='$CPP $CPPFLAGS'
  10530. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10531. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10532. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10533. CC=$lt_save_CC
  10534. CFLAGS=$lt_save_CFLAGS
  10535. # For historical reasons, the library name redundantly includes the major
  10536. # version twice: libSDL2-2.0.so.0.
  10537. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  10538. LT_RELEASE=2.0
  10539. # Increment this if there is an incompatible change - but if that happens,
  10540. # we should rename the library from SDL2 to SDL3, at which point this would
  10541. # reset to 0 anyway.
  10542. LT_MAJOR=0
  10543. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10544. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  10545. LT_REVISION=$SDL_INTERFACE_AGE
  10546. ac_ext=c
  10547. ac_cpp='$CPP $CPPFLAGS'
  10548. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10549. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10550. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10551. if test -n "$ac_tool_prefix"; then
  10552. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10553. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10555. $as_echo_n "checking for $ac_word... " >&6; }
  10556. if ${ac_cv_prog_CC+:} false; then :
  10557. $as_echo_n "(cached) " >&6
  10558. else
  10559. if test -n "$CC"; then
  10560. ac_cv_prog_CC="$CC" # Let the user override the test.
  10561. else
  10562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10563. for as_dir in $PATH
  10564. do
  10565. IFS=$as_save_IFS
  10566. test -z "$as_dir" && as_dir=.
  10567. for ac_exec_ext in '' $ac_executable_extensions; do
  10568. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10569. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10571. break 2
  10572. fi
  10573. done
  10574. done
  10575. IFS=$as_save_IFS
  10576. fi
  10577. fi
  10578. CC=$ac_cv_prog_CC
  10579. if test -n "$CC"; then
  10580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10581. $as_echo "$CC" >&6; }
  10582. else
  10583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10584. $as_echo "no" >&6; }
  10585. fi
  10586. fi
  10587. if test -z "$ac_cv_prog_CC"; then
  10588. ac_ct_CC=$CC
  10589. # Extract the first word of "gcc", so it can be a program name with args.
  10590. set dummy gcc; ac_word=$2
  10591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10592. $as_echo_n "checking for $ac_word... " >&6; }
  10593. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10594. $as_echo_n "(cached) " >&6
  10595. else
  10596. if test -n "$ac_ct_CC"; then
  10597. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10598. else
  10599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10600. for as_dir in $PATH
  10601. do
  10602. IFS=$as_save_IFS
  10603. test -z "$as_dir" && as_dir=.
  10604. for ac_exec_ext in '' $ac_executable_extensions; do
  10605. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10606. ac_cv_prog_ac_ct_CC="gcc"
  10607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10608. break 2
  10609. fi
  10610. done
  10611. done
  10612. IFS=$as_save_IFS
  10613. fi
  10614. fi
  10615. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10616. if test -n "$ac_ct_CC"; then
  10617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10618. $as_echo "$ac_ct_CC" >&6; }
  10619. else
  10620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10621. $as_echo "no" >&6; }
  10622. fi
  10623. if test "x$ac_ct_CC" = x; then
  10624. CC=""
  10625. else
  10626. case $cross_compiling:$ac_tool_warned in
  10627. yes:)
  10628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10629. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10630. ac_tool_warned=yes ;;
  10631. esac
  10632. CC=$ac_ct_CC
  10633. fi
  10634. else
  10635. CC="$ac_cv_prog_CC"
  10636. fi
  10637. if test -z "$CC"; then
  10638. if test -n "$ac_tool_prefix"; then
  10639. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10640. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10642. $as_echo_n "checking for $ac_word... " >&6; }
  10643. if ${ac_cv_prog_CC+:} false; then :
  10644. $as_echo_n "(cached) " >&6
  10645. else
  10646. if test -n "$CC"; then
  10647. ac_cv_prog_CC="$CC" # Let the user override the test.
  10648. else
  10649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10650. for as_dir in $PATH
  10651. do
  10652. IFS=$as_save_IFS
  10653. test -z "$as_dir" && as_dir=.
  10654. for ac_exec_ext in '' $ac_executable_extensions; do
  10655. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10656. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10657. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10658. break 2
  10659. fi
  10660. done
  10661. done
  10662. IFS=$as_save_IFS
  10663. fi
  10664. fi
  10665. CC=$ac_cv_prog_CC
  10666. if test -n "$CC"; then
  10667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10668. $as_echo "$CC" >&6; }
  10669. else
  10670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10671. $as_echo "no" >&6; }
  10672. fi
  10673. fi
  10674. fi
  10675. if test -z "$CC"; then
  10676. # Extract the first word of "cc", so it can be a program name with args.
  10677. set dummy cc; ac_word=$2
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10679. $as_echo_n "checking for $ac_word... " >&6; }
  10680. if ${ac_cv_prog_CC+:} false; then :
  10681. $as_echo_n "(cached) " >&6
  10682. else
  10683. if test -n "$CC"; then
  10684. ac_cv_prog_CC="$CC" # Let the user override the test.
  10685. else
  10686. ac_prog_rejected=no
  10687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10688. for as_dir in $PATH
  10689. do
  10690. IFS=$as_save_IFS
  10691. test -z "$as_dir" && as_dir=.
  10692. for ac_exec_ext in '' $ac_executable_extensions; do
  10693. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10694. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10695. ac_prog_rejected=yes
  10696. continue
  10697. fi
  10698. ac_cv_prog_CC="cc"
  10699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10700. break 2
  10701. fi
  10702. done
  10703. done
  10704. IFS=$as_save_IFS
  10705. if test $ac_prog_rejected = yes; then
  10706. # We found a bogon in the path, so make sure we never use it.
  10707. set dummy $ac_cv_prog_CC
  10708. shift
  10709. if test $# != 0; then
  10710. # We chose a different compiler from the bogus one.
  10711. # However, it has the same basename, so the bogon will be chosen
  10712. # first if we set CC to just the basename; use the full file name.
  10713. shift
  10714. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10715. fi
  10716. fi
  10717. fi
  10718. fi
  10719. CC=$ac_cv_prog_CC
  10720. if test -n "$CC"; then
  10721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10722. $as_echo "$CC" >&6; }
  10723. else
  10724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10725. $as_echo "no" >&6; }
  10726. fi
  10727. fi
  10728. if test -z "$CC"; then
  10729. if test -n "$ac_tool_prefix"; then
  10730. for ac_prog in cl.exe
  10731. do
  10732. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10733. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10735. $as_echo_n "checking for $ac_word... " >&6; }
  10736. if ${ac_cv_prog_CC+:} false; then :
  10737. $as_echo_n "(cached) " >&6
  10738. else
  10739. if test -n "$CC"; then
  10740. ac_cv_prog_CC="$CC" # Let the user override the test.
  10741. else
  10742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10743. for as_dir in $PATH
  10744. do
  10745. IFS=$as_save_IFS
  10746. test -z "$as_dir" && as_dir=.
  10747. for ac_exec_ext in '' $ac_executable_extensions; do
  10748. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10749. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10751. break 2
  10752. fi
  10753. done
  10754. done
  10755. IFS=$as_save_IFS
  10756. fi
  10757. fi
  10758. CC=$ac_cv_prog_CC
  10759. if test -n "$CC"; then
  10760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10761. $as_echo "$CC" >&6; }
  10762. else
  10763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10764. $as_echo "no" >&6; }
  10765. fi
  10766. test -n "$CC" && break
  10767. done
  10768. fi
  10769. if test -z "$CC"; then
  10770. ac_ct_CC=$CC
  10771. for ac_prog in cl.exe
  10772. do
  10773. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10774. set dummy $ac_prog; ac_word=$2
  10775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10776. $as_echo_n "checking for $ac_word... " >&6; }
  10777. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10778. $as_echo_n "(cached) " >&6
  10779. else
  10780. if test -n "$ac_ct_CC"; then
  10781. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10782. else
  10783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10784. for as_dir in $PATH
  10785. do
  10786. IFS=$as_save_IFS
  10787. test -z "$as_dir" && as_dir=.
  10788. for ac_exec_ext in '' $ac_executable_extensions; do
  10789. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10790. ac_cv_prog_ac_ct_CC="$ac_prog"
  10791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10792. break 2
  10793. fi
  10794. done
  10795. done
  10796. IFS=$as_save_IFS
  10797. fi
  10798. fi
  10799. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10800. if test -n "$ac_ct_CC"; then
  10801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10802. $as_echo "$ac_ct_CC" >&6; }
  10803. else
  10804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10805. $as_echo "no" >&6; }
  10806. fi
  10807. test -n "$ac_ct_CC" && break
  10808. done
  10809. if test "x$ac_ct_CC" = x; then
  10810. CC=""
  10811. else
  10812. case $cross_compiling:$ac_tool_warned in
  10813. yes:)
  10814. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10815. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10816. ac_tool_warned=yes ;;
  10817. esac
  10818. CC=$ac_ct_CC
  10819. fi
  10820. fi
  10821. fi
  10822. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10823. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10824. as_fn_error $? "no acceptable C compiler found in \$PATH
  10825. See \`config.log' for more details" "$LINENO" 5; }
  10826. # Provide some information about the compiler.
  10827. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10828. set X $ac_compile
  10829. ac_compiler=$2
  10830. for ac_option in --version -v -V -qversion; do
  10831. { { ac_try="$ac_compiler $ac_option >&5"
  10832. case "(($ac_try" in
  10833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10834. *) ac_try_echo=$ac_try;;
  10835. esac
  10836. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10837. $as_echo "$ac_try_echo"; } >&5
  10838. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10839. ac_status=$?
  10840. if test -s conftest.err; then
  10841. sed '10a\
  10842. ... rest of stderr output deleted ...
  10843. 10q' conftest.err >conftest.er1
  10844. cat conftest.er1 >&5
  10845. fi
  10846. rm -f conftest.er1 conftest.err
  10847. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10848. test $ac_status = 0; }
  10849. done
  10850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10851. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10852. if ${ac_cv_c_compiler_gnu+:} false; then :
  10853. $as_echo_n "(cached) " >&6
  10854. else
  10855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10856. /* end confdefs.h. */
  10857. int
  10858. main ()
  10859. {
  10860. #ifndef __GNUC__
  10861. choke me
  10862. #endif
  10863. ;
  10864. return 0;
  10865. }
  10866. _ACEOF
  10867. if ac_fn_c_try_compile "$LINENO"; then :
  10868. ac_compiler_gnu=yes
  10869. else
  10870. ac_compiler_gnu=no
  10871. fi
  10872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10873. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10874. fi
  10875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10876. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10877. if test $ac_compiler_gnu = yes; then
  10878. GCC=yes
  10879. else
  10880. GCC=
  10881. fi
  10882. ac_test_CFLAGS=${CFLAGS+set}
  10883. ac_save_CFLAGS=$CFLAGS
  10884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10885. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10886. if ${ac_cv_prog_cc_g+:} false; then :
  10887. $as_echo_n "(cached) " >&6
  10888. else
  10889. ac_save_c_werror_flag=$ac_c_werror_flag
  10890. ac_c_werror_flag=yes
  10891. ac_cv_prog_cc_g=no
  10892. CFLAGS="-g"
  10893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10894. /* end confdefs.h. */
  10895. int
  10896. main ()
  10897. {
  10898. ;
  10899. return 0;
  10900. }
  10901. _ACEOF
  10902. if ac_fn_c_try_compile "$LINENO"; then :
  10903. ac_cv_prog_cc_g=yes
  10904. else
  10905. CFLAGS=""
  10906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10907. /* end confdefs.h. */
  10908. int
  10909. main ()
  10910. {
  10911. ;
  10912. return 0;
  10913. }
  10914. _ACEOF
  10915. if ac_fn_c_try_compile "$LINENO"; then :
  10916. else
  10917. ac_c_werror_flag=$ac_save_c_werror_flag
  10918. CFLAGS="-g"
  10919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10920. /* end confdefs.h. */
  10921. int
  10922. main ()
  10923. {
  10924. ;
  10925. return 0;
  10926. }
  10927. _ACEOF
  10928. if ac_fn_c_try_compile "$LINENO"; then :
  10929. ac_cv_prog_cc_g=yes
  10930. fi
  10931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10932. fi
  10933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10934. fi
  10935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10936. ac_c_werror_flag=$ac_save_c_werror_flag
  10937. fi
  10938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10939. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10940. if test "$ac_test_CFLAGS" = set; then
  10941. CFLAGS=$ac_save_CFLAGS
  10942. elif test $ac_cv_prog_cc_g = yes; then
  10943. if test "$GCC" = yes; then
  10944. CFLAGS="-g -O2"
  10945. else
  10946. CFLAGS="-g"
  10947. fi
  10948. else
  10949. if test "$GCC" = yes; then
  10950. CFLAGS="-O2"
  10951. else
  10952. CFLAGS=
  10953. fi
  10954. fi
  10955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10956. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10957. if ${ac_cv_prog_cc_c89+:} false; then :
  10958. $as_echo_n "(cached) " >&6
  10959. else
  10960. ac_cv_prog_cc_c89=no
  10961. ac_save_CC=$CC
  10962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10963. /* end confdefs.h. */
  10964. #include <stdarg.h>
  10965. #include <stdio.h>
  10966. struct stat;
  10967. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10968. struct buf { int x; };
  10969. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10970. static char *e (p, i)
  10971. char **p;
  10972. int i;
  10973. {
  10974. return p[i];
  10975. }
  10976. static char *f (char * (*g) (char **, int), char **p, ...)
  10977. {
  10978. char *s;
  10979. va_list v;
  10980. va_start (v,p);
  10981. s = g (p, va_arg (v,int));
  10982. va_end (v);
  10983. return s;
  10984. }
  10985. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10986. function prototypes and stuff, but not '\xHH' hex character constants.
  10987. These don't provoke an error unfortunately, instead are silently treated
  10988. as 'x'. The following induces an error, until -std is added to get
  10989. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10990. array size at least. It's necessary to write '\x00'==0 to get something
  10991. that's true only with -std. */
  10992. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10993. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10994. inside strings and character constants. */
  10995. #define FOO(x) 'x'
  10996. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10997. int test (int i, double x);
  10998. struct s1 {int (*f) (int a);};
  10999. struct s2 {int (*f) (double a);};
  11000. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11001. int argc;
  11002. char **argv;
  11003. int
  11004. main ()
  11005. {
  11006. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11007. ;
  11008. return 0;
  11009. }
  11010. _ACEOF
  11011. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11012. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11013. do
  11014. CC="$ac_save_CC $ac_arg"
  11015. if ac_fn_c_try_compile "$LINENO"; then :
  11016. ac_cv_prog_cc_c89=$ac_arg
  11017. fi
  11018. rm -f core conftest.err conftest.$ac_objext
  11019. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11020. done
  11021. rm -f conftest.$ac_ext
  11022. CC=$ac_save_CC
  11023. fi
  11024. # AC_CACHE_VAL
  11025. case "x$ac_cv_prog_cc_c89" in
  11026. x)
  11027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11028. $as_echo "none needed" >&6; } ;;
  11029. xno)
  11030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11031. $as_echo "unsupported" >&6; } ;;
  11032. *)
  11033. CC="$CC $ac_cv_prog_cc_c89"
  11034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11035. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11036. esac
  11037. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11038. fi
  11039. ac_ext=c
  11040. ac_cpp='$CPP $CPPFLAGS'
  11041. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11042. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11043. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11044. ac_ext=cpp
  11045. ac_cpp='$CXXCPP $CPPFLAGS'
  11046. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11047. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11048. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11049. if test -z "$CXX"; then
  11050. if test -n "$CCC"; then
  11051. CXX=$CCC
  11052. else
  11053. if test -n "$ac_tool_prefix"; then
  11054. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11055. do
  11056. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11057. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11059. $as_echo_n "checking for $ac_word... " >&6; }
  11060. if ${ac_cv_prog_CXX+:} false; then :
  11061. $as_echo_n "(cached) " >&6
  11062. else
  11063. if test -n "$CXX"; then
  11064. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11065. else
  11066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11067. for as_dir in $PATH
  11068. do
  11069. IFS=$as_save_IFS
  11070. test -z "$as_dir" && as_dir=.
  11071. for ac_exec_ext in '' $ac_executable_extensions; do
  11072. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11073. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11074. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11075. break 2
  11076. fi
  11077. done
  11078. done
  11079. IFS=$as_save_IFS
  11080. fi
  11081. fi
  11082. CXX=$ac_cv_prog_CXX
  11083. if test -n "$CXX"; then
  11084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11085. $as_echo "$CXX" >&6; }
  11086. else
  11087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11088. $as_echo "no" >&6; }
  11089. fi
  11090. test -n "$CXX" && break
  11091. done
  11092. fi
  11093. if test -z "$CXX"; then
  11094. ac_ct_CXX=$CXX
  11095. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11096. do
  11097. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11098. set dummy $ac_prog; ac_word=$2
  11099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11100. $as_echo_n "checking for $ac_word... " >&6; }
  11101. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  11102. $as_echo_n "(cached) " >&6
  11103. else
  11104. if test -n "$ac_ct_CXX"; then
  11105. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11106. else
  11107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11108. for as_dir in $PATH
  11109. do
  11110. IFS=$as_save_IFS
  11111. test -z "$as_dir" && as_dir=.
  11112. for ac_exec_ext in '' $ac_executable_extensions; do
  11113. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11114. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11116. break 2
  11117. fi
  11118. done
  11119. done
  11120. IFS=$as_save_IFS
  11121. fi
  11122. fi
  11123. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11124. if test -n "$ac_ct_CXX"; then
  11125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11126. $as_echo "$ac_ct_CXX" >&6; }
  11127. else
  11128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11129. $as_echo "no" >&6; }
  11130. fi
  11131. test -n "$ac_ct_CXX" && break
  11132. done
  11133. if test "x$ac_ct_CXX" = x; then
  11134. CXX="g++"
  11135. else
  11136. case $cross_compiling:$ac_tool_warned in
  11137. yes:)
  11138. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11139. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11140. ac_tool_warned=yes ;;
  11141. esac
  11142. CXX=$ac_ct_CXX
  11143. fi
  11144. fi
  11145. fi
  11146. fi
  11147. # Provide some information about the compiler.
  11148. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11149. set X $ac_compile
  11150. ac_compiler=$2
  11151. for ac_option in --version -v -V -qversion; do
  11152. { { ac_try="$ac_compiler $ac_option >&5"
  11153. case "(($ac_try" in
  11154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11155. *) ac_try_echo=$ac_try;;
  11156. esac
  11157. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11158. $as_echo "$ac_try_echo"; } >&5
  11159. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11160. ac_status=$?
  11161. if test -s conftest.err; then
  11162. sed '10a\
  11163. ... rest of stderr output deleted ...
  11164. 10q' conftest.err >conftest.er1
  11165. cat conftest.er1 >&5
  11166. fi
  11167. rm -f conftest.er1 conftest.err
  11168. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11169. test $ac_status = 0; }
  11170. done
  11171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11172. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11173. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  11174. $as_echo_n "(cached) " >&6
  11175. else
  11176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11177. /* end confdefs.h. */
  11178. int
  11179. main ()
  11180. {
  11181. #ifndef __GNUC__
  11182. choke me
  11183. #endif
  11184. ;
  11185. return 0;
  11186. }
  11187. _ACEOF
  11188. if ac_fn_cxx_try_compile "$LINENO"; then :
  11189. ac_compiler_gnu=yes
  11190. else
  11191. ac_compiler_gnu=no
  11192. fi
  11193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11194. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11195. fi
  11196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11197. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11198. if test $ac_compiler_gnu = yes; then
  11199. GXX=yes
  11200. else
  11201. GXX=
  11202. fi
  11203. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11204. ac_save_CXXFLAGS=$CXXFLAGS
  11205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11206. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11207. if ${ac_cv_prog_cxx_g+:} false; then :
  11208. $as_echo_n "(cached) " >&6
  11209. else
  11210. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11211. ac_cxx_werror_flag=yes
  11212. ac_cv_prog_cxx_g=no
  11213. CXXFLAGS="-g"
  11214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11215. /* end confdefs.h. */
  11216. int
  11217. main ()
  11218. {
  11219. ;
  11220. return 0;
  11221. }
  11222. _ACEOF
  11223. if ac_fn_cxx_try_compile "$LINENO"; then :
  11224. ac_cv_prog_cxx_g=yes
  11225. else
  11226. CXXFLAGS=""
  11227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11228. /* end confdefs.h. */
  11229. int
  11230. main ()
  11231. {
  11232. ;
  11233. return 0;
  11234. }
  11235. _ACEOF
  11236. if ac_fn_cxx_try_compile "$LINENO"; then :
  11237. else
  11238. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11239. CXXFLAGS="-g"
  11240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11241. /* end confdefs.h. */
  11242. int
  11243. main ()
  11244. {
  11245. ;
  11246. return 0;
  11247. }
  11248. _ACEOF
  11249. if ac_fn_cxx_try_compile "$LINENO"; then :
  11250. ac_cv_prog_cxx_g=yes
  11251. fi
  11252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11253. fi
  11254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11255. fi
  11256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11257. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11258. fi
  11259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11260. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11261. if test "$ac_test_CXXFLAGS" = set; then
  11262. CXXFLAGS=$ac_save_CXXFLAGS
  11263. elif test $ac_cv_prog_cxx_g = yes; then
  11264. if test "$GXX" = yes; then
  11265. CXXFLAGS="-g -O2"
  11266. else
  11267. CXXFLAGS="-g"
  11268. fi
  11269. else
  11270. if test "$GXX" = yes; then
  11271. CXXFLAGS="-O2"
  11272. else
  11273. CXXFLAGS=
  11274. fi
  11275. fi
  11276. ac_ext=c
  11277. ac_cpp='$CPP $CPPFLAGS'
  11278. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11279. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11280. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11281. func_stripname_cnf ()
  11282. {
  11283. case $2 in
  11284. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  11285. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  11286. esac
  11287. } # func_stripname_cnf
  11288. if test -n "$CXX" && ( test no != "$CXX" &&
  11289. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11290. (test g++ != "$CXX"))); then
  11291. ac_ext=cpp
  11292. ac_cpp='$CXXCPP $CPPFLAGS'
  11293. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11294. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11295. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11297. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11298. if test -z "$CXXCPP"; then
  11299. if ${ac_cv_prog_CXXCPP+:} false; then :
  11300. $as_echo_n "(cached) " >&6
  11301. else
  11302. # Double quotes because CXXCPP needs to be expanded
  11303. for CXXCPP in "$CXX -E" "/lib/cpp"
  11304. do
  11305. ac_preproc_ok=false
  11306. for ac_cxx_preproc_warn_flag in '' yes
  11307. do
  11308. # Use a header file that comes with gcc, so configuring glibc
  11309. # with a fresh cross-compiler works.
  11310. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11311. # <limits.h> exists even on freestanding compilers.
  11312. # On the NeXT, cc -E runs the code through the compiler's parser,
  11313. # not just through cpp. "Syntax error" is here to catch this case.
  11314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11315. /* end confdefs.h. */
  11316. #ifdef __STDC__
  11317. # include <limits.h>
  11318. #else
  11319. # include <assert.h>
  11320. #endif
  11321. Syntax error
  11322. _ACEOF
  11323. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11324. else
  11325. # Broken: fails on valid input.
  11326. continue
  11327. fi
  11328. rm -f conftest.err conftest.i conftest.$ac_ext
  11329. # OK, works on sane cases. Now check whether nonexistent headers
  11330. # can be detected and how.
  11331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11332. /* end confdefs.h. */
  11333. #include <ac_nonexistent.h>
  11334. _ACEOF
  11335. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11336. # Broken: success on invalid input.
  11337. continue
  11338. else
  11339. # Passes both tests.
  11340. ac_preproc_ok=:
  11341. break
  11342. fi
  11343. rm -f conftest.err conftest.i conftest.$ac_ext
  11344. done
  11345. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11346. rm -f conftest.i conftest.err conftest.$ac_ext
  11347. if $ac_preproc_ok; then :
  11348. break
  11349. fi
  11350. done
  11351. ac_cv_prog_CXXCPP=$CXXCPP
  11352. fi
  11353. CXXCPP=$ac_cv_prog_CXXCPP
  11354. else
  11355. ac_cv_prog_CXXCPP=$CXXCPP
  11356. fi
  11357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11358. $as_echo "$CXXCPP" >&6; }
  11359. ac_preproc_ok=false
  11360. for ac_cxx_preproc_warn_flag in '' yes
  11361. do
  11362. # Use a header file that comes with gcc, so configuring glibc
  11363. # with a fresh cross-compiler works.
  11364. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11365. # <limits.h> exists even on freestanding compilers.
  11366. # On the NeXT, cc -E runs the code through the compiler's parser,
  11367. # not just through cpp. "Syntax error" is here to catch this case.
  11368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11369. /* end confdefs.h. */
  11370. #ifdef __STDC__
  11371. # include <limits.h>
  11372. #else
  11373. # include <assert.h>
  11374. #endif
  11375. Syntax error
  11376. _ACEOF
  11377. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11378. else
  11379. # Broken: fails on valid input.
  11380. continue
  11381. fi
  11382. rm -f conftest.err conftest.i conftest.$ac_ext
  11383. # OK, works on sane cases. Now check whether nonexistent headers
  11384. # can be detected and how.
  11385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11386. /* end confdefs.h. */
  11387. #include <ac_nonexistent.h>
  11388. _ACEOF
  11389. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11390. # Broken: success on invalid input.
  11391. continue
  11392. else
  11393. # Passes both tests.
  11394. ac_preproc_ok=:
  11395. break
  11396. fi
  11397. rm -f conftest.err conftest.i conftest.$ac_ext
  11398. done
  11399. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11400. rm -f conftest.i conftest.err conftest.$ac_ext
  11401. if $ac_preproc_ok; then :
  11402. else
  11403. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11404. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11405. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11406. See \`config.log' for more details" "$LINENO" 5; }
  11407. fi
  11408. ac_ext=c
  11409. ac_cpp='$CPP $CPPFLAGS'
  11410. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11411. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11412. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11413. else
  11414. _lt_caught_CXX_error=yes
  11415. fi
  11416. ac_ext=cpp
  11417. ac_cpp='$CXXCPP $CPPFLAGS'
  11418. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11419. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11420. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11421. archive_cmds_need_lc_CXX=no
  11422. allow_undefined_flag_CXX=
  11423. always_export_symbols_CXX=no
  11424. archive_expsym_cmds_CXX=
  11425. compiler_needs_object_CXX=no
  11426. export_dynamic_flag_spec_CXX=
  11427. hardcode_direct_CXX=no
  11428. hardcode_direct_absolute_CXX=no
  11429. hardcode_libdir_flag_spec_CXX=
  11430. hardcode_libdir_separator_CXX=
  11431. hardcode_minus_L_CXX=no
  11432. hardcode_shlibpath_var_CXX=unsupported
  11433. hardcode_automatic_CXX=no
  11434. inherit_rpath_CXX=no
  11435. module_cmds_CXX=
  11436. module_expsym_cmds_CXX=
  11437. link_all_deplibs_CXX=unknown
  11438. old_archive_cmds_CXX=$old_archive_cmds
  11439. reload_flag_CXX=$reload_flag
  11440. reload_cmds_CXX=$reload_cmds
  11441. no_undefined_flag_CXX=
  11442. whole_archive_flag_spec_CXX=
  11443. enable_shared_with_static_runtimes_CXX=no
  11444. # Source file extension for C++ test sources.
  11445. ac_ext=cpp
  11446. # Object file extension for compiled C++ test sources.
  11447. objext=o
  11448. objext_CXX=$objext
  11449. # No sense in running all these tests if we already determined that
  11450. # the CXX compiler isn't working. Some variables (like enable_shared)
  11451. # are currently assumed to apply to all compilers on this platform,
  11452. # and will be corrupted by setting them based on a non-working compiler.
  11453. if test yes != "$_lt_caught_CXX_error"; then
  11454. # Code to be used in simple compile tests
  11455. lt_simple_compile_test_code="int some_variable = 0;"
  11456. # Code to be used in simple link tests
  11457. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11458. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11459. # If no C compiler was specified, use CC.
  11460. LTCC=${LTCC-"$CC"}
  11461. # If no C compiler flags were specified, use CFLAGS.
  11462. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11463. # Allow CC to be a program name with arguments.
  11464. compiler=$CC
  11465. # save warnings/boilerplate of simple test code
  11466. ac_outfile=conftest.$ac_objext
  11467. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11468. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11469. _lt_compiler_boilerplate=`cat conftest.err`
  11470. $RM conftest*
  11471. ac_outfile=conftest.$ac_objext
  11472. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11473. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11474. _lt_linker_boilerplate=`cat conftest.err`
  11475. $RM -r conftest*
  11476. # Allow CC to be a program name with arguments.
  11477. lt_save_CC=$CC
  11478. lt_save_CFLAGS=$CFLAGS
  11479. lt_save_LD=$LD
  11480. lt_save_GCC=$GCC
  11481. GCC=$GXX
  11482. lt_save_with_gnu_ld=$with_gnu_ld
  11483. lt_save_path_LD=$lt_cv_path_LD
  11484. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11485. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11486. else
  11487. $as_unset lt_cv_prog_gnu_ld
  11488. fi
  11489. if test -n "${lt_cv_path_LDCXX+set}"; then
  11490. lt_cv_path_LD=$lt_cv_path_LDCXX
  11491. else
  11492. $as_unset lt_cv_path_LD
  11493. fi
  11494. test -z "${LDCXX+set}" || LD=$LDCXX
  11495. CC=${CXX-"c++"}
  11496. CFLAGS=$CXXFLAGS
  11497. compiler=$CC
  11498. compiler_CXX=$CC
  11499. func_cc_basename $compiler
  11500. cc_basename=$func_cc_basename_result
  11501. if test -n "$compiler"; then
  11502. # We don't want -fno-exception when compiling C++ code, so set the
  11503. # no_builtin_flag separately
  11504. if test yes = "$GXX"; then
  11505. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11506. else
  11507. lt_prog_compiler_no_builtin_flag_CXX=
  11508. fi
  11509. if test yes = "$GXX"; then
  11510. # Set up default GNU C++ configuration
  11511. # Check whether --with-gnu-ld was given.
  11512. if test "${with_gnu_ld+set}" = set; then :
  11513. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11514. else
  11515. with_gnu_ld=no
  11516. fi
  11517. ac_prog=ld
  11518. if test yes = "$GCC"; then
  11519. # Check if gcc -print-prog-name=ld gives a path.
  11520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11521. $as_echo_n "checking for ld used by $CC... " >&6; }
  11522. case $host in
  11523. *-*-mingw*)
  11524. # gcc leaves a trailing carriage return, which upsets mingw
  11525. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11526. *)
  11527. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11528. esac
  11529. case $ac_prog in
  11530. # Accept absolute paths.
  11531. [\\/]* | ?:[\\/]*)
  11532. re_direlt='/[^/][^/]*/\.\./'
  11533. # Canonicalize the pathname of ld
  11534. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11535. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11536. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11537. done
  11538. test -z "$LD" && LD=$ac_prog
  11539. ;;
  11540. "")
  11541. # If it fails, then pretend we aren't using GCC.
  11542. ac_prog=ld
  11543. ;;
  11544. *)
  11545. # If it is relative, then search for the first ld in PATH.
  11546. with_gnu_ld=unknown
  11547. ;;
  11548. esac
  11549. elif test yes = "$with_gnu_ld"; then
  11550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11551. $as_echo_n "checking for GNU ld... " >&6; }
  11552. else
  11553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11554. $as_echo_n "checking for non-GNU ld... " >&6; }
  11555. fi
  11556. if ${lt_cv_path_LD+:} false; then :
  11557. $as_echo_n "(cached) " >&6
  11558. else
  11559. if test -z "$LD"; then
  11560. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11561. for ac_dir in $PATH; do
  11562. IFS=$lt_save_ifs
  11563. test -z "$ac_dir" && ac_dir=.
  11564. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11565. lt_cv_path_LD=$ac_dir/$ac_prog
  11566. # Check to see if the program is GNU ld. I'd rather use --version,
  11567. # but apparently some variants of GNU ld only accept -v.
  11568. # Break only if it was the GNU/non-GNU ld that we prefer.
  11569. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11570. *GNU* | *'with BFD'*)
  11571. test no != "$with_gnu_ld" && break
  11572. ;;
  11573. *)
  11574. test yes != "$with_gnu_ld" && break
  11575. ;;
  11576. esac
  11577. fi
  11578. done
  11579. IFS=$lt_save_ifs
  11580. else
  11581. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11582. fi
  11583. fi
  11584. LD=$lt_cv_path_LD
  11585. if test -n "$LD"; then
  11586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11587. $as_echo "$LD" >&6; }
  11588. else
  11589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11590. $as_echo "no" >&6; }
  11591. fi
  11592. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11594. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11595. if ${lt_cv_prog_gnu_ld+:} false; then :
  11596. $as_echo_n "(cached) " >&6
  11597. else
  11598. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11599. case `$LD -v 2>&1 </dev/null` in
  11600. *GNU* | *'with BFD'*)
  11601. lt_cv_prog_gnu_ld=yes
  11602. ;;
  11603. *)
  11604. lt_cv_prog_gnu_ld=no
  11605. ;;
  11606. esac
  11607. fi
  11608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11609. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11610. with_gnu_ld=$lt_cv_prog_gnu_ld
  11611. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11612. # archiving commands below assume that GNU ld is being used.
  11613. if test yes = "$with_gnu_ld"; then
  11614. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11615. 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'
  11616. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11617. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11618. # If archive_cmds runs LD, not CC, wlarc should be empty
  11619. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11620. # investigate it a little bit more. (MM)
  11621. wlarc='$wl'
  11622. # ancient GNU ld didn't support --whole-archive et. al.
  11623. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11624. $GREP 'no-whole-archive' > /dev/null; then
  11625. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11626. else
  11627. whole_archive_flag_spec_CXX=
  11628. fi
  11629. else
  11630. with_gnu_ld=no
  11631. wlarc=
  11632. # A generic and very simple default shared library creation
  11633. # command for GNU C++ for the case where it uses the native
  11634. # linker, instead of GNU ld. If possible, this setting should
  11635. # overridden to take advantage of the native linker features on
  11636. # the platform it is being used on.
  11637. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11638. fi
  11639. # Commands to make compiler produce verbose output that lists
  11640. # what "hidden" libraries, object files and flags are used when
  11641. # linking a shared library.
  11642. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11643. else
  11644. GXX=no
  11645. with_gnu_ld=no
  11646. wlarc=
  11647. fi
  11648. # PORTME: fill in a description of your system's C++ link characteristics
  11649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11650. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11651. ld_shlibs_CXX=yes
  11652. case $host_os in
  11653. aix3*)
  11654. # FIXME: insert proper C++ library support
  11655. ld_shlibs_CXX=no
  11656. ;;
  11657. aix[4-9]*)
  11658. if test ia64 = "$host_cpu"; then
  11659. # On IA64, the linker does run time linking by default, so we don't
  11660. # have to do anything special.
  11661. aix_use_runtimelinking=no
  11662. exp_sym_flag='-Bexport'
  11663. no_entry_flag=
  11664. else
  11665. aix_use_runtimelinking=no
  11666. # Test if we are trying to use run time linking or normal
  11667. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11668. # have runtime linking enabled, and use it for executables.
  11669. # For shared libraries, we enable/disable runtime linking
  11670. # depending on the kind of the shared library created -
  11671. # when "with_aix_soname,aix_use_runtimelinking" is:
  11672. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11673. # "aix,yes" lib.so shared, rtl:yes, for executables
  11674. # lib.a static archive
  11675. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11676. # lib.a(lib.so.V) shared, rtl:no, for executables
  11677. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11678. # lib.a(lib.so.V) shared, rtl:no
  11679. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11680. # lib.a static archive
  11681. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11682. for ld_flag in $LDFLAGS; do
  11683. case $ld_flag in
  11684. *-brtl*)
  11685. aix_use_runtimelinking=yes
  11686. break
  11687. ;;
  11688. esac
  11689. done
  11690. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11691. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11692. # so we don't have lib.a shared libs to link our executables.
  11693. # We have to force runtime linking in this case.
  11694. aix_use_runtimelinking=yes
  11695. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11696. fi
  11697. ;;
  11698. esac
  11699. exp_sym_flag='-bexport'
  11700. no_entry_flag='-bnoentry'
  11701. fi
  11702. # When large executables or shared objects are built, AIX ld can
  11703. # have problems creating the table of contents. If linking a library
  11704. # or program results in "error TOC overflow" add -mminimal-toc to
  11705. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11706. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11707. archive_cmds_CXX=''
  11708. hardcode_direct_CXX=yes
  11709. hardcode_direct_absolute_CXX=yes
  11710. hardcode_libdir_separator_CXX=':'
  11711. link_all_deplibs_CXX=yes
  11712. file_list_spec_CXX='$wl-f,'
  11713. case $with_aix_soname,$aix_use_runtimelinking in
  11714. aix,*) ;; # no import file
  11715. svr4,* | *,yes) # use import file
  11716. # The Import File defines what to hardcode.
  11717. hardcode_direct_CXX=no
  11718. hardcode_direct_absolute_CXX=no
  11719. ;;
  11720. esac
  11721. if test yes = "$GXX"; then
  11722. case $host_os in aix4.[012]|aix4.[012].*)
  11723. # We only want to do this on AIX 4.2 and lower, the check
  11724. # below for broken collect2 doesn't work under 4.3+
  11725. collect2name=`$CC -print-prog-name=collect2`
  11726. if test -f "$collect2name" &&
  11727. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11728. then
  11729. # We have reworked collect2
  11730. :
  11731. else
  11732. # We have old collect2
  11733. hardcode_direct_CXX=unsupported
  11734. # It fails to find uninstalled libraries when the uninstalled
  11735. # path is not listed in the libpath. Setting hardcode_minus_L
  11736. # to unsupported forces relinking
  11737. hardcode_minus_L_CXX=yes
  11738. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11739. hardcode_libdir_separator_CXX=
  11740. fi
  11741. esac
  11742. shared_flag='-shared'
  11743. if test yes = "$aix_use_runtimelinking"; then
  11744. shared_flag=$shared_flag' $wl-G'
  11745. fi
  11746. # Need to ensure runtime linking is disabled for the traditional
  11747. # shared library, or the linker may eventually find shared libraries
  11748. # /with/ Import File - we do not want to mix them.
  11749. shared_flag_aix='-shared'
  11750. shared_flag_svr4='-shared $wl-G'
  11751. else
  11752. # not using gcc
  11753. if test ia64 = "$host_cpu"; then
  11754. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11755. # chokes on -Wl,-G. The following line is correct:
  11756. shared_flag='-G'
  11757. else
  11758. if test yes = "$aix_use_runtimelinking"; then
  11759. shared_flag='$wl-G'
  11760. else
  11761. shared_flag='$wl-bM:SRE'
  11762. fi
  11763. shared_flag_aix='$wl-bM:SRE'
  11764. shared_flag_svr4='$wl-G'
  11765. fi
  11766. fi
  11767. export_dynamic_flag_spec_CXX='$wl-bexpall'
  11768. # It seems that -bexpall does not export symbols beginning with
  11769. # underscore (_), so it is better to generate a list of symbols to
  11770. # export.
  11771. always_export_symbols_CXX=yes
  11772. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11773. # Warning - without using the other runtime loading flags (-brtl),
  11774. # -berok will link without error, but may produce a broken library.
  11775. # The "-G" linker flag allows undefined symbols.
  11776. no_undefined_flag_CXX='-bernotok'
  11777. # Determine the default libpath from the value encoded in an empty
  11778. # executable.
  11779. if test set = "${lt_cv_aix_libpath+set}"; then
  11780. aix_libpath=$lt_cv_aix_libpath
  11781. else
  11782. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11783. $as_echo_n "(cached) " >&6
  11784. else
  11785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11786. /* end confdefs.h. */
  11787. int
  11788. main ()
  11789. {
  11790. ;
  11791. return 0;
  11792. }
  11793. _ACEOF
  11794. if ac_fn_cxx_try_link "$LINENO"; then :
  11795. lt_aix_libpath_sed='
  11796. /Import File Strings/,/^$/ {
  11797. /^0/ {
  11798. s/^0 *\([^ ]*\) *$/\1/
  11799. p
  11800. }
  11801. }'
  11802. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11803. # Check for a 64-bit object if we didn't find anything.
  11804. if test -z "$lt_cv_aix_libpath__CXX"; then
  11805. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11806. fi
  11807. fi
  11808. rm -f core conftest.err conftest.$ac_objext \
  11809. conftest$ac_exeext conftest.$ac_ext
  11810. if test -z "$lt_cv_aix_libpath__CXX"; then
  11811. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11812. fi
  11813. fi
  11814. aix_libpath=$lt_cv_aix_libpath__CXX
  11815. fi
  11816. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11817. 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
  11818. else
  11819. if test ia64 = "$host_cpu"; then
  11820. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  11821. allow_undefined_flag_CXX="-z nodefs"
  11822. 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"
  11823. else
  11824. # Determine the default libpath from the value encoded in an
  11825. # empty executable.
  11826. if test set = "${lt_cv_aix_libpath+set}"; then
  11827. aix_libpath=$lt_cv_aix_libpath
  11828. else
  11829. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11830. $as_echo_n "(cached) " >&6
  11831. else
  11832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11833. /* end confdefs.h. */
  11834. int
  11835. main ()
  11836. {
  11837. ;
  11838. return 0;
  11839. }
  11840. _ACEOF
  11841. if ac_fn_cxx_try_link "$LINENO"; then :
  11842. lt_aix_libpath_sed='
  11843. /Import File Strings/,/^$/ {
  11844. /^0/ {
  11845. s/^0 *\([^ ]*\) *$/\1/
  11846. p
  11847. }
  11848. }'
  11849. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11850. # Check for a 64-bit object if we didn't find anything.
  11851. if test -z "$lt_cv_aix_libpath__CXX"; then
  11852. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11853. fi
  11854. fi
  11855. rm -f core conftest.err conftest.$ac_objext \
  11856. conftest$ac_exeext conftest.$ac_ext
  11857. if test -z "$lt_cv_aix_libpath__CXX"; then
  11858. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11859. fi
  11860. fi
  11861. aix_libpath=$lt_cv_aix_libpath__CXX
  11862. fi
  11863. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11864. # Warning - without using the other run time loading flags,
  11865. # -berok will link without error, but may produce a broken library.
  11866. no_undefined_flag_CXX=' $wl-bernotok'
  11867. allow_undefined_flag_CXX=' $wl-berok'
  11868. if test yes = "$with_gnu_ld"; then
  11869. # We only use this code for GNU lds that support --whole-archive.
  11870. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11871. else
  11872. # Exported symbols can be pulled into shared objects from archives
  11873. whole_archive_flag_spec_CXX='$convenience'
  11874. fi
  11875. archive_cmds_need_lc_CXX=yes
  11876. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11877. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11878. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11879. if test svr4 != "$with_aix_soname"; then
  11880. # This is similar to how AIX traditionally builds its shared
  11881. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  11882. 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'
  11883. fi
  11884. if test aix != "$with_aix_soname"; then
  11885. 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'
  11886. else
  11887. # used by -dlpreopen to get the symbols
  11888. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11889. fi
  11890. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  11891. fi
  11892. fi
  11893. ;;
  11894. beos*)
  11895. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11896. allow_undefined_flag_CXX=unsupported
  11897. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11898. # support --undefined. This deserves some investigation. FIXME
  11899. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11900. else
  11901. ld_shlibs_CXX=no
  11902. fi
  11903. ;;
  11904. chorus*)
  11905. case $cc_basename in
  11906. *)
  11907. # FIXME: insert proper C++ library support
  11908. ld_shlibs_CXX=no
  11909. ;;
  11910. esac
  11911. ;;
  11912. cygwin* | mingw* | pw32* | cegcc*)
  11913. case $GXX,$cc_basename in
  11914. ,cl* | no,cl*)
  11915. # Native MSVC
  11916. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11917. # no search path for DLLs.
  11918. hardcode_libdir_flag_spec_CXX=' '
  11919. allow_undefined_flag_CXX=unsupported
  11920. always_export_symbols_CXX=yes
  11921. file_list_spec_CXX='@'
  11922. # Tell ltmain to make .lib files, not .a files.
  11923. libext=lib
  11924. # Tell ltmain to make .dll files, not .so files.
  11925. shrext_cmds=.dll
  11926. # FIXME: Setting linknames here is a bad hack.
  11927. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11928. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11929. cp "$export_symbols" "$output_objdir/$soname.def";
  11930. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11931. else
  11932. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11933. fi~
  11934. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11935. linknames='
  11936. # The linker will not automatically build a static lib if we build a DLL.
  11937. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11938. enable_shared_with_static_runtimes_CXX=yes
  11939. # Don't use ranlib
  11940. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11941. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11942. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11943. case $lt_outputfile in
  11944. *.exe|*.EXE) ;;
  11945. *)
  11946. lt_outputfile=$lt_outputfile.exe
  11947. lt_tool_outputfile=$lt_tool_outputfile.exe
  11948. ;;
  11949. esac~
  11950. func_to_tool_file "$lt_outputfile"~
  11951. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11952. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11953. $RM "$lt_outputfile.manifest";
  11954. fi'
  11955. ;;
  11956. *)
  11957. # g++
  11958. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11959. # as there is no search path for DLLs.
  11960. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11961. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  11962. allow_undefined_flag_CXX=unsupported
  11963. always_export_symbols_CXX=no
  11964. enable_shared_with_static_runtimes_CXX=yes
  11965. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11966. 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'
  11967. # If the export-symbols file already is a .def file, use it as
  11968. # is; otherwise, prepend EXPORTS...
  11969. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11970. cp $export_symbols $output_objdir/$soname.def;
  11971. else
  11972. echo EXPORTS > $output_objdir/$soname.def;
  11973. cat $export_symbols >> $output_objdir/$soname.def;
  11974. fi~
  11975. $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'
  11976. else
  11977. ld_shlibs_CXX=no
  11978. fi
  11979. ;;
  11980. esac
  11981. ;;
  11982. darwin* | rhapsody*)
  11983. archive_cmds_need_lc_CXX=no
  11984. hardcode_direct_CXX=no
  11985. hardcode_automatic_CXX=yes
  11986. hardcode_shlibpath_var_CXX=unsupported
  11987. if test yes = "$lt_cv_ld_force_load"; then
  11988. 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\"`'
  11989. else
  11990. whole_archive_flag_spec_CXX=''
  11991. fi
  11992. link_all_deplibs_CXX=yes
  11993. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  11994. case $cc_basename in
  11995. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11996. *) _lt_dar_can_shared=$GCC ;;
  11997. esac
  11998. if test yes = "$_lt_dar_can_shared"; then
  11999. output_verbose_link_cmd=func_echo_all
  12000. 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"
  12001. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12002. 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"
  12003. 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"
  12004. if test yes != "$lt_cv_apple_cc_single_mod"; then
  12005. 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"
  12006. 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"
  12007. fi
  12008. else
  12009. ld_shlibs_CXX=no
  12010. fi
  12011. ;;
  12012. os2*)
  12013. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12014. hardcode_minus_L_CXX=yes
  12015. allow_undefined_flag_CXX=unsupported
  12016. shrext_cmds=.dll
  12017. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12018. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12019. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12020. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12021. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12022. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12023. emximp -o $lib $output_objdir/$libname.def'
  12024. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12025. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12026. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12027. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12028. prefix_cmds="$SED"~
  12029. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12030. prefix_cmds="$prefix_cmds -e 1d";
  12031. fi~
  12032. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12033. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12034. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12035. emximp -o $lib $output_objdir/$libname.def'
  12036. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12037. enable_shared_with_static_runtimes_CXX=yes
  12038. file_list_spec_CXX='@'
  12039. ;;
  12040. dgux*)
  12041. case $cc_basename in
  12042. ec++*)
  12043. # FIXME: insert proper C++ library support
  12044. ld_shlibs_CXX=no
  12045. ;;
  12046. ghcx*)
  12047. # Green Hills C++ Compiler
  12048. # FIXME: insert proper C++ library support
  12049. ld_shlibs_CXX=no
  12050. ;;
  12051. *)
  12052. # FIXME: insert proper C++ library support
  12053. ld_shlibs_CXX=no
  12054. ;;
  12055. esac
  12056. ;;
  12057. freebsd2.*)
  12058. # C++ shared libraries reported to be fairly broken before
  12059. # switch to ELF
  12060. ld_shlibs_CXX=no
  12061. ;;
  12062. freebsd-elf*)
  12063. archive_cmds_need_lc_CXX=no
  12064. ;;
  12065. freebsd* | dragonfly* | midnightbsd*)
  12066. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12067. # conventions
  12068. ld_shlibs_CXX=yes
  12069. ;;
  12070. haiku*)
  12071. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12072. link_all_deplibs_CXX=yes
  12073. ;;
  12074. hpux9*)
  12075. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12076. hardcode_libdir_separator_CXX=:
  12077. export_dynamic_flag_spec_CXX='$wl-E'
  12078. hardcode_direct_CXX=yes
  12079. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12080. # but as the default
  12081. # location of the library.
  12082. case $cc_basename in
  12083. CC*)
  12084. # FIXME: insert proper C++ library support
  12085. ld_shlibs_CXX=no
  12086. ;;
  12087. aCC*)
  12088. 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'
  12089. # Commands to make compiler produce verbose output that lists
  12090. # what "hidden" libraries, object files and flags are used when
  12091. # linking a shared library.
  12092. #
  12093. # There doesn't appear to be a way to prevent this compiler from
  12094. # explicitly linking system object files so we need to strip them
  12095. # from the output so that they don't get included in the library
  12096. # dependencies.
  12097. 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"'
  12098. ;;
  12099. *)
  12100. if test yes = "$GXX"; then
  12101. 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'
  12102. else
  12103. # FIXME: insert proper C++ library support
  12104. ld_shlibs_CXX=no
  12105. fi
  12106. ;;
  12107. esac
  12108. ;;
  12109. hpux10*|hpux11*)
  12110. if test no = "$with_gnu_ld"; then
  12111. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12112. hardcode_libdir_separator_CXX=:
  12113. case $host_cpu in
  12114. hppa*64*|ia64*)
  12115. ;;
  12116. *)
  12117. export_dynamic_flag_spec_CXX='$wl-E'
  12118. ;;
  12119. esac
  12120. fi
  12121. case $host_cpu in
  12122. hppa*64*|ia64*)
  12123. hardcode_direct_CXX=no
  12124. hardcode_shlibpath_var_CXX=no
  12125. ;;
  12126. *)
  12127. hardcode_direct_CXX=yes
  12128. hardcode_direct_absolute_CXX=yes
  12129. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12130. # but as the default
  12131. # location of the library.
  12132. ;;
  12133. esac
  12134. case $cc_basename in
  12135. CC*)
  12136. # FIXME: insert proper C++ library support
  12137. ld_shlibs_CXX=no
  12138. ;;
  12139. aCC*)
  12140. case $host_cpu in
  12141. hppa*64*)
  12142. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12143. ;;
  12144. ia64*)
  12145. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12146. ;;
  12147. *)
  12148. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12149. ;;
  12150. esac
  12151. # Commands to make compiler produce verbose output that lists
  12152. # what "hidden" libraries, object files and flags are used when
  12153. # linking a shared library.
  12154. #
  12155. # There doesn't appear to be a way to prevent this compiler from
  12156. # explicitly linking system object files so we need to strip them
  12157. # from the output so that they don't get included in the library
  12158. # dependencies.
  12159. 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"'
  12160. ;;
  12161. *)
  12162. if test yes = "$GXX"; then
  12163. if test no = "$with_gnu_ld"; then
  12164. case $host_cpu in
  12165. hppa*64*)
  12166. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12167. ;;
  12168. ia64*)
  12169. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12170. ;;
  12171. *)
  12172. 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'
  12173. ;;
  12174. esac
  12175. fi
  12176. else
  12177. # FIXME: insert proper C++ library support
  12178. ld_shlibs_CXX=no
  12179. fi
  12180. ;;
  12181. esac
  12182. ;;
  12183. interix[3-9]*)
  12184. hardcode_direct_CXX=no
  12185. hardcode_shlibpath_var_CXX=no
  12186. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12187. export_dynamic_flag_spec_CXX='$wl-E'
  12188. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12189. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12190. # default) and relocated if they conflict, which is a slow very memory
  12191. # consuming and fragmenting process. To avoid this, we pick a random,
  12192. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12193. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12194. 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'
  12195. 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'
  12196. ;;
  12197. irix5* | irix6*)
  12198. case $cc_basename in
  12199. CC*)
  12200. # SGI C++
  12201. 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'
  12202. # Archives containing C++ object files must be created using
  12203. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12204. # necessary to make sure instantiated templates are included
  12205. # in the archive.
  12206. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12207. ;;
  12208. *)
  12209. if test yes = "$GXX"; then
  12210. if test no = "$with_gnu_ld"; then
  12211. 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'
  12212. else
  12213. 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'
  12214. fi
  12215. fi
  12216. link_all_deplibs_CXX=yes
  12217. ;;
  12218. esac
  12219. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12220. hardcode_libdir_separator_CXX=:
  12221. inherit_rpath_CXX=yes
  12222. ;;
  12223. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12224. case $cc_basename in
  12225. KCC*)
  12226. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12227. # KCC will only create a shared library if the output file
  12228. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12229. # to its proper name (with version) after linking.
  12230. 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'
  12231. 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'
  12232. # Commands to make compiler produce verbose output that lists
  12233. # what "hidden" libraries, object files and flags are used when
  12234. # linking a shared library.
  12235. #
  12236. # There doesn't appear to be a way to prevent this compiler from
  12237. # explicitly linking system object files so we need to strip them
  12238. # from the output so that they don't get included in the library
  12239. # dependencies.
  12240. 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"'
  12241. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12242. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12243. # Archives containing C++ object files must be created using
  12244. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12245. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12246. ;;
  12247. icpc* | ecpc* )
  12248. # Intel C++
  12249. with_gnu_ld=yes
  12250. # version 8.0 and above of icpc choke on multiply defined symbols
  12251. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12252. # earlier do not add the objects themselves.
  12253. case `$CC -V 2>&1` in
  12254. *"Version 7."*)
  12255. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12256. 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'
  12257. ;;
  12258. *) # Version 8.0 or newer
  12259. tmp_idyn=
  12260. case $host_cpu in
  12261. ia64*) tmp_idyn=' -i_dynamic';;
  12262. esac
  12263. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12264. 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'
  12265. ;;
  12266. esac
  12267. archive_cmds_need_lc_CXX=no
  12268. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12269. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12270. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12271. ;;
  12272. pgCC* | pgcpp*)
  12273. # Portland Group C++ compiler
  12274. case `$CC -V` in
  12275. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12276. prelink_cmds_CXX='tpldir=Template.dir~
  12277. rm -rf $tpldir~
  12278. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12279. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12280. old_archive_cmds_CXX='tpldir=Template.dir~
  12281. rm -rf $tpldir~
  12282. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12283. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12284. $RANLIB $oldlib'
  12285. archive_cmds_CXX='tpldir=Template.dir~
  12286. rm -rf $tpldir~
  12287. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12288. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12289. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12290. rm -rf $tpldir~
  12291. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12292. $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'
  12293. ;;
  12294. *) # Version 6 and above use weak symbols
  12295. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12296. 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'
  12297. ;;
  12298. esac
  12299. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12300. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12301. 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'
  12302. ;;
  12303. cxx*)
  12304. # Compaq C++
  12305. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12306. 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'
  12307. runpath_var=LD_RUN_PATH
  12308. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12309. hardcode_libdir_separator_CXX=:
  12310. # Commands to make compiler produce verbose output that lists
  12311. # what "hidden" libraries, object files and flags are used when
  12312. # linking a shared library.
  12313. #
  12314. # There doesn't appear to be a way to prevent this compiler from
  12315. # explicitly linking system object files so we need to strip them
  12316. # from the output so that they don't get included in the library
  12317. # dependencies.
  12318. 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'
  12319. ;;
  12320. xl* | mpixl* | bgxl*)
  12321. # IBM XL 8.0 on PPC, with GNU ld
  12322. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12323. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12324. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12325. if test yes = "$supports_anon_versioning"; then
  12326. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12327. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12328. echo "local: *; };" >> $output_objdir/$libname.ver~
  12329. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12330. fi
  12331. ;;
  12332. *)
  12333. case `$CC -V 2>&1 | sed 5q` in
  12334. *Sun\ C*)
  12335. # Sun C++ 5.9
  12336. no_undefined_flag_CXX=' -zdefs'
  12337. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12338. 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'
  12339. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12340. 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'
  12341. compiler_needs_object_CXX=yes
  12342. # Not sure whether something based on
  12343. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12344. # would be better.
  12345. output_verbose_link_cmd='func_echo_all'
  12346. # Archives containing C++ object files must be created using
  12347. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12348. # necessary to make sure instantiated templates are included
  12349. # in the archive.
  12350. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12351. ;;
  12352. esac
  12353. ;;
  12354. esac
  12355. ;;
  12356. lynxos*)
  12357. # FIXME: insert proper C++ library support
  12358. ld_shlibs_CXX=no
  12359. ;;
  12360. m88k*)
  12361. # FIXME: insert proper C++ library support
  12362. ld_shlibs_CXX=no
  12363. ;;
  12364. mvs*)
  12365. case $cc_basename in
  12366. cxx*)
  12367. # FIXME: insert proper C++ library support
  12368. ld_shlibs_CXX=no
  12369. ;;
  12370. *)
  12371. # FIXME: insert proper C++ library support
  12372. ld_shlibs_CXX=no
  12373. ;;
  12374. esac
  12375. ;;
  12376. netbsd*)
  12377. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12378. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12379. wlarc=
  12380. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12381. hardcode_direct_CXX=yes
  12382. hardcode_shlibpath_var_CXX=no
  12383. fi
  12384. # Workaround some broken pre-1.5 toolchains
  12385. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12386. ;;
  12387. *nto* | *qnx*)
  12388. ld_shlibs_CXX=yes
  12389. ;;
  12390. openbsd* | bitrig*)
  12391. if test -f /usr/libexec/ld.so; then
  12392. hardcode_direct_CXX=yes
  12393. hardcode_shlibpath_var_CXX=no
  12394. hardcode_direct_absolute_CXX=yes
  12395. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12396. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12397. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12398. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12399. export_dynamic_flag_spec_CXX='$wl-E'
  12400. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12401. fi
  12402. output_verbose_link_cmd=func_echo_all
  12403. else
  12404. ld_shlibs_CXX=no
  12405. fi
  12406. ;;
  12407. osf3* | osf4* | osf5*)
  12408. case $cc_basename in
  12409. KCC*)
  12410. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12411. # KCC will only create a shared library if the output file
  12412. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12413. # to its proper name (with version) after linking.
  12414. 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'
  12415. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12416. hardcode_libdir_separator_CXX=:
  12417. # Archives containing C++ object files must be created using
  12418. # the KAI C++ compiler.
  12419. case $host in
  12420. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12421. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12422. esac
  12423. ;;
  12424. RCC*)
  12425. # Rational C++ 2.4.1
  12426. # FIXME: insert proper C++ library support
  12427. ld_shlibs_CXX=no
  12428. ;;
  12429. cxx*)
  12430. case $host in
  12431. osf3*)
  12432. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12433. 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'
  12434. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12435. ;;
  12436. *)
  12437. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12438. 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'
  12439. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12440. echo "-hidden">> $lib.exp~
  12441. $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~
  12442. $RM $lib.exp'
  12443. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12444. ;;
  12445. esac
  12446. hardcode_libdir_separator_CXX=:
  12447. # Commands to make compiler produce verbose output that lists
  12448. # what "hidden" libraries, object files and flags are used when
  12449. # linking a shared library.
  12450. #
  12451. # There doesn't appear to be a way to prevent this compiler from
  12452. # explicitly linking system object files so we need to strip them
  12453. # from the output so that they don't get included in the library
  12454. # dependencies.
  12455. 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"'
  12456. ;;
  12457. *)
  12458. if test yes,no = "$GXX,$with_gnu_ld"; then
  12459. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12460. case $host in
  12461. osf3*)
  12462. 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'
  12463. ;;
  12464. *)
  12465. 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'
  12466. ;;
  12467. esac
  12468. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12469. hardcode_libdir_separator_CXX=:
  12470. # Commands to make compiler produce verbose output that lists
  12471. # what "hidden" libraries, object files and flags are used when
  12472. # linking a shared library.
  12473. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12474. else
  12475. # FIXME: insert proper C++ library support
  12476. ld_shlibs_CXX=no
  12477. fi
  12478. ;;
  12479. esac
  12480. ;;
  12481. psos*)
  12482. # FIXME: insert proper C++ library support
  12483. ld_shlibs_CXX=no
  12484. ;;
  12485. sunos4*)
  12486. case $cc_basename in
  12487. CC*)
  12488. # Sun C++ 4.x
  12489. # FIXME: insert proper C++ library support
  12490. ld_shlibs_CXX=no
  12491. ;;
  12492. lcc*)
  12493. # Lucid
  12494. # FIXME: insert proper C++ library support
  12495. ld_shlibs_CXX=no
  12496. ;;
  12497. *)
  12498. # FIXME: insert proper C++ library support
  12499. ld_shlibs_CXX=no
  12500. ;;
  12501. esac
  12502. ;;
  12503. solaris*)
  12504. case $cc_basename in
  12505. CC* | sunCC*)
  12506. # Sun C++ 4.2, 5.x and Centerline C++
  12507. archive_cmds_need_lc_CXX=yes
  12508. no_undefined_flag_CXX=' -zdefs'
  12509. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12510. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12511. $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'
  12512. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12513. hardcode_shlibpath_var_CXX=no
  12514. case $host_os in
  12515. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12516. *)
  12517. # The compiler driver will combine and reorder linker options,
  12518. # but understands '-z linker_flag'.
  12519. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12520. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12521. ;;
  12522. esac
  12523. link_all_deplibs_CXX=yes
  12524. output_verbose_link_cmd='func_echo_all'
  12525. # Archives containing C++ object files must be created using
  12526. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12527. # necessary to make sure instantiated templates are included
  12528. # in the archive.
  12529. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12530. ;;
  12531. gcx*)
  12532. # Green Hills C++ Compiler
  12533. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12534. # The C++ compiler must be used to create the archive.
  12535. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12536. ;;
  12537. *)
  12538. # GNU C++ compiler with Solaris linker
  12539. if test yes,no = "$GXX,$with_gnu_ld"; then
  12540. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12541. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12542. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12543. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12544. $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'
  12545. # Commands to make compiler produce verbose output that lists
  12546. # what "hidden" libraries, object files and flags are used when
  12547. # linking a shared library.
  12548. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12549. else
  12550. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12551. # platform.
  12552. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12553. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12554. $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'
  12555. # Commands to make compiler produce verbose output that lists
  12556. # what "hidden" libraries, object files and flags are used when
  12557. # linking a shared library.
  12558. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12559. fi
  12560. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12561. case $host_os in
  12562. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12563. *)
  12564. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12565. ;;
  12566. esac
  12567. fi
  12568. ;;
  12569. esac
  12570. ;;
  12571. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12572. no_undefined_flag_CXX='$wl-z,text'
  12573. archive_cmds_need_lc_CXX=no
  12574. hardcode_shlibpath_var_CXX=no
  12575. runpath_var='LD_RUN_PATH'
  12576. case $cc_basename in
  12577. CC*)
  12578. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12579. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12580. ;;
  12581. *)
  12582. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12583. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12584. ;;
  12585. esac
  12586. ;;
  12587. sysv5* | sco3.2v5* | sco5v6*)
  12588. # Note: We CANNOT use -z defs as we might desire, because we do not
  12589. # link with -lc, and that would cause any symbols used from libc to
  12590. # always be unresolved, which means just about no library would
  12591. # ever link correctly. If we're not using GNU ld we use -z text
  12592. # though, which does catch some bad symbols but isn't as heavy-handed
  12593. # as -z defs.
  12594. no_undefined_flag_CXX='$wl-z,text'
  12595. allow_undefined_flag_CXX='$wl-z,nodefs'
  12596. archive_cmds_need_lc_CXX=no
  12597. hardcode_shlibpath_var_CXX=no
  12598. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  12599. hardcode_libdir_separator_CXX=':'
  12600. link_all_deplibs_CXX=yes
  12601. export_dynamic_flag_spec_CXX='$wl-Bexport'
  12602. runpath_var='LD_RUN_PATH'
  12603. case $cc_basename in
  12604. CC*)
  12605. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12606. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12607. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12608. '"$old_archive_cmds_CXX"
  12609. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12610. '"$reload_cmds_CXX"
  12611. ;;
  12612. *)
  12613. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12614. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12615. ;;
  12616. esac
  12617. ;;
  12618. tandem*)
  12619. case $cc_basename in
  12620. NCC*)
  12621. # NonStop-UX NCC 3.20
  12622. # FIXME: insert proper C++ library support
  12623. ld_shlibs_CXX=no
  12624. ;;
  12625. *)
  12626. # FIXME: insert proper C++ library support
  12627. ld_shlibs_CXX=no
  12628. ;;
  12629. esac
  12630. ;;
  12631. vxworks*)
  12632. # FIXME: insert proper C++ library support
  12633. ld_shlibs_CXX=no
  12634. ;;
  12635. *)
  12636. # FIXME: insert proper C++ library support
  12637. ld_shlibs_CXX=no
  12638. ;;
  12639. esac
  12640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12641. $as_echo "$ld_shlibs_CXX" >&6; }
  12642. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12643. GCC_CXX=$GXX
  12644. LD_CXX=$LD
  12645. ## CAVEAT EMPTOR:
  12646. ## There is no encapsulation within the following macros, do not change
  12647. ## the running order or otherwise move them around unless you know exactly
  12648. ## what you are doing...
  12649. # Dependencies to place before and after the object being linked:
  12650. predep_objects_CXX=
  12651. postdep_objects_CXX=
  12652. predeps_CXX=
  12653. postdeps_CXX=
  12654. compiler_lib_search_path_CXX=
  12655. cat > conftest.$ac_ext <<_LT_EOF
  12656. class Foo
  12657. {
  12658. public:
  12659. Foo (void) { a = 0; }
  12660. private:
  12661. int a;
  12662. };
  12663. _LT_EOF
  12664. _lt_libdeps_save_CFLAGS=$CFLAGS
  12665. case "$CC $CFLAGS " in #(
  12666. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12667. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12668. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12669. esac
  12670. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12671. (eval $ac_compile) 2>&5
  12672. ac_status=$?
  12673. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12674. test $ac_status = 0; }; then
  12675. # Parse the compiler output and extract the necessary
  12676. # objects, libraries and library flags.
  12677. # Sentinel used to keep track of whether or not we are before
  12678. # the conftest object file.
  12679. pre_test_object_deps_done=no
  12680. for p in `eval "$output_verbose_link_cmd"`; do
  12681. case $prev$p in
  12682. -L* | -R* | -l*)
  12683. # Some compilers place space between "-{L,R}" and the path.
  12684. # Remove the space.
  12685. if test x-L = "x$p" ||
  12686. test x-R = "x$p" ||
  12687. test x-l = "x$p"; then
  12688. prev=$p
  12689. continue
  12690. fi
  12691. # Expand the sysroot to ease extracting the directories later.
  12692. if test -z "$prev"; then
  12693. case $p in
  12694. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12695. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12696. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12697. esac
  12698. fi
  12699. case $p in
  12700. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12701. esac
  12702. if test no = "$pre_test_object_deps_done"; then
  12703. case $prev in
  12704. -L | -R)
  12705. # Internal compiler library paths should come after those
  12706. # provided the user. The postdeps already come after the
  12707. # user supplied libs so there is no need to process them.
  12708. if test -z "$compiler_lib_search_path_CXX"; then
  12709. compiler_lib_search_path_CXX=$prev$p
  12710. else
  12711. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  12712. fi
  12713. ;;
  12714. # The "-l" case would never come before the object being
  12715. # linked, so don't bother handling this case.
  12716. esac
  12717. else
  12718. if test -z "$postdeps_CXX"; then
  12719. postdeps_CXX=$prev$p
  12720. else
  12721. postdeps_CXX="${postdeps_CXX} $prev$p"
  12722. fi
  12723. fi
  12724. prev=
  12725. ;;
  12726. *.lto.$objext) ;; # Ignore GCC LTO objects
  12727. *.$objext)
  12728. # This assumes that the test object file only shows up
  12729. # once in the compiler output.
  12730. if test "$p" = "conftest.$objext"; then
  12731. pre_test_object_deps_done=yes
  12732. continue
  12733. fi
  12734. if test no = "$pre_test_object_deps_done"; then
  12735. if test -z "$predep_objects_CXX"; then
  12736. predep_objects_CXX=$p
  12737. else
  12738. predep_objects_CXX="$predep_objects_CXX $p"
  12739. fi
  12740. else
  12741. if test -z "$postdep_objects_CXX"; then
  12742. postdep_objects_CXX=$p
  12743. else
  12744. postdep_objects_CXX="$postdep_objects_CXX $p"
  12745. fi
  12746. fi
  12747. ;;
  12748. *) ;; # Ignore the rest.
  12749. esac
  12750. done
  12751. # Clean up.
  12752. rm -f a.out a.exe
  12753. else
  12754. echo "libtool.m4: error: problem compiling CXX test program"
  12755. fi
  12756. $RM -f confest.$objext
  12757. CFLAGS=$_lt_libdeps_save_CFLAGS
  12758. # PORTME: override above test on systems where it is broken
  12759. case $host_os in
  12760. interix[3-9]*)
  12761. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12762. # hack all around it, let's just trust "g++" to DTRT.
  12763. predep_objects_CXX=
  12764. postdep_objects_CXX=
  12765. postdeps_CXX=
  12766. ;;
  12767. esac
  12768. case " $postdeps_CXX " in
  12769. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12770. esac
  12771. compiler_lib_search_dirs_CXX=
  12772. if test -n "${compiler_lib_search_path_CXX}"; then
  12773. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  12774. fi
  12775. lt_prog_compiler_wl_CXX=
  12776. lt_prog_compiler_pic_CXX=
  12777. lt_prog_compiler_static_CXX=
  12778. # C++ specific cases for pic, static, wl, etc.
  12779. if test yes = "$GXX"; then
  12780. lt_prog_compiler_wl_CXX='-Wl,'
  12781. lt_prog_compiler_static_CXX='-static'
  12782. case $host_os in
  12783. aix*)
  12784. # All AIX code is PIC.
  12785. if test ia64 = "$host_cpu"; then
  12786. # AIX 5 now supports IA64 processor
  12787. lt_prog_compiler_static_CXX='-Bstatic'
  12788. fi
  12789. lt_prog_compiler_pic_CXX='-fPIC'
  12790. ;;
  12791. amigaos*)
  12792. case $host_cpu in
  12793. powerpc)
  12794. # see comment about AmigaOS4 .so support
  12795. lt_prog_compiler_pic_CXX='-fPIC'
  12796. ;;
  12797. m68k)
  12798. # FIXME: we need at least 68020 code to build shared libraries, but
  12799. # adding the '-m68020' flag to GCC prevents building anything better,
  12800. # like '-m68040'.
  12801. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12802. ;;
  12803. esac
  12804. ;;
  12805. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12806. # PIC is the default for these OSes.
  12807. ;;
  12808. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12809. # This hack is so that the source file can tell whether it is being
  12810. # built for inclusion in a dll (and should export symbols for example).
  12811. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12812. # (--disable-auto-import) libraries
  12813. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12814. case $host_os in
  12815. os2*)
  12816. lt_prog_compiler_static_CXX='$wl-static'
  12817. ;;
  12818. esac
  12819. ;;
  12820. darwin* | rhapsody*)
  12821. # PIC is the default on this platform
  12822. # Common symbols not allowed in MH_DYLIB files
  12823. lt_prog_compiler_pic_CXX='-fno-common'
  12824. ;;
  12825. *djgpp*)
  12826. # DJGPP does not support shared libraries at all
  12827. lt_prog_compiler_pic_CXX=
  12828. ;;
  12829. haiku*)
  12830. # PIC is the default for Haiku.
  12831. # The "-static" flag exists, but is broken.
  12832. lt_prog_compiler_static_CXX=
  12833. ;;
  12834. interix[3-9]*)
  12835. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12836. # Instead, we relocate shared libraries at runtime.
  12837. ;;
  12838. sysv4*MP*)
  12839. if test -d /usr/nec; then
  12840. lt_prog_compiler_pic_CXX=-Kconform_pic
  12841. fi
  12842. ;;
  12843. hpux*)
  12844. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12845. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12846. # sets the default TLS model and affects inlining.
  12847. case $host_cpu in
  12848. hppa*64*)
  12849. ;;
  12850. *)
  12851. lt_prog_compiler_pic_CXX='-fPIC'
  12852. ;;
  12853. esac
  12854. ;;
  12855. *qnx* | *nto*)
  12856. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12857. # it will coredump.
  12858. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12859. ;;
  12860. *)
  12861. lt_prog_compiler_pic_CXX='-fPIC'
  12862. ;;
  12863. esac
  12864. else
  12865. case $host_os in
  12866. aix[4-9]*)
  12867. # All AIX code is PIC.
  12868. if test ia64 = "$host_cpu"; then
  12869. # AIX 5 now supports IA64 processor
  12870. lt_prog_compiler_static_CXX='-Bstatic'
  12871. else
  12872. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12873. fi
  12874. ;;
  12875. chorus*)
  12876. case $cc_basename in
  12877. cxch68*)
  12878. # Green Hills C++ Compiler
  12879. # _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"
  12880. ;;
  12881. esac
  12882. ;;
  12883. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12884. # This hack is so that the source file can tell whether it is being
  12885. # built for inclusion in a dll (and should export symbols for example).
  12886. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12887. ;;
  12888. dgux*)
  12889. case $cc_basename in
  12890. ec++*)
  12891. lt_prog_compiler_pic_CXX='-KPIC'
  12892. ;;
  12893. ghcx*)
  12894. # Green Hills C++ Compiler
  12895. lt_prog_compiler_pic_CXX='-pic'
  12896. ;;
  12897. *)
  12898. ;;
  12899. esac
  12900. ;;
  12901. freebsd* | dragonfly* | midnightbsd*)
  12902. # FreeBSD uses GNU C++
  12903. ;;
  12904. hpux9* | hpux10* | hpux11*)
  12905. case $cc_basename in
  12906. CC*)
  12907. lt_prog_compiler_wl_CXX='-Wl,'
  12908. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12909. if test ia64 != "$host_cpu"; then
  12910. lt_prog_compiler_pic_CXX='+Z'
  12911. fi
  12912. ;;
  12913. aCC*)
  12914. lt_prog_compiler_wl_CXX='-Wl,'
  12915. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12916. case $host_cpu in
  12917. hppa*64*|ia64*)
  12918. # +Z the default
  12919. ;;
  12920. *)
  12921. lt_prog_compiler_pic_CXX='+Z'
  12922. ;;
  12923. esac
  12924. ;;
  12925. *)
  12926. ;;
  12927. esac
  12928. ;;
  12929. interix*)
  12930. # This is c89, which is MS Visual C++ (no shared libs)
  12931. # Anyone wants to do a port?
  12932. ;;
  12933. irix5* | irix6* | nonstopux*)
  12934. case $cc_basename in
  12935. CC*)
  12936. lt_prog_compiler_wl_CXX='-Wl,'
  12937. lt_prog_compiler_static_CXX='-non_shared'
  12938. # CC pic flag -KPIC is the default.
  12939. ;;
  12940. *)
  12941. ;;
  12942. esac
  12943. ;;
  12944. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12945. case $cc_basename in
  12946. KCC*)
  12947. # KAI C++ Compiler
  12948. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12949. lt_prog_compiler_pic_CXX='-fPIC'
  12950. ;;
  12951. ecpc* )
  12952. # old Intel C++ for x86_64, which still supported -KPIC.
  12953. lt_prog_compiler_wl_CXX='-Wl,'
  12954. lt_prog_compiler_pic_CXX='-KPIC'
  12955. lt_prog_compiler_static_CXX='-static'
  12956. ;;
  12957. icpc* )
  12958. # Intel C++, used to be incompatible with GCC.
  12959. # ICC 10 doesn't accept -KPIC any more.
  12960. lt_prog_compiler_wl_CXX='-Wl,'
  12961. lt_prog_compiler_pic_CXX='-fPIC'
  12962. lt_prog_compiler_static_CXX='-static'
  12963. ;;
  12964. pgCC* | pgcpp*)
  12965. # Portland Group C++ compiler
  12966. lt_prog_compiler_wl_CXX='-Wl,'
  12967. lt_prog_compiler_pic_CXX='-fpic'
  12968. lt_prog_compiler_static_CXX='-Bstatic'
  12969. ;;
  12970. cxx*)
  12971. # Compaq C++
  12972. # Make sure the PIC flag is empty. It appears that all Alpha
  12973. # Linux and Compaq Tru64 Unix objects are PIC.
  12974. lt_prog_compiler_pic_CXX=
  12975. lt_prog_compiler_static_CXX='-non_shared'
  12976. ;;
  12977. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12978. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12979. lt_prog_compiler_wl_CXX='-Wl,'
  12980. lt_prog_compiler_pic_CXX='-qpic'
  12981. lt_prog_compiler_static_CXX='-qstaticlink'
  12982. ;;
  12983. *)
  12984. case `$CC -V 2>&1 | sed 5q` in
  12985. *Sun\ C*)
  12986. # Sun C++ 5.9
  12987. lt_prog_compiler_pic_CXX='-KPIC'
  12988. lt_prog_compiler_static_CXX='-Bstatic'
  12989. lt_prog_compiler_wl_CXX='-Qoption ld '
  12990. ;;
  12991. esac
  12992. ;;
  12993. esac
  12994. ;;
  12995. lynxos*)
  12996. ;;
  12997. m88k*)
  12998. ;;
  12999. mvs*)
  13000. case $cc_basename in
  13001. cxx*)
  13002. lt_prog_compiler_pic_CXX='-W c,exportall'
  13003. ;;
  13004. *)
  13005. ;;
  13006. esac
  13007. ;;
  13008. netbsd*)
  13009. ;;
  13010. *qnx* | *nto*)
  13011. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13012. # it will coredump.
  13013. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13014. ;;
  13015. osf3* | osf4* | osf5*)
  13016. case $cc_basename in
  13017. KCC*)
  13018. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13019. ;;
  13020. RCC*)
  13021. # Rational C++ 2.4.1
  13022. lt_prog_compiler_pic_CXX='-pic'
  13023. ;;
  13024. cxx*)
  13025. # Digital/Compaq C++
  13026. lt_prog_compiler_wl_CXX='-Wl,'
  13027. # Make sure the PIC flag is empty. It appears that all Alpha
  13028. # Linux and Compaq Tru64 Unix objects are PIC.
  13029. lt_prog_compiler_pic_CXX=
  13030. lt_prog_compiler_static_CXX='-non_shared'
  13031. ;;
  13032. *)
  13033. ;;
  13034. esac
  13035. ;;
  13036. psos*)
  13037. ;;
  13038. solaris*)
  13039. case $cc_basename in
  13040. CC* | sunCC*)
  13041. # Sun C++ 4.2, 5.x and Centerline C++
  13042. lt_prog_compiler_pic_CXX='-KPIC'
  13043. lt_prog_compiler_static_CXX='-Bstatic'
  13044. lt_prog_compiler_wl_CXX='-Qoption ld '
  13045. ;;
  13046. gcx*)
  13047. # Green Hills C++ Compiler
  13048. lt_prog_compiler_pic_CXX='-PIC'
  13049. ;;
  13050. *)
  13051. ;;
  13052. esac
  13053. ;;
  13054. sunos4*)
  13055. case $cc_basename in
  13056. CC*)
  13057. # Sun C++ 4.x
  13058. lt_prog_compiler_pic_CXX='-pic'
  13059. lt_prog_compiler_static_CXX='-Bstatic'
  13060. ;;
  13061. lcc*)
  13062. # Lucid
  13063. lt_prog_compiler_pic_CXX='-pic'
  13064. ;;
  13065. *)
  13066. ;;
  13067. esac
  13068. ;;
  13069. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13070. case $cc_basename in
  13071. CC*)
  13072. lt_prog_compiler_wl_CXX='-Wl,'
  13073. lt_prog_compiler_pic_CXX='-KPIC'
  13074. lt_prog_compiler_static_CXX='-Bstatic'
  13075. ;;
  13076. esac
  13077. ;;
  13078. tandem*)
  13079. case $cc_basename in
  13080. NCC*)
  13081. # NonStop-UX NCC 3.20
  13082. lt_prog_compiler_pic_CXX='-KPIC'
  13083. ;;
  13084. *)
  13085. ;;
  13086. esac
  13087. ;;
  13088. vxworks*)
  13089. ;;
  13090. *)
  13091. lt_prog_compiler_can_build_shared_CXX=no
  13092. ;;
  13093. esac
  13094. fi
  13095. case $host_os in
  13096. # For platforms that do not support PIC, -DPIC is meaningless:
  13097. *djgpp*)
  13098. lt_prog_compiler_pic_CXX=
  13099. ;;
  13100. *)
  13101. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13102. ;;
  13103. esac
  13104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13105. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13106. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13107. $as_echo_n "(cached) " >&6
  13108. else
  13109. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13110. fi
  13111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13112. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13113. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13114. #
  13115. # Check to make sure the PIC flag actually works.
  13116. #
  13117. if test -n "$lt_prog_compiler_pic_CXX"; then
  13118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13119. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13120. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13121. $as_echo_n "(cached) " >&6
  13122. else
  13123. lt_cv_prog_compiler_pic_works_CXX=no
  13124. ac_outfile=conftest.$ac_objext
  13125. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13126. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13127. # Insert the option either (1) after the last *FLAGS variable, or
  13128. # (2) before a word containing "conftest.", or (3) at the end.
  13129. # Note that $ac_compile itself does not contain backslashes and begins
  13130. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13131. # The option is referenced via a variable to avoid confusing sed.
  13132. lt_compile=`echo "$ac_compile" | $SED \
  13133. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13134. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13135. -e 's:$: $lt_compiler_flag:'`
  13136. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13137. (eval "$lt_compile" 2>conftest.err)
  13138. ac_status=$?
  13139. cat conftest.err >&5
  13140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13141. if (exit $ac_status) && test -s "$ac_outfile"; then
  13142. # The compiler can only warn and ignore the option if not recognized
  13143. # So say no if there are warnings other than the usual output.
  13144. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13145. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13146. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13147. lt_cv_prog_compiler_pic_works_CXX=yes
  13148. fi
  13149. fi
  13150. $RM conftest*
  13151. fi
  13152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13153. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13154. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13155. case $lt_prog_compiler_pic_CXX in
  13156. "" | " "*) ;;
  13157. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13158. esac
  13159. else
  13160. lt_prog_compiler_pic_CXX=
  13161. lt_prog_compiler_can_build_shared_CXX=no
  13162. fi
  13163. fi
  13164. #
  13165. # Check to make sure the static flag actually works.
  13166. #
  13167. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13169. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13170. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13171. $as_echo_n "(cached) " >&6
  13172. else
  13173. lt_cv_prog_compiler_static_works_CXX=no
  13174. save_LDFLAGS=$LDFLAGS
  13175. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13176. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13177. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13178. # The linker can only warn and ignore the option if not recognized
  13179. # So say no if there are warnings
  13180. if test -s conftest.err; then
  13181. # Append any errors to the config.log.
  13182. cat conftest.err 1>&5
  13183. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13184. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13185. if diff conftest.exp conftest.er2 >/dev/null; then
  13186. lt_cv_prog_compiler_static_works_CXX=yes
  13187. fi
  13188. else
  13189. lt_cv_prog_compiler_static_works_CXX=yes
  13190. fi
  13191. fi
  13192. $RM -r conftest*
  13193. LDFLAGS=$save_LDFLAGS
  13194. fi
  13195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13196. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13197. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13198. :
  13199. else
  13200. lt_prog_compiler_static_CXX=
  13201. fi
  13202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13203. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13204. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13205. $as_echo_n "(cached) " >&6
  13206. else
  13207. lt_cv_prog_compiler_c_o_CXX=no
  13208. $RM -r conftest 2>/dev/null
  13209. mkdir conftest
  13210. cd conftest
  13211. mkdir out
  13212. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13213. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13214. # Insert the option either (1) after the last *FLAGS variable, or
  13215. # (2) before a word containing "conftest.", or (3) at the end.
  13216. # Note that $ac_compile itself does not contain backslashes and begins
  13217. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13218. lt_compile=`echo "$ac_compile" | $SED \
  13219. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13220. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13221. -e 's:$: $lt_compiler_flag:'`
  13222. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13223. (eval "$lt_compile" 2>out/conftest.err)
  13224. ac_status=$?
  13225. cat out/conftest.err >&5
  13226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13227. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13228. then
  13229. # The compiler can only warn and ignore the option if not recognized
  13230. # So say no if there are warnings
  13231. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13232. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13233. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13234. lt_cv_prog_compiler_c_o_CXX=yes
  13235. fi
  13236. fi
  13237. chmod u+w . 2>&5
  13238. $RM conftest*
  13239. # SGI C++ compiler will create directory out/ii_files/ for
  13240. # template instantiation
  13241. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13242. $RM out/* && rmdir out
  13243. cd ..
  13244. $RM -r conftest
  13245. $RM conftest*
  13246. fi
  13247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13248. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13250. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13251. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13252. $as_echo_n "(cached) " >&6
  13253. else
  13254. lt_cv_prog_compiler_c_o_CXX=no
  13255. $RM -r conftest 2>/dev/null
  13256. mkdir conftest
  13257. cd conftest
  13258. mkdir out
  13259. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13260. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13261. # Insert the option either (1) after the last *FLAGS variable, or
  13262. # (2) before a word containing "conftest.", or (3) at the end.
  13263. # Note that $ac_compile itself does not contain backslashes and begins
  13264. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13265. lt_compile=`echo "$ac_compile" | $SED \
  13266. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13267. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13268. -e 's:$: $lt_compiler_flag:'`
  13269. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13270. (eval "$lt_compile" 2>out/conftest.err)
  13271. ac_status=$?
  13272. cat out/conftest.err >&5
  13273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13274. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13275. then
  13276. # The compiler can only warn and ignore the option if not recognized
  13277. # So say no if there are warnings
  13278. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13279. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13280. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13281. lt_cv_prog_compiler_c_o_CXX=yes
  13282. fi
  13283. fi
  13284. chmod u+w . 2>&5
  13285. $RM conftest*
  13286. # SGI C++ compiler will create directory out/ii_files/ for
  13287. # template instantiation
  13288. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13289. $RM out/* && rmdir out
  13290. cd ..
  13291. $RM -r conftest
  13292. $RM conftest*
  13293. fi
  13294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13295. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13296. hard_links=nottested
  13297. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13298. # do not overwrite the value of need_locks provided by the user
  13299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13300. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13301. hard_links=yes
  13302. $RM conftest*
  13303. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13304. touch conftest.a
  13305. ln conftest.a conftest.b 2>&5 || hard_links=no
  13306. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13308. $as_echo "$hard_links" >&6; }
  13309. if test no = "$hard_links"; then
  13310. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13311. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13312. need_locks=warn
  13313. fi
  13314. else
  13315. need_locks=no
  13316. fi
  13317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13318. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13319. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13320. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13321. case $host_os in
  13322. aix[4-9]*)
  13323. # If we're using GNU nm, then we don't want the "-C" option.
  13324. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13325. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13326. # weak defined symbols like other global defined symbols, whereas
  13327. # GNU nm marks them as "W".
  13328. # While the 'weak' keyword is ignored in the Export File, we need
  13329. # it in the Import File for the 'aix-soname' feature, so we have
  13330. # to replace the "-B" option with "-P" for AIX nm.
  13331. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13332. 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'
  13333. else
  13334. 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'
  13335. fi
  13336. ;;
  13337. pw32*)
  13338. export_symbols_cmds_CXX=$ltdll_cmds
  13339. ;;
  13340. cygwin* | mingw* | cegcc*)
  13341. case $cc_basename in
  13342. cl*)
  13343. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13344. ;;
  13345. *)
  13346. 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'
  13347. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13348. ;;
  13349. esac
  13350. ;;
  13351. *)
  13352. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13353. ;;
  13354. esac
  13355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13356. $as_echo "$ld_shlibs_CXX" >&6; }
  13357. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13358. with_gnu_ld_CXX=$with_gnu_ld
  13359. #
  13360. # Do we need to explicitly link libc?
  13361. #
  13362. case "x$archive_cmds_need_lc_CXX" in
  13363. x|xyes)
  13364. # Assume -lc should be added
  13365. archive_cmds_need_lc_CXX=yes
  13366. if test yes,yes = "$GCC,$enable_shared"; then
  13367. case $archive_cmds_CXX in
  13368. *'~'*)
  13369. # FIXME: we may have to deal with multi-command sequences.
  13370. ;;
  13371. '$CC '*)
  13372. # Test whether the compiler implicitly links with -lc since on some
  13373. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13374. # to ld, don't add -lc before -lgcc.
  13375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13376. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13377. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13378. $as_echo_n "(cached) " >&6
  13379. else
  13380. $RM conftest*
  13381. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13382. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13383. (eval $ac_compile) 2>&5
  13384. ac_status=$?
  13385. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13386. test $ac_status = 0; } 2>conftest.err; then
  13387. soname=conftest
  13388. lib=conftest
  13389. libobjs=conftest.$ac_objext
  13390. deplibs=
  13391. wl=$lt_prog_compiler_wl_CXX
  13392. pic_flag=$lt_prog_compiler_pic_CXX
  13393. compiler_flags=-v
  13394. linker_flags=-v
  13395. verstring=
  13396. output_objdir=.
  13397. libname=conftest
  13398. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13399. allow_undefined_flag_CXX=
  13400. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13401. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13402. ac_status=$?
  13403. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13404. test $ac_status = 0; }
  13405. then
  13406. lt_cv_archive_cmds_need_lc_CXX=no
  13407. else
  13408. lt_cv_archive_cmds_need_lc_CXX=yes
  13409. fi
  13410. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13411. else
  13412. cat conftest.err 1>&5
  13413. fi
  13414. $RM conftest*
  13415. fi
  13416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13417. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13418. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13419. ;;
  13420. esac
  13421. fi
  13422. ;;
  13423. esac
  13424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13425. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13426. library_names_spec=
  13427. libname_spec='lib$name'
  13428. soname_spec=
  13429. shrext_cmds=.so
  13430. postinstall_cmds=
  13431. postuninstall_cmds=
  13432. finish_cmds=
  13433. finish_eval=
  13434. shlibpath_var=
  13435. shlibpath_overrides_runpath=unknown
  13436. version_type=none
  13437. dynamic_linker="$host_os ld.so"
  13438. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13439. need_lib_prefix=unknown
  13440. hardcode_into_libs=no
  13441. # when you set need_version to no, make sure it does not cause -set_version
  13442. # flags to be left without arguments
  13443. need_version=unknown
  13444. case $host_os in
  13445. aix3*)
  13446. version_type=linux # correct to gnu/linux during the next big refactor
  13447. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13448. shlibpath_var=LIBPATH
  13449. # AIX 3 has no versioning support, so we append a major version to the name.
  13450. soname_spec='$libname$release$shared_ext$major'
  13451. ;;
  13452. aix[4-9]*)
  13453. version_type=linux # correct to gnu/linux during the next big refactor
  13454. need_lib_prefix=no
  13455. need_version=no
  13456. hardcode_into_libs=yes
  13457. if test ia64 = "$host_cpu"; then
  13458. # AIX 5 supports IA64
  13459. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13460. shlibpath_var=LD_LIBRARY_PATH
  13461. else
  13462. # With GCC up to 2.95.x, collect2 would create an import file
  13463. # for dependence libraries. The import file would start with
  13464. # the line '#! .'. This would cause the generated library to
  13465. # depend on '.', always an invalid library. This was fixed in
  13466. # development snapshots of GCC prior to 3.0.
  13467. case $host_os in
  13468. aix4 | aix4.[01] | aix4.[01].*)
  13469. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13470. echo ' yes '
  13471. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13472. :
  13473. else
  13474. can_build_shared=no
  13475. fi
  13476. ;;
  13477. esac
  13478. # Using Import Files as archive members, it is possible to support
  13479. # filename-based versioning of shared library archives on AIX. While
  13480. # this would work for both with and without runtime linking, it will
  13481. # prevent static linking of such archives. So we do filename-based
  13482. # shared library versioning with .so extension only, which is used
  13483. # when both runtime linking and shared linking is enabled.
  13484. # Unfortunately, runtime linking may impact performance, so we do
  13485. # not want this to be the default eventually. Also, we use the
  13486. # versioned .so libs for executables only if there is the -brtl
  13487. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13488. # To allow for filename-based versioning support, we need to create
  13489. # libNAME.so.V as an archive file, containing:
  13490. # *) an Import File, referring to the versioned filename of the
  13491. # archive as well as the shared archive member, telling the
  13492. # bitwidth (32 or 64) of that shared object, and providing the
  13493. # list of exported symbols of that shared object, eventually
  13494. # decorated with the 'weak' keyword
  13495. # *) the shared object with the F_LOADONLY flag set, to really avoid
  13496. # it being seen by the linker.
  13497. # At run time we better use the real file rather than another symlink,
  13498. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13499. case $with_aix_soname,$aix_use_runtimelinking in
  13500. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13501. # soname into executable. Probably we can add versioning support to
  13502. # collect2, so additional links can be useful in future.
  13503. aix,yes) # traditional libtool
  13504. dynamic_linker='AIX unversionable lib.so'
  13505. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13506. # instead of lib<name>.a to let people know that these are not
  13507. # typical AIX shared libraries.
  13508. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13509. ;;
  13510. aix,no) # traditional AIX only
  13511. dynamic_linker='AIX lib.a(lib.so.V)'
  13512. # We preserve .a as extension for shared libraries through AIX4.2
  13513. # and later when we are not doing run time linking.
  13514. library_names_spec='$libname$release.a $libname.a'
  13515. soname_spec='$libname$release$shared_ext$major'
  13516. ;;
  13517. svr4,*) # full svr4 only
  13518. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13519. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13520. # We do not specify a path in Import Files, so LIBPATH fires.
  13521. shlibpath_overrides_runpath=yes
  13522. ;;
  13523. *,yes) # both, prefer svr4
  13524. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13525. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13526. # unpreferred sharedlib libNAME.a needs extra handling
  13527. 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"'
  13528. 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"'
  13529. # We do not specify a path in Import Files, so LIBPATH fires.
  13530. shlibpath_overrides_runpath=yes
  13531. ;;
  13532. *,no) # both, prefer aix
  13533. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13534. library_names_spec='$libname$release.a $libname.a'
  13535. soname_spec='$libname$release$shared_ext$major'
  13536. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13537. 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)'
  13538. 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"'
  13539. ;;
  13540. esac
  13541. shlibpath_var=LIBPATH
  13542. fi
  13543. ;;
  13544. amigaos*)
  13545. case $host_cpu in
  13546. powerpc)
  13547. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13548. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13549. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13550. ;;
  13551. m68k)
  13552. library_names_spec='$libname.ixlibrary $libname.a'
  13553. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13554. 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'
  13555. ;;
  13556. esac
  13557. ;;
  13558. beos*)
  13559. library_names_spec='$libname$shared_ext'
  13560. dynamic_linker="$host_os ld.so"
  13561. shlibpath_var=LIBRARY_PATH
  13562. ;;
  13563. bsdi[45]*)
  13564. version_type=linux # correct to gnu/linux during the next big refactor
  13565. need_version=no
  13566. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13567. soname_spec='$libname$release$shared_ext$major'
  13568. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13569. shlibpath_var=LD_LIBRARY_PATH
  13570. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13571. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13572. # the default ld.so.conf also contains /usr/contrib/lib and
  13573. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13574. # libtool to hard-code these into programs
  13575. ;;
  13576. cygwin* | mingw* | pw32* | cegcc*)
  13577. version_type=windows
  13578. shrext_cmds=.dll
  13579. need_version=no
  13580. need_lib_prefix=no
  13581. case $GCC,$cc_basename in
  13582. yes,*)
  13583. # gcc
  13584. library_names_spec='$libname.dll.a'
  13585. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13586. postinstall_cmds='base_file=`basename \$file`~
  13587. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13588. dldir=$destdir/`dirname \$dlpath`~
  13589. test -d \$dldir || mkdir -p \$dldir~
  13590. $install_prog $dir/$dlname \$dldir/$dlname~
  13591. chmod a+x \$dldir/$dlname~
  13592. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13593. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13594. fi'
  13595. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13596. dlpath=$dir/\$dldll~
  13597. $RM \$dlpath'
  13598. shlibpath_overrides_runpath=yes
  13599. case $host_os in
  13600. cygwin*)
  13601. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13602. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13603. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  13604. ;;
  13605. mingw* | cegcc*)
  13606. # MinGW DLLs use traditional 'lib' prefix
  13607. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13608. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  13609. ;;
  13610. pw32*)
  13611. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13612. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13613. ;;
  13614. esac
  13615. dynamic_linker='Win32 ld.exe'
  13616. ;;
  13617. *,cl*)
  13618. # Native MSVC
  13619. libname_spec='$name'
  13620. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13621. library_names_spec='$libname.dll.lib'
  13622. case $build_os in
  13623. mingw*)
  13624. sys_lib_search_path_spec=
  13625. lt_save_ifs=$IFS
  13626. IFS=';'
  13627. for lt_path in $LIB
  13628. do
  13629. IFS=$lt_save_ifs
  13630. # Let DOS variable expansion print the short 8.3 style file name.
  13631. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13632. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13633. done
  13634. IFS=$lt_save_ifs
  13635. # Convert to MSYS style.
  13636. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13637. ;;
  13638. cygwin*)
  13639. # Convert to unix form, then to dos form, then back to unix form
  13640. # but this time dos style (no spaces!) so that the unix form looks
  13641. # like /cygdrive/c/PROGRA~1:/cygdr...
  13642. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13643. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13644. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13645. ;;
  13646. *)
  13647. sys_lib_search_path_spec=$LIB
  13648. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13649. # It is most probably a Windows format PATH.
  13650. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13651. else
  13652. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13653. fi
  13654. # FIXME: find the short name or the path components, as spaces are
  13655. # common. (e.g. "Program Files" -> "PROGRA~1")
  13656. ;;
  13657. esac
  13658. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13659. postinstall_cmds='base_file=`basename \$file`~
  13660. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13661. dldir=$destdir/`dirname \$dlpath`~
  13662. test -d \$dldir || mkdir -p \$dldir~
  13663. $install_prog $dir/$dlname \$dldir/$dlname'
  13664. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13665. dlpath=$dir/\$dldll~
  13666. $RM \$dlpath'
  13667. shlibpath_overrides_runpath=yes
  13668. dynamic_linker='Win32 link.exe'
  13669. ;;
  13670. *)
  13671. # Assume MSVC wrapper
  13672. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13673. dynamic_linker='Win32 ld.exe'
  13674. ;;
  13675. esac
  13676. # FIXME: first we should search . and the directory the executable is in
  13677. shlibpath_var=PATH
  13678. ;;
  13679. darwin* | rhapsody*)
  13680. dynamic_linker="$host_os dyld"
  13681. version_type=darwin
  13682. need_lib_prefix=no
  13683. need_version=no
  13684. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13685. soname_spec='$libname$release$major$shared_ext'
  13686. shlibpath_overrides_runpath=yes
  13687. shlibpath_var=DYLD_LIBRARY_PATH
  13688. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13689. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13690. ;;
  13691. dgux*)
  13692. version_type=linux # correct to gnu/linux during the next big refactor
  13693. need_lib_prefix=no
  13694. need_version=no
  13695. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13696. soname_spec='$libname$release$shared_ext$major'
  13697. shlibpath_var=LD_LIBRARY_PATH
  13698. ;;
  13699. freebsd* | dragonfly* | midnightbsd*)
  13700. # DragonFly does not have aout. When/if they implement a new
  13701. # versioning mechanism, adjust this.
  13702. if test -x /usr/bin/objformat; then
  13703. objformat=`/usr/bin/objformat`
  13704. else
  13705. case $host_os in
  13706. freebsd[23].*) objformat=aout ;;
  13707. *) objformat=elf ;;
  13708. esac
  13709. fi
  13710. version_type=freebsd-$objformat
  13711. case $version_type in
  13712. freebsd-elf*)
  13713. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13714. soname_spec='$libname$release$shared_ext$major'
  13715. need_version=no
  13716. need_lib_prefix=no
  13717. ;;
  13718. freebsd-*)
  13719. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13720. need_version=yes
  13721. ;;
  13722. esac
  13723. shlibpath_var=LD_LIBRARY_PATH
  13724. case $host_os in
  13725. freebsd2.*)
  13726. shlibpath_overrides_runpath=yes
  13727. ;;
  13728. freebsd3.[01]* | freebsdelf3.[01]*)
  13729. shlibpath_overrides_runpath=yes
  13730. hardcode_into_libs=yes
  13731. ;;
  13732. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13733. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13734. shlibpath_overrides_runpath=no
  13735. hardcode_into_libs=yes
  13736. ;;
  13737. *) # from 4.6 on, and DragonFly
  13738. shlibpath_overrides_runpath=yes
  13739. hardcode_into_libs=yes
  13740. ;;
  13741. esac
  13742. ;;
  13743. haiku*)
  13744. version_type=linux # correct to gnu/linux during the next big refactor
  13745. need_lib_prefix=no
  13746. need_version=no
  13747. dynamic_linker="$host_os runtime_loader"
  13748. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13749. soname_spec='$libname$release$shared_ext$major'
  13750. shlibpath_var=LIBRARY_PATH
  13751. shlibpath_overrides_runpath=no
  13752. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13753. hardcode_into_libs=yes
  13754. ;;
  13755. hpux9* | hpux10* | hpux11*)
  13756. # Give a soname corresponding to the major version so that dld.sl refuses to
  13757. # link against other versions.
  13758. version_type=sunos
  13759. need_lib_prefix=no
  13760. need_version=no
  13761. case $host_cpu in
  13762. ia64*)
  13763. shrext_cmds='.so'
  13764. hardcode_into_libs=yes
  13765. dynamic_linker="$host_os dld.so"
  13766. shlibpath_var=LD_LIBRARY_PATH
  13767. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13768. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13769. soname_spec='$libname$release$shared_ext$major'
  13770. if test 32 = "$HPUX_IA64_MODE"; then
  13771. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13772. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13773. else
  13774. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13775. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13776. fi
  13777. ;;
  13778. hppa*64*)
  13779. shrext_cmds='.sl'
  13780. hardcode_into_libs=yes
  13781. dynamic_linker="$host_os dld.sl"
  13782. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13783. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13784. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13785. soname_spec='$libname$release$shared_ext$major'
  13786. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13787. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13788. ;;
  13789. *)
  13790. shrext_cmds='.sl'
  13791. dynamic_linker="$host_os dld.sl"
  13792. shlibpath_var=SHLIB_PATH
  13793. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13794. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13795. soname_spec='$libname$release$shared_ext$major'
  13796. ;;
  13797. esac
  13798. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13799. postinstall_cmds='chmod 555 $lib'
  13800. # or fails outright, so override atomically:
  13801. install_override_mode=555
  13802. ;;
  13803. interix[3-9]*)
  13804. version_type=linux # correct to gnu/linux during the next big refactor
  13805. need_lib_prefix=no
  13806. need_version=no
  13807. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13808. soname_spec='$libname$release$shared_ext$major'
  13809. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13810. shlibpath_var=LD_LIBRARY_PATH
  13811. shlibpath_overrides_runpath=no
  13812. hardcode_into_libs=yes
  13813. ;;
  13814. irix5* | irix6* | nonstopux*)
  13815. case $host_os in
  13816. nonstopux*) version_type=nonstopux ;;
  13817. *)
  13818. if test yes = "$lt_cv_prog_gnu_ld"; then
  13819. version_type=linux # correct to gnu/linux during the next big refactor
  13820. else
  13821. version_type=irix
  13822. fi ;;
  13823. esac
  13824. need_lib_prefix=no
  13825. need_version=no
  13826. soname_spec='$libname$release$shared_ext$major'
  13827. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13828. case $host_os in
  13829. irix5* | nonstopux*)
  13830. libsuff= shlibsuff=
  13831. ;;
  13832. *)
  13833. case $LD in # libtool.m4 will add one of these switches to LD
  13834. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13835. libsuff= shlibsuff= libmagic=32-bit;;
  13836. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13837. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13838. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13839. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13840. *) libsuff= shlibsuff= libmagic=never-match;;
  13841. esac
  13842. ;;
  13843. esac
  13844. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13845. shlibpath_overrides_runpath=no
  13846. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13847. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13848. hardcode_into_libs=yes
  13849. ;;
  13850. # No shared lib support for Linux oldld, aout, or coff.
  13851. linux*oldld* | linux*aout* | linux*coff*)
  13852. dynamic_linker=no
  13853. ;;
  13854. linux*android*)
  13855. version_type=none # Android doesn't support versioned libraries.
  13856. need_lib_prefix=no
  13857. need_version=no
  13858. library_names_spec='$libname$release$shared_ext'
  13859. soname_spec='$libname$release$shared_ext'
  13860. finish_cmds=
  13861. shlibpath_var=LD_LIBRARY_PATH
  13862. shlibpath_overrides_runpath=yes
  13863. # This implies no fast_install, which is unacceptable.
  13864. # Some rework will be needed to allow for fast_install
  13865. # before this can be enabled.
  13866. hardcode_into_libs=yes
  13867. dynamic_linker='Android linker'
  13868. # Don't embed -rpath directories since the linker doesn't support them.
  13869. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13870. ;;
  13871. # This must be glibc/ELF.
  13872. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13873. version_type=linux # correct to gnu/linux during the next big refactor
  13874. need_lib_prefix=no
  13875. need_version=no
  13876. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13877. soname_spec='$libname$release$shared_ext$major'
  13878. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13879. shlibpath_var=LD_LIBRARY_PATH
  13880. shlibpath_overrides_runpath=no
  13881. # Some binutils ld are patched to set DT_RUNPATH
  13882. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13883. $as_echo_n "(cached) " >&6
  13884. else
  13885. lt_cv_shlibpath_overrides_runpath=no
  13886. save_LDFLAGS=$LDFLAGS
  13887. save_libdir=$libdir
  13888. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13889. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13891. /* end confdefs.h. */
  13892. int
  13893. main ()
  13894. {
  13895. ;
  13896. return 0;
  13897. }
  13898. _ACEOF
  13899. if ac_fn_cxx_try_link "$LINENO"; then :
  13900. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13901. lt_cv_shlibpath_overrides_runpath=yes
  13902. fi
  13903. fi
  13904. rm -f core conftest.err conftest.$ac_objext \
  13905. conftest$ac_exeext conftest.$ac_ext
  13906. LDFLAGS=$save_LDFLAGS
  13907. libdir=$save_libdir
  13908. fi
  13909. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13910. # This implies no fast_install, which is unacceptable.
  13911. # Some rework will be needed to allow for fast_install
  13912. # before this can be enabled.
  13913. hardcode_into_libs=yes
  13914. # Add ABI-specific directories to the system library path.
  13915. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13916. # Ideally, we could use ldconfig to report *all* directores which are
  13917. # searched for libraries, however this is still not possible. Aside from not
  13918. # being certain /sbin/ldconfig is available, command
  13919. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13920. # even though it is searched at run-time. Try to do the best guess by
  13921. # appending ld.so.conf contents (and includes) to the search path.
  13922. if test -f /etc/ld.so.conf; then
  13923. 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' ' '`
  13924. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13925. fi
  13926. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13927. # powerpc, because MkLinux only supported shared libraries with the
  13928. # GNU dynamic linker. Since this was broken with cross compilers,
  13929. # most powerpc-linux boxes support dynamic linking these days and
  13930. # people can always --disable-shared, the test was removed, and we
  13931. # assume the GNU/Linux dynamic linker is in use.
  13932. dynamic_linker='GNU/Linux ld.so'
  13933. ;;
  13934. netbsd*)
  13935. version_type=sunos
  13936. need_lib_prefix=no
  13937. need_version=no
  13938. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13939. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13940. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13941. dynamic_linker='NetBSD (a.out) ld.so'
  13942. else
  13943. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13944. soname_spec='$libname$release$shared_ext$major'
  13945. dynamic_linker='NetBSD ld.elf_so'
  13946. fi
  13947. shlibpath_var=LD_LIBRARY_PATH
  13948. shlibpath_overrides_runpath=yes
  13949. hardcode_into_libs=yes
  13950. ;;
  13951. newsos6)
  13952. version_type=linux # correct to gnu/linux during the next big refactor
  13953. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13954. shlibpath_var=LD_LIBRARY_PATH
  13955. shlibpath_overrides_runpath=yes
  13956. ;;
  13957. *nto* | *qnx*)
  13958. version_type=qnx
  13959. need_lib_prefix=no
  13960. need_version=no
  13961. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13962. soname_spec='$libname$release$shared_ext$major'
  13963. shlibpath_var=LD_LIBRARY_PATH
  13964. shlibpath_overrides_runpath=no
  13965. hardcode_into_libs=yes
  13966. dynamic_linker='ldqnx.so'
  13967. ;;
  13968. openbsd* | bitrig*)
  13969. version_type=sunos
  13970. sys_lib_dlsearch_path_spec=/usr/lib
  13971. need_lib_prefix=no
  13972. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13973. need_version=no
  13974. else
  13975. need_version=yes
  13976. fi
  13977. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13978. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13979. shlibpath_var=LD_LIBRARY_PATH
  13980. shlibpath_overrides_runpath=yes
  13981. ;;
  13982. os2*)
  13983. libname_spec='$name'
  13984. shrext_cmds=.dll
  13985. need_lib_prefix=no
  13986. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13987. # SDL customization: removed versioning support.
  13988. # version_type=windows
  13989. # need_version=no
  13990. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13991. # v=$($ECHO $release$versuffix | tr -d .-);
  13992. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13993. # $ECHO $n$v`$shared_ext'
  13994. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  13995. library_names_spec='${libname}_dll.$libext'
  13996. dynamic_linker='OS/2 ld.exe'
  13997. shlibpath_var=BEGINLIBPATH
  13998. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13999. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14000. postinstall_cmds='base_file=`basename \$file`~
  14001. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  14002. dldir=$destdir/`dirname \$dlpath`~
  14003. test -d \$dldir || mkdir -p \$dldir~
  14004. $install_prog $dir/$dlname \$dldir/$dlname~
  14005. chmod a+x \$dldir/$dlname~
  14006. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14007. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14008. fi'
  14009. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14010. dlpath=$dir/\$dldll~
  14011. $RM \$dlpath'
  14012. ;;
  14013. osf3* | osf4* | osf5*)
  14014. version_type=osf
  14015. need_lib_prefix=no
  14016. need_version=no
  14017. soname_spec='$libname$release$shared_ext$major'
  14018. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14019. shlibpath_var=LD_LIBRARY_PATH
  14020. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14021. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14022. ;;
  14023. rdos*)
  14024. dynamic_linker=no
  14025. ;;
  14026. solaris*)
  14027. version_type=linux # correct to gnu/linux during the next big refactor
  14028. need_lib_prefix=no
  14029. need_version=no
  14030. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14031. soname_spec='$libname$release$shared_ext$major'
  14032. shlibpath_var=LD_LIBRARY_PATH
  14033. shlibpath_overrides_runpath=yes
  14034. hardcode_into_libs=yes
  14035. # ldd complains unless libraries are executable
  14036. postinstall_cmds='chmod +x $lib'
  14037. ;;
  14038. sunos4*)
  14039. version_type=sunos
  14040. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14041. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14042. shlibpath_var=LD_LIBRARY_PATH
  14043. shlibpath_overrides_runpath=yes
  14044. if test yes = "$with_gnu_ld"; then
  14045. need_lib_prefix=no
  14046. fi
  14047. need_version=yes
  14048. ;;
  14049. sysv4 | sysv4.3*)
  14050. version_type=linux # correct to gnu/linux during the next big refactor
  14051. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14052. soname_spec='$libname$release$shared_ext$major'
  14053. shlibpath_var=LD_LIBRARY_PATH
  14054. case $host_vendor in
  14055. sni)
  14056. shlibpath_overrides_runpath=no
  14057. need_lib_prefix=no
  14058. runpath_var=LD_RUN_PATH
  14059. ;;
  14060. siemens)
  14061. need_lib_prefix=no
  14062. ;;
  14063. motorola)
  14064. need_lib_prefix=no
  14065. need_version=no
  14066. shlibpath_overrides_runpath=no
  14067. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14068. ;;
  14069. esac
  14070. ;;
  14071. sysv4*MP*)
  14072. if test -d /usr/nec; then
  14073. version_type=linux # correct to gnu/linux during the next big refactor
  14074. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14075. soname_spec='$libname$shared_ext.$major'
  14076. shlibpath_var=LD_LIBRARY_PATH
  14077. fi
  14078. ;;
  14079. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14080. version_type=sco
  14081. need_lib_prefix=no
  14082. need_version=no
  14083. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14084. soname_spec='$libname$release$shared_ext$major'
  14085. shlibpath_var=LD_LIBRARY_PATH
  14086. shlibpath_overrides_runpath=yes
  14087. hardcode_into_libs=yes
  14088. if test yes = "$with_gnu_ld"; then
  14089. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14090. else
  14091. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14092. case $host_os in
  14093. sco3.2v5*)
  14094. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14095. ;;
  14096. esac
  14097. fi
  14098. sys_lib_dlsearch_path_spec='/usr/lib'
  14099. ;;
  14100. tpf*)
  14101. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14102. version_type=linux # correct to gnu/linux during the next big refactor
  14103. need_lib_prefix=no
  14104. need_version=no
  14105. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14106. shlibpath_var=LD_LIBRARY_PATH
  14107. shlibpath_overrides_runpath=no
  14108. hardcode_into_libs=yes
  14109. ;;
  14110. uts4*)
  14111. version_type=linux # correct to gnu/linux during the next big refactor
  14112. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14113. soname_spec='$libname$release$shared_ext$major'
  14114. shlibpath_var=LD_LIBRARY_PATH
  14115. ;;
  14116. *)
  14117. dynamic_linker=no
  14118. ;;
  14119. esac
  14120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14121. $as_echo "$dynamic_linker" >&6; }
  14122. test no = "$dynamic_linker" && can_build_shared=no
  14123. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14124. if test yes = "$GCC"; then
  14125. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14126. fi
  14127. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14128. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14129. fi
  14130. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14131. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14132. fi
  14133. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14134. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14135. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14136. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14137. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14138. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14140. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14141. hardcode_action_CXX=
  14142. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14143. test -n "$runpath_var_CXX" ||
  14144. test yes = "$hardcode_automatic_CXX"; then
  14145. # We can hardcode non-existent directories.
  14146. if test no != "$hardcode_direct_CXX" &&
  14147. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14148. # have to relink, otherwise we might link with an installed library
  14149. # when we should be linking with a yet-to-be-installed one
  14150. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14151. test no != "$hardcode_minus_L_CXX"; then
  14152. # Linking always hardcodes the temporary library directory.
  14153. hardcode_action_CXX=relink
  14154. else
  14155. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14156. hardcode_action_CXX=immediate
  14157. fi
  14158. else
  14159. # We cannot hardcode anything, or else we can only hardcode existing
  14160. # directories.
  14161. hardcode_action_CXX=unsupported
  14162. fi
  14163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14164. $as_echo "$hardcode_action_CXX" >&6; }
  14165. if test relink = "$hardcode_action_CXX" ||
  14166. test yes = "$inherit_rpath_CXX"; then
  14167. # Fast installation is not supported
  14168. enable_fast_install=no
  14169. elif test yes = "$shlibpath_overrides_runpath" ||
  14170. test no = "$enable_shared"; then
  14171. # Fast installation is not necessary
  14172. enable_fast_install=needless
  14173. fi
  14174. fi # test -n "$compiler"
  14175. CC=$lt_save_CC
  14176. CFLAGS=$lt_save_CFLAGS
  14177. LDCXX=$LD
  14178. LD=$lt_save_LD
  14179. GCC=$lt_save_GCC
  14180. with_gnu_ld=$lt_save_with_gnu_ld
  14181. lt_cv_path_LDCXX=$lt_cv_path_LD
  14182. lt_cv_path_LD=$lt_save_path_LD
  14183. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14184. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14185. fi # test yes != "$_lt_caught_CXX_error"
  14186. ac_ext=c
  14187. ac_cpp='$CPP $CPPFLAGS'
  14188. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14189. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14190. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14191. # Find a good install program. We prefer a C program (faster),
  14192. # so one script is as good as another. But avoid the broken or
  14193. # incompatible versions:
  14194. # SysV /etc/install, /usr/sbin/install
  14195. # SunOS /usr/etc/install
  14196. # IRIX /sbin/install
  14197. # AIX /bin/install
  14198. # AmigaOS /C/install, which installs bootblocks on floppy discs
  14199. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  14200. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  14201. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  14202. # OS/2's system install, which has a completely different semantic
  14203. # ./install, which can be erroneously created by make from ./install.sh.
  14204. # Reject install programs that cannot install multiple files.
  14205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  14206. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  14207. if test -z "$INSTALL"; then
  14208. if ${ac_cv_path_install+:} false; then :
  14209. $as_echo_n "(cached) " >&6
  14210. else
  14211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14212. for as_dir in $PATH
  14213. do
  14214. IFS=$as_save_IFS
  14215. test -z "$as_dir" && as_dir=.
  14216. # Account for people who put trailing slashes in PATH elements.
  14217. case $as_dir/ in #((
  14218. ./ | .// | /[cC]/* | \
  14219. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  14220. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  14221. /usr/ucb/* ) ;;
  14222. *)
  14223. # OSF1 and SCO ODT 3.0 have their own names for install.
  14224. # Don't use installbsd from OSF since it installs stuff as root
  14225. # by default.
  14226. for ac_prog in ginstall scoinst install; do
  14227. for ac_exec_ext in '' $ac_executable_extensions; do
  14228. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  14229. if test $ac_prog = install &&
  14230. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14231. # AIX install. It has an incompatible calling convention.
  14232. :
  14233. elif test $ac_prog = install &&
  14234. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14235. # program-specific install script used by HP pwplus--don't use.
  14236. :
  14237. else
  14238. rm -rf conftest.one conftest.two conftest.dir
  14239. echo one > conftest.one
  14240. echo two > conftest.two
  14241. mkdir conftest.dir
  14242. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  14243. test -s conftest.one && test -s conftest.two &&
  14244. test -s conftest.dir/conftest.one &&
  14245. test -s conftest.dir/conftest.two
  14246. then
  14247. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  14248. break 3
  14249. fi
  14250. fi
  14251. fi
  14252. done
  14253. done
  14254. ;;
  14255. esac
  14256. done
  14257. IFS=$as_save_IFS
  14258. rm -rf conftest.one conftest.two conftest.dir
  14259. fi
  14260. if test "${ac_cv_path_install+set}" = set; then
  14261. INSTALL=$ac_cv_path_install
  14262. else
  14263. # As a last resort, use the slow shell script. Don't cache a
  14264. # value for INSTALL within a source directory, because that will
  14265. # break other packages using the cache if that directory is
  14266. # removed, or if the value is a relative name.
  14267. INSTALL=$ac_install_sh
  14268. fi
  14269. fi
  14270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  14271. $as_echo "$INSTALL" >&6; }
  14272. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  14273. # It thinks the first close brace ends the variable substitution.
  14274. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  14275. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  14276. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  14277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  14278. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  14279. set x ${MAKE-make}
  14280. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  14281. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  14282. $as_echo_n "(cached) " >&6
  14283. else
  14284. cat >conftest.make <<\_ACEOF
  14285. SHELL = /bin/sh
  14286. all:
  14287. @echo '@@@%%%=$(MAKE)=@@@%%%'
  14288. _ACEOF
  14289. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  14290. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  14291. *@@@%%%=?*=@@@%%%*)
  14292. eval ac_cv_prog_make_${ac_make}_set=yes;;
  14293. *)
  14294. eval ac_cv_prog_make_${ac_make}_set=no;;
  14295. esac
  14296. rm -f conftest.make
  14297. fi
  14298. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  14299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14300. $as_echo "yes" >&6; }
  14301. SET_MAKE=
  14302. else
  14303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14304. $as_echo "no" >&6; }
  14305. SET_MAKE="MAKE=${MAKE-make}"
  14306. fi
  14307. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14308. if test -n "$ac_tool_prefix"; then
  14309. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14310. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14312. $as_echo_n "checking for $ac_word... " >&6; }
  14313. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14314. $as_echo_n "(cached) " >&6
  14315. else
  14316. case $PKG_CONFIG in
  14317. [\\/]* | ?:[\\/]*)
  14318. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14319. ;;
  14320. *)
  14321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14322. for as_dir in $PATH
  14323. do
  14324. IFS=$as_save_IFS
  14325. test -z "$as_dir" && as_dir=.
  14326. for ac_exec_ext in '' $ac_executable_extensions; do
  14327. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14328. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14329. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14330. break 2
  14331. fi
  14332. done
  14333. done
  14334. IFS=$as_save_IFS
  14335. ;;
  14336. esac
  14337. fi
  14338. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14339. if test -n "$PKG_CONFIG"; then
  14340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14341. $as_echo "$PKG_CONFIG" >&6; }
  14342. else
  14343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14344. $as_echo "no" >&6; }
  14345. fi
  14346. fi
  14347. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14348. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14349. # Extract the first word of "pkg-config", so it can be a program name with args.
  14350. set dummy pkg-config; ac_word=$2
  14351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14352. $as_echo_n "checking for $ac_word... " >&6; }
  14353. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14354. $as_echo_n "(cached) " >&6
  14355. else
  14356. case $ac_pt_PKG_CONFIG in
  14357. [\\/]* | ?:[\\/]*)
  14358. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14359. ;;
  14360. *)
  14361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14362. for as_dir in $PATH
  14363. do
  14364. IFS=$as_save_IFS
  14365. test -z "$as_dir" && as_dir=.
  14366. for ac_exec_ext in '' $ac_executable_extensions; do
  14367. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14368. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14369. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14370. break 2
  14371. fi
  14372. done
  14373. done
  14374. IFS=$as_save_IFS
  14375. ;;
  14376. esac
  14377. fi
  14378. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14379. if test -n "$ac_pt_PKG_CONFIG"; then
  14380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14381. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14382. else
  14383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14384. $as_echo "no" >&6; }
  14385. fi
  14386. if test "x$ac_pt_PKG_CONFIG" = x; then
  14387. PKG_CONFIG=""
  14388. else
  14389. case $cross_compiling:$ac_tool_warned in
  14390. yes:)
  14391. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14392. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14393. ac_tool_warned=yes ;;
  14394. esac
  14395. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14396. fi
  14397. else
  14398. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14399. fi
  14400. fi
  14401. if test -n "$PKG_CONFIG"; then
  14402. _pkg_min_version=0.9.0
  14403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14404. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14405. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14407. $as_echo "yes" >&6; }
  14408. else
  14409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14410. $as_echo "no" >&6; }
  14411. PKG_CONFIG=""
  14412. fi
  14413. fi
  14414. case "$host" in
  14415. *-*-mingw*)
  14416. # Except on msys, where make can't handle full pathnames (bug 1972)
  14417. ;;
  14418. *)
  14419. srcdir=`cd $srcdir && pwd`
  14420. ;;
  14421. esac
  14422. INCLUDE="-I$srcdir/include"
  14423. case "$host" in
  14424. *-*-nto-qnx*)
  14425. ;;
  14426. *)
  14427. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  14428. ;;
  14429. esac
  14430. case "$host" in
  14431. *-*-haiku*)
  14432. LINKER='$(CXX)'
  14433. LIBTOOLLINKERTAG='CXX'
  14434. ;;
  14435. *)
  14436. LINKER='$(CC)'
  14437. LIBTOOLLINKERTAG='CC'
  14438. ;;
  14439. esac
  14440. if test x$srcdir != x.; then
  14441. INCLUDE="-Iinclude $INCLUDE"
  14442. elif test -d .git; then
  14443. as_fn_error $? "
  14444. *** When building from a git clone you should configure and build in a
  14445. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  14446. " "$LINENO" 5
  14447. fi
  14448. BASE_CFLAGS=""
  14449. BASE_LDFLAGS=""
  14450. case "$host" in
  14451. *-*-cygwin*)
  14452. # We build SDL on cygwin without the UNIX emulation layer
  14453. save_CFLAGS="$CFLAGS"
  14454. have_no_cygwin=no
  14455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  14456. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  14457. CFLAGS="$save_CFLAGS -mno-cygwin"
  14458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14459. /* end confdefs.h. */
  14460. int
  14461. main ()
  14462. {
  14463. ;
  14464. return 0;
  14465. }
  14466. _ACEOF
  14467. if ac_fn_c_try_compile "$LINENO"; then :
  14468. have_no_cygwin=yes
  14469. fi
  14470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  14472. $as_echo "$have_no_cygwin" >&6; }
  14473. CFLAGS="$save_CFLAGS"
  14474. if test x$have_no_cygwin = xyes; then
  14475. BASE_CFLAGS="-mno-cygwin"
  14476. BASE_LDFLAGS="-mno-cygwin"
  14477. fi
  14478. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  14479. ;;
  14480. esac
  14481. # Uncomment the following line if you want to force SDL and applications
  14482. # built with it to be compiled for a particular architecture.
  14483. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  14484. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  14485. # The default optimization for SDL is -O3 (Bug #31)
  14486. if test "x$orig_CFLAGS" = x; then
  14487. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  14488. fi
  14489. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  14490. BUILD_LDFLAGS="$LDFLAGS"
  14491. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  14492. ## These are common directories to find software packages
  14493. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  14494. # if test -d $path/include; then
  14495. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  14496. # fi
  14497. # if test -d $path/lib; then
  14498. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  14499. # fi
  14500. #done
  14501. SDL_CFLAGS="$BASE_CFLAGS"
  14502. SDL_LIBS="-lSDL2"
  14503. if test "x$BASE_LDFLAGS" != x; then
  14504. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  14505. fi
  14506. if test "x$EXTRA_CFLAGS" != x; then
  14507. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  14508. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  14509. fi
  14510. if test "x$EXTRA_LDFLAGS" != x; then
  14511. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  14512. fi
  14513. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  14514. find_lib()
  14515. {
  14516. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14517. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14518. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  14519. if test "$cross_compiling" = yes; then
  14520. host_lib_path=""
  14521. else
  14522. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  14523. fi
  14524. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14525. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  14526. if test x$lib != x; then
  14527. echo $lib
  14528. return
  14529. fi
  14530. done
  14531. # Try again, this time allowing more than one version digit after the .so
  14532. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14533. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  14534. if test x$lib != x; then
  14535. echo $lib
  14536. return
  14537. fi
  14538. done
  14539. }
  14540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14541. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14542. if ${ac_cv_c_const+:} false; then :
  14543. $as_echo_n "(cached) " >&6
  14544. else
  14545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14546. /* end confdefs.h. */
  14547. int
  14548. main ()
  14549. {
  14550. #ifndef __cplusplus
  14551. /* Ultrix mips cc rejects this sort of thing. */
  14552. typedef int charset[2];
  14553. const charset cs = { 0, 0 };
  14554. /* SunOS 4.1.1 cc rejects this. */
  14555. char const *const *pcpcc;
  14556. char **ppc;
  14557. /* NEC SVR4.0.2 mips cc rejects this. */
  14558. struct point {int x, y;};
  14559. static struct point const zero = {0,0};
  14560. /* AIX XL C 1.02.0.0 rejects this.
  14561. It does not let you subtract one const X* pointer from another in
  14562. an arm of an if-expression whose if-part is not a constant
  14563. expression */
  14564. const char *g = "string";
  14565. pcpcc = &g + (g ? g-g : 0);
  14566. /* HPUX 7.0 cc rejects these. */
  14567. ++pcpcc;
  14568. ppc = (char**) pcpcc;
  14569. pcpcc = (char const *const *) ppc;
  14570. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14571. char tx;
  14572. char *t = &tx;
  14573. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14574. *t++ = 0;
  14575. if (s) return 0;
  14576. }
  14577. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14578. int x[] = {25, 17};
  14579. const int *foo = &x[0];
  14580. ++foo;
  14581. }
  14582. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14583. typedef const int *iptr;
  14584. iptr p = 0;
  14585. ++p;
  14586. }
  14587. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14588. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14589. struct s { int j; const int *ap[3]; } bx;
  14590. struct s *b = &bx; b->j = 5;
  14591. }
  14592. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14593. const int foo = 10;
  14594. if (!foo) return 0;
  14595. }
  14596. return !cs[0] && !zero.x;
  14597. #endif
  14598. ;
  14599. return 0;
  14600. }
  14601. _ACEOF
  14602. if ac_fn_c_try_compile "$LINENO"; then :
  14603. ac_cv_c_const=yes
  14604. else
  14605. ac_cv_c_const=no
  14606. fi
  14607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14608. fi
  14609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14610. $as_echo "$ac_cv_c_const" >&6; }
  14611. if test $ac_cv_c_const = no; then
  14612. $as_echo "#define const /**/" >>confdefs.h
  14613. fi
  14614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14615. $as_echo_n "checking for inline... " >&6; }
  14616. if ${ac_cv_c_inline+:} false; then :
  14617. $as_echo_n "(cached) " >&6
  14618. else
  14619. ac_cv_c_inline=no
  14620. for ac_kw in inline __inline__ __inline; do
  14621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14622. /* end confdefs.h. */
  14623. #ifndef __cplusplus
  14624. typedef int foo_t;
  14625. static $ac_kw foo_t static_foo () {return 0; }
  14626. $ac_kw foo_t foo () {return 0; }
  14627. #endif
  14628. _ACEOF
  14629. if ac_fn_c_try_compile "$LINENO"; then :
  14630. ac_cv_c_inline=$ac_kw
  14631. fi
  14632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14633. test "$ac_cv_c_inline" != no && break
  14634. done
  14635. fi
  14636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14637. $as_echo "$ac_cv_c_inline" >&6; }
  14638. case $ac_cv_c_inline in
  14639. inline | yes) ;;
  14640. *)
  14641. case $ac_cv_c_inline in
  14642. no) ac_val=;;
  14643. *) ac_val=$ac_cv_c_inline;;
  14644. esac
  14645. cat >>confdefs.h <<_ACEOF
  14646. #ifndef __cplusplus
  14647. #define inline $ac_val
  14648. #endif
  14649. _ACEOF
  14650. ;;
  14651. esac
  14652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14653. $as_echo_n "checking for working volatile... " >&6; }
  14654. if ${ac_cv_c_volatile+:} false; then :
  14655. $as_echo_n "(cached) " >&6
  14656. else
  14657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14658. /* end confdefs.h. */
  14659. int
  14660. main ()
  14661. {
  14662. volatile int x;
  14663. int * volatile y = (int *) 0;
  14664. return !x && !y;
  14665. ;
  14666. return 0;
  14667. }
  14668. _ACEOF
  14669. if ac_fn_c_try_compile "$LINENO"; then :
  14670. ac_cv_c_volatile=yes
  14671. else
  14672. ac_cv_c_volatile=no
  14673. fi
  14674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14675. fi
  14676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14677. $as_echo "$ac_cv_c_volatile" >&6; }
  14678. if test $ac_cv_c_volatile = no; then
  14679. $as_echo "#define volatile /**/" >>confdefs.h
  14680. fi
  14681. # Check whether --enable-assertions was given.
  14682. if test "${enable_assertions+set}" = set; then :
  14683. enableval=$enable_assertions;
  14684. else
  14685. enable_assertions=auto
  14686. fi
  14687. case "$enable_assertions" in
  14688. auto) # Use optimization settings to determine assertion level
  14689. ;;
  14690. disabled)
  14691. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14692. ;;
  14693. release)
  14694. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14695. ;;
  14696. enabled)
  14697. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14698. ;;
  14699. paranoid)
  14700. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14701. ;;
  14702. *)
  14703. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14704. ;;
  14705. esac
  14706. cat >>confdefs.h <<_ACEOF
  14707. #define SDL_BUILD_MAJOR_VERSION $SDL_MAJOR_VERSION
  14708. _ACEOF
  14709. cat >>confdefs.h <<_ACEOF
  14710. #define SDL_BUILD_MINOR_VERSION $SDL_MINOR_VERSION
  14711. _ACEOF
  14712. cat >>confdefs.h <<_ACEOF
  14713. #define SDL_BUILD_MICRO_VERSION $SDL_MICRO_VERSION
  14714. _ACEOF
  14715. # Check whether --enable-dependency-tracking was given.
  14716. if test "${enable_dependency_tracking+set}" = set; then :
  14717. enableval=$enable_dependency_tracking;
  14718. else
  14719. enable_dependency_tracking=yes
  14720. fi
  14721. if test x$enable_dependency_tracking = xyes; then
  14722. have_gcc_mmd_mt=no
  14723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14724. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14726. /* end confdefs.h. */
  14727. #if !defined(__GNUC__) || __GNUC__ < 3
  14728. #error Dependency tracking requires GCC 3.0 or newer
  14729. #endif
  14730. int
  14731. main ()
  14732. {
  14733. ;
  14734. return 0;
  14735. }
  14736. _ACEOF
  14737. if ac_fn_c_try_compile "$LINENO"; then :
  14738. have_gcc_mmd_mt=yes
  14739. fi
  14740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14742. $as_echo "$have_gcc_mmd_mt" >&6; }
  14743. if test x$have_gcc_mmd_mt = xyes; then
  14744. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14745. fi
  14746. fi
  14747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14748. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14749. have_no_undefined=no
  14750. case "$host" in
  14751. *-*-openbsd*)
  14752. ;;
  14753. *)
  14754. save_LDFLAGS="$LDFLAGS"
  14755. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14757. /* end confdefs.h. */
  14758. int
  14759. main ()
  14760. {
  14761. ;
  14762. return 0;
  14763. }
  14764. _ACEOF
  14765. if ac_fn_c_try_link "$LINENO"; then :
  14766. have_no_undefined=yes
  14767. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  14768. fi
  14769. rm -f core conftest.err conftest.$ac_objext \
  14770. conftest$ac_exeext conftest.$ac_ext
  14771. LDFLAGS="$save_LDFLAGS"
  14772. ;;
  14773. esac
  14774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14775. $as_echo "$have_no_undefined" >&6; }
  14776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14777. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14778. have_dynamicbase=no
  14779. case "$host" in
  14780. *)
  14781. save_LDFLAGS="$LDFLAGS"
  14782. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14784. /* end confdefs.h. */
  14785. int
  14786. main ()
  14787. {
  14788. ;
  14789. return 0;
  14790. }
  14791. _ACEOF
  14792. if ac_fn_c_try_link "$LINENO"; then :
  14793. have_dynamicbase=yes
  14794. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14795. fi
  14796. rm -f core conftest.err conftest.$ac_objext \
  14797. conftest$ac_exeext conftest.$ac_ext
  14798. LDFLAGS="$save_LDFLAGS"
  14799. ;;
  14800. esac
  14801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14802. $as_echo "$have_dynamicbase" >&6; }
  14803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14804. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14805. have_nxcompat=no
  14806. case "$host" in
  14807. *)
  14808. save_LDFLAGS="$LDFLAGS"
  14809. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14811. /* end confdefs.h. */
  14812. int
  14813. main ()
  14814. {
  14815. ;
  14816. return 0;
  14817. }
  14818. _ACEOF
  14819. if ac_fn_c_try_link "$LINENO"; then :
  14820. have_nxcompat=yes
  14821. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14822. fi
  14823. rm -f core conftest.err conftest.$ac_objext \
  14824. conftest$ac_exeext conftest.$ac_ext
  14825. LDFLAGS="$save_LDFLAGS"
  14826. ;;
  14827. esac
  14828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14829. $as_echo "$have_nxcompat" >&6; }
  14830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14831. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14832. have_high_entropy_va=no
  14833. case "$host" in
  14834. *)
  14835. save_LDFLAGS="$LDFLAGS"
  14836. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14838. /* end confdefs.h. */
  14839. int
  14840. main ()
  14841. {
  14842. ;
  14843. return 0;
  14844. }
  14845. _ACEOF
  14846. if ac_fn_c_try_link "$LINENO"; then :
  14847. have_high_entropy_va=yes
  14848. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14849. fi
  14850. rm -f core conftest.err conftest.$ac_objext \
  14851. conftest$ac_exeext conftest.$ac_ext
  14852. LDFLAGS="$save_LDFLAGS"
  14853. ;;
  14854. esac
  14855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14856. $as_echo "$have_high_entropy_va" >&6; }
  14857. # Check whether --enable-libc was given.
  14858. if test "${enable_libc+set}" = set; then :
  14859. enableval=$enable_libc;
  14860. else
  14861. enable_libc=yes
  14862. fi
  14863. if test x$enable_libc = xyes; then
  14864. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14866. $as_echo_n "checking for ANSI C header files... " >&6; }
  14867. if ${ac_cv_header_stdc+:} false; then :
  14868. $as_echo_n "(cached) " >&6
  14869. else
  14870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14871. /* end confdefs.h. */
  14872. #include <stdlib.h>
  14873. #include <stdarg.h>
  14874. #include <string.h>
  14875. #include <float.h>
  14876. int
  14877. main ()
  14878. {
  14879. ;
  14880. return 0;
  14881. }
  14882. _ACEOF
  14883. if ac_fn_c_try_compile "$LINENO"; then :
  14884. ac_cv_header_stdc=yes
  14885. else
  14886. ac_cv_header_stdc=no
  14887. fi
  14888. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14889. if test $ac_cv_header_stdc = yes; then
  14890. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14892. /* end confdefs.h. */
  14893. #include <string.h>
  14894. _ACEOF
  14895. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14896. $EGREP "memchr" >/dev/null 2>&1; then :
  14897. else
  14898. ac_cv_header_stdc=no
  14899. fi
  14900. rm -f conftest*
  14901. fi
  14902. if test $ac_cv_header_stdc = yes; then
  14903. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14905. /* end confdefs.h. */
  14906. #include <stdlib.h>
  14907. _ACEOF
  14908. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14909. $EGREP "free" >/dev/null 2>&1; then :
  14910. else
  14911. ac_cv_header_stdc=no
  14912. fi
  14913. rm -f conftest*
  14914. fi
  14915. if test $ac_cv_header_stdc = yes; then
  14916. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14917. if test "$cross_compiling" = yes; then :
  14918. :
  14919. else
  14920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14921. /* end confdefs.h. */
  14922. #include <ctype.h>
  14923. #include <stdlib.h>
  14924. #if ((' ' & 0x0FF) == 0x020)
  14925. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14926. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14927. #else
  14928. # define ISLOWER(c) \
  14929. (('a' <= (c) && (c) <= 'i') \
  14930. || ('j' <= (c) && (c) <= 'r') \
  14931. || ('s' <= (c) && (c) <= 'z'))
  14932. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14933. #endif
  14934. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14935. int
  14936. main ()
  14937. {
  14938. int i;
  14939. for (i = 0; i < 256; i++)
  14940. if (XOR (islower (i), ISLOWER (i))
  14941. || toupper (i) != TOUPPER (i))
  14942. return 2;
  14943. return 0;
  14944. }
  14945. _ACEOF
  14946. if ac_fn_c_try_run "$LINENO"; then :
  14947. else
  14948. ac_cv_header_stdc=no
  14949. fi
  14950. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14951. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14952. fi
  14953. fi
  14954. fi
  14955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14956. $as_echo "$ac_cv_header_stdc" >&6; }
  14957. if test $ac_cv_header_stdc = yes; then
  14958. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14959. fi
  14960. for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h limits.h ctype.h math.h float.h iconv.h signal.h
  14961. do :
  14962. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14963. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14964. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14965. cat >>confdefs.h <<_ACEOF
  14966. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14967. _ACEOF
  14968. fi
  14969. done
  14970. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14971. if test "x$ac_cv_type_size_t" = xyes; then :
  14972. else
  14973. cat >>confdefs.h <<_ACEOF
  14974. #define size_t unsigned int
  14975. _ACEOF
  14976. fi
  14977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14978. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14979. if ${ac_cv_define_M_PI+:} false; then :
  14980. $as_echo_n "(cached) " >&6
  14981. else
  14982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14983. /* end confdefs.h. */
  14984. #include <math.h>
  14985. #ifdef M_PI
  14986. YES_IS_DEFINED
  14987. #endif
  14988. _ACEOF
  14989. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14990. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14991. ac_cv_define_M_PI=yes
  14992. else
  14993. ac_cv_define_M_PI=no
  14994. fi
  14995. rm -f conftest*
  14996. fi
  14997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14998. $as_echo "$ac_cv_define_M_PI" >&6; }
  14999. if test "$ac_cv_define_M_PI" = "yes" ; then
  15000. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  15001. fi
  15002. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  15003. # for constant arguments. Useless!
  15004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  15005. $as_echo_n "checking for working alloca.h... " >&6; }
  15006. if ${ac_cv_working_alloca_h+:} false; then :
  15007. $as_echo_n "(cached) " >&6
  15008. else
  15009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15010. /* end confdefs.h. */
  15011. #include <alloca.h>
  15012. int
  15013. main ()
  15014. {
  15015. char *p = (char *) alloca (2 * sizeof (int));
  15016. if (p) return 0;
  15017. ;
  15018. return 0;
  15019. }
  15020. _ACEOF
  15021. if ac_fn_c_try_link "$LINENO"; then :
  15022. ac_cv_working_alloca_h=yes
  15023. else
  15024. ac_cv_working_alloca_h=no
  15025. fi
  15026. rm -f core conftest.err conftest.$ac_objext \
  15027. conftest$ac_exeext conftest.$ac_ext
  15028. fi
  15029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  15030. $as_echo "$ac_cv_working_alloca_h" >&6; }
  15031. if test $ac_cv_working_alloca_h = yes; then
  15032. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  15033. fi
  15034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  15035. $as_echo_n "checking for alloca... " >&6; }
  15036. if ${ac_cv_func_alloca_works+:} false; then :
  15037. $as_echo_n "(cached) " >&6
  15038. else
  15039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15040. /* end confdefs.h. */
  15041. #ifdef __GNUC__
  15042. # define alloca __builtin_alloca
  15043. #else
  15044. # ifdef _MSC_VER
  15045. # include <malloc.h>
  15046. # define alloca _alloca
  15047. # else
  15048. # ifdef HAVE_ALLOCA_H
  15049. # include <alloca.h>
  15050. # else
  15051. # ifdef _AIX
  15052. #pragma alloca
  15053. # else
  15054. # ifndef alloca /* predefined by HP cc +Olibcalls */
  15055. void *alloca (size_t);
  15056. # endif
  15057. # endif
  15058. # endif
  15059. # endif
  15060. #endif
  15061. int
  15062. main ()
  15063. {
  15064. char *p = (char *) alloca (1);
  15065. if (p) return 0;
  15066. ;
  15067. return 0;
  15068. }
  15069. _ACEOF
  15070. if ac_fn_c_try_link "$LINENO"; then :
  15071. ac_cv_func_alloca_works=yes
  15072. else
  15073. ac_cv_func_alloca_works=no
  15074. fi
  15075. rm -f core conftest.err conftest.$ac_objext \
  15076. conftest$ac_exeext conftest.$ac_ext
  15077. fi
  15078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  15079. $as_echo "$ac_cv_func_alloca_works" >&6; }
  15080. if test $ac_cv_func_alloca_works = yes; then
  15081. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  15082. else
  15083. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  15084. # that cause trouble. Some versions do not even contain alloca or
  15085. # contain a buggy version. If you still want to use their alloca,
  15086. # use ar to extract alloca.o from them instead of compiling alloca.c.
  15087. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  15088. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  15089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  15090. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  15091. if ${ac_cv_os_cray+:} false; then :
  15092. $as_echo_n "(cached) " >&6
  15093. else
  15094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15095. /* end confdefs.h. */
  15096. #if defined CRAY && ! defined CRAY2
  15097. webecray
  15098. #else
  15099. wenotbecray
  15100. #endif
  15101. _ACEOF
  15102. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15103. $EGREP "webecray" >/dev/null 2>&1; then :
  15104. ac_cv_os_cray=yes
  15105. else
  15106. ac_cv_os_cray=no
  15107. fi
  15108. rm -f conftest*
  15109. fi
  15110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  15111. $as_echo "$ac_cv_os_cray" >&6; }
  15112. if test $ac_cv_os_cray = yes; then
  15113. for ac_func in _getb67 GETB67 getb67; do
  15114. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15115. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15116. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15117. cat >>confdefs.h <<_ACEOF
  15118. #define CRAY_STACKSEG_END $ac_func
  15119. _ACEOF
  15120. break
  15121. fi
  15122. done
  15123. fi
  15124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  15125. $as_echo_n "checking stack direction for C alloca... " >&6; }
  15126. if ${ac_cv_c_stack_direction+:} false; then :
  15127. $as_echo_n "(cached) " >&6
  15128. else
  15129. if test "$cross_compiling" = yes; then :
  15130. ac_cv_c_stack_direction=0
  15131. else
  15132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15133. /* end confdefs.h. */
  15134. $ac_includes_default
  15135. int
  15136. find_stack_direction (int *addr, int depth)
  15137. {
  15138. int dir, dummy = 0;
  15139. if (! addr)
  15140. addr = &dummy;
  15141. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  15142. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  15143. return dir + dummy;
  15144. }
  15145. int
  15146. main (int argc, char **argv)
  15147. {
  15148. return find_stack_direction (0, argc + !argv + 20) < 0;
  15149. }
  15150. _ACEOF
  15151. if ac_fn_c_try_run "$LINENO"; then :
  15152. ac_cv_c_stack_direction=1
  15153. else
  15154. ac_cv_c_stack_direction=-1
  15155. fi
  15156. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15157. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15158. fi
  15159. fi
  15160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  15161. $as_echo "$ac_cv_c_stack_direction" >&6; }
  15162. cat >>confdefs.h <<_ACEOF
  15163. #define STACK_DIRECTION $ac_cv_c_stack_direction
  15164. _ACEOF
  15165. fi
  15166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  15167. $as_echo_n "checking for working memcmp... " >&6; }
  15168. if ${ac_cv_func_memcmp_working+:} false; then :
  15169. $as_echo_n "(cached) " >&6
  15170. else
  15171. if test "$cross_compiling" = yes; then :
  15172. ac_cv_func_memcmp_working=no
  15173. else
  15174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15175. /* end confdefs.h. */
  15176. $ac_includes_default
  15177. int
  15178. main ()
  15179. {
  15180. /* Some versions of memcmp are not 8-bit clean. */
  15181. char c0 = '\100', c1 = '\200', c2 = '\201';
  15182. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  15183. return 1;
  15184. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  15185. or more and with at least one buffer not starting on a 4-byte boundary.
  15186. William Lewis provided this test program. */
  15187. {
  15188. char foo[21];
  15189. char bar[21];
  15190. int i;
  15191. for (i = 0; i < 4; i++)
  15192. {
  15193. char *a = foo + i;
  15194. char *b = bar + i;
  15195. strcpy (a, "--------01111111");
  15196. strcpy (b, "--------10000000");
  15197. if (memcmp (a, b, 16) >= 0)
  15198. return 1;
  15199. }
  15200. return 0;
  15201. }
  15202. ;
  15203. return 0;
  15204. }
  15205. _ACEOF
  15206. if ac_fn_c_try_run "$LINENO"; then :
  15207. ac_cv_func_memcmp_working=yes
  15208. else
  15209. ac_cv_func_memcmp_working=no
  15210. fi
  15211. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15212. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15213. fi
  15214. fi
  15215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  15216. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  15217. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  15218. *" memcmp.$ac_objext "* ) ;;
  15219. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  15220. ;;
  15221. esac
  15222. if test x$ac_cv_func_memcmp_working = xyes; then
  15223. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  15224. fi
  15225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  15226. $as_echo_n "checking for working strtod... " >&6; }
  15227. if ${ac_cv_func_strtod+:} false; then :
  15228. $as_echo_n "(cached) " >&6
  15229. else
  15230. if test "$cross_compiling" = yes; then :
  15231. ac_cv_func_strtod=no
  15232. else
  15233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15234. /* end confdefs.h. */
  15235. $ac_includes_default
  15236. #ifndef strtod
  15237. double strtod ();
  15238. #endif
  15239. int
  15240. main()
  15241. {
  15242. {
  15243. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  15244. char *string = " +69";
  15245. char *term;
  15246. double value;
  15247. value = strtod (string, &term);
  15248. if (value != 69 || term != (string + 4))
  15249. return 1;
  15250. }
  15251. {
  15252. /* Under Solaris 2.4, strtod returns the wrong value for the
  15253. terminating character under some conditions. */
  15254. char *string = "NaN";
  15255. char *term;
  15256. strtod (string, &term);
  15257. if (term != string && *(term - 1) == 0)
  15258. return 1;
  15259. }
  15260. return 0;
  15261. }
  15262. _ACEOF
  15263. if ac_fn_c_try_run "$LINENO"; then :
  15264. ac_cv_func_strtod=yes
  15265. else
  15266. ac_cv_func_strtod=no
  15267. fi
  15268. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15269. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15270. fi
  15271. fi
  15272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  15273. $as_echo "$ac_cv_func_strtod" >&6; }
  15274. if test $ac_cv_func_strtod = no; then
  15275. case " $LIBOBJS " in
  15276. *" strtod.$ac_objext "* ) ;;
  15277. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  15278. ;;
  15279. esac
  15280. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  15281. if test "x$ac_cv_func_pow" = xyes; then :
  15282. fi
  15283. if test $ac_cv_func_pow = no; then
  15284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15285. $as_echo_n "checking for pow in -lm... " >&6; }
  15286. if ${ac_cv_lib_m_pow+:} false; then :
  15287. $as_echo_n "(cached) " >&6
  15288. else
  15289. ac_check_lib_save_LIBS=$LIBS
  15290. LIBS="-lm $LIBS"
  15291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15292. /* end confdefs.h. */
  15293. /* Override any GCC internal prototype to avoid an error.
  15294. Use char because int might match the return type of a GCC
  15295. builtin and then its argument prototype would still apply. */
  15296. #ifdef __cplusplus
  15297. extern "C"
  15298. #endif
  15299. char pow ();
  15300. int
  15301. main ()
  15302. {
  15303. return pow ();
  15304. ;
  15305. return 0;
  15306. }
  15307. _ACEOF
  15308. if ac_fn_c_try_link "$LINENO"; then :
  15309. ac_cv_lib_m_pow=yes
  15310. else
  15311. ac_cv_lib_m_pow=no
  15312. fi
  15313. rm -f core conftest.err conftest.$ac_objext \
  15314. conftest$ac_exeext conftest.$ac_ext
  15315. LIBS=$ac_check_lib_save_LIBS
  15316. fi
  15317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15318. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15319. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15320. POW_LIB=-lm
  15321. else
  15322. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  15323. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  15324. fi
  15325. fi
  15326. fi
  15327. if test x$ac_cv_func_strtod = xyes; then
  15328. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  15329. fi
  15330. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  15331. if test "x$ac_cv_func_mprotect" = xyes; then :
  15332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15333. /* end confdefs.h. */
  15334. #include <sys/types.h>
  15335. #include <sys/mman.h>
  15336. int
  15337. main ()
  15338. {
  15339. ;
  15340. return 0;
  15341. }
  15342. _ACEOF
  15343. if ac_fn_c_try_compile "$LINENO"; then :
  15344. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  15345. fi
  15346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15347. fi
  15348. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv bsearch qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat _wcsdup wcsdup wcsstr wcscmp wcsncmp wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp strlen strlcpy strlcat _strrev _strupr _strlwr index rindex strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval elf_aux_info poll _Exit
  15349. do :
  15350. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15351. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15352. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15353. cat >>confdefs.h <<_ACEOF
  15354. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15355. _ACEOF
  15356. fi
  15357. done
  15358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15359. $as_echo_n "checking for pow in -lm... " >&6; }
  15360. if ${ac_cv_lib_m_pow+:} false; then :
  15361. $as_echo_n "(cached) " >&6
  15362. else
  15363. ac_check_lib_save_LIBS=$LIBS
  15364. LIBS="-lm $LIBS"
  15365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15366. /* end confdefs.h. */
  15367. /* Override any GCC internal prototype to avoid an error.
  15368. Use char because int might match the return type of a GCC
  15369. builtin and then its argument prototype would still apply. */
  15370. #ifdef __cplusplus
  15371. extern "C"
  15372. #endif
  15373. char pow ();
  15374. int
  15375. main ()
  15376. {
  15377. return pow ();
  15378. ;
  15379. return 0;
  15380. }
  15381. _ACEOF
  15382. if ac_fn_c_try_link "$LINENO"; then :
  15383. ac_cv_lib_m_pow=yes
  15384. else
  15385. ac_cv_lib_m_pow=no
  15386. fi
  15387. rm -f core conftest.err conftest.$ac_objext \
  15388. conftest$ac_exeext conftest.$ac_ext
  15389. LIBS=$ac_check_lib_save_LIBS
  15390. fi
  15391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15392. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15393. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15394. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  15395. fi
  15396. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf trunc truncf fmod fmodf log logf log10 log10f lround lroundf pow powf round roundf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  15397. do :
  15398. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15399. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15400. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15401. cat >>confdefs.h <<_ACEOF
  15402. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15403. _ACEOF
  15404. fi
  15405. done
  15406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  15407. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  15408. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  15409. $as_echo_n "(cached) " >&6
  15410. else
  15411. ac_check_lib_save_LIBS=$LIBS
  15412. LIBS="-liconv $LIBS"
  15413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15414. /* end confdefs.h. */
  15415. /* Override any GCC internal prototype to avoid an error.
  15416. Use char because int might match the return type of a GCC
  15417. builtin and then its argument prototype would still apply. */
  15418. #ifdef __cplusplus
  15419. extern "C"
  15420. #endif
  15421. char iconv_open ();
  15422. int
  15423. main ()
  15424. {
  15425. return iconv_open ();
  15426. ;
  15427. return 0;
  15428. }
  15429. _ACEOF
  15430. if ac_fn_c_try_link "$LINENO"; then :
  15431. ac_cv_lib_iconv_iconv_open=yes
  15432. else
  15433. ac_cv_lib_iconv_iconv_open=no
  15434. fi
  15435. rm -f core conftest.err conftest.$ac_objext \
  15436. conftest$ac_exeext conftest.$ac_ext
  15437. LIBS=$ac_check_lib_save_LIBS
  15438. fi
  15439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  15440. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  15441. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  15442. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  15443. fi
  15444. for ac_func in iconv
  15445. do :
  15446. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  15447. if test "x$ac_cv_func_iconv" = xyes; then :
  15448. cat >>confdefs.h <<_ACEOF
  15449. #define HAVE_ICONV 1
  15450. _ACEOF
  15451. fi
  15452. done
  15453. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  15454. "
  15455. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  15456. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  15457. fi
  15458. for ac_header in libunwind.h
  15459. do :
  15460. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  15461. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  15462. cat >>confdefs.h <<_ACEOF
  15463. #define HAVE_LIBUNWIND_H 1
  15464. _ACEOF
  15465. fi
  15466. done
  15467. fi
  15468. # Check whether --enable-gcc-atomics was given.
  15469. if test "${enable_gcc_atomics+set}" = set; then :
  15470. enableval=$enable_gcc_atomics;
  15471. else
  15472. enable_gcc_atomics=yes
  15473. fi
  15474. if test x$enable_gcc_atomics = xyes; then
  15475. have_gcc_atomics=no
  15476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  15477. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  15478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15479. /* end confdefs.h. */
  15480. int
  15481. main ()
  15482. {
  15483. int a;
  15484. void *x, *y, *z;
  15485. __sync_lock_test_and_set(&a, 4);
  15486. __sync_lock_test_and_set(&x, y);
  15487. __sync_fetch_and_add(&a, 1);
  15488. __sync_bool_compare_and_swap(&a, 5, 10);
  15489. __sync_bool_compare_and_swap(&x, y, z);
  15490. ;
  15491. return 0;
  15492. }
  15493. _ACEOF
  15494. if ac_fn_c_try_link "$LINENO"; then :
  15495. have_gcc_atomics=yes
  15496. fi
  15497. rm -f core conftest.err conftest.$ac_objext \
  15498. conftest$ac_exeext conftest.$ac_ext
  15499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  15500. $as_echo "$have_gcc_atomics" >&6; }
  15501. if test x$have_gcc_atomics = xyes; then
  15502. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  15503. else
  15504. # See if we have the minimum operation needed for GCC atomics
  15505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15506. /* end confdefs.h. */
  15507. int
  15508. main ()
  15509. {
  15510. int a;
  15511. __sync_lock_test_and_set(&a, 1);
  15512. __sync_lock_release(&a);
  15513. ;
  15514. return 0;
  15515. }
  15516. _ACEOF
  15517. if ac_fn_c_try_link "$LINENO"; then :
  15518. have_gcc_sync_lock_test_and_set=yes
  15519. fi
  15520. rm -f core conftest.err conftest.$ac_objext \
  15521. conftest$ac_exeext conftest.$ac_ext
  15522. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  15523. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  15524. fi
  15525. fi
  15526. fi
  15527. # Standard C sources
  15528. SOURCES="$SOURCES $srcdir/src/*.c"
  15529. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  15530. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  15531. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  15532. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  15533. SOURCES="$SOURCES $srcdir/src/events/*.c"
  15534. SOURCES="$SOURCES $srcdir/src/file/*.c"
  15535. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  15536. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  15537. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  15538. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  15539. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  15540. SOURCES="$SOURCES $srcdir/src/power/*.c"
  15541. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  15542. SOURCES="$SOURCES $srcdir/src/render/*.c"
  15543. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  15544. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  15545. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  15546. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  15547. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  15548. SOURCES="$SOURCES $srcdir/src/video/*.c"
  15549. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  15550. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  15551. case "$host" in
  15552. *-*-emscripten*)
  15553. default_atomic=no
  15554. ;;
  15555. *)
  15556. default_atomic=yes
  15557. ;;
  15558. esac
  15559. # Check whether --enable-atomic was given.
  15560. if test "${enable_atomic+set}" = set; then :
  15561. enableval=$enable_atomic;
  15562. else
  15563. enable_atomic=$default_atomic
  15564. fi
  15565. if test x$enable_atomic != xyes; then
  15566. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  15567. else
  15568. SUMMARY_modules="${SUMMARY_modules} atomic"
  15569. fi
  15570. # Check whether --enable-audio was given.
  15571. if test "${enable_audio+set}" = set; then :
  15572. enableval=$enable_audio;
  15573. else
  15574. enable_audio=yes
  15575. fi
  15576. if test x$enable_audio != xyes; then
  15577. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  15578. else
  15579. SUMMARY_modules="${SUMMARY_modules} audio"
  15580. fi
  15581. # Check whether --enable-video was given.
  15582. if test "${enable_video+set}" = set; then :
  15583. enableval=$enable_video;
  15584. else
  15585. enable_video=yes
  15586. fi
  15587. if test x$enable_video != xyes; then
  15588. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  15589. else
  15590. SUMMARY_modules="${SUMMARY_modules} video"
  15591. fi
  15592. # Check whether --enable-render was given.
  15593. if test "${enable_render+set}" = set; then :
  15594. enableval=$enable_render;
  15595. else
  15596. enable_render=yes
  15597. fi
  15598. if test x$enable_render != xyes; then
  15599. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  15600. else
  15601. SUMMARY_modules="${SUMMARY_modules} render"
  15602. fi
  15603. # Check whether --enable-events was given.
  15604. if test "${enable_events+set}" = set; then :
  15605. enableval=$enable_events;
  15606. else
  15607. enable_events=yes
  15608. fi
  15609. if test x$enable_events != xyes; then
  15610. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15611. else
  15612. SUMMARY_modules="${SUMMARY_modules} events"
  15613. fi
  15614. # Check whether --enable-joystick was given.
  15615. if test "${enable_joystick+set}" = set; then :
  15616. enableval=$enable_joystick;
  15617. else
  15618. enable_joystick=yes
  15619. fi
  15620. if test x$enable_joystick != xyes; then
  15621. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15622. else
  15623. SUMMARY_modules="${SUMMARY_modules} joystick"
  15624. fi
  15625. # Check whether --enable-haptic was given.
  15626. if test "${enable_haptic+set}" = set; then :
  15627. enableval=$enable_haptic;
  15628. else
  15629. enable_haptic=yes
  15630. fi
  15631. if test x$enable_haptic != xyes; then
  15632. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15633. else
  15634. SUMMARY_modules="${SUMMARY_modules} haptic"
  15635. fi
  15636. # Check whether --enable-hidapi was given.
  15637. if test "${enable_hidapi+set}" = set; then :
  15638. enableval=$enable_hidapi;
  15639. else
  15640. enable_hidapi=yes
  15641. fi
  15642. if test x$enable_hidapi != xyes; then
  15643. $as_echo "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  15644. else
  15645. SUMMARY_modules="${SUMMARY_modules} hidapi"
  15646. fi
  15647. # Check whether --enable-sensor was given.
  15648. if test "${enable_sensor+set}" = set; then :
  15649. enableval=$enable_sensor;
  15650. else
  15651. enable_sensor=yes
  15652. fi
  15653. if test x$enable_sensor != xyes; then
  15654. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15655. else
  15656. SUMMARY_modules="${SUMMARY_modules} sensor"
  15657. fi
  15658. # Check whether --enable-power was given.
  15659. if test "${enable_power+set}" = set; then :
  15660. enableval=$enable_power;
  15661. else
  15662. enable_power=yes
  15663. fi
  15664. if test x$enable_power != xyes; then
  15665. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15666. else
  15667. SUMMARY_modules="${SUMMARY_modules} power"
  15668. fi
  15669. # Check whether --enable-filesystem was given.
  15670. if test "${enable_filesystem+set}" = set; then :
  15671. enableval=$enable_filesystem;
  15672. else
  15673. enable_filesystem=yes
  15674. fi
  15675. if test x$enable_filesystem != xyes; then
  15676. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15677. else
  15678. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15679. fi
  15680. # Check whether --enable-threads was given.
  15681. if test "${enable_threads+set}" = set; then :
  15682. enableval=$enable_threads;
  15683. else
  15684. enable_threads=yes
  15685. fi
  15686. if test x$enable_threads != xyes; then
  15687. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15688. else
  15689. SUMMARY_modules="${SUMMARY_modules} threads"
  15690. fi
  15691. # Check whether --enable-timers was given.
  15692. if test "${enable_timers+set}" = set; then :
  15693. enableval=$enable_timers;
  15694. else
  15695. enable_timers=yes
  15696. fi
  15697. if test x$enable_timers != xyes; then
  15698. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15699. else
  15700. SUMMARY_modules="${SUMMARY_modules} timers"
  15701. fi
  15702. # Check whether --enable-file was given.
  15703. if test "${enable_file+set}" = set; then :
  15704. enableval=$enable_file;
  15705. else
  15706. enable_file=yes
  15707. fi
  15708. if test x$enable_file != xyes; then
  15709. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15710. else
  15711. SUMMARY_modules="${SUMMARY_modules} file"
  15712. fi
  15713. # Check whether --enable-misc was given.
  15714. if test "${enable_misc+set}" = set; then :
  15715. enableval=$enable_misc;
  15716. else
  15717. enable_misc=yes
  15718. fi
  15719. if test x$enable_misc != xyes; then
  15720. $as_echo "#define SDL_MISC_DISABLED 1" >>confdefs.h
  15721. else
  15722. SUMMARY_modules="${SUMMARY_modules} misc"
  15723. fi
  15724. # Check whether --enable-locale was given.
  15725. if test "${enable_locale+set}" = set; then :
  15726. enableval=$enable_locale;
  15727. else
  15728. enable_locale=yes
  15729. fi
  15730. if test x$enable_locale != xyes; then
  15731. $as_echo "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  15732. else
  15733. SUMMARY_modules="${SUMMARY_modules} locale"
  15734. fi
  15735. # Check whether --enable-loadso was given.
  15736. if test "${enable_loadso+set}" = set; then :
  15737. enableval=$enable_loadso;
  15738. else
  15739. enable_loadso=yes
  15740. fi
  15741. if test x$enable_loadso != xyes; then
  15742. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15743. else
  15744. SUMMARY_modules="${SUMMARY_modules} loadso"
  15745. fi
  15746. # Check whether --enable-cpuinfo was given.
  15747. if test "${enable_cpuinfo+set}" = set; then :
  15748. enableval=$enable_cpuinfo;
  15749. else
  15750. enable_cpuinfo=yes
  15751. fi
  15752. if test x$enable_cpuinfo != xyes; then
  15753. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15754. else
  15755. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15756. fi
  15757. # Check whether --enable-assembly was given.
  15758. if test "${enable_assembly+set}" = set; then :
  15759. enableval=$enable_assembly;
  15760. else
  15761. enable_assembly=yes
  15762. fi
  15763. if test x$enable_assembly = xyes; then
  15764. SUMMARY_modules="${SUMMARY_modules} assembly"
  15765. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15766. # Make sure that we don't generate floating point code that would
  15767. # cause illegal instruction exceptions on older processors
  15768. case "$host" in
  15769. *-*-darwin*)
  15770. # Don't need to worry about Apple hardware, it's all SSE capable
  15771. default_ssemath=yes
  15772. ;;
  15773. *64-*-*)
  15774. # x86 64-bit architectures all have SSE instructions
  15775. default_ssemath=yes
  15776. ;;
  15777. *)
  15778. default_ssemath=no
  15779. ;;
  15780. esac
  15781. # Check whether --enable-ssemath was given.
  15782. if test "${enable_ssemath+set}" = set; then :
  15783. enableval=$enable_ssemath;
  15784. else
  15785. enable_ssemath=$default_ssemath
  15786. fi
  15787. if test x$enable_ssemath = xno; then
  15788. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15789. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15790. fi
  15791. fi
  15792. # Check whether --enable-mmx was given.
  15793. if test "${enable_mmx+set}" = set; then :
  15794. enableval=$enable_mmx;
  15795. else
  15796. enable_mmx=yes
  15797. fi
  15798. if test x$enable_mmx = xyes; then
  15799. save_CFLAGS="$CFLAGS"
  15800. have_gcc_mmx=no
  15801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15802. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15803. mmx_CFLAGS="-mmmx"
  15804. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15806. /* end confdefs.h. */
  15807. #ifdef __MINGW32__
  15808. #include <_mingw.h>
  15809. #ifdef __MINGW64_VERSION_MAJOR
  15810. #include <intrin.h>
  15811. #else
  15812. #include <mmintrin.h>
  15813. #endif
  15814. #else
  15815. #include <mmintrin.h>
  15816. #endif
  15817. #ifndef __MMX__
  15818. #error Assembler CPP flag not enabled
  15819. #endif
  15820. int
  15821. main ()
  15822. {
  15823. ;
  15824. return 0;
  15825. }
  15826. _ACEOF
  15827. if ac_fn_c_try_compile "$LINENO"; then :
  15828. have_gcc_mmx=yes
  15829. fi
  15830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15832. $as_echo "$have_gcc_mmx" >&6; }
  15833. CFLAGS="$save_CFLAGS"
  15834. if test x$have_gcc_mmx = xyes; then
  15835. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15836. SUMMARY_math="${SUMMARY_math} mmx"
  15837. fi
  15838. fi
  15839. # Check whether --enable-3dnow was given.
  15840. if test "${enable_3dnow+set}" = set; then :
  15841. enableval=$enable_3dnow;
  15842. else
  15843. enable_3dnow=yes
  15844. fi
  15845. if test x$enable_3dnow = xyes; then
  15846. save_CFLAGS="$CFLAGS"
  15847. have_gcc_3dnow=no
  15848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15849. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15850. amd3dnow_CFLAGS="-m3dnow"
  15851. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15853. /* end confdefs.h. */
  15854. #include <mm3dnow.h>
  15855. #ifndef __3dNOW__
  15856. #error Assembler CPP flag not enabled
  15857. #endif
  15858. int
  15859. main ()
  15860. {
  15861. void *p = 0;
  15862. _m_prefetch(p);
  15863. ;
  15864. return 0;
  15865. }
  15866. _ACEOF
  15867. if ac_fn_c_try_link "$LINENO"; then :
  15868. have_gcc_3dnow=yes
  15869. fi
  15870. rm -f core conftest.err conftest.$ac_objext \
  15871. conftest$ac_exeext conftest.$ac_ext
  15872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15873. $as_echo "$have_gcc_3dnow" >&6; }
  15874. CFLAGS="$save_CFLAGS"
  15875. if test x$have_gcc_3dnow = xyes; then
  15876. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15877. SUMMARY_math="${SUMMARY_math} 3dnow"
  15878. fi
  15879. fi
  15880. # Check whether --enable-sse was given.
  15881. if test "${enable_sse+set}" = set; then :
  15882. enableval=$enable_sse;
  15883. else
  15884. enable_sse=yes
  15885. fi
  15886. if test x$enable_sse = xyes; then
  15887. save_CFLAGS="$CFLAGS"
  15888. have_gcc_sse=no
  15889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15890. $as_echo_n "checking for GCC -msse option... " >&6; }
  15891. sse_CFLAGS="-msse"
  15892. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15894. /* end confdefs.h. */
  15895. #ifdef __MINGW32__
  15896. #include <_mingw.h>
  15897. #ifdef __MINGW64_VERSION_MAJOR
  15898. #include <intrin.h>
  15899. #else
  15900. #include <xmmintrin.h>
  15901. #endif
  15902. #else
  15903. #include <xmmintrin.h>
  15904. #endif
  15905. #ifndef __SSE__
  15906. #error Assembler CPP flag not enabled
  15907. #endif
  15908. int
  15909. main ()
  15910. {
  15911. ;
  15912. return 0;
  15913. }
  15914. _ACEOF
  15915. if ac_fn_c_try_compile "$LINENO"; then :
  15916. have_gcc_sse=yes
  15917. fi
  15918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15920. $as_echo "$have_gcc_sse" >&6; }
  15921. CFLAGS="$save_CFLAGS"
  15922. if test x$have_gcc_sse = xyes; then
  15923. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15924. SUMMARY_math="${SUMMARY_math} sse"
  15925. fi
  15926. fi
  15927. # Check whether --enable-sse2 was given.
  15928. if test "${enable_sse2+set}" = set; then :
  15929. enableval=$enable_sse2;
  15930. else
  15931. enable_sse2=$default_ssemath
  15932. fi
  15933. if test x$enable_sse2 = xyes; then
  15934. save_CFLAGS="$CFLAGS"
  15935. have_gcc_sse2=no
  15936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15937. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15938. sse2_CFLAGS="-msse2"
  15939. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15941. /* end confdefs.h. */
  15942. #ifdef __MINGW32__
  15943. #include <_mingw.h>
  15944. #ifdef __MINGW64_VERSION_MAJOR
  15945. #include <intrin.h>
  15946. #else
  15947. #include <emmintrin.h>
  15948. #endif
  15949. #else
  15950. #include <emmintrin.h>
  15951. #endif
  15952. #ifndef __SSE2__
  15953. #error Assembler CPP flag not enabled
  15954. #endif
  15955. int
  15956. main ()
  15957. {
  15958. ;
  15959. return 0;
  15960. }
  15961. _ACEOF
  15962. if ac_fn_c_try_compile "$LINENO"; then :
  15963. have_gcc_sse2=yes
  15964. fi
  15965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15967. $as_echo "$have_gcc_sse2" >&6; }
  15968. CFLAGS="$save_CFLAGS"
  15969. if test x$have_gcc_sse2 = xyes; then
  15970. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15971. SUMMARY_math="${SUMMARY_math} sse2"
  15972. fi
  15973. fi
  15974. # Check whether --enable-sse3 was given.
  15975. if test "${enable_sse3+set}" = set; then :
  15976. enableval=$enable_sse3;
  15977. else
  15978. enable_sse3=$default_ssemath
  15979. fi
  15980. if test x$enable_sse3 = xyes; then
  15981. save_CFLAGS="$CFLAGS"
  15982. have_gcc_sse3=no
  15983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15984. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15985. sse3_CFLAGS="-msse3"
  15986. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15988. /* end confdefs.h. */
  15989. #ifdef __MINGW32__
  15990. #include <_mingw.h>
  15991. #ifdef __MINGW64_VERSION_MAJOR
  15992. #include <intrin.h>
  15993. #else
  15994. #include <pmmintrin.h>
  15995. #endif
  15996. #else
  15997. #include <pmmintrin.h>
  15998. #endif
  15999. #ifndef __SSE2__
  16000. #error Assembler CPP flag not enabled
  16001. #endif
  16002. int
  16003. main ()
  16004. {
  16005. ;
  16006. return 0;
  16007. }
  16008. _ACEOF
  16009. if ac_fn_c_try_compile "$LINENO"; then :
  16010. have_gcc_sse3=yes
  16011. fi
  16012. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  16014. $as_echo "$have_gcc_sse3" >&6; }
  16015. CFLAGS="$save_CFLAGS"
  16016. if test x$have_gcc_sse3 = xyes; then
  16017. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  16018. SUMMARY_math="${SUMMARY_math} sse3"
  16019. fi
  16020. fi
  16021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  16022. $as_echo_n "checking for immintrin.h... " >&6; }
  16023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16024. /* end confdefs.h. */
  16025. #include <immintrin.h>
  16026. int
  16027. main ()
  16028. {
  16029. ;
  16030. return 0;
  16031. }
  16032. _ACEOF
  16033. if ac_fn_c_try_compile "$LINENO"; then :
  16034. have_immintrin_h_hdr=yes
  16035. else
  16036. have_immintrin_h_hdr=no
  16037. fi
  16038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  16040. $as_echo "$have_immintrin_h_hdr" >&6; }
  16041. if test x$have_immintrin_h_hdr = xyes; then
  16042. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  16043. fi
  16044. # Check whether --enable-altivec was given.
  16045. if test "${enable_altivec+set}" = set; then :
  16046. enableval=$enable_altivec;
  16047. else
  16048. enable_altivec=yes
  16049. fi
  16050. if test x$enable_altivec = xyes; then
  16051. save_CFLAGS="$CFLAGS"
  16052. have_gcc_altivec=no
  16053. have_altivec_h_hdr=no
  16054. altivec_CFLAGS="-maltivec"
  16055. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  16057. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  16058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16059. /* end confdefs.h. */
  16060. #include <altivec.h>
  16061. vector unsigned int vzero() {
  16062. return vec_splat_u32(0);
  16063. }
  16064. int
  16065. main ()
  16066. {
  16067. ;
  16068. return 0;
  16069. }
  16070. _ACEOF
  16071. if ac_fn_c_try_compile "$LINENO"; then :
  16072. have_gcc_altivec=yes
  16073. have_altivec_h_hdr=yes
  16074. fi
  16075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16077. $as_echo "$have_gcc_altivec" >&6; }
  16078. if test x$have_gcc_altivec = xno; then
  16079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  16080. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  16081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16082. /* end confdefs.h. */
  16083. vector unsigned int vzero() {
  16084. return vec_splat_u32(0);
  16085. }
  16086. int
  16087. main ()
  16088. {
  16089. ;
  16090. return 0;
  16091. }
  16092. _ACEOF
  16093. if ac_fn_c_try_compile "$LINENO"; then :
  16094. have_gcc_altivec=yes
  16095. fi
  16096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16098. $as_echo "$have_gcc_altivec" >&6; }
  16099. fi
  16100. if test x$have_gcc_altivec = xno; then
  16101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  16102. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  16103. altivec_CFLAGS="-faltivec"
  16104. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16106. /* end confdefs.h. */
  16107. #include <altivec.h>
  16108. vector unsigned int vzero() {
  16109. return vec_splat_u32(0);
  16110. }
  16111. int
  16112. main ()
  16113. {
  16114. ;
  16115. return 0;
  16116. }
  16117. _ACEOF
  16118. if ac_fn_c_try_compile "$LINENO"; then :
  16119. have_gcc_altivec=yes
  16120. have_altivec_h_hdr=yes
  16121. fi
  16122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16124. $as_echo "$have_gcc_altivec" >&6; }
  16125. fi
  16126. if test x$have_gcc_altivec = xno; then
  16127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  16128. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  16129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16130. /* end confdefs.h. */
  16131. vector unsigned int vzero() {
  16132. return vec_splat_u32(0);
  16133. }
  16134. int
  16135. main ()
  16136. {
  16137. ;
  16138. return 0;
  16139. }
  16140. _ACEOF
  16141. if ac_fn_c_try_compile "$LINENO"; then :
  16142. have_gcc_altivec=yes
  16143. fi
  16144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16146. $as_echo "$have_gcc_altivec" >&6; }
  16147. fi
  16148. CFLAGS="$save_CFLAGS"
  16149. if test x$have_gcc_altivec = xyes; then
  16150. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  16151. if test x$have_altivec_h_hdr = xyes; then
  16152. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  16153. fi
  16154. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  16155. SUMMARY_math="${SUMMARY_math} altivec"
  16156. fi
  16157. fi
  16158. fi
  16159. CheckOSS()
  16160. {
  16161. # Check whether --enable-oss was given.
  16162. if test "${enable_oss+set}" = set; then :
  16163. enableval=$enable_oss;
  16164. else
  16165. enable_oss=maybe
  16166. fi
  16167. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  16168. # use sndio instead. So on there, we default to disabled. You can force
  16169. # it on if you really want, though.
  16170. if test x$enable_oss = xmaybe; then
  16171. enable_oss=yes
  16172. case "$host" in
  16173. *-*-openbsd*)
  16174. enable_oss=no;;
  16175. esac
  16176. fi
  16177. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  16178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  16179. $as_echo_n "checking for OSS audio support... " >&6; }
  16180. have_oss=no
  16181. if test x$have_oss != xyes; then
  16182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16183. /* end confdefs.h. */
  16184. #include <sys/soundcard.h>
  16185. int
  16186. main ()
  16187. {
  16188. int arg = SNDCTL_DSP_SETFRAGMENT;
  16189. ;
  16190. return 0;
  16191. }
  16192. _ACEOF
  16193. if ac_fn_c_try_compile "$LINENO"; then :
  16194. have_oss=yes
  16195. fi
  16196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16197. fi
  16198. if test x$have_oss != xyes; then
  16199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16200. /* end confdefs.h. */
  16201. #include <soundcard.h>
  16202. int
  16203. main ()
  16204. {
  16205. int arg = SNDCTL_DSP_SETFRAGMENT;
  16206. ;
  16207. return 0;
  16208. }
  16209. _ACEOF
  16210. if ac_fn_c_try_compile "$LINENO"; then :
  16211. have_oss=yes
  16212. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  16213. fi
  16214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16215. fi
  16216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  16217. $as_echo "$have_oss" >&6; }
  16218. if test x$have_oss = xyes; then
  16219. SUMMARY_audio="${SUMMARY_audio} oss"
  16220. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  16221. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  16222. have_audio=yes
  16223. # We may need to link with ossaudio emulation library
  16224. case "$host" in
  16225. *-*-openbsd*|*-*-netbsd*)
  16226. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  16227. esac
  16228. fi
  16229. fi
  16230. }
  16231. CheckALSA()
  16232. {
  16233. # Check whether --enable-alsa was given.
  16234. if test "${enable_alsa+set}" = set; then :
  16235. enableval=$enable_alsa;
  16236. else
  16237. enable_alsa=yes
  16238. fi
  16239. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  16240. alsa_save_CFLAGS="$CFLAGS"
  16241. alsa_save_LDFLAGS="$LDFLAGS"
  16242. alsa_save_LIBS="$LIBS"
  16243. alsa_found=yes
  16244. # Check whether --with-alsa-prefix was given.
  16245. if test "${with_alsa_prefix+set}" = set; then :
  16246. withval=$with_alsa_prefix; alsa_prefix="$withval"
  16247. else
  16248. alsa_prefix=""
  16249. fi
  16250. # Check whether --with-alsa-inc-prefix was given.
  16251. if test "${with_alsa_inc_prefix+set}" = set; then :
  16252. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  16253. else
  16254. alsa_inc_prefix=""
  16255. fi
  16256. # Check whether --enable-alsatest was given.
  16257. if test "${enable_alsatest+set}" = set; then :
  16258. enableval=$enable_alsatest; enable_alsatest="$enableval"
  16259. else
  16260. enable_alsatest=yes
  16261. fi
  16262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  16263. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  16264. if test "$alsa_inc_prefix" != "" ; then
  16265. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  16266. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  16267. fi
  16268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  16269. $as_echo "$ALSA_CFLAGS" >&6; }
  16270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  16271. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  16272. if test "$alsa_prefix" != "" ; then
  16273. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  16274. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  16275. fi
  16276. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  16277. LIBS=`echo $LIBS | sed 's/-lm//'`
  16278. LIBS=`echo $LIBS | sed 's/-ldl//'`
  16279. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  16280. LIBS=`echo $LIBS | sed 's/ //'`
  16281. LIBS="$ALSA_LIBS $LIBS"
  16282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  16283. $as_echo "$ALSA_LIBS" >&6; }
  16284. min_alsa_version=1.0.11
  16285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  16286. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  16287. no_alsa=""
  16288. alsa_min_major_version=`echo $min_alsa_version | \
  16289. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16290. alsa_min_minor_version=`echo $min_alsa_version | \
  16291. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16292. alsa_min_micro_version=`echo $min_alsa_version | \
  16293. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16294. ac_ext=c
  16295. ac_cpp='$CPP $CPPFLAGS'
  16296. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16297. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16298. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16300. /* end confdefs.h. */
  16301. #include <alsa/asoundlib.h>
  16302. int
  16303. main ()
  16304. {
  16305. /* ensure backward compatibility */
  16306. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  16307. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  16308. #endif
  16309. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  16310. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  16311. #endif
  16312. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  16313. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  16314. #endif
  16315. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  16316. exit(0);
  16317. # else
  16318. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  16319. # error not present
  16320. # endif
  16321. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  16322. exit(0);
  16323. # else
  16324. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  16325. # error not present
  16326. # endif
  16327. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  16328. # error not present
  16329. # endif
  16330. # endif
  16331. # endif
  16332. exit(0);
  16333. ;
  16334. return 0;
  16335. }
  16336. _ACEOF
  16337. if ac_fn_c_try_compile "$LINENO"; then :
  16338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  16339. $as_echo "found." >&6; }
  16340. else
  16341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  16342. $as_echo "not present." >&6; }
  16343. alsa_found=no
  16344. fi
  16345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16346. ac_ext=c
  16347. ac_cpp='$CPP $CPPFLAGS'
  16348. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16349. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16350. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16351. if test "x$enable_alsatest" = "xyes"; then
  16352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  16353. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  16354. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  16355. $as_echo_n "(cached) " >&6
  16356. else
  16357. ac_check_lib_save_LIBS=$LIBS
  16358. LIBS="-lasound $LIBS"
  16359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16360. /* end confdefs.h. */
  16361. /* Override any GCC internal prototype to avoid an error.
  16362. Use char because int might match the return type of a GCC
  16363. builtin and then its argument prototype would still apply. */
  16364. #ifdef __cplusplus
  16365. extern "C"
  16366. #endif
  16367. char snd_ctl_open ();
  16368. int
  16369. main ()
  16370. {
  16371. return snd_ctl_open ();
  16372. ;
  16373. return 0;
  16374. }
  16375. _ACEOF
  16376. if ac_fn_c_try_link "$LINENO"; then :
  16377. ac_cv_lib_asound_snd_ctl_open=yes
  16378. else
  16379. ac_cv_lib_asound_snd_ctl_open=no
  16380. fi
  16381. rm -f core conftest.err conftest.$ac_objext \
  16382. conftest$ac_exeext conftest.$ac_ext
  16383. LIBS=$ac_check_lib_save_LIBS
  16384. fi
  16385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  16386. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  16387. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  16388. cat >>confdefs.h <<_ACEOF
  16389. #define HAVE_LIBASOUND 1
  16390. _ACEOF
  16391. LIBS="-lasound $LIBS"
  16392. else
  16393. alsa_found=no
  16394. fi
  16395. fi
  16396. if test "x$alsa_found" = "xyes" ; then
  16397. have_alsa=yes
  16398. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  16399. LIBS=`echo $LIBS | sed 's/ //'`
  16400. LIBS="-lasound $LIBS"
  16401. fi
  16402. if test "x$alsa_found" = "xno" ; then
  16403. have_alsa=no
  16404. CFLAGS="$alsa_save_CFLAGS"
  16405. LDFLAGS="$alsa_save_LDFLAGS"
  16406. LIBS="$alsa_save_LIBS"
  16407. ALSA_CFLAGS=""
  16408. ALSA_LIBS=""
  16409. fi
  16410. # Restore all flags from before the ALSA detection runs
  16411. CFLAGS="$alsa_save_CFLAGS"
  16412. LDFLAGS="$alsa_save_LDFLAGS"
  16413. LIBS="$alsa_save_LIBS"
  16414. if test x$have_alsa = xyes; then
  16415. # Check whether --enable-alsa-shared was given.
  16416. if test "${enable_alsa_shared+set}" = set; then :
  16417. enableval=$enable_alsa_shared;
  16418. else
  16419. enable_alsa_shared=yes
  16420. fi
  16421. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16422. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  16423. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  16424. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  16425. if test x$have_loadso != xyes && \
  16426. test x$enable_alsa_shared = xyes; then
  16427. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  16428. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  16429. fi
  16430. if test x$have_loadso = xyes && \
  16431. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  16432. echo "-- dynamic libasound -> $alsa_lib"
  16433. cat >>confdefs.h <<_ACEOF
  16434. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  16435. _ACEOF
  16436. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  16437. else
  16438. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  16439. SUMMARY_audio="${SUMMARY_audio} alsa"
  16440. fi
  16441. have_audio=yes
  16442. fi
  16443. fi
  16444. }
  16445. CheckJACK()
  16446. {
  16447. # Check whether --enable-jack was given.
  16448. if test "${enable_jack+set}" = set; then :
  16449. enableval=$enable_jack;
  16450. else
  16451. enable_jack=yes
  16452. fi
  16453. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  16454. pkg_failed=no
  16455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  16456. $as_echo_n "checking for jack >= 0.125... " >&6; }
  16457. if test -n "$JACK_CFLAGS"; then
  16458. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  16459. elif test -n "$PKG_CONFIG"; then
  16460. if test -n "$PKG_CONFIG" && \
  16461. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16462. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16463. ac_status=$?
  16464. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16465. test $ac_status = 0; }; then
  16466. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  16467. test "x$?" != "x0" && pkg_failed=yes
  16468. else
  16469. pkg_failed=yes
  16470. fi
  16471. else
  16472. pkg_failed=untried
  16473. fi
  16474. if test -n "$JACK_LIBS"; then
  16475. pkg_cv_JACK_LIBS="$JACK_LIBS"
  16476. elif test -n "$PKG_CONFIG"; then
  16477. if test -n "$PKG_CONFIG" && \
  16478. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16479. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16480. ac_status=$?
  16481. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16482. test $ac_status = 0; }; then
  16483. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  16484. test "x$?" != "x0" && pkg_failed=yes
  16485. else
  16486. pkg_failed=yes
  16487. fi
  16488. else
  16489. pkg_failed=untried
  16490. fi
  16491. if test $pkg_failed = yes; then
  16492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16493. $as_echo "no" >&6; }
  16494. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16495. _pkg_short_errors_supported=yes
  16496. else
  16497. _pkg_short_errors_supported=no
  16498. fi
  16499. if test $_pkg_short_errors_supported = yes; then
  16500. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16501. else
  16502. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16503. fi
  16504. # Put the nasty error message in config.log where it belongs
  16505. echo "$JACK_PKG_ERRORS" >&5
  16506. audio_jack=no
  16507. elif test $pkg_failed = untried; then
  16508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16509. $as_echo "no" >&6; }
  16510. audio_jack=no
  16511. else
  16512. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  16513. JACK_LIBS=$pkg_cv_JACK_LIBS
  16514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16515. $as_echo "yes" >&6; }
  16516. audio_jack=yes
  16517. fi
  16518. if test x$audio_jack = xyes; then
  16519. # Check whether --enable-jack-shared was given.
  16520. if test "${enable_jack_shared+set}" = set; then :
  16521. enableval=$enable_jack_shared;
  16522. else
  16523. enable_jack_shared=yes
  16524. fi
  16525. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16526. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  16527. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  16528. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  16529. if test x$have_loadso != xyes && \
  16530. test x$enable_jack_shared = xyes; then
  16531. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  16532. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  16533. fi
  16534. if test x$have_loadso = xyes && \
  16535. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  16536. echo "-- dynamic libjack -> $jack_lib"
  16537. cat >>confdefs.h <<_ACEOF
  16538. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  16539. _ACEOF
  16540. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  16541. case "$host" in
  16542. # On Solaris, jack must be linked deferred explicitly
  16543. # to prevent undefined symbol failures.
  16544. *-*-solaris*)
  16545. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  16546. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  16547. esac
  16548. else
  16549. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  16550. SUMMARY_audio="${SUMMARY_audio} jack"
  16551. fi
  16552. have_audio=yes
  16553. fi
  16554. fi
  16555. }
  16556. CheckESD()
  16557. {
  16558. # Check whether --enable-esd was given.
  16559. if test "${enable_esd+set}" = set; then :
  16560. enableval=$enable_esd;
  16561. else
  16562. enable_esd=yes
  16563. fi
  16564. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  16565. # Check whether --with-esd-prefix was given.
  16566. if test "${with_esd_prefix+set}" = set; then :
  16567. withval=$with_esd_prefix; esd_prefix="$withval"
  16568. else
  16569. esd_prefix=""
  16570. fi
  16571. # Check whether --with-esd-exec-prefix was given.
  16572. if test "${with_esd_exec_prefix+set}" = set; then :
  16573. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  16574. else
  16575. esd_exec_prefix=""
  16576. fi
  16577. # Check whether --enable-esdtest was given.
  16578. if test "${enable_esdtest+set}" = set; then :
  16579. enableval=$enable_esdtest;
  16580. else
  16581. enable_esdtest=yes
  16582. fi
  16583. if test x$esd_exec_prefix != x ; then
  16584. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  16585. if test x${ESD_CONFIG+set} != xset ; then
  16586. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  16587. fi
  16588. fi
  16589. if test x$esd_prefix != x ; then
  16590. esd_args="$esd_args --prefix=$esd_prefix"
  16591. if test x${ESD_CONFIG+set} != xset ; then
  16592. ESD_CONFIG=$esd_prefix/bin/esd-config
  16593. fi
  16594. fi
  16595. # Extract the first word of "esd-config", so it can be a program name with args.
  16596. set dummy esd-config; ac_word=$2
  16597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16598. $as_echo_n "checking for $ac_word... " >&6; }
  16599. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  16600. $as_echo_n "(cached) " >&6
  16601. else
  16602. case $ESD_CONFIG in
  16603. [\\/]* | ?:[\\/]*)
  16604. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  16605. ;;
  16606. *)
  16607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16608. for as_dir in $PATH
  16609. do
  16610. IFS=$as_save_IFS
  16611. test -z "$as_dir" && as_dir=.
  16612. for ac_exec_ext in '' $ac_executable_extensions; do
  16613. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16614. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16615. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16616. break 2
  16617. fi
  16618. done
  16619. done
  16620. IFS=$as_save_IFS
  16621. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  16622. ;;
  16623. esac
  16624. fi
  16625. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  16626. if test -n "$ESD_CONFIG"; then
  16627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  16628. $as_echo "$ESD_CONFIG" >&6; }
  16629. else
  16630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16631. $as_echo "no" >&6; }
  16632. fi
  16633. min_esd_version=0.2.8
  16634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  16635. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  16636. no_esd=""
  16637. if test "$ESD_CONFIG" = "no" ; then
  16638. no_esd=yes
  16639. else
  16640. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  16641. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  16642. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  16643. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16644. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  16645. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16646. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  16647. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16648. if test "x$enable_esdtest" = "xyes" ; then
  16649. ac_ext=c
  16650. ac_cpp='$CPP $CPPFLAGS'
  16651. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16652. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16653. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16654. ac_save_CFLAGS="$CFLAGS"
  16655. ac_save_LIBS="$LIBS"
  16656. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16657. LIBS="$LIBS $ESD_LIBS"
  16658. rm -f conf.esdtest
  16659. if test "$cross_compiling" = yes; then :
  16660. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16661. else
  16662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16663. /* end confdefs.h. */
  16664. #include <stdio.h>
  16665. #include <stdlib.h>
  16666. #include <esd.h>
  16667. int main (void)
  16668. {
  16669. int major, minor, micro;
  16670. FILE *fp = fopen("conf.esdtest", "w");
  16671. if (fp) fclose(fp);
  16672. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16673. printf("%s, bad version string\n", "$min_esd_version");
  16674. exit(1);
  16675. }
  16676. if (($esd_major_version > major) ||
  16677. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16678. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16679. {
  16680. return 0;
  16681. }
  16682. else
  16683. {
  16684. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16685. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16686. printf("*** best to upgrade to the required version.\n");
  16687. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16688. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16689. printf("*** config.cache before re-running configure\n");
  16690. return 1;
  16691. }
  16692. }
  16693. _ACEOF
  16694. if ac_fn_c_try_run "$LINENO"; then :
  16695. else
  16696. no_esd=yes
  16697. fi
  16698. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16699. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16700. fi
  16701. CFLAGS="$ac_save_CFLAGS"
  16702. LIBS="$ac_save_LIBS"
  16703. ac_ext=c
  16704. ac_cpp='$CPP $CPPFLAGS'
  16705. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16706. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16707. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16708. fi
  16709. fi
  16710. if test "x$no_esd" = x ; then
  16711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16712. $as_echo "yes" >&6; }
  16713. have_esd=yes
  16714. else
  16715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16716. $as_echo "no" >&6; }
  16717. if test "$ESD_CONFIG" = "no" ; then
  16718. echo "*** The esd-config script installed by ESD could not be found"
  16719. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16720. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16721. echo "*** full path to esd-config."
  16722. else
  16723. if test -f conf.esdtest ; then
  16724. :
  16725. else
  16726. echo "*** Could not run ESD test program, checking why..."
  16727. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16728. LIBS="$LIBS $ESD_LIBS"
  16729. ac_ext=c
  16730. ac_cpp='$CPP $CPPFLAGS'
  16731. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16732. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16733. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16735. /* end confdefs.h. */
  16736. #include <stdio.h>
  16737. #include <esd.h>
  16738. int
  16739. main ()
  16740. {
  16741. return 0;
  16742. ;
  16743. return 0;
  16744. }
  16745. _ACEOF
  16746. if ac_fn_c_try_link "$LINENO"; then :
  16747. echo "*** The test program compiled, but did not run. This usually means"
  16748. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16749. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16750. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16751. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16752. echo "*** is required on your system"
  16753. echo "***"
  16754. echo "*** If you have an old version installed, it is best to remove it, although"
  16755. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16756. else
  16757. echo "*** The test program failed to compile or link. See the file config.log for the"
  16758. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16759. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16760. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16761. fi
  16762. rm -f core conftest.err conftest.$ac_objext \
  16763. conftest$ac_exeext conftest.$ac_ext
  16764. CFLAGS="$ac_save_CFLAGS"
  16765. LIBS="$ac_save_LIBS"
  16766. ac_ext=c
  16767. ac_cpp='$CPP $CPPFLAGS'
  16768. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16769. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16770. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16771. fi
  16772. fi
  16773. ESD_CFLAGS=""
  16774. ESD_LIBS=""
  16775. have_esd=no
  16776. fi
  16777. rm -f conf.esdtest
  16778. if test x$have_esd = xyes; then
  16779. # Check whether --enable-esd-shared was given.
  16780. if test "${enable_esd_shared+set}" = set; then :
  16781. enableval=$enable_esd_shared;
  16782. else
  16783. enable_esd_shared=yes
  16784. fi
  16785. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16786. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16787. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16788. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16789. if test x$have_loadso != xyes && \
  16790. test x$enable_esd_shared = xyes; then
  16791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16792. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16793. fi
  16794. if test x$have_loadso = xyes && \
  16795. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16796. echo "-- dynamic libesd -> $esd_lib"
  16797. cat >>confdefs.h <<_ACEOF
  16798. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16799. _ACEOF
  16800. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16801. else
  16802. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16803. SUMMARY_audio="${SUMMARY_audio} esd"
  16804. fi
  16805. have_audio=yes
  16806. fi
  16807. fi
  16808. }
  16809. CheckPipewire()
  16810. {
  16811. # Check whether --enable-pipewire was given.
  16812. if test "${enable_pipewire+set}" = set; then :
  16813. enableval=$enable_pipewire;
  16814. else
  16815. enable_pipewire=yes
  16816. fi
  16817. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  16818. pkg_failed=no
  16819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  16820. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  16821. if test -n "$PIPEWIRE_CFLAGS"; then
  16822. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  16823. elif test -n "$PKG_CONFIG"; then
  16824. if test -n "$PKG_CONFIG" && \
  16825. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16826. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16827. ac_status=$?
  16828. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16829. test $ac_status = 0; }; then
  16830. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16831. test "x$?" != "x0" && pkg_failed=yes
  16832. else
  16833. pkg_failed=yes
  16834. fi
  16835. else
  16836. pkg_failed=untried
  16837. fi
  16838. if test -n "$PIPEWIRE_LIBS"; then
  16839. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  16840. elif test -n "$PKG_CONFIG"; then
  16841. if test -n "$PKG_CONFIG" && \
  16842. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16843. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16844. ac_status=$?
  16845. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16846. test $ac_status = 0; }; then
  16847. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16848. test "x$?" != "x0" && pkg_failed=yes
  16849. else
  16850. pkg_failed=yes
  16851. fi
  16852. else
  16853. pkg_failed=untried
  16854. fi
  16855. if test $pkg_failed = yes; then
  16856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16857. $as_echo "no" >&6; }
  16858. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16859. _pkg_short_errors_supported=yes
  16860. else
  16861. _pkg_short_errors_supported=no
  16862. fi
  16863. if test $_pkg_short_errors_supported = yes; then
  16864. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16865. else
  16866. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16867. fi
  16868. # Put the nasty error message in config.log where it belongs
  16869. echo "$PIPEWIRE_PKG_ERRORS" >&5
  16870. audio_pipewire=no
  16871. elif test $pkg_failed = untried; then
  16872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16873. $as_echo "no" >&6; }
  16874. audio_pipewire=no
  16875. else
  16876. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  16877. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  16878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16879. $as_echo "yes" >&6; }
  16880. audio_pipewire=yes
  16881. fi
  16882. if test x$audio_pipewire = xyes; then
  16883. # Check whether --enable-pipewire-shared was given.
  16884. if test "${enable_pipewire_shared+set}" = set; then :
  16885. enableval=$enable_pipewire_shared;
  16886. else
  16887. enable_pipewire_shared=yes
  16888. fi
  16889. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16890. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  16891. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  16892. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  16893. if test x$have_loadso != xyes && \
  16894. test x$enable_pipewire_shared = xyes; then
  16895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  16896. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  16897. fi
  16898. if test x$have_loadso = xyes && \
  16899. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  16900. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  16901. cat >>confdefs.h <<_ACEOF
  16902. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  16903. _ACEOF
  16904. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  16905. else
  16906. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  16907. SUMMARY_audio="${SUMMARY_audio} pipewire"
  16908. fi
  16909. have_audio=yes
  16910. fi
  16911. fi
  16912. }
  16913. CheckPulseAudio()
  16914. {
  16915. # Check whether --enable-pulseaudio was given.
  16916. if test "${enable_pulseaudio+set}" = set; then :
  16917. enableval=$enable_pulseaudio;
  16918. else
  16919. enable_pulseaudio=yes
  16920. fi
  16921. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16922. pkg_failed=no
  16923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16924. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16925. if test -n "$PULSEAUDIO_CFLAGS"; then
  16926. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16927. elif test -n "$PKG_CONFIG"; then
  16928. if test -n "$PKG_CONFIG" && \
  16929. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16930. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16931. ac_status=$?
  16932. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16933. test $ac_status = 0; }; then
  16934. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16935. test "x$?" != "x0" && pkg_failed=yes
  16936. else
  16937. pkg_failed=yes
  16938. fi
  16939. else
  16940. pkg_failed=untried
  16941. fi
  16942. if test -n "$PULSEAUDIO_LIBS"; then
  16943. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16944. elif test -n "$PKG_CONFIG"; then
  16945. if test -n "$PKG_CONFIG" && \
  16946. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16947. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16948. ac_status=$?
  16949. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16950. test $ac_status = 0; }; then
  16951. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16952. test "x$?" != "x0" && pkg_failed=yes
  16953. else
  16954. pkg_failed=yes
  16955. fi
  16956. else
  16957. pkg_failed=untried
  16958. fi
  16959. if test $pkg_failed = yes; then
  16960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16961. $as_echo "no" >&6; }
  16962. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16963. _pkg_short_errors_supported=yes
  16964. else
  16965. _pkg_short_errors_supported=no
  16966. fi
  16967. if test $_pkg_short_errors_supported = yes; then
  16968. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16969. else
  16970. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16971. fi
  16972. # Put the nasty error message in config.log where it belongs
  16973. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16974. audio_pulseaudio=no
  16975. elif test $pkg_failed = untried; then
  16976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16977. $as_echo "no" >&6; }
  16978. audio_pulseaudio=no
  16979. else
  16980. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16981. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16983. $as_echo "yes" >&6; }
  16984. audio_pulseaudio=yes
  16985. fi
  16986. if test x$audio_pulseaudio = xyes; then
  16987. # Check whether --enable-pulseaudio-shared was given.
  16988. if test "${enable_pulseaudio_shared+set}" = set; then :
  16989. enableval=$enable_pulseaudio_shared;
  16990. else
  16991. enable_pulseaudio_shared=yes
  16992. fi
  16993. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16994. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16995. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16996. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16997. if test x$have_loadso != xyes && \
  16998. test x$enable_pulseaudio_shared = xyes; then
  16999. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  17000. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  17001. fi
  17002. if test x$have_loadso = xyes && \
  17003. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  17004. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  17005. cat >>confdefs.h <<_ACEOF
  17006. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  17007. _ACEOF
  17008. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  17009. case "$host" in
  17010. # On Solaris, pulseaudio must be linked deferred explicitly
  17011. # to prevent undefined symbol failures.
  17012. *-*-solaris*)
  17013. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  17014. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  17015. esac
  17016. else
  17017. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  17018. SUMMARY_audio="${SUMMARY_audio} pulse"
  17019. fi
  17020. have_audio=yes
  17021. fi
  17022. fi
  17023. }
  17024. CheckARTSC()
  17025. {
  17026. # Check whether --enable-arts was given.
  17027. if test "${enable_arts+set}" = set; then :
  17028. enableval=$enable_arts;
  17029. else
  17030. enable_arts=yes
  17031. fi
  17032. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  17033. # Extract the first word of "artsc-config", so it can be a program name with args.
  17034. set dummy artsc-config; ac_word=$2
  17035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17036. $as_echo_n "checking for $ac_word... " >&6; }
  17037. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  17038. $as_echo_n "(cached) " >&6
  17039. else
  17040. case $ARTSCONFIG in
  17041. [\\/]* | ?:[\\/]*)
  17042. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  17043. ;;
  17044. *)
  17045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17046. for as_dir in $PATH
  17047. do
  17048. IFS=$as_save_IFS
  17049. test -z "$as_dir" && as_dir=.
  17050. for ac_exec_ext in '' $ac_executable_extensions; do
  17051. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17052. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17053. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17054. break 2
  17055. fi
  17056. done
  17057. done
  17058. IFS=$as_save_IFS
  17059. ;;
  17060. esac
  17061. fi
  17062. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  17063. if test -n "$ARTSCONFIG"; then
  17064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  17065. $as_echo "$ARTSCONFIG" >&6; }
  17066. else
  17067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17068. $as_echo "no" >&6; }
  17069. fi
  17070. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  17071. : # arts isn't installed
  17072. else
  17073. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  17074. ARTS_LIBS=`$ARTSCONFIG --libs`
  17075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  17076. $as_echo_n "checking for aRts development environment... " >&6; }
  17077. audio_arts=no
  17078. save_CFLAGS="$CFLAGS"
  17079. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  17080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17081. /* end confdefs.h. */
  17082. #include <artsc.h>
  17083. int
  17084. main ()
  17085. {
  17086. arts_stream_t stream;
  17087. ;
  17088. return 0;
  17089. }
  17090. _ACEOF
  17091. if ac_fn_c_try_compile "$LINENO"; then :
  17092. audio_arts=yes
  17093. fi
  17094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17095. CFLAGS="$save_CFLAGS"
  17096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  17097. $as_echo "$audio_arts" >&6; }
  17098. if test x$audio_arts = xyes; then
  17099. # Check whether --enable-arts-shared was given.
  17100. if test "${enable_arts_shared+set}" = set; then :
  17101. enableval=$enable_arts_shared;
  17102. else
  17103. enable_arts_shared=yes
  17104. fi
  17105. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17106. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  17107. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  17108. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  17109. if test x$have_loadso != xyes && \
  17110. test x$enable_arts_shared = xyes; then
  17111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  17112. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  17113. fi
  17114. if test x$have_loadso = xyes && \
  17115. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  17116. echo "-- dynamic libartsc -> $arts_lib"
  17117. cat >>confdefs.h <<_ACEOF
  17118. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  17119. _ACEOF
  17120. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  17121. else
  17122. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  17123. SUMMARY_audio="${SUMMARY_audio} arts"
  17124. fi
  17125. have_audio=yes
  17126. fi
  17127. fi
  17128. fi
  17129. }
  17130. CheckNAS()
  17131. {
  17132. # Check whether --enable-nas was given.
  17133. if test "${enable_nas+set}" = set; then :
  17134. enableval=$enable_nas;
  17135. else
  17136. enable_nas=yes
  17137. fi
  17138. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  17139. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  17140. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  17141. have_nas_hdr=yes
  17142. fi
  17143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  17144. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  17145. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  17146. $as_echo_n "(cached) " >&6
  17147. else
  17148. ac_check_lib_save_LIBS=$LIBS
  17149. LIBS="-laudio $LIBS"
  17150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17151. /* end confdefs.h. */
  17152. /* Override any GCC internal prototype to avoid an error.
  17153. Use char because int might match the return type of a GCC
  17154. builtin and then its argument prototype would still apply. */
  17155. #ifdef __cplusplus
  17156. extern "C"
  17157. #endif
  17158. char AuOpenServer ();
  17159. int
  17160. main ()
  17161. {
  17162. return AuOpenServer ();
  17163. ;
  17164. return 0;
  17165. }
  17166. _ACEOF
  17167. if ac_fn_c_try_link "$LINENO"; then :
  17168. ac_cv_lib_audio_AuOpenServer=yes
  17169. else
  17170. ac_cv_lib_audio_AuOpenServer=no
  17171. fi
  17172. rm -f core conftest.err conftest.$ac_objext \
  17173. conftest$ac_exeext conftest.$ac_ext
  17174. LIBS=$ac_check_lib_save_LIBS
  17175. fi
  17176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  17177. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  17178. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  17179. have_nas_lib=yes
  17180. fi
  17181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  17182. $as_echo_n "checking for NAS audio support... " >&6; }
  17183. have_nas=no
  17184. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  17185. have_nas=yes
  17186. NAS_LIBS="-laudio"
  17187. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  17188. have_nas=yes
  17189. NAS_CFLAGS="-I/usr/X11R6/include/"
  17190. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  17191. fi
  17192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  17193. $as_echo "$have_nas" >&6; }
  17194. if test x$have_nas = xyes; then
  17195. # Check whether --enable-nas-shared was given.
  17196. if test "${enable_nas_shared+set}" = set; then :
  17197. enableval=$enable_nas_shared;
  17198. else
  17199. enable_nas_shared=yes
  17200. fi
  17201. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17202. if test x$have_loadso != xyes && \
  17203. test x$enable_nas_shared = xyes; then
  17204. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  17205. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  17206. fi
  17207. if test x$have_loadso = xyes && \
  17208. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  17209. echo "-- dynamic libaudio -> $nas_lib"
  17210. cat >>confdefs.h <<_ACEOF
  17211. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  17212. _ACEOF
  17213. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  17214. else
  17215. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  17216. SUMMARY_audio="${SUMMARY_audio} nas"
  17217. fi
  17218. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  17219. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  17220. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  17221. have_audio=yes
  17222. fi
  17223. fi
  17224. }
  17225. CheckSNDIO()
  17226. {
  17227. # Check whether --enable-sndio was given.
  17228. if test "${enable_sndio+set}" = set; then :
  17229. enableval=$enable_sndio;
  17230. else
  17231. enable_sndio=yes
  17232. fi
  17233. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  17234. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  17235. if test "x$ac_cv_header_sndio_h" = xyes; then :
  17236. have_sndio_hdr=yes
  17237. fi
  17238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  17239. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  17240. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  17241. $as_echo_n "(cached) " >&6
  17242. else
  17243. ac_check_lib_save_LIBS=$LIBS
  17244. LIBS="-lsndio $LIBS"
  17245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17246. /* end confdefs.h. */
  17247. /* Override any GCC internal prototype to avoid an error.
  17248. Use char because int might match the return type of a GCC
  17249. builtin and then its argument prototype would still apply. */
  17250. #ifdef __cplusplus
  17251. extern "C"
  17252. #endif
  17253. char sio_open ();
  17254. int
  17255. main ()
  17256. {
  17257. return sio_open ();
  17258. ;
  17259. return 0;
  17260. }
  17261. _ACEOF
  17262. if ac_fn_c_try_link "$LINENO"; then :
  17263. ac_cv_lib_sndio_sio_open=yes
  17264. else
  17265. ac_cv_lib_sndio_sio_open=no
  17266. fi
  17267. rm -f core conftest.err conftest.$ac_objext \
  17268. conftest$ac_exeext conftest.$ac_ext
  17269. LIBS=$ac_check_lib_save_LIBS
  17270. fi
  17271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  17272. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  17273. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  17274. have_sndio_lib=yes
  17275. fi
  17276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  17277. $as_echo_n "checking for sndio audio support... " >&6; }
  17278. have_sndio=no
  17279. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  17280. have_sndio=yes
  17281. SNDIO_LIBS="-lsndio"
  17282. fi
  17283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  17284. $as_echo "$have_sndio" >&6; }
  17285. if test x$have_sndio = xyes; then
  17286. # Check whether --enable-sndio-shared was given.
  17287. if test "${enable_sndio_shared+set}" = set; then :
  17288. enableval=$enable_sndio_shared;
  17289. else
  17290. enable_sndio_shared=yes
  17291. fi
  17292. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17293. if test x$have_loadso != xyes && \
  17294. test x$enable_sndio_shared = xyes; then
  17295. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  17296. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  17297. fi
  17298. if test x$have_loadso = xyes && \
  17299. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  17300. echo "-- dynamic libsndio -> $sndio_lib"
  17301. cat >>confdefs.h <<_ACEOF
  17302. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  17303. _ACEOF
  17304. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  17305. else
  17306. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  17307. SUMMARY_audio="${SUMMARY_audio} sndio"
  17308. fi
  17309. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  17310. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  17311. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  17312. have_audio=yes
  17313. fi
  17314. fi
  17315. }
  17316. CheckFusionSound()
  17317. {
  17318. # Check whether --enable-fusionsound was given.
  17319. if test "${enable_fusionsound+set}" = set; then :
  17320. enableval=$enable_fusionsound;
  17321. else
  17322. enable_fusionsound=no
  17323. fi
  17324. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17325. pkg_failed=no
  17326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  17327. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  17328. if test -n "$FUSIONSOUND_CFLAGS"; then
  17329. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  17330. elif test -n "$PKG_CONFIG"; then
  17331. if test -n "$PKG_CONFIG" && \
  17332. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17333. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17334. ac_status=$?
  17335. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17336. test $ac_status = 0; }; then
  17337. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  17338. test "x$?" != "x0" && pkg_failed=yes
  17339. else
  17340. pkg_failed=yes
  17341. fi
  17342. else
  17343. pkg_failed=untried
  17344. fi
  17345. if test -n "$FUSIONSOUND_LIBS"; then
  17346. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  17347. elif test -n "$PKG_CONFIG"; then
  17348. if test -n "$PKG_CONFIG" && \
  17349. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17350. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17351. ac_status=$?
  17352. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17353. test $ac_status = 0; }; then
  17354. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  17355. test "x$?" != "x0" && pkg_failed=yes
  17356. else
  17357. pkg_failed=yes
  17358. fi
  17359. else
  17360. pkg_failed=untried
  17361. fi
  17362. if test $pkg_failed = yes; then
  17363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17364. $as_echo "no" >&6; }
  17365. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17366. _pkg_short_errors_supported=yes
  17367. else
  17368. _pkg_short_errors_supported=no
  17369. fi
  17370. if test $_pkg_short_errors_supported = yes; then
  17371. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17372. else
  17373. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17374. fi
  17375. # Put the nasty error message in config.log where it belongs
  17376. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  17377. fusionsound=no
  17378. elif test $pkg_failed = untried; then
  17379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17380. $as_echo "no" >&6; }
  17381. fusionsound=no
  17382. else
  17383. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  17384. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  17385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17386. $as_echo "yes" >&6; }
  17387. fusionsound=yes
  17388. fi
  17389. if test x$fusionsound = xyes; then
  17390. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17391. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17392. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17393. # Check whether --enable-fusionsound-shared was given.
  17394. if test "${enable_fusionsound_shared+set}" = set; then :
  17395. enableval=$enable_fusionsound_shared;
  17396. else
  17397. enable_fusionsound_shared=yes
  17398. fi
  17399. fusionsound_shared=no
  17400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17401. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17402. if test x$have_loadso != xyes && \
  17403. test x$enable_fusionsound_shared = xyes; then
  17404. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17405. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17406. fi
  17407. if test x$have_loadso = xyes && \
  17408. test x$enable_fusionsound_shared = xyes; then
  17409. cat >>confdefs.h <<_ACEOF
  17410. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17411. _ACEOF
  17412. fusionsound_shared=yes
  17413. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  17414. else
  17415. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17416. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  17417. fi
  17418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17419. $as_echo "$fusionsound_shared" >&6; }
  17420. have_audio=yes
  17421. fi
  17422. fi
  17423. }
  17424. CheckDiskAudio()
  17425. {
  17426. # Check whether --enable-diskaudio was given.
  17427. if test "${enable_diskaudio+set}" = set; then :
  17428. enableval=$enable_diskaudio;
  17429. else
  17430. enable_diskaudio=yes
  17431. fi
  17432. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  17433. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  17434. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  17435. SUMMARY_audio="${SUMMARY_audio} disk"
  17436. have_audio=yes
  17437. fi
  17438. }
  17439. CheckDummyAudio()
  17440. {
  17441. # Check whether --enable-dummyaudio was given.
  17442. if test "${enable_dummyaudio+set}" = set; then :
  17443. enableval=$enable_dummyaudio;
  17444. else
  17445. enable_dummyaudio=yes
  17446. fi
  17447. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  17448. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  17449. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  17450. SUMMARY_audio="${SUMMARY_audio} dummy"
  17451. have_audio=yes
  17452. fi
  17453. }
  17454. CheckLibSampleRate()
  17455. {
  17456. # Check whether --enable-libsamplerate was given.
  17457. if test "${enable_libsamplerate+set}" = set; then :
  17458. enableval=$enable_libsamplerate;
  17459. else
  17460. enable_libsamplerate=yes
  17461. fi
  17462. if test x$enable_libsamplerate = xyes; then
  17463. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  17464. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  17465. have_samplerate_h_hdr=yes
  17466. else
  17467. have_samplerate_h_hdr=no
  17468. fi
  17469. if test x$have_samplerate_h_hdr = xyes; then
  17470. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  17471. # Check whether --enable-libsamplerate-shared was given.
  17472. if test "${enable_libsamplerate_shared+set}" = set; then :
  17473. enableval=$enable_libsamplerate_shared;
  17474. else
  17475. enable_libsamplerate_shared=yes
  17476. fi
  17477. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17478. if test x$have_loadso != xyes && \
  17479. test x$enable_libsamplerate_shared = xyes; then
  17480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  17481. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  17482. fi
  17483. if test x$have_loadso = xyes && \
  17484. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  17485. echo "-- dynamic libsamplerate -> $samplerate_lib"
  17486. cat >>confdefs.h <<_ACEOF
  17487. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  17488. _ACEOF
  17489. else
  17490. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  17491. fi
  17492. fi
  17493. fi
  17494. }
  17495. CheckARM()
  17496. {
  17497. # Check whether --enable-arm-simd was given.
  17498. if test "${enable_arm_simd+set}" = set; then :
  17499. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  17500. else
  17501. enable_arm_simd=no
  17502. fi
  17503. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  17504. save_CFLAGS="$CFLAGS"
  17505. have_arm_simd=no
  17506. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  17508. $as_echo_n "checking for ARM SIMD... " >&6; }
  17509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17510. /* end confdefs.h. */
  17511. .text
  17512. .arch armv6
  17513. .object_arch armv4
  17514. .arm
  17515. .altmacro
  17516. #ifndef __ARM_EABI__
  17517. #error EABI is required (to be sure that calling conventions are compatible)
  17518. #endif
  17519. pld [r0]
  17520. uqadd8 r0, r0, r0
  17521. _ACEOF
  17522. if ac_fn_c_try_compile "$LINENO"; then :
  17523. have_arm_simd=yes
  17524. fi
  17525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  17527. $as_echo "$have_arm_simd" >&6; }
  17528. CFLAGS="$save_CFLAGS"
  17529. if test x$have_arm_simd = xyes; then
  17530. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  17531. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  17532. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  17533. fi
  17534. fi
  17535. }
  17536. CheckNEON()
  17537. {
  17538. # Check whether --enable-arm-neon was given.
  17539. if test "${enable_arm_neon+set}" = set; then :
  17540. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  17541. else
  17542. enable_arm_neon=no
  17543. fi
  17544. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  17545. save_CFLAGS="$CFLAGS"
  17546. have_arm_neon=no
  17547. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  17549. $as_echo_n "checking for ARM NEON... " >&6; }
  17550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17551. /* end confdefs.h. */
  17552. .text
  17553. .fpu neon
  17554. .arch armv7a
  17555. .object_arch armv4
  17556. .eabi_attribute 10, 0
  17557. .arm
  17558. .altmacro
  17559. #ifndef __ARM_EABI__
  17560. #error EABI is required (to be sure that calling conventions are compatible)
  17561. #endif
  17562. pld [r0]
  17563. vmovn.u16 d0, q0
  17564. _ACEOF
  17565. if ac_fn_c_try_compile "$LINENO"; then :
  17566. have_arm_neon=yes
  17567. fi
  17568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  17570. $as_echo "$have_arm_neon" >&6; }
  17571. CFLAGS="$save_CFLAGS"
  17572. if test x$have_arm_neon = xyes; then
  17573. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  17574. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  17575. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  17576. fi
  17577. fi
  17578. }
  17579. CheckVisibilityHidden()
  17580. {
  17581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  17582. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  17583. have_gcc_fvisibility=no
  17584. visibility_CFLAGS="-fvisibility=hidden"
  17585. save_CFLAGS="$CFLAGS"
  17586. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  17587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17588. /* end confdefs.h. */
  17589. #if !defined(__GNUC__) || __GNUC__ < 4
  17590. #error SDL only uses visibility attributes in GCC 4 or newer
  17591. #endif
  17592. int
  17593. main ()
  17594. {
  17595. ;
  17596. return 0;
  17597. }
  17598. _ACEOF
  17599. if ac_fn_c_try_compile "$LINENO"; then :
  17600. have_gcc_fvisibility=yes
  17601. fi
  17602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  17604. $as_echo "$have_gcc_fvisibility" >&6; }
  17605. CFLAGS="$save_CFLAGS"
  17606. if test x$have_gcc_fvisibility = xyes; then
  17607. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  17608. fi
  17609. }
  17610. CheckNoStrictAliasing()
  17611. {
  17612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  17613. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  17614. have_gcc_no_strict_aliasing=no
  17615. save_CFLAGS="$CFLAGS"
  17616. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  17617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17618. /* end confdefs.h. */
  17619. int x = 0;
  17620. int
  17621. main ()
  17622. {
  17623. ;
  17624. return 0;
  17625. }
  17626. _ACEOF
  17627. if ac_fn_c_try_compile "$LINENO"; then :
  17628. have_gcc_no_strict_aliasing=yes
  17629. fi
  17630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  17632. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  17633. CFLAGS="$save_CFLAGS"
  17634. if test x$have_gcc_no_strict_aliasing = xyes; then
  17635. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  17636. fi
  17637. }
  17638. CheckStackBoundary()
  17639. {
  17640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  17641. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  17642. have_gcc_preferred_stack_boundary=no
  17643. save_CFLAGS="$CFLAGS"
  17644. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  17645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17646. /* end confdefs.h. */
  17647. int x = 0;
  17648. int
  17649. main ()
  17650. {
  17651. ;
  17652. return 0;
  17653. }
  17654. _ACEOF
  17655. if ac_fn_c_try_compile "$LINENO"; then :
  17656. have_gcc_preferred_stack_boundary=yes
  17657. fi
  17658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  17660. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17661. CFLAGS="$save_CFLAGS"
  17662. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17663. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17664. fi
  17665. }
  17666. CheckDeclarationAfterStatement()
  17667. {
  17668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17669. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17670. have_gcc_declaration_after_statement=no
  17671. save_CFLAGS="$CFLAGS"
  17672. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17674. /* end confdefs.h. */
  17675. int x = 0;
  17676. int
  17677. main ()
  17678. {
  17679. ;
  17680. return 0;
  17681. }
  17682. _ACEOF
  17683. if ac_fn_c_try_compile "$LINENO"; then :
  17684. have_gcc_declaration_after_statement=yes
  17685. fi
  17686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17688. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17689. CFLAGS="$save_CFLAGS"
  17690. if test x$have_gcc_declaration_after_statement = xyes; then
  17691. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17692. fi
  17693. }
  17694. CheckWarnAll()
  17695. {
  17696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17697. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17698. have_gcc_Wall=no
  17699. save_CFLAGS="$CFLAGS"
  17700. CFLAGS="$save_CFLAGS -Wall"
  17701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17702. /* end confdefs.h. */
  17703. int x = 0;
  17704. int
  17705. main ()
  17706. {
  17707. ;
  17708. return 0;
  17709. }
  17710. _ACEOF
  17711. if ac_fn_c_try_compile "$LINENO"; then :
  17712. have_gcc_Wall=yes
  17713. fi
  17714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17716. $as_echo "$have_gcc_Wall" >&6; }
  17717. CFLAGS="$save_CFLAGS"
  17718. if test x$have_gcc_Wall = xyes; then
  17719. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17721. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17722. need_gcc_Wno_multichar=no
  17723. case "$host" in
  17724. *-*-haiku*)
  17725. need_gcc_Wno_multichar=yes
  17726. ;;
  17727. esac
  17728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17729. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17730. if test x$need_gcc_Wno_multichar = xyes; then
  17731. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17732. fi
  17733. fi
  17734. }
  17735. CheckWayland()
  17736. {
  17737. # Check whether --enable-video-wayland was given.
  17738. if test "${enable_video_wayland+set}" = set; then :
  17739. enableval=$enable_video_wayland;
  17740. else
  17741. enable_video_wayland=yes
  17742. fi
  17743. # Check whether --enable-video-wayland-qt-touch was given.
  17744. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17745. enableval=$enable_video_wayland_qt_touch;
  17746. else
  17747. enable_video_wayland_qt_touch=yes
  17748. fi
  17749. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17751. $as_echo_n "checking for Wayland support... " >&6; }
  17752. video_wayland=no
  17753. if test x$video_opengl_egl = xyes && \
  17754. test x$video_opengles_v2 = xyes; then
  17755. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  17756. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17757. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17758. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17759. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17760. WAYLAND_SCANNER_CODE_MODE=private-code
  17761. else
  17762. WAYLAND_SCANNER_CODE_MODE=code
  17763. fi
  17764. video_wayland=yes
  17765. fi
  17766. fi
  17767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17768. $as_echo "$video_wayland" >&6; }
  17769. if test x$video_wayland = xyes; then
  17770. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17771. if test x$enable_video_wayland_qt_touch = xyes; then
  17772. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17773. fi
  17774. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17775. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17776. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17777. # Check whether --enable-wayland-shared was given.
  17778. if test "${enable_wayland_shared+set}" = set; then :
  17779. enableval=$enable_wayland_shared;
  17780. else
  17781. enable_wayland_shared=maybe
  17782. fi
  17783. case "$host" in
  17784. *)
  17785. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17786. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17787. if test x$wayland_egl_lib = x; then
  17788. # This works in Ubuntu 13.10, maybe others
  17789. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17790. fi
  17791. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17792. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17793. ;;
  17794. esac
  17795. if test x$enable_wayland_shared = xmaybe; then
  17796. enable_wayland_shared=yes
  17797. fi
  17798. if test x$have_loadso != xyes && \
  17799. test x$enable_wayland_shared = xyes; then
  17800. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17801. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17802. enable_wayland_shared=no
  17803. fi
  17804. if test x$have_loadso = xyes && \
  17805. test x$enable_wayland_shared = xyes && \
  17806. test x$wayland_client_lib != x && \
  17807. test x$wayland_egl_lib != x && \
  17808. test x$wayland_cursor_lib != x && \
  17809. test x$xkbcommon_lib != x; then
  17810. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17811. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17812. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17813. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17814. cat >>confdefs.h <<_ACEOF
  17815. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17816. _ACEOF
  17817. cat >>confdefs.h <<_ACEOF
  17818. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17819. _ACEOF
  17820. cat >>confdefs.h <<_ACEOF
  17821. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17822. _ACEOF
  17823. cat >>confdefs.h <<_ACEOF
  17824. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17825. _ACEOF
  17826. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17827. else
  17828. enable_wayland_shared=no
  17829. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17830. SUMMARY_video="${SUMMARY_video} wayland"
  17831. fi
  17832. have_video=yes
  17833. # Check whether --enable-libdecor was given.
  17834. if test "${enable_libdecor+set}" = set; then :
  17835. enableval=$enable_libdecor;
  17836. else
  17837. enable_libdecor=yes
  17838. fi
  17839. if test x$enable_libdecor = xyes; then
  17840. pkg_failed=no
  17841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  17842. $as_echo_n "checking for libdecor-0... " >&6; }
  17843. if test -n "$DECOR_CFLAGS"; then
  17844. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  17845. elif test -n "$PKG_CONFIG"; then
  17846. if test -n "$PKG_CONFIG" && \
  17847. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  17848. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  17849. ac_status=$?
  17850. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17851. test $ac_status = 0; }; then
  17852. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  17853. test "x$?" != "x0" && pkg_failed=yes
  17854. else
  17855. pkg_failed=yes
  17856. fi
  17857. else
  17858. pkg_failed=untried
  17859. fi
  17860. if test -n "$DECOR_LIBS"; then
  17861. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  17862. elif test -n "$PKG_CONFIG"; then
  17863. if test -n "$PKG_CONFIG" && \
  17864. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  17865. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  17866. ac_status=$?
  17867. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17868. test $ac_status = 0; }; then
  17869. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  17870. test "x$?" != "x0" && pkg_failed=yes
  17871. else
  17872. pkg_failed=yes
  17873. fi
  17874. else
  17875. pkg_failed=untried
  17876. fi
  17877. if test $pkg_failed = yes; then
  17878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17879. $as_echo "no" >&6; }
  17880. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17881. _pkg_short_errors_supported=yes
  17882. else
  17883. _pkg_short_errors_supported=no
  17884. fi
  17885. if test $_pkg_short_errors_supported = yes; then
  17886. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  17887. else
  17888. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  17889. fi
  17890. # Put the nasty error message in config.log where it belongs
  17891. echo "$DECOR_PKG_ERRORS" >&5
  17892. video_libdecor=no
  17893. elif test $pkg_failed = untried; then
  17894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17895. $as_echo "no" >&6; }
  17896. video_libdecor=no
  17897. else
  17898. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  17899. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  17900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17901. $as_echo "yes" >&6; }
  17902. video_libdecor=yes
  17903. fi
  17904. if test x$video_libdecor = xyes; then
  17905. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  17906. $as_echo "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  17907. # Check whether --enable-libdecor-shared was given.
  17908. if test "${enable_libdecor_shared+set}" = set; then :
  17909. enableval=$enable_libdecor_shared;
  17910. else
  17911. enable_libdecor_shared=yes
  17912. fi
  17913. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17914. if test x$enable_wayland_shared != xyes; then
  17915. enable_libdecor_shared=no
  17916. fi
  17917. if test x$have_loadso != xyes && \
  17918. test x$enable_libdecor_shared = xyes; then
  17919. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  17920. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  17921. fi
  17922. if test x$have_loadso = xyes && \
  17923. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  17924. echo "-- dynamic libdecor -> $decor_lib"
  17925. cat >>confdefs.h <<_ACEOF
  17926. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "$decor_lib"
  17927. _ACEOF
  17928. else
  17929. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  17930. fi
  17931. fi
  17932. fi
  17933. fi
  17934. fi
  17935. }
  17936. CheckNativeClient()
  17937. {
  17938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17939. /* end confdefs.h. */
  17940. #if !defined(__native_client__)
  17941. #error "NO NACL"
  17942. #endif
  17943. int
  17944. main ()
  17945. {
  17946. ;
  17947. return 0;
  17948. }
  17949. _ACEOF
  17950. if ac_fn_c_try_compile "$LINENO"; then :
  17951. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17952. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17953. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17954. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17955. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17956. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17957. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17958. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17959. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17960. SUMMARY_audio="${SUMMARY_audio} nacl"
  17961. have_audio=yes
  17962. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17963. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17964. have_video=yes
  17965. fi
  17966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17967. }
  17968. CheckRPI()
  17969. {
  17970. # Check whether --enable-video-rpi was given.
  17971. if test "${enable_video_rpi+set}" = set; then :
  17972. enableval=$enable_video_rpi;
  17973. else
  17974. enable_video_rpi=yes
  17975. fi
  17976. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17977. pkg_failed=no
  17978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  17979. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  17980. if test -n "$RPI_CFLAGS"; then
  17981. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17982. elif test -n "$PKG_CONFIG"; then
  17983. if test -n "$PKG_CONFIG" && \
  17984. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17985. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17986. ac_status=$?
  17987. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17988. test $ac_status = 0; }; then
  17989. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17990. test "x$?" != "x0" && pkg_failed=yes
  17991. else
  17992. pkg_failed=yes
  17993. fi
  17994. else
  17995. pkg_failed=untried
  17996. fi
  17997. if test -n "$RPI_LIBS"; then
  17998. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17999. elif test -n "$PKG_CONFIG"; then
  18000. if test -n "$PKG_CONFIG" && \
  18001. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  18002. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  18003. ac_status=$?
  18004. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18005. test $ac_status = 0; }; then
  18006. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  18007. test "x$?" != "x0" && pkg_failed=yes
  18008. else
  18009. pkg_failed=yes
  18010. fi
  18011. else
  18012. pkg_failed=untried
  18013. fi
  18014. if test $pkg_failed = yes; then
  18015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18016. $as_echo "no" >&6; }
  18017. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18018. _pkg_short_errors_supported=yes
  18019. else
  18020. _pkg_short_errors_supported=no
  18021. fi
  18022. if test $_pkg_short_errors_supported = yes; then
  18023. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  18024. else
  18025. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  18026. fi
  18027. # Put the nasty error message in config.log where it belongs
  18028. echo "$RPI_PKG_ERRORS" >&5
  18029. video_rpi=no
  18030. elif test $pkg_failed = untried; then
  18031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18032. $as_echo "no" >&6; }
  18033. video_rpi=no
  18034. else
  18035. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  18036. RPI_LIBS=$pkg_cv_RPI_LIBS
  18037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18038. $as_echo "yes" >&6; }
  18039. video_rpi=yes
  18040. fi
  18041. if test x$video_rpi = xno; then
  18042. if test x$ARCH = xnetbsd; then
  18043. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  18044. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  18045. else
  18046. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  18047. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  18048. fi
  18049. fi
  18050. # Save the original compiler flags and libraries
  18051. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18052. # Add the Raspberry Pi compiler flags and libraries
  18053. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  18054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  18055. $as_echo_n "checking for Raspberry Pi 2/3... " >&6; }
  18056. have_video_rpi=no
  18057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18058. /* end confdefs.h. */
  18059. #include <bcm_host.h>
  18060. #include <EGL/eglplatform.h>
  18061. int
  18062. main ()
  18063. {
  18064. EGL_DISPMANX_WINDOW_T window;
  18065. bcm_host_init();
  18066. ;
  18067. return 0;
  18068. }
  18069. _ACEOF
  18070. if ac_fn_c_try_link "$LINENO"; then :
  18071. have_video_rpi=yes
  18072. fi
  18073. rm -f core conftest.err conftest.$ac_objext \
  18074. conftest$ac_exeext conftest.$ac_ext
  18075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  18076. $as_echo "$have_video_rpi" >&6; }
  18077. # Restore the compiler flags and libraries
  18078. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18079. if test x$have_video_rpi = xyes; then
  18080. CFLAGS="$CFLAGS $RPI_CFLAGS"
  18081. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  18082. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  18083. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  18084. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  18085. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  18086. SUMMARY_video="${SUMMARY_video} rpi"
  18087. have_video=yes
  18088. fi
  18089. fi
  18090. }
  18091. CheckX11()
  18092. {
  18093. # Check whether --enable-video-x11 was given.
  18094. if test "${enable_video_x11+set}" = set; then :
  18095. enableval=$enable_video_x11;
  18096. else
  18097. enable_video_x11=yes
  18098. fi
  18099. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  18100. case "$host" in
  18101. *-*-darwin*)
  18102. # This isn't necessary for X11, but fixes GLX detection
  18103. if test "x$x_includes" = xNONE && \
  18104. test "x$x_libraries" = xNONE && \
  18105. test -d /opt/X11/include && \
  18106. test -d /opt/X11/lib; then
  18107. x_includes="/opt/X11/include"
  18108. x_libraries="/opt/X11/lib"
  18109. fi
  18110. ;;
  18111. esac
  18112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  18113. $as_echo_n "checking for X... " >&6; }
  18114. # Check whether --with-x was given.
  18115. if test "${with_x+set}" = set; then :
  18116. withval=$with_x;
  18117. fi
  18118. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  18119. if test "x$with_x" = xno; then
  18120. # The user explicitly disabled X.
  18121. have_x=disabled
  18122. else
  18123. case $x_includes,$x_libraries in #(
  18124. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  18125. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  18126. $as_echo_n "(cached) " >&6
  18127. else
  18128. # One or both of the vars are not set, and there is no cached value.
  18129. ac_x_includes=no
  18130. ac_x_libraries=no
  18131. # Do we need to do anything special at all?
  18132. ac_save_LIBS=$LIBS
  18133. LIBS="-lX11 $LIBS"
  18134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18135. /* end confdefs.h. */
  18136. #include <X11/Xlib.h>
  18137. int
  18138. main ()
  18139. {
  18140. XrmInitialize ()
  18141. ;
  18142. return 0;
  18143. }
  18144. _ACEOF
  18145. if ac_fn_c_try_link "$LINENO"; then :
  18146. # We can compile and link X programs with no special options.
  18147. ac_x_includes=
  18148. ac_x_libraries=
  18149. fi
  18150. rm -f core conftest.err conftest.$ac_objext \
  18151. conftest$ac_exeext conftest.$ac_ext
  18152. LIBS="$ac_save_LIBS"
  18153. # If that didn't work, only try xmkmf and filesystem searches
  18154. # for native compilation.
  18155. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  18156. rm -f -r conftest.dir
  18157. if mkdir conftest.dir; then
  18158. cd conftest.dir
  18159. cat >Imakefile <<'_ACEOF'
  18160. incroot:
  18161. @echo incroot='${INCROOT}'
  18162. usrlibdir:
  18163. @echo usrlibdir='${USRLIBDIR}'
  18164. libdir:
  18165. @echo libdir='${LIBDIR}'
  18166. _ACEOF
  18167. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  18168. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  18169. for ac_var in incroot usrlibdir libdir; do
  18170. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  18171. done
  18172. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  18173. for ac_extension in a so sl dylib la dll; do
  18174. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  18175. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  18176. ac_im_usrlibdir=$ac_im_libdir; break
  18177. fi
  18178. done
  18179. # Screen out bogus values from the imake configuration. They are
  18180. # bogus both because they are the default anyway, and because
  18181. # using them would break gcc on systems where it needs fixed includes.
  18182. case $ac_im_incroot in
  18183. /usr/include) ac_x_includes= ;;
  18184. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  18185. esac
  18186. case $ac_im_usrlibdir in
  18187. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  18188. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  18189. esac
  18190. fi
  18191. cd ..
  18192. rm -f -r conftest.dir
  18193. fi
  18194. # Standard set of common directories for X headers.
  18195. # Check X11 before X11Rn because it is often a symlink to the current release.
  18196. ac_x_header_dirs='
  18197. /usr/X11/include
  18198. /usr/X11R7/include
  18199. /usr/X11R6/include
  18200. /usr/X11R5/include
  18201. /usr/X11R4/include
  18202. /usr/include/X11
  18203. /usr/include/X11R7
  18204. /usr/include/X11R6
  18205. /usr/include/X11R5
  18206. /usr/include/X11R4
  18207. /usr/local/X11/include
  18208. /usr/local/X11R7/include
  18209. /usr/local/X11R6/include
  18210. /usr/local/X11R5/include
  18211. /usr/local/X11R4/include
  18212. /usr/local/include/X11
  18213. /usr/local/include/X11R7
  18214. /usr/local/include/X11R6
  18215. /usr/local/include/X11R5
  18216. /usr/local/include/X11R4
  18217. /opt/X11/include
  18218. /usr/X386/include
  18219. /usr/x386/include
  18220. /usr/XFree86/include/X11
  18221. /usr/include
  18222. /usr/local/include
  18223. /usr/unsupported/include
  18224. /usr/athena/include
  18225. /usr/local/x11r5/include
  18226. /usr/lpp/Xamples/include
  18227. /usr/openwin/include
  18228. /usr/openwin/share/include'
  18229. if test "$ac_x_includes" = no; then
  18230. # Guess where to find include files, by looking for Xlib.h.
  18231. # First, try using that file with no special directory specified.
  18232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18233. /* end confdefs.h. */
  18234. #include <X11/Xlib.h>
  18235. _ACEOF
  18236. if ac_fn_c_try_cpp "$LINENO"; then :
  18237. # We can compile using X headers with no special include directory.
  18238. ac_x_includes=
  18239. else
  18240. for ac_dir in $ac_x_header_dirs; do
  18241. if test -r "$ac_dir/X11/Xlib.h"; then
  18242. ac_x_includes=$ac_dir
  18243. break
  18244. fi
  18245. done
  18246. fi
  18247. rm -f conftest.err conftest.i conftest.$ac_ext
  18248. fi # $ac_x_includes = no
  18249. if test "$ac_x_libraries" = no; then
  18250. # Check for the libraries.
  18251. # See if we find them without any special options.
  18252. # Don't add to $LIBS permanently.
  18253. ac_save_LIBS=$LIBS
  18254. LIBS="-lX11 $LIBS"
  18255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18256. /* end confdefs.h. */
  18257. #include <X11/Xlib.h>
  18258. int
  18259. main ()
  18260. {
  18261. XrmInitialize ()
  18262. ;
  18263. return 0;
  18264. }
  18265. _ACEOF
  18266. if ac_fn_c_try_link "$LINENO"; then :
  18267. LIBS=$ac_save_LIBS
  18268. # We can link X programs with no special library path.
  18269. ac_x_libraries=
  18270. else
  18271. LIBS=$ac_save_LIBS
  18272. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  18273. do
  18274. # Don't even attempt the hair of trying to link an X program!
  18275. for ac_extension in a so sl dylib la dll; do
  18276. if test -r "$ac_dir/libX11.$ac_extension"; then
  18277. ac_x_libraries=$ac_dir
  18278. break 2
  18279. fi
  18280. done
  18281. done
  18282. fi
  18283. rm -f core conftest.err conftest.$ac_objext \
  18284. conftest$ac_exeext conftest.$ac_ext
  18285. fi # $ac_x_libraries = no
  18286. fi
  18287. # Record the results.
  18288. case $ac_x_includes,$ac_x_libraries in #(
  18289. no,* | *,no | *\'*) :
  18290. # Didn't find X, or a directory has "'" in its name.
  18291. ac_cv_have_x="have_x=no" ;; #(
  18292. *) :
  18293. # Record where we found X for the cache.
  18294. ac_cv_have_x="have_x=yes\
  18295. ac_x_includes='$ac_x_includes'\
  18296. ac_x_libraries='$ac_x_libraries'" ;;
  18297. esac
  18298. fi
  18299. ;; #(
  18300. *) have_x=yes;;
  18301. esac
  18302. eval "$ac_cv_have_x"
  18303. fi # $with_x != no
  18304. if test "$have_x" != yes; then
  18305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  18306. $as_echo "$have_x" >&6; }
  18307. no_x=yes
  18308. else
  18309. # If each of the values was on the command line, it overrides each guess.
  18310. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  18311. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  18312. # Update the cache value to reflect the command line values.
  18313. ac_cv_have_x="have_x=yes\
  18314. ac_x_includes='$x_includes'\
  18315. ac_x_libraries='$x_libraries'"
  18316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  18317. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  18318. fi
  18319. if test "$no_x" = yes; then
  18320. # Not all programs may use this symbol, but it does not hurt to define it.
  18321. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  18322. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  18323. else
  18324. if test -n "$x_includes"; then
  18325. X_CFLAGS="$X_CFLAGS -I$x_includes"
  18326. fi
  18327. # It would also be nice to do this for all -L options, not just this one.
  18328. if test -n "$x_libraries"; then
  18329. X_LIBS="$X_LIBS -L$x_libraries"
  18330. # For Solaris; some versions of Sun CC require a space after -R and
  18331. # others require no space. Words are not sufficient . . . .
  18332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  18333. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  18334. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  18335. ac_xsave_c_werror_flag=$ac_c_werror_flag
  18336. ac_c_werror_flag=yes
  18337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18338. /* end confdefs.h. */
  18339. int
  18340. main ()
  18341. {
  18342. ;
  18343. return 0;
  18344. }
  18345. _ACEOF
  18346. if ac_fn_c_try_link "$LINENO"; then :
  18347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18348. $as_echo "no" >&6; }
  18349. X_LIBS="$X_LIBS -R$x_libraries"
  18350. else
  18351. LIBS="$ac_xsave_LIBS -R $x_libraries"
  18352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18353. /* end confdefs.h. */
  18354. int
  18355. main ()
  18356. {
  18357. ;
  18358. return 0;
  18359. }
  18360. _ACEOF
  18361. if ac_fn_c_try_link "$LINENO"; then :
  18362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18363. $as_echo "yes" >&6; }
  18364. X_LIBS="$X_LIBS -R $x_libraries"
  18365. else
  18366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  18367. $as_echo "neither works" >&6; }
  18368. fi
  18369. rm -f core conftest.err conftest.$ac_objext \
  18370. conftest$ac_exeext conftest.$ac_ext
  18371. fi
  18372. rm -f core conftest.err conftest.$ac_objext \
  18373. conftest$ac_exeext conftest.$ac_ext
  18374. ac_c_werror_flag=$ac_xsave_c_werror_flag
  18375. LIBS=$ac_xsave_LIBS
  18376. fi
  18377. # Check for system-dependent libraries X programs must link with.
  18378. # Do this before checking for the system-independent R6 libraries
  18379. # (-lICE), since we may need -lsocket or whatever for X linking.
  18380. if test "$ISC" = yes; then
  18381. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  18382. else
  18383. # Martyn Johnson says this is needed for Ultrix, if the X
  18384. # libraries were built with DECnet support. And Karl Berry says
  18385. # the Alpha needs dnet_stub (dnet does not exist).
  18386. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  18387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18388. /* end confdefs.h. */
  18389. /* Override any GCC internal prototype to avoid an error.
  18390. Use char because int might match the return type of a GCC
  18391. builtin and then its argument prototype would still apply. */
  18392. #ifdef __cplusplus
  18393. extern "C"
  18394. #endif
  18395. char XOpenDisplay ();
  18396. int
  18397. main ()
  18398. {
  18399. return XOpenDisplay ();
  18400. ;
  18401. return 0;
  18402. }
  18403. _ACEOF
  18404. if ac_fn_c_try_link "$LINENO"; then :
  18405. else
  18406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  18407. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  18408. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  18409. $as_echo_n "(cached) " >&6
  18410. else
  18411. ac_check_lib_save_LIBS=$LIBS
  18412. LIBS="-ldnet $LIBS"
  18413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18414. /* end confdefs.h. */
  18415. /* Override any GCC internal prototype to avoid an error.
  18416. Use char because int might match the return type of a GCC
  18417. builtin and then its argument prototype would still apply. */
  18418. #ifdef __cplusplus
  18419. extern "C"
  18420. #endif
  18421. char dnet_ntoa ();
  18422. int
  18423. main ()
  18424. {
  18425. return dnet_ntoa ();
  18426. ;
  18427. return 0;
  18428. }
  18429. _ACEOF
  18430. if ac_fn_c_try_link "$LINENO"; then :
  18431. ac_cv_lib_dnet_dnet_ntoa=yes
  18432. else
  18433. ac_cv_lib_dnet_dnet_ntoa=no
  18434. fi
  18435. rm -f core conftest.err conftest.$ac_objext \
  18436. conftest$ac_exeext conftest.$ac_ext
  18437. LIBS=$ac_check_lib_save_LIBS
  18438. fi
  18439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  18440. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  18441. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  18442. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  18443. fi
  18444. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  18445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  18446. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  18447. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  18448. $as_echo_n "(cached) " >&6
  18449. else
  18450. ac_check_lib_save_LIBS=$LIBS
  18451. LIBS="-ldnet_stub $LIBS"
  18452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18453. /* end confdefs.h. */
  18454. /* Override any GCC internal prototype to avoid an error.
  18455. Use char because int might match the return type of a GCC
  18456. builtin and then its argument prototype would still apply. */
  18457. #ifdef __cplusplus
  18458. extern "C"
  18459. #endif
  18460. char dnet_ntoa ();
  18461. int
  18462. main ()
  18463. {
  18464. return dnet_ntoa ();
  18465. ;
  18466. return 0;
  18467. }
  18468. _ACEOF
  18469. if ac_fn_c_try_link "$LINENO"; then :
  18470. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  18471. else
  18472. ac_cv_lib_dnet_stub_dnet_ntoa=no
  18473. fi
  18474. rm -f core conftest.err conftest.$ac_objext \
  18475. conftest$ac_exeext conftest.$ac_ext
  18476. LIBS=$ac_check_lib_save_LIBS
  18477. fi
  18478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  18479. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  18480. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  18481. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  18482. fi
  18483. fi
  18484. fi
  18485. rm -f core conftest.err conftest.$ac_objext \
  18486. conftest$ac_exeext conftest.$ac_ext
  18487. LIBS="$ac_xsave_LIBS"
  18488. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  18489. # to get the SysV transport functions.
  18490. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  18491. # needs -lnsl.
  18492. # The nsl library prevents programs from opening the X display
  18493. # on Irix 5.2, according to T.E. Dickey.
  18494. # The functions gethostbyname, getservbyname, and inet_addr are
  18495. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  18496. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  18497. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  18498. fi
  18499. if test $ac_cv_func_gethostbyname = no; then
  18500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  18501. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  18502. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  18503. $as_echo_n "(cached) " >&6
  18504. else
  18505. ac_check_lib_save_LIBS=$LIBS
  18506. LIBS="-lnsl $LIBS"
  18507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18508. /* end confdefs.h. */
  18509. /* Override any GCC internal prototype to avoid an error.
  18510. Use char because int might match the return type of a GCC
  18511. builtin and then its argument prototype would still apply. */
  18512. #ifdef __cplusplus
  18513. extern "C"
  18514. #endif
  18515. char gethostbyname ();
  18516. int
  18517. main ()
  18518. {
  18519. return gethostbyname ();
  18520. ;
  18521. return 0;
  18522. }
  18523. _ACEOF
  18524. if ac_fn_c_try_link "$LINENO"; then :
  18525. ac_cv_lib_nsl_gethostbyname=yes
  18526. else
  18527. ac_cv_lib_nsl_gethostbyname=no
  18528. fi
  18529. rm -f core conftest.err conftest.$ac_objext \
  18530. conftest$ac_exeext conftest.$ac_ext
  18531. LIBS=$ac_check_lib_save_LIBS
  18532. fi
  18533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  18534. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  18535. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  18536. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  18537. fi
  18538. if test $ac_cv_lib_nsl_gethostbyname = no; then
  18539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  18540. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  18541. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  18542. $as_echo_n "(cached) " >&6
  18543. else
  18544. ac_check_lib_save_LIBS=$LIBS
  18545. LIBS="-lbsd $LIBS"
  18546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18547. /* end confdefs.h. */
  18548. /* Override any GCC internal prototype to avoid an error.
  18549. Use char because int might match the return type of a GCC
  18550. builtin and then its argument prototype would still apply. */
  18551. #ifdef __cplusplus
  18552. extern "C"
  18553. #endif
  18554. char gethostbyname ();
  18555. int
  18556. main ()
  18557. {
  18558. return gethostbyname ();
  18559. ;
  18560. return 0;
  18561. }
  18562. _ACEOF
  18563. if ac_fn_c_try_link "$LINENO"; then :
  18564. ac_cv_lib_bsd_gethostbyname=yes
  18565. else
  18566. ac_cv_lib_bsd_gethostbyname=no
  18567. fi
  18568. rm -f core conftest.err conftest.$ac_objext \
  18569. conftest$ac_exeext conftest.$ac_ext
  18570. LIBS=$ac_check_lib_save_LIBS
  18571. fi
  18572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  18573. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  18574. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  18575. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  18576. fi
  18577. fi
  18578. fi
  18579. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  18580. # socket/setsockopt and other routines are undefined under SCO ODT
  18581. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  18582. # on later versions), says Simon Leinen: it contains gethostby*
  18583. # variants that don't use the name server (or something). -lsocket
  18584. # must be given before -lnsl if both are needed. We assume that
  18585. # if connect needs -lnsl, so does gethostbyname.
  18586. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  18587. if test "x$ac_cv_func_connect" = xyes; then :
  18588. fi
  18589. if test $ac_cv_func_connect = no; then
  18590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  18591. $as_echo_n "checking for connect in -lsocket... " >&6; }
  18592. if ${ac_cv_lib_socket_connect+:} false; then :
  18593. $as_echo_n "(cached) " >&6
  18594. else
  18595. ac_check_lib_save_LIBS=$LIBS
  18596. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  18597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18598. /* end confdefs.h. */
  18599. /* Override any GCC internal prototype to avoid an error.
  18600. Use char because int might match the return type of a GCC
  18601. builtin and then its argument prototype would still apply. */
  18602. #ifdef __cplusplus
  18603. extern "C"
  18604. #endif
  18605. char connect ();
  18606. int
  18607. main ()
  18608. {
  18609. return connect ();
  18610. ;
  18611. return 0;
  18612. }
  18613. _ACEOF
  18614. if ac_fn_c_try_link "$LINENO"; then :
  18615. ac_cv_lib_socket_connect=yes
  18616. else
  18617. ac_cv_lib_socket_connect=no
  18618. fi
  18619. rm -f core conftest.err conftest.$ac_objext \
  18620. conftest$ac_exeext conftest.$ac_ext
  18621. LIBS=$ac_check_lib_save_LIBS
  18622. fi
  18623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  18624. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  18625. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  18626. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  18627. fi
  18628. fi
  18629. # Guillermo Gomez says -lposix is necessary on A/UX.
  18630. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  18631. if test "x$ac_cv_func_remove" = xyes; then :
  18632. fi
  18633. if test $ac_cv_func_remove = no; then
  18634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  18635. $as_echo_n "checking for remove in -lposix... " >&6; }
  18636. if ${ac_cv_lib_posix_remove+:} false; then :
  18637. $as_echo_n "(cached) " >&6
  18638. else
  18639. ac_check_lib_save_LIBS=$LIBS
  18640. LIBS="-lposix $LIBS"
  18641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18642. /* end confdefs.h. */
  18643. /* Override any GCC internal prototype to avoid an error.
  18644. Use char because int might match the return type of a GCC
  18645. builtin and then its argument prototype would still apply. */
  18646. #ifdef __cplusplus
  18647. extern "C"
  18648. #endif
  18649. char remove ();
  18650. int
  18651. main ()
  18652. {
  18653. return remove ();
  18654. ;
  18655. return 0;
  18656. }
  18657. _ACEOF
  18658. if ac_fn_c_try_link "$LINENO"; then :
  18659. ac_cv_lib_posix_remove=yes
  18660. else
  18661. ac_cv_lib_posix_remove=no
  18662. fi
  18663. rm -f core conftest.err conftest.$ac_objext \
  18664. conftest$ac_exeext conftest.$ac_ext
  18665. LIBS=$ac_check_lib_save_LIBS
  18666. fi
  18667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  18668. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  18669. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  18670. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  18671. fi
  18672. fi
  18673. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  18674. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  18675. if test "x$ac_cv_func_shmat" = xyes; then :
  18676. fi
  18677. if test $ac_cv_func_shmat = no; then
  18678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  18679. $as_echo_n "checking for shmat in -lipc... " >&6; }
  18680. if ${ac_cv_lib_ipc_shmat+:} false; then :
  18681. $as_echo_n "(cached) " >&6
  18682. else
  18683. ac_check_lib_save_LIBS=$LIBS
  18684. LIBS="-lipc $LIBS"
  18685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18686. /* end confdefs.h. */
  18687. /* Override any GCC internal prototype to avoid an error.
  18688. Use char because int might match the return type of a GCC
  18689. builtin and then its argument prototype would still apply. */
  18690. #ifdef __cplusplus
  18691. extern "C"
  18692. #endif
  18693. char shmat ();
  18694. int
  18695. main ()
  18696. {
  18697. return shmat ();
  18698. ;
  18699. return 0;
  18700. }
  18701. _ACEOF
  18702. if ac_fn_c_try_link "$LINENO"; then :
  18703. ac_cv_lib_ipc_shmat=yes
  18704. else
  18705. ac_cv_lib_ipc_shmat=no
  18706. fi
  18707. rm -f core conftest.err conftest.$ac_objext \
  18708. conftest$ac_exeext conftest.$ac_ext
  18709. LIBS=$ac_check_lib_save_LIBS
  18710. fi
  18711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  18712. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  18713. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  18714. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  18715. fi
  18716. fi
  18717. fi
  18718. # Check for libraries that X11R6 Xt/Xaw programs need.
  18719. ac_save_LDFLAGS=$LDFLAGS
  18720. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  18721. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  18722. # check for ICE first), but we must link in the order -lSM -lICE or
  18723. # we get undefined symbols. So assume we have SM if we have ICE.
  18724. # These have to be linked with before -lX11, unlike the other
  18725. # libraries we check for below, so use a different variable.
  18726. # John Interrante, Karl Berry
  18727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  18728. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  18729. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  18730. $as_echo_n "(cached) " >&6
  18731. else
  18732. ac_check_lib_save_LIBS=$LIBS
  18733. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  18734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18735. /* end confdefs.h. */
  18736. /* Override any GCC internal prototype to avoid an error.
  18737. Use char because int might match the return type of a GCC
  18738. builtin and then its argument prototype would still apply. */
  18739. #ifdef __cplusplus
  18740. extern "C"
  18741. #endif
  18742. char IceConnectionNumber ();
  18743. int
  18744. main ()
  18745. {
  18746. return IceConnectionNumber ();
  18747. ;
  18748. return 0;
  18749. }
  18750. _ACEOF
  18751. if ac_fn_c_try_link "$LINENO"; then :
  18752. ac_cv_lib_ICE_IceConnectionNumber=yes
  18753. else
  18754. ac_cv_lib_ICE_IceConnectionNumber=no
  18755. fi
  18756. rm -f core conftest.err conftest.$ac_objext \
  18757. conftest$ac_exeext conftest.$ac_ext
  18758. LIBS=$ac_check_lib_save_LIBS
  18759. fi
  18760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  18761. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  18762. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  18763. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  18764. fi
  18765. LDFLAGS=$ac_save_LDFLAGS
  18766. fi
  18767. if test x$have_x = xyes; then
  18768. # Check whether --enable-x11-shared was given.
  18769. if test "${enable_x11_shared+set}" = set; then :
  18770. enableval=$enable_x11_shared;
  18771. else
  18772. enable_x11_shared=maybe
  18773. fi
  18774. case "$host" in
  18775. *-*-darwin*)
  18776. # Apple now puts this in /opt/X11
  18777. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18778. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18779. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  18780. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  18781. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  18782. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  18783. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  18784. xss_lib='/opt/X11/lib/libXss.1.dylib'
  18785. ;;
  18786. *-*-openbsd*)
  18787. x11_lib='libX11.so'
  18788. x11ext_lib='libXext.so'
  18789. xcursor_lib='libXcursor.so'
  18790. xinput_lib='libXi.so'
  18791. xfixes_lib='libXfixes.so'
  18792. xrandr_lib='libXrandr.so'
  18793. xrender_lib='libXrender.so'
  18794. xss_lib='libXss.so'
  18795. ;;
  18796. *)
  18797. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18798. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18799. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18800. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18801. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18802. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18803. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18804. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18805. ;;
  18806. esac
  18807. if test x$ac_cv_func_shmat != xyes; then
  18808. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18809. fi
  18810. CFLAGS="$CFLAGS $X_CFLAGS"
  18811. LDFLAGS="$LDFLAGS $X_LIBS"
  18812. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18813. #include <X11/Xproto.h>
  18814. "
  18815. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18816. have_xext_h_hdr=yes
  18817. else
  18818. have_xext_h_hdr=no
  18819. fi
  18820. if test x$have_xext_h_hdr != xyes; then
  18821. as_fn_error $? "
  18822. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18823. " "$LINENO" 5
  18824. fi
  18825. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18826. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18827. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18828. # Needed so SDL applications can include SDL_syswm.h
  18829. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18830. if test x$enable_x11_shared = xmaybe; then
  18831. enable_x11_shared=yes
  18832. fi
  18833. if test x$have_loadso != xyes && \
  18834. test x$enable_x11_shared = xyes; then
  18835. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18836. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18837. enable_x11_shared=no
  18838. fi
  18839. if test x$have_loadso = xyes && \
  18840. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18841. echo "-- dynamic libX11 -> $x11_lib"
  18842. echo "-- dynamic libX11ext -> $x11ext_lib"
  18843. cat >>confdefs.h <<_ACEOF
  18844. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18845. _ACEOF
  18846. cat >>confdefs.h <<_ACEOF
  18847. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18848. _ACEOF
  18849. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18850. else
  18851. enable_x11_shared=no
  18852. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18853. SUMMARY_video="${SUMMARY_video} x11"
  18854. fi
  18855. have_video=yes
  18856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18857. $as_echo_n "checking for XGenericEvent... " >&6; }
  18858. have_XGenericEvent=no
  18859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18860. /* end confdefs.h. */
  18861. #include <X11/Xlib.h>
  18862. int
  18863. main ()
  18864. {
  18865. Display *display;
  18866. XEvent event;
  18867. XGenericEventCookie *cookie = &event.xcookie;
  18868. XNextEvent(display, &event);
  18869. XGetEventData(display, cookie);
  18870. XFreeEventData(display, cookie);
  18871. ;
  18872. return 0;
  18873. }
  18874. _ACEOF
  18875. if ac_fn_c_try_compile "$LINENO"; then :
  18876. have_XGenericEvent=yes
  18877. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18878. fi
  18879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18881. $as_echo "$have_XGenericEvent" >&6; }
  18882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18883. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18884. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18885. $as_echo_n "(cached) " >&6
  18886. else
  18887. ac_check_lib_save_LIBS=$LIBS
  18888. LIBS="-lX11 $LIBS"
  18889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18890. /* end confdefs.h. */
  18891. /* Override any GCC internal prototype to avoid an error.
  18892. Use char because int might match the return type of a GCC
  18893. builtin and then its argument prototype would still apply. */
  18894. #ifdef __cplusplus
  18895. extern "C"
  18896. #endif
  18897. char XkbKeycodeToKeysym ();
  18898. int
  18899. main ()
  18900. {
  18901. return XkbKeycodeToKeysym ();
  18902. ;
  18903. return 0;
  18904. }
  18905. _ACEOF
  18906. if ac_fn_c_try_link "$LINENO"; then :
  18907. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18908. else
  18909. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18910. fi
  18911. rm -f core conftest.err conftest.$ac_objext \
  18912. conftest$ac_exeext conftest.$ac_ext
  18913. LIBS=$ac_check_lib_save_LIBS
  18914. fi
  18915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18916. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18917. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18918. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18919. fi
  18920. # Check whether --enable-video-x11-xcursor was given.
  18921. if test "${enable_video_x11_xcursor+set}" = set; then :
  18922. enableval=$enable_video_x11_xcursor;
  18923. else
  18924. enable_video_x11_xcursor=yes
  18925. fi
  18926. if test x$enable_video_x11_xcursor = xyes; then
  18927. definitely_enable_video_x11_xcursor=no
  18928. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18929. "
  18930. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18931. have_xcursor_h_hdr=yes
  18932. else
  18933. have_xcursor_h_hdr=no
  18934. fi
  18935. if test x$have_xcursor_h_hdr = xyes; then
  18936. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18937. echo "-- dynamic libXcursor -> $xcursor_lib"
  18938. cat >>confdefs.h <<_ACEOF
  18939. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18940. _ACEOF
  18941. definitely_enable_video_x11_xcursor=yes
  18942. else
  18943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18944. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18945. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18946. $as_echo_n "(cached) " >&6
  18947. else
  18948. ac_check_lib_save_LIBS=$LIBS
  18949. LIBS="-lXcursor $LIBS"
  18950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18951. /* end confdefs.h. */
  18952. /* Override any GCC internal prototype to avoid an error.
  18953. Use char because int might match the return type of a GCC
  18954. builtin and then its argument prototype would still apply. */
  18955. #ifdef __cplusplus
  18956. extern "C"
  18957. #endif
  18958. char XcursorImageCreate ();
  18959. int
  18960. main ()
  18961. {
  18962. return XcursorImageCreate ();
  18963. ;
  18964. return 0;
  18965. }
  18966. _ACEOF
  18967. if ac_fn_c_try_link "$LINENO"; then :
  18968. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18969. else
  18970. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18971. fi
  18972. rm -f core conftest.err conftest.$ac_objext \
  18973. conftest$ac_exeext conftest.$ac_ext
  18974. LIBS=$ac_check_lib_save_LIBS
  18975. fi
  18976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18977. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18978. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18979. have_xcursor_lib=yes
  18980. fi
  18981. if test x$have_xcursor_lib = xyes ; then
  18982. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18983. definitely_enable_video_x11_xcursor=yes
  18984. fi
  18985. fi
  18986. fi
  18987. fi
  18988. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18989. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18990. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18991. fi
  18992. # Check whether --enable-video-x11-xdbe was given.
  18993. if test "${enable_video_x11_xdbe+set}" = set; then :
  18994. enableval=$enable_video_x11_xdbe;
  18995. else
  18996. enable_video_x11_xdbe=yes
  18997. fi
  18998. if test x$enable_video_x11_xdbe = xyes; then
  18999. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  19000. "
  19001. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  19002. have_dbe_h_hdr=yes
  19003. else
  19004. have_dbe_h_hdr=no
  19005. fi
  19006. if test x$have_dbe_h_hdr = xyes; then
  19007. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  19008. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  19009. fi
  19010. fi
  19011. # Check whether --enable-video-x11-xinput was given.
  19012. if test "${enable_video_x11_xinput+set}" = set; then :
  19013. enableval=$enable_video_x11_xinput;
  19014. else
  19015. enable_video_x11_xinput=yes
  19016. fi
  19017. if test x$enable_video_x11_xinput = xyes; then
  19018. definitely_enable_video_x11_xinput=no
  19019. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  19020. "
  19021. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  19022. have_xinput_h_hdr=yes
  19023. else
  19024. have_xinput_h_hdr=no
  19025. fi
  19026. if test x$have_xinput_h_hdr = xyes; then
  19027. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  19028. echo "-- dynamic libXi -> $xinput_lib"
  19029. cat >>confdefs.h <<_ACEOF
  19030. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  19031. _ACEOF
  19032. definitely_enable_video_x11_xinput=yes
  19033. else
  19034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  19035. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  19036. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  19037. $as_echo_n "(cached) " >&6
  19038. else
  19039. ac_check_lib_save_LIBS=$LIBS
  19040. LIBS="-lXi $LIBS"
  19041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19042. /* end confdefs.h. */
  19043. /* Override any GCC internal prototype to avoid an error.
  19044. Use char because int might match the return type of a GCC
  19045. builtin and then its argument prototype would still apply. */
  19046. #ifdef __cplusplus
  19047. extern "C"
  19048. #endif
  19049. char XOpenDevice ();
  19050. int
  19051. main ()
  19052. {
  19053. return XOpenDevice ();
  19054. ;
  19055. return 0;
  19056. }
  19057. _ACEOF
  19058. if ac_fn_c_try_link "$LINENO"; then :
  19059. ac_cv_lib_Xi_XOpenDevice=yes
  19060. else
  19061. ac_cv_lib_Xi_XOpenDevice=no
  19062. fi
  19063. rm -f core conftest.err conftest.$ac_objext \
  19064. conftest$ac_exeext conftest.$ac_ext
  19065. LIBS=$ac_check_lib_save_LIBS
  19066. fi
  19067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  19068. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  19069. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  19070. have_xinput_lib=yes
  19071. fi
  19072. if test x$have_xinput_lib = xyes ; then
  19073. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  19074. definitely_enable_video_x11_xinput=yes
  19075. fi
  19076. fi
  19077. fi
  19078. fi
  19079. if test x$definitely_enable_video_x11_xinput = xyes; then
  19080. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  19081. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  19082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  19083. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  19084. have_xinput2_multitouch=no
  19085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19086. /* end confdefs.h. */
  19087. #include <X11/Xlib.h>
  19088. #include <X11/Xproto.h>
  19089. #include <X11/extensions/XInput2.h>
  19090. int
  19091. main ()
  19092. {
  19093. int event_type = XI_TouchBegin;
  19094. XITouchClassInfo *t;
  19095. ;
  19096. return 0;
  19097. }
  19098. _ACEOF
  19099. if ac_fn_c_try_compile "$LINENO"; then :
  19100. have_xinput2_multitouch=yes
  19101. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  19102. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  19103. fi
  19104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  19106. $as_echo "$have_xinput2_multitouch" >&6; }
  19107. fi
  19108. # Check whether --enable-video-x11-xfixes was given.
  19109. if test "${enable_video_x11_xfixes+set}" = set; then :
  19110. enableval=$enable_video_x11_xfixes;
  19111. else
  19112. enable_video_x11_xfixes=yes
  19113. fi
  19114. if test x$enable_video_x11_xfixes = xyes; then
  19115. definitely_enable_video_x11_xfixes=no
  19116. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  19117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  19118. $as_echo_n "checking for X11/extensions/Xfixes.h... " >&6; }
  19119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19120. /* end confdefs.h. */
  19121. #include <X11/Xlib.h>
  19122. #include <X11/Xproto.h>
  19123. #include <X11/extensions/XInput2.h>
  19124. #include <X11/extensions/Xfixes.h>
  19125. int
  19126. main ()
  19127. {
  19128. BarrierEventID b;
  19129. ;
  19130. return 0;
  19131. }
  19132. _ACEOF
  19133. if ac_fn_c_try_compile "$LINENO"; then :
  19134. have_xfixes_h_hdr=yes
  19135. else
  19136. have_xfixes_h_hdr=no
  19137. fi
  19138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  19140. $as_echo "$have_xfixes_h_hdr" >&6; }
  19141. if test x$have_xfixes_h_hdr = xyes; then
  19142. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  19143. echo "-- dynamic libXfixes -> $xfixes_lib"
  19144. cat >>confdefs.h <<_ACEOF
  19145. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES "$xfixes_lib"
  19146. _ACEOF
  19147. definitely_enable_video_x11_xfixes=yes
  19148. else
  19149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  19150. $as_echo_n "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  19151. if ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+:} false; then :
  19152. $as_echo_n "(cached) " >&6
  19153. else
  19154. ac_check_lib_save_LIBS=$LIBS
  19155. LIBS="-lXfixes $LIBS"
  19156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19157. /* end confdefs.h. */
  19158. /* Override any GCC internal prototype to avoid an error.
  19159. Use char because int might match the return type of a GCC
  19160. builtin and then its argument prototype would still apply. */
  19161. #ifdef __cplusplus
  19162. extern "C"
  19163. #endif
  19164. char XFixesCreatePointerBarrier ();
  19165. int
  19166. main ()
  19167. {
  19168. return XFixesCreatePointerBarrier ();
  19169. ;
  19170. return 0;
  19171. }
  19172. _ACEOF
  19173. if ac_fn_c_try_link "$LINENO"; then :
  19174. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  19175. else
  19176. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  19177. fi
  19178. rm -f core conftest.err conftest.$ac_objext \
  19179. conftest$ac_exeext conftest.$ac_ext
  19180. LIBS=$ac_check_lib_save_LIBS
  19181. fi
  19182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  19183. $as_echo "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  19184. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes; then :
  19185. have_xfixes_lib=yes
  19186. fi
  19187. if test x$have_xfixes_lib = xyes ; then
  19188. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  19189. definitely_enable_video_x11_xfixes=yes
  19190. fi
  19191. fi
  19192. fi
  19193. fi
  19194. if test x$definitely_enable_video_x11_xfixes = xyes; then
  19195. $as_echo "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  19196. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  19197. fi
  19198. # Check whether --enable-video-x11-xrandr was given.
  19199. if test "${enable_video_x11_xrandr+set}" = set; then :
  19200. enableval=$enable_video_x11_xrandr;
  19201. else
  19202. enable_video_x11_xrandr=yes
  19203. fi
  19204. if test x$enable_video_x11_xrandr = xyes; then
  19205. definitely_enable_video_x11_xrandr=no
  19206. have_xrandr_h_hdr=no
  19207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19208. /* end confdefs.h. */
  19209. #include <X11/Xlib.h>
  19210. #include <X11/extensions/Xrandr.h>
  19211. int
  19212. main ()
  19213. {
  19214. XRRScreenResources *res = NULL;
  19215. ;
  19216. return 0;
  19217. }
  19218. _ACEOF
  19219. if ac_fn_c_try_compile "$LINENO"; then :
  19220. have_xrandr_h_hdr=yes
  19221. fi
  19222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19223. if test x$have_xrandr_h_hdr = xyes; then
  19224. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  19225. echo "-- dynamic libXrandr -> $xrandr_lib"
  19226. cat >>confdefs.h <<_ACEOF
  19227. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  19228. _ACEOF
  19229. definitely_enable_video_x11_xrandr=yes
  19230. else
  19231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  19232. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  19233. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  19234. $as_echo_n "(cached) " >&6
  19235. else
  19236. ac_check_lib_save_LIBS=$LIBS
  19237. LIBS="-lXrandr $LIBS"
  19238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19239. /* end confdefs.h. */
  19240. /* Override any GCC internal prototype to avoid an error.
  19241. Use char because int might match the return type of a GCC
  19242. builtin and then its argument prototype would still apply. */
  19243. #ifdef __cplusplus
  19244. extern "C"
  19245. #endif
  19246. char XRRQueryExtension ();
  19247. int
  19248. main ()
  19249. {
  19250. return XRRQueryExtension ();
  19251. ;
  19252. return 0;
  19253. }
  19254. _ACEOF
  19255. if ac_fn_c_try_link "$LINENO"; then :
  19256. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  19257. else
  19258. ac_cv_lib_Xrandr_XRRQueryExtension=no
  19259. fi
  19260. rm -f core conftest.err conftest.$ac_objext \
  19261. conftest$ac_exeext conftest.$ac_ext
  19262. LIBS=$ac_check_lib_save_LIBS
  19263. fi
  19264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  19265. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  19266. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  19267. have_xrandr_lib=yes
  19268. fi
  19269. if test x$have_xrandr_lib = xyes ; then
  19270. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  19271. definitely_enable_video_x11_xrandr=yes
  19272. fi
  19273. fi
  19274. fi
  19275. fi
  19276. if test x$definitely_enable_video_x11_xrandr = xyes; then
  19277. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  19278. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  19279. fi
  19280. # Check whether --enable-video-x11-scrnsaver was given.
  19281. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  19282. enableval=$enable_video_x11_scrnsaver;
  19283. else
  19284. enable_video_x11_scrnsaver=yes
  19285. fi
  19286. if test x$enable_video_x11_scrnsaver = xyes; then
  19287. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  19288. "
  19289. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  19290. have_scrnsaver_h_hdr=yes
  19291. else
  19292. have_scrnsaver_h_hdr=no
  19293. fi
  19294. if test x$have_scrnsaver_h_hdr = xyes; then
  19295. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  19296. echo "-- dynamic libXss -> $xss_lib"
  19297. cat >>confdefs.h <<_ACEOF
  19298. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  19299. _ACEOF
  19300. definitely_enable_video_x11_scrnsaver=yes
  19301. else
  19302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  19303. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  19304. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  19305. $as_echo_n "(cached) " >&6
  19306. else
  19307. ac_check_lib_save_LIBS=$LIBS
  19308. LIBS="-lXss $LIBS"
  19309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19310. /* end confdefs.h. */
  19311. /* Override any GCC internal prototype to avoid an error.
  19312. Use char because int might match the return type of a GCC
  19313. builtin and then its argument prototype would still apply. */
  19314. #ifdef __cplusplus
  19315. extern "C"
  19316. #endif
  19317. char XScreenSaverSuspend ();
  19318. int
  19319. main ()
  19320. {
  19321. return XScreenSaverSuspend ();
  19322. ;
  19323. return 0;
  19324. }
  19325. _ACEOF
  19326. if ac_fn_c_try_link "$LINENO"; then :
  19327. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  19328. else
  19329. ac_cv_lib_Xss_XScreenSaverSuspend=no
  19330. fi
  19331. rm -f core conftest.err conftest.$ac_objext \
  19332. conftest$ac_exeext conftest.$ac_ext
  19333. LIBS=$ac_check_lib_save_LIBS
  19334. fi
  19335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  19336. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  19337. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  19338. have_xss_lib=yes
  19339. fi
  19340. if test x$have_xss_lib = xyes ; then
  19341. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  19342. definitely_enable_video_x11_scrnsaver=yes
  19343. fi
  19344. fi
  19345. fi
  19346. fi
  19347. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  19348. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  19349. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  19350. fi
  19351. # Check whether --enable-video-x11-xshape was given.
  19352. if test "${enable_video_x11_xshape+set}" = set; then :
  19353. enableval=$enable_video_x11_xshape;
  19354. else
  19355. enable_video_x11_xshape=yes
  19356. fi
  19357. if test x$enable_video_x11_xshape = xyes; then
  19358. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  19359. "
  19360. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  19361. have_shape_h_hdr=yes
  19362. else
  19363. have_shape_h_hdr=no
  19364. fi
  19365. if test x$have_shape_h_hdr = xyes; then
  19366. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  19367. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  19368. fi
  19369. fi
  19370. fi
  19371. fi
  19372. if test x$have_x != xyes; then
  19373. # Prevent Mesa from including X11 headers
  19374. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  19375. fi
  19376. }
  19377. CheckVivanteVideo()
  19378. {
  19379. # Check whether --enable-video-vivante was given.
  19380. if test "${enable_video_vivante+set}" = set; then :
  19381. enableval=$enable_video_vivante;
  19382. else
  19383. enable_video_vivante=yes
  19384. fi
  19385. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  19386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  19387. $as_echo_n "checking for Vivante VDK API... " >&6; }
  19388. have_vivante_vdk=no
  19389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19390. /* end confdefs.h. */
  19391. #define LINUX
  19392. #define EGL_API_FB
  19393. #include <gc_vdk.h>
  19394. int
  19395. main ()
  19396. {
  19397. ;
  19398. return 0;
  19399. }
  19400. _ACEOF
  19401. if ac_fn_c_try_compile "$LINENO"; then :
  19402. have_vivante_vdk=yes
  19403. fi
  19404. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  19406. $as_echo "$have_vivante_vdk" >&6; }
  19407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  19408. $as_echo_n "checking for Vivante FB API... " >&6; }
  19409. have_vivante_egl=no
  19410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19411. /* end confdefs.h. */
  19412. #define LINUX
  19413. #define EGL_API_FB
  19414. #include <EGL/eglvivante.h>
  19415. int
  19416. main ()
  19417. {
  19418. ;
  19419. return 0;
  19420. }
  19421. _ACEOF
  19422. if ac_fn_c_try_compile "$LINENO"; then :
  19423. have_vivante_egl=yes
  19424. fi
  19425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  19427. $as_echo "$have_vivante_egl" >&6; }
  19428. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  19429. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  19430. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  19431. if test x$have_vivante_vdk = xyes; then
  19432. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  19433. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  19434. fi
  19435. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  19436. SUMMARY_video="${SUMMARY_video} vivante"
  19437. have_video=yes
  19438. fi
  19439. fi
  19440. }
  19441. CheckHaikuVideo()
  19442. {
  19443. if test x$enable_video = xyes; then
  19444. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  19445. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  19446. have_video=yes
  19447. SUMMARY_video="${SUMMARY_video} haiku"
  19448. fi
  19449. }
  19450. CheckCOCOA()
  19451. {
  19452. # Check whether --enable-video-cocoa was given.
  19453. if test "${enable_video_cocoa+set}" = set; then :
  19454. enableval=$enable_video_cocoa;
  19455. else
  19456. enable_video_cocoa=yes
  19457. fi
  19458. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  19459. save_CFLAGS="$CFLAGS"
  19460. CFLAGS="$CFLAGS -x objective-c"
  19461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  19462. $as_echo_n "checking for Cocoa framework... " >&6; }
  19463. have_cocoa=no
  19464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19465. /* end confdefs.h. */
  19466. #import <Cocoa/Cocoa.h>
  19467. int
  19468. main ()
  19469. {
  19470. ;
  19471. return 0;
  19472. }
  19473. _ACEOF
  19474. if ac_fn_c_try_compile "$LINENO"; then :
  19475. have_cocoa=yes
  19476. fi
  19477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  19479. $as_echo "$have_cocoa" >&6; }
  19480. CFLAGS="$save_CFLAGS"
  19481. if test x$have_cocoa = xyes; then
  19482. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  19483. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  19484. SUMMARY_video="${SUMMARY_video} cocoa"
  19485. have_video=yes
  19486. fi
  19487. fi
  19488. }
  19489. CheckMETAL()
  19490. {
  19491. # Check whether --enable-video-metal was given.
  19492. if test "${enable_video_metal+set}" = set; then :
  19493. enableval=$enable_video_metal;
  19494. else
  19495. enable_video_metal=yes
  19496. fi
  19497. # Check whether --enable-render-metal was given.
  19498. if test "${enable_render_metal+set}" = set; then :
  19499. enableval=$enable_render_metal;
  19500. else
  19501. enable_render_metal=yes
  19502. fi
  19503. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  19504. save_CFLAGS="$CFLAGS"
  19505. CFLAGS="$CFLAGS -x objective-c"
  19506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  19507. $as_echo_n "checking for Metal framework... " >&6; }
  19508. have_metal=no
  19509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19510. /* end confdefs.h. */
  19511. #import <Cocoa/Cocoa.h>
  19512. #import <Metal/Metal.h>
  19513. #import <QuartzCore/CAMetalLayer.h>
  19514. #if TARGET_CPU_X86
  19515. #error Metal doesn't work on this configuration
  19516. #endif
  19517. int
  19518. main ()
  19519. {
  19520. ;
  19521. return 0;
  19522. }
  19523. _ACEOF
  19524. if ac_fn_c_try_compile "$LINENO"; then :
  19525. have_metal=yes
  19526. fi
  19527. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19528. CFLAGS="$save_CFLAGS"
  19529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  19530. $as_echo "$have_metal" >&6; }
  19531. if test x$have_metal = xyes; then
  19532. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  19533. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  19534. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  19535. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  19536. fi
  19537. SUMMARY_video="${SUMMARY_video} metal"
  19538. else
  19539. enable_video_metal=no
  19540. enable_render_metal=no
  19541. fi
  19542. fi
  19543. }
  19544. CheckDirectFB()
  19545. {
  19546. # Check whether --enable-video-directfb was given.
  19547. if test "${enable_video_directfb+set}" = set; then :
  19548. enableval=$enable_video_directfb;
  19549. else
  19550. enable_video_directfb=no
  19551. fi
  19552. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  19553. pkg_failed=no
  19554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  19555. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  19556. if test -n "$DIRECTFB_CFLAGS"; then
  19557. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  19558. elif test -n "$PKG_CONFIG"; then
  19559. if test -n "$PKG_CONFIG" && \
  19560. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19561. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19562. ac_status=$?
  19563. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19564. test $ac_status = 0; }; then
  19565. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  19566. test "x$?" != "x0" && pkg_failed=yes
  19567. else
  19568. pkg_failed=yes
  19569. fi
  19570. else
  19571. pkg_failed=untried
  19572. fi
  19573. if test -n "$DIRECTFB_LIBS"; then
  19574. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  19575. elif test -n "$PKG_CONFIG"; then
  19576. if test -n "$PKG_CONFIG" && \
  19577. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19578. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19579. ac_status=$?
  19580. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19581. test $ac_status = 0; }; then
  19582. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  19583. test "x$?" != "x0" && pkg_failed=yes
  19584. else
  19585. pkg_failed=yes
  19586. fi
  19587. else
  19588. pkg_failed=untried
  19589. fi
  19590. if test $pkg_failed = yes; then
  19591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19592. $as_echo "no" >&6; }
  19593. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19594. _pkg_short_errors_supported=yes
  19595. else
  19596. _pkg_short_errors_supported=no
  19597. fi
  19598. if test $_pkg_short_errors_supported = yes; then
  19599. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19600. else
  19601. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19602. fi
  19603. # Put the nasty error message in config.log where it belongs
  19604. echo "$DIRECTFB_PKG_ERRORS" >&5
  19605. video_directfb=no
  19606. elif test $pkg_failed = untried; then
  19607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19608. $as_echo "no" >&6; }
  19609. video_directfb=no
  19610. else
  19611. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  19612. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  19613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19614. $as_echo "yes" >&6; }
  19615. video_directfb=yes
  19616. fi
  19617. if test x$video_directfb = xyes; then
  19618. # SuSE 11.1 installs directfb-config without directfb-devel
  19619. save_CPPFLAGS="$CPPFLAGS"
  19620. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  19621. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  19622. if test "x$ac_cv_header_directfb_h" = xyes; then :
  19623. have_directfb_hdr=yes
  19624. else
  19625. have_directfb_hdr=no
  19626. fi
  19627. CPPFLAGS="$save_CPPFLAGS"
  19628. video_directfb=$have_directfb_hdr
  19629. fi
  19630. if test x$video_directfb = xyes; then
  19631. # Check whether --enable-directfb-shared was given.
  19632. if test "${enable_directfb_shared+set}" = set; then :
  19633. enableval=$enable_directfb_shared;
  19634. else
  19635. enable_directfb_shared=yes
  19636. fi
  19637. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  19638. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  19639. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  19640. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  19641. directfb_shared=no
  19642. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19643. if test x$have_loadso != xyes && \
  19644. test x$enable_directfb_shared = xyes; then
  19645. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  19646. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  19647. fi
  19648. if test x$have_loadso = xyes && \
  19649. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  19650. directfb_shared=yes
  19651. echo "-- dynamic libdirectfb -> $directfb_lib"
  19652. cat >>confdefs.h <<_ACEOF
  19653. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  19654. _ACEOF
  19655. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  19656. else
  19657. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  19658. SUMMARY_video="${SUMMARY_video} directfb"
  19659. fi
  19660. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  19661. have_video=yes
  19662. fi
  19663. fi
  19664. }
  19665. CheckKMSDRM()
  19666. {
  19667. # Check whether --enable-video-kmsdrm was given.
  19668. if test "${enable_video_kmsdrm+set}" = set; then :
  19669. enableval=$enable_video_kmsdrm;
  19670. else
  19671. enable_video_kmsdrm=yes
  19672. fi
  19673. if test x$enable_video = xyes && \
  19674. test x$enable_video_kmsdrm = xyes && \
  19675. test x$video_opengl_egl = xyes; then
  19676. video_kmsdrm=no
  19677. pkg_failed=no
  19678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  19679. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  19680. if test -n "$LIBDRM_CFLAGS"; then
  19681. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  19682. elif test -n "$PKG_CONFIG"; then
  19683. if test -n "$PKG_CONFIG" && \
  19684. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19685. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19686. ac_status=$?
  19687. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19688. test $ac_status = 0; }; then
  19689. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  19690. test "x$?" != "x0" && pkg_failed=yes
  19691. else
  19692. pkg_failed=yes
  19693. fi
  19694. else
  19695. pkg_failed=untried
  19696. fi
  19697. if test -n "$LIBDRM_LIBS"; then
  19698. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19699. elif test -n "$PKG_CONFIG"; then
  19700. if test -n "$PKG_CONFIG" && \
  19701. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19702. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19703. ac_status=$?
  19704. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19705. test $ac_status = 0; }; then
  19706. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19707. test "x$?" != "x0" && pkg_failed=yes
  19708. else
  19709. pkg_failed=yes
  19710. fi
  19711. else
  19712. pkg_failed=untried
  19713. fi
  19714. if test $pkg_failed = yes; then
  19715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19716. $as_echo "no" >&6; }
  19717. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19718. _pkg_short_errors_supported=yes
  19719. else
  19720. _pkg_short_errors_supported=no
  19721. fi
  19722. if test $_pkg_short_errors_supported = yes; then
  19723. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19724. else
  19725. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19726. fi
  19727. # Put the nasty error message in config.log where it belongs
  19728. echo "$LIBDRM_PKG_ERRORS" >&5
  19729. libdrm_avail=no
  19730. elif test $pkg_failed = untried; then
  19731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19732. $as_echo "no" >&6; }
  19733. libdrm_avail=no
  19734. else
  19735. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19736. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19738. $as_echo "yes" >&6; }
  19739. libdrm_avail=yes
  19740. fi
  19741. pkg_failed=no
  19742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19743. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19744. if test -n "$LIBGBM_CFLAGS"; then
  19745. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19746. elif test -n "$PKG_CONFIG"; then
  19747. if test -n "$PKG_CONFIG" && \
  19748. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19749. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19750. ac_status=$?
  19751. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19752. test $ac_status = 0; }; then
  19753. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19754. test "x$?" != "x0" && pkg_failed=yes
  19755. else
  19756. pkg_failed=yes
  19757. fi
  19758. else
  19759. pkg_failed=untried
  19760. fi
  19761. if test -n "$LIBGBM_LIBS"; then
  19762. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19763. elif test -n "$PKG_CONFIG"; then
  19764. if test -n "$PKG_CONFIG" && \
  19765. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19766. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19767. ac_status=$?
  19768. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19769. test $ac_status = 0; }; then
  19770. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19771. test "x$?" != "x0" && pkg_failed=yes
  19772. else
  19773. pkg_failed=yes
  19774. fi
  19775. else
  19776. pkg_failed=untried
  19777. fi
  19778. if test $pkg_failed = yes; then
  19779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19780. $as_echo "no" >&6; }
  19781. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19782. _pkg_short_errors_supported=yes
  19783. else
  19784. _pkg_short_errors_supported=no
  19785. fi
  19786. if test $_pkg_short_errors_supported = yes; then
  19787. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19788. else
  19789. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19790. fi
  19791. # Put the nasty error message in config.log where it belongs
  19792. echo "$LIBGBM_PKG_ERRORS" >&5
  19793. libgbm_avail=no
  19794. elif test $pkg_failed = untried; then
  19795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19796. $as_echo "no" >&6; }
  19797. libgbm_avail=no
  19798. else
  19799. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19800. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19802. $as_echo "yes" >&6; }
  19803. libgbm_avail=yes
  19804. fi
  19805. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19806. video_kmsdrm=yes
  19807. fi
  19808. if test x$video_kmsdrm = xyes; then
  19809. # Check whether --enable-kmsdrm-shared was given.
  19810. if test "${enable_kmsdrm_shared+set}" = set; then :
  19811. enableval=$enable_kmsdrm_shared;
  19812. else
  19813. enable_kmsdrm_shared=yes
  19814. fi
  19815. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19816. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19817. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19819. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19820. kmsdrm_shared=no
  19821. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  19822. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  19823. if test x$have_loadso != xyes && \
  19824. test x$enable_kmsdrm_shared = xyes; then
  19825. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19826. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19827. fi
  19828. if test x$have_loadso = xyes && \
  19829. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19830. kmsdrm_shared=yes
  19831. cat >>confdefs.h <<_ACEOF
  19832. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19833. _ACEOF
  19834. cat >>confdefs.h <<_ACEOF
  19835. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19836. _ACEOF
  19837. cat >>confdefs.h <<_ACEOF
  19838. #define HAVE_KMSDRM_SHARED "TRUE"
  19839. _ACEOF
  19840. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19841. else
  19842. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19843. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19844. fi
  19845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19846. $as_echo "$kmsdrm_shared" >&6; }
  19847. if test x$kmsdrm_shared = xyes; then
  19848. echo "-- dynamic libdrm -> $drm_lib"
  19849. echo "-- dynamic libgbm -> $gbm_lib"
  19850. fi
  19851. have_video=yes
  19852. fi
  19853. fi
  19854. }
  19855. CheckDummyVideo()
  19856. {
  19857. # Check whether --enable-video-dummy was given.
  19858. if test "${enable_video_dummy+set}" = set; then :
  19859. enableval=$enable_video_dummy;
  19860. else
  19861. enable_video_dummy=yes
  19862. fi
  19863. if test x$enable_video_dummy = xyes; then
  19864. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19865. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19866. have_video=yes
  19867. SUMMARY_video="${SUMMARY_video} dummy"
  19868. fi
  19869. }
  19870. CheckOffscreenVideo()
  19871. {
  19872. # Check whether --enable-video-offscreen was given.
  19873. if test "${enable_video_offscreen+set}" = set; then :
  19874. enableval=$enable_video_offscreen;
  19875. else
  19876. enable_video_offscreen=no
  19877. fi
  19878. if test x$enable_video_offscreen = xyes; then
  19879. $as_echo "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  19880. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  19881. have_video=yes
  19882. SUMMARY_video="${SUMMARY_video} offscreen"
  19883. fi
  19884. }
  19885. CheckQNXVideo()
  19886. {
  19887. if test x$enable_video = xyes; then
  19888. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19889. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19890. have_video=yes
  19891. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19892. SUMMARY_video="${SUMMARY_video} qnx"
  19893. fi
  19894. }
  19895. CheckQNXAudio()
  19896. {
  19897. if test x$enable_audio = xyes; then
  19898. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19899. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19900. have_audio=yes
  19901. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19902. SUMMARY_audio="${SUMMARY_audio} qsa"
  19903. fi
  19904. }
  19905. # Check whether --enable-video-opengl was given.
  19906. if test "${enable_video_opengl+set}" = set; then :
  19907. enableval=$enable_video_opengl;
  19908. else
  19909. enable_video_opengl=yes
  19910. fi
  19911. CheckGLX()
  19912. {
  19913. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  19915. $as_echo_n "checking for GLX support... " >&6; }
  19916. video_opengl_glx=no
  19917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19918. /* end confdefs.h. */
  19919. #include <GL/glx.h>
  19920. int
  19921. main ()
  19922. {
  19923. ;
  19924. return 0;
  19925. }
  19926. _ACEOF
  19927. if ac_fn_c_try_compile "$LINENO"; then :
  19928. video_opengl_glx=yes
  19929. fi
  19930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  19932. $as_echo "$video_opengl_glx" >&6; }
  19933. if test x$video_opengl_glx = xyes; then
  19934. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19935. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19936. fi
  19937. fi
  19938. }
  19939. # Check whether --enable-video-opengles was given.
  19940. if test "${enable_video_opengles+set}" = set; then :
  19941. enableval=$enable_video_opengles;
  19942. else
  19943. enable_video_opengles=yes
  19944. fi
  19945. # Check whether --enable-video-opengles1 was given.
  19946. if test "${enable_video_opengles1+set}" = set; then :
  19947. enableval=$enable_video_opengles1;
  19948. else
  19949. enable_video_opengles1=yes
  19950. fi
  19951. # Check whether --enable-video-opengles2 was given.
  19952. if test "${enable_video_opengles2+set}" = set; then :
  19953. enableval=$enable_video_opengles2;
  19954. else
  19955. enable_video_opengles2=yes
  19956. fi
  19957. CheckEGL()
  19958. {
  19959. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19961. $as_echo_n "checking for EGL support... " >&6; }
  19962. video_opengl_egl=no
  19963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19964. /* end confdefs.h. */
  19965. #define LINUX
  19966. #define EGL_API_FB
  19967. #define MESA_EGL_NO_X11_HEADERS
  19968. #define EGL_NO_X11
  19969. #include <EGL/egl.h>
  19970. #include <EGL/eglext.h>
  19971. int
  19972. main ()
  19973. {
  19974. ;
  19975. return 0;
  19976. }
  19977. _ACEOF
  19978. if ac_fn_c_try_compile "$LINENO"; then :
  19979. video_opengl_egl=yes
  19980. fi
  19981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19983. $as_echo "$video_opengl_egl" >&6; }
  19984. if test x$video_opengl_egl = xyes; then
  19985. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19986. fi
  19987. fi
  19988. }
  19989. CheckOpenGL()
  19990. {
  19991. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  19993. $as_echo_n "checking for OpenGL headers... " >&6; }
  19994. video_opengl=no
  19995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19996. /* end confdefs.h. */
  19997. #include <GL/gl.h>
  19998. #include <GL/glext.h>
  19999. int
  20000. main ()
  20001. {
  20002. ;
  20003. return 0;
  20004. }
  20005. _ACEOF
  20006. if ac_fn_c_try_compile "$LINENO"; then :
  20007. video_opengl=yes
  20008. fi
  20009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  20011. $as_echo "$video_opengl" >&6; }
  20012. if test x$video_opengl = xyes; then
  20013. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20014. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20015. SUMMARY_video="${SUMMARY_video} opengl"
  20016. fi
  20017. fi
  20018. }
  20019. CheckOpenGLES()
  20020. {
  20021. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20022. if test x$enable_video_opengles1 = xyes; then
  20023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  20024. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  20025. video_opengles_v1=no
  20026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20027. /* end confdefs.h. */
  20028. #include <GLES/gl.h>
  20029. #include <GLES/glext.h>
  20030. int
  20031. main ()
  20032. {
  20033. ;
  20034. return 0;
  20035. }
  20036. _ACEOF
  20037. if ac_fn_c_try_compile "$LINENO"; then :
  20038. video_opengles_v1=yes
  20039. fi
  20040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  20042. $as_echo "$video_opengles_v1" >&6; }
  20043. if test x$video_opengles_v1 = xyes; then
  20044. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20045. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20046. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20047. fi
  20048. fi
  20049. if test x$enable_video_opengles2 = xyes; then
  20050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20051. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20052. video_opengles_v2=no
  20053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20054. /* end confdefs.h. */
  20055. #include <GLES2/gl2.h>
  20056. #include <GLES2/gl2ext.h>
  20057. int
  20058. main ()
  20059. {
  20060. ;
  20061. return 0;
  20062. }
  20063. _ACEOF
  20064. if ac_fn_c_try_compile "$LINENO"; then :
  20065. video_opengles_v2=yes
  20066. fi
  20067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20069. $as_echo "$video_opengles_v2" >&6; }
  20070. if test x$video_opengles_v2 = xyes; then
  20071. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20072. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20073. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20074. fi
  20075. fi
  20076. fi
  20077. }
  20078. CheckWINDOWSGL()
  20079. {
  20080. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20081. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20082. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  20083. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20084. SUMMARY_video="${SUMMARY_video} opengl"
  20085. fi
  20086. }
  20087. CheckWINDOWSGLES()
  20088. {
  20089. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20091. $as_echo_n "checking for EGL support... " >&6; }
  20092. video_opengl_egl=no
  20093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20094. /* end confdefs.h. */
  20095. #include <EGL/egl.h>
  20096. int
  20097. main ()
  20098. {
  20099. ;
  20100. return 0;
  20101. }
  20102. _ACEOF
  20103. if ac_fn_c_try_compile "$LINENO"; then :
  20104. video_opengl_egl=yes
  20105. fi
  20106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20108. $as_echo "$video_opengl_egl" >&6; }
  20109. if test x$video_opengl_egl = xyes; then
  20110. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20111. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20112. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20113. fi
  20114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20115. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20116. video_opengles_v2=no
  20117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20118. /* end confdefs.h. */
  20119. #include <GLES2/gl2.h>
  20120. #include <GLES2/gl2ext.h>
  20121. int
  20122. main ()
  20123. {
  20124. ;
  20125. return 0;
  20126. }
  20127. _ACEOF
  20128. if ac_fn_c_try_compile "$LINENO"; then :
  20129. video_opengles_v2=yes
  20130. fi
  20131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20133. $as_echo "$video_opengles_v2" >&6; }
  20134. if test x$video_opengles_v2 = xyes; then
  20135. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20136. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20137. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20138. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20139. fi
  20140. fi
  20141. }
  20142. CheckHaikuGL()
  20143. {
  20144. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20145. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20146. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  20147. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20148. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  20149. SUMMARY_video="${SUMMARY_video} opengl"
  20150. fi
  20151. }
  20152. CheckMacGL()
  20153. {
  20154. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20155. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20156. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  20157. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20158. SUMMARY_video="${SUMMARY_video} opengl"
  20159. fi
  20160. }
  20161. CheckMacGLES()
  20162. {
  20163. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20164. video_opengl_egl=yes
  20165. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20166. video_opengles_v2=yes
  20167. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20168. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20169. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20170. fi
  20171. }
  20172. CheckEmscriptenGLES()
  20173. {
  20174. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20176. $as_echo_n "checking for EGL support... " >&6; }
  20177. video_opengl_egl=no
  20178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20179. /* end confdefs.h. */
  20180. #include <EGL/egl.h>
  20181. int
  20182. main ()
  20183. {
  20184. ;
  20185. return 0;
  20186. }
  20187. _ACEOF
  20188. if ac_fn_c_try_compile "$LINENO"; then :
  20189. video_opengl_egl=yes
  20190. fi
  20191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20193. $as_echo "$video_opengl_egl" >&6; }
  20194. if test x$video_opengl_egl = xyes; then
  20195. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20196. fi
  20197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20198. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20199. video_opengles_v2=no
  20200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20201. /* end confdefs.h. */
  20202. #include <GLES2/gl2.h>
  20203. #include <GLES2/gl2ext.h>
  20204. int
  20205. main ()
  20206. {
  20207. ;
  20208. return 0;
  20209. }
  20210. _ACEOF
  20211. if ac_fn_c_try_compile "$LINENO"; then :
  20212. video_opengles_v2=yes
  20213. fi
  20214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20216. $as_echo "$video_opengles_v2" >&6; }
  20217. if test x$video_opengles_v2 = xyes; then
  20218. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20219. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20220. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20221. fi
  20222. fi
  20223. }
  20224. # Check whether --enable-video-vulkan was given.
  20225. if test "${enable_video_vulkan+set}" = set; then :
  20226. enableval=$enable_video_vulkan;
  20227. else
  20228. enable_video_vulkan=yes
  20229. fi
  20230. CheckVulkan()
  20231. {
  20232. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  20233. case "$host" in
  20234. *-*-android*)
  20235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20236. /* end confdefs.h. */
  20237. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  20238. #error Vulkan doesn't work on this configuration
  20239. #endif
  20240. int
  20241. main ()
  20242. {
  20243. ;
  20244. return 0;
  20245. }
  20246. _ACEOF
  20247. if ac_fn_c_try_compile "$LINENO"; then :
  20248. else
  20249. enable_video_vulkan=no
  20250. fi
  20251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20252. ;;
  20253. *-*-darwin*)
  20254. save_CFLAGS="$CFLAGS"
  20255. CFLAGS="$CFLAGS -x objective-c"
  20256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20257. /* end confdefs.h. */
  20258. #include <Cocoa/Cocoa.h>
  20259. #include <Metal/Metal.h>
  20260. #include <QuartzCore/CAMetalLayer.h>
  20261. #if TARGET_CPU_X86
  20262. #error Vulkan doesn't work on this configuration
  20263. #endif
  20264. int
  20265. main ()
  20266. {
  20267. ;
  20268. return 0;
  20269. }
  20270. _ACEOF
  20271. if ac_fn_c_try_compile "$LINENO"; then :
  20272. else
  20273. enable_video_vulkan=no
  20274. fi
  20275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20276. CFLAGS="$save_CFLAGS"
  20277. ;;
  20278. *)
  20279. ;;
  20280. esac
  20281. if test x$enable_video_vulkan = xno; then
  20282. # For reasons I am totally unable to see, I get an undefined macro error if
  20283. # I put this in the AC_TRY_COMPILE.
  20284. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  20285. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  20286. fi
  20287. fi
  20288. if test x$have_loadso != xyes; then
  20289. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  20290. $as_echo "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  20291. enable_video_vulkan=no
  20292. fi
  20293. if test x$enable_video_vulkan = xyes; then
  20294. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  20295. SUMMARY_video="${SUMMARY_video} vulkan"
  20296. fi
  20297. }
  20298. CheckInputEvents()
  20299. {
  20300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  20301. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  20302. use_input_events=no
  20303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20304. /* end confdefs.h. */
  20305. #include <linux/input.h>
  20306. int
  20307. main ()
  20308. {
  20309. #ifndef EVIOCGNAME
  20310. #error EVIOCGNAME() ioctl not available
  20311. #endif
  20312. ;
  20313. return 0;
  20314. }
  20315. _ACEOF
  20316. if ac_fn_c_try_compile "$LINENO"; then :
  20317. use_input_events=yes
  20318. fi
  20319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  20321. $as_echo "$use_input_events" >&6; }
  20322. if test x$use_input_events = xyes; then
  20323. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  20324. SUMMARY_input="${SUMMARY_input} linuxev"
  20325. fi
  20326. }
  20327. CheckInputKD()
  20328. {
  20329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  20330. $as_echo_n "checking for Linux kd.h... " >&6; }
  20331. use_input_kd=no
  20332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20333. /* end confdefs.h. */
  20334. #include <linux/kd.h>
  20335. #include <linux/keyboard.h>
  20336. int
  20337. main ()
  20338. {
  20339. struct kbentry kbe;
  20340. kbe.kb_table = KG_CTRL;
  20341. ioctl(0, KDGKBENT, &kbe);
  20342. ;
  20343. return 0;
  20344. }
  20345. _ACEOF
  20346. if ac_fn_c_try_compile "$LINENO"; then :
  20347. use_input_kd=yes
  20348. fi
  20349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  20351. $as_echo "$use_input_kd" >&6; }
  20352. if test x$use_input_kd = xyes; then
  20353. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  20354. SUMMARY_input="${SUMMARY_input} linuxkd"
  20355. fi
  20356. }
  20357. CheckInputKBIO()
  20358. {
  20359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  20360. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  20361. use_input_kbio=no
  20362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20363. /* end confdefs.h. */
  20364. #include <sys/kbio.h>
  20365. #include <sys/ioctl.h>
  20366. int
  20367. main ()
  20368. {
  20369. accentmap_t accTable;
  20370. ioctl(0, KDENABIO, 1);
  20371. ;
  20372. return 0;
  20373. }
  20374. _ACEOF
  20375. if ac_fn_c_try_compile "$LINENO"; then :
  20376. use_input_kbio=yes
  20377. fi
  20378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  20380. $as_echo "$use_input_kbio" >&6; }
  20381. if test x$use_input_kbio = xyes; then
  20382. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  20383. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  20384. fi
  20385. }
  20386. CheckInputWSCONS()
  20387. {
  20388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  20389. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  20390. use_input_wscons=no
  20391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20392. /* end confdefs.h. */
  20393. #include <sys/time.h>
  20394. #include <dev/wscons/wsconsio.h>
  20395. #include <dev/wscons/wsksymdef.h>
  20396. #include <dev/wscons/wsksymvar.h>
  20397. #include <sys/ioctl.h>
  20398. int
  20399. main ()
  20400. {
  20401. struct wskbd_map_data data;
  20402. ioctl(0, WSKBDIO_GETMAP, &data);
  20403. ;
  20404. return 0;
  20405. }
  20406. _ACEOF
  20407. if ac_fn_c_try_compile "$LINENO"; then :
  20408. use_input_wscons=yes
  20409. fi
  20410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  20412. $as_echo "$use_input_wscons" >&6; }
  20413. if test x$use_input_wscons = xyes; then
  20414. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  20415. SUMMARY_input="${SUMMARY_input} wscons"
  20416. fi
  20417. }
  20418. CheckLibUDev()
  20419. {
  20420. # Check whether --enable-libudev was given.
  20421. if test "${enable_libudev+set}" = set; then :
  20422. enableval=$enable_libudev;
  20423. else
  20424. enable_libudev=yes
  20425. fi
  20426. if test x$enable_libudev = xyes; then
  20427. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  20428. if test "x$ac_cv_header_libudev_h" = xyes; then :
  20429. have_libudev_h_hdr=yes
  20430. else
  20431. have_libudev_h_hdr=no
  20432. fi
  20433. if test x$have_libudev_h_hdr = xyes; then
  20434. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  20435. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20436. if test x$udev_lib != x; then
  20437. echo "-- dynamic udev -> $udev_lib"
  20438. cat >>confdefs.h <<_ACEOF
  20439. #define SDL_UDEV_DYNAMIC "$udev_lib"
  20440. _ACEOF
  20441. fi
  20442. fi
  20443. fi
  20444. }
  20445. CheckDBus()
  20446. {
  20447. # Check whether --enable-dbus was given.
  20448. if test "${enable_dbus+set}" = set; then :
  20449. enableval=$enable_dbus;
  20450. else
  20451. enable_dbus=yes
  20452. fi
  20453. if test x$enable_dbus = xyes; then
  20454. pkg_failed=no
  20455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  20456. $as_echo_n "checking for dbus-1... " >&6; }
  20457. if test -n "$DBUS_CFLAGS"; then
  20458. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  20459. elif test -n "$PKG_CONFIG"; then
  20460. if test -n "$PKG_CONFIG" && \
  20461. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20462. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20463. ac_status=$?
  20464. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20465. test $ac_status = 0; }; then
  20466. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  20467. test "x$?" != "x0" && pkg_failed=yes
  20468. else
  20469. pkg_failed=yes
  20470. fi
  20471. else
  20472. pkg_failed=untried
  20473. fi
  20474. if test -n "$DBUS_LIBS"; then
  20475. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  20476. elif test -n "$PKG_CONFIG"; then
  20477. if test -n "$PKG_CONFIG" && \
  20478. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20479. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20480. ac_status=$?
  20481. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20482. test $ac_status = 0; }; then
  20483. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  20484. test "x$?" != "x0" && pkg_failed=yes
  20485. else
  20486. pkg_failed=yes
  20487. fi
  20488. else
  20489. pkg_failed=untried
  20490. fi
  20491. if test $pkg_failed = yes; then
  20492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20493. $as_echo "no" >&6; }
  20494. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20495. _pkg_short_errors_supported=yes
  20496. else
  20497. _pkg_short_errors_supported=no
  20498. fi
  20499. if test $_pkg_short_errors_supported = yes; then
  20500. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  20501. else
  20502. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  20503. fi
  20504. # Put the nasty error message in config.log where it belongs
  20505. echo "$DBUS_PKG_ERRORS" >&5
  20506. have_dbus=no
  20507. elif test $pkg_failed = untried; then
  20508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20509. $as_echo "no" >&6; }
  20510. have_dbus=no
  20511. else
  20512. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  20513. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  20514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20515. $as_echo "yes" >&6; }
  20516. have_dbus=yes
  20517. fi
  20518. save_CPPFLAGS="$CPPFLAGS"
  20519. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  20520. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  20521. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  20522. have_dbus_dbus_h_hdr=yes
  20523. else
  20524. have_dbus_dbus_h_hdr=no
  20525. fi
  20526. CPPFLAGS="$save_CPPFLAGS"
  20527. if test x$have_dbus_dbus_h_hdr = xyes; then
  20528. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  20529. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  20530. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  20531. fi
  20532. fi
  20533. }
  20534. CheckIME()
  20535. {
  20536. # Check whether --enable-ime was given.
  20537. if test "${enable_ime+set}" = set; then :
  20538. enableval=$enable_ime;
  20539. else
  20540. enable_ime=yes
  20541. fi
  20542. if test x$enable_ime = xyes; then
  20543. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  20544. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  20545. fi
  20546. }
  20547. CheckInotify()
  20548. {
  20549. save_LIBS="$LIBS"
  20550. case "$host" in
  20551. *-*-freebsd*) LIBS="$LIBS -linotify"
  20552. ;;
  20553. esac
  20554. for ac_header in sys/inotify.h
  20555. do :
  20556. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  20557. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  20558. cat >>confdefs.h <<_ACEOF
  20559. #define HAVE_SYS_INOTIFY_H 1
  20560. _ACEOF
  20561. have_inotify_inotify_h_hdr=yes
  20562. fi
  20563. done
  20564. for ac_func in inotify_init
  20565. do :
  20566. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  20567. if test "x$ac_cv_func_inotify_init" = xyes; then :
  20568. cat >>confdefs.h <<_ACEOF
  20569. #define HAVE_INOTIFY_INIT 1
  20570. _ACEOF
  20571. have_inotify=yes
  20572. fi
  20573. done
  20574. for ac_func in inotify_init1
  20575. do :
  20576. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  20577. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  20578. cat >>confdefs.h <<_ACEOF
  20579. #define HAVE_INOTIFY_INIT1 1
  20580. _ACEOF
  20581. fi
  20582. done
  20583. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  20584. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  20585. case "$host" in
  20586. *-*-freebsd*)
  20587. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  20588. ;;
  20589. esac
  20590. fi
  20591. LIBS="$save_LIBS"
  20592. }
  20593. CheckIBus()
  20594. {
  20595. # Check whether --enable-ibus was given.
  20596. if test "${enable_ibus+set}" = set; then :
  20597. enableval=$enable_ibus;
  20598. else
  20599. enable_ibus=yes
  20600. fi
  20601. if test x$enable_ibus = xyes; then
  20602. pkg_failed=no
  20603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  20604. $as_echo_n "checking for ibus-1.0... " >&6; }
  20605. if test -n "$IBUS_CFLAGS"; then
  20606. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  20607. elif test -n "$PKG_CONFIG"; then
  20608. if test -n "$PKG_CONFIG" && \
  20609. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20610. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20611. ac_status=$?
  20612. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20613. test $ac_status = 0; }; then
  20614. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  20615. test "x$?" != "x0" && pkg_failed=yes
  20616. else
  20617. pkg_failed=yes
  20618. fi
  20619. else
  20620. pkg_failed=untried
  20621. fi
  20622. if test -n "$IBUS_LIBS"; then
  20623. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  20624. elif test -n "$PKG_CONFIG"; then
  20625. if test -n "$PKG_CONFIG" && \
  20626. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20627. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20628. ac_status=$?
  20629. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20630. test $ac_status = 0; }; then
  20631. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  20632. test "x$?" != "x0" && pkg_failed=yes
  20633. else
  20634. pkg_failed=yes
  20635. fi
  20636. else
  20637. pkg_failed=untried
  20638. fi
  20639. if test $pkg_failed = yes; then
  20640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20641. $as_echo "no" >&6; }
  20642. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20643. _pkg_short_errors_supported=yes
  20644. else
  20645. _pkg_short_errors_supported=no
  20646. fi
  20647. if test $_pkg_short_errors_supported = yes; then
  20648. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20649. else
  20650. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20651. fi
  20652. # Put the nasty error message in config.log where it belongs
  20653. echo "$IBUS_PKG_ERRORS" >&5
  20654. have_ibus=no
  20655. elif test $pkg_failed = untried; then
  20656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20657. $as_echo "no" >&6; }
  20658. have_ibus=no
  20659. else
  20660. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  20661. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  20662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20663. $as_echo "yes" >&6; }
  20664. have_ibus=yes
  20665. fi
  20666. save_CPPFLAGS="$CPPFLAGS"
  20667. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  20668. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  20669. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  20670. have_ibus_ibus_h_hdr=yes
  20671. else
  20672. have_ibus_ibus_h_hdr=no
  20673. fi
  20674. CPPFLAGS="$save_CPPFLAGS"
  20675. if test x$have_ibus_ibus_h_hdr = xyes; then
  20676. if test x$enable_ime != xyes; then
  20677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  20678. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  20679. have_ibus_ibus_h_hdr=no
  20680. elif test x$enable_dbus != xyes; then
  20681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  20682. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  20683. have_ibus_ibus_h_hdr=no
  20684. elif test x$have_inotify_inotify_h_hdr != xyes; then
  20685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  20686. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  20687. have_ibus_ibus_h_hdr=no
  20688. else
  20689. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  20690. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  20691. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  20692. fi
  20693. fi
  20694. fi
  20695. }
  20696. CheckFcitx()
  20697. {
  20698. # Check whether --enable-fcitx was given.
  20699. if test "${enable_fcitx+set}" = set; then :
  20700. enableval=$enable_fcitx;
  20701. else
  20702. enable_fcitx=yes
  20703. fi
  20704. if test x$enable_fcitx = xyes; then
  20705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  20706. $as_echo_n "checking for fcitx support... " >&6; }
  20707. have_fcitx=no
  20708. if test x$enable_ime != xyes; then
  20709. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  20710. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  20711. elif test x$have_dbus_dbus_h_hdr != xyes; then
  20712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20713. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20714. else
  20715. have_fcitx=yes
  20716. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20717. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20718. fi
  20719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20720. $as_echo "$have_fcitx" >&6; }
  20721. fi
  20722. }
  20723. CheckJoystickMFI()
  20724. {
  20725. # Check whether --enable-joystick-mfi was given.
  20726. if test "${enable_joystick_mfi+set}" = set; then :
  20727. enableval=$enable_joystick_mfi;
  20728. else
  20729. enable_joystick_mfi=yes
  20730. fi
  20731. if test x$enable_joystick_mfi = xyes; then
  20732. save_CFLAGS="$CFLAGS"
  20733. save_LDFLAGS="$LDFLAGS"
  20734. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20735. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20737. $as_echo_n "checking for GameController framework... " >&6; }
  20738. enable_joystick_mfi=no
  20739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20740. /* end confdefs.h. */
  20741. #include <AvailabilityMacros.h>
  20742. #include <TargetConditionals.h>
  20743. #import <GameController/GameController.h>
  20744. int
  20745. main ()
  20746. {
  20747. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20748. #error GameController framework doesn't work on this configuration
  20749. #endif
  20750. #if TARGET_CPU_X86
  20751. #error GameController framework doesn't work on this configuration
  20752. #endif
  20753. ;
  20754. return 0;
  20755. }
  20756. _ACEOF
  20757. if ac_fn_c_try_link "$LINENO"; then :
  20758. enable_joystick_mfi=yes
  20759. fi
  20760. rm -f core conftest.err conftest.$ac_objext \
  20761. conftest$ac_exeext conftest.$ac_ext
  20762. CFLAGS="$save_CFLAGS"
  20763. LDFLAGS="$save_LDFLAGS"
  20764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20765. $as_echo "$enable_joystick_mfi" >&6; }
  20766. if test x$enable_joystick_mfi = xyes; then
  20767. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20768. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20769. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20770. fi
  20771. fi
  20772. }
  20773. CheckPTHREAD()
  20774. {
  20775. case "$host" in
  20776. *-*-emscripten*)
  20777. enable_pthreads_default=no
  20778. ;;
  20779. *)
  20780. enable_pthreads_default=yes
  20781. ;;
  20782. esac
  20783. # Check whether --enable-pthreads was given.
  20784. if test "${enable_pthreads+set}" = set; then :
  20785. enableval=$enable_pthreads;
  20786. else
  20787. enable_pthreads=maybe
  20788. fi
  20789. # Check whether --enable-pthread-sem was given.
  20790. if test "${enable_pthread_sem+set}" = set; then :
  20791. enableval=$enable_pthread_sem;
  20792. else
  20793. enable_pthread_sem=maybe
  20794. fi
  20795. if test x$enable_pthreads = xmaybe; then
  20796. enable_pthreads=$enable_pthreads_default
  20797. fi
  20798. if test x$enable_pthread_sem = xmaybe; then
  20799. enable_pthread_sem=$enable_pthreads
  20800. fi
  20801. case "$host" in
  20802. *-*-android*)
  20803. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20804. pthread_lib=""
  20805. ;;
  20806. *-*-linux*|*-*-uclinux*)
  20807. pthread_cflags="-D_REENTRANT"
  20808. pthread_lib="-lpthread"
  20809. ;;
  20810. *-*-bsdi*)
  20811. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20812. pthread_lib=""
  20813. ;;
  20814. *-*-darwin*)
  20815. pthread_cflags="-D_THREAD_SAFE"
  20816. # causes Carbon.p complaints?
  20817. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20818. ;;
  20819. *-*-freebsd*|*-*-dragonfly*)
  20820. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20821. pthread_lib="-pthread"
  20822. ;;
  20823. *-*-netbsd*)
  20824. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20825. pthread_lib="-lpthread"
  20826. ;;
  20827. *-*-openbsd*)
  20828. pthread_cflags="-D_REENTRANT"
  20829. pthread_lib="-pthread"
  20830. ;;
  20831. *-*-solaris2.9)
  20832. # From Solaris 9+, posix4's preferred name is rt.
  20833. pthread_cflags="-D_REENTRANT"
  20834. pthread_lib="-lpthread -lrt"
  20835. ;;
  20836. *-*-solaris2.10)
  20837. # Solaris 10+ merged pthread into libc.
  20838. pthread_cflags="-D_REENTRANT"
  20839. pthread_lib="-lrt"
  20840. ;;
  20841. *-*-solaris*)
  20842. # Solaris 11+ merged rt into libc.
  20843. pthread_cflags="-D_REENTRANT"
  20844. pthread_lib=""
  20845. ;;
  20846. *-*-sysv5*)
  20847. pthread_cflags="-D_REENTRANT -Kthread"
  20848. pthread_lib=""
  20849. ;;
  20850. *-*-aix*)
  20851. pthread_cflags="-D_REENTRANT -mthreads"
  20852. pthread_lib="-lpthread"
  20853. ;;
  20854. *-*-hpux11*)
  20855. pthread_cflags="-D_REENTRANT"
  20856. pthread_lib="-L/usr/lib -lpthread"
  20857. ;;
  20858. *-*-haiku*)
  20859. pthread_cflags="-D_REENTRANT"
  20860. pthread_lib=""
  20861. ;;
  20862. *-*-nto*)
  20863. pthread_cflags="-D_REENTRANT"
  20864. pthread_lib=""
  20865. ;;
  20866. *-*-emscripten*)
  20867. pthread_cflags="-D_REENTRANT -pthread"
  20868. pthread_lib="-pthread"
  20869. ;;
  20870. *)
  20871. pthread_cflags="-D_REENTRANT"
  20872. pthread_lib="-lpthread"
  20873. ;;
  20874. esac
  20875. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20876. # Save the original compiler flags and libraries
  20877. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20878. # Add the pthread compiler flags and libraries
  20879. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20880. # Check to see if we have pthread support on this system
  20881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20882. $as_echo_n "checking for pthreads... " >&6; }
  20883. use_pthreads=no
  20884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20885. /* end confdefs.h. */
  20886. #include <pthread.h>
  20887. int
  20888. main ()
  20889. {
  20890. pthread_attr_t type;
  20891. pthread_attr_init(&type);
  20892. ;
  20893. return 0;
  20894. }
  20895. _ACEOF
  20896. if ac_fn_c_try_link "$LINENO"; then :
  20897. use_pthreads=yes
  20898. fi
  20899. rm -f core conftest.err conftest.$ac_objext \
  20900. conftest$ac_exeext conftest.$ac_ext
  20901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20902. $as_echo "$use_pthreads" >&6; }
  20903. # Restore the compiler flags and libraries
  20904. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20905. # Do futher testing if we have pthread support...
  20906. if test x$use_pthreads = xyes; then
  20907. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20908. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20909. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20910. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20911. # Save the original compiler flags and libraries
  20912. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20913. # Add the pthread compiler flags and libraries
  20914. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20915. # Check to see if recursive mutexes are available
  20916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20917. $as_echo_n "checking for recursive mutexes... " >&6; }
  20918. has_recursive_mutexes=no
  20919. if test x$has_recursive_mutexes = xno; then
  20920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20921. /* end confdefs.h. */
  20922. #define _GNU_SOURCE 1
  20923. #include <pthread.h>
  20924. int
  20925. main ()
  20926. {
  20927. pthread_mutexattr_t attr;
  20928. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  20929. ;
  20930. return 0;
  20931. }
  20932. _ACEOF
  20933. if ac_fn_c_try_link "$LINENO"; then :
  20934. has_recursive_mutexes=yes
  20935. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  20936. fi
  20937. rm -f core conftest.err conftest.$ac_objext \
  20938. conftest$ac_exeext conftest.$ac_ext
  20939. fi
  20940. if test x$has_recursive_mutexes = xno; then
  20941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20942. /* end confdefs.h. */
  20943. #define _GNU_SOURCE 1
  20944. #include <pthread.h>
  20945. int
  20946. main ()
  20947. {
  20948. pthread_mutexattr_t attr;
  20949. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  20950. ;
  20951. return 0;
  20952. }
  20953. _ACEOF
  20954. if ac_fn_c_try_link "$LINENO"; then :
  20955. has_recursive_mutexes=yes
  20956. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  20957. fi
  20958. rm -f core conftest.err conftest.$ac_objext \
  20959. conftest$ac_exeext conftest.$ac_ext
  20960. fi
  20961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  20962. $as_echo "$has_recursive_mutexes" >&6; }
  20963. # Check to see if pthread semaphore support is missing
  20964. if test x$enable_pthread_sem = xyes; then
  20965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  20966. $as_echo_n "checking for pthread semaphores... " >&6; }
  20967. have_pthread_sem=no
  20968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20969. /* end confdefs.h. */
  20970. #include <pthread.h>
  20971. #include <semaphore.h>
  20972. int
  20973. main ()
  20974. {
  20975. ;
  20976. return 0;
  20977. }
  20978. _ACEOF
  20979. if ac_fn_c_try_compile "$LINENO"; then :
  20980. have_pthread_sem=yes
  20981. fi
  20982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  20984. $as_echo "$have_pthread_sem" >&6; }
  20985. fi
  20986. if test x$have_pthread_sem = xyes; then
  20987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  20988. $as_echo_n "checking for sem_timedwait... " >&6; }
  20989. have_sem_timedwait=no
  20990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20991. /* end confdefs.h. */
  20992. #include <pthread.h>
  20993. #include <semaphore.h>
  20994. int
  20995. main ()
  20996. {
  20997. sem_timedwait(NULL, NULL);
  20998. ;
  20999. return 0;
  21000. }
  21001. _ACEOF
  21002. if ac_fn_c_try_link "$LINENO"; then :
  21003. have_sem_timedwait=yes
  21004. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  21005. fi
  21006. rm -f core conftest.err conftest.$ac_objext \
  21007. conftest$ac_exeext conftest.$ac_ext
  21008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  21009. $as_echo "$have_sem_timedwait" >&6; }
  21010. fi
  21011. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  21012. "
  21013. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  21014. have_pthread_np_h=yes
  21015. else
  21016. have_pthread_np_h=no
  21017. fi
  21018. if test x$have_pthread_np_h = xyes; then
  21019. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  21020. fi
  21021. # Check to see if pthread naming is available
  21022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  21023. $as_echo_n "checking for pthread_setname_np... " >&6; }
  21024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21025. /* end confdefs.h. */
  21026. /* Override any GCC internal prototype to avoid an error.
  21027. Use char because int might match the return type of a GCC
  21028. builtin and then its argument prototype would still apply. */
  21029. #ifdef __cplusplus
  21030. extern "C"
  21031. #endif
  21032. char pthread_setname_np ();
  21033. int
  21034. main ()
  21035. {
  21036. return pthread_setname_np ();
  21037. ;
  21038. return 0;
  21039. }
  21040. _ACEOF
  21041. if ac_fn_c_try_link "$LINENO"; then :
  21042. has_pthread_setname_np=yes
  21043. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  21044. else
  21045. has_pthread_setname_np=no
  21046. fi
  21047. rm -f core conftest.err conftest.$ac_objext \
  21048. conftest$ac_exeext conftest.$ac_ext
  21049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  21050. $as_echo "$has_pthread_setname_np" >&6; }
  21051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  21052. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  21053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21054. /* end confdefs.h. */
  21055. /* Override any GCC internal prototype to avoid an error.
  21056. Use char because int might match the return type of a GCC
  21057. builtin and then its argument prototype would still apply. */
  21058. #ifdef __cplusplus
  21059. extern "C"
  21060. #endif
  21061. char pthread_set_name_np ();
  21062. int
  21063. main ()
  21064. {
  21065. return pthread_set_name_np ();
  21066. ;
  21067. return 0;
  21068. }
  21069. _ACEOF
  21070. if ac_fn_c_try_link "$LINENO"; then :
  21071. has_pthread_set_name_np=yes
  21072. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  21073. else
  21074. has_pthread_set_name_np=no
  21075. fi
  21076. rm -f core conftest.err conftest.$ac_objext \
  21077. conftest$ac_exeext conftest.$ac_ext
  21078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  21079. $as_echo "$has_pthread_set_name_np" >&6; }
  21080. # Restore the compiler flags and libraries
  21081. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  21082. # Basic thread creation functions
  21083. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  21084. # Semaphores
  21085. # We can fake these with mutexes and condition variables if necessary
  21086. if test x$have_pthread_sem = xyes; then
  21087. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  21088. else
  21089. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  21090. fi
  21091. # Mutexes
  21092. # We can fake these with semaphores if necessary
  21093. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  21094. # Condition variables
  21095. # We can fake these with semaphores and mutexes if necessary
  21096. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  21097. # Thread local storage
  21098. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  21099. have_threads=yes
  21100. fi
  21101. fi
  21102. }
  21103. CheckWINDOWS()
  21104. {
  21105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  21106. $as_echo_n "checking Windows compiler... " >&6; }
  21107. have_win32_gcc=no
  21108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21109. /* end confdefs.h. */
  21110. #include <windows.h>
  21111. int
  21112. main ()
  21113. {
  21114. ;
  21115. return 0;
  21116. }
  21117. _ACEOF
  21118. if ac_fn_c_try_compile "$LINENO"; then :
  21119. have_win32_gcc=yes
  21120. fi
  21121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  21123. $as_echo "$have_win32_gcc" >&6; }
  21124. if test x$have_win32_gcc != xyes; then
  21125. as_fn_error $? "
  21126. *** Your compiler ($CC) does not produce Windows executables!
  21127. " "$LINENO" 5
  21128. fi
  21129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  21130. $as_echo_n "checking Windows CE... " >&6; }
  21131. have_wince=no
  21132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21133. /* end confdefs.h. */
  21134. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  21135. #error This is not Windows CE
  21136. #endif
  21137. int
  21138. main ()
  21139. {
  21140. ;
  21141. return 0;
  21142. }
  21143. _ACEOF
  21144. if ac_fn_c_try_compile "$LINENO"; then :
  21145. have_wince=yes
  21146. as_fn_error $? "
  21147. *** Sorry, Windows CE is no longer supported.
  21148. " "$LINENO" 5
  21149. fi
  21150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  21152. $as_echo "$have_wince" >&6; }
  21153. # This fixes Windows stack alignment with newer GCC
  21154. CheckStackBoundary
  21155. # headers needed elsewhere
  21156. ac_fn_c_check_header_mongrel "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  21157. if test "x$ac_cv_header_tpcshrd_h" = xyes; then :
  21158. have_tpcshrd_h=yes
  21159. fi
  21160. if test x$have_tpcshrd_h = xyes; then
  21161. $as_echo "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  21162. fi
  21163. ac_fn_c_check_header_mongrel "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  21164. if test "x$ac_cv_header_roapi_h" = xyes; then :
  21165. have_roapi_h=yes
  21166. fi
  21167. if test x$have_roapi_h = xyes; then
  21168. $as_echo "#define HAVE_ROAPI_H 1" >>confdefs.h
  21169. fi
  21170. }
  21171. CheckOS2()
  21172. {
  21173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  21174. $as_echo_n "checking OS/2 compiler... " >&6; }
  21175. have_os2_gcc=no
  21176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21177. /* end confdefs.h. */
  21178. #include <os2.h>
  21179. int
  21180. main ()
  21181. {
  21182. ;
  21183. return 0;
  21184. }
  21185. _ACEOF
  21186. if ac_fn_c_try_compile "$LINENO"; then :
  21187. have_os2_gcc=yes
  21188. fi
  21189. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  21191. $as_echo "$have_os2_gcc" >&6; }
  21192. if test x$have_os2_gcc != xyes; then
  21193. as_fn_error $? "
  21194. *** Your compiler ($CC) does not produce OS/2 executables!
  21195. " "$LINENO" 5
  21196. fi
  21197. }
  21198. CheckDIRECTX()
  21199. {
  21200. # Check whether --enable-directx was given.
  21201. if test "${enable_directx+set}" = set; then :
  21202. enableval=$enable_directx;
  21203. else
  21204. enable_directx=yes
  21205. fi
  21206. if test x$enable_directx = xyes; then
  21207. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  21208. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  21209. have_d3d=yes
  21210. fi
  21211. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  21212. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  21213. have_d3d11=yes
  21214. fi
  21215. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  21216. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  21217. have_ddraw=yes
  21218. fi
  21219. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  21220. if test "x$ac_cv_header_dsound_h" = xyes; then :
  21221. have_dsound=yes
  21222. fi
  21223. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  21224. if test "x$ac_cv_header_dinput_h" = xyes; then :
  21225. have_dinput=yes
  21226. fi
  21227. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  21228. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  21229. have_dxgi=yes
  21230. fi
  21231. if test x$have_ddraw = xyes; then
  21232. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  21233. fi
  21234. if test x$have_dinput = xyes; then
  21235. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  21236. fi
  21237. if test x$have_dsound = xyes; then
  21238. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  21239. fi
  21240. if test x$have_dxgi = xyes; then
  21241. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  21242. fi
  21243. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  21244. # FIXME: ...so force it off for now.
  21245. case "$host" in
  21246. *-*-cygwin*)
  21247. have_dinput=false
  21248. ;;
  21249. esac
  21250. fi
  21251. # Check whether --enable-xinput was given.
  21252. if test "${enable_xinput+set}" = set; then :
  21253. enableval=$enable_xinput;
  21254. else
  21255. enable_xinput=yes
  21256. fi
  21257. if test x$enable_xinput = xyes; then
  21258. have_xinput_gamepadex=no
  21259. have_xinput_stateex=no
  21260. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  21261. if test "x$ac_cv_header_xinput_h" = xyes; then :
  21262. have_xinput=yes
  21263. fi
  21264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  21265. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  21266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21267. /* end confdefs.h. */
  21268. #include <windows.h>
  21269. #include <xinput.h>
  21270. XINPUT_GAMEPAD_EX x1;
  21271. int
  21272. main ()
  21273. {
  21274. ;
  21275. return 0;
  21276. }
  21277. _ACEOF
  21278. if ac_fn_c_try_compile "$LINENO"; then :
  21279. have_xinput_gamepadex=yes
  21280. fi
  21281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  21283. $as_echo "$have_xinput_gamepadex" >&6; }
  21284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  21285. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  21286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21287. /* end confdefs.h. */
  21288. #include <windows.h>
  21289. #include <xinput.h>
  21290. XINPUT_STATE_EX s1;
  21291. int
  21292. main ()
  21293. {
  21294. ;
  21295. return 0;
  21296. }
  21297. _ACEOF
  21298. if ac_fn_c_try_compile "$LINENO"; then :
  21299. have_xinput_stateex=yes
  21300. fi
  21301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  21303. $as_echo "$have_xinput_stateex" >&6; }
  21304. if test x$have_xinput = xyes; then
  21305. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  21306. fi
  21307. if test x$have_xinput_gamepadex = xyes; then
  21308. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  21309. fi
  21310. if test x$have_xinput_stateex = xyes; then
  21311. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  21312. fi
  21313. fi
  21314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  21315. $as_echo_n "checking for windows.gaming.input.h... " >&6; }
  21316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21317. /* end confdefs.h. */
  21318. #define COBJMACROS
  21319. #include <windows.gaming.input.h>
  21320. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  21321. int
  21322. main ()
  21323. {
  21324. ;
  21325. return 0;
  21326. }
  21327. _ACEOF
  21328. if ac_fn_c_try_compile "$LINENO"; then :
  21329. have_wgi=yes
  21330. else
  21331. have_wgi=no
  21332. fi
  21333. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  21335. $as_echo "$have_wgi" >&6; }
  21336. if test x$have_wgi = xyes; then
  21337. $as_echo "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  21338. fi
  21339. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  21340. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  21341. have_wasapi=yes
  21342. fi
  21343. if test x$have_wasapi = xyes; then
  21344. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  21345. fi
  21346. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  21347. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  21348. else
  21349. have_wasapi=no
  21350. fi
  21351. if test x$have_wasapi = xyes; then
  21352. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  21353. fi
  21354. # Check whether --enable-wasapi was given.
  21355. if test "${enable_wasapi+set}" = set; then :
  21356. enableval=$enable_wasapi;
  21357. else
  21358. enable_wasapi=yes
  21359. fi
  21360. }
  21361. CheckDLOPEN()
  21362. {
  21363. $as_echo "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  21364. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  21365. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  21366. have_dlfcn_h=yes
  21367. else
  21368. have_dlfcn_h=no
  21369. fi
  21370. have_dlopen=no
  21371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  21372. $as_echo_n "checking for dlopen in -lc... " >&6; }
  21373. if ${ac_cv_lib_c_dlopen+:} false; then :
  21374. $as_echo_n "(cached) " >&6
  21375. else
  21376. ac_check_lib_save_LIBS=$LIBS
  21377. LIBS="-lc $LIBS"
  21378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21379. /* end confdefs.h. */
  21380. /* Override any GCC internal prototype to avoid an error.
  21381. Use char because int might match the return type of a GCC
  21382. builtin and then its argument prototype would still apply. */
  21383. #ifdef __cplusplus
  21384. extern "C"
  21385. #endif
  21386. char dlopen ();
  21387. int
  21388. main ()
  21389. {
  21390. return dlopen ();
  21391. ;
  21392. return 0;
  21393. }
  21394. _ACEOF
  21395. if ac_fn_c_try_link "$LINENO"; then :
  21396. ac_cv_lib_c_dlopen=yes
  21397. else
  21398. ac_cv_lib_c_dlopen=no
  21399. fi
  21400. rm -f core conftest.err conftest.$ac_objext \
  21401. conftest$ac_exeext conftest.$ac_ext
  21402. LIBS=$ac_check_lib_save_LIBS
  21403. fi
  21404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  21405. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  21406. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  21407. have_dlopen=yes
  21408. else
  21409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  21410. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  21411. if ${ac_cv_lib_dl_dlopen+:} false; then :
  21412. $as_echo_n "(cached) " >&6
  21413. else
  21414. ac_check_lib_save_LIBS=$LIBS
  21415. LIBS="-ldl $LIBS"
  21416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21417. /* end confdefs.h. */
  21418. /* Override any GCC internal prototype to avoid an error.
  21419. Use char because int might match the return type of a GCC
  21420. builtin and then its argument prototype would still apply. */
  21421. #ifdef __cplusplus
  21422. extern "C"
  21423. #endif
  21424. char dlopen ();
  21425. int
  21426. main ()
  21427. {
  21428. return dlopen ();
  21429. ;
  21430. return 0;
  21431. }
  21432. _ACEOF
  21433. if ac_fn_c_try_link "$LINENO"; then :
  21434. ac_cv_lib_dl_dlopen=yes
  21435. else
  21436. ac_cv_lib_dl_dlopen=no
  21437. fi
  21438. rm -f core conftest.err conftest.$ac_objext \
  21439. conftest$ac_exeext conftest.$ac_ext
  21440. LIBS=$ac_check_lib_save_LIBS
  21441. fi
  21442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  21443. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  21444. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  21445. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  21446. fi
  21447. fi
  21448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  21449. $as_echo_n "checking for dlopen... " >&6; }
  21450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  21451. $as_echo "$have_dlopen" >&6; }
  21452. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  21453. $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  21454. if test x$enable_loadso = xyes; then
  21455. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  21456. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  21457. have_loadso=yes
  21458. fi
  21459. fi
  21460. }
  21461. CheckO_CLOEXEC()
  21462. {
  21463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  21464. $as_echo_n "checking for O_CLOEXEC... " >&6; }
  21465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21466. /* end confdefs.h. */
  21467. #include <fcntl.h>
  21468. int flag = O_CLOEXEC;
  21469. int
  21470. main ()
  21471. {
  21472. ;
  21473. return 0;
  21474. }
  21475. _ACEOF
  21476. if ac_fn_c_try_compile "$LINENO"; then :
  21477. have_o_cloexec=yes
  21478. else
  21479. have_o_cloexec=no
  21480. fi
  21481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  21483. $as_echo "$have_o_cloexec" >&6; }
  21484. if test $have_o_cloexec = yes; then
  21485. $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  21486. fi
  21487. }
  21488. CheckUSBHID()
  21489. {
  21490. case "$host" in
  21491. *-*-*bsd*|*-*-dragonfly*)
  21492. if test x$enable_joystick = xyes; then
  21493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  21494. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  21495. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  21496. $as_echo_n "(cached) " >&6
  21497. else
  21498. ac_check_lib_save_LIBS=$LIBS
  21499. LIBS="-lusbhid $LIBS"
  21500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21501. /* end confdefs.h. */
  21502. /* Override any GCC internal prototype to avoid an error.
  21503. Use char because int might match the return type of a GCC
  21504. builtin and then its argument prototype would still apply. */
  21505. #ifdef __cplusplus
  21506. extern "C"
  21507. #endif
  21508. char hid_init ();
  21509. int
  21510. main ()
  21511. {
  21512. return hid_init ();
  21513. ;
  21514. return 0;
  21515. }
  21516. _ACEOF
  21517. if ac_fn_c_try_link "$LINENO"; then :
  21518. ac_cv_lib_usbhid_hid_init=yes
  21519. else
  21520. ac_cv_lib_usbhid_hid_init=no
  21521. fi
  21522. rm -f core conftest.err conftest.$ac_objext \
  21523. conftest$ac_exeext conftest.$ac_ext
  21524. LIBS=$ac_check_lib_save_LIBS
  21525. fi
  21526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  21527. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  21528. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  21529. have_libusbhid=yes
  21530. fi
  21531. if test x$have_libusbhid = xyes; then
  21532. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  21533. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  21534. USB_CFLAGS="-DHAVE_USBHID_H"
  21535. fi
  21536. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  21537. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  21538. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  21539. fi
  21540. USB_LIBS="$USB_LIBS -lusbhid"
  21541. else
  21542. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  21543. if test "x$ac_cv_header_usb_h" = xyes; then :
  21544. USB_CFLAGS="-DHAVE_USB_H"
  21545. fi
  21546. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21547. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21548. USB_CFLAGS="-DHAVE_LIBUSB_H"
  21549. fi
  21550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  21551. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  21552. if ${ac_cv_lib_usb_hid_init+:} false; then :
  21553. $as_echo_n "(cached) " >&6
  21554. else
  21555. ac_check_lib_save_LIBS=$LIBS
  21556. LIBS="-lusb $LIBS"
  21557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21558. /* end confdefs.h. */
  21559. /* Override any GCC internal prototype to avoid an error.
  21560. Use char because int might match the return type of a GCC
  21561. builtin and then its argument prototype would still apply. */
  21562. #ifdef __cplusplus
  21563. extern "C"
  21564. #endif
  21565. char hid_init ();
  21566. int
  21567. main ()
  21568. {
  21569. return hid_init ();
  21570. ;
  21571. return 0;
  21572. }
  21573. _ACEOF
  21574. if ac_fn_c_try_link "$LINENO"; then :
  21575. ac_cv_lib_usb_hid_init=yes
  21576. else
  21577. ac_cv_lib_usb_hid_init=no
  21578. fi
  21579. rm -f core conftest.err conftest.$ac_objext \
  21580. conftest$ac_exeext conftest.$ac_ext
  21581. LIBS=$ac_check_lib_save_LIBS
  21582. fi
  21583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  21584. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  21585. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  21586. USB_LIBS="$USB_LIBS -lusb"
  21587. fi
  21588. fi
  21589. save_CFLAGS="$CFLAGS"
  21590. CFLAGS="$CFLAGS $USB_CFLAGS"
  21591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  21592. $as_echo_n "checking for usbhid... " >&6; }
  21593. have_usbhid=no
  21594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21595. /* end confdefs.h. */
  21596. #include <sys/types.h>
  21597. #if defined(HAVE_USB_H)
  21598. #include <usb.h>
  21599. #endif
  21600. #ifdef __DragonFly__
  21601. # include <bus/u4b/usb.h>
  21602. # include <bus/u4b/usbhid.h>
  21603. #else
  21604. # include <dev/usb/usb.h>
  21605. # include <dev/usb/usbhid.h>
  21606. #endif
  21607. #if defined(HAVE_USBHID_H)
  21608. #include <usbhid.h>
  21609. #elif defined(HAVE_LIBUSB_H)
  21610. #include <libusb.h>
  21611. #elif defined(HAVE_LIBUSBHID_H)
  21612. #include <libusbhid.h>
  21613. #endif
  21614. int
  21615. main ()
  21616. {
  21617. struct report_desc *repdesc;
  21618. struct usb_ctl_report *repbuf;
  21619. hid_kind_t hidkind;
  21620. ;
  21621. return 0;
  21622. }
  21623. _ACEOF
  21624. if ac_fn_c_try_compile "$LINENO"; then :
  21625. have_usbhid=yes
  21626. fi
  21627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  21629. $as_echo "$have_usbhid" >&6; }
  21630. if test x$have_usbhid = xyes; then
  21631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  21632. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  21633. have_usbhid_ucr_data=no
  21634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21635. /* end confdefs.h. */
  21636. #include <sys/types.h>
  21637. #if defined(HAVE_USB_H)
  21638. #include <usb.h>
  21639. #endif
  21640. #ifdef __DragonFly__
  21641. # include <bus/u4b/usb.h>
  21642. # include <bus/u4b/usbhid.h>
  21643. #else
  21644. # include <dev/usb/usb.h>
  21645. # include <dev/usb/usbhid.h>
  21646. #endif
  21647. #if defined(HAVE_USBHID_H)
  21648. #include <usbhid.h>
  21649. #elif defined(HAVE_LIBUSB_H)
  21650. #include <libusb.h>
  21651. #elif defined(HAVE_LIBUSBHID_H)
  21652. #include <libusbhid.h>
  21653. #endif
  21654. int
  21655. main ()
  21656. {
  21657. struct usb_ctl_report buf;
  21658. if (buf.ucr_data) { }
  21659. ;
  21660. return 0;
  21661. }
  21662. _ACEOF
  21663. if ac_fn_c_try_compile "$LINENO"; then :
  21664. have_usbhid_ucr_data=yes
  21665. fi
  21666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21667. if test x$have_usbhid_ucr_data = xyes; then
  21668. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  21669. fi
  21670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  21671. $as_echo "$have_usbhid_ucr_data" >&6; }
  21672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  21673. $as_echo_n "checking for new usbhid API... " >&6; }
  21674. have_usbhid_new=no
  21675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21676. /* end confdefs.h. */
  21677. #include <sys/types.h>
  21678. #if defined(HAVE_USB_H)
  21679. #include <usb.h>
  21680. #endif
  21681. #ifdef __DragonFly__
  21682. #include <bus/u4b/usb.h>
  21683. #include <bus/u4b/usbhid.h>
  21684. #else
  21685. #include <dev/usb/usb.h>
  21686. #include <dev/usb/usbhid.h>
  21687. #endif
  21688. #if defined(HAVE_USBHID_H)
  21689. #include <usbhid.h>
  21690. #elif defined(HAVE_LIBUSB_H)
  21691. #include <libusb.h>
  21692. #elif defined(HAVE_LIBUSBHID_H)
  21693. #include <libusbhid.h>
  21694. #endif
  21695. int
  21696. main ()
  21697. {
  21698. report_desc_t d;
  21699. hid_start_parse(d, 1, 1);
  21700. ;
  21701. return 0;
  21702. }
  21703. _ACEOF
  21704. if ac_fn_c_try_compile "$LINENO"; then :
  21705. have_usbhid_new=yes
  21706. fi
  21707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21708. if test x$have_usbhid_new = xyes; then
  21709. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  21710. fi
  21711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  21712. $as_echo "$have_usbhid_new" >&6; }
  21713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  21714. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  21715. have_machine_joystick=no
  21716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21717. /* end confdefs.h. */
  21718. #include <machine/joystick.h>
  21719. int
  21720. main ()
  21721. {
  21722. struct joystick t;
  21723. ;
  21724. return 0;
  21725. }
  21726. _ACEOF
  21727. if ac_fn_c_try_compile "$LINENO"; then :
  21728. have_machine_joystick=yes
  21729. fi
  21730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21731. if test x$have_machine_joystick = xyes; then
  21732. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  21733. fi
  21734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  21735. $as_echo "$have_machine_joystick" >&6; }
  21736. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  21737. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  21738. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  21739. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  21740. have_joystick=yes
  21741. fi
  21742. CFLAGS="$save_CFLAGS"
  21743. fi
  21744. ;;
  21745. esac
  21746. }
  21747. CheckHIDAPI()
  21748. {
  21749. # Check whether --enable-hidapi-joystick was given.
  21750. if test "${enable_hidapi_joystick+set}" = set; then :
  21751. enableval=$enable_hidapi_joystick;
  21752. else
  21753. enable_hidapi_joystick=yes
  21754. fi
  21755. # Check whether --enable-hidapi-libusb was given.
  21756. if test "${enable_hidapi_libusb+set}" = set; then :
  21757. enableval=$enable_hidapi_libusb;
  21758. else
  21759. enable_hidapi_libusb=maybe
  21760. fi
  21761. if test x$enable_hidapi = xyes; then
  21762. case "$host" in
  21763. # libusb does not support iOS
  21764. *-ios-* )
  21765. enable_hidapi_libusb=no
  21766. ;;
  21767. # On the other hand, *BSD specifically uses libusb only
  21768. *-*-*bsd* )
  21769. enable_hidapi_libusb=yes
  21770. require_hidapi_libusb=yes
  21771. ;;
  21772. *-*-os2* )
  21773. enable_hidapi_libusb=yes
  21774. ;;
  21775. esac
  21776. hidapi_support=yes
  21777. if test x$enable_hidapi_libusb = xyes; then
  21778. pkg_failed=no
  21779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21780. $as_echo_n "checking for libusb-1.0... " >&6; }
  21781. if test -n "$LIBUSB_CFLAGS"; then
  21782. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21783. elif test -n "$PKG_CONFIG"; then
  21784. if test -n "$PKG_CONFIG" && \
  21785. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21786. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21787. ac_status=$?
  21788. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21789. test $ac_status = 0; }; then
  21790. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21791. test "x$?" != "x0" && pkg_failed=yes
  21792. else
  21793. pkg_failed=yes
  21794. fi
  21795. else
  21796. pkg_failed=untried
  21797. fi
  21798. if test -n "$LIBUSB_LIBS"; then
  21799. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21800. elif test -n "$PKG_CONFIG"; then
  21801. if test -n "$PKG_CONFIG" && \
  21802. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21803. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21804. ac_status=$?
  21805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21806. test $ac_status = 0; }; then
  21807. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21808. test "x$?" != "x0" && pkg_failed=yes
  21809. else
  21810. pkg_failed=yes
  21811. fi
  21812. else
  21813. pkg_failed=untried
  21814. fi
  21815. if test $pkg_failed = yes; then
  21816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21817. $as_echo "no" >&6; }
  21818. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21819. _pkg_short_errors_supported=yes
  21820. else
  21821. _pkg_short_errors_supported=no
  21822. fi
  21823. if test $_pkg_short_errors_supported = yes; then
  21824. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21825. else
  21826. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21827. fi
  21828. # Put the nasty error message in config.log where it belongs
  21829. echo "$LIBUSB_PKG_ERRORS" >&5
  21830. have_libusb=no
  21831. elif test $pkg_failed = untried; then
  21832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21833. $as_echo "no" >&6; }
  21834. have_libusb=no
  21835. else
  21836. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21837. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21839. $as_echo "yes" >&6; }
  21840. have_libusb=yes
  21841. fi
  21842. save_CPPFLAGS="$CPPFLAGS"
  21843. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21844. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21845. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21846. have_libusb_h=yes
  21847. else
  21848. have_libusb_h=no
  21849. fi
  21850. CPPFLAGS="$save_CPPFLAGS"
  21851. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21852. hidapi_support=no
  21853. fi
  21854. fi
  21855. if test x$hidapi_support = xyes; then
  21856. if test x$have_libusb_h = xyes; then
  21857. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21858. if test x$require_hidapi_libusb = xyes; then
  21859. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  21860. else
  21861. if test x$have_loadso != xyes; then
  21862. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  21863. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  21864. fi
  21865. # libusb is loaded dynamically, so don't add it to LDFLAGS
  21866. libusb_lib=""
  21867. case "$host" in
  21868. *-*-darwin* )
  21869. libusb_lib="libusb-1.0.0.dylib"
  21870. ;;
  21871. *-*-cygwin* | *-*-mingw* )
  21872. libusb_lib="libusb-1.0.dll"
  21873. ;;
  21874. *-*-os2* )
  21875. libusb_lib="usb100.dll"
  21876. ;;
  21877. esac
  21878. if test x$libusb_lib = x; then
  21879. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21880. fi
  21881. cat >>confdefs.h <<_ACEOF
  21882. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  21883. _ACEOF
  21884. fi
  21885. fi
  21886. fi
  21887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  21888. $as_echo_n "checking for hidapi joystick support... " >&6; }
  21889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21890. $as_echo "$hidapi_support" >&6; }
  21891. fi
  21892. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  21893. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21894. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21895. fi
  21896. }
  21897. CheckClockGettime()
  21898. {
  21899. # Check whether --enable-clock_gettime was given.
  21900. if test "${enable_clock_gettime+set}" = set; then :
  21901. enableval=$enable_clock_gettime;
  21902. else
  21903. enable_clock_gettime=yes
  21904. fi
  21905. if test x$enable_clock_gettime = xyes; then
  21906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21907. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21908. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21909. $as_echo_n "(cached) " >&6
  21910. else
  21911. ac_check_lib_save_LIBS=$LIBS
  21912. LIBS="-lrt $LIBS"
  21913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21914. /* end confdefs.h. */
  21915. /* Override any GCC internal prototype to avoid an error.
  21916. Use char because int might match the return type of a GCC
  21917. builtin and then its argument prototype would still apply. */
  21918. #ifdef __cplusplus
  21919. extern "C"
  21920. #endif
  21921. char clock_gettime ();
  21922. int
  21923. main ()
  21924. {
  21925. return clock_gettime ();
  21926. ;
  21927. return 0;
  21928. }
  21929. _ACEOF
  21930. if ac_fn_c_try_link "$LINENO"; then :
  21931. ac_cv_lib_rt_clock_gettime=yes
  21932. else
  21933. ac_cv_lib_rt_clock_gettime=no
  21934. fi
  21935. rm -f core conftest.err conftest.$ac_objext \
  21936. conftest$ac_exeext conftest.$ac_ext
  21937. LIBS=$ac_check_lib_save_LIBS
  21938. fi
  21939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  21940. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  21941. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  21942. have_clock_gettime=yes
  21943. fi
  21944. if test x$have_clock_gettime = xyes; then
  21945. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21946. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  21947. else
  21948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  21949. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  21950. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  21951. $as_echo_n "(cached) " >&6
  21952. else
  21953. ac_check_lib_save_LIBS=$LIBS
  21954. LIBS="-lc $LIBS"
  21955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21956. /* end confdefs.h. */
  21957. /* Override any GCC internal prototype to avoid an error.
  21958. Use char because int might match the return type of a GCC
  21959. builtin and then its argument prototype would still apply. */
  21960. #ifdef __cplusplus
  21961. extern "C"
  21962. #endif
  21963. char clock_gettime ();
  21964. int
  21965. main ()
  21966. {
  21967. return clock_gettime ();
  21968. ;
  21969. return 0;
  21970. }
  21971. _ACEOF
  21972. if ac_fn_c_try_link "$LINENO"; then :
  21973. ac_cv_lib_c_clock_gettime=yes
  21974. else
  21975. ac_cv_lib_c_clock_gettime=no
  21976. fi
  21977. rm -f core conftest.err conftest.$ac_objext \
  21978. conftest$ac_exeext conftest.$ac_ext
  21979. LIBS=$ac_check_lib_save_LIBS
  21980. fi
  21981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  21982. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  21983. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  21984. have_clock_gettime=yes
  21985. fi
  21986. if test x$have_clock_gettime = xyes; then
  21987. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21988. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  21989. fi
  21990. fi
  21991. fi
  21992. }
  21993. CheckLinuxVersion()
  21994. {
  21995. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  21996. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  21997. have_linux_version_h=yes
  21998. fi
  21999. if test x$have_linux_version_h = xyes; then
  22000. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  22001. fi
  22002. }
  22003. CheckRPATH()
  22004. {
  22005. # Check whether --enable-rpath was given.
  22006. if test "${enable_rpath+set}" = set; then :
  22007. enableval=$enable_rpath;
  22008. else
  22009. enable_rpath=yes
  22010. fi
  22011. }
  22012. CheckEventSignals()
  22013. {
  22014. # Check whether --enable-backgrounding-signal was given.
  22015. if test "${enable_backgrounding_signal+set}" = set; then :
  22016. enableval=$enable_backgrounding_signal;
  22017. else
  22018. enable_backgrounding_signal=no
  22019. fi
  22020. if test x$enable_backgrounding_signal != xno; then
  22021. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  22022. fi
  22023. # Check whether --enable-foregrounding-signal was given.
  22024. if test "${enable_foregrounding_signal+set}" = set; then :
  22025. enableval=$enable_foregrounding_signal;
  22026. else
  22027. enable_foregrounding_signal=no
  22028. fi
  22029. if test x$enable_foregrounding_signal != xno; then
  22030. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  22031. fi
  22032. }
  22033. CheckVirtualJoystick()
  22034. {
  22035. # Check whether --enable-joystick-virtual was given.
  22036. if test "${enable_joystick_virtual+set}" = set; then :
  22037. enableval=$enable_joystick_virtual;
  22038. else
  22039. enable_joystick_virtual=yes
  22040. fi
  22041. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  22042. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  22043. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  22044. have_joystick_virtual=yes
  22045. fi
  22046. }
  22047. CheckWarnAll
  22048. CheckNoStrictAliasing
  22049. CheckEventSignals
  22050. have_locale=no
  22051. case "$host" in
  22052. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  22053. case "$host" in
  22054. *-*-android*)
  22055. # Android
  22056. ARCH=android
  22057. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  22058. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  22059. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  22060. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  22061. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  22062. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  22063. if test x$enable_video = xyes; then
  22064. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  22065. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  22066. SUMMARY_video="${SUMMARY_video} android"
  22067. have_video=yes
  22068. fi
  22069. ;;
  22070. *-*-linux*) ARCH=linux ;;
  22071. *-*-uclinux*) ARCH=linux ;;
  22072. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  22073. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  22074. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  22075. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  22076. *-*-bsdi*) ARCH=bsdi ;;
  22077. *-*-freebsd*) ARCH=freebsd ;;
  22078. *-*-dragonfly*) ARCH=freebsd ;;
  22079. *-*-netbsd*) ARCH=netbsd ;;
  22080. *-*-openbsd*) ARCH=openbsd ;;
  22081. *-*-sysv5*) ARCH=sysv5 ;;
  22082. *-*-solaris*) ARCH=solaris ;;
  22083. *-*-hpux*) ARCH=hpux ;;
  22084. *-*-aix*) ARCH=aix ;;
  22085. *-*-minix*) ARCH=minix ;;
  22086. *-*-nto*) ARCH=nto
  22087. CheckQNXVideo
  22088. ;;
  22089. esac
  22090. CheckVisibilityHidden
  22091. CheckDeclarationAfterStatement
  22092. CheckDummyVideo
  22093. CheckOffscreenVideo
  22094. CheckDiskAudio
  22095. CheckDummyAudio
  22096. CheckDLOPEN
  22097. CheckARM
  22098. CheckNEON
  22099. CheckO_CLOEXEC
  22100. CheckOSS
  22101. CheckALSA
  22102. CheckPipewire
  22103. CheckPulseAudio
  22104. CheckJACK
  22105. CheckARTSC
  22106. CheckESD
  22107. CheckNAS
  22108. CheckSNDIO
  22109. CheckFusionSound
  22110. CheckLibSampleRate
  22111. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  22112. CheckRPI
  22113. CheckX11
  22114. CheckDirectFB
  22115. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  22116. CheckEGL
  22117. CheckKMSDRM
  22118. CheckGLX
  22119. CheckOpenGL
  22120. CheckOpenGLES
  22121. CheckVulkan
  22122. CheckWayland
  22123. CheckInputEvents
  22124. CheckLibUDev
  22125. CheckDBus
  22126. CheckIME
  22127. CheckInotify
  22128. CheckIBus
  22129. CheckFcitx
  22130. case $ARCH in
  22131. linux)
  22132. CheckInputKD
  22133. ;;
  22134. freebsd)
  22135. CheckInputKBIO
  22136. ;;
  22137. openbsd|netbsd)
  22138. CheckInputWSCONS
  22139. ;;
  22140. esac
  22141. CheckUSBHID
  22142. CheckHIDAPI
  22143. CheckPTHREAD
  22144. CheckClockGettime
  22145. CheckLinuxVersion
  22146. CheckRPATH
  22147. CheckVivanteVideo
  22148. # Set up files for the misc library
  22149. if test x$enable_misc = xyes; then
  22150. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  22151. have_misc=yes
  22152. fi
  22153. # Set up files for the locale library
  22154. if test x$enable_locale = xyes; then
  22155. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22156. have_locale=yes
  22157. fi
  22158. # Set up files for the audio library
  22159. if test x$enable_audio = xyes; then
  22160. case $ARCH in
  22161. sysv5|solaris|hpux)
  22162. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  22163. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  22164. SUMMARY_audio="${SUMMARY_audio} sun"
  22165. have_audio=yes
  22166. ;;
  22167. netbsd) # Don't use this on OpenBSD, it's busted.
  22168. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  22169. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  22170. SUMMARY_audio="${SUMMARY_audio} netbsd"
  22171. have_audio=yes
  22172. ;;
  22173. aix)
  22174. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  22175. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  22176. SUMMARY_audio="${SUMMARY_audio} paudio"
  22177. have_audio=yes
  22178. ;;
  22179. android)
  22180. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  22181. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  22182. SUMMARY_audio="${SUMMARY_audio} android"
  22183. $as_echo "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  22184. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  22185. SUMMARY_audio="${SUMMARY_audio} openslES"
  22186. $as_echo "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  22187. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  22188. SUMMARY_audio="${SUMMARY_audio} aaudio"
  22189. have_audio=yes
  22190. ;;
  22191. nto)
  22192. CheckQNXAudio
  22193. ;;
  22194. esac
  22195. fi
  22196. # Set up files for the joystick library
  22197. if test x$enable_joystick = xyes; then
  22198. case $ARCH in
  22199. linux)
  22200. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22201. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22202. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22203. have_joystick=yes
  22204. ;;
  22205. freebsd)
  22206. if test x$use_input_events = xyes; then
  22207. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22208. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22209. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22210. have_joystick=yes
  22211. fi
  22212. ;;
  22213. android)
  22214. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  22215. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  22216. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22217. have_joystick=yes
  22218. ;;
  22219. esac
  22220. fi
  22221. # Set up files for the haptic library
  22222. if test x$enable_haptic = xyes; then
  22223. case $ARCH in
  22224. linux|freebsd)
  22225. if test x$use_input_events = xyes; then
  22226. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  22227. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  22228. have_haptic=yes
  22229. fi
  22230. ;;
  22231. android)
  22232. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  22233. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  22234. have_haptic=yes
  22235. ;;
  22236. esac
  22237. fi
  22238. # Set up files for the sensor library
  22239. if test x$enable_sensor = xyes; then
  22240. case $ARCH in
  22241. android)
  22242. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  22243. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  22244. have_sensor=yes
  22245. ;;
  22246. esac
  22247. fi
  22248. # Set up files for the power library
  22249. if test x$enable_power = xyes; then
  22250. case $ARCH in
  22251. linux)
  22252. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  22253. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  22254. have_power=yes
  22255. ;;
  22256. android)
  22257. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  22258. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  22259. have_power=yes
  22260. ;;
  22261. esac
  22262. fi
  22263. # Set up files for the filesystem library
  22264. if test x$enable_filesystem = xyes; then
  22265. case $ARCH in
  22266. android)
  22267. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  22268. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  22269. have_filesystem=yes
  22270. ;;
  22271. *)
  22272. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  22273. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  22274. have_filesystem=yes
  22275. ;;
  22276. esac
  22277. fi
  22278. # Set up files for the timer library
  22279. if test x$enable_timers = xyes; then
  22280. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22281. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22282. have_timers=yes
  22283. fi
  22284. # Set up files for udev hotplugging support
  22285. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  22286. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  22287. fi
  22288. # Set up files for evdev input
  22289. if test x$use_input_events = xyes; then
  22290. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  22291. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  22292. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  22293. fi
  22294. # Set up files for wscons input
  22295. if test x$use_input_wscons = xyes; then
  22296. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  22297. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  22298. fi
  22299. # Set up other core UNIX files
  22300. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  22301. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  22302. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22303. ;;
  22304. *-*-cygwin* | *-*-mingw*)
  22305. ARCH=win32
  22306. if test "$build" != "$host"; then # cross-compiling
  22307. # Default cross-compile location
  22308. ac_default_prefix=/usr/local/cross-tools/$host
  22309. else
  22310. # Look for the location of the tools and install there
  22311. if test "$BUILD_PREFIX" != ""; then
  22312. ac_default_prefix=$BUILD_PREFIX
  22313. fi
  22314. fi
  22315. if test x$enable_loadso = xyes; then
  22316. have_loadso=yes
  22317. fi
  22318. CheckDeclarationAfterStatement
  22319. CheckDummyVideo
  22320. CheckOffscreenVideo
  22321. CheckDiskAudio
  22322. CheckDummyAudio
  22323. CheckWINDOWS
  22324. CheckWINDOWSGL
  22325. CheckWINDOWSGLES
  22326. CheckVulkan
  22327. CheckDIRECTX
  22328. CheckHIDAPI
  22329. # Set up the core platform files
  22330. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  22331. # Set up files for the misc library
  22332. if test x$enable_misc = xyes; then
  22333. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  22334. have_misc=yes
  22335. fi
  22336. # Use the Windows locale APIs.
  22337. if test x$enable_locale = xyes; then
  22338. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  22339. have_locale=yes
  22340. fi
  22341. # Set up files for the video library
  22342. if test x$enable_video = xyes; then
  22343. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  22344. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  22345. have_video=yes
  22346. # Check whether --enable-render-d3d was given.
  22347. if test "${enable_render_d3d+set}" = set; then :
  22348. enableval=$enable_render_d3d;
  22349. else
  22350. enable_render_d3d=yes
  22351. fi
  22352. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  22353. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  22354. SUMMARY_video="${SUMMARY_video} d3d9"
  22355. fi
  22356. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  22357. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  22358. SUMMARY_video="${SUMMARY_video} d3d11"
  22359. fi
  22360. fi
  22361. # Set up files for the audio library
  22362. if test x$enable_audio = xyes; then
  22363. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  22364. SUMMARY_audio="${SUMMARY_audio} winmm"
  22365. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  22366. if test x$have_dsound = xyes; then
  22367. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  22368. SUMMARY_audio="${SUMMARY_audio} directsound"
  22369. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  22370. fi
  22371. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  22372. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  22373. SUMMARY_audio="${SUMMARY_audio} wasapi"
  22374. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  22375. fi
  22376. have_audio=yes
  22377. fi
  22378. # Set up files for the joystick library
  22379. if test x$enable_joystick = xyes; then
  22380. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  22381. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  22382. if test x$have_xinput = xyes; then
  22383. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  22384. fi
  22385. if test x$have_wgi = xyes; then
  22386. $as_echo "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  22387. fi
  22388. if test x$have_dinput = xyes; then
  22389. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  22390. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  22391. fi
  22392. fi
  22393. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  22394. have_joystick=yes
  22395. fi
  22396. if test x$enable_haptic = xyes; then
  22397. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  22398. if test x$have_xinput = xyes; then
  22399. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  22400. fi
  22401. if test x$have_dinput = xyes; then
  22402. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  22403. fi
  22404. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  22405. have_haptic=yes
  22406. fi
  22407. fi
  22408. # Set up files for the sensor library
  22409. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  22410. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  22411. have_winsensors=yes
  22412. else
  22413. have_winsensors=no
  22414. fi
  22415. if test x$have_winsensors = xyes; then
  22416. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  22417. fi
  22418. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  22419. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  22420. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  22421. have_sensor=yes
  22422. fi
  22423. # Set up files for the power library
  22424. if test x$enable_power = xyes; then
  22425. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  22426. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  22427. have_power=yes
  22428. fi
  22429. # Set up files for the filesystem library
  22430. if test x$enable_filesystem = xyes; then
  22431. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  22432. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  22433. have_filesystem=yes
  22434. fi
  22435. # Set up files for the thread library
  22436. if test x$enable_threads = xyes; then
  22437. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  22438. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  22439. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  22440. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22441. have_threads=yes
  22442. fi
  22443. # Set up files for the timer library
  22444. if test x$enable_timers = xyes; then
  22445. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  22446. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  22447. have_timers=yes
  22448. fi
  22449. # Set up files for the shared object loading library
  22450. if test x$enable_loadso = xyes; then
  22451. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  22452. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  22453. fi
  22454. # Set up the system libraries we need
  22455. if test -f /lib/w32api/libuuid.a; then
  22456. LIBUUID=/lib/w32api/libuuid.a
  22457. else
  22458. LIBUUID=-luuid
  22459. fi
  22460. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  22461. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  22462. # The Windows platform requires special setup
  22463. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  22464. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  22465. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  22466. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  22467. # Check to see if this is a mingw or cygwin build
  22468. have_mingw32=
  22469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  22470. $as_echo_n "checking for main in -lmingw32... " >&6; }
  22471. if ${ac_cv_lib_mingw32_main+:} false; then :
  22472. $as_echo_n "(cached) " >&6
  22473. else
  22474. ac_check_lib_save_LIBS=$LIBS
  22475. LIBS="-lmingw32 $LIBS"
  22476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22477. /* end confdefs.h. */
  22478. int
  22479. main ()
  22480. {
  22481. return main ();
  22482. ;
  22483. return 0;
  22484. }
  22485. _ACEOF
  22486. if ac_fn_c_try_link "$LINENO"; then :
  22487. ac_cv_lib_mingw32_main=yes
  22488. else
  22489. ac_cv_lib_mingw32_main=no
  22490. fi
  22491. rm -f core conftest.err conftest.$ac_objext \
  22492. conftest$ac_exeext conftest.$ac_ext
  22493. LIBS=$ac_check_lib_save_LIBS
  22494. fi
  22495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  22496. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  22497. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  22498. have_mingw32=yes
  22499. fi
  22500. if test x$have_mingw32 = xyes; then
  22501. SDL_LIBS="-lmingw32 $SDL_LIBS"
  22502. else
  22503. SDL_LIBS="-lcygwin $SDL_LIBS"
  22504. fi
  22505. ;;
  22506. *-*-beos*)
  22507. as_fn_error $? "
  22508. *** BeOS support has been removed as of SDL 2.0.2.
  22509. " "$LINENO" 5
  22510. ;;
  22511. *-*-haiku*)
  22512. ARCH=haiku
  22513. ac_default_prefix=/boot/system
  22514. CheckDummyVideo
  22515. CheckOffscreenVideo
  22516. CheckDiskAudio
  22517. CheckDummyAudio
  22518. CheckDLOPEN
  22519. CheckO_CLOEXEC
  22520. CheckHaikuVideo
  22521. CheckHaikuGL
  22522. CheckPTHREAD
  22523. # Set up files for the audio library
  22524. if test x$enable_audio = xyes; then
  22525. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  22526. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  22527. SUMMARY_audio="${SUMMARY_audio} haiku"
  22528. have_audio=yes
  22529. fi
  22530. # Set up files for the joystick library
  22531. if test x$enable_joystick = xyes; then
  22532. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  22533. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  22534. have_joystick=yes
  22535. fi
  22536. # Set up files for the timer library
  22537. if test x$enable_timers = xyes; then
  22538. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  22539. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  22540. have_timers=yes
  22541. fi
  22542. # Set up files for the system power library
  22543. if test x$enable_power = xyes; then
  22544. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  22545. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  22546. have_power=yes
  22547. fi
  22548. # Set up files for the system filesystem library
  22549. if test x$enable_filesystem = xyes; then
  22550. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  22551. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  22552. have_filesystem=yes
  22553. fi
  22554. # Set up files for the misc library
  22555. if test x$enable_misc = xyes; then
  22556. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  22557. have_misc=yes
  22558. fi
  22559. # Set up files for the locale library
  22560. if test x$enable_locale = xyes; then
  22561. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  22562. have_locale=yes
  22563. fi
  22564. # The Haiku platform requires special setup.
  22565. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  22566. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  22567. ;;
  22568. *-ios-*)
  22569. ARCH=ios
  22570. CheckVisibilityHidden
  22571. CheckDeclarationAfterStatement
  22572. CheckDummyVideo
  22573. CheckOffscreenVideo
  22574. CheckDiskAudio
  22575. CheckDummyAudio
  22576. CheckDLOPEN
  22577. CheckO_CLOEXEC
  22578. CheckMETAL
  22579. CheckVulkan
  22580. CheckPTHREAD
  22581. # Set up files for the misc library
  22582. if test x$enable_misc = xyes; then
  22583. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  22584. have_misc=yes
  22585. fi
  22586. # Set up files for the locale library
  22587. if test x$enable_locale = xyes; then
  22588. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22589. have_locale=yes
  22590. fi
  22591. # Set up files for the audio library
  22592. if test x$enable_audio = xyes; then
  22593. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22594. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22595. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22596. have_audio=yes
  22597. fi
  22598. # Set up files for the joystick library
  22599. if test x$enable_joystick = xyes; then
  22600. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22601. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22602. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22603. have_joystick=yes
  22604. else
  22605. # Need this code for accelerometer as joystick support
  22606. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22607. fi
  22608. # Set up files for the haptic library
  22609. #if test x$enable_haptic = xyes; then
  22610. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22611. # have_haptic=yes
  22612. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22613. #fi
  22614. # Set up files for the sensor library
  22615. if test x$enable_sensor = xyes; then
  22616. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  22617. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  22618. have_sensor=yes
  22619. fi
  22620. # Set up files for the power library
  22621. if test x$enable_power = xyes; then
  22622. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  22623. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  22624. have_power=yes
  22625. fi
  22626. # Set up files for the filesystem library
  22627. if test x$enable_filesystem = xyes; then
  22628. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22629. have_filesystem=yes
  22630. fi
  22631. # Set up additional files for the file library
  22632. if test x$enable_file = xyes; then
  22633. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22634. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22635. fi
  22636. # Set up files for the timer library
  22637. if test x$enable_timers = xyes; then
  22638. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22639. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22640. have_timers=yes
  22641. fi
  22642. # Set up other core UNIX files
  22643. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22644. # The iOS platform requires special setup.
  22645. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  22646. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22647. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22648. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22649. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22650. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  22651. SUMMARY_video="${SUMMARY_video} uikit"
  22652. have_video=yes
  22653. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  22654. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  22655. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  22656. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  22657. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  22658. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  22659. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  22660. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  22661. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  22662. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  22663. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  22664. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22665. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  22666. fi
  22667. ;;
  22668. *-*-darwin* )
  22669. # This could be either full "Mac OS X", or plain "Darwin" which is
  22670. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  22671. # Next line is broken, and a few files below require Mac OS X (full)
  22672. ARCH=macosx
  22673. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  22674. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  22675. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  22676. CheckVisibilityHidden
  22677. CheckDeclarationAfterStatement
  22678. CheckDummyVideo
  22679. CheckOffscreenVideo
  22680. CheckDiskAudio
  22681. CheckDummyAudio
  22682. CheckDLOPEN
  22683. CheckO_CLOEXEC
  22684. CheckCOCOA
  22685. CheckMETAL
  22686. CheckX11
  22687. CheckMacGL
  22688. CheckMacGLES
  22689. CheckGLX
  22690. CheckOpenGL
  22691. CheckVulkan
  22692. CheckPTHREAD
  22693. CheckHIDAPI
  22694. # Set up files for the misc library
  22695. if test x$enable_misc = xyes; then
  22696. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  22697. have_misc=yes
  22698. fi
  22699. # Set up files for the locale library
  22700. if test x$enable_locale = xyes; then
  22701. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22702. have_locale=yes
  22703. fi
  22704. # Set up files for the audio library
  22705. if test x$enable_audio = xyes; then
  22706. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22707. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22708. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  22709. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22710. have_audio=yes
  22711. fi
  22712. # Set up files for the joystick library
  22713. if test x$enable_joystick = xyes; then
  22714. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  22715. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  22716. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22717. CheckJoystickMFI
  22718. have_joystick=yes
  22719. fi
  22720. # Set up files for the haptic library
  22721. if test x$enable_haptic = xyes; then
  22722. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  22723. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22724. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22725. have_haptic=yes
  22726. fi
  22727. # Set up files for the power library
  22728. if test x$enable_power = xyes; then
  22729. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  22730. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  22731. have_power=yes
  22732. fi
  22733. # Set up files for the filesystem library
  22734. if test x$enable_filesystem = xyes; then
  22735. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22736. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22737. have_filesystem=yes
  22738. fi
  22739. # Set up files for the timer library
  22740. if test x$enable_timers = xyes; then
  22741. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22742. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22743. have_timers=yes
  22744. fi
  22745. # Set up additional files for the file library
  22746. if test x$enable_file = xyes; then
  22747. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22748. fi
  22749. # Set up other core UNIX files
  22750. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22751. # The Mac OS X platform requires special setup.
  22752. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  22753. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  22754. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  22755. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  22756. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  22757. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22758. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  22759. fi
  22760. ;;
  22761. *-nacl|*-pnacl)
  22762. ARCH=nacl
  22763. CheckNativeClient
  22764. CheckDummyAudio
  22765. CheckDummyVideo
  22766. CheckOffscreenVideo
  22767. CheckInputEvents
  22768. CheckPTHREAD
  22769. CheckO_CLOEXEC
  22770. # Set up files for the timer library
  22771. if test x$enable_timers = xyes; then
  22772. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22773. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22774. have_timers=yes
  22775. fi
  22776. if test x$enable_filesystem = xyes; then
  22777. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  22778. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  22779. have_filesystem=yes
  22780. fi
  22781. ;;
  22782. *-*-emscripten* )
  22783. if test x$enable_video = xyes; then
  22784. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22785. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  22786. have_video=yes
  22787. SUMMARY_video="${SUMMARY_video} emscripten"
  22788. fi
  22789. if test x$enable_audio = xyes; then
  22790. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22791. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  22792. have_audio=yes
  22793. SUMMARY_audio="${SUMMARY_audio} emscripten"
  22794. fi
  22795. CheckVisibilityHidden
  22796. CheckDeclarationAfterStatement
  22797. CheckDummyVideo
  22798. CheckOffscreenVideo
  22799. CheckDiskAudio
  22800. CheckDummyAudio
  22801. CheckPTHREAD
  22802. CheckDLOPEN
  22803. CheckClockGettime
  22804. CheckEmscriptenGLES
  22805. # Set up files for the misc library
  22806. if test x$enable_misc = xyes; then
  22807. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  22808. have_misc=yes
  22809. fi
  22810. # Set up files for the power library
  22811. if test x$enable_power = xyes; then
  22812. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22813. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22814. have_power=yes
  22815. fi
  22816. # Set up files for the joystick library
  22817. if test x$enable_joystick = xyes; then
  22818. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22819. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22820. have_joystick=yes
  22821. fi
  22822. # Set up files for the filesystem library
  22823. if test x$enable_filesystem = xyes; then
  22824. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22825. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22826. have_filesystem=yes
  22827. fi
  22828. # Set up files for the timer library
  22829. if test x$enable_timers = xyes; then
  22830. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22831. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22832. have_timers=yes
  22833. fi
  22834. # Set up files for the locale library
  22835. if test x$enable_locale = xyes; then
  22836. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22837. have_locale=yes
  22838. fi
  22839. ;;
  22840. *-*-riscos*)
  22841. ARCH=riscos
  22842. CheckVisibilityHidden
  22843. CheckDeclarationAfterStatement
  22844. CheckDummyVideo
  22845. CheckOffscreenVideo
  22846. CheckDiskAudio
  22847. CheckDummyAudio
  22848. CheckDLOPEN
  22849. CheckO_CLOEXEC
  22850. CheckOSS
  22851. CheckPTHREAD
  22852. CheckClockGettime
  22853. # Set up files for the misc library
  22854. if test x$enable_misc = xyes; then
  22855. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22856. have_misc=yes
  22857. fi
  22858. # Set up files for the video library
  22859. if test x$enable_video = xyes; then
  22860. $as_echo "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  22861. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  22862. have_video=yes
  22863. SUMMARY_video="${SUMMARY_video} riscos"
  22864. fi
  22865. # Set up files for the filesystem library
  22866. if test x$enable_filesystem = xyes; then
  22867. $as_echo "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  22868. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  22869. have_filesystem=yes
  22870. fi
  22871. # Set up files for the timer library
  22872. if test x$enable_timers = xyes; then
  22873. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22874. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22875. have_timers=yes
  22876. fi
  22877. ;;
  22878. *-*-os2*)
  22879. ARCH=os2
  22880. if test "$build" != "$host"; then # cross-compiling
  22881. # Default cross-compile location
  22882. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  22883. else
  22884. # Look for the location of the tools and install there
  22885. if test "$BUILD_PREFIX" != ""; then
  22886. ac_default_prefix=$BUILD_PREFIX
  22887. fi
  22888. fi
  22889. enable_static=no # disable static builds
  22890. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  22891. CheckOS2
  22892. CheckDeclarationAfterStatement
  22893. CheckDummyVideo
  22894. CheckDiskAudio
  22895. CheckDummyAudio
  22896. CheckHIDAPI
  22897. # Set up the core platform files
  22898. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  22899. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  22900. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  22901. fi
  22902. # Use the Unix locale APIs.
  22903. if test x$enable_locale = xyes; then
  22904. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22905. have_locale=yes
  22906. fi
  22907. # Set up files for the video library
  22908. if test x$enable_video = xyes; then
  22909. $as_echo "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  22910. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  22911. have_video=yes
  22912. SUMMARY_video="${SUMMARY_video} os/2"
  22913. fi
  22914. # Set up files for the audio library
  22915. if test x$enable_audio = xyes; then
  22916. $as_echo "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  22917. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  22918. have_audio=yes
  22919. SUMMARY_audio="${SUMMARY_audio} os/2"
  22920. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  22921. fi
  22922. # Set up files for the thread library
  22923. if test x$enable_threads = xyes; then
  22924. $as_echo "#define SDL_THREAD_OS2 1" >>confdefs.h
  22925. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  22926. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22927. have_threads=yes
  22928. fi
  22929. # Set up files for the timer library
  22930. if test x$enable_timers = xyes; then
  22931. $as_echo "#define SDL_TIMER_OS2 1" >>confdefs.h
  22932. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  22933. have_timers=yes
  22934. fi
  22935. # Set up files for the shared object loading library
  22936. if test x$enable_loadso = xyes; then
  22937. $as_echo "#define SDL_LOADSO_OS2 1" >>confdefs.h
  22938. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  22939. have_loadso=yes
  22940. fi
  22941. # Set up files for the filesystem library
  22942. if test x$enable_filesystem = xyes; then
  22943. $as_echo "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  22944. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  22945. have_filesystem=yes
  22946. fi
  22947. # Set up files for the joystick library
  22948. if test x$enable_joystick = xyes; then
  22949. $as_echo "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  22950. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  22951. have_joystick=yes
  22952. fi
  22953. ;;
  22954. *)
  22955. as_fn_error $? "
  22956. *** Unsupported host: Please add to configure.ac
  22957. " "$LINENO" 5
  22958. ;;
  22959. esac
  22960. CheckVirtualJoystick
  22961. # Check whether to install sdl2-config
  22962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  22963. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  22964. # Check whether --enable-sdl2-config was given.
  22965. if test "${enable_sdl2_config+set}" = set; then :
  22966. enableval=$enable_sdl2_config; case "${enableval}" in
  22967. yes) enable_sdl2_config="TRUE" ;;
  22968. no) enable_sdl2_config="FALSE" ;;
  22969. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  22970. esac
  22971. else
  22972. enable_sdl2_config="TRUE"
  22973. fi
  22974. if test "$enable_sdl2_config" = "TRUE"; then
  22975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22976. $as_echo "yes" >&6; }
  22977. else
  22978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22979. $as_echo "no" >&6; }
  22980. fi
  22981. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  22982. # Verify that we have all the platform specific files we need
  22983. if test x$have_audio != xyes; then
  22984. if test x$enable_audio = xyes; then
  22985. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  22986. fi
  22987. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  22988. fi
  22989. if test x$have_video != xyes; then
  22990. if test x$enable_video = xyes; then
  22991. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22992. fi
  22993. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22994. fi
  22995. if test x$have_misc != xyes; then
  22996. if test x$enable_misc = xyes; then
  22997. $as_echo "#define SDL_MISC_DUMMY 1" >>confdefs.h
  22998. fi
  22999. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  23000. fi
  23001. if test x$have_locale != xyes; then
  23002. if test x$enable_locale = xyes; then
  23003. $as_echo "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  23004. fi
  23005. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  23006. fi
  23007. if test x$have_joystick != xyes; then
  23008. if test x$enable_joystick = xyes; then
  23009. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  23010. fi
  23011. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  23012. fi
  23013. if test x$have_haptic != xyes; then
  23014. if test x$enable_haptic = xyes; then
  23015. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  23016. fi
  23017. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  23018. fi
  23019. if test x$have_sensor != xyes; then
  23020. if test x$enable_sensor = xyes; then
  23021. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  23022. fi
  23023. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  23024. fi
  23025. if test x$have_threads != xyes; then
  23026. if test x$enable_threads = xyes; then
  23027. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  23028. fi
  23029. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  23030. fi
  23031. if test x$have_timers != xyes; then
  23032. if test x$enable_timers = xyes; then
  23033. $as_echo "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  23034. fi
  23035. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  23036. fi
  23037. if test x$have_filesystem != xyes; then
  23038. if test x$enable_filesystem = xyes; then
  23039. $as_echo "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  23040. fi
  23041. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  23042. fi
  23043. if test x$have_loadso != xyes; then
  23044. if test x$enable_loadso = xyes; then
  23045. $as_echo "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  23046. fi
  23047. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  23048. fi
  23049. if test x$SDLMAIN_SOURCES = x; then
  23050. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  23051. fi
  23052. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  23053. if test x$video_wayland = xyes; then
  23054. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  23055. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  23056. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  23057. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  23058. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  23059. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  23060. echo ;\
  23061. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23062. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23063. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  23064. echo ;\
  23065. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23066. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23067. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  23068. echo ;\
  23069. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  23070. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  23071. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  23072. done ;\
  23073. echo ;\
  23074. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  23075. fi
  23076. OBJECTS=`echo $SOURCES`
  23077. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  23078. for EXT in asm cc m c S; do
  23079. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  23080. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  23081. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  23082. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23083. done
  23084. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23085. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  23086. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  23087. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  23088. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  23089. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  23090. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  23091. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  23092. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  23093. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23094. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23095. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23096. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23097. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  23098. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  23099. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23100. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23101. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23102. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23103. # Set runtime shared library paths as needed
  23104. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  23105. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  23106. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  23107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  23108. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  23109. have_enable_new_dtags=no
  23110. save_LDFLAGS="$LDFLAGS"
  23111. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  23112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23113. /* end confdefs.h. */
  23114. int
  23115. main ()
  23116. {
  23117. ;
  23118. return 0;
  23119. }
  23120. _ACEOF
  23121. if ac_fn_c_try_link "$LINENO"; then :
  23122. have_enable_new_dtags=yes
  23123. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  23124. fi
  23125. rm -f core conftest.err conftest.$ac_objext \
  23126. conftest$ac_exeext conftest.$ac_ext
  23127. LDFLAGS="$save_LDFLAGS"
  23128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  23129. $as_echo "$have_enable_new_dtags" >&6; }
  23130. fi
  23131. if test $ARCH = solaris; then
  23132. SDL_RLD_FLAGS="-R\${libdir}"
  23133. fi
  23134. else
  23135. SDL_RLD_FLAGS=""
  23136. fi
  23137. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  23138. if test x$enable_shared = xyes; then
  23139. PKGCONFIG_LIBS_PRIV="
  23140. Libs.private:"
  23141. ENABLE_SHARED_TRUE=
  23142. ENABLE_SHARED_FALSE="#"
  23143. else
  23144. PKGCONFIG_LIBS_PRIV=
  23145. ENABLE_SHARED_TRUE="#"
  23146. ENABLE_SHARED_FALSE=
  23147. fi
  23148. if test x$enable_static = xyes; then
  23149. ENABLE_STATIC_TRUE=
  23150. ENABLE_STATIC_FALSE="#"
  23151. else
  23152. ENABLE_STATIC_TRUE="#"
  23153. ENABLE_STATIC_FALSE=
  23154. fi
  23155. cat >Makefile.rules <<__EOF__
  23156. # Build rules for objects
  23157. -include \$(OBJECTS:.lo=.d)
  23158. # Special dependency for SDL.c, since it depends on SDL_revision.h
  23159. $srcdir/src/SDL.c: update-revision
  23160. $DEPENDS
  23161. $VERSION_DEPENDS
  23162. $SDLMAIN_DEPENDS
  23163. $SDLTEST_DEPENDS
  23164. $WAYLAND_PROTOCOLS_DEPENDS
  23165. __EOF__
  23166. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  23167. ac_config_commands="$ac_config_commands sdl2_config"
  23168. SUMMARY="SDL2 Configure Summary:\n"
  23169. if test x$enable_shared = xyes; then
  23170. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  23171. fi
  23172. if test x$enable_static = xyes; then
  23173. SUMMARY="${SUMMARY}Building Static Libraries\n"
  23174. fi
  23175. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  23176. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  23177. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  23178. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  23179. if test x$have_x = xyes; then
  23180. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  23181. fi
  23182. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  23183. if test x$have_joystick_virtual = xyes; then
  23184. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  23185. else
  23186. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  23187. fi
  23188. if test x$have_samplerate_h_hdr = xyes; then
  23189. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  23190. else
  23191. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  23192. fi
  23193. if test x$have_libudev_h_hdr = xyes; then
  23194. SUMMARY="${SUMMARY}Using libudev : YES\n"
  23195. else
  23196. SUMMARY="${SUMMARY}Using libudev : NO\n"
  23197. fi
  23198. if test x$have_dbus_dbus_h_hdr = xyes; then
  23199. SUMMARY="${SUMMARY}Using dbus : YES\n"
  23200. else
  23201. SUMMARY="${SUMMARY}Using dbus : NO\n"
  23202. fi
  23203. if test x$enable_ime = xyes; then
  23204. SUMMARY="${SUMMARY}Using ime : YES\n"
  23205. else
  23206. SUMMARY="${SUMMARY}Using ime : NO\n"
  23207. fi
  23208. if test x$have_ibus_ibus_h_hdr = xyes; then
  23209. SUMMARY="${SUMMARY}Using ibus : YES\n"
  23210. else
  23211. SUMMARY="${SUMMARY}Using ibus : NO\n"
  23212. fi
  23213. if test x$have_fcitx = xyes; then
  23214. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  23215. else
  23216. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  23217. fi
  23218. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  23219. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  23220. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23221. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23222. SUMMARY="${SUMMARY}configure script with:\n"
  23223. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  23224. fi
  23225. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  23226. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  23227. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23228. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23229. SUMMARY="${SUMMARY}configure script with:\n"
  23230. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  23231. fi
  23232. ac_config_commands="$ac_config_commands summary"
  23233. cat >confcache <<\_ACEOF
  23234. # This file is a shell script that caches the results of configure
  23235. # tests run on this system so they can be shared between configure
  23236. # scripts and configure runs, see configure's option --config-cache.
  23237. # It is not useful on other systems. If it contains results you don't
  23238. # want to keep, you may remove or edit it.
  23239. #
  23240. # config.status only pays attention to the cache file if you give it
  23241. # the --recheck option to rerun configure.
  23242. #
  23243. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  23244. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  23245. # following values.
  23246. _ACEOF
  23247. # The following way of writing the cache mishandles newlines in values,
  23248. # but we know of no workaround that is simple, portable, and efficient.
  23249. # So, we kill variables containing newlines.
  23250. # Ultrix sh set writes to stderr and can't be redirected directly,
  23251. # and sets the high bit in the cache file unless we assign to the vars.
  23252. (
  23253. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  23254. eval ac_val=\$$ac_var
  23255. case $ac_val in #(
  23256. *${as_nl}*)
  23257. case $ac_var in #(
  23258. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  23259. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  23260. esac
  23261. case $ac_var in #(
  23262. _ | IFS | as_nl) ;; #(
  23263. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  23264. *) { eval $ac_var=; unset $ac_var;} ;;
  23265. esac ;;
  23266. esac
  23267. done
  23268. (set) 2>&1 |
  23269. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  23270. *${as_nl}ac_space=\ *)
  23271. # `set' does not quote correctly, so add quotes: double-quote
  23272. # substitution turns \\\\ into \\, and sed turns \\ into \.
  23273. sed -n \
  23274. "s/'/'\\\\''/g;
  23275. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23276. ;; #(
  23277. *)
  23278. # `set' quotes correctly as required by POSIX, so do not add quotes.
  23279. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  23280. ;;
  23281. esac |
  23282. sort
  23283. ) |
  23284. sed '
  23285. /^ac_cv_env_/b end
  23286. t clear
  23287. :clear
  23288. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23289. t end
  23290. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23291. :end' >>confcache
  23292. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  23293. if test -w "$cache_file"; then
  23294. if test "x$cache_file" != "x/dev/null"; then
  23295. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  23296. $as_echo "$as_me: updating cache $cache_file" >&6;}
  23297. if test ! -f "$cache_file" || test -h "$cache_file"; then
  23298. cat confcache >"$cache_file"
  23299. else
  23300. case $cache_file in #(
  23301. */* | ?:*)
  23302. mv -f confcache "$cache_file"$$ &&
  23303. mv -f "$cache_file"$$ "$cache_file" ;; #(
  23304. *)
  23305. mv -f confcache "$cache_file" ;;
  23306. esac
  23307. fi
  23308. fi
  23309. else
  23310. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  23311. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  23312. fi
  23313. fi
  23314. rm -f confcache
  23315. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23316. # Let make expand exec_prefix.
  23317. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23318. DEFS=-DHAVE_CONFIG_H
  23319. ac_libobjs=
  23320. ac_ltlibobjs=
  23321. U=
  23322. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23323. # 1. Remove the extension, and $U if already installed.
  23324. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  23325. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  23326. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  23327. # will be set to the directory where LIBOBJS objects are built.
  23328. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  23329. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  23330. done
  23331. LIBOBJS=$ac_libobjs
  23332. LTLIBOBJS=$ac_ltlibobjs
  23333. : "${CONFIG_STATUS=./config.status}"
  23334. ac_write_fail=0
  23335. ac_clean_files_save=$ac_clean_files
  23336. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23337. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  23338. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23339. as_write_fail=0
  23340. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  23341. #! $SHELL
  23342. # Generated by $as_me.
  23343. # Run this file to recreate the current configuration.
  23344. # Compiler output produced by configure, useful for debugging
  23345. # configure, is in config.log if it exists.
  23346. debug=false
  23347. ac_cs_recheck=false
  23348. ac_cs_silent=false
  23349. SHELL=\${CONFIG_SHELL-$SHELL}
  23350. export SHELL
  23351. _ASEOF
  23352. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  23353. ## -------------------- ##
  23354. ## M4sh Initialization. ##
  23355. ## -------------------- ##
  23356. # Be more Bourne compatible
  23357. DUALCASE=1; export DUALCASE # for MKS sh
  23358. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  23359. emulate sh
  23360. NULLCMD=:
  23361. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23362. # is contrary to our usage. Disable this feature.
  23363. alias -g '${1+"$@"}'='"$@"'
  23364. setopt NO_GLOB_SUBST
  23365. else
  23366. case `(set -o) 2>/dev/null` in #(
  23367. *posix*) :
  23368. set -o posix ;; #(
  23369. *) :
  23370. ;;
  23371. esac
  23372. fi
  23373. as_nl='
  23374. '
  23375. export as_nl
  23376. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  23377. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  23378. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  23379. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  23380. # Prefer a ksh shell builtin over an external printf program on Solaris,
  23381. # but without wasting forks for bash or zsh.
  23382. if test -z "$BASH_VERSION$ZSH_VERSION" \
  23383. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  23384. as_echo='print -r --'
  23385. as_echo_n='print -rn --'
  23386. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  23387. as_echo='printf %s\n'
  23388. as_echo_n='printf %s'
  23389. else
  23390. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  23391. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  23392. as_echo_n='/usr/ucb/echo -n'
  23393. else
  23394. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  23395. as_echo_n_body='eval
  23396. arg=$1;
  23397. case $arg in #(
  23398. *"$as_nl"*)
  23399. expr "X$arg" : "X\\(.*\\)$as_nl";
  23400. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  23401. esac;
  23402. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  23403. '
  23404. export as_echo_n_body
  23405. as_echo_n='sh -c $as_echo_n_body as_echo'
  23406. fi
  23407. export as_echo_body
  23408. as_echo='sh -c $as_echo_body as_echo'
  23409. fi
  23410. # The user is always right.
  23411. if test "${PATH_SEPARATOR+set}" != set; then
  23412. PATH_SEPARATOR=:
  23413. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  23414. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  23415. PATH_SEPARATOR=';'
  23416. }
  23417. fi
  23418. # IFS
  23419. # We need space, tab and new line, in precisely that order. Quoting is
  23420. # there to prevent editors from complaining about space-tab.
  23421. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  23422. # splitting by setting IFS to empty value.)
  23423. IFS=" "" $as_nl"
  23424. # Find who we are. Look in the path if we contain no directory separator.
  23425. as_myself=
  23426. case $0 in #((
  23427. *[\\/]* ) as_myself=$0 ;;
  23428. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23429. for as_dir in $PATH
  23430. do
  23431. IFS=$as_save_IFS
  23432. test -z "$as_dir" && as_dir=.
  23433. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  23434. done
  23435. IFS=$as_save_IFS
  23436. ;;
  23437. esac
  23438. # We did not find ourselves, most probably we were run as `sh COMMAND'
  23439. # in which case we are not to be found in the path.
  23440. if test "x$as_myself" = x; then
  23441. as_myself=$0
  23442. fi
  23443. if test ! -f "$as_myself"; then
  23444. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  23445. exit 1
  23446. fi
  23447. # Unset variables that we do not need and which cause bugs (e.g. in
  23448. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  23449. # suppresses any "Segmentation fault" message there. '((' could
  23450. # trigger a bug in pdksh 5.2.14.
  23451. for as_var in BASH_ENV ENV MAIL MAILPATH
  23452. do eval test x\${$as_var+set} = xset \
  23453. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  23454. done
  23455. PS1='$ '
  23456. PS2='> '
  23457. PS4='+ '
  23458. # NLS nuisances.
  23459. LC_ALL=C
  23460. export LC_ALL
  23461. LANGUAGE=C
  23462. export LANGUAGE
  23463. # CDPATH.
  23464. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23465. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  23466. # ----------------------------------------
  23467. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  23468. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  23469. # script with STATUS, using 1 if that was 0.
  23470. as_fn_error ()
  23471. {
  23472. as_status=$1; test $as_status -eq 0 && as_status=1
  23473. if test "$4"; then
  23474. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  23475. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  23476. fi
  23477. $as_echo "$as_me: error: $2" >&2
  23478. as_fn_exit $as_status
  23479. } # as_fn_error
  23480. # as_fn_set_status STATUS
  23481. # -----------------------
  23482. # Set $? to STATUS, without forking.
  23483. as_fn_set_status ()
  23484. {
  23485. return $1
  23486. } # as_fn_set_status
  23487. # as_fn_exit STATUS
  23488. # -----------------
  23489. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  23490. as_fn_exit ()
  23491. {
  23492. set +e
  23493. as_fn_set_status $1
  23494. exit $1
  23495. } # as_fn_exit
  23496. # as_fn_unset VAR
  23497. # ---------------
  23498. # Portably unset VAR.
  23499. as_fn_unset ()
  23500. {
  23501. { eval $1=; unset $1;}
  23502. }
  23503. as_unset=as_fn_unset
  23504. # as_fn_append VAR VALUE
  23505. # ----------------------
  23506. # Append the text in VALUE to the end of the definition contained in VAR. Take
  23507. # advantage of any shell optimizations that allow amortized linear growth over
  23508. # repeated appends, instead of the typical quadratic growth present in naive
  23509. # implementations.
  23510. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  23511. eval 'as_fn_append ()
  23512. {
  23513. eval $1+=\$2
  23514. }'
  23515. else
  23516. as_fn_append ()
  23517. {
  23518. eval $1=\$$1\$2
  23519. }
  23520. fi # as_fn_append
  23521. # as_fn_arith ARG...
  23522. # ------------------
  23523. # Perform arithmetic evaluation on the ARGs, and store the result in the
  23524. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  23525. # must be portable across $(()) and expr.
  23526. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  23527. eval 'as_fn_arith ()
  23528. {
  23529. as_val=$(( $* ))
  23530. }'
  23531. else
  23532. as_fn_arith ()
  23533. {
  23534. as_val=`expr "$@" || test $? -eq 1`
  23535. }
  23536. fi # as_fn_arith
  23537. if expr a : '\(a\)' >/dev/null 2>&1 &&
  23538. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  23539. as_expr=expr
  23540. else
  23541. as_expr=false
  23542. fi
  23543. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  23544. as_basename=basename
  23545. else
  23546. as_basename=false
  23547. fi
  23548. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  23549. as_dirname=dirname
  23550. else
  23551. as_dirname=false
  23552. fi
  23553. as_me=`$as_basename -- "$0" ||
  23554. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  23555. X"$0" : 'X\(//\)$' \| \
  23556. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  23557. $as_echo X/"$0" |
  23558. sed '/^.*\/\([^/][^/]*\)\/*$/{
  23559. s//\1/
  23560. q
  23561. }
  23562. /^X\/\(\/\/\)$/{
  23563. s//\1/
  23564. q
  23565. }
  23566. /^X\/\(\/\).*/{
  23567. s//\1/
  23568. q
  23569. }
  23570. s/.*/./; q'`
  23571. # Avoid depending upon Character Ranges.
  23572. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  23573. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  23574. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  23575. as_cr_digits='0123456789'
  23576. as_cr_alnum=$as_cr_Letters$as_cr_digits
  23577. ECHO_C= ECHO_N= ECHO_T=
  23578. case `echo -n x` in #(((((
  23579. -n*)
  23580. case `echo 'xy\c'` in
  23581. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  23582. xy) ECHO_C='\c';;
  23583. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  23584. ECHO_T=' ';;
  23585. esac;;
  23586. *)
  23587. ECHO_N='-n';;
  23588. esac
  23589. rm -f conf$$ conf$$.exe conf$$.file
  23590. if test -d conf$$.dir; then
  23591. rm -f conf$$.dir/conf$$.file
  23592. else
  23593. rm -f conf$$.dir
  23594. mkdir conf$$.dir 2>/dev/null
  23595. fi
  23596. if (echo >conf$$.file) 2>/dev/null; then
  23597. if ln -s conf$$.file conf$$ 2>/dev/null; then
  23598. as_ln_s='ln -s'
  23599. # ... but there are two gotchas:
  23600. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  23601. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  23602. # In both cases, we have to default to `cp -pR'.
  23603. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  23604. as_ln_s='cp -pR'
  23605. elif ln conf$$.file conf$$ 2>/dev/null; then
  23606. as_ln_s=ln
  23607. else
  23608. as_ln_s='cp -pR'
  23609. fi
  23610. else
  23611. as_ln_s='cp -pR'
  23612. fi
  23613. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  23614. rmdir conf$$.dir 2>/dev/null
  23615. # as_fn_mkdir_p
  23616. # -------------
  23617. # Create "$as_dir" as a directory, including parents if necessary.
  23618. as_fn_mkdir_p ()
  23619. {
  23620. case $as_dir in #(
  23621. -*) as_dir=./$as_dir;;
  23622. esac
  23623. test -d "$as_dir" || eval $as_mkdir_p || {
  23624. as_dirs=
  23625. while :; do
  23626. case $as_dir in #(
  23627. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23628. *) as_qdir=$as_dir;;
  23629. esac
  23630. as_dirs="'$as_qdir' $as_dirs"
  23631. as_dir=`$as_dirname -- "$as_dir" ||
  23632. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23633. X"$as_dir" : 'X\(//\)[^/]' \| \
  23634. X"$as_dir" : 'X\(//\)$' \| \
  23635. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23636. $as_echo X"$as_dir" |
  23637. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23638. s//\1/
  23639. q
  23640. }
  23641. /^X\(\/\/\)[^/].*/{
  23642. s//\1/
  23643. q
  23644. }
  23645. /^X\(\/\/\)$/{
  23646. s//\1/
  23647. q
  23648. }
  23649. /^X\(\/\).*/{
  23650. s//\1/
  23651. q
  23652. }
  23653. s/.*/./; q'`
  23654. test -d "$as_dir" && break
  23655. done
  23656. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23657. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  23658. } # as_fn_mkdir_p
  23659. if mkdir -p . 2>/dev/null; then
  23660. as_mkdir_p='mkdir -p "$as_dir"'
  23661. else
  23662. test -d ./-p && rmdir ./-p
  23663. as_mkdir_p=false
  23664. fi
  23665. # as_fn_executable_p FILE
  23666. # -----------------------
  23667. # Test if FILE is an executable regular file.
  23668. as_fn_executable_p ()
  23669. {
  23670. test -f "$1" && test -x "$1"
  23671. } # as_fn_executable_p
  23672. as_test_x='test -x'
  23673. as_executable_p=as_fn_executable_p
  23674. # Sed expression to map a string onto a valid CPP name.
  23675. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  23676. # Sed expression to map a string onto a valid variable name.
  23677. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  23678. exec 6>&1
  23679. ## ----------------------------------- ##
  23680. ## Main body of $CONFIG_STATUS script. ##
  23681. ## ----------------------------------- ##
  23682. _ASEOF
  23683. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  23684. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23685. # Save the log message, to keep $0 and so on meaningful, and to
  23686. # report actual input values of CONFIG_FILES etc. instead of their
  23687. # values after options handling.
  23688. ac_log="
  23689. This file was extended by $as_me, which was
  23690. generated by GNU Autoconf 2.69. Invocation command line was
  23691. CONFIG_FILES = $CONFIG_FILES
  23692. CONFIG_HEADERS = $CONFIG_HEADERS
  23693. CONFIG_LINKS = $CONFIG_LINKS
  23694. CONFIG_COMMANDS = $CONFIG_COMMANDS
  23695. $ $0 $@
  23696. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  23697. "
  23698. _ACEOF
  23699. case $ac_config_files in *"
  23700. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  23701. esac
  23702. case $ac_config_headers in *"
  23703. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  23704. esac
  23705. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23706. # Files that config.status was made for.
  23707. config_files="$ac_config_files"
  23708. config_headers="$ac_config_headers"
  23709. config_commands="$ac_config_commands"
  23710. _ACEOF
  23711. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23712. ac_cs_usage="\
  23713. \`$as_me' instantiates files and other configuration actions
  23714. from templates according to the current configuration. Unless the files
  23715. and actions are specified as TAGs, all are instantiated by default.
  23716. Usage: $0 [OPTION]... [TAG]...
  23717. -h, --help print this help, then exit
  23718. -V, --version print version number and configuration settings, then exit
  23719. --config print configuration, then exit
  23720. -q, --quiet, --silent
  23721. do not print progress messages
  23722. -d, --debug don't remove temporary files
  23723. --recheck update $as_me by reconfiguring in the same conditions
  23724. --file=FILE[:TEMPLATE]
  23725. instantiate the configuration file FILE
  23726. --header=FILE[:TEMPLATE]
  23727. instantiate the configuration header FILE
  23728. Configuration files:
  23729. $config_files
  23730. Configuration headers:
  23731. $config_headers
  23732. Configuration commands:
  23733. $config_commands
  23734. Report bugs to the package provider."
  23735. _ACEOF
  23736. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23737. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  23738. ac_cs_version="\\
  23739. config.status
  23740. configured by $0, generated by GNU Autoconf 2.69,
  23741. with options \\"\$ac_cs_config\\"
  23742. Copyright (C) 2012 Free Software Foundation, Inc.
  23743. This config.status script is free software; the Free Software Foundation
  23744. gives unlimited permission to copy, distribute and modify it."
  23745. ac_pwd='$ac_pwd'
  23746. srcdir='$srcdir'
  23747. INSTALL='$INSTALL'
  23748. AWK='$AWK'
  23749. test -n "\$AWK" || AWK=awk
  23750. _ACEOF
  23751. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23752. # The default lists apply if the user does not specify any file.
  23753. ac_need_defaults=:
  23754. while test $# != 0
  23755. do
  23756. case $1 in
  23757. --*=?*)
  23758. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23759. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  23760. ac_shift=:
  23761. ;;
  23762. --*=)
  23763. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23764. ac_optarg=
  23765. ac_shift=:
  23766. ;;
  23767. *)
  23768. ac_option=$1
  23769. ac_optarg=$2
  23770. ac_shift=shift
  23771. ;;
  23772. esac
  23773. case $ac_option in
  23774. # Handling of the options.
  23775. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  23776. ac_cs_recheck=: ;;
  23777. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  23778. $as_echo "$ac_cs_version"; exit ;;
  23779. --config | --confi | --conf | --con | --co | --c )
  23780. $as_echo "$ac_cs_config"; exit ;;
  23781. --debug | --debu | --deb | --de | --d | -d )
  23782. debug=: ;;
  23783. --file | --fil | --fi | --f )
  23784. $ac_shift
  23785. case $ac_optarg in
  23786. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23787. '') as_fn_error $? "missing file argument" ;;
  23788. esac
  23789. as_fn_append CONFIG_FILES " '$ac_optarg'"
  23790. ac_need_defaults=false;;
  23791. --header | --heade | --head | --hea )
  23792. $ac_shift
  23793. case $ac_optarg in
  23794. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23795. esac
  23796. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  23797. ac_need_defaults=false;;
  23798. --he | --h)
  23799. # Conflict between --help and --header
  23800. as_fn_error $? "ambiguous option: \`$1'
  23801. Try \`$0 --help' for more information.";;
  23802. --help | --hel | -h )
  23803. $as_echo "$ac_cs_usage"; exit ;;
  23804. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  23805. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  23806. ac_cs_silent=: ;;
  23807. # This is an error.
  23808. -*) as_fn_error $? "unrecognized option: \`$1'
  23809. Try \`$0 --help' for more information." ;;
  23810. *) as_fn_append ac_config_targets " $1"
  23811. ac_need_defaults=false ;;
  23812. esac
  23813. shift
  23814. done
  23815. ac_configure_extra_args=
  23816. if $ac_cs_silent; then
  23817. exec 6>/dev/null
  23818. ac_configure_extra_args="$ac_configure_extra_args --silent"
  23819. fi
  23820. _ACEOF
  23821. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23822. if \$ac_cs_recheck; then
  23823. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  23824. shift
  23825. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  23826. CONFIG_SHELL='$SHELL'
  23827. export CONFIG_SHELL
  23828. exec "\$@"
  23829. fi
  23830. _ACEOF
  23831. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23832. exec 5>>config.log
  23833. {
  23834. echo
  23835. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  23836. ## Running $as_me. ##
  23837. _ASBOX
  23838. $as_echo "$ac_log"
  23839. } >&5
  23840. _ACEOF
  23841. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23842. #
  23843. # INIT-COMMANDS
  23844. #
  23845. # The HP-UX ksh and POSIX shell print the target directory to stdout
  23846. # if CDPATH is set.
  23847. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23848. sed_quote_subst='$sed_quote_subst'
  23849. double_quote_subst='$double_quote_subst'
  23850. delay_variable_subst='$delay_variable_subst'
  23851. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  23852. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  23853. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  23854. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  23855. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  23856. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  23857. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  23858. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  23859. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  23860. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  23861. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  23862. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  23863. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  23864. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  23865. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  23866. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  23867. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  23868. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  23869. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  23870. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  23871. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  23872. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  23873. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  23874. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  23875. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  23876. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  23877. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  23878. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  23879. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  23880. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  23881. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  23882. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  23883. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  23884. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  23885. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  23886. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  23887. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  23888. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  23889. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  23890. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  23891. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  23892. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  23893. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  23894. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  23895. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  23896. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  23897. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  23898. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23899. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23900. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  23901. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  23902. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  23903. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  23904. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  23905. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  23906. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  23907. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  23908. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  23909. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  23910. 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"`'
  23911. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  23912. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  23913. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  23914. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  23915. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  23916. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  23917. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  23918. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  23919. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  23920. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  23921. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  23922. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  23923. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  23924. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  23925. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  23926. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  23927. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23928. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  23929. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  23930. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  23931. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23932. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  23933. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  23934. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  23935. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  23936. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  23937. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  23938. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23939. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  23940. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23941. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  23942. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23943. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  23944. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23945. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23946. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  23947. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  23948. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  23949. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  23950. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  23951. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23952. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  23953. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  23954. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  23955. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  23956. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  23957. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  23958. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  23959. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  23960. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  23961. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  23962. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  23963. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  23964. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  23965. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  23966. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  23967. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23968. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  23969. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  23970. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  23971. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  23972. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  23973. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23974. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23975. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  23976. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  23977. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  23978. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  23979. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  23980. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  23981. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  23982. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  23983. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  23984. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  23985. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  23986. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  23987. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  23988. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  23989. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  23990. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  23991. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  23992. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  23993. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  23994. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  23995. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  23996. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23997. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23998. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23999. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24000. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24001. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  24002. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  24003. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  24004. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  24005. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  24006. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24007. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  24008. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  24009. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  24010. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  24011. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  24012. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  24013. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  24014. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  24015. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  24016. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  24017. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  24018. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  24019. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24020. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24021. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24022. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24023. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  24024. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  24025. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24026. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24027. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24028. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24029. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24030. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24031. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24032. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24033. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24034. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24035. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24036. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24037. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  24038. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  24039. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24040. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24041. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24042. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24043. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24044. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24045. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  24046. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  24047. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  24048. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  24049. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  24050. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  24051. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  24052. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  24053. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  24054. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  24055. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  24056. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  24057. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  24058. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  24059. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  24060. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  24061. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  24062. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  24063. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24064. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24065. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24066. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24067. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24068. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24069. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24070. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24071. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24072. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24073. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  24074. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24075. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  24076. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  24077. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  24078. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  24079. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24080. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24081. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24082. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24083. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  24084. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  24085. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  24086. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  24087. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  24088. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  24089. LTCC='$LTCC'
  24090. LTCFLAGS='$LTCFLAGS'
  24091. compiler='$compiler_DEFAULT'
  24092. # A function that is used when there is no print builtin or printf.
  24093. func_fallback_echo ()
  24094. {
  24095. eval 'cat <<_LTECHO_EOF
  24096. \$1
  24097. _LTECHO_EOF'
  24098. }
  24099. # Quote evaled strings.
  24100. for var in AS \
  24101. DLLTOOL \
  24102. OBJDUMP \
  24103. SHELL \
  24104. ECHO \
  24105. PATH_SEPARATOR \
  24106. SED \
  24107. GREP \
  24108. EGREP \
  24109. FGREP \
  24110. LD \
  24111. NM \
  24112. LN_S \
  24113. lt_SP2NL \
  24114. lt_NL2SP \
  24115. reload_flag \
  24116. deplibs_check_method \
  24117. file_magic_cmd \
  24118. file_magic_glob \
  24119. want_nocaseglob \
  24120. sharedlib_from_linklib_cmd \
  24121. AR \
  24122. AR_FLAGS \
  24123. archiver_list_spec \
  24124. STRIP \
  24125. RANLIB \
  24126. CC \
  24127. CFLAGS \
  24128. compiler \
  24129. lt_cv_sys_global_symbol_pipe \
  24130. lt_cv_sys_global_symbol_to_cdecl \
  24131. lt_cv_sys_global_symbol_to_import \
  24132. lt_cv_sys_global_symbol_to_c_name_address \
  24133. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  24134. lt_cv_nm_interface \
  24135. nm_file_list_spec \
  24136. lt_cv_truncate_bin \
  24137. lt_prog_compiler_no_builtin_flag \
  24138. lt_prog_compiler_pic \
  24139. lt_prog_compiler_wl \
  24140. lt_prog_compiler_static \
  24141. lt_cv_prog_compiler_c_o \
  24142. need_locks \
  24143. MANIFEST_TOOL \
  24144. DSYMUTIL \
  24145. NMEDIT \
  24146. LIPO \
  24147. OTOOL \
  24148. OTOOL64 \
  24149. shrext_cmds \
  24150. export_dynamic_flag_spec \
  24151. whole_archive_flag_spec \
  24152. compiler_needs_object \
  24153. with_gnu_ld \
  24154. allow_undefined_flag \
  24155. no_undefined_flag \
  24156. hardcode_libdir_flag_spec \
  24157. hardcode_libdir_separator \
  24158. exclude_expsyms \
  24159. include_expsyms \
  24160. file_list_spec \
  24161. variables_saved_for_relink \
  24162. libname_spec \
  24163. library_names_spec \
  24164. soname_spec \
  24165. install_override_mode \
  24166. finish_eval \
  24167. old_striplib \
  24168. striplib \
  24169. compiler_lib_search_dirs \
  24170. predep_objects \
  24171. postdep_objects \
  24172. predeps \
  24173. postdeps \
  24174. compiler_lib_search_path \
  24175. LD_RC \
  24176. LD_CXX \
  24177. reload_flag_RC \
  24178. reload_flag_CXX \
  24179. compiler_RC \
  24180. compiler_CXX \
  24181. lt_prog_compiler_no_builtin_flag_RC \
  24182. lt_prog_compiler_no_builtin_flag_CXX \
  24183. lt_prog_compiler_pic_RC \
  24184. lt_prog_compiler_pic_CXX \
  24185. lt_prog_compiler_wl_RC \
  24186. lt_prog_compiler_wl_CXX \
  24187. lt_prog_compiler_static_RC \
  24188. lt_prog_compiler_static_CXX \
  24189. lt_cv_prog_compiler_c_o_RC \
  24190. lt_cv_prog_compiler_c_o_CXX \
  24191. export_dynamic_flag_spec_RC \
  24192. export_dynamic_flag_spec_CXX \
  24193. whole_archive_flag_spec_RC \
  24194. whole_archive_flag_spec_CXX \
  24195. compiler_needs_object_RC \
  24196. compiler_needs_object_CXX \
  24197. with_gnu_ld_RC \
  24198. with_gnu_ld_CXX \
  24199. allow_undefined_flag_RC \
  24200. allow_undefined_flag_CXX \
  24201. no_undefined_flag_RC \
  24202. no_undefined_flag_CXX \
  24203. hardcode_libdir_flag_spec_RC \
  24204. hardcode_libdir_flag_spec_CXX \
  24205. hardcode_libdir_separator_RC \
  24206. hardcode_libdir_separator_CXX \
  24207. exclude_expsyms_RC \
  24208. exclude_expsyms_CXX \
  24209. include_expsyms_RC \
  24210. include_expsyms_CXX \
  24211. file_list_spec_RC \
  24212. file_list_spec_CXX \
  24213. compiler_lib_search_dirs_RC \
  24214. compiler_lib_search_dirs_CXX \
  24215. predep_objects_RC \
  24216. predep_objects_CXX \
  24217. postdep_objects_RC \
  24218. postdep_objects_CXX \
  24219. predeps_RC \
  24220. predeps_CXX \
  24221. postdeps_RC \
  24222. postdeps_CXX \
  24223. compiler_lib_search_path_RC \
  24224. compiler_lib_search_path_CXX; do
  24225. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24226. *[\\\\\\\`\\"\\\$]*)
  24227. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24228. ;;
  24229. *)
  24230. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24231. ;;
  24232. esac
  24233. done
  24234. # Double-quote double-evaled strings.
  24235. for var in reload_cmds \
  24236. old_postinstall_cmds \
  24237. old_postuninstall_cmds \
  24238. old_archive_cmds \
  24239. extract_expsyms_cmds \
  24240. old_archive_from_new_cmds \
  24241. old_archive_from_expsyms_cmds \
  24242. archive_cmds \
  24243. archive_expsym_cmds \
  24244. module_cmds \
  24245. module_expsym_cmds \
  24246. export_symbols_cmds \
  24247. prelink_cmds \
  24248. postlink_cmds \
  24249. postinstall_cmds \
  24250. postuninstall_cmds \
  24251. finish_cmds \
  24252. sys_lib_search_path_spec \
  24253. configure_time_dlsearch_path \
  24254. configure_time_lt_sys_library_path \
  24255. reload_cmds_RC \
  24256. reload_cmds_CXX \
  24257. old_archive_cmds_RC \
  24258. old_archive_cmds_CXX \
  24259. old_archive_from_new_cmds_RC \
  24260. old_archive_from_new_cmds_CXX \
  24261. old_archive_from_expsyms_cmds_RC \
  24262. old_archive_from_expsyms_cmds_CXX \
  24263. archive_cmds_RC \
  24264. archive_cmds_CXX \
  24265. archive_expsym_cmds_RC \
  24266. archive_expsym_cmds_CXX \
  24267. module_cmds_RC \
  24268. module_cmds_CXX \
  24269. module_expsym_cmds_RC \
  24270. module_expsym_cmds_CXX \
  24271. export_symbols_cmds_RC \
  24272. export_symbols_cmds_CXX \
  24273. prelink_cmds_RC \
  24274. prelink_cmds_CXX \
  24275. postlink_cmds_RC \
  24276. postlink_cmds_CXX; do
  24277. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24278. *[\\\\\\\`\\"\\\$]*)
  24279. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24280. ;;
  24281. *)
  24282. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24283. ;;
  24284. esac
  24285. done
  24286. ac_aux_dir='$ac_aux_dir'
  24287. # See if we are running on zsh, and set the options that allow our
  24288. # commands through without removal of \ escapes INIT.
  24289. if test -n "\${ZSH_VERSION+set}"; then
  24290. setopt NO_GLOB_SUBST
  24291. fi
  24292. PACKAGE='$PACKAGE'
  24293. VERSION='$VERSION'
  24294. RM='$RM'
  24295. ofile='$ofile'
  24296. SUMMARY="$SUMMARY"
  24297. _ACEOF
  24298. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24299. # Handling of arguments.
  24300. for ac_config_target in $ac_config_targets
  24301. do
  24302. case $ac_config_target in
  24303. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  24304. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  24305. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  24306. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  24307. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  24308. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  24309. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  24310. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  24311. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  24312. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  24313. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  24314. esac
  24315. done
  24316. # If the user did not use the arguments to specify the items to instantiate,
  24317. # then the envvar interface is used. Set only those that are not.
  24318. # We use the long form for the default assignment because of an extremely
  24319. # bizarre bug on SunOS 4.1.3.
  24320. if $ac_need_defaults; then
  24321. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24322. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24323. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24324. fi
  24325. # Have a temporary directory for convenience. Make it in the build tree
  24326. # simply because there is no reason against having it here, and in addition,
  24327. # creating and moving files from /tmp can sometimes cause problems.
  24328. # Hook for its removal unless debugging.
  24329. # Note that there is a small window in which the directory will not be cleaned:
  24330. # after its creation but before its name has been assigned to `$tmp'.
  24331. $debug ||
  24332. {
  24333. tmp= ac_tmp=
  24334. trap 'exit_status=$?
  24335. : "${ac_tmp:=$tmp}"
  24336. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  24337. ' 0
  24338. trap 'as_fn_exit 1' 1 2 13 15
  24339. }
  24340. # Create a (secure) tmp directory for tmp files.
  24341. {
  24342. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24343. test -d "$tmp"
  24344. } ||
  24345. {
  24346. tmp=./conf$$-$RANDOM
  24347. (umask 077 && mkdir "$tmp")
  24348. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  24349. ac_tmp=$tmp
  24350. # Set up the scripts for CONFIG_FILES section.
  24351. # No need to generate them if there are no CONFIG_FILES.
  24352. # This happens for instance with `./config.status config.h'.
  24353. if test -n "$CONFIG_FILES"; then
  24354. ac_cr=`echo X | tr X '\015'`
  24355. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  24356. # But we know of no other shell where ac_cr would be empty at this
  24357. # point, so we can use a bashism as a fallback.
  24358. if test "x$ac_cr" = x; then
  24359. eval ac_cr=\$\'\\r\'
  24360. fi
  24361. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  24362. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  24363. ac_cs_awk_cr='\\r'
  24364. else
  24365. ac_cs_awk_cr=$ac_cr
  24366. fi
  24367. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  24368. _ACEOF
  24369. {
  24370. echo "cat >conf$$subs.awk <<_ACEOF" &&
  24371. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  24372. echo "_ACEOF"
  24373. } >conf$$subs.sh ||
  24374. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24375. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  24376. ac_delim='%!_!# '
  24377. for ac_last_try in false false false false false :; do
  24378. . ./conf$$subs.sh ||
  24379. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24380. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  24381. if test $ac_delim_n = $ac_delim_num; then
  24382. break
  24383. elif $ac_last_try; then
  24384. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24385. else
  24386. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24387. fi
  24388. done
  24389. rm -f conf$$subs.sh
  24390. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24391. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  24392. _ACEOF
  24393. sed -n '
  24394. h
  24395. s/^/S["/; s/!.*/"]=/
  24396. p
  24397. g
  24398. s/^[^!]*!//
  24399. :repl
  24400. t repl
  24401. s/'"$ac_delim"'$//
  24402. t delim
  24403. :nl
  24404. h
  24405. s/\(.\{148\}\)..*/\1/
  24406. t more1
  24407. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  24408. p
  24409. n
  24410. b repl
  24411. :more1
  24412. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24413. p
  24414. g
  24415. s/.\{148\}//
  24416. t nl
  24417. :delim
  24418. h
  24419. s/\(.\{148\}\)..*/\1/
  24420. t more2
  24421. s/["\\]/\\&/g; s/^/"/; s/$/"/
  24422. p
  24423. b
  24424. :more2
  24425. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24426. p
  24427. g
  24428. s/.\{148\}//
  24429. t delim
  24430. ' <conf$$subs.awk | sed '
  24431. /^[^""]/{
  24432. N
  24433. s/\n//
  24434. }
  24435. ' >>$CONFIG_STATUS || ac_write_fail=1
  24436. rm -f conf$$subs.awk
  24437. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24438. _ACAWK
  24439. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  24440. for (key in S) S_is_set[key] = 1
  24441. FS = ""
  24442. }
  24443. {
  24444. line = $ 0
  24445. nfields = split(line, field, "@")
  24446. substed = 0
  24447. len = length(field[1])
  24448. for (i = 2; i < nfields; i++) {
  24449. key = field[i]
  24450. keylen = length(key)
  24451. if (S_is_set[key]) {
  24452. value = S[key]
  24453. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  24454. len += length(value) + length(field[++i])
  24455. substed = 1
  24456. } else
  24457. len += 1 + keylen
  24458. }
  24459. print line
  24460. }
  24461. _ACAWK
  24462. _ACEOF
  24463. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24464. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  24465. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  24466. else
  24467. cat
  24468. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  24469. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  24470. _ACEOF
  24471. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  24472. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  24473. # trailing colons and then remove the whole line if VPATH becomes empty
  24474. # (actually we leave an empty line to preserve line numbers).
  24475. if test "x$srcdir" = x.; then
  24476. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  24477. h
  24478. s///
  24479. s/^/:/
  24480. s/[ ]*$/:/
  24481. s/:\$(srcdir):/:/g
  24482. s/:\${srcdir}:/:/g
  24483. s/:@srcdir@:/:/g
  24484. s/^:*//
  24485. s/:*$//
  24486. x
  24487. s/\(=[ ]*\).*/\1/
  24488. G
  24489. s/\n//
  24490. s/^[^=]*=[ ]*$//
  24491. }'
  24492. fi
  24493. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24494. fi # test -n "$CONFIG_FILES"
  24495. # Set up the scripts for CONFIG_HEADERS section.
  24496. # No need to generate them if there are no CONFIG_HEADERS.
  24497. # This happens for instance with `./config.status Makefile'.
  24498. if test -n "$CONFIG_HEADERS"; then
  24499. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  24500. BEGIN {
  24501. _ACEOF
  24502. # Transform confdefs.h into an awk script `defines.awk', embedded as
  24503. # here-document in config.status, that substitutes the proper values into
  24504. # config.h.in to produce config.h.
  24505. # Create a delimiter string that does not exist in confdefs.h, to ease
  24506. # handling of long lines.
  24507. ac_delim='%!_!# '
  24508. for ac_last_try in false false :; do
  24509. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  24510. if test -z "$ac_tt"; then
  24511. break
  24512. elif $ac_last_try; then
  24513. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  24514. else
  24515. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24516. fi
  24517. done
  24518. # For the awk script, D is an array of macro values keyed by name,
  24519. # likewise P contains macro parameters if any. Preserve backslash
  24520. # newline sequences.
  24521. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  24522. sed -n '
  24523. s/.\{148\}/&'"$ac_delim"'/g
  24524. t rset
  24525. :rset
  24526. s/^[ ]*#[ ]*define[ ][ ]*/ /
  24527. t def
  24528. d
  24529. :def
  24530. s/\\$//
  24531. t bsnl
  24532. s/["\\]/\\&/g
  24533. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24534. D["\1"]=" \3"/p
  24535. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  24536. d
  24537. :bsnl
  24538. s/["\\]/\\&/g
  24539. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24540. D["\1"]=" \3\\\\\\n"\\/p
  24541. t cont
  24542. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  24543. t cont
  24544. d
  24545. :cont
  24546. n
  24547. s/.\{148\}/&'"$ac_delim"'/g
  24548. t clear
  24549. :clear
  24550. s/\\$//
  24551. t bsnlc
  24552. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  24553. d
  24554. :bsnlc
  24555. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  24556. b cont
  24557. ' <confdefs.h | sed '
  24558. s/'"$ac_delim"'/"\\\
  24559. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  24560. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24561. for (key in D) D_is_set[key] = 1
  24562. FS = ""
  24563. }
  24564. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  24565. line = \$ 0
  24566. split(line, arg, " ")
  24567. if (arg[1] == "#") {
  24568. defundef = arg[2]
  24569. mac1 = arg[3]
  24570. } else {
  24571. defundef = substr(arg[1], 2)
  24572. mac1 = arg[2]
  24573. }
  24574. split(mac1, mac2, "(") #)
  24575. macro = mac2[1]
  24576. prefix = substr(line, 1, index(line, defundef) - 1)
  24577. if (D_is_set[macro]) {
  24578. # Preserve the white space surrounding the "#".
  24579. print prefix "define", macro P[macro] D[macro]
  24580. next
  24581. } else {
  24582. # Replace #undef with comments. This is necessary, for example,
  24583. # in the case of _POSIX_SOURCE, which is predefined and required
  24584. # on some systems where configure will not decide to define it.
  24585. if (defundef == "undef") {
  24586. print "/*", prefix defundef, macro, "*/"
  24587. next
  24588. }
  24589. }
  24590. }
  24591. { print }
  24592. _ACAWK
  24593. _ACEOF
  24594. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24595. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  24596. fi # test -n "$CONFIG_HEADERS"
  24597. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  24598. shift
  24599. for ac_tag
  24600. do
  24601. case $ac_tag in
  24602. :[FHLC]) ac_mode=$ac_tag; continue;;
  24603. esac
  24604. case $ac_mode$ac_tag in
  24605. :[FHL]*:*);;
  24606. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  24607. :[FH]-) ac_tag=-:-;;
  24608. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  24609. esac
  24610. ac_save_IFS=$IFS
  24611. IFS=:
  24612. set x $ac_tag
  24613. IFS=$ac_save_IFS
  24614. shift
  24615. ac_file=$1
  24616. shift
  24617. case $ac_mode in
  24618. :L) ac_source=$1;;
  24619. :[FH])
  24620. ac_file_inputs=
  24621. for ac_f
  24622. do
  24623. case $ac_f in
  24624. -) ac_f="$ac_tmp/stdin";;
  24625. *) # Look for the file first in the build tree, then in the source tree
  24626. # (if the path is not absolute). The absolute path cannot be DOS-style,
  24627. # because $ac_f cannot contain `:'.
  24628. test -f "$ac_f" ||
  24629. case $ac_f in
  24630. [\\/$]*) false;;
  24631. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  24632. esac ||
  24633. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  24634. esac
  24635. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  24636. as_fn_append ac_file_inputs " '$ac_f'"
  24637. done
  24638. # Let's still pretend it is `configure' which instantiates (i.e., don't
  24639. # use $as_me), people would be surprised to read:
  24640. # /* config.h. Generated by config.status. */
  24641. configure_input='Generated from '`
  24642. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  24643. `' by configure.'
  24644. if test x"$ac_file" != x-; then
  24645. configure_input="$ac_file. $configure_input"
  24646. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  24647. $as_echo "$as_me: creating $ac_file" >&6;}
  24648. fi
  24649. # Neutralize special characters interpreted by sed in replacement strings.
  24650. case $configure_input in #(
  24651. *\&* | *\|* | *\\* )
  24652. ac_sed_conf_input=`$as_echo "$configure_input" |
  24653. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  24654. *) ac_sed_conf_input=$configure_input;;
  24655. esac
  24656. case $ac_tag in
  24657. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  24658. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  24659. esac
  24660. ;;
  24661. esac
  24662. ac_dir=`$as_dirname -- "$ac_file" ||
  24663. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24664. X"$ac_file" : 'X\(//\)[^/]' \| \
  24665. X"$ac_file" : 'X\(//\)$' \| \
  24666. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  24667. $as_echo X"$ac_file" |
  24668. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24669. s//\1/
  24670. q
  24671. }
  24672. /^X\(\/\/\)[^/].*/{
  24673. s//\1/
  24674. q
  24675. }
  24676. /^X\(\/\/\)$/{
  24677. s//\1/
  24678. q
  24679. }
  24680. /^X\(\/\).*/{
  24681. s//\1/
  24682. q
  24683. }
  24684. s/.*/./; q'`
  24685. as_dir="$ac_dir"; as_fn_mkdir_p
  24686. ac_builddir=.
  24687. case "$ac_dir" in
  24688. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24689. *)
  24690. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  24691. # A ".." for each directory in $ac_dir_suffix.
  24692. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  24693. case $ac_top_builddir_sub in
  24694. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24695. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  24696. esac ;;
  24697. esac
  24698. ac_abs_top_builddir=$ac_pwd
  24699. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  24700. # for backward compatibility:
  24701. ac_top_builddir=$ac_top_build_prefix
  24702. case $srcdir in
  24703. .) # We are building in place.
  24704. ac_srcdir=.
  24705. ac_top_srcdir=$ac_top_builddir_sub
  24706. ac_abs_top_srcdir=$ac_pwd ;;
  24707. [\\/]* | ?:[\\/]* ) # Absolute name.
  24708. ac_srcdir=$srcdir$ac_dir_suffix;
  24709. ac_top_srcdir=$srcdir
  24710. ac_abs_top_srcdir=$srcdir ;;
  24711. *) # Relative name.
  24712. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  24713. ac_top_srcdir=$ac_top_build_prefix$srcdir
  24714. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  24715. esac
  24716. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  24717. case $ac_mode in
  24718. :F)
  24719. #
  24720. # CONFIG_FILE
  24721. #
  24722. case $INSTALL in
  24723. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  24724. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  24725. esac
  24726. _ACEOF
  24727. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24728. # If the template does not know about datarootdir, expand it.
  24729. # FIXME: This hack should be removed a few years after 2.60.
  24730. ac_datarootdir_hack=; ac_datarootdir_seen=
  24731. ac_sed_dataroot='
  24732. /datarootdir/ {
  24733. p
  24734. q
  24735. }
  24736. /@datadir@/p
  24737. /@docdir@/p
  24738. /@infodir@/p
  24739. /@localedir@/p
  24740. /@mandir@/p'
  24741. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  24742. *datarootdir*) ac_datarootdir_seen=yes;;
  24743. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  24744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  24745. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  24746. _ACEOF
  24747. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24748. ac_datarootdir_hack='
  24749. s&@datadir@&$datadir&g
  24750. s&@docdir@&$docdir&g
  24751. s&@infodir@&$infodir&g
  24752. s&@localedir@&$localedir&g
  24753. s&@mandir@&$mandir&g
  24754. s&\\\${datarootdir}&$datarootdir&g' ;;
  24755. esac
  24756. _ACEOF
  24757. # Neutralize VPATH when `$srcdir' = `.'.
  24758. # Shell code in configure.ac might set extrasub.
  24759. # FIXME: do we really want to maintain this feature?
  24760. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24761. ac_sed_extra="$ac_vpsub
  24762. $extrasub
  24763. _ACEOF
  24764. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24765. :t
  24766. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24767. s|@configure_input@|$ac_sed_conf_input|;t t
  24768. s&@top_builddir@&$ac_top_builddir_sub&;t t
  24769. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  24770. s&@srcdir@&$ac_srcdir&;t t
  24771. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  24772. s&@top_srcdir@&$ac_top_srcdir&;t t
  24773. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  24774. s&@builddir@&$ac_builddir&;t t
  24775. s&@abs_builddir@&$ac_abs_builddir&;t t
  24776. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  24777. s&@INSTALL@&$ac_INSTALL&;t t
  24778. $ac_datarootdir_hack
  24779. "
  24780. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  24781. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24782. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  24783. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  24784. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  24785. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  24786. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24787. which seems to be undefined. Please make sure it is defined" >&5
  24788. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24789. which seems to be undefined. Please make sure it is defined" >&2;}
  24790. rm -f "$ac_tmp/stdin"
  24791. case $ac_file in
  24792. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  24793. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  24794. esac \
  24795. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24796. ;;
  24797. :H)
  24798. #
  24799. # CONFIG_HEADER
  24800. #
  24801. if test x"$ac_file" != x-; then
  24802. {
  24803. $as_echo "/* $configure_input */" \
  24804. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  24805. } >"$ac_tmp/config.h" \
  24806. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24807. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  24808. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  24809. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  24810. else
  24811. rm -f "$ac_file"
  24812. mv "$ac_tmp/config.h" "$ac_file" \
  24813. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24814. fi
  24815. else
  24816. $as_echo "/* $configure_input */" \
  24817. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  24818. || as_fn_error $? "could not create -" "$LINENO" 5
  24819. fi
  24820. ;;
  24821. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  24822. $as_echo "$as_me: executing $ac_file commands" >&6;}
  24823. ;;
  24824. esac
  24825. case $ac_file$ac_mode in
  24826. "libtool":C)
  24827. # See if we are running on zsh, and set the options that allow our
  24828. # commands through without removal of \ escapes.
  24829. if test -n "${ZSH_VERSION+set}"; then
  24830. setopt NO_GLOB_SUBST
  24831. fi
  24832. cfgfile=${ofile}T
  24833. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  24834. $RM "$cfgfile"
  24835. cat <<_LT_EOF >> "$cfgfile"
  24836. #! $SHELL
  24837. # Generated automatically by $as_me ($PACKAGE) $VERSION
  24838. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24839. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  24840. # Provide generalized library-building support services.
  24841. # Written by Gordon Matzigkeit, 1996
  24842. # Copyright (C) 2014 Free Software Foundation, Inc.
  24843. # This is free software; see the source for copying conditions. There is NO
  24844. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  24845. # GNU Libtool is free software; you can redistribute it and/or modify
  24846. # it under the terms of the GNU General Public License as published by
  24847. # the Free Software Foundation; either version 2 of of the License, or
  24848. # (at your option) any later version.
  24849. #
  24850. # As a special exception to the GNU General Public License, if you
  24851. # distribute this file as part of a program or library that is built
  24852. # using GNU Libtool, you may include this file under the same
  24853. # distribution terms that you use for the rest of that program.
  24854. #
  24855. # GNU Libtool is distributed in the hope that it will be useful, but
  24856. # WITHOUT ANY WARRANTY; without even the implied warranty of
  24857. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24858. # GNU General Public License for more details.
  24859. #
  24860. # You should have received a copy of the GNU General Public License
  24861. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  24862. # The names of the tagged configurations supported by this script.
  24863. available_tags='RC CXX '
  24864. # Configured defaults for sys_lib_dlsearch_path munging.
  24865. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  24866. # ### BEGIN LIBTOOL CONFIG
  24867. # Which release of libtool.m4 was used?
  24868. macro_version=$macro_version
  24869. macro_revision=$macro_revision
  24870. # Assembler program.
  24871. AS=$lt_AS
  24872. # DLL creation program.
  24873. DLLTOOL=$lt_DLLTOOL
  24874. # Object dumper program.
  24875. OBJDUMP=$lt_OBJDUMP
  24876. # Whether or not to build shared libraries.
  24877. build_libtool_libs=$enable_shared
  24878. # Whether or not to build static libraries.
  24879. build_old_libs=$enable_static
  24880. # What type of objects to build.
  24881. pic_mode=$pic_mode
  24882. # Whether or not to optimize for fast installation.
  24883. fast_install=$enable_fast_install
  24884. # Shared archive member basename,for filename based shared library versioning on AIX.
  24885. shared_archive_member_spec=$shared_archive_member_spec
  24886. # Shell to use when invoking shell scripts.
  24887. SHELL=$lt_SHELL
  24888. # An echo program that protects backslashes.
  24889. ECHO=$lt_ECHO
  24890. # The PATH separator for the build system.
  24891. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  24892. # The host system.
  24893. host_alias=$host_alias
  24894. host=$host
  24895. host_os=$host_os
  24896. # The build system.
  24897. build_alias=$build_alias
  24898. build=$build
  24899. build_os=$build_os
  24900. # A sed program that does not truncate output.
  24901. SED=$lt_SED
  24902. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  24903. Xsed="\$SED -e 1s/^X//"
  24904. # A grep program that handles long lines.
  24905. GREP=$lt_GREP
  24906. # An ERE matcher.
  24907. EGREP=$lt_EGREP
  24908. # A literal string matcher.
  24909. FGREP=$lt_FGREP
  24910. # A BSD- or MS-compatible name lister.
  24911. NM=$lt_NM
  24912. # Whether we need soft or hard links.
  24913. LN_S=$lt_LN_S
  24914. # What is the maximum length of a command?
  24915. max_cmd_len=$max_cmd_len
  24916. # Object file suffix (normally "o").
  24917. objext=$ac_objext
  24918. # Executable file suffix (normally "").
  24919. exeext=$exeext
  24920. # whether the shell understands "unset".
  24921. lt_unset=$lt_unset
  24922. # turn spaces into newlines.
  24923. SP2NL=$lt_lt_SP2NL
  24924. # turn newlines into spaces.
  24925. NL2SP=$lt_lt_NL2SP
  24926. # convert \$build file names to \$host format.
  24927. to_host_file_cmd=$lt_cv_to_host_file_cmd
  24928. # convert \$build files to toolchain format.
  24929. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  24930. # Method to check whether dependent libraries are shared objects.
  24931. deplibs_check_method=$lt_deplibs_check_method
  24932. # Command to use when deplibs_check_method = "file_magic".
  24933. file_magic_cmd=$lt_file_magic_cmd
  24934. # How to find potential files when deplibs_check_method = "file_magic".
  24935. file_magic_glob=$lt_file_magic_glob
  24936. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  24937. want_nocaseglob=$lt_want_nocaseglob
  24938. # Command to associate shared and link libraries.
  24939. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  24940. # The archiver.
  24941. AR=$lt_AR
  24942. # Flags to create an archive.
  24943. AR_FLAGS=$lt_AR_FLAGS
  24944. # How to feed a file listing to the archiver.
  24945. archiver_list_spec=$lt_archiver_list_spec
  24946. # A symbol stripping program.
  24947. STRIP=$lt_STRIP
  24948. # Commands used to install an old-style archive.
  24949. RANLIB=$lt_RANLIB
  24950. old_postinstall_cmds=$lt_old_postinstall_cmds
  24951. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24952. # Whether to use a lock for old archive extraction.
  24953. lock_old_archive_extraction=$lock_old_archive_extraction
  24954. # A C compiler.
  24955. LTCC=$lt_CC
  24956. # LTCC compiler flags.
  24957. LTCFLAGS=$lt_CFLAGS
  24958. # Take the output of nm and produce a listing of raw symbols and C names.
  24959. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24960. # Transform the output of nm in a proper C declaration.
  24961. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24962. # Transform the output of nm into a list of symbols to manually relocate.
  24963. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  24964. # Transform the output of nm in a C name address pair.
  24965. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24966. # Transform the output of nm in a C name address pair when lib prefix is needed.
  24967. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  24968. # The name lister interface.
  24969. nm_interface=$lt_lt_cv_nm_interface
  24970. # Specify filename containing input files for \$NM.
  24971. nm_file_list_spec=$lt_nm_file_list_spec
  24972. # The root where to search for dependent libraries,and where our libraries should be installed.
  24973. lt_sysroot=$lt_sysroot
  24974. # Command to truncate a binary pipe.
  24975. lt_truncate_bin=$lt_lt_cv_truncate_bin
  24976. # The name of the directory that contains temporary libtool files.
  24977. objdir=$objdir
  24978. # Used to examine libraries when file_magic_cmd begins with "file".
  24979. MAGIC_CMD=$MAGIC_CMD
  24980. # Must we lock files when doing compilation?
  24981. need_locks=$lt_need_locks
  24982. # Manifest tool.
  24983. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  24984. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  24985. DSYMUTIL=$lt_DSYMUTIL
  24986. # Tool to change global to local symbols on Mac OS X.
  24987. NMEDIT=$lt_NMEDIT
  24988. # Tool to manipulate fat objects and archives on Mac OS X.
  24989. LIPO=$lt_LIPO
  24990. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  24991. OTOOL=$lt_OTOOL
  24992. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  24993. OTOOL64=$lt_OTOOL64
  24994. # Old archive suffix (normally "a").
  24995. libext=$libext
  24996. # Shared library suffix (normally ".so").
  24997. shrext_cmds=$lt_shrext_cmds
  24998. # The commands to extract the exported symbol list from a shared archive.
  24999. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  25000. # Variables whose values should be saved in libtool wrapper scripts and
  25001. # restored at link time.
  25002. variables_saved_for_relink=$lt_variables_saved_for_relink
  25003. # Do we need the "lib" prefix for modules?
  25004. need_lib_prefix=$need_lib_prefix
  25005. # Do we need a version for libraries?
  25006. need_version=$need_version
  25007. # Library versioning type.
  25008. version_type=$version_type
  25009. # Shared library runtime path variable.
  25010. runpath_var=$runpath_var
  25011. # Shared library path variable.
  25012. shlibpath_var=$shlibpath_var
  25013. # Is shlibpath searched before the hard-coded library search path?
  25014. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  25015. # Format of library name prefix.
  25016. libname_spec=$lt_libname_spec
  25017. # List of archive names. First name is the real one, the rest are links.
  25018. # The last name is the one that the linker finds with -lNAME
  25019. library_names_spec=$lt_library_names_spec
  25020. # The coded name of the library, if different from the real name.
  25021. soname_spec=$lt_soname_spec
  25022. # Permission mode override for installation of shared libraries.
  25023. install_override_mode=$lt_install_override_mode
  25024. # Command to use after installation of a shared archive.
  25025. postinstall_cmds=$lt_postinstall_cmds
  25026. # Command to use after uninstallation of a shared archive.
  25027. postuninstall_cmds=$lt_postuninstall_cmds
  25028. # Commands used to finish a libtool library installation in a directory.
  25029. finish_cmds=$lt_finish_cmds
  25030. # As "finish_cmds", except a single script fragment to be evaled but
  25031. # not shown.
  25032. finish_eval=$lt_finish_eval
  25033. # Whether we should hardcode library paths into libraries.
  25034. hardcode_into_libs=$hardcode_into_libs
  25035. # Compile-time system search path for libraries.
  25036. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25037. # Detected run-time system search path for libraries.
  25038. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  25039. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  25040. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  25041. # Whether dlopen is supported.
  25042. dlopen_support=$enable_dlopen
  25043. # Whether dlopen of programs is supported.
  25044. dlopen_self=$enable_dlopen_self
  25045. # Whether dlopen of statically linked programs is supported.
  25046. dlopen_self_static=$enable_dlopen_self_static
  25047. # Commands to strip libraries.
  25048. old_striplib=$lt_old_striplib
  25049. striplib=$lt_striplib
  25050. # The linker used to build libraries.
  25051. LD=$lt_LD
  25052. # How to create reloadable object files.
  25053. reload_flag=$lt_reload_flag
  25054. reload_cmds=$lt_reload_cmds
  25055. # Commands used to build an old-style archive.
  25056. old_archive_cmds=$lt_old_archive_cmds
  25057. # A language specific compiler.
  25058. CC=$lt_compiler
  25059. # Is the compiler the GNU compiler?
  25060. with_gcc=$GCC
  25061. # Compiler flag to turn off builtin functions.
  25062. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  25063. # Additional compiler flags for building library objects.
  25064. pic_flag=$lt_lt_prog_compiler_pic
  25065. # How to pass a linker flag through the compiler.
  25066. wl=$lt_lt_prog_compiler_wl
  25067. # Compiler flag to prevent dynamic linking.
  25068. link_static_flag=$lt_lt_prog_compiler_static
  25069. # Does compiler simultaneously support -c and -o options?
  25070. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  25071. # Whether or not to add -lc for building shared libraries.
  25072. build_libtool_need_lc=$archive_cmds_need_lc
  25073. # Whether or not to disallow shared libs when runtime libs are static.
  25074. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  25075. # Compiler flag to allow reflexive dlopens.
  25076. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  25077. # Compiler flag to generate shared objects directly from archives.
  25078. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  25079. # Whether the compiler copes with passing no objects directly.
  25080. compiler_needs_object=$lt_compiler_needs_object
  25081. # Create an old-style archive from a shared archive.
  25082. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  25083. # Create a temporary old-style archive to link instead of a shared archive.
  25084. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  25085. # Commands used to build a shared archive.
  25086. archive_cmds=$lt_archive_cmds
  25087. archive_expsym_cmds=$lt_archive_expsym_cmds
  25088. # Commands used to build a loadable module if different from building
  25089. # a shared archive.
  25090. module_cmds=$lt_module_cmds
  25091. module_expsym_cmds=$lt_module_expsym_cmds
  25092. # Whether we are building with GNU ld or not.
  25093. with_gnu_ld=$lt_with_gnu_ld
  25094. # Flag that allows shared libraries with undefined symbols to be built.
  25095. allow_undefined_flag=$lt_allow_undefined_flag
  25096. # Flag that enforces no undefined symbols.
  25097. no_undefined_flag=$lt_no_undefined_flag
  25098. # Flag to hardcode \$libdir into a binary during linking.
  25099. # This must work even if \$libdir does not exist
  25100. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  25101. # Whether we need a single "-rpath" flag with a separated argument.
  25102. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  25103. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25104. # DIR into the resulting binary.
  25105. hardcode_direct=$hardcode_direct
  25106. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25107. # DIR into the resulting binary and the resulting library dependency is
  25108. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25109. # library is relocated.
  25110. hardcode_direct_absolute=$hardcode_direct_absolute
  25111. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25112. # into the resulting binary.
  25113. hardcode_minus_L=$hardcode_minus_L
  25114. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25115. # into the resulting binary.
  25116. hardcode_shlibpath_var=$hardcode_shlibpath_var
  25117. # Set to "yes" if building a shared library automatically hardcodes DIR
  25118. # into the library and all subsequent libraries and executables linked
  25119. # against it.
  25120. hardcode_automatic=$hardcode_automatic
  25121. # Set to yes if linker adds runtime paths of dependent libraries
  25122. # to runtime path list.
  25123. inherit_rpath=$inherit_rpath
  25124. # Whether libtool must link a program against all its dependency libraries.
  25125. link_all_deplibs=$link_all_deplibs
  25126. # Set to "yes" if exported symbols are required.
  25127. always_export_symbols=$always_export_symbols
  25128. # The commands to list exported symbols.
  25129. export_symbols_cmds=$lt_export_symbols_cmds
  25130. # Symbols that should not be listed in the preloaded symbols.
  25131. exclude_expsyms=$lt_exclude_expsyms
  25132. # Symbols that must always be exported.
  25133. include_expsyms=$lt_include_expsyms
  25134. # Commands necessary for linking programs (against libraries) with templates.
  25135. prelink_cmds=$lt_prelink_cmds
  25136. # Commands necessary for finishing linking programs.
  25137. postlink_cmds=$lt_postlink_cmds
  25138. # Specify filename containing input files.
  25139. file_list_spec=$lt_file_list_spec
  25140. # How to hardcode a shared library path into an executable.
  25141. hardcode_action=$hardcode_action
  25142. # The directories searched by this compiler when creating a shared library.
  25143. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  25144. # Dependencies to place before and after the objects being linked to
  25145. # create a shared library.
  25146. predep_objects=$lt_predep_objects
  25147. postdep_objects=$lt_postdep_objects
  25148. predeps=$lt_predeps
  25149. postdeps=$lt_postdeps
  25150. # The library search path used internally by the compiler when linking
  25151. # a shared library.
  25152. compiler_lib_search_path=$lt_compiler_lib_search_path
  25153. # ### END LIBTOOL CONFIG
  25154. _LT_EOF
  25155. cat <<'_LT_EOF' >> "$cfgfile"
  25156. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  25157. # func_munge_path_list VARIABLE PATH
  25158. # -----------------------------------
  25159. # VARIABLE is name of variable containing _space_ separated list of
  25160. # directories to be munged by the contents of PATH, which is string
  25161. # having a format:
  25162. # "DIR[:DIR]:"
  25163. # string "DIR[ DIR]" will be prepended to VARIABLE
  25164. # ":DIR[:DIR]"
  25165. # string "DIR[ DIR]" will be appended to VARIABLE
  25166. # "DIRP[:DIRP]::[DIRA:]DIRA"
  25167. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  25168. # "DIRA[ DIRA]" will be appended to VARIABLE
  25169. # "DIR[:DIR]"
  25170. # VARIABLE will be replaced by "DIR[ DIR]"
  25171. func_munge_path_list ()
  25172. {
  25173. case x$2 in
  25174. x)
  25175. ;;
  25176. *:)
  25177. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  25178. ;;
  25179. x:*)
  25180. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  25181. ;;
  25182. *::*)
  25183. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  25184. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  25185. ;;
  25186. *)
  25187. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  25188. ;;
  25189. esac
  25190. }
  25191. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  25192. func_cc_basename ()
  25193. {
  25194. for cc_temp in $*""; do
  25195. case $cc_temp in
  25196. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25197. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25198. \-*) ;;
  25199. *) break;;
  25200. esac
  25201. done
  25202. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  25203. }
  25204. # ### END FUNCTIONS SHARED WITH CONFIGURE
  25205. _LT_EOF
  25206. case $host_os in
  25207. aix3*)
  25208. cat <<\_LT_EOF >> "$cfgfile"
  25209. # AIX sometimes has problems with the GCC collect2 program. For some
  25210. # reason, if we set the COLLECT_NAMES environment variable, the problems
  25211. # vanish in a puff of smoke.
  25212. if test set != "${COLLECT_NAMES+set}"; then
  25213. COLLECT_NAMES=
  25214. export COLLECT_NAMES
  25215. fi
  25216. _LT_EOF
  25217. ;;
  25218. esac
  25219. ltmain=$ac_aux_dir/ltmain.sh
  25220. # We use sed instead of cat because bash on DJGPP gets confused if
  25221. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  25222. # text mode, it properly converts lines to CR/LF. This bash problem
  25223. # is reportedly fixed, but why not run on old versions too?
  25224. sed '$q' "$ltmain" >> "$cfgfile" \
  25225. || (rm -f "$cfgfile"; exit 1)
  25226. mv -f "$cfgfile" "$ofile" ||
  25227. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  25228. chmod +x "$ofile"
  25229. cat <<_LT_EOF >> "$ofile"
  25230. # ### BEGIN LIBTOOL TAG CONFIG: RC
  25231. # The linker used to build libraries.
  25232. LD=$lt_LD_RC
  25233. # How to create reloadable object files.
  25234. reload_flag=$lt_reload_flag_RC
  25235. reload_cmds=$lt_reload_cmds_RC
  25236. # Commands used to build an old-style archive.
  25237. old_archive_cmds=$lt_old_archive_cmds_RC
  25238. # A language specific compiler.
  25239. CC=$lt_compiler_RC
  25240. # Is the compiler the GNU compiler?
  25241. with_gcc=$GCC_RC
  25242. # Compiler flag to turn off builtin functions.
  25243. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  25244. # Additional compiler flags for building library objects.
  25245. pic_flag=$lt_lt_prog_compiler_pic_RC
  25246. # How to pass a linker flag through the compiler.
  25247. wl=$lt_lt_prog_compiler_wl_RC
  25248. # Compiler flag to prevent dynamic linking.
  25249. link_static_flag=$lt_lt_prog_compiler_static_RC
  25250. # Does compiler simultaneously support -c and -o options?
  25251. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  25252. # Whether or not to add -lc for building shared libraries.
  25253. build_libtool_need_lc=$archive_cmds_need_lc_RC
  25254. # Whether or not to disallow shared libs when runtime libs are static.
  25255. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  25256. # Compiler flag to allow reflexive dlopens.
  25257. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  25258. # Compiler flag to generate shared objects directly from archives.
  25259. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  25260. # Whether the compiler copes with passing no objects directly.
  25261. compiler_needs_object=$lt_compiler_needs_object_RC
  25262. # Create an old-style archive from a shared archive.
  25263. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  25264. # Create a temporary old-style archive to link instead of a shared archive.
  25265. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  25266. # Commands used to build a shared archive.
  25267. archive_cmds=$lt_archive_cmds_RC
  25268. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  25269. # Commands used to build a loadable module if different from building
  25270. # a shared archive.
  25271. module_cmds=$lt_module_cmds_RC
  25272. module_expsym_cmds=$lt_module_expsym_cmds_RC
  25273. # Whether we are building with GNU ld or not.
  25274. with_gnu_ld=$lt_with_gnu_ld_RC
  25275. # Flag that allows shared libraries with undefined symbols to be built.
  25276. allow_undefined_flag=$lt_allow_undefined_flag_RC
  25277. # Flag that enforces no undefined symbols.
  25278. no_undefined_flag=$lt_no_undefined_flag_RC
  25279. # Flag to hardcode \$libdir into a binary during linking.
  25280. # This must work even if \$libdir does not exist
  25281. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  25282. # Whether we need a single "-rpath" flag with a separated argument.
  25283. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  25284. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25285. # DIR into the resulting binary.
  25286. hardcode_direct=$hardcode_direct_RC
  25287. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25288. # DIR into the resulting binary and the resulting library dependency is
  25289. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25290. # library is relocated.
  25291. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  25292. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25293. # into the resulting binary.
  25294. hardcode_minus_L=$hardcode_minus_L_RC
  25295. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25296. # into the resulting binary.
  25297. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  25298. # Set to "yes" if building a shared library automatically hardcodes DIR
  25299. # into the library and all subsequent libraries and executables linked
  25300. # against it.
  25301. hardcode_automatic=$hardcode_automatic_RC
  25302. # Set to yes if linker adds runtime paths of dependent libraries
  25303. # to runtime path list.
  25304. inherit_rpath=$inherit_rpath_RC
  25305. # Whether libtool must link a program against all its dependency libraries.
  25306. link_all_deplibs=$link_all_deplibs_RC
  25307. # Set to "yes" if exported symbols are required.
  25308. always_export_symbols=$always_export_symbols_RC
  25309. # The commands to list exported symbols.
  25310. export_symbols_cmds=$lt_export_symbols_cmds_RC
  25311. # Symbols that should not be listed in the preloaded symbols.
  25312. exclude_expsyms=$lt_exclude_expsyms_RC
  25313. # Symbols that must always be exported.
  25314. include_expsyms=$lt_include_expsyms_RC
  25315. # Commands necessary for linking programs (against libraries) with templates.
  25316. prelink_cmds=$lt_prelink_cmds_RC
  25317. # Commands necessary for finishing linking programs.
  25318. postlink_cmds=$lt_postlink_cmds_RC
  25319. # Specify filename containing input files.
  25320. file_list_spec=$lt_file_list_spec_RC
  25321. # How to hardcode a shared library path into an executable.
  25322. hardcode_action=$hardcode_action_RC
  25323. # The directories searched by this compiler when creating a shared library.
  25324. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  25325. # Dependencies to place before and after the objects being linked to
  25326. # create a shared library.
  25327. predep_objects=$lt_predep_objects_RC
  25328. postdep_objects=$lt_postdep_objects_RC
  25329. predeps=$lt_predeps_RC
  25330. postdeps=$lt_postdeps_RC
  25331. # The library search path used internally by the compiler when linking
  25332. # a shared library.
  25333. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  25334. # ### END LIBTOOL TAG CONFIG: RC
  25335. _LT_EOF
  25336. cat <<_LT_EOF >> "$ofile"
  25337. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  25338. # The linker used to build libraries.
  25339. LD=$lt_LD_CXX
  25340. # How to create reloadable object files.
  25341. reload_flag=$lt_reload_flag_CXX
  25342. reload_cmds=$lt_reload_cmds_CXX
  25343. # Commands used to build an old-style archive.
  25344. old_archive_cmds=$lt_old_archive_cmds_CXX
  25345. # A language specific compiler.
  25346. CC=$lt_compiler_CXX
  25347. # Is the compiler the GNU compiler?
  25348. with_gcc=$GCC_CXX
  25349. # Compiler flag to turn off builtin functions.
  25350. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  25351. # Additional compiler flags for building library objects.
  25352. pic_flag=$lt_lt_prog_compiler_pic_CXX
  25353. # How to pass a linker flag through the compiler.
  25354. wl=$lt_lt_prog_compiler_wl_CXX
  25355. # Compiler flag to prevent dynamic linking.
  25356. link_static_flag=$lt_lt_prog_compiler_static_CXX
  25357. # Does compiler simultaneously support -c and -o options?
  25358. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  25359. # Whether or not to add -lc for building shared libraries.
  25360. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  25361. # Whether or not to disallow shared libs when runtime libs are static.
  25362. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  25363. # Compiler flag to allow reflexive dlopens.
  25364. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  25365. # Compiler flag to generate shared objects directly from archives.
  25366. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  25367. # Whether the compiler copes with passing no objects directly.
  25368. compiler_needs_object=$lt_compiler_needs_object_CXX
  25369. # Create an old-style archive from a shared archive.
  25370. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  25371. # Create a temporary old-style archive to link instead of a shared archive.
  25372. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  25373. # Commands used to build a shared archive.
  25374. archive_cmds=$lt_archive_cmds_CXX
  25375. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  25376. # Commands used to build a loadable module if different from building
  25377. # a shared archive.
  25378. module_cmds=$lt_module_cmds_CXX
  25379. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  25380. # Whether we are building with GNU ld or not.
  25381. with_gnu_ld=$lt_with_gnu_ld_CXX
  25382. # Flag that allows shared libraries with undefined symbols to be built.
  25383. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  25384. # Flag that enforces no undefined symbols.
  25385. no_undefined_flag=$lt_no_undefined_flag_CXX
  25386. # Flag to hardcode \$libdir into a binary during linking.
  25387. # This must work even if \$libdir does not exist
  25388. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  25389. # Whether we need a single "-rpath" flag with a separated argument.
  25390. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  25391. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25392. # DIR into the resulting binary.
  25393. hardcode_direct=$hardcode_direct_CXX
  25394. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25395. # DIR into the resulting binary and the resulting library dependency is
  25396. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25397. # library is relocated.
  25398. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  25399. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25400. # into the resulting binary.
  25401. hardcode_minus_L=$hardcode_minus_L_CXX
  25402. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25403. # into the resulting binary.
  25404. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  25405. # Set to "yes" if building a shared library automatically hardcodes DIR
  25406. # into the library and all subsequent libraries and executables linked
  25407. # against it.
  25408. hardcode_automatic=$hardcode_automatic_CXX
  25409. # Set to yes if linker adds runtime paths of dependent libraries
  25410. # to runtime path list.
  25411. inherit_rpath=$inherit_rpath_CXX
  25412. # Whether libtool must link a program against all its dependency libraries.
  25413. link_all_deplibs=$link_all_deplibs_CXX
  25414. # Set to "yes" if exported symbols are required.
  25415. always_export_symbols=$always_export_symbols_CXX
  25416. # The commands to list exported symbols.
  25417. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  25418. # Symbols that should not be listed in the preloaded symbols.
  25419. exclude_expsyms=$lt_exclude_expsyms_CXX
  25420. # Symbols that must always be exported.
  25421. include_expsyms=$lt_include_expsyms_CXX
  25422. # Commands necessary for linking programs (against libraries) with templates.
  25423. prelink_cmds=$lt_prelink_cmds_CXX
  25424. # Commands necessary for finishing linking programs.
  25425. postlink_cmds=$lt_postlink_cmds_CXX
  25426. # Specify filename containing input files.
  25427. file_list_spec=$lt_file_list_spec_CXX
  25428. # How to hardcode a shared library path into an executable.
  25429. hardcode_action=$hardcode_action_CXX
  25430. # The directories searched by this compiler when creating a shared library.
  25431. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  25432. # Dependencies to place before and after the objects being linked to
  25433. # create a shared library.
  25434. predep_objects=$lt_predep_objects_CXX
  25435. postdep_objects=$lt_postdep_objects_CXX
  25436. predeps=$lt_predeps_CXX
  25437. postdeps=$lt_postdeps_CXX
  25438. # The library search path used internally by the compiler when linking
  25439. # a shared library.
  25440. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  25441. # ### END LIBTOOL TAG CONFIG: CXX
  25442. _LT_EOF
  25443. ;;
  25444. "sdl2_config":C) chmod a+x sdl2-config ;;
  25445. "summary":C) printf "$SUMMARY" ;;
  25446. esac
  25447. done # for ac_tag
  25448. as_fn_exit 0
  25449. _ACEOF
  25450. ac_clean_files=$ac_clean_files_save
  25451. test $ac_write_fail = 0 ||
  25452. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  25453. # configure is writing to config.log, and then calls config.status.
  25454. # config.status does its own redirection, appending to config.log.
  25455. # Unfortunately, on DOS this fails, as config.log is still kept open
  25456. # by configure, so config.status won't be able to write to it; its
  25457. # output is simply discarded. So we exec the FD to /dev/null,
  25458. # effectively closing config.log, so it can be properly (re)opened and
  25459. # appended to by config.status. When coming back to configure, we
  25460. # need to make the FD available again.
  25461. if test "$no_create" != yes; then
  25462. ac_cs_success=:
  25463. ac_config_status_args=
  25464. test "$silent" = yes &&
  25465. ac_config_status_args="$ac_config_status_args --quiet"
  25466. exec 5>/dev/null
  25467. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25468. exec 5>>config.log
  25469. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25470. # would make configure fail if this is the last instruction.
  25471. $ac_cs_success || as_fn_exit 1
  25472. fi
  25473. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  25474. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  25475. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  25476. fi